Debian Codegraph @

interface/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for isl-interface 0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='isl-interface'
616 PACKAGE_TARNAME='isl-interface'
617 PACKAGE_VERSION='0'
618 PACKAGE_STRING='isl-interface 0'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 CONFIG_STATUS_DEPENDENCIES
659 XCODE_SELECT
660 LLVM_CONFIG
661 CLANG_LIBS
662 CLANG_RFLAG
663 CLANG_LDFLAGS
664 CLANG_CXXFLAGS
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 SED
686 LIBTOOL
687 HAVE_CXX11
688 GREP
689 CXXCPPFLAGS_FOR_BUILD
690 CXXFLAGS_FOR_BUILD
691 CXXCPP_FOR_BUILD
692 ac_ct_CXX_FOR_BUILD
693 CXX_FOR_BUILD
694 host_os
695 host_vendor
696 host_cpu
697 host
698 CXXCPP
699 LDFLAGS_FOR_BUILD
700 CPPFLAGS_FOR_BUILD
701 CFLAGS_FOR_BUILD
702 CCDEPMODE_FOR_BUILD
703 BUILD_OBJEXT
704 BUILD_EXEEXT
705 CPP_FOR_BUILD
706 ac_ct_CC_FOR_BUILD
707 CC_FOR_BUILD
708 build_os
709 build_vendor
710 build_cpu
711 build
712 CPP
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 ac_ct_CC
717 CFLAGS
718 CC
719 am__fastdepCXX_FALSE
720 am__fastdepCXX_TRUE
721 CXXDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CXX
731 CPPFLAGS
732 LDFLAGS
733 CXXFLAGS
734 CXX
735 am__xargs_n
736 am__rm_f_notfound
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 CSCOPE
742 ETAGS
743 CTAGS
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 runstatedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL
806 am__quote'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_shared
813 enable_static
814 enable_pic
815 with_pic
816 enable_fast_install
817 enable_aix_soname
818 with_aix_soname
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CXX
827 CXXFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CCC
832 CC
833 CFLAGS
834 CPP
835 CXXCPP
836 LT_SYS_LIBRARY_PATH'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: '$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: '$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: '$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: '$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: '$ac_option'
1231 Try '$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: '$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 printf "%s\n" X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 'configure' configures isl-interface 0 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print 'checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for '--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or '..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, 'make install' will install all the files in
1412 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than '$ac_default_prefix' using '--prefix',
1414 for instance '--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/isl-interface]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of isl-interface 0:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-shared[=PKGS] build shared libraries [default=no]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --enable-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1486 compiler's sysroot if not specified).
1487
1488 Some influential environment variables:
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1500 LT_SYS_LIBRARY_PATH
1501 User-defined run-time library search path.
1502
1503 Use these variables to override the choices made by 'configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <[email protected]>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for configure.gnu first; this name is used for a wrapper for
1553 # Metaconfig's "Configure" on case-insensitive file systems.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 isl-interface configure 0
1571 generated by GNU Autoconf 2.72
1572
1573 Copyright (C) 2023 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_cxx_try_compile LINENO
1585 # ----------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_cxx_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest.beam
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 printf "%s\n" "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_cxx_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext
1610 then :
1611 ac_retval=0
1612 else case e in #(
1613 e) printf "%s\n" "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1 ;;
1617 esac
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_cxx_try_compile
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext
1650 then :
1651 ac_retval=0
1652 else case e in #(
1653 e) printf "%s\n" "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1 ;;
1657 esac
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 printf "%s\n" "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }
1689 then :
1690 ac_retval=0
1691 else case e in #(
1692 e) printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1 ;;
1696 esac
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_cxx_try_cpp LINENO
1704 # ------------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_cxx_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 }
1728 then :
1729 ac_retval=0
1730 else case e in #(
1731 e) printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1 ;;
1735 esac
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_cxx_try_cpp
1741
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_link ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 printf "%s\n" "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest$ac_exeext && {
1768 test "$cross_compiling" = yes ||
1769 test -x conftest$ac_exeext
1770 }
1771 then :
1772 ac_retval=0
1773 else case e in #(
1774 e) printf "%s\n" "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1 ;;
1778 esac
1779 fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_link
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 printf %s "checking for $2... " >&6; }
1799 if eval test \${$3+y}
1800 then :
1801 printf %s "(cached) " >&6
1802 else case e in #(
1803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"
1809 then :
1810 eval "$3=yes"
1811 else case e in #(
1812 e) eval "$3=no" ;;
1813 esac
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1816 esac
1817 fi
1818 eval ac_res=\$$3
1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 printf "%s\n" "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 printf %s "checking for $2... " >&6; }
1833 if eval test \${$3+y}
1834 then :
1835 printf %s "(cached) " >&6
1836 else case e in #(
1837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (void); below. */
1845
1846 #include <limits.h>
1847 #undef $2
1848
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 (void);
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1862
1863 int
1864 main (void)
1865 {
1866 return $2 ();
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"
1872 then :
1873 eval "$3=yes"
1874 else case e in #(
1875 e) eval "$3=no" ;;
1876 esac
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1879 conftest$ac_exeext conftest.$ac_ext ;;
1880 esac
1881 fi
1882 eval ac_res=\$$3
1883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 printf "%s\n" "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_func
1888
1889 # ac_fn_cxx_try_link LINENO
1890 # -------------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_cxx_try_link ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 printf "%s\n" "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }
1918 then :
1919 ac_retval=0
1920 else case e in #(
1921 e) printf "%s\n" "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1 ;;
1925 esac
1926 fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_cxx_try_link
1936
1937 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1938 # ---------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_cxx_check_header_compile ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 printf %s "checking for $2... " >&6; }
1946 if eval test \${$3+y}
1947 then :
1948 printf %s "(cached) " >&6
1949 else case e in #(
1950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_cxx_try_compile "$LINENO"
1956 then :
1957 eval "$3=yes"
1958 else case e in #(
1959 e) eval "$3=no" ;;
1960 esac
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1963 esac
1964 fi
1965 eval ac_res=\$$3
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_cxx_check_header_compile
1971 ac_configure_args_raw=
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 *\'*)
1976 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 esac
1978 as_fn_append ac_configure_args_raw " '$ac_arg'"
1979 done
1980
1981 case $ac_configure_args_raw in
1982 *$as_nl*)
1983 ac_safe_unquote= ;;
1984 *)
1985 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1986 ac_unsafe_a="$ac_unsafe_z#~"
1987 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1988 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1989 esac
1990
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by isl-interface $as_me 0, which was
1996 generated by GNU Autoconf 2.72. Invocation command line was
1997
1998 $ $0$ac_configure_args_raw
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 case $as_dir in #(((
2032 '') as_dir=./ ;;
2033 */) ;;
2034 *) as_dir=$as_dir/ ;;
2035 esac
2036 printf "%s\n" "PATH: $as_dir"
2037 done
2038 IFS=$as_save_IFS
2039
2040 } >&5
2041
2042 cat >&5 <<_ACEOF
2043
2044
2045 ## ----------- ##
2046 ## Core tests. ##
2047 ## ----------- ##
2048
2049 _ACEOF
2050
2051
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2057 ac_configure_args=
2058 ac_configure_args0=
2059 ac_configure_args1=
2060 ac_must_keep_next=false
2061 for ac_pass in 1 2
2062 do
2063 for ac_arg
2064 do
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
2070 *\'*)
2071 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 esac
2073 case $ac_pass in
2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 2)
2076 as_fn_append ac_configure_args1 " '$ac_arg'"
2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2088 ;;
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2091 fi
2092 as_fn_append ac_configure_args " '$ac_arg'"
2093 ;;
2094 esac
2095 done
2096 done
2097 { ac_configure_args0=; unset ac_configure_args0;}
2098 { ac_configure_args1=; unset ac_configure_args1;}
2099
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2106 # Sanitize IFS.
2107 IFS=" "" $as_nl"
2108 # Save into config.log some information that might help in debugging.
2109 {
2110 echo
2111
2112 printf "%s\n" "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2117 (
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2140 *)
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142 ;;
2143 esac |
2144 sort
2145 )
2146 echo
2147
2148 printf "%s\n" "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 printf "%s\n" "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161
2162 if test -n "$ac_subst_files"; then
2163 printf "%s\n" "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176 fi
2177
2178 if test -s confdefs.h; then
2179 printf "%s\n" "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2185 fi
2186 test "$ac_signal" != 0 &&
2187 printf "%s\n" "$as_me: caught signal $ac_signal"
2188 printf "%s\n" "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 printf "%s\n" "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2207
2208 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2209
2210 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2211
2212 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2213
2214 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2215
2216 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2217
2218
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_files="$CONFIG_SITE"
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2225 else
2226 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2227 fi
2228
2229 for ac_site_file in $ac_site_files
2230 do
2231 case $ac_site_file in #(
2232 */*) :
2233 ;; #(
2234 *) :
2235 ac_site_file=./$ac_site_file ;;
2236 esac
2237 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file" \
2242 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2243 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2244 as_fn_error $? "failed to load site script $ac_site_file
2245 See 'config.log' for more details" "$LINENO" 5; }
2246 fi
2247 done
2248
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2259 fi
2260 else
2261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2264 fi
2265
2266 # Test code for whether the C++ compiler supports C++98 (global declarations)
2267 ac_cxx_conftest_cxx98_globals='
2268 // Does the compiler advertise C++98 conformance?
2269 #if !defined __cplusplus || __cplusplus < 199711L
2270 # error "Compiler does not advertise C++98 conformance"
2271 #endif
2272
2273 // These inclusions are to reject old compilers that
2274 // lack the unsuffixed header files.
2275 #include <cstdlib>
2276 #include <exception>
2277
2278 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2279 extern void assert (int);
2280 namespace std {
2281 extern int strcmp (const char *, const char *);
2282 }
2283
2284 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2285 using std::exception;
2286 using std::strcmp;
2287
2288 namespace {
2289
2290 void test_exception_syntax()
2291 {
2292 try {
2293 throw "test";
2294 } catch (const char *s) {
2295 // Extra parentheses suppress a warning when building autoconf itself,
2296 // due to lint rules shared with more typical C programs.
2297 assert (!(strcmp) (s, "test"));
2298 }
2299 }
2300
2301 template <typename T> struct test_template
2302 {
2303 T const val;
2304 explicit test_template(T t) : val(t) {}
2305 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2306 };
2307
2308 } // anonymous namespace
2309 '
2310
2311 # Test code for whether the C++ compiler supports C++98 (body of main)
2312 ac_cxx_conftest_cxx98_main='
2313 assert (argc);
2314 assert (! argv[0]);
2315 {
2316 test_exception_syntax ();
2317 test_template<double> tt (2.0);
2318 assert (tt.add (4) == 6.0);
2319 assert (true && !false);
2320 }
2321 '
2322
2323 # Test code for whether the C++ compiler supports C++11 (global declarations)
2324 ac_cxx_conftest_cxx11_globals='
2325 // Does the compiler advertise C++ 2011 conformance?
2326 #if !defined __cplusplus || __cplusplus < 201103L
2327 # error "Compiler does not advertise C++11 conformance"
2328 #endif
2329
2330 namespace cxx11test
2331 {
2332 constexpr int get_val() { return 20; }
2333
2334 struct testinit
2335 {
2336 int i;
2337 double d;
2338 };
2339
2340 class delegate
2341 {
2342 public:
2343 delegate(int n) : n(n) {}
2344 delegate(): delegate(2354) {}
2345
2346 virtual int getval() { return this->n; };
2347 protected:
2348 int n;
2349 };
2350
2351 class overridden : public delegate
2352 {
2353 public:
2354 overridden(int n): delegate(n) {}
2355 virtual int getval() override final { return this->n * 2; }
2356 };
2357
2358 class nocopy
2359 {
2360 public:
2361 nocopy(int i): i(i) {}
2362 nocopy() = default;
2363 nocopy(const nocopy&) = delete;
2364 nocopy & operator=(const nocopy&) = delete;
2365 private:
2366 int i;
2367 };
2368
2369 // for testing lambda expressions
2370 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2371 {
2372 return f(v);
2373 }
2374
2375 // for testing variadic templates and trailing return types
2376 template <typename V> auto sum(V first) -> V
2377 {
2378 return first;
2379 }
2380 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2381 {
2382 return first + sum(rest...);
2383 }
2384 }
2385 '
2386
2387 # Test code for whether the C++ compiler supports C++11 (body of main)
2388 ac_cxx_conftest_cxx11_main='
2389 {
2390 // Test auto and decltype
2391 auto a1 = 6538;
2392 auto a2 = 48573953.4;
2393 auto a3 = "String literal";
2394
2395 int total = 0;
2396 for (auto i = a3; *i; ++i) { total += *i; }
2397
2398 decltype(a2) a4 = 34895.034;
2399 }
2400 {
2401 // Test constexpr
2402 short sa[cxx11test::get_val()] = { 0 };
2403 }
2404 {
2405 // Test initializer lists
2406 cxx11test::testinit il = { 4323, 435234.23544 };
2407 }
2408 {
2409 // Test range-based for
2410 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2411 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2412 for (auto &x : array) { x += 23; }
2413 }
2414 {
2415 // Test lambda expressions
2416 using cxx11test::eval;
2417 assert (eval ([](int x) { return x*2; }, 21) == 42);
2418 double d = 2.0;
2419 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2420 assert (d == 5.0);
2421 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2422 assert (d == 5.0);
2423 }
2424 {
2425 // Test use of variadic templates
2426 using cxx11test::sum;
2427 auto a = sum(1);
2428 auto b = sum(1, 2);
2429 auto c = sum(1.0, 2.0, 3.0);
2430 }
2431 {
2432 // Test constructor delegation
2433 cxx11test::delegate d1;
2434 cxx11test::delegate d2();
2435 cxx11test::delegate d3(45);
2436 }
2437 {
2438 // Test override and final
2439 cxx11test::overridden o1(55464);
2440 }
2441 {
2442 // Test nullptr
2443 char *c = nullptr;
2444 }
2445 {
2446 // Test template brackets
2447 test_template<::test_template<int>> v(test_template<int>(12));
2448 }
2449 {
2450 // Unicode literals
2451 char const *utf8 = u8"UTF-8 string \u2500";
2452 char16_t const *utf16 = u"UTF-8 string \u2500";
2453 char32_t const *utf32 = U"UTF-32 string \u2500";
2454 }
2455 '
2456
2457 # Test code for whether the C compiler supports C++11 (complete).
2458 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2459 ${ac_cxx_conftest_cxx11_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_cxx_conftest_cxx98_main}
2466 ${ac_cxx_conftest_cxx11_main}
2467 return ok;
2468 }
2469 "
2470
2471 # Test code for whether the C compiler supports C++98 (complete).
2472 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2473 int
2474 main (int argc, char **argv)
2475 {
2476 int ok = 0;
2477 ${ac_cxx_conftest_cxx98_main}
2478 return ok;
2479 }
2480 "
2481
2482 # Test code for whether the C compiler supports C89 (global declarations)
2483 ac_c_conftest_c89_globals='
2484 /* Does the compiler advertise C89 conformance?
2485 Do not test the value of __STDC__, because some compilers set it to 0
2486 while being otherwise adequately conformant. */
2487 #if !defined __STDC__
2488 # error "Compiler does not advertise C89 conformance"
2489 #endif
2490
2491 #include <stddef.h>
2492 #include <stdarg.h>
2493 struct stat;
2494 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2495 struct buf { int x; };
2496 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (char **p, int i)
2498 {
2499 return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509 }
2510
2511 /* C89 style stringification. */
2512 #define noexpand_stringify(a) #a
2513 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2514
2515 /* C89 style token pasting. Exercises some of the corner cases that
2516 e.g. old MSVC gets wrong, but not very hard. */
2517 #define noexpand_concat(a,b) a##b
2518 #define expand_concat(a,b) noexpand_concat(a,b)
2519 extern int vA;
2520 extern int vbee;
2521 #define aye A
2522 #define bee B
2523 int *pvA = &expand_concat(v,aye);
2524 int *pvbee = &noexpand_concat(v,bee);
2525
2526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2527 function prototypes and stuff, but not \xHH hex character constants.
2528 These do not provoke an error unfortunately, instead are silently treated
2529 as an "x". The following induces an error, until -std is added to get
2530 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2531 array size at least. It is necessary to write \x00 == 0 to get something
2532 that is true only with -std. */
2533 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2534
2535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2536 inside strings and character constants. */
2537 #define FOO(x) '\''x'\''
2538 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2539
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2543 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2544 int, int);'
2545
2546 # Test code for whether the C compiler supports C89 (body of main).
2547 ac_c_conftest_c89_main='
2548 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2549 '
2550
2551 # Test code for whether the C compiler supports C99 (global declarations)
2552 ac_c_conftest_c99_globals='
2553 /* Does the compiler advertise C99 conformance? */
2554 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2555 # error "Compiler does not advertise C99 conformance"
2556 #endif
2557
2558 // See if C++-style comments work.
2559
2560 #include <stdbool.h>
2561 extern int puts (const char *);
2562 extern int printf (const char *, ...);
2563 extern int dprintf (int, const char *, ...);
2564 extern void *malloc (size_t);
2565 extern void free (void *);
2566
2567 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2568 // dprintf is used instead of fprintf to avoid needing to declare
2569 // FILE and stderr.
2570 #define debug(...) dprintf (2, __VA_ARGS__)
2571 #define showlist(...) puts (#__VA_ARGS__)
2572 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2573 static void
2574 test_varargs_macros (void)
2575 {
2576 int x = 1234;
2577 int y = 5678;
2578 debug ("Flag");
2579 debug ("X = %d\n", x);
2580 showlist (The first, second, and third items.);
2581 report (x>y, "x is %d but y is %d", x, y);
2582 }
2583
2584 // Check long long types.
2585 #define BIG64 18446744073709551615ull
2586 #define BIG32 4294967295ul
2587 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2588 #if !BIG_OK
2589 #error "your preprocessor is broken"
2590 #endif
2591 #if BIG_OK
2592 #else
2593 #error "your preprocessor is broken"
2594 #endif
2595 static long long int bignum = -9223372036854775807LL;
2596 static unsigned long long int ubignum = BIG64;
2597
2598 struct incomplete_array
2599 {
2600 int datasize;
2601 double data[];
2602 };
2603
2604 struct named_init {
2605 int number;
2606 const wchar_t *name;
2607 double average;
2608 };
2609
2610 typedef const char *ccp;
2611
2612 static inline int
2613 test_restrict (ccp restrict text)
2614 {
2615 // Iterate through items via the restricted pointer.
2616 // Also check for declarations in for loops.
2617 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618 continue;
2619 return 0;
2620 }
2621
2622 // Check varargs and va_copy.
2623 static bool
2624 test_varargs (const char *format, ...)
2625 {
2626 va_list args;
2627 va_start (args, format);
2628 va_list args_copy;
2629 va_copy (args_copy, args);
2630
2631 const char *str = "";
2632 int number = 0;
2633 float fnumber = 0;
2634
2635 while (*format)
2636 {
2637 switch (*format++)
2638 {
2639 case '\''s'\'': // string
2640 str = va_arg (args_copy, const char *);
2641 break;
2642 case '\''d'\'': // int
2643 number = va_arg (args_copy, int);
2644 break;
2645 case '\''f'\'': // float
2646 fnumber = va_arg (args_copy, double);
2647 break;
2648 default:
2649 break;
2650 }
2651 }
2652 va_end (args_copy);
2653 va_end (args);
2654
2655 return *str && number && fnumber;
2656 }
2657 '
2658
2659 # Test code for whether the C compiler supports C99 (body of main).
2660 ac_c_conftest_c99_main='
2661 // Check bool.
2662 _Bool success = false;
2663 success |= (argc != 0);
2664
2665 // Check restrict.
2666 if (test_restrict ("String literal") == 0)
2667 success = true;
2668 char *restrict newvar = "Another string";
2669
2670 // Check varargs.
2671 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672 test_varargs_macros ();
2673
2674 // Check flexible array members.
2675 struct incomplete_array *ia =
2676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677 ia->datasize = 10;
2678 for (int i = 0; i < ia->datasize; ++i)
2679 ia->data[i] = i * 1.234;
2680 // Work around memory leak warnings.
2681 free (ia);
2682
2683 // Check named initializers.
2684 struct named_init ni = {
2685 .number = 34,
2686 .name = L"Test wide string",
2687 .average = 543.34343,
2688 };
2689
2690 ni.number = 58;
2691
2692 int dynamic_array[ni.number];
2693 dynamic_array[0] = argv[0][0];
2694 dynamic_array[ni.number - 1] = 543;
2695
2696 // work around unused variable warnings
2697 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2698 || dynamic_array[ni.number - 1] != 543);
2699 '
2700
2701 # Test code for whether the C compiler supports C11 (global declarations)
2702 ac_c_conftest_c11_globals='
2703 /* Does the compiler advertise C11 conformance? */
2704 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2705 # error "Compiler does not advertise C11 conformance"
2706 #endif
2707
2708 // Check _Alignas.
2709 char _Alignas (double) aligned_as_double;
2710 char _Alignas (0) no_special_alignment;
2711 extern char aligned_as_int;
2712 char _Alignas (0) _Alignas (int) aligned_as_int;
2713
2714 // Check _Alignof.
2715 enum
2716 {
2717 int_alignment = _Alignof (int),
2718 int_array_alignment = _Alignof (int[100]),
2719 char_alignment = _Alignof (char)
2720 };
2721 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2722
2723 // Check _Noreturn.
2724 int _Noreturn does_not_return (void) { for (;;) continue; }
2725
2726 // Check _Static_assert.
2727 struct test_static_assert
2728 {
2729 int x;
2730 _Static_assert (sizeof (int) <= sizeof (long int),
2731 "_Static_assert does not work in struct");
2732 long int y;
2733 };
2734
2735 // Check UTF-8 literals.
2736 #define u8 syntax error!
2737 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2738
2739 // Check duplicate typedefs.
2740 typedef long *long_ptr;
2741 typedef long int *long_ptr;
2742 typedef long_ptr long_ptr;
2743
2744 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2745 struct anonymous
2746 {
2747 union {
2748 struct { int i; int j; };
2749 struct { int k; long int l; } w;
2750 };
2751 int m;
2752 } v1;
2753 '
2754
2755 # Test code for whether the C compiler supports C11 (body of main).
2756 ac_c_conftest_c11_main='
2757 _Static_assert ((offsetof (struct anonymous, i)
2758 == offsetof (struct anonymous, w.k)),
2759 "Anonymous union alignment botch");
2760 v1.i = 2;
2761 v1.w.k = 5;
2762 ok |= v1.i != 5;
2763 '
2764
2765 # Test code for whether the C compiler supports C11 (complete).
2766 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2767 ${ac_c_conftest_c99_globals}
2768 ${ac_c_conftest_c11_globals}
2769
2770 int
2771 main (int argc, char **argv)
2772 {
2773 int ok = 0;
2774 ${ac_c_conftest_c89_main}
2775 ${ac_c_conftest_c99_main}
2776 ${ac_c_conftest_c11_main}
2777 return ok;
2778 }
2779 "
2780
2781 # Test code for whether the C compiler supports C99 (complete).
2782 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2783 ${ac_c_conftest_c99_globals}
2784
2785 int
2786 main (int argc, char **argv)
2787 {
2788 int ok = 0;
2789 ${ac_c_conftest_c89_main}
2790 ${ac_c_conftest_c99_main}
2791 return ok;
2792 }
2793 "
2794
2795 # Test code for whether the C compiler supports C89 (complete).
2796 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2797
2798 int
2799 main (int argc, char **argv)
2800 {
2801 int ok = 0;
2802 ${ac_c_conftest_c89_main}
2803 return ok;
2804 }
2805 "
2806
2807 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2808 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2809 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2810 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2811 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2812 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2813 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2814 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2815 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2816
2817 # Auxiliary files required by this configure script.
2818 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2819
2820 # Locations in which to look for auxiliary files.
2821 ac_aux_dir_candidates="${srcdir}/."
2822
2823 # Search for a directory containing all of the required auxiliary files,
2824 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2825 # If we don't find one directory that contains all the files we need,
2826 # we report the set of missing files from the *first* directory in
2827 # $ac_aux_dir_candidates and give up.
2828 ac_missing_aux_files=""
2829 ac_first_candidate=:
2830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 as_found=false
2833 for as_dir in $ac_aux_dir_candidates
2834 do
2835 IFS=$as_save_IFS
2836 case $as_dir in #(((
2837 '') as_dir=./ ;;
2838 */) ;;
2839 *) as_dir=$as_dir/ ;;
2840 esac
2841 as_found=:
2842
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2844 ac_aux_dir_found=yes
2845 ac_install_sh=
2846 for ac_aux in $ac_aux_files
2847 do
2848 # As a special case, if "install-sh" is required, that requirement
2849 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2850 # and $ac_install_sh is set appropriately for whichever one is found.
2851 if test x"$ac_aux" = x"install-sh"
2852 then
2853 if test -f "${as_dir}install-sh"; then
2854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2855 ac_install_sh="${as_dir}install-sh -c"
2856 elif test -f "${as_dir}install.sh"; then
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2858 ac_install_sh="${as_dir}install.sh -c"
2859 elif test -f "${as_dir}shtool"; then
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2861 ac_install_sh="${as_dir}shtool install -c"
2862 else
2863 ac_aux_dir_found=no
2864 if $ac_first_candidate; then
2865 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2866 else
2867 break
2868 fi
2869 fi
2870 else
2871 if test -f "${as_dir}${ac_aux}"; then
2872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2873 else
2874 ac_aux_dir_found=no
2875 if $ac_first_candidate; then
2876 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2877 else
2878 break
2879 fi
2880 fi
2881 fi
2882 done
2883 if test "$ac_aux_dir_found" = yes; then
2884 ac_aux_dir="$as_dir"
2885 break
2886 fi
2887 ac_first_candidate=false
2888
2889 as_found=false
2890 done
2891 IFS=$as_save_IFS
2892 if $as_found
2893 then :
2894
2895 else case e in #(
2896 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2897 esac
2898 fi
2899
2900
2901 # These three variables are undocumented and unsupported,
2902 # and are intended to be withdrawn in a future Autoconf release.
2903 # They can cause serious problems if a builder's source tree is in a directory
2904 # whose full name contains unusual characters.
2905 if test -f "${ac_aux_dir}config.guess"; then
2906 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2907 fi
2908 if test -f "${ac_aux_dir}config.sub"; then
2909 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2910 fi
2911 if test -f "$ac_aux_dir/configure"; then
2912 ac_configure="$SHELL ${ac_aux_dir}configure"
2913 fi
2914
2915 # Check that the precious variables saved in the cache have kept the same
2916 # value.
2917 ac_cache_corrupted=false
2918 for ac_var in $ac_precious_vars; do
2919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2920 eval ac_new_set=\$ac_env_${ac_var}_set
2921 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2922 eval ac_new_val=\$ac_env_${ac_var}_value
2923 case $ac_old_set,$ac_new_set in
2924 set,)
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2926 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2927 ac_cache_corrupted=: ;;
2928 ,set)
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2930 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2931 ac_cache_corrupted=: ;;
2932 ,);;
2933 *)
2934 if test "x$ac_old_val" != "x$ac_new_val"; then
2935 # differences in whitespace do not lead to failure.
2936 ac_old_val_w=`echo x $ac_old_val`
2937 ac_new_val_w=`echo x $ac_new_val`
2938 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2940 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2941 ac_cache_corrupted=:
2942 else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2944 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2945 eval $ac_var=\$ac_old_val
2946 fi
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2948 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2950 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2951 fi;;
2952 esac
2953 # Pass precious variables to config.status.
2954 if test "$ac_new_set" = set; then
2955 case $ac_new_val in
2956 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2957 *) ac_arg=$ac_var=$ac_new_val ;;
2958 esac
2959 case " $ac_configure_args " in
2960 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2961 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2962 esac
2963 fi
2964 done
2965 if $ac_cache_corrupted; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2967 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2969 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2970 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2971 and start over" "$LINENO" 5
2972 fi
2973 ## -------------------- ##
2974 ## Main body of script. ##
2975 ## -------------------- ##
2976
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982
2983
2984
2985
2986 am__api_version='1.18'
2987
2988
2989
2990 # Find a good install program. We prefer a C program (faster),
2991 # so one script is as good as another. But avoid the broken or
2992 # incompatible versions:
2993 # SysV /etc/install, /usr/sbin/install
2994 # SunOS /usr/etc/install
2995 # IRIX /sbin/install
2996 # AIX /bin/install
2997 # AmigaOS /C/install, which installs bootblocks on floppy discs
2998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3001 # OS/2's system install, which has a completely different semantic
3002 # ./install, which can be erroneously created by make from ./install.sh.
3003 # Reject install programs that cannot install multiple files.
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3005 printf %s "checking for a BSD-compatible install... " >&6; }
3006 if test -z "$INSTALL"; then
3007 if test ${ac_cv_path_install+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else case e in #(
3011 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 case $as_dir in #(((
3016 '') as_dir=./ ;;
3017 */) ;;
3018 *) as_dir=$as_dir/ ;;
3019 esac
3020 # Account for fact that we put trailing slashes in our PATH walk.
3021 case $as_dir in #((
3022 ./ | /[cC]/* | \
3023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3024 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3025 /usr/ucb/* ) ;;
3026 *)
3027 # OSF1 and SCO ODT 3.0 have their own names for install.
3028 # Don't use installbsd from OSF since it installs stuff as root
3029 # by default.
3030 for ac_prog in ginstall scoinst install; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3033 if test $ac_prog = install &&
3034 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035 # AIX install. It has an incompatible calling convention.
3036 :
3037 elif test $ac_prog = install &&
3038 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039 # program-specific install script used by HP pwplus--don't use.
3040 :
3041 else
3042 rm -rf conftest.one conftest.two conftest.dir
3043 echo one > conftest.one
3044 echo two > conftest.two
3045 mkdir conftest.dir
3046 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3047 test -s conftest.one && test -s conftest.two &&
3048 test -s conftest.dir/conftest.one &&
3049 test -s conftest.dir/conftest.two
3050 then
3051 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3052 break 3
3053 fi
3054 fi
3055 fi
3056 done
3057 done
3058 ;;
3059 esac
3060
3061 done
3062 IFS=$as_save_IFS
3063
3064 rm -rf conftest.one conftest.two conftest.dir
3065 ;;
3066 esac
3067 fi
3068 if test ${ac_cv_path_install+y}; then
3069 INSTALL=$ac_cv_path_install
3070 else
3071 # As a last resort, use the slow shell script. Don't cache a
3072 # value for INSTALL within a source directory, because that will
3073 # break other packages using the cache if that directory is
3074 # removed, or if the value is a relative name.
3075 INSTALL=$ac_install_sh
3076 fi
3077 fi
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3079 printf "%s\n" "$INSTALL" >&6; }
3080
3081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3082 # It thinks the first close brace ends the variable substitution.
3083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3084
3085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3086
3087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3088
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3090 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3091 if test ${am_cv_sleep_fractional_seconds+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else case e in #(
3095 e) if sleep 0.001 2>/dev/null
3096 then :
3097 am_cv_sleep_fractional_seconds=yes
3098 else case e in #(
3099 e) am_cv_sleep_fractional_seconds=no ;;
3100 esac
3101 fi
3102 ;;
3103 esac
3104 fi
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3106 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3107
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3109 printf %s "checking filesystem timestamp resolution... " >&6; }
3110 if test ${am_cv_filesystem_timestamp_resolution+y}
3111 then :
3112 printf %s "(cached) " >&6
3113 else case e in #(
3114 e) # Default to the worst case.
3115 am_cv_filesystem_timestamp_resolution=2
3116
3117 # Only try to go finer than 1 sec if sleep can do it.
3118 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3119 # - 1 sec is not much of a win compared to 2 sec, and
3120 # - it takes 2 seconds to perform the test whether 1 sec works.
3121 #
3122 # Instead, just use the default 2s on platforms that have 1s resolution,
3123 # accept the extra 1s delay when using $sleep in the Automake tests, in
3124 # exchange for not incurring the 2s delay for running the test for all
3125 # packages.
3126 #
3127 am_try_resolutions=
3128 if test "$am_cv_sleep_fractional_seconds" = yes; then
3129 # Even a millisecond often causes a bunch of false positives,
3130 # so just try a hundredth of a second. The time saved between .001 and
3131 # .01 is not terribly consequential.
3132 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3133 fi
3134
3135 # In order to catch current-generation FAT out, we must *modify* files
3136 # that already exist; the *creation* timestamp is finer. Use names
3137 # that make ls -t sort them differently when they have equal
3138 # timestamps than when they have distinct timestamps, keeping
3139 # in mind that ls -t prints the *newest* file first.
3140 rm -f conftest.ts?
3141 : > conftest.ts1
3142 : > conftest.ts2
3143 : > conftest.ts3
3144
3145 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3146 # clobber the current shell's arguments. (Outer-level square brackets
3147 # are removed by m4; they're present so that m4 does not expand
3148 # <dollar><star>; be careful, easy to get confused.)
3149 if (
3150 set X `ls -t conftest.ts[12]` &&
3151 {
3152 test "$*" != "X conftest.ts1 conftest.ts2" ||
3153 test "$*" != "X conftest.ts2 conftest.ts1";
3154 }
3155 ); then :; else
3156 # If neither matched, then we have a broken ls. This can happen
3157 # if, for instance, CONFIG_SHELL is bash and it inherits a
3158 # broken ls alias from the environment. This has actually
3159 # happened. Such a system could not be considered "sane".
3160 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3162 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3163 as_fn_error $? "ls -t produces unexpected output.
3164 Make sure there is not a broken ls alias in your environment.
3165 See 'config.log' for more details" "$LINENO" 5; }
3166 fi
3167
3168 for am_try_res in $am_try_resolutions; do
3169 # Any one fine-grained sleep might happen to cross the boundary
3170 # between two values of a coarser actual resolution, but if we do
3171 # two fine-grained sleeps in a row, at least one of them will fall
3172 # entirely within a coarse interval.
3173 echo alpha > conftest.ts1
3174 sleep $am_try_res
3175 echo beta > conftest.ts2
3176 sleep $am_try_res
3177 echo gamma > conftest.ts3
3178
3179 # We assume that 'ls -t' will make use of high-resolution
3180 # timestamps if the operating system supports them at all.
3181 if (set X `ls -t conftest.ts?` &&
3182 test "$2" = conftest.ts3 &&
3183 test "$3" = conftest.ts2 &&
3184 test "$4" = conftest.ts1); then
3185 #
3186 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3187 # because we don't need to test make.
3188 make_ok=true
3189 if test $am_try_res != 1; then
3190 # But if we've succeeded so far with a subsecond resolution, we
3191 # have one more thing to check: make. It can happen that
3192 # everything else supports the subsecond mtimes, but make doesn't;
3193 # notably on macOS, which ships make 3.81 from 2006 (the last one
3194 # released under GPLv2). https://bugs.gnu.org/68808
3195 #
3196 # We test $MAKE if it is defined in the environment, else "make".
3197 # It might get overridden later, but our hope is that in practice
3198 # it does not matter: it is the system "make" which is (by far)
3199 # the most likely to be broken, whereas if the user overrides it,
3200 # probably they did so with a better, or at least not worse, make.
3201 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3202 #
3203 # Create a Makefile (real tab character here):
3204 rm -f conftest.mk
3205 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3206 echo ' touch conftest.ts2' >>conftest.mk
3207 #
3208 # Now, running
3209 # touch conftest.ts1; touch conftest.ts2; make
3210 # should touch ts1 because ts2 is newer. This could happen by luck,
3211 # but most often, it will fail if make's support is insufficient. So
3212 # test for several consecutive successes.
3213 #
3214 # (We reuse conftest.ts[12] because we still want to modify existing
3215 # files, not create new ones, per above.)
3216 n=0
3217 make=${MAKE-make}
3218 until test $n -eq 3; do
3219 echo one > conftest.ts1
3220 sleep $am_try_res
3221 echo two > conftest.ts2 # ts2 should now be newer than ts1
3222 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3223 make_ok=false
3224 break # out of $n loop
3225 fi
3226 n=`expr $n + 1`
3227 done
3228 fi
3229 #
3230 if $make_ok; then
3231 # Everything we know to check worked out, so call this resolution good.
3232 am_cv_filesystem_timestamp_resolution=$am_try_res
3233 break # out of $am_try_res loop
3234 fi
3235 # Otherwise, we'll go on to check the next resolution.
3236 fi
3237 done
3238 rm -f conftest.ts?
3239 # (end _am_filesystem_timestamp_resolution)
3240 ;;
3241 esac
3242 fi
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3244 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3245
3246 # This check should not be cached, as it may vary across builds of
3247 # different projects.
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3249 printf %s "checking whether build environment is sane... " >&6; }
3250 # Reject unsafe characters in $srcdir or the absolute working directory
3251 # name. Accept space and tab only in the latter.
3252 am_lf='
3253 '
3254 case `pwd` in
3255 *[\\\"\#\$\&\'\`$am_lf]*)
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 printf "%s\n" "no" >&6; }
3258 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3259 esac
3260 case $srcdir in
3261 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 printf "%s\n" "no" >&6; }
3264 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3265 esac
3266
3267 # Do 'set' in a subshell so we don't clobber the current shell's
3268 # arguments. Must try -L first in case configure is actually a
3269 # symlink; some systems play weird games with the mod time of symlinks
3270 # (eg FreeBSD returns the mod time of the symlink's containing
3271 # directory).
3272 am_build_env_is_sane=no
3273 am_has_slept=no
3274 rm -f conftest.file
3275 for am_try in 1 2; do
3276 echo "timestamp, slept: $am_has_slept" > conftest.file
3277 if (
3278 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3279 if test "$*" = "X"; then
3280 # -L didn't work.
3281 set X `ls -t "$srcdir/configure" conftest.file`
3282 fi
3283 test "$2" = conftest.file
3284 ); then
3285 am_build_env_is_sane=yes
3286 break
3287 fi
3288 # Just in case.
3289 sleep "$am_cv_filesystem_timestamp_resolution"
3290 am_has_slept=yes
3291 done
3292
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3294 printf "%s\n" "$am_build_env_is_sane" >&6; }
3295 if test "$am_build_env_is_sane" = no; then
3296 as_fn_error $? "newly created file is older than distributed files!
3297 Check your system clock" "$LINENO" 5
3298 fi
3299
3300 # If we didn't sleep, we still need to ensure time stamps of config.status and
3301 # generated files are strictly newer.
3302 am_sleep_pid=
3303 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3304 then :
3305
3306 else case e in #(
3307 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3308 am_sleep_pid=$!
3309 ;;
3310 esac
3311 fi
3312
3313 rm -f conftest.file
3314
3315 test "$program_prefix" != NONE &&
3316 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3317 # Use a double $ so make ignores it.
3318 test "$program_suffix" != NONE &&
3319 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3320 # Double any \ or $.
3321 # By default was 's,x,x', remove it if useless.
3322 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3323 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3324
3325
3326 # Expand $ac_aux_dir to an absolute path.
3327 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3328
3329
3330 if test x"${MISSING+set}" != xset; then
3331 MISSING="\${SHELL} '$am_aux_dir/missing'"
3332 fi
3333 # Use eval to expand $SHELL
3334 if eval "$MISSING --is-lightweight"; then
3335 am_missing_run="$MISSING "
3336 else
3337 am_missing_run=
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3339 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3340 fi
3341
3342 if test x"${install_sh+set}" != xset; then
3343 case $am_aux_dir in
3344 *\ * | *\ *)
3345 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3346 *)
3347 install_sh="\${SHELL} $am_aux_dir/install-sh"
3348 esac
3349 fi
3350
3351 # Installed binaries are usually stripped using 'strip' when the user
3352 # run "make install-strip". However 'strip' might not be the right
3353 # tool to use in cross-compilation environments, therefore Automake
3354 # will honor the 'STRIP' environment variable to overrule this program.
3355 if test "$cross_compiling" != no; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}strip; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_STRIP+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else case e in #(
3365 e) if test -n "$STRIP"; then
3366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi ;;
3388 esac
3389 fi
3390 STRIP=$ac_cv_prog_STRIP
3391 if test -n "$STRIP"; then
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3393 printf "%s\n" "$STRIP" >&6; }
3394 else
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_STRIP"; then
3402 ac_ct_STRIP=$STRIP
3403 # Extract the first word of "strip", so it can be a program name with args.
3404 set dummy strip; ac_word=$2
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 printf %s "checking for $ac_word... " >&6; }
3407 if test ${ac_cv_prog_ac_ct_STRIP+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else case e in #(
3411 e) if test -n "$ac_ct_STRIP"; then
3412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 case $as_dir in #(((
3419 '') as_dir=./ ;;
3420 */) ;;
3421 *) as_dir=$as_dir/ ;;
3422 esac
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_STRIP="strip"
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi ;;
3434 esac
3435 fi
3436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3437 if test -n "$ac_ct_STRIP"; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3439 printf "%s\n" "$ac_ct_STRIP" >&6; }
3440 else
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 printf "%s\n" "no" >&6; }
3443 fi
3444
3445 if test "x$ac_ct_STRIP" = x; then
3446 STRIP=":"
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454 STRIP=$ac_ct_STRIP
3455 fi
3456 else
3457 STRIP="$ac_cv_prog_STRIP"
3458 fi
3459
3460 fi
3461 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3462
3463
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3465 printf %s "checking for a race-free mkdir -p... " >&6; }
3466 if test -z "$MKDIR_P"; then
3467 if test ${ac_cv_path_mkdir+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else case e in #(
3471 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3473 do
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_prog in mkdir gmkdir; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3483 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3484 'mkdir ('*'coreutils) '* | \
3485 *'BusyBox '* | \
3486 'mkdir (fileutils) '4.1*)
3487 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3488 break 3;;
3489 esac
3490 done
3491 done
3492 done
3493 IFS=$as_save_IFS
3494 ;;
3495 esac
3496 fi
3497
3498 test -d ./--version && rmdir ./--version
3499 if test ${ac_cv_path_mkdir+y}; then
3500 MKDIR_P="$ac_cv_path_mkdir -p"
3501 else
3502 # As a last resort, use plain mkdir -p,
3503 # in the hope it doesn't have the bugs of ancient mkdir.
3504 MKDIR_P='mkdir -p'
3505 fi
3506 fi
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3508 printf "%s\n" "$MKDIR_P" >&6; }
3509
3510 for ac_prog in gawk mawk nawk awk
3511 do
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 printf %s "checking for $ac_word... " >&6; }
3516 if test ${ac_cv_prog_AWK+y}
3517 then :
3518 printf %s "(cached) " >&6
3519 else case e in #(
3520 e) if test -n "$AWK"; then
3521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 case $as_dir in #(((
3528 '') as_dir=./ ;;
3529 */) ;;
3530 *) as_dir=$as_dir/ ;;
3531 esac
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_AWK="$ac_prog"
3535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538 done
3539 done
3540 IFS=$as_save_IFS
3541
3542 fi ;;
3543 esac
3544 fi
3545 AWK=$ac_cv_prog_AWK
3546 if test -n "$AWK"; then
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3548 printf "%s\n" "$AWK" >&6; }
3549 else
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 printf "%s\n" "no" >&6; }
3552 fi
3553
3554
3555 test -n "$AWK" && break
3556 done
3557
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3559 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3560 set x ${MAKE-make}
3561 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3562 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3563 then :
3564 printf %s "(cached) " >&6
3565 else case e in #(
3566 e) cat >conftest.make <<\_ACEOF
3567 SHELL = /bin/sh
3568 all:
3569 @echo '@@@%%%=$(MAKE)=@@@%%%'
3570 _ACEOF
3571 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3572 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3573 *@@@%%%=?*=@@@%%%*)
3574 eval ac_cv_prog_make_${ac_make}_set=yes;;
3575 *)
3576 eval ac_cv_prog_make_${ac_make}_set=no;;
3577 esac
3578 rm -f conftest.make ;;
3579 esac
3580 fi
3581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583 printf "%s\n" "yes" >&6; }
3584 SET_MAKE=
3585 else
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 printf "%s\n" "no" >&6; }
3588 SET_MAKE="MAKE=${MAKE-make}"
3589 fi
3590
3591 rm -rf .tst 2>/dev/null
3592 mkdir .tst 2>/dev/null
3593 if test -d .tst; then
3594 am__leading_dot=.
3595 else
3596 am__leading_dot=_
3597 fi
3598 rmdir .tst 2>/dev/null
3599
3600 AM_DEFAULT_VERBOSITY=1
3601 # Check whether --enable-silent-rules was given.
3602 if test ${enable_silent_rules+y}
3603 then :
3604 enableval=$enable_silent_rules;
3605 fi
3606
3607 am_make=${MAKE-make}
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3609 printf %s "checking whether $am_make supports nested variables... " >&6; }
3610 if test ${am_cv_make_support_nested_variables+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else case e in #(
3614 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3615 BAR0=false
3616 BAR1=true
3617 V=1
3618 am__doit:
3619 @$(TRUE)
3620 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3621 am_cv_make_support_nested_variables=yes
3622 else
3623 am_cv_make_support_nested_variables=no
3624 fi ;;
3625 esac
3626 fi
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3628 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3629 AM_BACKSLASH='\'
3630
3631 am__rm_f_notfound=
3632 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3633 then :
3634
3635 else case e in #(
3636 e) am__rm_f_notfound='""' ;;
3637 esac
3638 fi
3639
3640
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3642 printf %s "checking xargs -n works... " >&6; }
3643 if test ${am_cv_xargs_n_works+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3648 3"
3649 then :
3650 am_cv_xargs_n_works=yes
3651 else case e in #(
3652 e) am_cv_xargs_n_works=no ;;
3653 esac
3654 fi ;;
3655 esac
3656 fi
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3658 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3659 if test "$am_cv_xargs_n_works" = yes
3660 then :
3661 am__xargs_n='xargs -n'
3662 else case e in #(
3663 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3664 ;;
3665 esac
3666 fi
3667
3668 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3669 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3670 # is not polluted with repeated "-I."
3671 am__isrc=' -I$(srcdir)'
3672 # test to see if srcdir already configured
3673 if test -f $srcdir/config.status; then
3674 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3675 fi
3676 fi
3677
3678 # test whether we have cygpath
3679 if test -z "$CYGPATH_W"; then
3680 if (cygpath --version) >/dev/null 2>/dev/null; then
3681 CYGPATH_W='cygpath -w'
3682 else
3683 CYGPATH_W=echo
3684 fi
3685 fi
3686
3687
3688 # Define the identity of the package.
3689 PACKAGE='isl-interface'
3690 VERSION='0'
3691
3692
3693 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3694
3695
3696 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3697
3698 # Some tools Automake needs.
3699
3700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3701
3702
3703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3704
3705
3706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3707
3708
3709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3710
3711
3712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3713
3714 # For better backward compatibility. To be removed once Automake 1.9.x
3715 # dies out for good. For more background, see:
3716 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3717 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3718 mkdir_p='$(MKDIR_P)'
3719
3720 # We need awk for the "check" target (and possibly the TAP driver). The
3721 # system "awk" is bad on some platforms.
3722 # Always define AMTAR for backward compatibility. Yes, it's still used
3723 # in the wild :-( We should find a proper way to deprecate it ...
3724 AMTAR='$${TAR-tar}'
3725
3726
3727 # We'll loop over all known methods to create a tar archive until one works.
3728 _am_tools='gnutar plaintar pax cpio none'
3729
3730 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3731 # There is notably a 21 bits limit for the UID and the GID. In fact,
3732 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3733 # and bug#13588).
3734 am_max_uid=2097151 # 2^21 - 1
3735 am_max_gid=$am_max_uid
3736 # The $UID and $GID variables are not portable, so we need to resort
3737 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3738 # below are definitely unexpected, so allow the users to see them
3739 # (that is, avoid stderr redirection).
3740 am_uid=`id -u || echo unknown`
3741 am_gid=`id -g || echo unknown`
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3743 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3744 if test x$am_uid = xunknown; then
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3746 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3747 elif test $am_uid -le $am_max_uid; then
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 printf "%s\n" "yes" >&6; }
3750 else
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 printf "%s\n" "no" >&6; }
3753 _am_tools=none
3754 fi
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3756 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3757 if test x$gm_gid = xunknown; then
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3759 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3760 elif test $am_gid -le $am_max_gid; then
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 printf "%s\n" "yes" >&6; }
3763 else
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 printf "%s\n" "no" >&6; }
3766 _am_tools=none
3767 fi
3768
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3770 printf %s "checking how to create a ustar tar archive... " >&6; }
3771
3772 # Go ahead even if we have the value already cached. We do so because we
3773 # need to set the values for the 'am__tar' and 'am__untar' variables.
3774 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3775
3776 for _am_tool in $_am_tools; do
3777 case $_am_tool in
3778 gnutar)
3779 for _am_tar in tar gnutar gtar; do
3780 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3781 ($_am_tar --version) >&5 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } && break
3785 done
3786 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3787 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3788 am__untar="$_am_tar -xf -"
3789 ;;
3790 plaintar)
3791 # Must skip GNU tar: if it does not support --format= it doesn't create
3792 # ustar tarball either.
3793 (tar --version) >/dev/null 2>&1 && continue
3794 am__tar='tar chf - "$$tardir"'
3795 am__tar_='tar chf - "$tardir"'
3796 am__untar='tar xf -'
3797 ;;
3798 pax)
3799 am__tar='pax -L -x ustar -w "$$tardir"'
3800 am__tar_='pax -L -x ustar -w "$tardir"'
3801 am__untar='pax -r'
3802 ;;
3803 cpio)
3804 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3805 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3806 am__untar='cpio -i -H ustar -d'
3807 ;;
3808 none)
3809 am__tar=false
3810 am__tar_=false
3811 am__untar=false
3812 ;;
3813 esac
3814
3815 # If the value was cached, stop now. We just wanted to have am__tar
3816 # and am__untar set.
3817 test -n "${am_cv_prog_tar_ustar}" && break
3818
3819 # tar/untar a dummy directory, and stop if the command works.
3820 rm -rf conftest.dir
3821 mkdir conftest.dir
3822 echo GrepMe > conftest.dir/file
3823 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3824 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3828 rm -rf conftest.dir
3829 if test -s conftest.tar; then
3830 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3831 ($am__untar <conftest.tar) >&5 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3836 (cat conftest.dir/file) >&5 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }
3840 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3841 fi
3842 done
3843 rm -rf conftest.dir
3844
3845 if test ${am_cv_prog_tar_ustar+y}
3846 then :
3847 printf %s "(cached) " >&6
3848 else case e in #(
3849 e) am_cv_prog_tar_ustar=$_am_tool ;;
3850 esac
3851 fi
3852
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3854 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3855
3856
3857
3858
3859
3860 # Variables for tags utilities; see am/tags.am
3861 if test -z "$CTAGS"; then
3862 CTAGS=ctags
3863 fi
3864
3865 if test -z "$ETAGS"; then
3866 ETAGS=etags
3867 fi
3868
3869 if test -z "$CSCOPE"; then
3870 CSCOPE=cscope
3871 fi
3872
3873
3874
3875
3876
3877
3878
3879
3880 AM_DEFAULT_VERBOSITY=0
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 ac_ext=cpp
3891 ac_cpp='$CXXCPP $CPPFLAGS'
3892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3895 if test -z "$CXX"; then
3896 if test -n "$CCC"; then
3897 CXX=$CCC
3898 else
3899 if test -n "$ac_tool_prefix"; then
3900 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3901 do
3902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 printf %s "checking for $ac_word... " >&6; }
3906 if test ${ac_cv_prog_CXX+y}
3907 then :
3908 printf %s "(cached) " >&6
3909 else case e in #(
3910 e) if test -n "$CXX"; then
3911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 case $as_dir in #(((
3918 '') as_dir=./ ;;
3919 */) ;;
3920 *) as_dir=$as_dir/ ;;
3921 esac
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928 done
3929 done
3930 IFS=$as_save_IFS
3931
3932 fi ;;
3933 esac
3934 fi
3935 CXX=$ac_cv_prog_CXX
3936 if test -n "$CXX"; then
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3938 printf "%s\n" "$CXX" >&6; }
3939 else
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 printf "%s\n" "no" >&6; }
3942 fi
3943
3944
3945 test -n "$CXX" && break
3946 done
3947 fi
3948 if test -z "$CXX"; then
3949 ac_ct_CXX=$CXX
3950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3951 do
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 printf %s "checking for $ac_word... " >&6; }
3956 if test ${ac_cv_prog_ac_ct_CXX+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else case e in #(
3960 e) if test -n "$ac_ct_CXX"; then
3961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 case $as_dir in #(((
3968 '') as_dir=./ ;;
3969 */) ;;
3970 *) as_dir=$as_dir/ ;;
3971 esac
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi ;;
3983 esac
3984 fi
3985 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3986 if test -n "$ac_ct_CXX"; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3988 printf "%s\n" "$ac_ct_CXX" >&6; }
3989 else
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf "%s\n" "no" >&6; }
3992 fi
3993
3994
3995 test -n "$ac_ct_CXX" && break
3996 done
3997
3998 if test "x$ac_ct_CXX" = x; then
3999 CXX="g++"
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002 yes:)
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4006 esac
4007 CXX=$ac_ct_CXX
4008 fi
4009 fi
4010
4011 fi
4012 fi
4013 # Provide some information about the compiler.
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4015 set X $ac_compile
4016 ac_compiler=$2
4017 for ac_option in --version -v -V -qversion; do
4018 { { ac_try="$ac_compiler $ac_option >&5"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 printf "%s\n" "$ac_try_echo"; } >&5
4025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4026 ac_status=$?
4027 if test -s conftest.err; then
4028 sed '10a\
4029 ... rest of stderr output deleted ...
4030 10q' conftest.err >conftest.er1
4031 cat conftest.er1 >&5
4032 fi
4033 rm -f conftest.er1 conftest.err
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4036 done
4037
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main (void)
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 ac_clean_files_save=$ac_clean_files
4050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4051 # Try to create an executable without -o first, disregard a.out.
4052 # It will help us diagnose broken compilers, and finding out an intuition
4053 # of exeext.
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4055 printf %s "checking whether the C++ compiler works... " >&6; }
4056 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4057
4058 # The possible output files:
4059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4060
4061 ac_rmfiles=
4062 for ac_file in $ac_files
4063 do
4064 case $ac_file in
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4067 esac
4068 done
4069 rm -f $ac_rmfiles
4070
4071 if { { ac_try="$ac_link_default"
4072 case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075 esac
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 printf "%s\n" "$ac_try_echo"; } >&5
4078 (eval "$ac_link_default") 2>&5
4079 ac_status=$?
4080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4082 then :
4083 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4084 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4086 # so that the user can short-circuit this test for compilers unknown to
4087 # Autoconf.
4088 for ac_file in $ac_files ''
4089 do
4090 test -f "$ac_file" || continue
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4093 ;;
4094 [ab].out )
4095 # We found the default executable, but exeext='' is most
4096 # certainly right.
4097 break;;
4098 *.* )
4099 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4100 then :; else
4101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102 fi
4103 # We set ac_cv_exeext here because the later test for it is not
4104 # safe: cross compilers may not add the suffix if given an '-o'
4105 # argument, so we may need to know it at that point already.
4106 # Even if this section looks crufty: it has the advantage of
4107 # actually working.
4108 break;;
4109 * )
4110 break;;
4111 esac
4112 done
4113 test "$ac_cv_exeext" = no && ac_cv_exeext=
4114
4115 else case e in #(
4116 e) ac_file='' ;;
4117 esac
4118 fi
4119 if test -z "$ac_file"
4120 then :
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 printf "%s\n" "no" >&6; }
4123 printf "%s\n" "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4128 as_fn_error 77 "C++ compiler cannot create executables
4129 See 'config.log' for more details" "$LINENO" 5; }
4130 else case e in #(
4131 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132 printf "%s\n" "yes" >&6; } ;;
4133 esac
4134 fi
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4136 printf %s "checking for C++ compiler default output file name... " >&6; }
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4138 printf "%s\n" "$ac_file" >&6; }
4139 ac_exeext=$ac_cv_exeext
4140
4141 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4142 ac_clean_files=$ac_clean_files_save
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4144 printf %s "checking for suffix of executables... " >&6; }
4145 if { { ac_try="$ac_link"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 printf "%s\n" "$ac_try_echo"; } >&5
4152 (eval "$ac_link") 2>&5
4153 ac_status=$?
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 test $ac_status = 0; }
4156 then :
4157 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4158 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4159 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4160 # 'rm'.
4161 for ac_file in conftest.exe conftest conftest.*; do
4162 test -f "$ac_file" || continue
4163 case $ac_file in
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4166 break;;
4167 * ) break;;
4168 esac
4169 done
4170 else case e in #(
4171 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4172 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4173 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4174 See 'config.log' for more details" "$LINENO" 5; } ;;
4175 esac
4176 fi
4177 rm -f conftest conftest$ac_cv_exeext
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4179 printf "%s\n" "$ac_cv_exeext" >&6; }
4180
4181 rm -f conftest.$ac_ext
4182 EXEEXT=$ac_cv_exeext
4183 ac_exeext=$EXEEXT
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdio.h>
4187 int
4188 main (void)
4189 {
4190 FILE *f = fopen ("conftest.out", "w");
4191 if (!f)
4192 return 1;
4193 return ferror (f) || fclose (f) != 0;
4194
4195 ;
4196 return 0;
4197 }
4198 _ACEOF
4199 ac_clean_files="$ac_clean_files conftest.out"
4200 # Check that the compiler produces executables we can run. If not, either
4201 # the compiler is broken, or we cross compile.
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4203 printf %s "checking whether we are cross compiling... " >&6; }
4204 if test "$cross_compiling" != yes; then
4205 { { ac_try="$ac_link"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211 printf "%s\n" "$ac_try_echo"; } >&5
4212 (eval "$ac_link") 2>&5
4213 ac_status=$?
4214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4216 if { ac_try='./conftest$ac_cv_exeext'
4217 { { case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 printf "%s\n" "$ac_try_echo"; } >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; }; then
4227 cross_compiling=no
4228 else
4229 if test "$cross_compiling" = maybe; then
4230 cross_compiling=yes
4231 else
4232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4234 as_fn_error 77 "cannot run C++ compiled programs.
4235 If you meant to cross compile, use '--host'.
4236 See 'config.log' for more details" "$LINENO" 5; }
4237 fi
4238 fi
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4241 printf "%s\n" "$cross_compiling" >&6; }
4242
4243 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4244 conftest.o conftest.obj conftest.out
4245 ac_clean_files=$ac_clean_files_save
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4247 printf %s "checking for suffix of object files... " >&6; }
4248 if test ${ac_cv_objext+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else case e in #(
4252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254
4255 int
4256 main (void)
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.o conftest.obj
4264 if { { ac_try="$ac_compile"
4265 case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 printf "%s\n" "$ac_try_echo"; } >&5
4271 (eval "$ac_compile") 2>&5
4272 ac_status=$?
4273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }
4275 then :
4276 for ac_file in conftest.o conftest.obj conftest.*; do
4277 test -f "$ac_file" || continue;
4278 case $ac_file in
4279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4281 break;;
4282 esac
4283 done
4284 else case e in #(
4285 e) printf "%s\n" "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4289 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4290 as_fn_error $? "cannot compute suffix of object files: cannot compile
4291 See 'config.log' for more details" "$LINENO" 5; } ;;
4292 esac
4293 fi
4294 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4295 esac
4296 fi
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 printf "%s\n" "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4302 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4303 if test ${ac_cv_cxx_compiler_gnu+y}
4304 then :
4305 printf %s "(cached) " >&6
4306 else case e in #(
4307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309
4310 int
4311 main (void)
4312 {
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_cxx_try_compile "$LINENO"
4322 then :
4323 ac_compiler_gnu=yes
4324 else case e in #(
4325 e) ac_compiler_gnu=no ;;
4326 esac
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330 ;;
4331 esac
4332 fi
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4334 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4336
4337 if test $ac_compiler_gnu = yes; then
4338 GXX=yes
4339 else
4340 GXX=
4341 fi
4342 ac_test_CXXFLAGS=${CXXFLAGS+y}
4343 ac_save_CXXFLAGS=$CXXFLAGS
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4345 printf %s "checking whether $CXX accepts -g... " >&6; }
4346 if test ${ac_cv_prog_cxx_g+y}
4347 then :
4348 printf %s "(cached) " >&6
4349 else case e in #(
4350 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4351 ac_cxx_werror_flag=yes
4352 ac_cv_prog_cxx_g=no
4353 CXXFLAGS="-g"
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356
4357 int
4358 main (void)
4359 {
4360
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_cxx_try_compile "$LINENO"
4366 then :
4367 ac_cv_prog_cxx_g=yes
4368 else case e in #(
4369 e) CXXFLAGS=""
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372
4373 int
4374 main (void)
4375 {
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 if ac_fn_cxx_try_compile "$LINENO"
4382 then :
4383
4384 else case e in #(
4385 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386 CXXFLAGS="-g"
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389
4390 int
4391 main (void)
4392 {
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_cxx_try_compile "$LINENO"
4399 then :
4400 ac_cv_prog_cxx_g=yes
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4403 esac
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4406 esac
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4410 esac
4411 fi
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4413 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4414 if test $ac_test_CXXFLAGS; then
4415 CXXFLAGS=$ac_save_CXXFLAGS
4416 elif test $ac_cv_prog_cxx_g = yes; then
4417 if test "$GXX" = yes; then
4418 CXXFLAGS="-g -O2"
4419 else
4420 CXXFLAGS="-g"
4421 fi
4422 else
4423 if test "$GXX" = yes; then
4424 CXXFLAGS="-O2"
4425 else
4426 CXXFLAGS=
4427 fi
4428 fi
4429 ac_prog_cxx_stdcxx=no
4430 if test x$ac_prog_cxx_stdcxx = xno
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4433 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4434 if test ${ac_cv_prog_cxx_cxx11+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else case e in #(
4438 e) ac_cv_prog_cxx_cxx11=no
4439 ac_save_CXX=$CXX
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 $ac_cxx_conftest_cxx11_program
4443 _ACEOF
4444 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4445 do
4446 CXX="$ac_save_CXX $ac_arg"
4447 if ac_fn_cxx_try_compile "$LINENO"
4448 then :
4449 ac_cv_prog_cxx_cxx11=$ac_arg
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.beam
4452 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4453 done
4454 rm -f conftest.$ac_ext
4455 CXX=$ac_save_CXX ;;
4456 esac
4457 fi
4458
4459 if test "x$ac_cv_prog_cxx_cxx11" = xno
4460 then :
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4462 printf "%s\n" "unsupported" >&6; }
4463 else case e in #(
4464 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4465 then :
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4467 printf "%s\n" "none needed" >&6; }
4468 else case e in #(
4469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4470 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4471 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4472 esac
4473 fi
4474 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4475 ac_prog_cxx_stdcxx=cxx11 ;;
4476 esac
4477 fi
4478 fi
4479 if test x$ac_prog_cxx_stdcxx = xno
4480 then :
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4482 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4483 if test ${ac_cv_prog_cxx_cxx98+y}
4484 then :
4485 printf %s "(cached) " >&6
4486 else case e in #(
4487 e) ac_cv_prog_cxx_cxx98=no
4488 ac_save_CXX=$CXX
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 $ac_cxx_conftest_cxx98_program
4492 _ACEOF
4493 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4494 do
4495 CXX="$ac_save_CXX $ac_arg"
4496 if ac_fn_cxx_try_compile "$LINENO"
4497 then :
4498 ac_cv_prog_cxx_cxx98=$ac_arg
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.beam
4501 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4502 done
4503 rm -f conftest.$ac_ext
4504 CXX=$ac_save_CXX ;;
4505 esac
4506 fi
4507
4508 if test "x$ac_cv_prog_cxx_cxx98" = xno
4509 then :
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4511 printf "%s\n" "unsupported" >&6; }
4512 else case e in #(
4513 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4514 then :
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516 printf "%s\n" "none needed" >&6; }
4517 else case e in #(
4518 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4519 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4520 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4521 esac
4522 fi
4523 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4524 ac_prog_cxx_stdcxx=cxx98 ;;
4525 esac
4526 fi
4527 fi
4528
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 DEPDIR="${am__leading_dot}deps"
4535
4536 ac_config_commands="$ac_config_commands depfiles"
4537
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4539 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4540 cat > confinc.mk << 'END'
4541 am__doit:
4542 @echo this is the am__doit target >confinc.out
4543 .PHONY: am__doit
4544 END
4545 am__include="#"
4546 am__quote=
4547 # BSD make does it like this.
4548 echo '.include "confinc.mk" # ignored' > confmf.BSD
4549 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4550 echo 'include confinc.mk # ignored' > confmf.GNU
4551 _am_result=no
4552 for s in GNU BSD; do
4553 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4554 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4558 case $?:`cat confinc.out 2>/dev/null` in #(
4559 '0:this is the am__doit target') :
4560 case $s in #(
4561 BSD) :
4562 am__include='.include' am__quote='"' ;; #(
4563 *) :
4564 am__include='include' am__quote='' ;;
4565 esac ;; #(
4566 *) :
4567 ;;
4568 esac
4569 if test "$am__include" != "#"; then
4570 _am_result="yes ($s style)"
4571 break
4572 fi
4573 done
4574 rm -f confinc.* confmf.*
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4576 printf "%s\n" "${_am_result}" >&6; }
4577
4578 # Check whether --enable-dependency-tracking was given.
4579 if test ${enable_dependency_tracking+y}
4580 then :
4581 enableval=$enable_dependency_tracking;
4582 fi
4583
4584 if test "x$enable_dependency_tracking" != xno; then
4585 am_depcomp="$ac_aux_dir/depcomp"
4586 AMDEPBACKSLASH='\'
4587 am__nodep='_no'
4588 fi
4589 if test "x$enable_dependency_tracking" != xno; then
4590 AMDEP_TRUE=
4591 AMDEP_FALSE='#'
4592 else
4593 AMDEP_TRUE='#'
4594 AMDEP_FALSE=
4595 fi
4596
4597
4598
4599 depcc="$CXX" am_compiler_list=
4600
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4602 printf %s "checking dependency style of $depcc... " >&6; }
4603 if test ${am_cv_CXX_dependencies_compiler_type+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else case e in #(
4607 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4608 # We make a subdir and do the tests there. Otherwise we can end up
4609 # making bogus files that we don't know about and never remove. For
4610 # instance it was reported that on HP-UX the gcc test will end up
4611 # making a dummy file named 'D' -- because '-MD' means "put the output
4612 # in D".
4613 rm -rf conftest.dir
4614 mkdir conftest.dir
4615 # Copy depcomp to subdir because otherwise we won't find it if we're
4616 # using a relative directory.
4617 cp "$am_depcomp" conftest.dir
4618 cd conftest.dir
4619 # We will build objects and dependencies in a subdirectory because
4620 # it helps to detect inapplicable dependency modes. For instance
4621 # both Tru64's cc and ICC support -MD to output dependencies as a
4622 # side effect of compilation, but ICC will put the dependencies in
4623 # the current directory while Tru64 will put them in the object
4624 # directory.
4625 mkdir sub
4626
4627 am_cv_CXX_dependencies_compiler_type=none
4628 if test "$am_compiler_list" = ""; then
4629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4630 fi
4631 am__universal=false
4632 case " $depcc " in #(
4633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4634 esac
4635
4636 for depmode in $am_compiler_list; do
4637 # Setup a source with many dependencies, because some compilers
4638 # like to wrap large dependency lists on column 80 (with \), and
4639 # we should not choose a depcomp mode which is confused by this.
4640 #
4641 # We need to recreate these files for each test, as the compiler may
4642 # overwrite some of them when testing with obscure command lines.
4643 # This happens at least with the AIX C compiler.
4644 : > sub/conftest.c
4645 for i in 1 2 3 4 5 6; do
4646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4647 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4648 # Solaris 10 /bin/sh.
4649 echo '/* dummy */' > sub/conftst$i.h
4650 done
4651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4652
4653 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4654 # mode. It turns out that the SunPro C++ compiler does not properly
4655 # handle '-M -o', and we need to detect this. Also, some Intel
4656 # versions had trouble with output in subdirs.
4657 am__obj=sub/conftest.${OBJEXT-o}
4658 am__minus_obj="-o $am__obj"
4659 case $depmode in
4660 gcc)
4661 # This depmode causes a compiler race in universal mode.
4662 test "$am__universal" = false || continue
4663 ;;
4664 nosideeffect)
4665 # After this tag, mechanisms are not by side-effect, so they'll
4666 # only be used when explicitly requested.
4667 if test "x$enable_dependency_tracking" = xyes; then
4668 continue
4669 else
4670 break
4671 fi
4672 ;;
4673 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4674 # This compiler won't grok '-c -o', but also, the minuso test has
4675 # not run yet. These depmodes are late enough in the game, and
4676 # so weak that their functioning should not be impacted.
4677 am__obj=conftest.${OBJEXT-o}
4678 am__minus_obj=
4679 ;;
4680 none) break ;;
4681 esac
4682 if depmode=$depmode \
4683 source=sub/conftest.c object=$am__obj \
4684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4686 >/dev/null 2>conftest.err &&
4687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4691 # icc doesn't choke on unknown options, it will just issue warnings
4692 # or remarks (even with -Werror). So we grep stderr for any message
4693 # that says an option was ignored or not supported.
4694 # When given -MP, icc 7.0 and 7.1 complain thus:
4695 # icc: Command line warning: ignoring option '-M'; no argument required
4696 # The diagnosis changed in icc 8.0:
4697 # icc: Command line remark: option '-MP' not supported
4698 if (grep 'ignoring option' conftest.err ||
4699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4700 am_cv_CXX_dependencies_compiler_type=$depmode
4701 break
4702 fi
4703 fi
4704 done
4705
4706 cd ..
4707 rm -rf conftest.dir
4708 else
4709 am_cv_CXX_dependencies_compiler_type=none
4710 fi
4711 ;;
4712 esac
4713 fi
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4715 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4716 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4717
4718 if
4719 test "x$enable_dependency_tracking" != xno \
4720 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCXX_TRUE=
4722 am__fastdepCXX_FALSE='#'
4723 else
4724 am__fastdepCXX_TRUE='#'
4725 am__fastdepCXX_FALSE=
4726 fi
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 printf %s "checking for $ac_word... " >&6; }
4748 if test ${ac_cv_prog_CC+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else case e in #(
4752 e) if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 case $as_dir in #(((
4760 '') as_dir=./ ;;
4761 */) ;;
4762 *) as_dir=$as_dir/ ;;
4763 esac
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774 fi ;;
4775 esac
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 printf "%s\n" "$CC" >&6; }
4781 else
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 printf "%s\n" "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 if test -z "$ac_cv_prog_CC"; then
4789 ac_ct_CC=$CC
4790 # Extract the first word of "gcc", so it can be a program name with args.
4791 set dummy gcc; ac_word=$2
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 printf %s "checking for $ac_word... " >&6; }
4794 if test ${ac_cv_prog_ac_ct_CC+y}
4795 then :
4796 printf %s "(cached) " >&6
4797 else case e in #(
4798 e) if test -n "$ac_ct_CC"; then
4799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 case $as_dir in #(((
4806 '') as_dir=./ ;;
4807 */) ;;
4808 *) as_dir=$as_dir/ ;;
4809 esac
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_ac_ct_CC="gcc"
4813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 fi ;;
4821 esac
4822 fi
4823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4824 if test -n "$ac_ct_CC"; then
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4826 printf "%s\n" "$ac_ct_CC" >&6; }
4827 else
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 printf "%s\n" "no" >&6; }
4830 fi
4831
4832 if test "x$ac_ct_CC" = x; then
4833 CC=""
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836 yes:)
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4838 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4839 ac_tool_warned=yes ;;
4840 esac
4841 CC=$ac_ct_CC
4842 fi
4843 else
4844 CC="$ac_cv_prog_CC"
4845 fi
4846
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}cc; ac_word=$2
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 printf %s "checking for $ac_word... " >&6; }
4853 if test ${ac_cv_prog_CC+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else case e in #(
4857 e) if test -n "$CC"; then
4858 ac_cv_prog_CC="$CC" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 case $as_dir in #(((
4865 '') as_dir=./ ;;
4866 */) ;;
4867 *) as_dir=$as_dir/ ;;
4868 esac
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_CC="${ac_tool_prefix}cc"
4872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi ;;
4880 esac
4881 fi
4882 CC=$ac_cv_prog_CC
4883 if test -n "$CC"; then
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4885 printf "%s\n" "$CC" >&6; }
4886 else
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 printf "%s\n" "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 fi
4894 if test -z "$CC"; then
4895 # Extract the first word of "cc", so it can be a program name with args.
4896 set dummy cc; ac_word=$2
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 printf %s "checking for $ac_word... " >&6; }
4899 if test ${ac_cv_prog_CC+y}
4900 then :
4901 printf %s "(cached) " >&6
4902 else case e in #(
4903 e) if test -n "$CC"; then
4904 ac_cv_prog_CC="$CC" # Let the user override the test.
4905 else
4906 ac_prog_rejected=no
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910 IFS=$as_save_IFS
4911 case $as_dir in #(((
4912 '') as_dir=./ ;;
4913 */) ;;
4914 *) as_dir=$as_dir/ ;;
4915 esac
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4918 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919 ac_prog_rejected=yes
4920 continue
4921 fi
4922 ac_cv_prog_CC="cc"
4923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 if test $ac_prog_rejected = yes; then
4931 # We found a bogon in the path, so make sure we never use it.
4932 set dummy $ac_cv_prog_CC
4933 shift
4934 if test $# != 0; then
4935 # We chose a different compiler from the bogus one.
4936 # However, it has the same basename, so the bogon will be chosen
4937 # first if we set CC to just the basename; use the full file name.
4938 shift
4939 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4940 fi
4941 fi
4942 fi ;;
4943 esac
4944 fi
4945 CC=$ac_cv_prog_CC
4946 if test -n "$CC"; then
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4948 printf "%s\n" "$CC" >&6; }
4949 else
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 printf "%s\n" "no" >&6; }
4952 fi
4953
4954
4955 fi
4956 if test -z "$CC"; then
4957 if test -n "$ac_tool_prefix"; then
4958 for ac_prog in cl.exe
4959 do
4960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 printf %s "checking for $ac_word... " >&6; }
4964 if test ${ac_cv_prog_CC+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else case e in #(
4968 e) if test -n "$CC"; then
4969 ac_cv_prog_CC="$CC" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974 IFS=$as_save_IFS
4975 case $as_dir in #(((
4976 '') as_dir=./ ;;
4977 */) ;;
4978 *) as_dir=$as_dir/ ;;
4979 esac
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990 fi ;;
4991 esac
4992 fi
4993 CC=$ac_cv_prog_CC
4994 if test -n "$CC"; then
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4996 printf "%s\n" "$CC" >&6; }
4997 else
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 printf "%s\n" "no" >&6; }
5000 fi
5001
5002
5003 test -n "$CC" && break
5004 done
5005 fi
5006 if test -z "$CC"; then
5007 ac_ct_CC=$CC
5008 for ac_prog in cl.exe
5009 do
5010 # Extract the first word of "$ac_prog", so it can be a program name with args.
5011 set dummy $ac_prog; ac_word=$2
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 printf %s "checking for $ac_word... " >&6; }
5014 if test ${ac_cv_prog_ac_ct_CC+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else case e in #(
5018 e) if test -n "$ac_ct_CC"; then
5019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 case $as_dir in #(((
5026 '') as_dir=./ ;;
5027 */) ;;
5028 *) as_dir=$as_dir/ ;;
5029 esac
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_ac_ct_CC="$ac_prog"
5033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi ;;
5041 esac
5042 fi
5043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5044 if test -n "$ac_ct_CC"; then
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5046 printf "%s\n" "$ac_ct_CC" >&6; }
5047 else
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 printf "%s\n" "no" >&6; }
5050 fi
5051
5052
5053 test -n "$ac_ct_CC" && break
5054 done
5055
5056 if test "x$ac_ct_CC" = x; then
5057 CC=""
5058 else
5059 case $cross_compiling:$ac_tool_warned in
5060 yes:)
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5064 esac
5065 CC=$ac_ct_CC
5066 fi
5067 fi
5068
5069 fi
5070 if test -z "$CC"; then
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}clang; ac_word=$2
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 printf %s "checking for $ac_word... " >&6; }
5076 if test ${ac_cv_prog_CC+y}
5077 then :
5078 printf %s "(cached) " >&6
5079 else case e in #(
5080 e) if test -n "$CC"; then
5081 ac_cv_prog_CC="$CC" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086 IFS=$as_save_IFS
5087 case $as_dir in #(((
5088 '') as_dir=./ ;;
5089 */) ;;
5090 *) as_dir=$as_dir/ ;;
5091 esac
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_CC="${ac_tool_prefix}clang"
5095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi ;;
5103 esac
5104 fi
5105 CC=$ac_cv_prog_CC
5106 if test -n "$CC"; then
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5108 printf "%s\n" "$CC" >&6; }
5109 else
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 printf "%s\n" "no" >&6; }
5112 fi
5113
5114
5115 fi
5116 if test -z "$ac_cv_prog_CC"; then
5117 ac_ct_CC=$CC
5118 # Extract the first word of "clang", so it can be a program name with args.
5119 set dummy clang; ac_word=$2
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 printf %s "checking for $ac_word... " >&6; }
5122 if test ${ac_cv_prog_ac_ct_CC+y}
5123 then :
5124 printf %s "(cached) " >&6
5125 else case e in #(
5126 e) if test -n "$ac_ct_CC"; then
5127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 case $as_dir in #(((
5134 '') as_dir=./ ;;
5135 */) ;;
5136 *) as_dir=$as_dir/ ;;
5137 esac
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_ac_ct_CC="clang"
5141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi ;;
5149 esac
5150 fi
5151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152 if test -n "$ac_ct_CC"; then
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154 printf "%s\n" "$ac_ct_CC" >&6; }
5155 else
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 printf "%s\n" "no" >&6; }
5158 fi
5159
5160 if test "x$ac_ct_CC" = x; then
5161 CC=""
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169 CC=$ac_ct_CC
5170 fi
5171 else
5172 CC="$ac_cv_prog_CC"
5173 fi
5174
5175 fi
5176
5177
5178 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5179 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5180 as_fn_error $? "no acceptable C compiler found in \$PATH
5181 See 'config.log' for more details" "$LINENO" 5; }
5182
5183 # Provide some information about the compiler.
5184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5185 set X $ac_compile
5186 ac_compiler=$2
5187 for ac_option in --version -v -V -qversion -version; do
5188 { { ac_try="$ac_compiler $ac_option >&5"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194 printf "%s\n" "$ac_try_echo"; } >&5
5195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5196 ac_status=$?
5197 if test -s conftest.err; then
5198 sed '10a\
5199 ... rest of stderr output deleted ...
5200 10q' conftest.err >conftest.er1
5201 cat conftest.er1 >&5
5202 fi
5203 rm -f conftest.er1 conftest.err
5204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5205 test $ac_status = 0; }
5206 done
5207
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5209 printf %s "checking whether the compiler supports GNU C... " >&6; }
5210 if test ${ac_cv_c_compiler_gnu+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else case e in #(
5214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 int
5218 main (void)
5219 {
5220 #ifndef __GNUC__
5221 choke me
5222 #endif
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"
5229 then :
5230 ac_compiler_gnu=yes
5231 else case e in #(
5232 e) ac_compiler_gnu=no ;;
5233 esac
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5237 ;;
5238 esac
5239 fi
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5241 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243
5244 if test $ac_compiler_gnu = yes; then
5245 GCC=yes
5246 else
5247 GCC=
5248 fi
5249 ac_test_CFLAGS=${CFLAGS+y}
5250 ac_save_CFLAGS=$CFLAGS
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5252 printf %s "checking whether $CC accepts -g... " >&6; }
5253 if test ${ac_cv_prog_cc_g+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else case e in #(
5257 e) ac_save_c_werror_flag=$ac_c_werror_flag
5258 ac_c_werror_flag=yes
5259 ac_cv_prog_cc_g=no
5260 CFLAGS="-g"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263
5264 int
5265 main (void)
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"
5273 then :
5274 ac_cv_prog_cc_g=yes
5275 else case e in #(
5276 e) CFLAGS=""
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279
5280 int
5281 main (void)
5282 {
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"
5289 then :
5290
5291 else case e in #(
5292 e) ac_c_werror_flag=$ac_save_c_werror_flag
5293 CFLAGS="-g"
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296
5297 int
5298 main (void)
5299 {
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"
5306 then :
5307 ac_cv_prog_cc_g=yes
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5310 esac
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5313 esac
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5316 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5317 esac
5318 fi
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5320 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5321 if test $ac_test_CFLAGS; then
5322 CFLAGS=$ac_save_CFLAGS
5323 elif test $ac_cv_prog_cc_g = yes; then
5324 if test "$GCC" = yes; then
5325 CFLAGS="-g -O2"
5326 else
5327 CFLAGS="-g"
5328 fi
5329 else
5330 if test "$GCC" = yes; then
5331 CFLAGS="-O2"
5332 else
5333 CFLAGS=
5334 fi
5335 fi
5336 ac_prog_cc_stdc=no
5337 if test x$ac_prog_cc_stdc = xno
5338 then :
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5340 printf %s "checking for $CC option to enable C11 features... " >&6; }
5341 if test ${ac_cv_prog_cc_c11+y}
5342 then :
5343 printf %s "(cached) " >&6
5344 else case e in #(
5345 e) ac_cv_prog_cc_c11=no
5346 ac_save_CC=$CC
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 $ac_c_conftest_c11_program
5350 _ACEOF
5351 for ac_arg in '' -std=gnu11
5352 do
5353 CC="$ac_save_CC $ac_arg"
5354 if ac_fn_c_try_compile "$LINENO"
5355 then :
5356 ac_cv_prog_cc_c11=$ac_arg
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.beam
5359 test "x$ac_cv_prog_cc_c11" != "xno" && break
5360 done
5361 rm -f conftest.$ac_ext
5362 CC=$ac_save_CC ;;
5363 esac
5364 fi
5365
5366 if test "x$ac_cv_prog_cc_c11" = xno
5367 then :
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5369 printf "%s\n" "unsupported" >&6; }
5370 else case e in #(
5371 e) if test "x$ac_cv_prog_cc_c11" = x
5372 then :
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5374 printf "%s\n" "none needed" >&6; }
5375 else case e in #(
5376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5377 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5378 CC="$CC $ac_cv_prog_cc_c11" ;;
5379 esac
5380 fi
5381 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5382 ac_prog_cc_stdc=c11 ;;
5383 esac
5384 fi
5385 fi
5386 if test x$ac_prog_cc_stdc = xno
5387 then :
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5389 printf %s "checking for $CC option to enable C99 features... " >&6; }
5390 if test ${ac_cv_prog_cc_c99+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else case e in #(
5394 e) ac_cv_prog_cc_c99=no
5395 ac_save_CC=$CC
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 $ac_c_conftest_c99_program
5399 _ACEOF
5400 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5401 do
5402 CC="$ac_save_CC $ac_arg"
5403 if ac_fn_c_try_compile "$LINENO"
5404 then :
5405 ac_cv_prog_cc_c99=$ac_arg
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam
5408 test "x$ac_cv_prog_cc_c99" != "xno" && break
5409 done
5410 rm -f conftest.$ac_ext
5411 CC=$ac_save_CC ;;
5412 esac
5413 fi
5414
5415 if test "x$ac_cv_prog_cc_c99" = xno
5416 then :
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5418 printf "%s\n" "unsupported" >&6; }
5419 else case e in #(
5420 e) if test "x$ac_cv_prog_cc_c99" = x
5421 then :
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5423 printf "%s\n" "none needed" >&6; }
5424 else case e in #(
5425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5426 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5427 CC="$CC $ac_cv_prog_cc_c99" ;;
5428 esac
5429 fi
5430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5431 ac_prog_cc_stdc=c99 ;;
5432 esac
5433 fi
5434 fi
5435 if test x$ac_prog_cc_stdc = xno
5436 then :
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5438 printf %s "checking for $CC option to enable C89 features... " >&6; }
5439 if test ${ac_cv_prog_cc_c89+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else case e in #(
5443 e) ac_cv_prog_cc_c89=no
5444 ac_save_CC=$CC
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 $ac_c_conftest_c89_program
5448 _ACEOF
5449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5450 do
5451 CC="$ac_save_CC $ac_arg"
5452 if ac_fn_c_try_compile "$LINENO"
5453 then :
5454 ac_cv_prog_cc_c89=$ac_arg
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.beam
5457 test "x$ac_cv_prog_cc_c89" != "xno" && break
5458 done
5459 rm -f conftest.$ac_ext
5460 CC=$ac_save_CC ;;
5461 esac
5462 fi
5463
5464 if test "x$ac_cv_prog_cc_c89" = xno
5465 then :
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5467 printf "%s\n" "unsupported" >&6; }
5468 else case e in #(
5469 e) if test "x$ac_cv_prog_cc_c89" = x
5470 then :
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5472 printf "%s\n" "none needed" >&6; }
5473 else case e in #(
5474 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5475 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5476 CC="$CC $ac_cv_prog_cc_c89" ;;
5477 esac
5478 fi
5479 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5480 ac_prog_cc_stdc=c89 ;;
5481 esac
5482 fi
5483 fi
5484
5485 ac_ext=c
5486 ac_cpp='$CPP $CPPFLAGS'
5487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5490
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5498 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5499 if test ${am_cv_prog_cc_c_o+y}
5500 then :
5501 printf %s "(cached) " >&6
5502 else case e in #(
5503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505
5506 int
5507 main (void)
5508 {
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 # Make sure it works both with $CC and with simple cc.
5515 # Following AC_PROG_CC_C_O, we do the test twice because some
5516 # compilers refuse to overwrite an existing .o file with -o,
5517 # though they will create one.
5518 am_cv_prog_cc_c_o=yes
5519 for am_i in 1 2; do
5520 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5521 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } \
5525 && test -f conftest2.$ac_objext; then
5526 : OK
5527 else
5528 am_cv_prog_cc_c_o=no
5529 break
5530 fi
5531 done
5532 # aligned with autoconf, so not including core; see bug#72225.
5533 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5534 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5535 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5536 unset am_i ;;
5537 esac
5538 fi
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5540 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5541 if test "$am_cv_prog_cc_c_o" != yes; then
5542 # Losing compiler, so override with the script.
5543 # FIXME: It is wrong to rewrite CC.
5544 # But if we don't then we get into trouble of one sort or another.
5545 # A longer-term fix would be to have automake use am__CC in this case,
5546 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5547 CC="$am_aux_dir/compile $CC"
5548 fi
5549 ac_ext=c
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554
5555
5556 depcc="$CC" am_compiler_list=
5557
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5559 printf %s "checking dependency style of $depcc... " >&6; }
5560 if test ${am_cv_CC_dependencies_compiler_type+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else case e in #(
5564 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5565 # We make a subdir and do the tests there. Otherwise we can end up
5566 # making bogus files that we don't know about and never remove. For
5567 # instance it was reported that on HP-UX the gcc test will end up
5568 # making a dummy file named 'D' -- because '-MD' means "put the output
5569 # in D".
5570 rm -rf conftest.dir
5571 mkdir conftest.dir
5572 # Copy depcomp to subdir because otherwise we won't find it if we're
5573 # using a relative directory.
5574 cp "$am_depcomp" conftest.dir
5575 cd conftest.dir
5576 # We will build objects and dependencies in a subdirectory because
5577 # it helps to detect inapplicable dependency modes. For instance
5578 # both Tru64's cc and ICC support -MD to output dependencies as a
5579 # side effect of compilation, but ICC will put the dependencies in
5580 # the current directory while Tru64 will put them in the object
5581 # directory.
5582 mkdir sub
5583
5584 am_cv_CC_dependencies_compiler_type=none
5585 if test "$am_compiler_list" = ""; then
5586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5587 fi
5588 am__universal=false
5589 case " $depcc " in #(
5590 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5591 esac
5592
5593 for depmode in $am_compiler_list; do
5594 # Setup a source with many dependencies, because some compilers
5595 # like to wrap large dependency lists on column 80 (with \), and
5596 # we should not choose a depcomp mode which is confused by this.
5597 #
5598 # We need to recreate these files for each test, as the compiler may
5599 # overwrite some of them when testing with obscure command lines.
5600 # This happens at least with the AIX C compiler.
5601 : > sub/conftest.c
5602 for i in 1 2 3 4 5 6; do
5603 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5604 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5605 # Solaris 10 /bin/sh.
5606 echo '/* dummy */' > sub/conftst$i.h
5607 done
5608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5609
5610 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5611 # mode. It turns out that the SunPro C++ compiler does not properly
5612 # handle '-M -o', and we need to detect this. Also, some Intel
5613 # versions had trouble with output in subdirs.
5614 am__obj=sub/conftest.${OBJEXT-o}
5615 am__minus_obj="-o $am__obj"
5616 case $depmode in
5617 gcc)
5618 # This depmode causes a compiler race in universal mode.
5619 test "$am__universal" = false || continue
5620 ;;
5621 nosideeffect)
5622 # After this tag, mechanisms are not by side-effect, so they'll
5623 # only be used when explicitly requested.
5624 if test "x$enable_dependency_tracking" = xyes; then
5625 continue
5626 else
5627 break
5628 fi
5629 ;;
5630 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5631 # This compiler won't grok '-c -o', but also, the minuso test has
5632 # not run yet. These depmodes are late enough in the game, and
5633 # so weak that their functioning should not be impacted.
5634 am__obj=conftest.${OBJEXT-o}
5635 am__minus_obj=
5636 ;;
5637 none) break ;;
5638 esac
5639 if depmode=$depmode \
5640 source=sub/conftest.c object=$am__obj \
5641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5643 >/dev/null 2>conftest.err &&
5644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5648 # icc doesn't choke on unknown options, it will just issue warnings
5649 # or remarks (even with -Werror). So we grep stderr for any message
5650 # that says an option was ignored or not supported.
5651 # When given -MP, icc 7.0 and 7.1 complain thus:
5652 # icc: Command line warning: ignoring option '-M'; no argument required
5653 # The diagnosis changed in icc 8.0:
5654 # icc: Command line remark: option '-MP' not supported
5655 if (grep 'ignoring option' conftest.err ||
5656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5657 am_cv_CC_dependencies_compiler_type=$depmode
5658 break
5659 fi
5660 fi
5661 done
5662
5663 cd ..
5664 rm -rf conftest.dir
5665 else
5666 am_cv_CC_dependencies_compiler_type=none
5667 fi
5668 ;;
5669 esac
5670 fi
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5672 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5673 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5674
5675 if
5676 test "x$enable_dependency_tracking" != xno \
5677 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5678 am__fastdepCC_TRUE=
5679 am__fastdepCC_FALSE='#'
5680 else
5681 am__fastdepCC_TRUE='#'
5682 am__fastdepCC_FALSE=
5683 fi
5684
5685
5686 ac_ext=c
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5692 printf %s "checking how to run the C preprocessor... " >&6; }
5693 # On Suns, sometimes $CPP names a directory.
5694 if test -n "$CPP" && test -d "$CPP"; then
5695 CPP=
5696 fi
5697 if test -z "$CPP"; then
5698 if test ${ac_cv_prog_CPP+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else case e in #(
5702 e) # Double quotes because $CC needs to be expanded
5703 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5704 do
5705 ac_preproc_ok=false
5706 for ac_c_preproc_warn_flag in '' yes
5707 do
5708 # Use a header file that comes with gcc, so configuring glibc
5709 # with a fresh cross-compiler works.
5710 # On the NeXT, cc -E runs the code through the compiler's parser,
5711 # not just through cpp. "Syntax error" is here to catch this case.
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <limits.h>
5715 Syntax error
5716 _ACEOF
5717 if ac_fn_c_try_cpp "$LINENO"
5718 then :
5719
5720 else case e in #(
5721 e) # Broken: fails on valid input.
5722 continue ;;
5723 esac
5724 fi
5725 rm -f conftest.err conftest.i conftest.$ac_ext
5726
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <ac_nonexistent.h>
5732 _ACEOF
5733 if ac_fn_c_try_cpp "$LINENO"
5734 then :
5735 # Broken: success on invalid input.
5736 continue
5737 else case e in #(
5738 e) # Passes both tests.
5739 ac_preproc_ok=:
5740 break ;;
5741 esac
5742 fi
5743 rm -f conftest.err conftest.i conftest.$ac_ext
5744
5745 done
5746 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5747 rm -f conftest.i conftest.err conftest.$ac_ext
5748 if $ac_preproc_ok
5749 then :
5750 break
5751 fi
5752
5753 done
5754 ac_cv_prog_CPP=$CPP
5755 ;;
5756 esac
5757 fi
5758 CPP=$ac_cv_prog_CPP
5759 else
5760 ac_cv_prog_CPP=$CPP
5761 fi
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5763 printf "%s\n" "$CPP" >&6; }
5764 ac_preproc_ok=false
5765 for ac_c_preproc_warn_flag in '' yes
5766 do
5767 # Use a header file that comes with gcc, so configuring glibc
5768 # with a fresh cross-compiler works.
5769 # On the NeXT, cc -E runs the code through the compiler's parser,
5770 # not just through cpp. "Syntax error" is here to catch this case.
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <limits.h>
5774 Syntax error
5775 _ACEOF
5776 if ac_fn_c_try_cpp "$LINENO"
5777 then :
5778
5779 else case e in #(
5780 e) # Broken: fails on valid input.
5781 continue ;;
5782 esac
5783 fi
5784 rm -f conftest.err conftest.i conftest.$ac_ext
5785
5786 # OK, works on sane cases. Now check whether nonexistent headers
5787 # can be detected and how.
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #include <ac_nonexistent.h>
5791 _ACEOF
5792 if ac_fn_c_try_cpp "$LINENO"
5793 then :
5794 # Broken: success on invalid input.
5795 continue
5796 else case e in #(
5797 e) # Passes both tests.
5798 ac_preproc_ok=:
5799 break ;;
5800 esac
5801 fi
5802 rm -f conftest.err conftest.i conftest.$ac_ext
5803
5804 done
5805 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5806 rm -f conftest.i conftest.err conftest.$ac_ext
5807 if $ac_preproc_ok
5808 then :
5809
5810 else case e in #(
5811 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5812 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5813 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5814 See 'config.log' for more details" "$LINENO" 5; } ;;
5815 esac
5816 fi
5817
5818 ac_ext=c
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823
5824
5825
5826 # Make sure we can run config.sub.
5827 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5828 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5829
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5831 printf %s "checking build system type... " >&6; }
5832 if test ${ac_cv_build+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) ac_build_alias=$build_alias
5837 test "x$ac_build_alias" = x &&
5838 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5839 test "x$ac_build_alias" = x &&
5840 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5841 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5842 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5843 ;;
5844 esac
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5847 printf "%s\n" "$ac_cv_build" >&6; }
5848 case $ac_cv_build in
5849 *-*-*) ;;
5850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5851 esac
5852 build=$ac_cv_build
5853 ac_save_IFS=$IFS; IFS='-'
5854 set x $ac_cv_build
5855 shift
5856 build_cpu=$1
5857 build_vendor=$2
5858 shift; shift
5859 # Remember, the first character of IFS is used to create $*,
5860 # except with old shells:
5861 build_os=$*
5862 IFS=$ac_save_IFS
5863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5864
5865
5866
5867
5868 cross_compiling_build=no
5869
5870 ac_build_tool_prefix=
5871 if test -n "$build"
5872 then :
5873 ac_build_tool_prefix="$build-"
5874 elif test -n "$build_alias"
5875 then :
5876 ac_build_tool_prefix="$build_alias-"
5877 fi
5878
5879 ac_ext=c
5880 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5881 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5882 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5884
5885
5886 was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
5887 if test ${was_set_c_compiler_gnu}
5888 then :
5889 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
5890 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
5891 fi
5892
5893 ac_ext=c
5894 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5895 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5896 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5898 if test -n "$ac_build_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5900 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 printf %s "checking for $ac_word... " >&6; }
5903 if test ${ac_cv_prog_CC_FOR_BUILD+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) if test -n "$CC_FOR_BUILD"; then
5908 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 case $as_dir in #(((
5915 '') as_dir=./ ;;
5916 */) ;;
5917 *) as_dir=$as_dir/ ;;
5918 esac
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi ;;
5930 esac
5931 fi
5932 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5933 if test -n "$CC_FOR_BUILD"; then
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5935 printf "%s\n" "$CC_FOR_BUILD" >&6; }
5936 else
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 printf "%s\n" "no" >&6; }
5939 fi
5940
5941
5942 fi
5943 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5944 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5945 # Extract the first word of "gcc", so it can be a program name with args.
5946 set dummy gcc; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
5954 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 case $as_dir in #(((
5961 '') as_dir=./ ;;
5962 */) ;;
5963 *) as_dir=$as_dir/ ;;
5964 esac
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi ;;
5976 esac
5977 fi
5978 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5979 if test -n "$ac_ct_CC_FOR_BUILD"; then
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5981 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 printf "%s\n" "no" >&6; }
5985 fi
5986
5987 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5988 CC_FOR_BUILD=""
5989 else
5990 case $cross_compiling_build:$ac_tool_warned in
5991 yes:)
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5997 fi
5998 else
5999 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6000 fi
6001
6002 if test -z "$CC_FOR_BUILD"; then
6003 if test -n "$ac_build_tool_prefix"; then
6004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6005 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 printf %s "checking for $ac_word... " >&6; }
6008 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6009 then :
6010 printf %s "(cached) " >&6
6011 else case e in #(
6012 e) if test -n "$CC_FOR_BUILD"; then
6013 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 case $as_dir in #(((
6020 '') as_dir=./ ;;
6021 */) ;;
6022 *) as_dir=$as_dir/ ;;
6023 esac
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
6027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi ;;
6035 esac
6036 fi
6037 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6038 if test -n "$CC_FOR_BUILD"; then
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6040 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6041 else
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 printf "%s\n" "no" >&6; }
6044 fi
6045
6046
6047 fi
6048 fi
6049 if test -z "$CC_FOR_BUILD"; then
6050 # Extract the first word of "cc", so it can be a program name with args.
6051 set dummy cc; ac_word=$2
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 printf %s "checking for $ac_word... " >&6; }
6054 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6055 then :
6056 printf %s "(cached) " >&6
6057 else case e in #(
6058 e) if test -n "$CC_FOR_BUILD"; then
6059 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6060 else
6061 ac_prog_rejected=no
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6074 ac_prog_rejected=yes
6075 continue
6076 fi
6077 ac_cv_prog_CC_FOR_BUILD="cc"
6078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 if test $ac_prog_rejected = yes; then
6086 # We found a bogon in the path, so make sure we never use it.
6087 set dummy $ac_cv_prog_CC_FOR_BUILD
6088 shift
6089 if test $# != 0; then
6090 # We chose a different compiler from the bogus one.
6091 # However, it has the same basename, so the bogon will be chosen
6092 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
6093 shift
6094 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
6095 fi
6096 fi
6097 fi ;;
6098 esac
6099 fi
6100 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6101 if test -n "$CC_FOR_BUILD"; then
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6103 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6104 else
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 printf "%s\n" "no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$CC_FOR_BUILD"; then
6112 if test -n "$ac_build_tool_prefix"; then
6113 for ac_prog in cl.exe
6114 do
6115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6116 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 printf %s "checking for $ac_word... " >&6; }
6119 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) if test -n "$CC_FOR_BUILD"; then
6124 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 case $as_dir in #(((
6131 '') as_dir=./ ;;
6132 */) ;;
6133 *) as_dir=$as_dir/ ;;
6134 esac
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi ;;
6146 esac
6147 fi
6148 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6149 if test -n "$CC_FOR_BUILD"; then
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6151 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6152 else
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 printf "%s\n" "no" >&6; }
6155 fi
6156
6157
6158 test -n "$CC_FOR_BUILD" && break
6159 done
6160 fi
6161 if test -z "$CC_FOR_BUILD"; then
6162 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6163 for ac_prog in cl.exe
6164 do
6165 # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 printf %s "checking for $ac_word... " >&6; }
6169 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6170 then :
6171 printf %s "(cached) " >&6
6172 else case e in #(
6173 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
6174 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 case $as_dir in #(((
6181 '') as_dir=./ ;;
6182 */) ;;
6183 *) as_dir=$as_dir/ ;;
6184 esac
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi ;;
6196 esac
6197 fi
6198 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6199 if test -n "$ac_ct_CC_FOR_BUILD"; then
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6201 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6202 else
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 printf "%s\n" "no" >&6; }
6205 fi
6206
6207
6208 test -n "$ac_ct_CC_FOR_BUILD" && break
6209 done
6210
6211 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6212 CC_FOR_BUILD=""
6213 else
6214 case $cross_compiling_build:$ac_tool_warned in
6215 yes:)
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6221 fi
6222 fi
6223
6224 fi
6225 if test -z "$CC_FOR_BUILD"; then
6226 if test -n "$ac_build_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6228 set dummy ${ac_build_tool_prefix}clang; ac_word=$2
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 printf %s "checking for $ac_word... " >&6; }
6231 if test ${ac_cv_prog_CC_FOR_BUILD+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else case e in #(
6235 e) if test -n "$CC_FOR_BUILD"; then
6236 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 case $as_dir in #(((
6243 '') as_dir=./ ;;
6244 */) ;;
6245 *) as_dir=$as_dir/ ;;
6246 esac
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
6250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi ;;
6258 esac
6259 fi
6260 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6261 if test -n "$CC_FOR_BUILD"; then
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6263 printf "%s\n" "$CC_FOR_BUILD" >&6; }
6264 else
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 printf "%s\n" "no" >&6; }
6267 fi
6268
6269
6270 fi
6271 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6272 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6273 # Extract the first word of "clang", so it can be a program name with args.
6274 set dummy clang; ac_word=$2
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 printf %s "checking for $ac_word... " >&6; }
6277 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6278 then :
6279 printf %s "(cached) " >&6
6280 else case e in #(
6281 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
6282 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 case $as_dir in #(((
6289 '') as_dir=./ ;;
6290 */) ;;
6291 *) as_dir=$as_dir/ ;;
6292 esac
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
6296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi ;;
6304 esac
6305 fi
6306 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6307 if test -n "$ac_ct_CC_FOR_BUILD"; then
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6309 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6310 else
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 printf "%s\n" "no" >&6; }
6313 fi
6314
6315 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6316 CC_FOR_BUILD=""
6317 else
6318 case $cross_compiling_build:$ac_tool_warned in
6319 yes:)
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6325 fi
6326 else
6327 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6328 fi
6329
6330 fi
6331
6332
6333 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6334 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6335 as_fn_error $? "no acceptable C compiler found in \$PATH
6336 See 'config.log' for more details" "$LINENO" 5; }
6337
6338 # Provide some information about the compiler.
6339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6340 set X $ac_compile
6341 ac_compiler=$2
6342 for ac_option in --version -v -V -qversion -version; do
6343 { { ac_try="$ac_compiler $ac_option >&5"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6349 printf "%s\n" "$ac_try_echo"; } >&5
6350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6351 ac_status=$?
6352 if test -s conftest.err; then
6353 sed '10a\
6354 ... rest of stderr output deleted ...
6355 10q' conftest.err >conftest.er1
6356 cat conftest.er1 >&5
6357 fi
6358 rm -f conftest.er1 conftest.err
6359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; }
6361 done
6362
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6364 printf %s "checking whether the compiler supports GNU C... " >&6; }
6365 if test ${ac_cv_c_compiler_gnu+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else case e in #(
6369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371
6372 int
6373 main (void)
6374 {
6375 #ifndef __GNUC__
6376 choke me
6377 #endif
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_compile "$LINENO"
6384 then :
6385 ac_compiler_gnu=yes
6386 else case e in #(
6387 e) ac_compiler_gnu=no ;;
6388 esac
6389 fi
6390 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6392 ;;
6393 esac
6394 fi
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6396 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399 if test $ac_compiler_gnu = yes; then
6400 GCC_FOR_BUILD=yes
6401 else
6402 GCC_FOR_BUILD=
6403 fi
6404 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
6405 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
6407 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
6408 if test ${ac_cv_build_prog_cc_g+y}
6409 then :
6410 printf %s "(cached) " >&6
6411 else case e in #(
6412 e) ac_save_c_werror_flag=$ac_c_werror_flag
6413 ac_c_werror_flag=yes
6414 ac_cv_build_prog_cc_g=no
6415 CFLAGS_FOR_BUILD="-g"
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418
6419 int
6420 main (void)
6421 {
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"
6428 then :
6429 ac_cv_build_prog_cc_g=yes
6430 else case e in #(
6431 e) CFLAGS_FOR_BUILD=""
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434
6435 int
6436 main (void)
6437 {
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"
6444 then :
6445
6446 else case e in #(
6447 e) ac_c_werror_flag=$ac_save_c_werror_flag
6448 CFLAGS_FOR_BUILD="-g"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451
6452 int
6453 main (void)
6454 {
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"
6461 then :
6462 ac_cv_build_prog_cc_g=yes
6463 fi
6464 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
6465 esac
6466 fi
6467 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
6468 esac
6469 fi
6470 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6471 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6472 esac
6473 fi
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
6475 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
6476 if test $ac_test_CFLAGS; then
6477 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6478 elif test $ac_cv_build_prog_cc_g = yes; then
6479 if test "$GCC_FOR_BUILD" = yes; then
6480 CFLAGS_FOR_BUILD="-g -O2"
6481 else
6482 CFLAGS_FOR_BUILD="-g"
6483 fi
6484 else
6485 if test "$GCC_FOR_BUILD" = yes; then
6486 CFLAGS_FOR_BUILD="-O2"
6487 else
6488 CFLAGS_FOR_BUILD=
6489 fi
6490 fi
6491 ac_prog_cc_stdc=no
6492 if test x$ac_prog_cc_stdc = xno
6493 then :
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
6495 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
6496 if test ${ac_cv_build_prog_cc_c11+y}
6497 then :
6498 printf %s "(cached) " >&6
6499 else case e in #(
6500 e) ac_cv_build_prog_cc_c11=no
6501 ac_save_CC=$CC_FOR_BUILD
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 $ac_c_conftest_c11_program
6505 _ACEOF
6506 for ac_arg in '' -std=gnu11
6507 do
6508 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6509 if ac_fn_c_try_compile "$LINENO"
6510 then :
6511 ac_cv_build_prog_cc_c11=$ac_arg
6512 fi
6513 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6514 test "x$ac_cv_build_prog_cc_c11" != "xno" && break
6515 done
6516 rm -f conftest.$ac_ext
6517 CC_FOR_BUILD=$ac_save_CC ;;
6518 esac
6519 fi
6520
6521 if test "x$ac_cv_build_prog_cc_c11" = xno
6522 then :
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6524 printf "%s\n" "unsupported" >&6; }
6525 else case e in #(
6526 e) if test "x$ac_cv_build_prog_cc_c11" = x
6527 then :
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6529 printf "%s\n" "none needed" >&6; }
6530 else case e in #(
6531 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
6532 printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
6533 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" ;;
6534 esac
6535 fi
6536 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
6537 ac_prog_cc_stdc=c11 ;;
6538 esac
6539 fi
6540 fi
6541 if test x$ac_prog_cc_stdc = xno
6542 then :
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
6544 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
6545 if test ${ac_cv_build_prog_cc_c99+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else case e in #(
6549 e) ac_cv_build_prog_cc_c99=no
6550 ac_save_CC=$CC_FOR_BUILD
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 $ac_c_conftest_c99_program
6554 _ACEOF
6555 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6556 do
6557 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6558 if ac_fn_c_try_compile "$LINENO"
6559 then :
6560 ac_cv_build_prog_cc_c99=$ac_arg
6561 fi
6562 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6563 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
6564 done
6565 rm -f conftest.$ac_ext
6566 CC_FOR_BUILD=$ac_save_CC ;;
6567 esac
6568 fi
6569
6570 if test "x$ac_cv_build_prog_cc_c99" = xno
6571 then :
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6573 printf "%s\n" "unsupported" >&6; }
6574 else case e in #(
6575 e) if test "x$ac_cv_build_prog_cc_c99" = x
6576 then :
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6578 printf "%s\n" "none needed" >&6; }
6579 else case e in #(
6580 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
6581 printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
6582 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" ;;
6583 esac
6584 fi
6585 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
6586 ac_prog_cc_stdc=c99 ;;
6587 esac
6588 fi
6589 fi
6590 if test x$ac_prog_cc_stdc = xno
6591 then :
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
6593 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
6594 if test ${ac_cv_build_prog_cc_c89+y}
6595 then :
6596 printf %s "(cached) " >&6
6597 else case e in #(
6598 e) ac_cv_build_prog_cc_c89=no
6599 ac_save_CC=$CC_FOR_BUILD
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 $ac_c_conftest_c89_program
6603 _ACEOF
6604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6605 do
6606 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6607 if ac_fn_c_try_compile "$LINENO"
6608 then :
6609 ac_cv_build_prog_cc_c89=$ac_arg
6610 fi
6611 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6612 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
6613 done
6614 rm -f conftest.$ac_ext
6615 CC_FOR_BUILD=$ac_save_CC ;;
6616 esac
6617 fi
6618
6619 if test "x$ac_cv_build_prog_cc_c89" = xno
6620 then :
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6622 printf "%s\n" "unsupported" >&6; }
6623 else case e in #(
6624 e) if test "x$ac_cv_build_prog_cc_c89" = x
6625 then :
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6627 printf "%s\n" "none needed" >&6; }
6628 else case e in #(
6629 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
6630 printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
6631 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" ;;
6632 esac
6633 fi
6634 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
6635 ac_prog_cc_stdc=c89 ;;
6636 esac
6637 fi
6638 fi
6639
6640 ac_ext=c
6641 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6642 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6643 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6644 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6645
6646
6647 ac_ext=c
6648 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6649 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6650 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
6653 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
6654 if test ${am_cv_build_prog_cc_c_o+y}
6655 then :
6656 printf %s "(cached) " >&6
6657 else case e in #(
6658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660
6661 int
6662 main (void)
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 # Make sure it works both with $CC and with simple cc.
6670 # Following AC_PROG_CC_C_O, we do the test twice because some
6671 # compilers refuse to overwrite an existing .o file with -o,
6672 # though they will create one.
6673 am_cv_build_prog_cc_c_o=yes
6674 for am_i in 1 2; do
6675 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
6676 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } \
6680 && test -f conftest2.$ac_build_objext; then
6681 : OK
6682 else
6683 am_cv_build_prog_cc_c_o=no
6684 break
6685 fi
6686 done
6687 # aligned with autoconf, so not including core; see bug#72225.
6688 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_build_objext \
6689 conftest.dSYM conftest1.$ac_ext conftest1.$ac_build_objext conftest1.dSYM \
6690 conftest2.$ac_ext conftest2.$ac_build_objext conftest2.dSYM
6691 unset am_i ;;
6692 esac
6693 fi
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
6695 printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
6696 if test "$am_cv_build_prog_cc_c_o" != yes; then
6697 # Losing compiler, so override with the script.
6698 # FIXME: It is wrong to rewrite CC.
6699 # But if we don't then we get into trouble of one sort or another.
6700 # A longer-term fix would be to have automake use am__CC in this case,
6701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6702 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
6703 fi
6704 ac_ext=c
6705 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6706 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6707 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6709
6710
6711 depcc="$CC_FOR_BUILD" am_compiler_list=
6712
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6714 printf %s "checking dependency style of $depcc... " >&6; }
6715 if test ${am_cv_build_CC_dependencies_compiler_type+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else case e in #(
6719 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6720 # We make a subdir and do the tests there. Otherwise we can end up
6721 # making bogus files that we don't know about and never remove. For
6722 # instance it was reported that on HP-UX the gcc test will end up
6723 # making a dummy file named 'D' -- because '-MD' means "put the output
6724 # in D".
6725 rm -rf conftest.dir
6726 mkdir conftest.dir
6727 # Copy depcomp to subdir because otherwise we won't find it if we're
6728 # using a relative directory.
6729 cp "$am_depcomp" conftest.dir
6730 cd conftest.dir
6731 # We will build objects and dependencies in a subdirectory because
6732 # it helps to detect inapplicable dependency modes. For instance
6733 # both Tru64's cc and ICC support -MD to output dependencies as a
6734 # side effect of compilation, but ICC will put the dependencies in
6735 # the current directory while Tru64 will put them in the object
6736 # directory.
6737 mkdir sub
6738
6739 am_cv_build_CC_dependencies_compiler_type=none
6740 if test "$am_compiler_list" = ""; then
6741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6742 fi
6743 am__universal=false
6744 case " $depcc " in #(
6745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6746 esac
6747
6748 for depmode in $am_compiler_list; do
6749 # Setup a source with many dependencies, because some compilers
6750 # like to wrap large dependency lists on column 80 (with \), and
6751 # we should not choose a depcomp mode which is confused by this.
6752 #
6753 # We need to recreate these files for each test, as the compiler may
6754 # overwrite some of them when testing with obscure command lines.
6755 # This happens at least with the AIX C compiler.
6756 : > sub/conftest.c
6757 for i in 1 2 3 4 5 6; do
6758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6760 # Solaris 10 /bin/sh.
6761 echo '/* dummy */' > sub/conftst$i.h
6762 done
6763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6764
6765 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6766 # mode. It turns out that the SunPro C++ compiler does not properly
6767 # handle '-M -o', and we need to detect this. Also, some Intel
6768 # versions had trouble with output in subdirs.
6769 am__obj=sub/conftest.${BUILD_OBJEXT-o}
6770 am__minus_obj="-o $am__obj"
6771 case $depmode in
6772 gcc)
6773 # This depmode causes a compiler race in universal mode.
6774 test "$am__universal" = false || continue
6775 ;;
6776 nosideeffect)
6777 # After this tag, mechanisms are not by side-effect, so they'll
6778 # only be used when explicitly requested.
6779 if test "x$enable_dependency_tracking" = xyes; then
6780 continue
6781 else
6782 break
6783 fi
6784 ;;
6785 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6786 # This compiler won't grok '-c -o', but also, the minuso test has
6787 # not run yet. These depmodes are late enough in the game, and
6788 # so weak that their functioning should not be impacted.
6789 am__obj=conftest.${BUILD_OBJEXT-o}
6790 am__minus_obj=
6791 ;;
6792 none) break ;;
6793 esac
6794 if depmode=$depmode \
6795 source=sub/conftest.c object=$am__obj \
6796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6798 >/dev/null 2>conftest.err &&
6799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6803 # icc doesn't choke on unknown options, it will just issue warnings
6804 # or remarks (even with -Werror). So we grep stderr for any message
6805 # that says an option was ignored or not supported.
6806 # When given -MP, icc 7.0 and 7.1 complain thus:
6807 # icc: Command line warning: ignoring option '-M'; no argument required
6808 # The diagnosis changed in icc 8.0:
6809 # icc: Command line remark: option '-MP' not supported
6810 if (grep 'ignoring option' conftest.err ||
6811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6812 am_cv_build_CC_dependencies_compiler_type=$depmode
6813 break
6814 fi
6815 fi
6816 done
6817
6818 cd ..
6819 rm -rf conftest.dir
6820 else
6821 am_cv_build_CC_dependencies_compiler_type=none
6822 fi
6823 ;;
6824 esac
6825 fi
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
6827 printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
6828 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
6829
6830 if
6831 test "x$enable_dependency_tracking" != xno \
6832 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
6833 am__fastdepCC_build_TRUE=
6834 am__fastdepCC_build_FALSE='#'
6835 else
6836 am__fastdepCC_build_TRUE='#'
6837 am__fastdepCC_build_FALSE=
6838 fi
6839
6840
6841
6842 if test ${was_set_c_compiler_gnu}
6843 then :
6844 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
6845 fi
6846
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849
6850 int
6851 main (void)
6852 {
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 ac_clean_files_save=$ac_clean_files
6859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6860 # Try to create an executable without -o first, disregard a.out.
6861 # It will help us diagnose broken compilers, and finding out an intuition
6862 # of exeext.
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6864 printf %s "checking whether the C compiler works... " >&6; }
6865 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6866
6867 # The possible output files:
6868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6869
6870 ac_rmfiles=
6871 for ac_file in $ac_files
6872 do
6873 case $ac_file in
6874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6876 esac
6877 done
6878 rm -f $ac_rmfiles
6879
6880 if { { ac_try="$ac_link_default"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6886 printf "%s\n" "$ac_try_echo"; } >&5
6887 (eval "$ac_link_default") 2>&5
6888 ac_status=$?
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }
6891 then :
6892 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
6893 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
6894 # in a Makefile. We should not override ac_cv_exeext if it was cached,
6895 # so that the user can short-circuit this test for compilers unknown to
6896 # Autoconf.
6897 for ac_file in $ac_files ''
6898 do
6899 test -f "$ac_file" || continue
6900 case $ac_file in
6901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6902 ;;
6903 [ab].out )
6904 # We found the default executable, but exeext='' is most
6905 # certainly right.
6906 break;;
6907 *.* )
6908 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
6909 then :; else
6910 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6911 fi
6912 # We set ac_cv_exeext here because the later test for it is not
6913 # safe: cross compilers may not add the suffix if given an '-o'
6914 # argument, so we may need to know it at that point already.
6915 # Even if this section looks crufty: it has the advantage of
6916 # actually working.
6917 break;;
6918 * )
6919 break;;
6920 esac
6921 done
6922 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
6923
6924 else case e in #(
6925 e) ac_file='' ;;
6926 esac
6927 fi
6928 if test -z "$ac_file"
6929 then :
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 printf "%s\n" "no" >&6; }
6932 printf "%s\n" "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6936 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6937 as_fn_error 77 "C compiler cannot create executables
6938 See 'config.log' for more details" "$LINENO" 5; }
6939 else case e in #(
6940 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6941 printf "%s\n" "yes" >&6; } ;;
6942 esac
6943 fi
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6945 printf %s "checking for C compiler default output file name... " >&6; }
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6947 printf "%s\n" "$ac_file" >&6; }
6948 ac_build_exeext=$ac_cv_build_exeext
6949
6950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6951 ac_clean_files=$ac_clean_files_save
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6953 printf %s "checking for suffix of executables... " >&6; }
6954 if { { ac_try="$ac_link"
6955 case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958 esac
6959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6960 printf "%s\n" "$ac_try_echo"; } >&5
6961 (eval "$ac_link") 2>&5
6962 ac_status=$?
6963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 then :
6966 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
6967 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
6968 # work properly (i.e., refer to 'conftest.exe'), while it won't with
6969 # 'rm'.
6970 for ac_file in conftest.exe conftest conftest.*; do
6971 test -f "$ac_file" || continue
6972 case $ac_file in
6973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6974 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6975 break;;
6976 * ) break;;
6977 esac
6978 done
6979 else case e in #(
6980 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6981 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6982 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6983 See 'config.log' for more details" "$LINENO" 5; } ;;
6984 esac
6985 fi
6986 rm -f conftest conftest$ac_cv_build_exeext
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6988 printf "%s\n" "$ac_cv_build_exeext" >&6; }
6989
6990 rm -f conftest.$ac_ext
6991 EXEEXT=$ac_cv_build_exeext
6992 ac_build_exeext=$BUILD_EXEEXT
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <stdio.h>
6996 int
6997 main (void)
6998 {
6999 FILE *f = fopen ("conftest.out", "w");
7000 if (!f)
7001 return 1;
7002 return ferror (f) || fclose (f) != 0;
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 ac_clean_files="$ac_clean_files conftest.out"
7009 # Check that the compiler produces executables we can run. If not, either
7010 # the compiler is broken, or we cross compile.
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7012 printf %s "checking whether we are cross compiling... " >&6; }
7013 if test "$cross_compiling_build" != yes; then
7014 { { ac_try="$ac_link"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7020 printf "%s\n" "$ac_try_echo"; } >&5
7021 (eval "$ac_link") 2>&5
7022 ac_status=$?
7023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7024 test $ac_status = 0; }
7025 if { ac_try='./conftest$ac_cv_build_exeext'
7026 { { case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7031 printf "%s\n" "$ac_try_echo"; } >&5
7032 (eval "$ac_try") 2>&5
7033 ac_status=$?
7034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }; }; then
7036 cross_compiling_build=no
7037 else
7038 if test "$cross_compiling_build" = maybe; then
7039 cross_compiling_build=yes
7040 else
7041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7042 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7043 as_fn_error 77 "cannot run C compiled programs.
7044 If you meant to cross compile, use '--build'.
7045 See 'config.log' for more details" "$LINENO" 5; }
7046 fi
7047 fi
7048 fi
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
7050 printf "%s\n" "$cross_compiling_build" >&6; }
7051
7052 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext \
7053 conftest.o conftest.obj conftest.out
7054 ac_clean_files=$ac_clean_files_save
7055
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7057 printf %s "checking for suffix of object files... " >&6; }
7058 if test ${ac_cv_build_objext+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064
7065 int
7066 main (void)
7067 {
7068
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.o conftest.obj
7074 if { { ac_try="$ac_compile"
7075 case "(($ac_try" in
7076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077 *) ac_try_echo=$ac_try;;
7078 esac
7079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7080 printf "%s\n" "$ac_try_echo"; } >&5
7081 (eval "$ac_compile") 2>&5
7082 ac_status=$?
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }
7085 then :
7086 for ac_file in conftest.o conftest.obj conftest.*; do
7087 test -f "$ac_file" || continue;
7088 case $ac_file in
7089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7090 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7091 break;;
7092 esac
7093 done
7094 else case e in #(
7095 e) printf "%s\n" "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7099 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7100 as_fn_error $? "cannot compute suffix of object files: cannot compile
7101 See 'config.log' for more details" "$LINENO" 5; } ;;
7102 esac
7103 fi
7104 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext ;;
7105 esac
7106 fi
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
7108 printf "%s\n" "$ac_cv_build_objext" >&6; }
7109 OBJEXT=$ac_cv_build_objext
7110 ac_build_objext=$BUILD_OBJEXT
7111
7112 ac_ext=c
7113 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7114 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7115 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7118 printf %s "checking how to run the C preprocessor... " >&6; }
7119 # On Suns, sometimes $CPP names a directory.
7120 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
7121 CPP_FOR_BUILD=
7122 fi
7123 if test -z "$CPP_FOR_BUILD"; then
7124 if test ${ac_cv_build_prog_CPP+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) # Double quotes because $CC needs to be expanded
7129 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
7130 do
7131 ac_preproc_ok=false
7132 for ac_c_preproc_warn_flag in '' yes
7133 do
7134 # Use a header file that comes with gcc, so configuring glibc
7135 # with a fresh cross-compiler works.
7136 # On the NeXT, cc -E runs the code through the compiler's parser,
7137 # not just through cpp. "Syntax error" is here to catch this case.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <limits.h>
7141 Syntax error
7142 _ACEOF
7143 if ac_fn_c_try_cpp "$LINENO"
7144 then :
7145
7146 else case e in #(
7147 e) # Broken: fails on valid input.
7148 continue ;;
7149 esac
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153 # OK, works on sane cases. Now check whether nonexistent headers
7154 # can be detected and how.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if ac_fn_c_try_cpp "$LINENO"
7160 then :
7161 # Broken: success on invalid input.
7162 continue
7163 else case e in #(
7164 e) # Passes both tests.
7165 ac_preproc_ok=:
7166 break ;;
7167 esac
7168 fi
7169 rm -f conftest.err conftest.i conftest.$ac_ext
7170
7171 done
7172 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173 rm -f conftest.i conftest.err conftest.$ac_ext
7174 if $ac_preproc_ok
7175 then :
7176 break
7177 fi
7178
7179 done
7180 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7181 ;;
7182 esac
7183 fi
7184 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7185 else
7186 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7187 fi
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
7189 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
7190 ac_preproc_ok=false
7191 for ac_c_preproc_warn_flag in '' yes
7192 do
7193 # Use a header file that comes with gcc, so configuring glibc
7194 # with a fresh cross-compiler works.
7195 # On the NeXT, cc -E runs the code through the compiler's parser,
7196 # not just through cpp. "Syntax error" is here to catch this case.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <limits.h>
7200 Syntax error
7201 _ACEOF
7202 if ac_fn_c_try_cpp "$LINENO"
7203 then :
7204
7205 else case e in #(
7206 e) # Broken: fails on valid input.
7207 continue ;;
7208 esac
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212 # OK, works on sane cases. Now check whether nonexistent headers
7213 # can be detected and how.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <ac_nonexistent.h>
7217 _ACEOF
7218 if ac_fn_c_try_cpp "$LINENO"
7219 then :
7220 # Broken: success on invalid input.
7221 continue
7222 else case e in #(
7223 e) # Passes both tests.
7224 ac_preproc_ok=:
7225 break ;;
7226 esac
7227 fi
7228 rm -f conftest.err conftest.i conftest.$ac_ext
7229
7230 done
7231 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7232 rm -f conftest.i conftest.err conftest.$ac_ext
7233 if $ac_preproc_ok
7234 then :
7235
7236 else case e in #(
7237 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7238 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7239 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7240 See 'config.log' for more details" "$LINENO" 5; } ;;
7241 esac
7242 fi
7243
7244 ac_ext=c
7245 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7246 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7247 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7249
7250
7251
7252 ac_ext=c
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259 EXEEXT=$ac_cv_exeext
7260 BUILD_EXEEXT=$ac_cv_build_exeext; ac_build_exeext=$ac_cv_build_exeext
7261 OBJEXT=$ac_cv_objext
7262 BUILD_OBJEXT=$ac_cv_build_objext; ac_build_objext=$ac_cv_build_objext
7263 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7264 CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type
7265
7266 ac_ext=cpp
7267 ac_cpp='$CXXCPP $CPPFLAGS'
7268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7272 printf %s "checking how to run the C++ preprocessor... " >&6; }
7273 if test -z "$CXXCPP"; then
7274 if test ${ac_cv_prog_CXXCPP+y}
7275 then :
7276 printf %s "(cached) " >&6
7277 else case e in #(
7278 e) # Double quotes because $CXX needs to be expanded
7279 for CXXCPP in "$CXX -E" cpp /lib/cpp
7280 do
7281 ac_preproc_ok=false
7282 for ac_cxx_preproc_warn_flag in '' yes
7283 do
7284 # Use a header file that comes with gcc, so configuring glibc
7285 # with a fresh cross-compiler works.
7286 # On the NeXT, cc -E runs the code through the compiler's parser,
7287 # not just through cpp. "Syntax error" is here to catch this case.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #include <limits.h>
7291 Syntax error
7292 _ACEOF
7293 if ac_fn_cxx_try_cpp "$LINENO"
7294 then :
7295
7296 else case e in #(
7297 e) # Broken: fails on valid input.
7298 continue ;;
7299 esac
7300 fi
7301 rm -f conftest.err conftest.i conftest.$ac_ext
7302
7303 # OK, works on sane cases. Now check whether nonexistent headers
7304 # can be detected and how.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 #include <ac_nonexistent.h>
7308 _ACEOF
7309 if ac_fn_cxx_try_cpp "$LINENO"
7310 then :
7311 # Broken: success on invalid input.
7312 continue
7313 else case e in #(
7314 e) # Passes both tests.
7315 ac_preproc_ok=:
7316 break ;;
7317 esac
7318 fi
7319 rm -f conftest.err conftest.i conftest.$ac_ext
7320
7321 done
7322 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7323 rm -f conftest.i conftest.err conftest.$ac_ext
7324 if $ac_preproc_ok
7325 then :
7326 break
7327 fi
7328
7329 done
7330 ac_cv_prog_CXXCPP=$CXXCPP
7331 ;;
7332 esac
7333 fi
7334 CXXCPP=$ac_cv_prog_CXXCPP
7335 else
7336 ac_cv_prog_CXXCPP=$CXXCPP
7337 fi
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7339 printf "%s\n" "$CXXCPP" >&6; }
7340 ac_preproc_ok=false
7341 for ac_cxx_preproc_warn_flag in '' yes
7342 do
7343 # Use a header file that comes with gcc, so configuring glibc
7344 # with a fresh cross-compiler works.
7345 # On the NeXT, cc -E runs the code through the compiler's parser,
7346 # not just through cpp. "Syntax error" is here to catch this case.
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #include <limits.h>
7350 Syntax error
7351 _ACEOF
7352 if ac_fn_cxx_try_cpp "$LINENO"
7353 then :
7354
7355 else case e in #(
7356 e) # Broken: fails on valid input.
7357 continue ;;
7358 esac
7359 fi
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7361
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if ac_fn_cxx_try_cpp "$LINENO"
7369 then :
7370 # Broken: success on invalid input.
7371 continue
7372 else case e in #(
7373 e) # Passes both tests.
7374 ac_preproc_ok=:
7375 break ;;
7376 esac
7377 fi
7378 rm -f conftest.err conftest.i conftest.$ac_ext
7379
7380 done
7381 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7382 rm -f conftest.i conftest.err conftest.$ac_ext
7383 if $ac_preproc_ok
7384 then :
7385
7386 else case e in #(
7387 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7388 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7389 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7390 See 'config.log' for more details" "$LINENO" 5; } ;;
7391 esac
7392 fi
7393
7394 ac_ext=c
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7401 printf %s "checking host system type... " >&6; }
7402 if test ${ac_cv_host+y}
7403 then :
7404 printf %s "(cached) " >&6
7405 else case e in #(
7406 e) if test "x$host_alias" = x; then
7407 ac_cv_host=$ac_cv_build
7408 else
7409 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7410 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7411 fi
7412 ;;
7413 esac
7414 fi
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7416 printf "%s\n" "$ac_cv_host" >&6; }
7417 case $ac_cv_host in
7418 *-*-*) ;;
7419 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7420 esac
7421 host=$ac_cv_host
7422 ac_save_IFS=$IFS; IFS='-'
7423 set x $ac_cv_host
7424 shift
7425 host_cpu=$1
7426 host_vendor=$2
7427 shift; shift
7428 # Remember, the first character of IFS is used to create $*,
7429 # except with old shells:
7430 host_os=$*
7431 IFS=$ac_save_IFS
7432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7433
7434
7435
7436
7437 save_cross_compiling=$cross_compiling
7438 save_ac_tool_prefix=$ac_tool_prefix
7439 cross_compiling=no
7440 ac_tool_prefix=
7441
7442 ac_ext=cpp
7443 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7444 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7445 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7447 if test -z "$CXX_FOR_BUILD"; then
7448 if test -n "$CCC"; then
7449 CXX_FOR_BUILD=$CCC
7450 else
7451 if test -n "$ac_tool_prefix"; then
7452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7453 do
7454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 printf %s "checking for $ac_word... " >&6; }
7458 if test ${ac_cv_prog_CXX_FOR_BUILD+y}
7459 then :
7460 printf %s "(cached) " >&6
7461 else case e in #(
7462 e) if test -n "$CXX_FOR_BUILD"; then
7463 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 case $as_dir in #(((
7470 '') as_dir=./ ;;
7471 */) ;;
7472 *) as_dir=$as_dir/ ;;
7473 esac
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
7477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi ;;
7485 esac
7486 fi
7487 CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
7488 if test -n "$CXX_FOR_BUILD"; then
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
7490 printf "%s\n" "$CXX_FOR_BUILD" >&6; }
7491 else
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 printf "%s\n" "no" >&6; }
7494 fi
7495
7496
7497 test -n "$CXX_FOR_BUILD" && break
7498 done
7499 fi
7500 if test -z "$CXX_FOR_BUILD"; then
7501 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
7502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7503 do
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 printf %s "checking for $ac_word... " >&6; }
7508 if test ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+y}
7509 then :
7510 printf %s "(cached) " >&6
7511 else case e in #(
7512 e) if test -n "$ac_ct_CXX_FOR_BUILD"; then
7513 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518 IFS=$as_save_IFS
7519 case $as_dir in #(((
7520 '') as_dir=./ ;;
7521 */) ;;
7522 *) as_dir=$as_dir/ ;;
7523 esac
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
7527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi ;;
7535 esac
7536 fi
7537 ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
7538 if test -n "$ac_ct_CXX_FOR_BUILD"; then
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
7540 printf "%s\n" "$ac_ct_CXX_FOR_BUILD" >&6; }
7541 else
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 printf "%s\n" "no" >&6; }
7544 fi
7545
7546
7547 test -n "$ac_ct_CXX_FOR_BUILD" && break
7548 done
7549
7550 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
7551 CXX_FOR_BUILD="g++"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
7556 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
7560 fi
7561 fi
7562
7563 fi
7564 fi
7565 # Provide some information about the compiler.
7566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7567 set X $ac_build_compile
7568 ac_compiler=$2
7569 for ac_option in --version -v -V -qversion; do
7570 { { ac_try="$ac_compiler $ac_option >&5"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7576 printf "%s\n" "$ac_try_echo"; } >&5
7577 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7578 ac_status=$?
7579 if test -s conftest.err; then
7580 sed '10a\
7581 ... rest of stderr output deleted ...
7582 10q' conftest.err >conftest.er1
7583 cat conftest.er1 >&5
7584 fi
7585 rm -f conftest.er1 conftest.err
7586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }
7588 done
7589
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
7591 printf %s "checking whether the compiler supports GNU C++... " >&6; }
7592 if test ${ac_cv_cxx_compiler_gnu+y}
7593 then :
7594 printf %s "(cached) " >&6
7595 else case e in #(
7596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598
7599 int
7600 main (void)
7601 {
7602 #ifndef __GNUC__
7603 choke me
7604 #endif
7605
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_cxx_try_compile "$LINENO"
7611 then :
7612 ac_compiler_gnu=yes
7613 else case e in #(
7614 e) ac_compiler_gnu=no ;;
7615 esac
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7618 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7619 ;;
7620 esac
7621 fi
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7623 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
7624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7625
7626 if test $ac_compiler_gnu = yes; then
7627 GXX=yes
7628 else
7629 GXX=
7630 fi
7631 ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+y}
7632 ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
7634 printf %s "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
7635 if test ${ac_cv_build_prog_cxx_g+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else case e in #(
7639 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7640 ac_cxx_werror_flag=yes
7641 ac_cv_build_prog_cxx_g=no
7642 CXXFLAGS_FOR_BUILD="-g"
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645
7646 int
7647 main (void)
7648 {
7649
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_cxx_try_compile "$LINENO"
7655 then :
7656 ac_cv_build_prog_cxx_g=yes
7657 else case e in #(
7658 e) CXXFLAGS_FOR_BUILD=""
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661
7662 int
7663 main (void)
7664 {
7665
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_cxx_try_compile "$LINENO"
7671 then :
7672
7673 else case e in #(
7674 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7675 CXXFLAGS_FOR_BUILD="-g"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678
7679 int
7680 main (void)
7681 {
7682
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_cxx_try_compile "$LINENO"
7688 then :
7689 ac_cv_build_prog_cxx_g=yes
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7692 esac
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7695 esac
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7698 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
7699 esac
7700 fi
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
7702 printf "%s\n" "$ac_cv_build_prog_cxx_g" >&6; }
7703 if test $ac_test_CXXFLAGS; then
7704 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
7705 elif test $ac_cv_build_prog_cxx_g = yes; then
7706 if test "$GXX" = yes; then
7707 CXXFLAGS_FOR_BUILD="-g -O2"
7708 else
7709 CXXFLAGS_FOR_BUILD="-g"
7710 fi
7711 else
7712 if test "$GXX" = yes; then
7713 CXXFLAGS_FOR_BUILD="-O2"
7714 else
7715 CXXFLAGS_FOR_BUILD=
7716 fi
7717 fi
7718 ac_prog_cxx_stdcxx=no
7719 if test x$ac_prog_cxx_stdcxx = xno
7720 then :
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX_FOR_BUILD option to enable C++11 features" >&5
7722 printf %s "checking for $CXX_FOR_BUILD option to enable C++11 features... " >&6; }
7723 if test ${ac_cv_prog_cxx_cxx11+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else case e in #(
7727 e) ac_cv_prog_cxx_cxx11=no
7728 ac_save_CXX=$CXX_FOR_BUILD
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 $ac_cxx_conftest_cxx11_program
7732 _ACEOF
7733 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7734 do
7735 CXX_FOR_BUILD="$ac_save_CXX $ac_arg"
7736 if ac_fn_cxx_try_compile "$LINENO"
7737 then :
7738 ac_cv_prog_cxx_cxx11=$ac_arg
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext conftest.beam
7741 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7742 done
7743 rm -f conftest.$ac_ext
7744 CXX_FOR_BUILD=$ac_save_CXX ;;
7745 esac
7746 fi
7747
7748 if test "x$ac_cv_prog_cxx_cxx11" = xno
7749 then :
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7751 printf "%s\n" "unsupported" >&6; }
7752 else case e in #(
7753 e) if test "x$ac_cv_prog_cxx_cxx11" = x
7754 then :
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7756 printf "%s\n" "none needed" >&6; }
7757 else case e in #(
7758 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7759 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7760 CXX_FOR_BUILD="$CXX_FOR_BUILD $ac_cv_prog_cxx_cxx11" ;;
7761 esac
7762 fi
7763 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7764 ac_prog_cxx_stdcxx=cxx11 ;;
7765 esac
7766 fi
7767 fi
7768 if test x$ac_prog_cxx_stdcxx = xno
7769 then :
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX_FOR_BUILD option to enable C++98 features" >&5
7771 printf %s "checking for $CXX_FOR_BUILD option to enable C++98 features... " >&6; }
7772 if test ${ac_cv_prog_cxx_cxx98+y}
7773 then :
7774 printf %s "(cached) " >&6
7775 else case e in #(
7776 e) ac_cv_prog_cxx_cxx98=no
7777 ac_save_CXX=$CXX_FOR_BUILD
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 $ac_cxx_conftest_cxx98_program
7781 _ACEOF
7782 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7783 do
7784 CXX_FOR_BUILD="$ac_save_CXX $ac_arg"
7785 if ac_fn_cxx_try_compile "$LINENO"
7786 then :
7787 ac_cv_prog_cxx_cxx98=$ac_arg
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam
7790 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7791 done
7792 rm -f conftest.$ac_ext
7793 CXX_FOR_BUILD=$ac_save_CXX ;;
7794 esac
7795 fi
7796
7797 if test "x$ac_cv_prog_cxx_cxx98" = xno
7798 then :
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7800 printf "%s\n" "unsupported" >&6; }
7801 else case e in #(
7802 e) if test "x$ac_cv_prog_cxx_cxx98" = x
7803 then :
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7805 printf "%s\n" "none needed" >&6; }
7806 else case e in #(
7807 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7808 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7809 CXX_FOR_BUILD="$CXX_FOR_BUILD $ac_cv_prog_cxx_cxx98" ;;
7810 esac
7811 fi
7812 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7813 ac_prog_cxx_stdcxx=cxx98 ;;
7814 esac
7815 fi
7816 fi
7817
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7820 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7821 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824 depcc="$CXX_FOR_BUILD" am_compiler_list=
7825
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7827 printf %s "checking dependency style of $depcc... " >&6; }
7828 if test ${am_cv_CXX_dependencies_compiler_type+y}
7829 then :
7830 printf %s "(cached) " >&6
7831 else case e in #(
7832 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7833 # We make a subdir and do the tests there. Otherwise we can end up
7834 # making bogus files that we don't know about and never remove. For
7835 # instance it was reported that on HP-UX the gcc test will end up
7836 # making a dummy file named 'D' -- because '-MD' means "put the output
7837 # in D".
7838 rm -rf conftest.dir
7839 mkdir conftest.dir
7840 # Copy depcomp to subdir because otherwise we won't find it if we're
7841 # using a relative directory.
7842 cp "$am_depcomp" conftest.dir
7843 cd conftest.dir
7844 # We will build objects and dependencies in a subdirectory because
7845 # it helps to detect inapplicable dependency modes. For instance
7846 # both Tru64's cc and ICC support -MD to output dependencies as a
7847 # side effect of compilation, but ICC will put the dependencies in
7848 # the current directory while Tru64 will put them in the object
7849 # directory.
7850 mkdir sub
7851
7852 am_cv_CXX_dependencies_compiler_type=none
7853 if test "$am_compiler_list" = ""; then
7854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7855 fi
7856 am__universal=false
7857 case " $depcc " in #(
7858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7859 esac
7860
7861 for depmode in $am_compiler_list; do
7862 # Setup a source with many dependencies, because some compilers
7863 # like to wrap large dependency lists on column 80 (with \), and
7864 # we should not choose a depcomp mode which is confused by this.
7865 #
7866 # We need to recreate these files for each test, as the compiler may
7867 # overwrite some of them when testing with obscure command lines.
7868 # This happens at least with the AIX C compiler.
7869 : > sub/conftest.c
7870 for i in 1 2 3 4 5 6; do
7871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7872 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7873 # Solaris 10 /bin/sh.
7874 echo '/* dummy */' > sub/conftst$i.h
7875 done
7876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7877
7878 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7879 # mode. It turns out that the SunPro C++ compiler does not properly
7880 # handle '-M -o', and we need to detect this. Also, some Intel
7881 # versions had trouble with output in subdirs.
7882 am__obj=sub/conftest.${OBJEXT-o}
7883 am__minus_obj="-o $am__obj"
7884 case $depmode in
7885 gcc)
7886 # This depmode causes a compiler race in universal mode.
7887 test "$am__universal" = false || continue
7888 ;;
7889 nosideeffect)
7890 # After this tag, mechanisms are not by side-effect, so they'll
7891 # only be used when explicitly requested.
7892 if test "x$enable_dependency_tracking" = xyes; then
7893 continue
7894 else
7895 break
7896 fi
7897 ;;
7898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7899 # This compiler won't grok '-c -o', but also, the minuso test has
7900 # not run yet. These depmodes are late enough in the game, and
7901 # so weak that their functioning should not be impacted.
7902 am__obj=conftest.${OBJEXT-o}
7903 am__minus_obj=
7904 ;;
7905 none) break ;;
7906 esac
7907 if depmode=$depmode \
7908 source=sub/conftest.c object=$am__obj \
7909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7911 >/dev/null 2>conftest.err &&
7912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7916 # icc doesn't choke on unknown options, it will just issue warnings
7917 # or remarks (even with -Werror). So we grep stderr for any message
7918 # that says an option was ignored or not supported.
7919 # When given -MP, icc 7.0 and 7.1 complain thus:
7920 # icc: Command line warning: ignoring option '-M'; no argument required
7921 # The diagnosis changed in icc 8.0:
7922 # icc: Command line remark: option '-MP' not supported
7923 if (grep 'ignoring option' conftest.err ||
7924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7925 am_cv_CXX_dependencies_compiler_type=$depmode
7926 break
7927 fi
7928 fi
7929 done
7930
7931 cd ..
7932 rm -rf conftest.dir
7933 else
7934 am_cv_CXX_dependencies_compiler_type=none
7935 fi
7936 ;;
7937 esac
7938 fi
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7940 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7941 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7942
7943 if
7944 test "x$enable_dependency_tracking" != xno \
7945 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7946 am__fastdepCXX_TRUE=
7947 am__fastdepCXX_FALSE='#'
7948 else
7949 am__fastdepCXX_TRUE='#'
7950 am__fastdepCXX_FALSE=
7951 fi
7952
7953
7954 ac_ext=cpp
7955 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7956 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7957 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7960 printf %s "checking how to run the C++ preprocessor... " >&6; }
7961 if test -z "$CXXCPP_FOR_BUILD"; then
7962 if test ${ac_cv_build_prog_CXXCPP+y}
7963 then :
7964 printf %s "(cached) " >&6
7965 else case e in #(
7966 e) # Double quotes because $CXX needs to be expanded
7967 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" cpp /lib/cpp
7968 do
7969 ac_preproc_ok=false
7970 for ac_cxx_preproc_warn_flag in '' yes
7971 do
7972 # Use a header file that comes with gcc, so configuring glibc
7973 # with a fresh cross-compiler works.
7974 # On the NeXT, cc -E runs the code through the compiler's parser,
7975 # not just through cpp. "Syntax error" is here to catch this case.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #include <limits.h>
7979 Syntax error
7980 _ACEOF
7981 if ac_fn_cxx_try_cpp "$LINENO"
7982 then :
7983
7984 else case e in #(
7985 e) # Broken: fails on valid input.
7986 continue ;;
7987 esac
7988 fi
7989 rm -f conftest.err conftest.i conftest.$ac_ext
7990
7991 # OK, works on sane cases. Now check whether nonexistent headers
7992 # can be detected and how.
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #include <ac_nonexistent.h>
7996 _ACEOF
7997 if ac_fn_cxx_try_cpp "$LINENO"
7998 then :
7999 # Broken: success on invalid input.
8000 continue
8001 else case e in #(
8002 e) # Passes both tests.
8003 ac_preproc_ok=:
8004 break ;;
8005 esac
8006 fi
8007 rm -f conftest.err conftest.i conftest.$ac_ext
8008
8009 done
8010 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8011 rm -f conftest.i conftest.err conftest.$ac_ext
8012 if $ac_preproc_ok
8013 then :
8014 break
8015 fi
8016
8017 done
8018 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
8019 ;;
8020 esac
8021 fi
8022 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
8023 else
8024 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
8025 fi
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
8027 printf "%s\n" "$CXXCPP_FOR_BUILD" >&6; }
8028 ac_preproc_ok=false
8029 for ac_cxx_preproc_warn_flag in '' yes
8030 do
8031 # Use a header file that comes with gcc, so configuring glibc
8032 # with a fresh cross-compiler works.
8033 # On the NeXT, cc -E runs the code through the compiler's parser,
8034 # not just through cpp. "Syntax error" is here to catch this case.
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <limits.h>
8038 Syntax error
8039 _ACEOF
8040 if ac_fn_cxx_try_cpp "$LINENO"
8041 then :
8042
8043 else case e in #(
8044 e) # Broken: fails on valid input.
8045 continue ;;
8046 esac
8047 fi
8048 rm -f conftest.err conftest.i conftest.$ac_ext
8049
8050 # OK, works on sane cases. Now check whether nonexistent headers
8051 # can be detected and how.
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 #include <ac_nonexistent.h>
8055 _ACEOF
8056 if ac_fn_cxx_try_cpp "$LINENO"
8057 then :
8058 # Broken: success on invalid input.
8059 continue
8060 else case e in #(
8061 e) # Passes both tests.
8062 ac_preproc_ok=:
8063 break ;;
8064 esac
8065 fi
8066 rm -f conftest.err conftest.i conftest.$ac_ext
8067
8068 done
8069 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8070 rm -f conftest.i conftest.err conftest.$ac_ext
8071 if $ac_preproc_ok
8072 then :
8073
8074 else case e in #(
8075 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8076 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8077 as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
8078 See 'config.log' for more details" "$LINENO" 5; } ;;
8079 esac
8080 fi
8081
8082 ac_ext=c
8083 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
8084 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
8085 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089 ac_tool_prefix=$save_ac_tool_prefix
8090 cross_compiling=$save_cross_compiling
8091
8092
8093
8094
8095 # extract_interface needs to be run on the build system.
8096 # Since this is the only target that is being built,
8097 # simply use the build compiler throughout.
8098 # This ensures that the clang configure checks are
8099 # performed using the right compiler.
8100 CXX="$CXX_FOR_BUILD"
8101 CXXCPP="$CXXCPP_FOR_BUILD"
8102 EXEEXT="$BUILD_EXEEXT"
8103 OBJEXT="$BUILD_OBJEXT"
8104
8105
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8107 printf %s "checking for grep that handles long lines and -e... " >&6; }
8108 if test ${ac_cv_path_GREP+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else case e in #(
8112 e) if test -z "$GREP"; then
8113 ac_path_GREP_found=false
8114 # Loop through the user's path and test for each of PROGNAME-LIST
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8117 do
8118 IFS=$as_save_IFS
8119 case $as_dir in #(((
8120 '') as_dir=./ ;;
8121 */) ;;
8122 *) as_dir=$as_dir/ ;;
8123 esac
8124 for ac_prog in grep ggrep
8125 do
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8128 as_fn_executable_p "$ac_path_GREP" || continue
8129 # Check for GNU ac_path_GREP and select it if it is found.
8130 # Check for GNU $ac_path_GREP
8131 case `"$ac_path_GREP" --version 2>&1` in #(
8132 *GNU*)
8133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8134 #(
8135 *)
8136 ac_count=0
8137 printf %s 0123456789 >"conftest.in"
8138 while :
8139 do
8140 cat "conftest.in" "conftest.in" >"conftest.tmp"
8141 mv "conftest.tmp" "conftest.in"
8142 cp "conftest.in" "conftest.nl"
8143 printf "%s\n" 'GREP' >> "conftest.nl"
8144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8146 as_fn_arith $ac_count + 1 && ac_count=$as_val
8147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8148 # Best one so far, save it but keep looking for a better one
8149 ac_cv_path_GREP="$ac_path_GREP"
8150 ac_path_GREP_max=$ac_count
8151 fi
8152 # 10*(2^10) chars as input seems more than enough
8153 test $ac_count -gt 10 && break
8154 done
8155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8156 esac
8157
8158 $ac_path_GREP_found && break 3
8159 done
8160 done
8161 done
8162 IFS=$as_save_IFS
8163 if test -z "$ac_cv_path_GREP"; then
8164 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8165 fi
8166 else
8167 ac_cv_path_GREP=$GREP
8168 fi
8169 ;;
8170 esac
8171 fi
8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8173 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8174 GREP="$ac_cv_path_GREP"
8175
8176
8177 echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null
8178 if test $? -eq 0; then
8179 ac_ext=cpp
8180 ac_cpp='$CXXCPP $CPPFLAGS'
8181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8184 ac_success=no
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
8186 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
8187 if test ${ax_cv_cxx_compile_cxx11+y}
8188 then :
8189 printf %s "(cached) " >&6
8190 else case e in #(
8191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193
8194
8195 // If the compiler admits that it is not ready for C++11, why torture it?
8196 // Hopefully, this will speed up the test.
8197
8198 #ifndef __cplusplus
8199
8200 #error "This is not a C++ compiler"
8201
8202 #elif __cplusplus < 201103L
8203
8204 #error "This is not a C++11 compiler"
8205
8206 #else
8207
8208 namespace cxx11
8209 {
8210
8211 namespace test_static_assert
8212 {
8213
8214 template <typename T>
8215 struct check
8216 {
8217 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8218 };
8219
8220 }
8221
8222 namespace test_final_override
8223 {
8224
8225 struct Base
8226 {
8227 virtual ~Base() {}
8228 virtual void f() {}
8229 };
8230
8231 struct Derived : public Base
8232 {
8233 virtual ~Derived() override {}
8234 virtual void f() override {}
8235 };
8236
8237 }
8238
8239 namespace test_double_right_angle_brackets
8240 {
8241
8242 template < typename T >
8243 struct check {};
8244
8245 typedef check<void> single_type;
8246 typedef check<check<void>> double_type;
8247 typedef check<check<check<void>>> triple_type;
8248 typedef check<check<check<check<void>>>> quadruple_type;
8249
8250 }
8251
8252 namespace test_decltype
8253 {
8254
8255 int
8256 f()
8257 {
8258 int a = 1;
8259 decltype(a) b = 2;
8260 return a + b;
8261 }
8262
8263 }
8264
8265 namespace test_type_deduction
8266 {
8267
8268 template < typename T1, typename T2 >
8269 struct is_same
8270 {
8271 static const bool value = false;
8272 };
8273
8274 template < typename T >
8275 struct is_same<T, T>
8276 {
8277 static const bool value = true;
8278 };
8279
8280 template < typename T1, typename T2 >
8281 auto
8282 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8283 {
8284 return a1 + a2;
8285 }
8286
8287 int
8288 test(const int c, volatile int v)
8289 {
8290 static_assert(is_same<int, decltype(0)>::value == true, "");
8291 static_assert(is_same<int, decltype(c)>::value == false, "");
8292 static_assert(is_same<int, decltype(v)>::value == false, "");
8293 auto ac = c;
8294 auto av = v;
8295 auto sumi = ac + av + 'x';
8296 auto sumf = ac + av + 1.0;
8297 static_assert(is_same<int, decltype(ac)>::value == true, "");
8298 static_assert(is_same<int, decltype(av)>::value == true, "");
8299 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8300 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8301 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8302 return (sumf > 0.0) ? sumi : add(c, v);
8303 }
8304
8305 }
8306
8307 namespace test_noexcept
8308 {
8309
8310 int f() { return 0; }
8311 int g() noexcept { return 0; }
8312
8313 static_assert(noexcept(f()) == false, "");
8314 static_assert(noexcept(g()) == true, "");
8315
8316 }
8317
8318 namespace test_constexpr
8319 {
8320
8321 template < typename CharT >
8322 unsigned long constexpr
8323 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8324 {
8325 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8326 }
8327
8328 template < typename CharT >
8329 unsigned long constexpr
8330 strlen_c(const CharT *const s) noexcept
8331 {
8332 return strlen_c_r(s, 0UL);
8333 }
8334
8335 static_assert(strlen_c("") == 0UL, "");
8336 static_assert(strlen_c("1") == 1UL, "");
8337 static_assert(strlen_c("example") == 7UL, "");
8338 static_assert(strlen_c("another\0example") == 7UL, "");
8339
8340 }
8341
8342 namespace test_rvalue_references
8343 {
8344
8345 template < int N >
8346 struct answer
8347 {
8348 static constexpr int value = N;
8349 };
8350
8351 answer<1> f(int&) { return answer<1>(); }
8352 answer<2> f(const int&) { return answer<2>(); }
8353 answer<3> f(int&&) { return answer<3>(); }
8354
8355 void
8356 test()
8357 {
8358 int i = 0;
8359 const int c = 0;
8360 static_assert(decltype(f(i))::value == 1, "");
8361 static_assert(decltype(f(c))::value == 2, "");
8362 static_assert(decltype(f(0))::value == 3, "");
8363 }
8364
8365 }
8366
8367 namespace test_uniform_initialization
8368 {
8369
8370 struct test
8371 {
8372 static const int zero {};
8373 static const int one {1};
8374 };
8375
8376 static_assert(test::zero == 0, "");
8377 static_assert(test::one == 1, "");
8378
8379 }
8380
8381 namespace test_lambdas
8382 {
8383
8384 void
8385 test1()
8386 {
8387 auto lambda1 = [](){};
8388 auto lambda2 = lambda1;
8389 lambda1();
8390 lambda2();
8391 }
8392
8393 int
8394 test2()
8395 {
8396 auto a = [](int i, int j){ return i + j; }(1, 2);
8397 auto b = []() -> int { return '0'; }();
8398 auto c = [=](){ return a + b; }();
8399 auto d = [&](){ return c; }();
8400 auto e = [a, &b](int x) mutable {
8401 const auto identity = [](int y){ return y; };
8402 for (auto i = 0; i < a; ++i)
8403 a += b--;
8404 return x + identity(a + b);
8405 }(0);
8406 return a + b + c + d + e;
8407 }
8408
8409 int
8410 test3()
8411 {
8412 const auto nullary = [](){ return 0; };
8413 const auto unary = [](int x){ return x; };
8414 using nullary_t = decltype(nullary);
8415 using unary_t = decltype(unary);
8416 const auto higher1st = [](nullary_t f){ return f(); };
8417 const auto higher2nd = [unary](nullary_t f1){
8418 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8419 };
8420 return higher1st(nullary) + higher2nd(nullary)(unary);
8421 }
8422
8423 }
8424
8425 namespace test_variadic_templates
8426 {
8427
8428 template <int...>
8429 struct sum;
8430
8431 template <int N0, int... N1toN>
8432 struct sum<N0, N1toN...>
8433 {
8434 static constexpr auto value = N0 + sum<N1toN...>::value;
8435 };
8436
8437 template <>
8438 struct sum<>
8439 {
8440 static constexpr auto value = 0;
8441 };
8442
8443 static_assert(sum<>::value == 0, "");
8444 static_assert(sum<1>::value == 1, "");
8445 static_assert(sum<23>::value == 23, "");
8446 static_assert(sum<1, 2>::value == 3, "");
8447 static_assert(sum<5, 5, 11>::value == 21, "");
8448 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8449
8450 }
8451
8452 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8453 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8454 // because of this.
8455 namespace test_template_alias_sfinae
8456 {
8457
8458 struct foo {};
8459
8460 template<typename T>
8461 using member = typename T::member_type;
8462
8463 template<typename T>
8464 void func(...) {}
8465
8466 template<typename T>
8467 void func(member<T>*) {}
8468
8469 void test();
8470
8471 void test() { func<foo>(0); }
8472
8473 }
8474
8475 } // namespace cxx11
8476
8477 #endif // __cplusplus >= 201103L
8478
8479
8480
8481 _ACEOF
8482 if ac_fn_cxx_try_compile "$LINENO"
8483 then :
8484 ax_cv_cxx_compile_cxx11=yes
8485 else case e in #(
8486 e) ax_cv_cxx_compile_cxx11=no ;;
8487 esac
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8490 esac
8491 fi
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
8493 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
8494 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
8495 ac_success=yes
8496 fi
8497 ac_ext=c
8498 ac_cpp='$CPP $CPPFLAGS'
8499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502
8503 if test x$ac_success = xno; then
8504 HAVE_CXX11=0
8505 else
8506 HAVE_CXX11=1
8507
8508 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
8509
8510 fi
8511
8512
8513 else
8514 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
8515 ac_ext=cpp
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8520 ac_success=no
8521
8522
8523
8524
8525
8526 if test x$ac_success = xno; then
8527 for alternative in ${ax_cxx_compile_alternatives}; do
8528 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8529 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
8531 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
8532 if eval test \${$cachevar+y}
8533 then :
8534 printf %s "(cached) " >&6
8535 else case e in #(
8536 e) ac_save_CXX="$CXX"
8537 CXX="$CXX $switch"
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540
8541
8542 // If the compiler admits that it is not ready for C++11, why torture it?
8543 // Hopefully, this will speed up the test.
8544
8545 #ifndef __cplusplus
8546
8547 #error "This is not a C++ compiler"
8548
8549 #elif __cplusplus < 201103L
8550
8551 #error "This is not a C++11 compiler"
8552
8553 #else
8554
8555 namespace cxx11
8556 {
8557
8558 namespace test_static_assert
8559 {
8560
8561 template <typename T>
8562 struct check
8563 {
8564 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8565 };
8566
8567 }
8568
8569 namespace test_final_override
8570 {
8571
8572 struct Base
8573 {
8574 virtual ~Base() {}
8575 virtual void f() {}
8576 };
8577
8578 struct Derived : public Base
8579 {
8580 virtual ~Derived() override {}
8581 virtual void f() override {}
8582 };
8583
8584 }
8585
8586 namespace test_double_right_angle_brackets
8587 {
8588
8589 template < typename T >
8590 struct check {};
8591
8592 typedef check<void> single_type;
8593 typedef check<check<void>> double_type;
8594 typedef check<check<check<void>>> triple_type;
8595 typedef check<check<check<check<void>>>> quadruple_type;
8596
8597 }
8598
8599 namespace test_decltype
8600 {
8601
8602 int
8603 f()
8604 {
8605 int a = 1;
8606 decltype(a) b = 2;
8607 return a + b;
8608 }
8609
8610 }
8611
8612 namespace test_type_deduction
8613 {
8614
8615 template < typename T1, typename T2 >
8616 struct is_same
8617 {
8618 static const bool value = false;
8619 };
8620
8621 template < typename T >
8622 struct is_same<T, T>
8623 {
8624 static const bool value = true;
8625 };
8626
8627 template < typename T1, typename T2 >
8628 auto
8629 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8630 {
8631 return a1 + a2;
8632 }
8633
8634 int
8635 test(const int c, volatile int v)
8636 {
8637 static_assert(is_same<int, decltype(0)>::value == true, "");
8638 static_assert(is_same<int, decltype(c)>::value == false, "");
8639 static_assert(is_same<int, decltype(v)>::value == false, "");
8640 auto ac = c;
8641 auto av = v;
8642 auto sumi = ac + av + 'x';
8643 auto sumf = ac + av + 1.0;
8644 static_assert(is_same<int, decltype(ac)>::value == true, "");
8645 static_assert(is_same<int, decltype(av)>::value == true, "");
8646 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8647 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8648 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8649 return (sumf > 0.0) ? sumi : add(c, v);
8650 }
8651
8652 }
8653
8654 namespace test_noexcept
8655 {
8656
8657 int f() { return 0; }
8658 int g() noexcept { return 0; }
8659
8660 static_assert(noexcept(f()) == false, "");
8661 static_assert(noexcept(g()) == true, "");
8662
8663 }
8664
8665 namespace test_constexpr
8666 {
8667
8668 template < typename CharT >
8669 unsigned long constexpr
8670 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8671 {
8672 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8673 }
8674
8675 template < typename CharT >
8676 unsigned long constexpr
8677 strlen_c(const CharT *const s) noexcept
8678 {
8679 return strlen_c_r(s, 0UL);
8680 }
8681
8682 static_assert(strlen_c("") == 0UL, "");
8683 static_assert(strlen_c("1") == 1UL, "");
8684 static_assert(strlen_c("example") == 7UL, "");
8685 static_assert(strlen_c("another\0example") == 7UL, "");
8686
8687 }
8688
8689 namespace test_rvalue_references
8690 {
8691
8692 template < int N >
8693 struct answer
8694 {
8695 static constexpr int value = N;
8696 };
8697
8698 answer<1> f(int&) { return answer<1>(); }
8699 answer<2> f(const int&) { return answer<2>(); }
8700 answer<3> f(int&&) { return answer<3>(); }
8701
8702 void
8703 test()
8704 {
8705 int i = 0;
8706 const int c = 0;
8707 static_assert(decltype(f(i))::value == 1, "");
8708 static_assert(decltype(f(c))::value == 2, "");
8709 static_assert(decltype(f(0))::value == 3, "");
8710 }
8711
8712 }
8713
8714 namespace test_uniform_initialization
8715 {
8716
8717 struct test
8718 {
8719 static const int zero {};
8720 static const int one {1};
8721 };
8722
8723 static_assert(test::zero == 0, "");
8724 static_assert(test::one == 1, "");
8725
8726 }
8727
8728 namespace test_lambdas
8729 {
8730
8731 void
8732 test1()
8733 {
8734 auto lambda1 = [](){};
8735 auto lambda2 = lambda1;
8736 lambda1();
8737 lambda2();
8738 }
8739
8740 int
8741 test2()
8742 {
8743 auto a = [](int i, int j){ return i + j; }(1, 2);
8744 auto b = []() -> int { return '0'; }();
8745 auto c = [=](){ return a + b; }();
8746 auto d = [&](){ return c; }();
8747 auto e = [a, &b](int x) mutable {
8748 const auto identity = [](int y){ return y; };
8749 for (auto i = 0; i < a; ++i)
8750 a += b--;
8751 return x + identity(a + b);
8752 }(0);
8753 return a + b + c + d + e;
8754 }
8755
8756 int
8757 test3()
8758 {
8759 const auto nullary = [](){ return 0; };
8760 const auto unary = [](int x){ return x; };
8761 using nullary_t = decltype(nullary);
8762 using unary_t = decltype(unary);
8763 const auto higher1st = [](nullary_t f){ return f(); };
8764 const auto higher2nd = [unary](nullary_t f1){
8765 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8766 };
8767 return higher1st(nullary) + higher2nd(nullary)(unary);
8768 }
8769
8770 }
8771
8772 namespace test_variadic_templates
8773 {
8774
8775 template <int...>
8776 struct sum;
8777
8778 template <int N0, int... N1toN>
8779 struct sum<N0, N1toN...>
8780 {
8781 static constexpr auto value = N0 + sum<N1toN...>::value;
8782 };
8783
8784 template <>
8785 struct sum<>
8786 {
8787 static constexpr auto value = 0;
8788 };
8789
8790 static_assert(sum<>::value == 0, "");
8791 static_assert(sum<1>::value == 1, "");
8792 static_assert(sum<23>::value == 23, "");
8793 static_assert(sum<1, 2>::value == 3, "");
8794 static_assert(sum<5, 5, 11>::value == 21, "");
8795 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8796
8797 }
8798
8799 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8800 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8801 // because of this.
8802 namespace test_template_alias_sfinae
8803 {
8804
8805 struct foo {};
8806
8807 template<typename T>
8808 using member = typename T::member_type;
8809
8810 template<typename T>
8811 void func(...) {}
8812
8813 template<typename T>
8814 void func(member<T>*) {}
8815
8816 void test();
8817
8818 void test() { func<foo>(0); }
8819
8820 }
8821
8822 } // namespace cxx11
8823
8824 #endif // __cplusplus >= 201103L
8825
8826
8827
8828 _ACEOF
8829 if ac_fn_cxx_try_compile "$LINENO"
8830 then :
8831 eval $cachevar=yes
8832 else case e in #(
8833 e) eval $cachevar=no ;;
8834 esac
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8837 CXX="$ac_save_CXX" ;;
8838 esac
8839 fi
8840 eval ac_res=\$$cachevar
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8842 printf "%s\n" "$ac_res" >&6; }
8843 if eval test x\$$cachevar = xyes; then
8844 CXX="$CXX $switch"
8845 if test -n "$CXXCPP" ; then
8846 CXXCPP="$CXXCPP $switch"
8847 fi
8848 ac_success=yes
8849 break
8850 fi
8851 done
8852 if test x$ac_success = xyes; then
8853 break
8854 fi
8855 done
8856 fi
8857 ac_ext=c
8858 ac_cpp='$CPP $CPPFLAGS'
8859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862
8863 if test x$ax_cxx_compile_cxx11_required = xtrue; then
8864 if test x$ac_success = xno; then
8865 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
8866 fi
8867 fi
8868 if test x$ac_success = xno; then
8869 HAVE_CXX11=0
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
8871 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
8872 else
8873 HAVE_CXX11=1
8874
8875 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
8876
8877 fi
8878
8879
8880 fi
8881
8882
8883 # Check whether --enable-shared was given.
8884 if test ${enable_shared+y}
8885 then :
8886 enableval=$enable_shared; p=${PACKAGE-default}
8887 case $enableval in
8888 yes) enable_shared=yes ;;
8889 no) enable_shared=no ;;
8890 *)
8891 enable_shared=no
8892 # Look at the argument we got. We use all the common list separators.
8893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8894 for pkg in $enableval; do
8895 IFS=$lt_save_ifs
8896 if test "X$pkg" = "X$p"; then
8897 enable_shared=yes
8898 fi
8899 done
8900 IFS=$lt_save_ifs
8901 ;;
8902 esac
8903 else case e in #(
8904 e) enable_shared=no ;;
8905 esac
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 case `pwd` in
8917 *\ * | *\ *)
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8919 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8920 esac
8921
8922
8923
8924 macro_version='2.5.4'
8925 macro_revision='2.5.4'
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940 ltmain=$ac_aux_dir/ltmain.sh
8941
8942 # Backslashify metacharacters that are still active within
8943 # double-quoted strings.
8944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8945
8946 # Same as above, but do not quote variable references.
8947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8948
8949 # Sed substitution to delay expansion of an escaped shell variable in a
8950 # double_quote_subst'ed string.
8951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8952
8953 # Sed substitution to delay expansion of an escaped single quote.
8954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8955
8956 # Sed substitution to avoid accidental globbing in evaled expressions
8957 no_glob_subst='s/\*/\\\*/g'
8958
8959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8962
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8964 printf %s "checking how to print strings... " >&6; }
8965 # Test print first, because it will be a builtin if present.
8966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8968 ECHO='print -r --'
8969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8970 ECHO='printf %s\n'
8971 else
8972 # Use this function as a fallback that always works.
8973 func_fallback_echo ()
8974 {
8975 eval 'cat <<_LTECHO_EOF
8976 $1
8977 _LTECHO_EOF'
8978 }
8979 ECHO='func_fallback_echo'
8980 fi
8981
8982 # func_echo_all arg...
8983 # Invoke $ECHO with all args, space-separated.
8984 func_echo_all ()
8985 {
8986 $ECHO ""
8987 }
8988
8989 case $ECHO in
8990 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8991 printf "%s\n" "printf" >&6; } ;;
8992 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8993 printf "%s\n" "print -r" >&6; } ;;
8994 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8995 printf "%s\n" "cat" >&6; } ;;
8996 esac
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9012 printf %s "checking for a sed that does not truncate output... " >&6; }
9013 if test ${ac_cv_path_SED+y}
9014 then :
9015 printf %s "(cached) " >&6
9016 else case e in #(
9017 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9018 for ac_i in 1 2 3 4 5 6 7; do
9019 ac_script="$ac_script$as_nl$ac_script"
9020 done
9021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9022 { ac_script=; unset ac_script;}
9023 if test -z "$SED"; then
9024 ac_path_SED_found=false
9025 # Loop through the user's path and test for each of PROGNAME-LIST
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029 IFS=$as_save_IFS
9030 case $as_dir in #(((
9031 '') as_dir=./ ;;
9032 */) ;;
9033 *) as_dir=$as_dir/ ;;
9034 esac
9035 for ac_prog in sed gsed
9036 do
9037 for ac_exec_ext in '' $ac_executable_extensions; do
9038 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9039 as_fn_executable_p "$ac_path_SED" || continue
9040 # Check for GNU ac_path_SED and select it if it is found.
9041 # Check for GNU $ac_path_SED
9042 case `"$ac_path_SED" --version 2>&1` in #(
9043 *GNU*)
9044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9045 #(
9046 *)
9047 ac_count=0
9048 printf %s 0123456789 >"conftest.in"
9049 while :
9050 do
9051 cat "conftest.in" "conftest.in" >"conftest.tmp"
9052 mv "conftest.tmp" "conftest.in"
9053 cp "conftest.in" "conftest.nl"
9054 printf "%s\n" '' >> "conftest.nl"
9055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9057 as_fn_arith $ac_count + 1 && ac_count=$as_val
9058 if test $ac_count -gt ${ac_path_SED_max-0}; then
9059 # Best one so far, save it but keep looking for a better one
9060 ac_cv_path_SED="$ac_path_SED"
9061 ac_path_SED_max=$ac_count
9062 fi
9063 # 10*(2^10) chars as input seems more than enough
9064 test $ac_count -gt 10 && break
9065 done
9066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9067 esac
9068
9069 $ac_path_SED_found && break 3
9070 done
9071 done
9072 done
9073 IFS=$as_save_IFS
9074 if test -z "$ac_cv_path_SED"; then
9075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9076 fi
9077 else
9078 ac_cv_path_SED=$SED
9079 fi
9080 ;;
9081 esac
9082 fi
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9084 printf "%s\n" "$ac_cv_path_SED" >&6; }
9085 SED="$ac_cv_path_SED"
9086 rm -f conftest.sed
9087
9088 test -z "$SED" && SED=sed
9089 Xsed="$SED -e 1s/^X//"
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9102 printf %s "checking for egrep... " >&6; }
9103 if test ${ac_cv_path_EGREP+y}
9104 then :
9105 printf %s "(cached) " >&6
9106 else case e in #(
9107 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9108 then ac_cv_path_EGREP="$GREP -E"
9109 else
9110 if test -z "$EGREP"; then
9111 ac_path_EGREP_found=false
9112 # Loop through the user's path and test for each of PROGNAME-LIST
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9115 do
9116 IFS=$as_save_IFS
9117 case $as_dir in #(((
9118 '') as_dir=./ ;;
9119 */) ;;
9120 *) as_dir=$as_dir/ ;;
9121 esac
9122 for ac_prog in egrep
9123 do
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9126 as_fn_executable_p "$ac_path_EGREP" || continue
9127 # Check for GNU ac_path_EGREP and select it if it is found.
9128 # Check for GNU $ac_path_EGREP
9129 case `"$ac_path_EGREP" --version 2>&1` in #(
9130 *GNU*)
9131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9132 #(
9133 *)
9134 ac_count=0
9135 printf %s 0123456789 >"conftest.in"
9136 while :
9137 do
9138 cat "conftest.in" "conftest.in" >"conftest.tmp"
9139 mv "conftest.tmp" "conftest.in"
9140 cp "conftest.in" "conftest.nl"
9141 printf "%s\n" 'EGREP' >> "conftest.nl"
9142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9144 as_fn_arith $ac_count + 1 && ac_count=$as_val
9145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9146 # Best one so far, save it but keep looking for a better one
9147 ac_cv_path_EGREP="$ac_path_EGREP"
9148 ac_path_EGREP_max=$ac_count
9149 fi
9150 # 10*(2^10) chars as input seems more than enough
9151 test $ac_count -gt 10 && break
9152 done
9153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9154 esac
9155
9156 $ac_path_EGREP_found && break 3
9157 done
9158 done
9159 done
9160 IFS=$as_save_IFS
9161 if test -z "$ac_cv_path_EGREP"; then
9162 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9163 fi
9164 else
9165 ac_cv_path_EGREP=$EGREP
9166 fi
9167
9168 fi ;;
9169 esac
9170 fi
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9172 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9173 EGREP="$ac_cv_path_EGREP"
9174
9175 EGREP_TRADITIONAL=$EGREP
9176 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9177
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9179 printf %s "checking for fgrep... " >&6; }
9180 if test ${ac_cv_path_FGREP+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else case e in #(
9184 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9185 then ac_cv_path_FGREP="$GREP -F"
9186 else
9187 if test -z "$FGREP"; then
9188 ac_path_FGREP_found=false
9189 # Loop through the user's path and test for each of PROGNAME-LIST
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9192 do
9193 IFS=$as_save_IFS
9194 case $as_dir in #(((
9195 '') as_dir=./ ;;
9196 */) ;;
9197 *) as_dir=$as_dir/ ;;
9198 esac
9199 for ac_prog in fgrep
9200 do
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9203 as_fn_executable_p "$ac_path_FGREP" || continue
9204 # Check for GNU ac_path_FGREP and select it if it is found.
9205 # Check for GNU $ac_path_FGREP
9206 case `"$ac_path_FGREP" --version 2>&1` in #(
9207 *GNU*)
9208 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9209 #(
9210 *)
9211 ac_count=0
9212 printf %s 0123456789 >"conftest.in"
9213 while :
9214 do
9215 cat "conftest.in" "conftest.in" >"conftest.tmp"
9216 mv "conftest.tmp" "conftest.in"
9217 cp "conftest.in" "conftest.nl"
9218 printf "%s\n" 'FGREP' >> "conftest.nl"
9219 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9221 as_fn_arith $ac_count + 1 && ac_count=$as_val
9222 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9223 # Best one so far, save it but keep looking for a better one
9224 ac_cv_path_FGREP="$ac_path_FGREP"
9225 ac_path_FGREP_max=$ac_count
9226 fi
9227 # 10*(2^10) chars as input seems more than enough
9228 test $ac_count -gt 10 && break
9229 done
9230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9231 esac
9232
9233 $ac_path_FGREP_found && break 3
9234 done
9235 done
9236 done
9237 IFS=$as_save_IFS
9238 if test -z "$ac_cv_path_FGREP"; then
9239 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9240 fi
9241 else
9242 ac_cv_path_FGREP=$FGREP
9243 fi
9244
9245 fi ;;
9246 esac
9247 fi
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9249 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9250 FGREP="$ac_cv_path_FGREP"
9251
9252
9253 test -z "$GREP" && GREP=grep
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 # Check whether --with-gnu-ld was given.
9274 if test ${with_gnu_ld+y}
9275 then :
9276 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9277 else case e in #(
9278 e) with_gnu_ld=no ;;
9279 esac
9280 fi
9281
9282 ac_prog=ld
9283 if test yes = "$GCC"; then
9284 # Check if gcc -print-prog-name=ld gives a path.
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9286 printf %s "checking for ld used by $CC... " >&6; }
9287 case $host in
9288 *-*-mingw* | *-*-windows*)
9289 # gcc leaves a trailing carriage return, which upsets mingw
9290 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9291 *)
9292 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9293 esac
9294 case $ac_prog in
9295 # Accept absolute paths.
9296 [\\/]* | ?:[\\/]*)
9297 re_direlt='/[^/][^/]*/\.\./'
9298 # Canonicalize the pathname of ld
9299 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9300 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9301 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9302 done
9303 test -z "$LD" && LD=$ac_prog
9304 ;;
9305 "")
9306 # If it fails, then pretend we aren't using GCC.
9307 ac_prog=ld
9308 ;;
9309 *)
9310 # If it is relative, then search for the first ld in PATH.
9311 with_gnu_ld=unknown
9312 ;;
9313 esac
9314 elif test yes = "$with_gnu_ld"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9316 printf %s "checking for GNU ld... " >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9319 printf %s "checking for non-GNU ld... " >&6; }
9320 fi
9321 if test ${lt_cv_path_LD+y}
9322 then :
9323 printf %s "(cached) " >&6
9324 else case e in #(
9325 e) if test -z "$LD"; then
9326 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9327 for ac_dir in $PATH; do
9328 IFS=$lt_save_ifs
9329 test -z "$ac_dir" && ac_dir=.
9330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9331 lt_cv_path_LD=$ac_dir/$ac_prog
9332 # Check to see if the program is GNU ld. I'd rather use --version,
9333 # but apparently some variants of GNU ld only accept -v.
9334 # Break only if it was the GNU/non-GNU ld that we prefer.
9335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9336 *GNU* | *'with BFD'*)
9337 test no != "$with_gnu_ld" && break
9338 ;;
9339 *)
9340 test yes != "$with_gnu_ld" && break
9341 ;;
9342 esac
9343 fi
9344 done
9345 IFS=$lt_save_ifs
9346 else
9347 lt_cv_path_LD=$LD # Let the user override the test with a path.
9348 fi ;;
9349 esac
9350 fi
9351
9352 LD=$lt_cv_path_LD
9353 if test -n "$LD"; then
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9355 printf "%s\n" "$LD" >&6; }
9356 else
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 printf "%s\n" "no" >&6; }
9359 fi
9360 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9362 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9363 if test ${lt_cv_prog_gnu_ld+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else case e in #(
9367 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
9368 case `$LD -v 2>&1 </dev/null` in
9369 *GNU* | *'with BFD'*)
9370 lt_cv_prog_gnu_ld=yes
9371 ;;
9372 *)
9373 lt_cv_prog_gnu_ld=no
9374 ;;
9375 esac ;;
9376 esac
9377 fi
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9379 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9380 with_gnu_ld=$lt_cv_prog_gnu_ld
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9391 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9392 if test ${lt_cv_path_NM+y}
9393 then :
9394 printf %s "(cached) " >&6
9395 else case e in #(
9396 e) if test -n "$NM"; then
9397 # Let the user override the test.
9398 lt_cv_path_NM=$NM
9399 else
9400 lt_nm_to_check=${ac_tool_prefix}nm
9401 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9402 lt_nm_to_check="$lt_nm_to_check nm"
9403 fi
9404 for lt_tmp_nm in $lt_nm_to_check; do
9405 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9406 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9407 IFS=$lt_save_ifs
9408 test -z "$ac_dir" && ac_dir=.
9409 tmp_nm=$ac_dir/$lt_tmp_nm
9410 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9411 # Check to see if the nm accepts a BSD-compat flag.
9412 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9413 # nm: unknown option "B" ignored
9414 # Tru64's nm complains that /dev/null is an invalid object file
9415 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9416 case $build_os in
9417 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
9418 *) lt_bad_file=/dev/null ;;
9419 esac
9420 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9421 *$lt_bad_file* | *'Invalid file or object type'*)
9422 lt_cv_path_NM="$tmp_nm -B"
9423 break 2
9424 ;;
9425 *)
9426 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9427 */dev/null*)
9428 lt_cv_path_NM="$tmp_nm -p"
9429 break 2
9430 ;;
9431 *)
9432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9433 continue # so that we can try to find one that supports BSD flags
9434 ;;
9435 esac
9436 ;;
9437 esac
9438 fi
9439 done
9440 IFS=$lt_save_ifs
9441 done
9442 : ${lt_cv_path_NM=no}
9443 fi ;;
9444 esac
9445 fi
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9447 printf "%s\n" "$lt_cv_path_NM" >&6; }
9448 if test no != "$lt_cv_path_NM"; then
9449 NM=$lt_cv_path_NM
9450 else
9451 # Didn't find any BSD compatible name lister, look for dumpbin.
9452 if test -n "$DUMPBIN"; then :
9453 # Let the user override the test.
9454 else
9455 if test -n "$ac_tool_prefix"; then
9456 for ac_prog in dumpbin "link -dump"
9457 do
9458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 printf %s "checking for $ac_word... " >&6; }
9462 if test ${ac_cv_prog_DUMPBIN+y}
9463 then :
9464 printf %s "(cached) " >&6
9465 else case e in #(
9466 e) if test -n "$DUMPBIN"; then
9467 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9468 else
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9471 do
9472 IFS=$as_save_IFS
9473 case $as_dir in #(((
9474 '') as_dir=./ ;;
9475 */) ;;
9476 *) as_dir=$as_dir/ ;;
9477 esac
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484 done
9485 done
9486 IFS=$as_save_IFS
9487
9488 fi ;;
9489 esac
9490 fi
9491 DUMPBIN=$ac_cv_prog_DUMPBIN
9492 if test -n "$DUMPBIN"; then
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9494 printf "%s\n" "$DUMPBIN" >&6; }
9495 else
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 printf "%s\n" "no" >&6; }
9498 fi
9499
9500
9501 test -n "$DUMPBIN" && break
9502 done
9503 fi
9504 if test -z "$DUMPBIN"; then
9505 ac_ct_DUMPBIN=$DUMPBIN
9506 for ac_prog in dumpbin "link -dump"
9507 do
9508 # Extract the first word of "$ac_prog", so it can be a program name with args.
9509 set dummy $ac_prog; ac_word=$2
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 printf %s "checking for $ac_word... " >&6; }
9512 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else case e in #(
9516 e) if test -n "$ac_ct_DUMPBIN"; then
9517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9518 else
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9521 do
9522 IFS=$as_save_IFS
9523 case $as_dir in #(((
9524 '') as_dir=./ ;;
9525 */) ;;
9526 *) as_dir=$as_dir/ ;;
9527 esac
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534 done
9535 done
9536 IFS=$as_save_IFS
9537
9538 fi ;;
9539 esac
9540 fi
9541 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9542 if test -n "$ac_ct_DUMPBIN"; then
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9544 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9545 else
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 printf "%s\n" "no" >&6; }
9548 fi
9549
9550
9551 test -n "$ac_ct_DUMPBIN" && break
9552 done
9553
9554 if test "x$ac_ct_DUMPBIN" = x; then
9555 DUMPBIN=":"
9556 else
9557 case $cross_compiling:$ac_tool_warned in
9558 yes:)
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9561 ac_tool_warned=yes ;;
9562 esac
9563 DUMPBIN=$ac_ct_DUMPBIN
9564 fi
9565 fi
9566
9567 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9568 *COFF*)
9569 DUMPBIN="$DUMPBIN -symbols -headers"
9570 ;;
9571 *)
9572 DUMPBIN=:
9573 ;;
9574 esac
9575 fi
9576
9577 if test : != "$DUMPBIN"; then
9578 NM=$DUMPBIN
9579 fi
9580 fi
9581 test -z "$NM" && NM=nm
9582
9583
9584
9585
9586
9587
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9589 printf %s "checking the name lister ($NM) interface... " >&6; }
9590 if test ${lt_cv_nm_interface+y}
9591 then :
9592 printf %s "(cached) " >&6
9593 else case e in #(
9594 e) lt_cv_nm_interface="BSD nm"
9595 echo "int some_variable = 0;" > conftest.$ac_ext
9596 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9597 (eval "$ac_compile" 2>conftest.err)
9598 cat conftest.err >&5
9599 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9600 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9601 cat conftest.err >&5
9602 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9603 cat conftest.out >&5
9604 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9605 lt_cv_nm_interface="MS dumpbin"
9606 fi
9607 rm -f conftest* ;;
9608 esac
9609 fi
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9611 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9612
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9614 printf %s "checking whether ln -s works... " >&6; }
9615 LN_S=$as_ln_s
9616 if test "$LN_S" = "ln -s"; then
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9618 printf "%s\n" "yes" >&6; }
9619 else
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9621 printf "%s\n" "no, using $LN_S" >&6; }
9622 fi
9623
9624 # find the maximum length of command line arguments
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9626 printf %s "checking the maximum length of command line arguments... " >&6; }
9627 if test ${lt_cv_sys_max_cmd_len+y}
9628 then :
9629 printf %s "(cached) " >&6
9630 else case e in #(
9631 e) i=0
9632 teststring=ABCD
9633
9634 case $build_os in
9635 msdosdjgpp*)
9636 # On DJGPP, this test can blow up pretty badly due to problems in libc
9637 # (any single argument exceeding 2000 bytes causes a buffer overrun
9638 # during glob expansion). Even if it were fixed, the result of this
9639 # check would be larger than it should be.
9640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9641 ;;
9642
9643 gnu* | ironclad*)
9644 # Under GNU Hurd and Ironclad, this test is not required because there
9645 # is no limit to the length of command line arguments.
9646 # Libtool will interpret -1 as no limit whatsoever
9647 lt_cv_sys_max_cmd_len=-1;
9648 ;;
9649
9650 cygwin* | mingw* | windows* | cegcc*)
9651 # On Win9x/ME, this test blows up -- it succeeds, but takes
9652 # about 5 minutes as the teststring grows exponentially.
9653 # Worse, since 9x/ME are not pre-emptively multitasking,
9654 # you end up with a "frozen" computer, even though with patience
9655 # the test eventually succeeds (with a max line length of 256k).
9656 # Instead, let's just punt: use the minimum linelength reported by
9657 # all of the supported platforms: 8192 (on NT/2K/XP).
9658 lt_cv_sys_max_cmd_len=8192;
9659 ;;
9660
9661 mint*)
9662 # On MiNT this can take a long time and run out of memory.
9663 lt_cv_sys_max_cmd_len=8192;
9664 ;;
9665
9666 amigaos*)
9667 # On AmigaOS with pdksh, this test takes hours, literally.
9668 # So we just punt and use a minimum line length of 8192.
9669 lt_cv_sys_max_cmd_len=8192;
9670 ;;
9671
9672 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9673 # This has been around since 386BSD, at least. Likely further.
9674 if test -x /sbin/sysctl; then
9675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9676 elif test -x /usr/sbin/sysctl; then
9677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9678 else
9679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9680 fi
9681 # And add a safety zone
9682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9684 ;;
9685
9686 interix*)
9687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9688 lt_cv_sys_max_cmd_len=196608
9689 ;;
9690
9691 os2*)
9692 # The test takes a long time on OS/2.
9693 lt_cv_sys_max_cmd_len=8192
9694 ;;
9695
9696 osf*)
9697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9699 # nice to cause kernel panics so lets avoid the loop below.
9700 # First set a reasonable default.
9701 lt_cv_sys_max_cmd_len=16384
9702 #
9703 if test -x /sbin/sysconfig; then
9704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9706 esac
9707 fi
9708 ;;
9709 sco3.2v5*)
9710 lt_cv_sys_max_cmd_len=102400
9711 ;;
9712 sysv5* | sco5v6* | sysv4.2uw2*)
9713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9714 if test -n "$kargmax"; then
9715 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9716 else
9717 lt_cv_sys_max_cmd_len=32768
9718 fi
9719 ;;
9720 *)
9721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9722 if test -n "$lt_cv_sys_max_cmd_len" && \
9723 test undefined != "$lt_cv_sys_max_cmd_len"; then
9724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9726 else
9727 # Make teststring a little bigger before we do anything with it.
9728 # a 1K string should be a reasonable start.
9729 for i in 1 2 3 4 5 6 7 8; do
9730 teststring=$teststring$teststring
9731 done
9732 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9733 # If test is not a shell built-in, we'll probably end up computing a
9734 # maximum length that is only half of the actual maximum length, but
9735 # we can't tell.
9736 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9737 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9738 test 17 != "$i" # 1/2 MB should be enough
9739 do
9740 i=`expr $i + 1`
9741 teststring=$teststring$teststring
9742 done
9743 # Only check the string length outside the loop.
9744 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9745 teststring=
9746 # Add a significant safety factor because C++ compilers can tack on
9747 # massive amounts of additional arguments before passing them to the
9748 # linker. It appears as though 1/2 is a usable value.
9749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9750 fi
9751 ;;
9752 esac
9753 ;;
9754 esac
9755 fi
9756
9757 if test -n "$lt_cv_sys_max_cmd_len"; then
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9759 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9760 else
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9762 printf "%s\n" "none" >&6; }
9763 fi
9764 max_cmd_len=$lt_cv_sys_max_cmd_len
9765
9766
9767
9768
9769
9770
9771 : ${CP="cp -f"}
9772 : ${MV="mv -f"}
9773 : ${RM="rm -f"}
9774
9775 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9776 lt_unset=unset
9777 else
9778 lt_unset=false
9779 fi
9780
9781
9782
9783
9784
9785 # test EBCDIC or ASCII
9786 case `echo X|tr X '\101'` in
9787 A) # ASCII based system
9788 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9789 lt_SP2NL='tr \040 \012'
9790 lt_NL2SP='tr \015\012 \040\040'
9791 ;;
9792 *) # EBCDIC based system
9793 lt_SP2NL='tr \100 \n'
9794 lt_NL2SP='tr \r\n \100\100'
9795 ;;
9796 esac
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9807 printf %s "checking how to convert $build file names to $host format... " >&6; }
9808 if test ${lt_cv_to_host_file_cmd+y}
9809 then :
9810 printf %s "(cached) " >&6
9811 else case e in #(
9812 e) case $host in
9813 *-*-mingw* )
9814 case $build in
9815 *-*-mingw* | *-*-windows* ) # actually msys
9816 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9817 ;;
9818 *-*-cygwin* )
9819 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9820 ;;
9821 * ) # otherwise, assume *nix
9822 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9823 ;;
9824 esac
9825 ;;
9826 *-*-cygwin* )
9827 case $build in
9828 *-*-mingw* | *-*-windows* ) # actually msys
9829 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9830 ;;
9831 *-*-cygwin* )
9832 lt_cv_to_host_file_cmd=func_convert_file_noop
9833 ;;
9834 * ) # otherwise, assume *nix
9835 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9836 ;;
9837 esac
9838 ;;
9839 * ) # unhandled hosts (and "normal" native builds)
9840 lt_cv_to_host_file_cmd=func_convert_file_noop
9841 ;;
9842 esac
9843 ;;
9844 esac
9845 fi
9846
9847 to_host_file_cmd=$lt_cv_to_host_file_cmd
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9849 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9850
9851
9852
9853
9854
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9856 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9857 if test ${lt_cv_to_tool_file_cmd+y}
9858 then :
9859 printf %s "(cached) " >&6
9860 else case e in #(
9861 e) #assume ordinary cross tools, or native build.
9862 lt_cv_to_tool_file_cmd=func_convert_file_noop
9863 case $host in
9864 *-*-mingw* | *-*-windows* )
9865 case $build in
9866 *-*-mingw* | *-*-windows* ) # actually msys
9867 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9868 ;;
9869 esac
9870 ;;
9871 esac
9872 ;;
9873 esac
9874 fi
9875
9876 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9878 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9879
9880
9881
9882
9883
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9885 printf %s "checking for $LD option to reload object files... " >&6; }
9886 if test ${lt_cv_ld_reload_flag+y}
9887 then :
9888 printf %s "(cached) " >&6
9889 else case e in #(
9890 e) lt_cv_ld_reload_flag='-r' ;;
9891 esac
9892 fi
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9894 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9895 reload_flag=$lt_cv_ld_reload_flag
9896 case $reload_flag in
9897 "" | " "*) ;;
9898 *) reload_flag=" $reload_flag" ;;
9899 esac
9900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9901 case $host_os in
9902 cygwin* | mingw* | windows* | pw32* | cegcc*)
9903 if test yes != "$GCC"; then
9904 reload_cmds=false
9905 fi
9906 ;;
9907 darwin*)
9908 if test yes = "$GCC"; then
9909 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9910 else
9911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9912 fi
9913 ;;
9914 esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 # Extract the first word of "file", so it can be a program name with args.
9925 set dummy file; ac_word=$2
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 printf %s "checking for $ac_word... " >&6; }
9928 if test ${ac_cv_prog_FILECMD+y}
9929 then :
9930 printf %s "(cached) " >&6
9931 else case e in #(
9932 e) if test -n "$FILECMD"; then
9933 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938 IFS=$as_save_IFS
9939 case $as_dir in #(((
9940 '') as_dir=./ ;;
9941 */) ;;
9942 *) as_dir=$as_dir/ ;;
9943 esac
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_FILECMD="file"
9947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950 done
9951 done
9952 IFS=$as_save_IFS
9953
9954 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
9955 fi ;;
9956 esac
9957 fi
9958 FILECMD=$ac_cv_prog_FILECMD
9959 if test -n "$FILECMD"; then
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9961 printf "%s\n" "$FILECMD" >&6; }
9962 else
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 printf "%s\n" "no" >&6; }
9965 fi
9966
9967
9968
9969
9970
9971
9972
9973
9974 if test -n "$ac_tool_prefix"; then
9975 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9976 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 printf %s "checking for $ac_word... " >&6; }
9979 if test ${ac_cv_prog_OBJDUMP+y}
9980 then :
9981 printf %s "(cached) " >&6
9982 else case e in #(
9983 e) if test -n "$OBJDUMP"; then
9984 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9985 else
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9988 do
9989 IFS=$as_save_IFS
9990 case $as_dir in #(((
9991 '') as_dir=./ ;;
9992 */) ;;
9993 *) as_dir=$as_dir/ ;;
9994 esac
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9997 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9999 break 2
10000 fi
10001 done
10002 done
10003 IFS=$as_save_IFS
10004
10005 fi ;;
10006 esac
10007 fi
10008 OBJDUMP=$ac_cv_prog_OBJDUMP
10009 if test -n "$OBJDUMP"; then
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10011 printf "%s\n" "$OBJDUMP" >&6; }
10012 else
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 printf "%s\n" "no" >&6; }
10015 fi
10016
10017
10018 fi
10019 if test -z "$ac_cv_prog_OBJDUMP"; then
10020 ac_ct_OBJDUMP=$OBJDUMP
10021 # Extract the first word of "objdump", so it can be a program name with args.
10022 set dummy objdump; ac_word=$2
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 printf %s "checking for $ac_word... " >&6; }
10025 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10026 then :
10027 printf %s "(cached) " >&6
10028 else case e in #(
10029 e) if test -n "$ac_ct_OBJDUMP"; then
10030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035 IFS=$as_save_IFS
10036 case $as_dir in #(((
10037 '') as_dir=./ ;;
10038 */) ;;
10039 *) as_dir=$as_dir/ ;;
10040 esac
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10043 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10045 break 2
10046 fi
10047 done
10048 done
10049 IFS=$as_save_IFS
10050
10051 fi ;;
10052 esac
10053 fi
10054 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10055 if test -n "$ac_ct_OBJDUMP"; then
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10057 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10058 else
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 printf "%s\n" "no" >&6; }
10061 fi
10062
10063 if test "x$ac_ct_OBJDUMP" = x; then
10064 OBJDUMP="false"
10065 else
10066 case $cross_compiling:$ac_tool_warned in
10067 yes:)
10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10070 ac_tool_warned=yes ;;
10071 esac
10072 OBJDUMP=$ac_ct_OBJDUMP
10073 fi
10074 else
10075 OBJDUMP="$ac_cv_prog_OBJDUMP"
10076 fi
10077
10078 test -z "$OBJDUMP" && OBJDUMP=objdump
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10089 printf %s "checking how to recognize dependent libraries... " >&6; }
10090 if test ${lt_cv_deplibs_check_method+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else case e in #(
10094 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10095 lt_cv_file_magic_test_file=
10096 lt_cv_deplibs_check_method='unknown'
10097 # Need to set the preceding variable on all platforms that support
10098 # interlibrary dependencies.
10099 # 'none' -- dependencies not supported.
10100 # 'unknown' -- same as none, but documents that we really don't know.
10101 # 'pass_all' -- all dependencies passed with no checks.
10102 # 'file_magic [[regex]]' -- check by looking for files in library path
10103 # that responds to the $file_magic_cmd with a given extended regex.
10104 # If you have 'file' or equivalent on your system and you're not sure
10105 # whether 'pass_all' will *always* work, you probably want this one.
10106
10107 case $host_os in
10108 aix[4-9]*)
10109 lt_cv_deplibs_check_method=pass_all
10110 ;;
10111
10112 beos*)
10113 lt_cv_deplibs_check_method=pass_all
10114 ;;
10115
10116 bsdi[45]*)
10117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10118 lt_cv_file_magic_cmd='$FILECMD -L'
10119 lt_cv_file_magic_test_file=/shlib/libc.so
10120 ;;
10121
10122 cygwin*)
10123 # func_win32_libid is a shell function defined in ltmain.sh
10124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10125 lt_cv_file_magic_cmd='func_win32_libid'
10126 ;;
10127
10128 mingw* | windows* | pw32*)
10129 # Base MSYS/MinGW do not provide the 'file' command needed by
10130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10131 # unless we find 'file', for example because we are cross-compiling.
10132 if ( file / ) >/dev/null 2>&1; then
10133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10134 lt_cv_file_magic_cmd='func_win32_libid'
10135 else
10136 # Keep this pattern in sync with the one in func_win32_libid.
10137 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
10138 lt_cv_file_magic_cmd='$OBJDUMP -f'
10139 fi
10140 ;;
10141
10142 cegcc*)
10143 # use the weaker test based on 'objdump'. See mingw*.
10144 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10145 lt_cv_file_magic_cmd='$OBJDUMP -f'
10146 ;;
10147
10148 darwin* | rhapsody*)
10149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152 freebsd* | dragonfly* | midnightbsd*)
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10154 case $host_cpu in
10155 i*86 )
10156 # Not sure whether the presence of OpenBSD here was a mistake.
10157 # Let's accept both of them until this is cleared up.
10158 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10159 lt_cv_file_magic_cmd=$FILECMD
10160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10161 ;;
10162 esac
10163 else
10164 lt_cv_deplibs_check_method=pass_all
10165 fi
10166 ;;
10167
10168 haiku*)
10169 lt_cv_deplibs_check_method=pass_all
10170 ;;
10171
10172 hpux10.20* | hpux11*)
10173 lt_cv_file_magic_cmd=$FILECMD
10174 case $host_cpu in
10175 ia64*)
10176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10177 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10178 ;;
10179 hppa*64*)
10180 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]'
10181 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10182 ;;
10183 *)
10184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10185 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10186 ;;
10187 esac
10188 ;;
10189
10190 interix[3-9]*)
10191 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10193 ;;
10194
10195 irix5* | irix6* | nonstopux*)
10196 case $LD in
10197 *-32|*"-32 ") libmagic=32-bit;;
10198 *-n32|*"-n32 ") libmagic=N32;;
10199 *-64|*"-64 ") libmagic=64-bit;;
10200 *) libmagic=never-match;;
10201 esac
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204
10205 # This must be glibc/ELF.
10206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10207 lt_cv_deplibs_check_method=pass_all
10208 ;;
10209
10210 *-mlibc)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213
10214 netbsd* | netbsdelf*-gnu)
10215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10217 else
10218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10219 fi
10220 ;;
10221
10222 newos6*)
10223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10224 lt_cv_file_magic_cmd=$FILECMD
10225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10226 ;;
10227
10228 *nto* | *qnx*)
10229 lt_cv_deplibs_check_method=pass_all
10230 ;;
10231
10232 openbsd*)
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10235 else
10236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10237 fi
10238 ;;
10239
10240 osf3* | osf4* | osf5*)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243
10244 rdos*)
10245 lt_cv_deplibs_check_method=pass_all
10246 ;;
10247
10248 serenity*)
10249 lt_cv_deplibs_check_method=pass_all
10250 ;;
10251
10252 solaris*)
10253 lt_cv_deplibs_check_method=pass_all
10254 ;;
10255
10256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10257 lt_cv_deplibs_check_method=pass_all
10258 ;;
10259
10260 sysv4 | sysv4.3*)
10261 case $host_vendor in
10262 motorola)
10263 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]'
10264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10265 ;;
10266 ncr)
10267 lt_cv_deplibs_check_method=pass_all
10268 ;;
10269 sequent)
10270 lt_cv_file_magic_cmd='/bin/file'
10271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10272 ;;
10273 sni)
10274 lt_cv_file_magic_cmd='/bin/file'
10275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10276 lt_cv_file_magic_test_file=/lib/libc.so
10277 ;;
10278 siemens)
10279 lt_cv_deplibs_check_method=pass_all
10280 ;;
10281 pc)
10282 lt_cv_deplibs_check_method=pass_all
10283 ;;
10284 esac
10285 ;;
10286
10287 tpf*)
10288 lt_cv_deplibs_check_method=pass_all
10289 ;;
10290 os2*)
10291 lt_cv_deplibs_check_method=pass_all
10292 ;;
10293 esac
10294 ;;
10295 esac
10296 fi
10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10298 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10299
10300 file_magic_glob=
10301 want_nocaseglob=no
10302 if test "$build" = "$host"; then
10303 case $host_os in
10304 mingw* | windows* | pw32*)
10305 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10306 want_nocaseglob=yes
10307 else
10308 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10309 fi
10310 ;;
10311 esac
10312 fi
10313
10314 file_magic_cmd=$lt_cv_file_magic_cmd
10315 deplibs_check_method=$lt_cv_deplibs_check_method
10316 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339 if test -n "$ac_tool_prefix"; then
10340 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10341 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 printf %s "checking for $ac_word... " >&6; }
10344 if test ${ac_cv_prog_DLLTOOL+y}
10345 then :
10346 printf %s "(cached) " >&6
10347 else case e in #(
10348 e) if test -n "$DLLTOOL"; then
10349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354 IFS=$as_save_IFS
10355 case $as_dir in #(((
10356 '') as_dir=./ ;;
10357 */) ;;
10358 *) as_dir=$as_dir/ ;;
10359 esac
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10362 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10364 break 2
10365 fi
10366 done
10367 done
10368 IFS=$as_save_IFS
10369
10370 fi ;;
10371 esac
10372 fi
10373 DLLTOOL=$ac_cv_prog_DLLTOOL
10374 if test -n "$DLLTOOL"; then
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10376 printf "%s\n" "$DLLTOOL" >&6; }
10377 else
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 printf "%s\n" "no" >&6; }
10380 fi
10381
10382
10383 fi
10384 if test -z "$ac_cv_prog_DLLTOOL"; then
10385 ac_ct_DLLTOOL=$DLLTOOL
10386 # Extract the first word of "dlltool", so it can be a program name with args.
10387 set dummy dlltool; ac_word=$2
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 printf %s "checking for $ac_word... " >&6; }
10390 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10391 then :
10392 printf %s "(cached) " >&6
10393 else case e in #(
10394 e) if test -n "$ac_ct_DLLTOOL"; then
10395 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10399 do
10400 IFS=$as_save_IFS
10401 case $as_dir in #(((
10402 '') as_dir=./ ;;
10403 */) ;;
10404 *) as_dir=$as_dir/ ;;
10405 esac
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412 done
10413 done
10414 IFS=$as_save_IFS
10415
10416 fi ;;
10417 esac
10418 fi
10419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10420 if test -n "$ac_ct_DLLTOOL"; then
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10422 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10423 else
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 printf "%s\n" "no" >&6; }
10426 fi
10427
10428 if test "x$ac_ct_DLLTOOL" = x; then
10429 DLLTOOL="false"
10430 else
10431 case $cross_compiling:$ac_tool_warned in
10432 yes:)
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10434 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10435 ac_tool_warned=yes ;;
10436 esac
10437 DLLTOOL=$ac_ct_DLLTOOL
10438 fi
10439 else
10440 DLLTOOL="$ac_cv_prog_DLLTOOL"
10441 fi
10442
10443 test -z "$DLLTOOL" && DLLTOOL=dlltool
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10455 printf %s "checking how to associate runtime and link libraries... " >&6; }
10456 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10457 then :
10458 printf %s "(cached) " >&6
10459 else case e in #(
10460 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
10461
10462 case $host_os in
10463 cygwin* | mingw* | windows* | pw32* | cegcc*)
10464 # two different shell functions defined in ltmain.sh;
10465 # decide which one to use based on capabilities of $DLLTOOL
10466 case `$DLLTOOL --help 2>&1` in
10467 *--identify-strict*)
10468 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10469 ;;
10470 *)
10471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10472 ;;
10473 esac
10474 ;;
10475 *)
10476 # fallback: assume linklib IS sharedlib
10477 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10478 ;;
10479 esac
10480 ;;
10481 esac
10482 fi
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10484 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10485 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10486 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10487
10488
10489
10490
10491
10492
10493
10494
10495 if test -n "$ac_tool_prefix"; then
10496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 printf %s "checking for $ac_word... " >&6; }
10500 if test ${ac_cv_prog_RANLIB+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else case e in #(
10504 e) if test -n "$RANLIB"; then
10505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10506 else
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10509 do
10510 IFS=$as_save_IFS
10511 case $as_dir in #(((
10512 '') as_dir=./ ;;
10513 */) ;;
10514 *) as_dir=$as_dir/ ;;
10515 esac
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10520 break 2
10521 fi
10522 done
10523 done
10524 IFS=$as_save_IFS
10525
10526 fi ;;
10527 esac
10528 fi
10529 RANLIB=$ac_cv_prog_RANLIB
10530 if test -n "$RANLIB"; then
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10532 printf "%s\n" "$RANLIB" >&6; }
10533 else
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 printf "%s\n" "no" >&6; }
10536 fi
10537
10538
10539 fi
10540 if test -z "$ac_cv_prog_RANLIB"; then
10541 ac_ct_RANLIB=$RANLIB
10542 # Extract the first word of "ranlib", so it can be a program name with args.
10543 set dummy ranlib; ac_word=$2
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 printf %s "checking for $ac_word... " >&6; }
10546 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10547 then :
10548 printf %s "(cached) " >&6
10549 else case e in #(
10550 e) if test -n "$ac_ct_RANLIB"; then
10551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10552 else
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 case $as_dir in #(((
10558 '') as_dir=./ ;;
10559 */) ;;
10560 *) as_dir=$as_dir/ ;;
10561 esac
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_ac_ct_RANLIB="ranlib"
10565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568 done
10569 done
10570 IFS=$as_save_IFS
10571
10572 fi ;;
10573 esac
10574 fi
10575 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10576 if test -n "$ac_ct_RANLIB"; then
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10578 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10579 else
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 printf "%s\n" "no" >&6; }
10582 fi
10583
10584 if test "x$ac_ct_RANLIB" = x; then
10585 RANLIB=":"
10586 else
10587 case $cross_compiling:$ac_tool_warned in
10588 yes:)
10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10591 ac_tool_warned=yes ;;
10592 esac
10593 RANLIB=$ac_ct_RANLIB
10594 fi
10595 else
10596 RANLIB="$ac_cv_prog_RANLIB"
10597 fi
10598
10599 if test -n "$ac_tool_prefix"; then
10600 for ac_prog in ar
10601 do
10602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 printf %s "checking for $ac_word... " >&6; }
10606 if test ${ac_cv_prog_AR+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else case e in #(
10610 e) if test -n "$AR"; then
10611 ac_cv_prog_AR="$AR" # Let the user override the test.
10612 else
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10615 do
10616 IFS=$as_save_IFS
10617 case $as_dir in #(((
10618 '') as_dir=./ ;;
10619 */) ;;
10620 *) as_dir=$as_dir/ ;;
10621 esac
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628 done
10629 done
10630 IFS=$as_save_IFS
10631
10632 fi ;;
10633 esac
10634 fi
10635 AR=$ac_cv_prog_AR
10636 if test -n "$AR"; then
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10638 printf "%s\n" "$AR" >&6; }
10639 else
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 printf "%s\n" "no" >&6; }
10642 fi
10643
10644
10645 test -n "$AR" && break
10646 done
10647 fi
10648 if test -z "$AR"; then
10649 ac_ct_AR=$AR
10650 for ac_prog in ar
10651 do
10652 # Extract the first word of "$ac_prog", so it can be a program name with args.
10653 set dummy $ac_prog; ac_word=$2
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 printf %s "checking for $ac_word... " >&6; }
10656 if test ${ac_cv_prog_ac_ct_AR+y}
10657 then :
10658 printf %s "(cached) " >&6
10659 else case e in #(
10660 e) if test -n "$ac_ct_AR"; then
10661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666 IFS=$as_save_IFS
10667 case $as_dir in #(((
10668 '') as_dir=./ ;;
10669 */) ;;
10670 *) as_dir=$as_dir/ ;;
10671 esac
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_ac_ct_AR="$ac_prog"
10675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678 done
10679 done
10680 IFS=$as_save_IFS
10681
10682 fi ;;
10683 esac
10684 fi
10685 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10686 if test -n "$ac_ct_AR"; then
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10688 printf "%s\n" "$ac_ct_AR" >&6; }
10689 else
10690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 printf "%s\n" "no" >&6; }
10692 fi
10693
10694
10695 test -n "$ac_ct_AR" && break
10696 done
10697
10698 if test "x$ac_ct_AR" = x; then
10699 AR="false"
10700 else
10701 case $cross_compiling:$ac_tool_warned in
10702 yes:)
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10705 ac_tool_warned=yes ;;
10706 esac
10707 AR=$ac_ct_AR
10708 fi
10709 fi
10710
10711 : ${AR=ar}
10712
10713
10714
10715
10716
10717
10718 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10719 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10720 # higher priority because that's what people were doing historically (setting
10721 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10722 # variable obsoleted/removed.
10723
10724 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10725 lt_ar_flags=$AR_FLAGS
10726
10727
10728
10729
10730
10731
10732 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10733 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10734
10735
10736
10737
10738
10739
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10741 printf %s "checking for archiver @FILE support... " >&6; }
10742 if test ${lt_cv_ar_at_file+y}
10743 then :
10744 printf %s "(cached) " >&6
10745 else case e in #(
10746 e) lt_cv_ar_at_file=no
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10749
10750 int
10751 main (void)
10752 {
10753
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"
10759 then :
10760 echo conftest.$ac_objext > conftest.lst
10761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10763 (eval $lt_ar_try) 2>&5
10764 ac_status=$?
10765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; }
10767 if test 0 -eq "$ac_status"; then
10768 # Ensure the archiver fails upon bogus file names.
10769 rm -f conftest.$ac_objext libconftest.a
10770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10771 (eval $lt_ar_try) 2>&5
10772 ac_status=$?
10773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; }
10775 if test 0 -ne "$ac_status"; then
10776 lt_cv_ar_at_file=@
10777 fi
10778 fi
10779 rm -f conftest.* libconftest.a
10780
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10783 ;;
10784 esac
10785 fi
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10787 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10788
10789 if test no = "$lt_cv_ar_at_file"; then
10790 archiver_list_spec=
10791 else
10792 archiver_list_spec=$lt_cv_ar_at_file
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801 if test -n "$ac_tool_prefix"; then
10802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10803 set dummy ${ac_tool_prefix}strip; ac_word=$2
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805 printf %s "checking for $ac_word... " >&6; }
10806 if test ${ac_cv_prog_STRIP+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else case e in #(
10810 e) if test -n "$STRIP"; then
10811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10812 else
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10815 do
10816 IFS=$as_save_IFS
10817 case $as_dir in #(((
10818 '') as_dir=./ ;;
10819 */) ;;
10820 *) as_dir=$as_dir/ ;;
10821 esac
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10826 break 2
10827 fi
10828 done
10829 done
10830 IFS=$as_save_IFS
10831
10832 fi ;;
10833 esac
10834 fi
10835 STRIP=$ac_cv_prog_STRIP
10836 if test -n "$STRIP"; then
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10838 printf "%s\n" "$STRIP" >&6; }
10839 else
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 printf "%s\n" "no" >&6; }
10842 fi
10843
10844
10845 fi
10846 if test -z "$ac_cv_prog_STRIP"; then
10847 ac_ct_STRIP=$STRIP
10848 # Extract the first word of "strip", so it can be a program name with args.
10849 set dummy strip; ac_word=$2
10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 printf %s "checking for $ac_word... " >&6; }
10852 if test ${ac_cv_prog_ac_ct_STRIP+y}
10853 then :
10854 printf %s "(cached) " >&6
10855 else case e in #(
10856 e) if test -n "$ac_ct_STRIP"; then
10857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10858 else
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862 IFS=$as_save_IFS
10863 case $as_dir in #(((
10864 '') as_dir=./ ;;
10865 */) ;;
10866 *) as_dir=$as_dir/ ;;
10867 esac
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_ac_ct_STRIP="strip"
10871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876 IFS=$as_save_IFS
10877
10878 fi ;;
10879 esac
10880 fi
10881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10882 if test -n "$ac_ct_STRIP"; then
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10884 printf "%s\n" "$ac_ct_STRIP" >&6; }
10885 else
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 printf "%s\n" "no" >&6; }
10888 fi
10889
10890 if test "x$ac_ct_STRIP" = x; then
10891 STRIP=":"
10892 else
10893 case $cross_compiling:$ac_tool_warned in
10894 yes:)
10895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10897 ac_tool_warned=yes ;;
10898 esac
10899 STRIP=$ac_ct_STRIP
10900 fi
10901 else
10902 STRIP="$ac_cv_prog_STRIP"
10903 fi
10904
10905 test -z "$STRIP" && STRIP=:
10906
10907
10908
10909
10910
10911
10912
10913 test -z "$RANLIB" && RANLIB=:
10914
10915
10916
10917
10918
10919
10920 # Determine commands to create old-style static archives.
10921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10922 old_postinstall_cmds='chmod 644 $oldlib'
10923 old_postuninstall_cmds=
10924
10925 if test -n "$RANLIB"; then
10926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10927 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10928 fi
10929
10930 case $host_os in
10931 darwin*)
10932 lock_old_archive_extraction=yes ;;
10933 *)
10934 lock_old_archive_extraction=no ;;
10935 esac
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975 # If no C compiler was specified, use CC.
10976 LTCC=${LTCC-"$CC"}
10977
10978 # If no C compiler flags were specified, use CFLAGS.
10979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10980
10981 # Allow CC to be a program name with arguments.
10982 compiler=$CC
10983
10984
10985 # Check for command to grab the raw symbol name followed by C symbol from nm.
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10987 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10988 if test ${lt_cv_sys_global_symbol_pipe+y}
10989 then :
10990 printf %s "(cached) " >&6
10991 else case e in #(
10992 e)
10993 # These are sane defaults that work on at least a few old systems.
10994 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10995
10996 # Character class describing NM global symbol codes.
10997 symcode='[BCDEGRST]'
10998
10999 # Regexp to match symbols that can be accessed directly from C.
11000 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11001
11002 # Define system-specific variables.
11003 case $host_os in
11004 aix*)
11005 symcode='[BCDT]'
11006 ;;
11007 cygwin* | mingw* | windows* | pw32* | cegcc*)
11008 symcode='[ABCDGISTW]'
11009 ;;
11010 hpux*)
11011 if test ia64 = "$host_cpu"; then
11012 symcode='[ABCDEGRST]'
11013 fi
11014 ;;
11015 irix* | nonstopux*)
11016 symcode='[BCDEGRST]'
11017 ;;
11018 osf*)
11019 symcode='[BCDEGQRST]'
11020 ;;
11021 solaris*)
11022 symcode='[BCDRT]'
11023 ;;
11024 sco3.2v5*)
11025 symcode='[DT]'
11026 ;;
11027 sysv4.2uw2*)
11028 symcode='[DT]'
11029 ;;
11030 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11031 symcode='[ABDT]'
11032 ;;
11033 sysv4)
11034 symcode='[DFNSTU]'
11035 ;;
11036 esac
11037
11038 # If we're using GNU nm, then use its standard symbol codes.
11039 case `$NM -V 2>&1` in
11040 *GNU* | *'with BFD'*)
11041 symcode='[ABCDGIRSTW]' ;;
11042 esac
11043
11044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11045 # Gets list of data symbols to import.
11046 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
11047 # Adjust the below global symbol transforms to fixup imported variables.
11048 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11049 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11050 lt_c_name_lib_hook="\
11051 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11052 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11053 else
11054 # Disable hooks by default.
11055 lt_cv_sys_global_symbol_to_import=
11056 lt_cdecl_hook=
11057 lt_c_name_hook=
11058 lt_c_name_lib_hook=
11059 fi
11060
11061 # Transform an extracted symbol line into a proper C declaration.
11062 # Some systems (esp. on ia64) link data and code symbols differently,
11063 # so use this general approach.
11064 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
11065 $lt_cdecl_hook\
11066 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11067 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11068
11069 # Transform an extracted symbol line into symbol name and symbol address
11070 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11071 $lt_c_name_hook\
11072 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11073 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11074
11075 # Transform an extracted symbol line into symbol name with lib prefix and
11076 # symbol address.
11077 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11078 $lt_c_name_lib_hook\
11079 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11080 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11081 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11082
11083 # Handle CRLF in mingw tool chain
11084 opt_cr=
11085 case $build_os in
11086 mingw* | windows*)
11087 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11088 ;;
11089 esac
11090
11091 # Try without a prefix underscore, then with it.
11092 for ac_symprfx in "" "_"; do
11093
11094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11095 symxfrm="\\1 $ac_symprfx\\2 \\2"
11096
11097 # Write the raw and C identifiers.
11098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11099 # Fake it for dumpbin and say T for any non-static function,
11100 # D for any global variable and I for any imported variable.
11101 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11102 # which start with @ or ?.
11103 lt_cv_sys_global_symbol_pipe="$AWK '"\
11104 " {last_section=section; section=\$ 3};"\
11105 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11106 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11107 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11108 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11109 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11110 " \$ 0!~/External *\|/{next};"\
11111 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11112 " {if(hide[section]) next};"\
11113 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11114 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11115 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11116 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11117 " ' prfx=^$ac_symprfx"
11118 else
11119 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11120 fi
11121 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11122
11123 # Check to see that the pipe works correctly.
11124 pipe_works=no
11125
11126 rm -f conftest*
11127 cat > conftest.$ac_ext <<_LT_EOF
11128 #ifdef __cplusplus
11129 extern "C" {
11130 #endif
11131 char nm_test_var;
11132 void nm_test_func(void);
11133 void nm_test_func(void){}
11134 #ifdef __cplusplus
11135 }
11136 #endif
11137 int main(void){nm_test_var='a';nm_test_func();return(0);}
11138 _LT_EOF
11139
11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11141 (eval $ac_compile) 2>&5
11142 ac_status=$?
11143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11144 test $ac_status = 0; }; then
11145 # Now try to grab the symbols.
11146 nlist=conftest.nm
11147 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
11148 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
11149 # Try sorting and uniquifying the output.
11150 if sort "$nlist" | uniq > "$nlist"T; then
11151 mv -f "$nlist"T "$nlist"
11152 else
11153 rm -f "$nlist"T
11154 fi
11155
11156 # Make sure that we snagged all the symbols we need.
11157 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11158 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11159 cat <<_LT_EOF > conftest.$ac_ext
11160 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11161 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11162 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11163 relocations are performed -- see ld's documentation on pseudo-relocs. */
11164 # define LT_DLSYM_CONST
11165 #elif defined __osf__
11166 /* This system does not cope well with relocations in const data. */
11167 # define LT_DLSYM_CONST
11168 #else
11169 # define LT_DLSYM_CONST const
11170 #endif
11171
11172 #ifdef __cplusplus
11173 extern "C" {
11174 #endif
11175
11176 _LT_EOF
11177 # Now generate the symbol file.
11178 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11179
11180 cat <<_LT_EOF >> conftest.$ac_ext
11181
11182 /* The mapping between symbol names and symbols. */
11183 LT_DLSYM_CONST struct {
11184 const char *name;
11185 void *address;
11186 }
11187 lt__PROGRAM__LTX_preloaded_symbols[] =
11188 {
11189 { "@PROGRAM@", (void *) 0 },
11190 _LT_EOF
11191 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11192 cat <<\_LT_EOF >> conftest.$ac_ext
11193 {0, (void *) 0}
11194 };
11195
11196 /* This works around a problem in FreeBSD linker */
11197 #ifdef FREEBSD_WORKAROUND
11198 static const void *lt_preloaded_setup() {
11199 return lt__PROGRAM__LTX_preloaded_symbols;
11200 }
11201 #endif
11202
11203 #ifdef __cplusplus
11204 }
11205 #endif
11206 _LT_EOF
11207 # Now try linking the two files.
11208 mv conftest.$ac_objext conftstm.$ac_objext
11209 lt_globsym_save_LIBS=$LIBS
11210 lt_globsym_save_CFLAGS=$CFLAGS
11211 LIBS=conftstm.$ac_objext
11212 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11214 (eval $ac_link) 2>&5
11215 ac_status=$?
11216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11217 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11218 pipe_works=yes
11219 fi
11220 LIBS=$lt_globsym_save_LIBS
11221 CFLAGS=$lt_globsym_save_CFLAGS
11222 else
11223 echo "cannot find nm_test_func in $nlist" >&5
11224 fi
11225 else
11226 echo "cannot find nm_test_var in $nlist" >&5
11227 fi
11228 else
11229 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11230 fi
11231 else
11232 echo "$progname: failed program was:" >&5
11233 cat conftest.$ac_ext >&5
11234 fi
11235 rm -rf conftest* conftst*
11236
11237 # Do not use the global_symbol_pipe unless it works.
11238 if test yes = "$pipe_works"; then
11239 break
11240 else
11241 lt_cv_sys_global_symbol_pipe=
11242 fi
11243 done
11244 ;;
11245 esac
11246 fi
11247
11248 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11249 lt_cv_sys_global_symbol_to_cdecl=
11250 fi
11251 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11253 printf "%s\n" "failed" >&6; }
11254 else
11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11256 printf "%s\n" "ok" >&6; }
11257 fi
11258
11259 # Response file support.
11260 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11261 nm_file_list_spec='@'
11262 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11263 nm_file_list_spec='@'
11264 fi
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11303 printf %s "checking for sysroot... " >&6; }
11304
11305 # Check whether --with-sysroot was given.
11306 if test ${with_sysroot+y}
11307 then :
11308 withval=$with_sysroot;
11309 else case e in #(
11310 e) with_sysroot=no ;;
11311 esac
11312 fi
11313
11314
11315 lt_sysroot=
11316 case $with_sysroot in #(
11317 yes)
11318 if test yes = "$GCC"; then
11319 # Trim trailing / since we'll always append absolute paths and we want
11320 # to avoid //, if only for less confusing output for the user.
11321 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
11322 fi
11323 ;; #(
11324 /*)
11325 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11326 ;; #(
11327 no|'')
11328 ;; #(
11329 *)
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11331 printf "%s\n" "$with_sysroot" >&6; }
11332 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11333 ;;
11334 esac
11335
11336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11337 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11338
11339
11340
11341
11342
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11344 printf %s "checking for a working dd... " >&6; }
11345 if test ${ac_cv_path_lt_DD+y}
11346 then :
11347 printf %s "(cached) " >&6
11348 else case e in #(
11349 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11350 cat conftest.i conftest.i >conftest2.i
11351 : ${lt_DD:=$DD}
11352 if test -z "$lt_DD"; then
11353 ac_path_lt_DD_found=false
11354 # Loop through the user's path and test for each of PROGNAME-LIST
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11357 do
11358 IFS=$as_save_IFS
11359 case $as_dir in #(((
11360 '') as_dir=./ ;;
11361 */) ;;
11362 *) as_dir=$as_dir/ ;;
11363 esac
11364 for ac_prog in dd
11365 do
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11368 as_fn_executable_p "$ac_path_lt_DD" || continue
11369 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11370 cmp -s conftest.i conftest.out \
11371 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11372 fi
11373 $ac_path_lt_DD_found && break 3
11374 done
11375 done
11376 done
11377 IFS=$as_save_IFS
11378 if test -z "$ac_cv_path_lt_DD"; then
11379 :
11380 fi
11381 else
11382 ac_cv_path_lt_DD=$lt_DD
11383 fi
11384
11385 rm -f conftest.i conftest2.i conftest.out ;;
11386 esac
11387 fi
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11389 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11390
11391
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11393 printf %s "checking how to truncate binary pipes... " >&6; }
11394 if test ${lt_cv_truncate_bin+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else case e in #(
11398 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11399 cat conftest.i conftest.i >conftest2.i
11400 lt_cv_truncate_bin=
11401 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11402 cmp -s conftest.i conftest.out \
11403 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11404 fi
11405 rm -f conftest.i conftest2.i conftest.out
11406 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
11407 esac
11408 fi
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11410 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11411
11412
11413
11414
11415
11416
11417
11418 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11419 func_cc_basename ()
11420 {
11421 for cc_temp in $*""; do
11422 case $cc_temp in
11423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11425 \-*) ;;
11426 *) break;;
11427 esac
11428 done
11429 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11430 }
11431
11432 # Check whether --enable-libtool-lock was given.
11433 if test ${enable_libtool_lock+y}
11434 then :
11435 enableval=$enable_libtool_lock;
11436 fi
11437
11438 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11439
11440 # Some flags need to be propagated to the compiler or linker for good
11441 # libtool support.
11442 case $host in
11443 ia64-*-hpux*)
11444 # Find out what ABI is being produced by ac_compile, and set mode
11445 # options accordingly.
11446 echo 'int i;' > conftest.$ac_ext
11447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11448 (eval $ac_compile) 2>&5
11449 ac_status=$?
11450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451 test $ac_status = 0; }; then
11452 case `$FILECMD conftest.$ac_objext` in
11453 *ELF-32*)
11454 HPUX_IA64_MODE=32
11455 ;;
11456 *ELF-64*)
11457 HPUX_IA64_MODE=64
11458 ;;
11459 esac
11460 fi
11461 rm -rf conftest*
11462 ;;
11463 *-*-irix6*)
11464 # Find out what ABI is being produced by ac_compile, and set linker
11465 # options accordingly.
11466 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11468 (eval $ac_compile) 2>&5
11469 ac_status=$?
11470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; }; then
11472 if test yes = "$lt_cv_prog_gnu_ld"; then
11473 case `$FILECMD conftest.$ac_objext` in
11474 *32-bit*)
11475 LD="${LD-ld} -melf32bsmip"
11476 ;;
11477 *N32*)
11478 LD="${LD-ld} -melf32bmipn32"
11479 ;;
11480 *64-bit*)
11481 LD="${LD-ld} -melf64bmip"
11482 ;;
11483 esac
11484 else
11485 case `$FILECMD conftest.$ac_objext` in
11486 *32-bit*)
11487 LD="${LD-ld} -32"
11488 ;;
11489 *N32*)
11490 LD="${LD-ld} -n32"
11491 ;;
11492 *64-bit*)
11493 LD="${LD-ld} -64"
11494 ;;
11495 esac
11496 fi
11497 fi
11498 rm -rf conftest*
11499 ;;
11500
11501 mips64*-*linux*)
11502 # Find out what ABI is being produced by ac_compile, and set linker
11503 # options accordingly.
11504 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11506 (eval $ac_compile) 2>&5
11507 ac_status=$?
11508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11509 test $ac_status = 0; }; then
11510 emul=elf
11511 case `$FILECMD conftest.$ac_objext` in
11512 *32-bit*)
11513 emul="${emul}32"
11514 ;;
11515 *64-bit*)
11516 emul="${emul}64"
11517 ;;
11518 esac
11519 case `$FILECMD conftest.$ac_objext` in
11520 *MSB*)
11521 emul="${emul}btsmip"
11522 ;;
11523 *LSB*)
11524 emul="${emul}ltsmip"
11525 ;;
11526 esac
11527 case `$FILECMD conftest.$ac_objext` in
11528 *N32*)
11529 emul="${emul}n32"
11530 ;;
11531 esac
11532 LD="${LD-ld} -m $emul"
11533 fi
11534 rm -rf conftest*
11535 ;;
11536
11537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11538 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
11539 # Find out what ABI is being produced by ac_compile, and set linker
11540 # options accordingly. Note that the listed cases only cover the
11541 # situations where additional linker options are needed (such as when
11542 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11543 # vice versa); the common cases where no linker options are needed do
11544 # not appear in the list.
11545 echo 'int i;' > conftest.$ac_ext
11546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11547 (eval $ac_compile) 2>&5
11548 ac_status=$?
11549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11550 test $ac_status = 0; }; then
11551 case `$FILECMD conftest.o` in
11552 *32-bit*)
11553 case $host in
11554 x86_64-*kfreebsd*-gnu)
11555 LD="${LD-ld} -m elf_i386_fbsd"
11556 ;;
11557 x86_64-*linux*|x86_64-gnu*)
11558 case `$FILECMD conftest.o` in
11559 *x86-64*)
11560 LD="${LD-ld} -m elf32_x86_64"
11561 ;;
11562 *)
11563 LD="${LD-ld} -m elf_i386"
11564 ;;
11565 esac
11566 ;;
11567 powerpc64le-*linux*)
11568 LD="${LD-ld} -m elf32lppclinux"
11569 ;;
11570 powerpc64-*linux*)
11571 LD="${LD-ld} -m elf32ppclinux"
11572 ;;
11573 s390x-*linux*)
11574 LD="${LD-ld} -m elf_s390"
11575 ;;
11576 sparc64-*linux*)
11577 LD="${LD-ld} -m elf32_sparc"
11578 ;;
11579 esac
11580 ;;
11581 *64-bit*)
11582 case $host in
11583 x86_64-*kfreebsd*-gnu)
11584 LD="${LD-ld} -m elf_x86_64_fbsd"
11585 ;;
11586 x86_64-*linux*|x86_64-gnu*)
11587 LD="${LD-ld} -m elf_x86_64"
11588 ;;
11589 powerpcle-*linux*)
11590 LD="${LD-ld} -m elf64lppc"
11591 ;;
11592 powerpc-*linux*)
11593 LD="${LD-ld} -m elf64ppc"
11594 ;;
11595 s390*-*linux*|s390*-*tpf*)
11596 LD="${LD-ld} -m elf64_s390"
11597 ;;
11598 sparc*-*linux*)
11599 LD="${LD-ld} -m elf64_sparc"
11600 ;;
11601 esac
11602 ;;
11603 esac
11604 fi
11605 rm -rf conftest*
11606 ;;
11607
11608 *-*-sco3.2v5*)
11609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11610 SAVE_CFLAGS=$CFLAGS
11611 CFLAGS="$CFLAGS -belf"
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11613 printf %s "checking whether the C compiler needs -belf... " >&6; }
11614 if test ${lt_cv_cc_needs_belf+y}
11615 then :
11616 printf %s "(cached) " >&6
11617 else case e in #(
11618 e) ac_ext=c
11619 ac_cpp='$CPP $CPPFLAGS'
11620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11623
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11626
11627 int
11628 main (void)
11629 {
11630
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"
11636 then :
11637 lt_cv_cc_needs_belf=yes
11638 else case e in #(
11639 e) lt_cv_cc_needs_belf=no ;;
11640 esac
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11643 conftest$ac_exeext conftest.$ac_ext
11644 ac_ext=c
11645 ac_cpp='$CPP $CPPFLAGS'
11646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11649 ;;
11650 esac
11651 fi
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11653 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11654 if test yes != "$lt_cv_cc_needs_belf"; then
11655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11656 CFLAGS=$SAVE_CFLAGS
11657 fi
11658 ;;
11659 *-*solaris*)
11660 # Find out what ABI is being produced by ac_compile, and set linker
11661 # options accordingly.
11662 echo 'int i;' > conftest.$ac_ext
11663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11664 (eval $ac_compile) 2>&5
11665 ac_status=$?
11666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11667 test $ac_status = 0; }; then
11668 case `$FILECMD conftest.o` in
11669 *64-bit*)
11670 case $lt_cv_prog_gnu_ld in
11671 yes*)
11672 case $host in
11673 i?86-*-solaris*|x86_64-*-solaris*)
11674 LD="${LD-ld} -m elf_x86_64"
11675 ;;
11676 sparc*-*-solaris*)
11677 LD="${LD-ld} -m elf64_sparc"
11678 ;;
11679 esac
11680 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11681 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11682 LD=${LD-ld}_sol2
11683 fi
11684 ;;
11685 *)
11686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11687 LD="${LD-ld} -64"
11688 fi
11689 ;;
11690 esac
11691 ;;
11692 esac
11693 fi
11694 rm -rf conftest*
11695 ;;
11696 esac
11697
11698 need_locks=$enable_libtool_lock
11699
11700 if test -n "$ac_tool_prefix"; then
11701 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}mt; ac_word=$2
11703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 printf %s "checking for $ac_word... " >&6; }
11705 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11706 then :
11707 printf %s "(cached) " >&6
11708 else case e in #(
11709 e) if test -n "$MANIFEST_TOOL"; then
11710 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11711 else
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715 IFS=$as_save_IFS
11716 case $as_dir in #(((
11717 '') as_dir=./ ;;
11718 */) ;;
11719 *) as_dir=$as_dir/ ;;
11720 esac
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11723 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727 done
11728 done
11729 IFS=$as_save_IFS
11730
11731 fi ;;
11732 esac
11733 fi
11734 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11735 if test -n "$MANIFEST_TOOL"; then
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11737 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11738 else
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 printf "%s\n" "no" >&6; }
11741 fi
11742
11743
11744 fi
11745 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11746 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11747 # Extract the first word of "mt", so it can be a program name with args.
11748 set dummy mt; ac_word=$2
11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 printf %s "checking for $ac_word... " >&6; }
11751 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11752 then :
11753 printf %s "(cached) " >&6
11754 else case e in #(
11755 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
11756 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11760 do
11761 IFS=$as_save_IFS
11762 case $as_dir in #(((
11763 '') as_dir=./ ;;
11764 */) ;;
11765 *) as_dir=$as_dir/ ;;
11766 esac
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11771 break 2
11772 fi
11773 done
11774 done
11775 IFS=$as_save_IFS
11776
11777 fi ;;
11778 esac
11779 fi
11780 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11781 if test -n "$ac_ct_MANIFEST_TOOL"; then
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11783 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11784 else
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 printf "%s\n" "no" >&6; }
11787 fi
11788
11789 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11790 MANIFEST_TOOL=":"
11791 else
11792 case $cross_compiling:$ac_tool_warned in
11793 yes:)
11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796 ac_tool_warned=yes ;;
11797 esac
11798 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11799 fi
11800 else
11801 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11802 fi
11803
11804 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11806 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11807 if test ${lt_cv_path_manifest_tool+y}
11808 then :
11809 printf %s "(cached) " >&6
11810 else case e in #(
11811 e) lt_cv_path_manifest_tool=no
11812 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11813 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11814 cat conftest.err >&5
11815 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11816 lt_cv_path_manifest_tool=yes
11817 fi
11818 rm -f conftest* ;;
11819 esac
11820 fi
11821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
11822 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
11823 if test yes != "$lt_cv_path_manifest_tool"; then
11824 MANIFEST_TOOL=:
11825 fi
11826
11827
11828
11829
11830
11831
11832 case $host_os in
11833 rhapsody* | darwin*)
11834 if test -n "$ac_tool_prefix"; then
11835 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11836 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 printf %s "checking for $ac_word... " >&6; }
11839 if test ${ac_cv_prog_DSYMUTIL+y}
11840 then :
11841 printf %s "(cached) " >&6
11842 else case e in #(
11843 e) if test -n "$DSYMUTIL"; then
11844 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11845 else
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11848 do
11849 IFS=$as_save_IFS
11850 case $as_dir in #(((
11851 '') as_dir=./ ;;
11852 */) ;;
11853 *) as_dir=$as_dir/ ;;
11854 esac
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11857 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11859 break 2
11860 fi
11861 done
11862 done
11863 IFS=$as_save_IFS
11864
11865 fi ;;
11866 esac
11867 fi
11868 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11869 if test -n "$DSYMUTIL"; then
11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11871 printf "%s\n" "$DSYMUTIL" >&6; }
11872 else
11873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 printf "%s\n" "no" >&6; }
11875 fi
11876
11877
11878 fi
11879 if test -z "$ac_cv_prog_DSYMUTIL"; then
11880 ac_ct_DSYMUTIL=$DSYMUTIL
11881 # Extract the first word of "dsymutil", so it can be a program name with args.
11882 set dummy dsymutil; ac_word=$2
11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 printf %s "checking for $ac_word... " >&6; }
11885 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11886 then :
11887 printf %s "(cached) " >&6
11888 else case e in #(
11889 e) if test -n "$ac_ct_DSYMUTIL"; then
11890 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 case $as_dir in #(((
11897 '') as_dir=./ ;;
11898 */) ;;
11899 *) as_dir=$as_dir/ ;;
11900 esac
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11903 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907 done
11908 done
11909 IFS=$as_save_IFS
11910
11911 fi ;;
11912 esac
11913 fi
11914 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11915 if test -n "$ac_ct_DSYMUTIL"; then
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11917 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11918 else
11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 printf "%s\n" "no" >&6; }
11921 fi
11922
11923 if test "x$ac_ct_DSYMUTIL" = x; then
11924 DSYMUTIL=":"
11925 else
11926 case $cross_compiling:$ac_tool_warned in
11927 yes:)
11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11930 ac_tool_warned=yes ;;
11931 esac
11932 DSYMUTIL=$ac_ct_DSYMUTIL
11933 fi
11934 else
11935 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11936 fi
11937
11938 if test -n "$ac_tool_prefix"; then
11939 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11940 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 printf %s "checking for $ac_word... " >&6; }
11943 if test ${ac_cv_prog_NMEDIT+y}
11944 then :
11945 printf %s "(cached) " >&6
11946 else case e in #(
11947 e) if test -n "$NMEDIT"; then
11948 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11949 else
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11952 do
11953 IFS=$as_save_IFS
11954 case $as_dir in #(((
11955 '') as_dir=./ ;;
11956 */) ;;
11957 *) as_dir=$as_dir/ ;;
11958 esac
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11963 break 2
11964 fi
11965 done
11966 done
11967 IFS=$as_save_IFS
11968
11969 fi ;;
11970 esac
11971 fi
11972 NMEDIT=$ac_cv_prog_NMEDIT
11973 if test -n "$NMEDIT"; then
11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11975 printf "%s\n" "$NMEDIT" >&6; }
11976 else
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 printf "%s\n" "no" >&6; }
11979 fi
11980
11981
11982 fi
11983 if test -z "$ac_cv_prog_NMEDIT"; then
11984 ac_ct_NMEDIT=$NMEDIT
11985 # Extract the first word of "nmedit", so it can be a program name with args.
11986 set dummy nmedit; ac_word=$2
11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 printf %s "checking for $ac_word... " >&6; }
11989 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11990 then :
11991 printf %s "(cached) " >&6
11992 else case e in #(
11993 e) if test -n "$ac_ct_NMEDIT"; then
11994 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999 IFS=$as_save_IFS
12000 case $as_dir in #(((
12001 '') as_dir=./ ;;
12002 */) ;;
12003 *) as_dir=$as_dir/ ;;
12004 esac
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011 done
12012 done
12013 IFS=$as_save_IFS
12014
12015 fi ;;
12016 esac
12017 fi
12018 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12019 if test -n "$ac_ct_NMEDIT"; then
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12021 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12022 else
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 printf "%s\n" "no" >&6; }
12025 fi
12026
12027 if test "x$ac_ct_NMEDIT" = x; then
12028 NMEDIT=":"
12029 else
12030 case $cross_compiling:$ac_tool_warned in
12031 yes:)
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12033 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12034 ac_tool_warned=yes ;;
12035 esac
12036 NMEDIT=$ac_ct_NMEDIT
12037 fi
12038 else
12039 NMEDIT="$ac_cv_prog_NMEDIT"
12040 fi
12041
12042 if test -n "$ac_tool_prefix"; then
12043 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12044 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 printf %s "checking for $ac_word... " >&6; }
12047 if test ${ac_cv_prog_LIPO+y}
12048 then :
12049 printf %s "(cached) " >&6
12050 else case e in #(
12051 e) if test -n "$LIPO"; then
12052 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057 IFS=$as_save_IFS
12058 case $as_dir in #(((
12059 '') as_dir=./ ;;
12060 */) ;;
12061 *) as_dir=$as_dir/ ;;
12062 esac
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12067 break 2
12068 fi
12069 done
12070 done
12071 IFS=$as_save_IFS
12072
12073 fi ;;
12074 esac
12075 fi
12076 LIPO=$ac_cv_prog_LIPO
12077 if test -n "$LIPO"; then
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12079 printf "%s\n" "$LIPO" >&6; }
12080 else
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 printf "%s\n" "no" >&6; }
12083 fi
12084
12085
12086 fi
12087 if test -z "$ac_cv_prog_LIPO"; then
12088 ac_ct_LIPO=$LIPO
12089 # Extract the first word of "lipo", so it can be a program name with args.
12090 set dummy lipo; ac_word=$2
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 printf %s "checking for $ac_word... " >&6; }
12093 if test ${ac_cv_prog_ac_ct_LIPO+y}
12094 then :
12095 printf %s "(cached) " >&6
12096 else case e in #(
12097 e) if test -n "$ac_ct_LIPO"; then
12098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12099 else
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103 IFS=$as_save_IFS
12104 case $as_dir in #(((
12105 '') as_dir=./ ;;
12106 */) ;;
12107 *) as_dir=$as_dir/ ;;
12108 esac
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_ac_ct_LIPO="lipo"
12112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117 IFS=$as_save_IFS
12118
12119 fi ;;
12120 esac
12121 fi
12122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12123 if test -n "$ac_ct_LIPO"; then
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12125 printf "%s\n" "$ac_ct_LIPO" >&6; }
12126 else
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 printf "%s\n" "no" >&6; }
12129 fi
12130
12131 if test "x$ac_ct_LIPO" = x; then
12132 LIPO=":"
12133 else
12134 case $cross_compiling:$ac_tool_warned in
12135 yes:)
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12138 ac_tool_warned=yes ;;
12139 esac
12140 LIPO=$ac_ct_LIPO
12141 fi
12142 else
12143 LIPO="$ac_cv_prog_LIPO"
12144 fi
12145
12146 if test -n "$ac_tool_prefix"; then
12147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}otool; ac_word=$2
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 printf %s "checking for $ac_word... " >&6; }
12151 if test ${ac_cv_prog_OTOOL+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else case e in #(
12155 e) if test -n "$OTOOL"; then
12156 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 case $as_dir in #(((
12163 '') as_dir=./ ;;
12164 */) ;;
12165 *) as_dir=$as_dir/ ;;
12166 esac
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi ;;
12178 esac
12179 fi
12180 OTOOL=$ac_cv_prog_OTOOL
12181 if test -n "$OTOOL"; then
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12183 printf "%s\n" "$OTOOL" >&6; }
12184 else
12185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 printf "%s\n" "no" >&6; }
12187 fi
12188
12189
12190 fi
12191 if test -z "$ac_cv_prog_OTOOL"; then
12192 ac_ct_OTOOL=$OTOOL
12193 # Extract the first word of "otool", so it can be a program name with args.
12194 set dummy otool; ac_word=$2
12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 printf %s "checking for $ac_word... " >&6; }
12197 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12198 then :
12199 printf %s "(cached) " >&6
12200 else case e in #(
12201 e) if test -n "$ac_ct_OTOOL"; then
12202 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 case $as_dir in #(((
12209 '') as_dir=./ ;;
12210 */) ;;
12211 *) as_dir=$as_dir/ ;;
12212 esac
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12215 ac_cv_prog_ac_ct_OTOOL="otool"
12216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12217 break 2
12218 fi
12219 done
12220 done
12221 IFS=$as_save_IFS
12222
12223 fi ;;
12224 esac
12225 fi
12226 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12227 if test -n "$ac_ct_OTOOL"; then
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12229 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12230 else
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 printf "%s\n" "no" >&6; }
12233 fi
12234
12235 if test "x$ac_ct_OTOOL" = x; then
12236 OTOOL=":"
12237 else
12238 case $cross_compiling:$ac_tool_warned in
12239 yes:)
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12242 ac_tool_warned=yes ;;
12243 esac
12244 OTOOL=$ac_ct_OTOOL
12245 fi
12246 else
12247 OTOOL="$ac_cv_prog_OTOOL"
12248 fi
12249
12250 if test -n "$ac_tool_prefix"; then
12251 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12252 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 printf %s "checking for $ac_word... " >&6; }
12255 if test ${ac_cv_prog_OTOOL64+y}
12256 then :
12257 printf %s "(cached) " >&6
12258 else case e in #(
12259 e) if test -n "$OTOOL64"; then
12260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265 IFS=$as_save_IFS
12266 case $as_dir in #(((
12267 '') as_dir=./ ;;
12268 */) ;;
12269 *) as_dir=$as_dir/ ;;
12270 esac
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277 done
12278 done
12279 IFS=$as_save_IFS
12280
12281 fi ;;
12282 esac
12283 fi
12284 OTOOL64=$ac_cv_prog_OTOOL64
12285 if test -n "$OTOOL64"; then
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12287 printf "%s\n" "$OTOOL64" >&6; }
12288 else
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 printf "%s\n" "no" >&6; }
12291 fi
12292
12293
12294 fi
12295 if test -z "$ac_cv_prog_OTOOL64"; then
12296 ac_ct_OTOOL64=$OTOOL64
12297 # Extract the first word of "otool64", so it can be a program name with args.
12298 set dummy otool64; ac_word=$2
12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 printf %s "checking for $ac_word... " >&6; }
12301 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12302 then :
12303 printf %s "(cached) " >&6
12304 else case e in #(
12305 e) if test -n "$ac_ct_OTOOL64"; then
12306 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12307 else
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311 IFS=$as_save_IFS
12312 case $as_dir in #(((
12313 '') as_dir=./ ;;
12314 */) ;;
12315 *) as_dir=$as_dir/ ;;
12316 esac
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12319 ac_cv_prog_ac_ct_OTOOL64="otool64"
12320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12321 break 2
12322 fi
12323 done
12324 done
12325 IFS=$as_save_IFS
12326
12327 fi ;;
12328 esac
12329 fi
12330 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12331 if test -n "$ac_ct_OTOOL64"; then
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12333 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12334 else
12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 printf "%s\n" "no" >&6; }
12337 fi
12338
12339 if test "x$ac_ct_OTOOL64" = x; then
12340 OTOOL64=":"
12341 else
12342 case $cross_compiling:$ac_tool_warned in
12343 yes:)
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12346 ac_tool_warned=yes ;;
12347 esac
12348 OTOOL64=$ac_ct_OTOOL64
12349 fi
12350 else
12351 OTOOL64="$ac_cv_prog_OTOOL64"
12352 fi
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12381 printf %s "checking for -single_module linker flag... " >&6; }
12382 if test ${lt_cv_apple_cc_single_mod+y}
12383 then :
12384 printf %s "(cached) " >&6
12385 else case e in #(
12386 e) lt_cv_apple_cc_single_mod=no
12387 if test -z "$LT_MULTI_MODULE"; then
12388 # By default we will add the -single_module flag. You can override
12389 # by either setting the environment variable LT_MULTI_MODULE
12390 # non-empty at configure time, or by adding -multi_module to the
12391 # link flags.
12392 rm -rf libconftest.dylib*
12393 echo "int foo(void){return 1;}" > conftest.c
12394 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12395 -dynamiclib -Wl,-single_module conftest.c" >&5
12396 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12397 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12398 _lt_result=$?
12399 # If there is a non-empty error log, and "single_module"
12400 # appears in it, assume the flag caused a linker warning
12401 if test -s conftest.err && $GREP single_module conftest.err; then
12402 cat conftest.err >&5
12403 # Otherwise, if the output was created with a 0 exit code from
12404 # the compiler, it worked.
12405 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12406 lt_cv_apple_cc_single_mod=yes
12407 else
12408 cat conftest.err >&5
12409 fi
12410 rm -rf libconftest.dylib*
12411 rm -f conftest.*
12412 fi ;;
12413 esac
12414 fi
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12416 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12417
12418 # Feature test to disable chained fixups since it is not
12419 # compatible with '-undefined dynamic_lookup'
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
12421 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
12422 if test ${lt_cv_support_no_fixup_chains+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else case e in #(
12426 e) save_LDFLAGS=$LDFLAGS
12427 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430
12431 int
12432 main (void)
12433 {
12434
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"
12440 then :
12441 lt_cv_support_no_fixup_chains=yes
12442 else case e in #(
12443 e) lt_cv_support_no_fixup_chains=no
12444 ;;
12445 esac
12446 fi
12447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LDFLAGS=$save_LDFLAGS
12450
12451 ;;
12452 esac
12453 fi
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
12455 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
12456
12457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12458 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12459 if test ${lt_cv_ld_exported_symbols_list+y}
12460 then :
12461 printf %s "(cached) " >&6
12462 else case e in #(
12463 e) lt_cv_ld_exported_symbols_list=no
12464 save_LDFLAGS=$LDFLAGS
12465 echo "_main" > conftest.sym
12466 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469
12470 int
12471 main (void)
12472 {
12473
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"
12479 then :
12480 lt_cv_ld_exported_symbols_list=yes
12481 else case e in #(
12482 e) lt_cv_ld_exported_symbols_list=no ;;
12483 esac
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LDFLAGS=$save_LDFLAGS
12488 ;;
12489 esac
12490 fi
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12492 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12493
12494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12495 printf %s "checking for -force_load linker flag... " >&6; }
12496 if test ${lt_cv_ld_force_load+y}
12497 then :
12498 printf %s "(cached) " >&6
12499 else case e in #(
12500 e) lt_cv_ld_force_load=no
12501 cat > conftest.c << _LT_EOF
12502 int forced_loaded() { return 2;}
12503 _LT_EOF
12504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12506 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12507 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12508 echo "$RANLIB libconftest.a" >&5
12509 $RANLIB libconftest.a 2>&5
12510 cat > conftest.c << _LT_EOF
12511 int main(void) { return 0;}
12512 _LT_EOF
12513 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12514 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12515 _lt_result=$?
12516 if test -s conftest.err && $GREP force_load conftest.err; then
12517 cat conftest.err >&5
12518 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12519 lt_cv_ld_force_load=yes
12520 else
12521 cat conftest.err >&5
12522 fi
12523 rm -f conftest.err libconftest.a conftest conftest.c
12524 rm -rf conftest.dSYM
12525 ;;
12526 esac
12527 fi
12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12529 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12530 case $host_os in
12531 rhapsody* | darwin1.[012])
12532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12533 darwin1.*)
12534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12535 darwin*)
12536 case $MACOSX_DEPLOYMENT_TARGET,$host in
12537 10.[012],*|,*powerpc*-darwin[5-8]*)
12538 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12539 *)
12540 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
12541 if test yes = "$lt_cv_support_no_fixup_chains"; then
12542 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
12543 fi
12544 ;;
12545 esac
12546 ;;
12547 esac
12548 if test yes = "$lt_cv_apple_cc_single_mod"; then
12549 _lt_dar_single_mod='$single_module'
12550 fi
12551 _lt_dar_needs_single_mod=no
12552 case $host_os in
12553 rhapsody* | darwin1.*)
12554 _lt_dar_needs_single_mod=yes ;;
12555 darwin*)
12556 # When targeting Mac OS X 10.4 (darwin 8) or later,
12557 # -single_module is the default and -multi_module is unsupported.
12558 # The toolchain on macOS 10.14 (darwin 18) and later cannot
12559 # target any OS version that needs -single_module.
12560 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12561 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
12562 _lt_dar_needs_single_mod=yes ;;
12563 esac
12564 ;;
12565 esac
12566 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12567 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12568 else
12569 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12570 fi
12571 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12572 _lt_dsymutil='~$DSYMUTIL $lib || :'
12573 else
12574 _lt_dsymutil=
12575 fi
12576 ;;
12577 esac
12578
12579 # func_munge_path_list VARIABLE PATH
12580 # -----------------------------------
12581 # VARIABLE is name of variable containing _space_ separated list of
12582 # directories to be munged by the contents of PATH, which is string
12583 # having a format:
12584 # "DIR[:DIR]:"
12585 # string "DIR[ DIR]" will be prepended to VARIABLE
12586 # ":DIR[:DIR]"
12587 # string "DIR[ DIR]" will be appended to VARIABLE
12588 # "DIRP[:DIRP]::[DIRA:]DIRA"
12589 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12590 # "DIRA[ DIRA]" will be appended to VARIABLE
12591 # "DIR[:DIR]"
12592 # VARIABLE will be replaced by "DIR[ DIR]"
12593 func_munge_path_list ()
12594 {
12595 case x$2 in
12596 x)
12597 ;;
12598 *:)
12599 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12600 ;;
12601 x:*)
12602 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12603 ;;
12604 *::*)
12605 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12606 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12607 ;;
12608 *)
12609 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12610 ;;
12611 esac
12612 }
12613
12614 ac_header= ac_cache=
12615 for ac_item in $ac_header_c_list
12616 do
12617 if test $ac_cache; then
12618 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
12619 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
12620 printf "%s\n" "#define $ac_item 1" >> confdefs.h
12621 fi
12622 ac_header= ac_cache=
12623 elif test $ac_header; then
12624 ac_cache=$ac_item
12625 else
12626 ac_header=$ac_item
12627 fi
12628 done
12629
12630
12631
12632
12633
12634
12635
12636
12637 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
12638 then :
12639
12640 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
12641
12642 fi
12643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12644 "
12645 if test "x$ac_cv_header_dlfcn_h" = xyes
12646 then :
12647 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12648
12649 fi
12650
12651
12652
12653 func_stripname_cnf ()
12654 {
12655 case $2 in
12656 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12657 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12658 esac
12659 } # func_stripname_cnf
12660
12661
12662
12663
12664
12665 # Set options
12666
12667
12668
12669 enable_dlopen=no
12670
12671
12672 enable_win32_dll=no
12673
12674
12675
12676 # Check whether --enable-static was given.
12677 if test ${enable_static+y}
12678 then :
12679 enableval=$enable_static; p=${PACKAGE-default}
12680 case $enableval in
12681 yes) enable_static=yes ;;
12682 no) enable_static=no ;;
12683 *)
12684 enable_static=no
12685 # Look at the argument we got. We use all the common list separators.
12686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12687 for pkg in $enableval; do
12688 IFS=$lt_save_ifs
12689 if test "X$pkg" = "X$p"; then
12690 enable_static=yes
12691 fi
12692 done
12693 IFS=$lt_save_ifs
12694 ;;
12695 esac
12696 else case e in #(
12697 e) enable_static=yes ;;
12698 esac
12699 fi
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709 # Check whether --enable-pic was given.
12710 if test ${enable_pic+y}
12711 then :
12712 enableval=$enable_pic; lt_p=${PACKAGE-default}
12713 case $enableval in
12714 yes|no) pic_mode=$enableval ;;
12715 *)
12716 pic_mode=default
12717 # Look at the argument we got. We use all the common list separators.
12718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12719 for lt_pkg in $enableval; do
12720 IFS=$lt_save_ifs
12721 if test "X$lt_pkg" = "X$lt_p"; then
12722 pic_mode=yes
12723 fi
12724 done
12725 IFS=$lt_save_ifs
12726 ;;
12727 esac
12728 else case e in #(
12729 e) # Check whether --with-pic was given.
12730 if test ${with_pic+y}
12731 then :
12732 withval=$with_pic; lt_p=${PACKAGE-default}
12733 case $withval in
12734 yes|no) pic_mode=$withval ;;
12735 *)
12736 pic_mode=default
12737 # Look at the argument we got. We use all the common list separators.
12738 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12739 for lt_pkg in $withval; do
12740 IFS=$lt_save_ifs
12741 if test "X$lt_pkg" = "X$lt_p"; then
12742 pic_mode=yes
12743 fi
12744 done
12745 IFS=$lt_save_ifs
12746 ;;
12747 esac
12748 else case e in #(
12749 e) pic_mode=default ;;
12750 esac
12751 fi
12752
12753 ;;
12754 esac
12755 fi
12756
12757
12758
12759
12760
12761
12762
12763
12764 # Check whether --enable-fast-install was given.
12765 if test ${enable_fast_install+y}
12766 then :
12767 enableval=$enable_fast_install; p=${PACKAGE-default}
12768 case $enableval in
12769 yes) enable_fast_install=yes ;;
12770 no) enable_fast_install=no ;;
12771 *)
12772 enable_fast_install=no
12773 # Look at the argument we got. We use all the common list separators.
12774 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12775 for pkg in $enableval; do
12776 IFS=$lt_save_ifs
12777 if test "X$pkg" = "X$p"; then
12778 enable_fast_install=yes
12779 fi
12780 done
12781 IFS=$lt_save_ifs
12782 ;;
12783 esac
12784 else case e in #(
12785 e) enable_fast_install=yes ;;
12786 esac
12787 fi
12788
12789
12790
12791
12792
12793
12794
12795
12796 shared_archive_member_spec=
12797 case $host,$enable_shared in
12798 power*-*-aix[5-9]*,yes)
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12800 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12801 # Check whether --enable-aix-soname was given.
12802 if test ${enable_aix_soname+y}
12803 then :
12804 enableval=$enable_aix_soname; case $enableval in
12805 aix|svr4|both)
12806 ;;
12807 *)
12808 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
12809 ;;
12810 esac
12811 lt_cv_with_aix_soname=$enable_aix_soname
12812 else case e in #(
12813 e) # Check whether --with-aix-soname was given.
12814 if test ${with_aix_soname+y}
12815 then :
12816 withval=$with_aix_soname; case $withval in
12817 aix|svr4|both)
12818 ;;
12819 *)
12820 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12821 ;;
12822 esac
12823 lt_cv_with_aix_soname=$with_aix_soname
12824 else case e in #(
12825 e) if test ${lt_cv_with_aix_soname+y}
12826 then :
12827 printf %s "(cached) " >&6
12828 else case e in #(
12829 e) lt_cv_with_aix_soname=aix ;;
12830 esac
12831 fi
12832 ;;
12833 esac
12834 fi
12835
12836 enable_aix_soname=$lt_cv_with_aix_soname ;;
12837 esac
12838 fi
12839
12840 with_aix_soname=$enable_aix_soname
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12842 printf "%s\n" "$with_aix_soname" >&6; }
12843 if test aix != "$with_aix_soname"; then
12844 # For the AIX way of multilib, we name the shared archive member
12845 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12846 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12847 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12848 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12849 if test 64 = "${OBJECT_MODE-32}"; then
12850 shared_archive_member_spec=shr_64
12851 else
12852 shared_archive_member_spec=shr
12853 fi
12854 fi
12855 ;;
12856 *)
12857 with_aix_soname=aix
12858 ;;
12859 esac
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870 # This can be used to rebuild libtool when needed
12871 LIBTOOL_DEPS=$ltmain
12872
12873 # Always use our own libtool.
12874 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 test -z "$LN_S" && LN_S="ln -s"
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920 if test -n "${ZSH_VERSION+set}"; then
12921 setopt NO_GLOB_SUBST
12922 fi
12923
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12925 printf %s "checking for objdir... " >&6; }
12926 if test ${lt_cv_objdir+y}
12927 then :
12928 printf %s "(cached) " >&6
12929 else case e in #(
12930 e) rm -f .libs 2>/dev/null
12931 mkdir .libs 2>/dev/null
12932 if test -d .libs; then
12933 lt_cv_objdir=.libs
12934 else
12935 # MS-DOS does not allow filenames that begin with a dot.
12936 lt_cv_objdir=_libs
12937 fi
12938 rmdir .libs 2>/dev/null ;;
12939 esac
12940 fi
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12942 printf "%s\n" "$lt_cv_objdir" >&6; }
12943 objdir=$lt_cv_objdir
12944
12945
12946
12947
12948
12949 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12950
12951
12952
12953
12954 case $host_os in
12955 aix3*)
12956 # AIX sometimes has problems with the GCC collect2 program. For some
12957 # reason, if we set the COLLECT_NAMES environment variable, the problems
12958 # vanish in a puff of smoke.
12959 if test set != "${COLLECT_NAMES+set}"; then
12960 COLLECT_NAMES=
12961 export COLLECT_NAMES
12962 fi
12963 ;;
12964 esac
12965
12966 # Global variables:
12967 ofile=libtool
12968 can_build_shared=yes
12969
12970 # All known linkers require a '.a' archive for static linking (except MSVC and
12971 # ICC, which need '.lib').
12972 libext=a
12973
12974 with_gnu_ld=$lt_cv_prog_gnu_ld
12975
12976 old_CC=$CC
12977 old_CFLAGS=$CFLAGS
12978
12979 # Set sane defaults for various variables
12980 test -z "$CC" && CC=cc
12981 test -z "$LTCC" && LTCC=$CC
12982 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12983 test -z "$LD" && LD=ld
12984 test -z "$ac_objext" && ac_objext=o
12985
12986 func_cc_basename $compiler
12987 cc_basename=$func_cc_basename_result
12988
12989
12990 # Only perform the check for file, if the check method requires it
12991 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12992 case $deplibs_check_method in
12993 file_magic*)
12994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12996 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12997 if test ${lt_cv_path_MAGIC_CMD+y}
12998 then :
12999 printf %s "(cached) " >&6
13000 else case e in #(
13001 e) case $MAGIC_CMD in
13002 [\\/*] | ?:[\\/]*)
13003 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13004 ;;
13005 *)
13006 lt_save_MAGIC_CMD=$MAGIC_CMD
13007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13009 for ac_dir in $ac_dummy; do
13010 IFS=$lt_save_ifs
13011 test -z "$ac_dir" && ac_dir=.
13012 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13013 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13014 if test -n "$file_magic_test_file"; then
13015 case $deplibs_check_method in
13016 "file_magic "*)
13017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13020 $EGREP "$file_magic_regex" > /dev/null; then
13021 :
13022 else
13023 cat <<_LT_EOF 1>&2
13024
13025 *** Warning: the command libtool uses to detect shared libraries,
13026 *** $file_magic_cmd, produces output that libtool cannot recognize.
13027 *** The result is that libtool may fail to recognize shared libraries
13028 *** as such. This will affect the creation of libtool libraries that
13029 *** depend on shared libraries, but programs linked with such libtool
13030 *** libraries will work regardless of this problem. Nevertheless, you
13031 *** may want to report the problem to your system manager and/or to
13032 *** [email protected]
13033
13034 _LT_EOF
13035 fi ;;
13036 esac
13037 fi
13038 break
13039 fi
13040 done
13041 IFS=$lt_save_ifs
13042 MAGIC_CMD=$lt_save_MAGIC_CMD
13043 ;;
13044 esac ;;
13045 esac
13046 fi
13047
13048 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13049 if test -n "$MAGIC_CMD"; then
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13051 printf "%s\n" "$MAGIC_CMD" >&6; }
13052 else
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 printf "%s\n" "no" >&6; }
13055 fi
13056
13057
13058
13059
13060
13061 if test -z "$lt_cv_path_MAGIC_CMD"; then
13062 if test -n "$ac_tool_prefix"; then
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13064 printf %s "checking for file... " >&6; }
13065 if test ${lt_cv_path_MAGIC_CMD+y}
13066 then :
13067 printf %s "(cached) " >&6
13068 else case e in #(
13069 e) case $MAGIC_CMD in
13070 [\\/*] | ?:[\\/]*)
13071 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13072 ;;
13073 *)
13074 lt_save_MAGIC_CMD=$MAGIC_CMD
13075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13077 for ac_dir in $ac_dummy; do
13078 IFS=$lt_save_ifs
13079 test -z "$ac_dir" && ac_dir=.
13080 if test -f "$ac_dir/file"; then
13081 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13082 if test -n "$file_magic_test_file"; then
13083 case $deplibs_check_method in
13084 "file_magic "*)
13085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13088 $EGREP "$file_magic_regex" > /dev/null; then
13089 :
13090 else
13091 cat <<_LT_EOF 1>&2
13092
13093 *** Warning: the command libtool uses to detect shared libraries,
13094 *** $file_magic_cmd, produces output that libtool cannot recognize.
13095 *** The result is that libtool may fail to recognize shared libraries
13096 *** as such. This will affect the creation of libtool libraries that
13097 *** depend on shared libraries, but programs linked with such libtool
13098 *** libraries will work regardless of this problem. Nevertheless, you
13099 *** may want to report the problem to your system manager and/or to
13100 *** [email protected]
13101
13102 _LT_EOF
13103 fi ;;
13104 esac
13105 fi
13106 break
13107 fi
13108 done
13109 IFS=$lt_save_ifs
13110 MAGIC_CMD=$lt_save_MAGIC_CMD
13111 ;;
13112 esac ;;
13113 esac
13114 fi
13115
13116 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13117 if test -n "$MAGIC_CMD"; then
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13119 printf "%s\n" "$MAGIC_CMD" >&6; }
13120 else
13121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 printf "%s\n" "no" >&6; }
13123 fi
13124
13125
13126 else
13127 MAGIC_CMD=:
13128 fi
13129 fi
13130
13131 fi
13132 ;;
13133 esac
13134
13135 # Use C for the default configuration in the libtool script
13136
13137 lt_save_CC=$CC
13138 ac_ext=c
13139 ac_cpp='$CPP $CPPFLAGS'
13140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143
13144
13145 # Source file extension for C test sources.
13146 ac_ext=c
13147
13148 # Object file extension for compiled C test sources.
13149 objext=o
13150 objext=$objext
13151
13152 # Code to be used in simple compile tests
13153 lt_simple_compile_test_code="int some_variable = 0;"
13154
13155 # Code to be used in simple link tests
13156 lt_simple_link_test_code='int main(void){return(0);}'
13157
13158
13159
13160
13161
13162
13163
13164 # If no C compiler was specified, use CC.
13165 LTCC=${LTCC-"$CC"}
13166
13167 # If no C compiler flags were specified, use CFLAGS.
13168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13169
13170 # Allow CC to be a program name with arguments.
13171 compiler=$CC
13172
13173 # Save the default compiler, since it gets overwritten when the other
13174 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13175 compiler_DEFAULT=$CC
13176
13177 # save warnings/boilerplate of simple test code
13178 ac_outfile=conftest.$ac_objext
13179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13181 _lt_compiler_boilerplate=`cat conftest.err`
13182 $RM conftest*
13183
13184 ac_outfile=conftest.$ac_objext
13185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13187 _lt_linker_boilerplate=`cat conftest.err`
13188 $RM -r conftest*
13189
13190
13191 ## CAVEAT EMPTOR:
13192 ## There is no encapsulation within the following macros, do not change
13193 ## the running order or otherwise move them around unless you know exactly
13194 ## what you are doing...
13195 if test -n "$compiler"; then
13196
13197 lt_prog_compiler_no_builtin_flag=
13198
13199 if test yes = "$GCC"; then
13200 case $cc_basename in
13201 nvcc*)
13202 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13203 *)
13204 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13205 esac
13206
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13208 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13209 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13210 then :
13211 printf %s "(cached) " >&6
13212 else case e in #(
13213 e) lt_cv_prog_compiler_rtti_exceptions=no
13214 ac_outfile=conftest.$ac_objext
13215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13216 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13217 # Insert the option either (1) after the last *FLAGS variable, or
13218 # (2) before a word containing "conftest.", or (3) at the end.
13219 # Note that $ac_compile itself does not contain backslashes and begins
13220 # with a dollar sign (not a hyphen), so the echo should work correctly.
13221 # The option is referenced via a variable to avoid confusing sed.
13222 lt_compile=`echo "$ac_compile" | $SED \
13223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13225 -e 's:$: $lt_compiler_flag:'`
13226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13227 (eval "$lt_compile" 2>conftest.err)
13228 ac_status=$?
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 if (exit $ac_status) && test -s "$ac_outfile"; then
13232 # The compiler can only warn and ignore the option if not recognized
13233 # So say no if there are warnings other than the usual output.
13234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13237 lt_cv_prog_compiler_rtti_exceptions=yes
13238 fi
13239 fi
13240 $RM conftest*
13241 ;;
13242 esac
13243 fi
13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13245 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13246
13247 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13248 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13249 else
13250 :
13251 fi
13252
13253 fi
13254
13255
13256
13257
13258
13259
13260 lt_prog_compiler_wl=
13261 lt_prog_compiler_pic=
13262 lt_prog_compiler_static=
13263
13264
13265 if test yes = "$GCC"; then
13266 lt_prog_compiler_wl='-Wl,'
13267 lt_prog_compiler_static='-static'
13268
13269 case $host_os in
13270 aix*)
13271 # All AIX code is PIC.
13272 if test ia64 = "$host_cpu"; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static='-Bstatic'
13275 fi
13276 lt_prog_compiler_pic='-fPIC'
13277 ;;
13278
13279 amigaos*)
13280 case $host_cpu in
13281 powerpc)
13282 # see comment about AmigaOS4 .so support
13283 lt_prog_compiler_pic='-fPIC'
13284 ;;
13285 m68k)
13286 # FIXME: we need at least 68020 code to build shared libraries, but
13287 # adding the '-m68020' flag to GCC prevents building anything better,
13288 # like '-m68040'.
13289 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13290 ;;
13291 esac
13292 ;;
13293
13294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13295 # PIC is the default for these OSes.
13296 ;;
13297
13298 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13299 # This hack is so that the source file can tell whether it is being
13300 # built for inclusion in a dll (and should export symbols for example).
13301 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13302 # (--disable-auto-import) libraries
13303 lt_prog_compiler_pic='-DDLL_EXPORT'
13304 case $host_os in
13305 os2*)
13306 lt_prog_compiler_static='$wl-static'
13307 ;;
13308 esac
13309 ;;
13310
13311 darwin* | rhapsody*)
13312 # PIC is the default on this platform
13313 # Common symbols not allowed in MH_DYLIB files
13314 lt_prog_compiler_pic='-fno-common'
13315 ;;
13316
13317 haiku*)
13318 # PIC is the default for Haiku.
13319 # The "-static" flag exists, but is broken.
13320 lt_prog_compiler_static=
13321 ;;
13322
13323 hpux*)
13324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13326 # sets the default TLS model and affects inlining.
13327 case $host_cpu in
13328 hppa*64*)
13329 # +Z the default
13330 ;;
13331 *)
13332 lt_prog_compiler_pic='-fPIC'
13333 ;;
13334 esac
13335 ;;
13336
13337 interix[3-9]*)
13338 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13339 # Instead, we relocate shared libraries at runtime.
13340 ;;
13341
13342 msdosdjgpp*)
13343 # Just because we use GCC doesn't mean we suddenly get shared libraries
13344 # on systems that don't support them.
13345 lt_prog_compiler_can_build_shared=no
13346 enable_shared=no
13347 ;;
13348
13349 *nto* | *qnx*)
13350 # QNX uses GNU C++, but need to define -shared option too, otherwise
13351 # it will coredump.
13352 lt_prog_compiler_pic='-fPIC -shared'
13353 ;;
13354
13355 sysv4*MP*)
13356 if test -d /usr/nec; then
13357 lt_prog_compiler_pic=-Kconform_pic
13358 fi
13359 ;;
13360
13361 *)
13362 lt_prog_compiler_pic='-fPIC'
13363 ;;
13364 esac
13365
13366 case $cc_basename in
13367 nvcc*) # Cuda Compiler Driver 2.2
13368 lt_prog_compiler_wl='-Xlinker '
13369 if test -n "$lt_prog_compiler_pic"; then
13370 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13371 fi
13372 ;;
13373 esac
13374 else
13375 # PORTME Check for flag to pass linker flags through the system compiler.
13376 case $host_os in
13377 aix*)
13378 lt_prog_compiler_wl='-Wl,'
13379 if test ia64 = "$host_cpu"; then
13380 # AIX 5 now supports IA64 processor
13381 lt_prog_compiler_static='-Bstatic'
13382 else
13383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13384 fi
13385 ;;
13386
13387 darwin* | rhapsody*)
13388 # PIC is the default on this platform
13389 # Common symbols not allowed in MH_DYLIB files
13390 lt_prog_compiler_pic='-fno-common'
13391 case $cc_basename in
13392 nagfor*)
13393 # NAG Fortran compiler
13394 lt_prog_compiler_wl='-Wl,-Wl,,'
13395 lt_prog_compiler_pic='-PIC'
13396 lt_prog_compiler_static='-Bstatic'
13397 ;;
13398 esac
13399 ;;
13400
13401 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13402 # This hack is so that the source file can tell whether it is being
13403 # built for inclusion in a dll (and should export symbols for example).
13404 lt_prog_compiler_pic='-DDLL_EXPORT'
13405 case $host_os in
13406 os2*)
13407 lt_prog_compiler_static='$wl-static'
13408 ;;
13409 esac
13410 ;;
13411
13412 hpux9* | hpux10* | hpux11*)
13413 lt_prog_compiler_wl='-Wl,'
13414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13415 # not for PA HP-UX.
13416 case $host_cpu in
13417 hppa*64*|ia64*)
13418 # +Z the default
13419 ;;
13420 *)
13421 lt_prog_compiler_pic='+Z'
13422 ;;
13423 esac
13424 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13425 lt_prog_compiler_static='$wl-a ${wl}archive'
13426 ;;
13427
13428 irix5* | irix6* | nonstopux*)
13429 lt_prog_compiler_wl='-Wl,'
13430 # PIC (with -KPIC) is the default.
13431 lt_prog_compiler_static='-non_shared'
13432 ;;
13433
13434 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13435 case $cc_basename in
13436 # old Intel for x86_64, which still supported -KPIC.
13437 ecc*)
13438 lt_prog_compiler_wl='-Wl,'
13439 lt_prog_compiler_pic='-KPIC'
13440 lt_prog_compiler_static='-static'
13441 ;;
13442 *flang* | ftn | f18* | f95*)
13443 # Flang compiler.
13444 lt_prog_compiler_wl='-Wl,'
13445 lt_prog_compiler_pic='-fPIC'
13446 lt_prog_compiler_static='-static'
13447 ;;
13448 # flang / f18. f95 an alias for gfortran or flang on Debian
13449 flang* | f18* | f95*)
13450 lt_prog_compiler_wl='-Wl,'
13451 lt_prog_compiler_pic='-fPIC'
13452 lt_prog_compiler_static='-static'
13453 ;;
13454 # icc used to be incompatible with GCC.
13455 # ICC 10 doesn't accept -KPIC any more.
13456 icc* | ifort*)
13457 lt_prog_compiler_wl='-Wl,'
13458 lt_prog_compiler_pic='-fPIC'
13459 lt_prog_compiler_static='-static'
13460 ;;
13461 # Lahey Fortran 8.1.
13462 lf95*)
13463 lt_prog_compiler_wl='-Wl,'
13464 lt_prog_compiler_pic='--shared'
13465 lt_prog_compiler_static='--static'
13466 ;;
13467 nagfor*)
13468 # NAG Fortran compiler
13469 lt_prog_compiler_wl='-Wl,-Wl,,'
13470 lt_prog_compiler_pic='-PIC'
13471 lt_prog_compiler_static='-Bstatic'
13472 ;;
13473 tcc*)
13474 # Fabrice Bellard et al's Tiny C Compiler
13475 lt_prog_compiler_wl='-Wl,'
13476 lt_prog_compiler_pic='-fPIC'
13477 lt_prog_compiler_static='-static'
13478 ;;
13479 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13480 # Portland Group compilers (*not* the Pentium gcc compiler,
13481 # which looks to be a dead project)
13482 lt_prog_compiler_wl='-Wl,'
13483 lt_prog_compiler_pic='-fpic'
13484 lt_prog_compiler_static='-Bstatic'
13485 ;;
13486 ccc*)
13487 lt_prog_compiler_wl='-Wl,'
13488 # All Alpha code is PIC.
13489 lt_prog_compiler_static='-non_shared'
13490 ;;
13491 xl* | bgxl* | bgf* | mpixl*)
13492 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13493 lt_prog_compiler_wl='-Wl,'
13494 lt_prog_compiler_pic='-qpic'
13495 lt_prog_compiler_static='-qstaticlink'
13496 ;;
13497 *)
13498 case `$CC -V 2>&1 | $SED 5q` in
13499 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13500 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13501 lt_prog_compiler_pic='-KPIC'
13502 lt_prog_compiler_static='-Bstatic'
13503 lt_prog_compiler_wl=''
13504 ;;
13505 *Sun\ F* | *Sun*Fortran*)
13506 lt_prog_compiler_pic='-KPIC'
13507 lt_prog_compiler_static='-Bstatic'
13508 lt_prog_compiler_wl='-Qoption ld '
13509 ;;
13510 *Sun\ C*)
13511 # Sun C 5.9
13512 lt_prog_compiler_pic='-KPIC'
13513 lt_prog_compiler_static='-Bstatic'
13514 lt_prog_compiler_wl='-Wl,'
13515 ;;
13516 *Intel*\ [CF]*Compiler*)
13517 lt_prog_compiler_wl='-Wl,'
13518 lt_prog_compiler_pic='-fPIC'
13519 lt_prog_compiler_static='-static'
13520 ;;
13521 *Portland\ Group*)
13522 lt_prog_compiler_wl='-Wl,'
13523 lt_prog_compiler_pic='-fpic'
13524 lt_prog_compiler_static='-Bstatic'
13525 ;;
13526 esac
13527 ;;
13528 esac
13529 ;;
13530
13531 newsos6)
13532 lt_prog_compiler_pic='-KPIC'
13533 lt_prog_compiler_static='-Bstatic'
13534 ;;
13535
13536 *-mlibc)
13537 lt_prog_compiler_wl='-Wl,'
13538 lt_prog_compiler_pic='-fPIC'
13539 lt_prog_compiler_static='-static'
13540 ;;
13541
13542 *nto* | *qnx*)
13543 # QNX uses GNU C++, but need to define -shared option too, otherwise
13544 # it will coredump.
13545 lt_prog_compiler_pic='-fPIC -shared'
13546 ;;
13547
13548 osf3* | osf4* | osf5*)
13549 lt_prog_compiler_wl='-Wl,'
13550 # All OSF/1 code is PIC.
13551 lt_prog_compiler_static='-non_shared'
13552 ;;
13553
13554 rdos*)
13555 lt_prog_compiler_static='-non_shared'
13556 ;;
13557
13558 serenity*)
13559 ;;
13560
13561 solaris*)
13562 lt_prog_compiler_pic='-KPIC'
13563 lt_prog_compiler_static='-Bstatic'
13564 case $cc_basename in
13565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13566 lt_prog_compiler_wl='-Qoption ld ';;
13567 *)
13568 lt_prog_compiler_wl='-Wl,';;
13569 esac
13570 ;;
13571
13572 sunos4*)
13573 lt_prog_compiler_wl='-Qoption ld '
13574 lt_prog_compiler_pic='-PIC'
13575 lt_prog_compiler_static='-Bstatic'
13576 ;;
13577
13578 sysv4 | sysv4.2uw2* | sysv4.3*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_pic='-KPIC'
13581 lt_prog_compiler_static='-Bstatic'
13582 ;;
13583
13584 sysv4*MP*)
13585 if test -d /usr/nec; then
13586 lt_prog_compiler_pic='-Kconform_pic'
13587 lt_prog_compiler_static='-Bstatic'
13588 fi
13589 ;;
13590
13591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13592 lt_prog_compiler_wl='-Wl,'
13593 lt_prog_compiler_pic='-KPIC'
13594 lt_prog_compiler_static='-Bstatic'
13595 ;;
13596
13597 unicos*)
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_can_build_shared=no
13600 ;;
13601
13602 uts4*)
13603 lt_prog_compiler_pic='-pic'
13604 lt_prog_compiler_static='-Bstatic'
13605 ;;
13606
13607 *)
13608 lt_prog_compiler_can_build_shared=no
13609 ;;
13610 esac
13611 fi
13612
13613 case $host_os in
13614 # For platforms that do not support PIC, -DPIC is meaningless:
13615 *djgpp*)
13616 lt_prog_compiler_pic=
13617 ;;
13618 *)
13619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13620 ;;
13621 esac
13622
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13624 printf %s "checking for $compiler option to produce PIC... " >&6; }
13625 if test ${lt_cv_prog_compiler_pic+y}
13626 then :
13627 printf %s "(cached) " >&6
13628 else case e in #(
13629 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13630 esac
13631 fi
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13633 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13634 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13635
13636 #
13637 # Check to make sure the PIC flag actually works.
13638 #
13639 if test -n "$lt_prog_compiler_pic"; then
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13641 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13642 if test ${lt_cv_prog_compiler_pic_works+y}
13643 then :
13644 printf %s "(cached) " >&6
13645 else case e in #(
13646 e) lt_cv_prog_compiler_pic_works=no
13647 ac_outfile=conftest.$ac_objext
13648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13650 # Insert the option either (1) after the last *FLAGS variable, or
13651 # (2) before a word containing "conftest.", or (3) at the end.
13652 # Note that $ac_compile itself does not contain backslashes and begins
13653 # with a dollar sign (not a hyphen), so the echo should work correctly.
13654 # The option is referenced via a variable to avoid confusing sed.
13655 lt_compile=`echo "$ac_compile" | $SED \
13656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13658 -e 's:$: $lt_compiler_flag:'`
13659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13660 (eval "$lt_compile" 2>conftest.err)
13661 ac_status=$?
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 if (exit $ac_status) && test -s "$ac_outfile"; then
13665 # The compiler can only warn and ignore the option if not recognized
13666 # So say no if there are warnings other than the usual output.
13667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13670 lt_cv_prog_compiler_pic_works=yes
13671 fi
13672 fi
13673 $RM conftest*
13674 ;;
13675 esac
13676 fi
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13678 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13679
13680 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13681 case $lt_prog_compiler_pic in
13682 "" | " "*) ;;
13683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13684 esac
13685 else
13686 lt_prog_compiler_pic=
13687 lt_prog_compiler_can_build_shared=no
13688 fi
13689
13690 fi
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702 #
13703 # Check to make sure the static flag actually works.
13704 #
13705 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13707 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13708 if test ${lt_cv_prog_compiler_static_works+y}
13709 then :
13710 printf %s "(cached) " >&6
13711 else case e in #(
13712 e) lt_cv_prog_compiler_static_works=no
13713 save_LDFLAGS=$LDFLAGS
13714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13717 # The linker can only warn and ignore the option if not recognized
13718 # So say no if there are warnings
13719 if test -s conftest.err; then
13720 # Append any errors to the config.log.
13721 cat conftest.err 1>&5
13722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13724 if diff conftest.exp conftest.er2 >/dev/null; then
13725 lt_cv_prog_compiler_static_works=yes
13726 fi
13727 else
13728 lt_cv_prog_compiler_static_works=yes
13729 fi
13730 fi
13731 $RM -r conftest*
13732 LDFLAGS=$save_LDFLAGS
13733 ;;
13734 esac
13735 fi
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13737 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13738
13739 if test yes = "$lt_cv_prog_compiler_static_works"; then
13740 :
13741 else
13742 lt_prog_compiler_static=
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13752 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13753 if test ${lt_cv_prog_compiler_c_o+y}
13754 then :
13755 printf %s "(cached) " >&6
13756 else case e in #(
13757 e) lt_cv_prog_compiler_c_o=no
13758 $RM -r conftest 2>/dev/null
13759 mkdir conftest
13760 cd conftest
13761 mkdir out
13762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13763
13764 lt_compiler_flag="-o out/conftest2.$ac_objext"
13765 # Insert the option either (1) after the last *FLAGS variable, or
13766 # (2) before a word containing "conftest.", or (3) at the end.
13767 # Note that $ac_compile itself does not contain backslashes and begins
13768 # with a dollar sign (not a hyphen), so the echo should work correctly.
13769 lt_compile=`echo "$ac_compile" | $SED \
13770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13772 -e 's:$: $lt_compiler_flag:'`
13773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13774 (eval "$lt_compile" 2>out/conftest.err)
13775 ac_status=$?
13776 cat out/conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13779 then
13780 # The compiler can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13785 lt_cv_prog_compiler_c_o=yes
13786 fi
13787 fi
13788 chmod u+w . 2>&5
13789 $RM conftest*
13790 # SGI C++ compiler will create directory out/ii_files/ for
13791 # template instantiation
13792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13793 $RM out/* && rmdir out
13794 cd ..
13795 $RM -r conftest
13796 $RM conftest*
13797 ;;
13798 esac
13799 fi
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13801 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13802
13803
13804
13805
13806
13807
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13809 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13810 if test ${lt_cv_prog_compiler_c_o+y}
13811 then :
13812 printf %s "(cached) " >&6
13813 else case e in #(
13814 e) lt_cv_prog_compiler_c_o=no
13815 $RM -r conftest 2>/dev/null
13816 mkdir conftest
13817 cd conftest
13818 mkdir out
13819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13820
13821 lt_compiler_flag="-o out/conftest2.$ac_objext"
13822 # Insert the option either (1) after the last *FLAGS variable, or
13823 # (2) before a word containing "conftest.", or (3) at the end.
13824 # Note that $ac_compile itself does not contain backslashes and begins
13825 # with a dollar sign (not a hyphen), so the echo should work correctly.
13826 lt_compile=`echo "$ac_compile" | $SED \
13827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13829 -e 's:$: $lt_compiler_flag:'`
13830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13831 (eval "$lt_compile" 2>out/conftest.err)
13832 ac_status=$?
13833 cat out/conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13836 then
13837 # The compiler can only warn and ignore the option if not recognized
13838 # So say no if there are warnings
13839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13842 lt_cv_prog_compiler_c_o=yes
13843 fi
13844 fi
13845 chmod u+w . 2>&5
13846 $RM conftest*
13847 # SGI C++ compiler will create directory out/ii_files/ for
13848 # template instantiation
13849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13850 $RM out/* && rmdir out
13851 cd ..
13852 $RM -r conftest
13853 $RM conftest*
13854 ;;
13855 esac
13856 fi
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13858 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13859
13860
13861
13862
13863 hard_links=nottested
13864 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13865 # do not overwrite the value of need_locks provided by the user
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13867 printf %s "checking if we can lock with hard links... " >&6; }
13868 hard_links=yes
13869 $RM conftest*
13870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13871 touch conftest.a
13872 ln conftest.a conftest.b 2>&5 || hard_links=no
13873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13875 printf "%s\n" "$hard_links" >&6; }
13876 if test no = "$hard_links"; then
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13878 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13879 need_locks=warn
13880 fi
13881 else
13882 need_locks=no
13883 fi
13884
13885
13886
13887
13888
13889
13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13891 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13892
13893 runpath_var=
13894 allow_undefined_flag=
13895 always_export_symbols=no
13896 archive_cmds=
13897 archive_expsym_cmds=
13898 compiler_needs_object=no
13899 enable_shared_with_static_runtimes=no
13900 export_dynamic_flag_spec=
13901 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13902 hardcode_automatic=no
13903 hardcode_direct=no
13904 hardcode_direct_absolute=no
13905 hardcode_libdir_flag_spec=
13906 hardcode_libdir_separator=
13907 hardcode_minus_L=no
13908 hardcode_shlibpath_var=unsupported
13909 inherit_rpath=no
13910 link_all_deplibs=unknown
13911 module_cmds=
13912 module_expsym_cmds=
13913 old_archive_from_new_cmds=
13914 old_archive_from_expsyms_cmds=
13915 thread_safe_flag_spec=
13916 whole_archive_flag_spec=
13917 # include_expsyms should be a list of space-separated symbols to be *always*
13918 # included in the symbol list
13919 include_expsyms=
13920 # exclude_expsyms can be an extended regexp of symbols to exclude
13921 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13922 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13923 # as well as any symbol that contains 'd'.
13924 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13926 # platforms (ab)use it in PIC code, but their linkers get confused if
13927 # the symbol is explicitly referenced. Since portable code cannot
13928 # rely on this symbol name, it's probably fine to never include it in
13929 # preloaded symbol tables.
13930 # Exclude shared library initialization/finalization symbols.
13931 extract_expsyms_cmds=
13932
13933 case $host_os in
13934 cygwin* | mingw* | windows* | pw32* | cegcc*)
13935 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13936 # When not using gcc, we currently assume that we are using
13937 # Microsoft Visual C++ or Intel C++ Compiler.
13938 if test yes != "$GCC"; then
13939 with_gnu_ld=no
13940 fi
13941 ;;
13942 interix*)
13943 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13944 with_gnu_ld=yes
13945 ;;
13946 linux* | k*bsd*-gnu | gnu*)
13947 link_all_deplibs=no
13948 ;;
13949 esac
13950
13951 ld_shlibs=yes
13952
13953 # On some targets, GNU ld is compatible enough with the native linker
13954 # that we're better off using the native interface for both.
13955 lt_use_gnu_ld_interface=no
13956 if test yes = "$with_gnu_ld"; then
13957 case $host_os in
13958 aix*)
13959 # The AIX port of GNU ld has always aspired to compatibility
13960 # with the native linker. However, as the warning in the GNU ld
13961 # block says, versions before 2.19.5* couldn't really create working
13962 # shared libraries, regardless of the interface used.
13963 case `$LD -v 2>&1` in
13964 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13965 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13966 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13967 *)
13968 lt_use_gnu_ld_interface=yes
13969 ;;
13970 esac
13971 ;;
13972 *)
13973 lt_use_gnu_ld_interface=yes
13974 ;;
13975 esac
13976 fi
13977
13978 if test yes = "$lt_use_gnu_ld_interface"; then
13979 # If archive_cmds runs LD, not CC, wlarc should be empty
13980 wlarc='$wl'
13981
13982 # Set some defaults for GNU ld with shared library support. These
13983 # are reset later if shared libraries are not supported. Putting them
13984 # here allows them to be overridden if necessary.
13985 runpath_var=LD_RUN_PATH
13986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13987 export_dynamic_flag_spec='$wl--export-dynamic'
13988 # ancient GNU ld didn't support --whole-archive et. al.
13989 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13990 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13991 else
13992 whole_archive_flag_spec=
13993 fi
13994 supports_anon_versioning=no
13995 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13996 *GNU\ gold*) supports_anon_versioning=yes ;;
13997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14000 *\ 2.11.*) ;; # other 2.11 versions
14001 *) supports_anon_versioning=yes ;;
14002 esac
14003
14004 # See if GNU ld supports shared libraries.
14005 case $host_os in
14006 aix[3-9]*)
14007 # On AIX/PPC, the GNU linker is very broken
14008 if test ia64 != "$host_cpu"; then
14009 ld_shlibs=no
14010 cat <<_LT_EOF 1>&2
14011
14012 *** Warning: the GNU linker, at least up to release 2.19, is reported
14013 *** to be unable to reliably create shared libraries on AIX.
14014 *** Therefore, libtool is disabling shared libraries support. If you
14015 *** really care for shared libraries, you may want to install binutils
14016 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14017 *** You will then need to restart the configuration process.
14018
14019 _LT_EOF
14020 fi
14021 ;;
14022
14023 amigaos*)
14024 case $host_cpu in
14025 powerpc)
14026 # see comment about AmigaOS4 .so support
14027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14028 archive_expsym_cmds=''
14029 ;;
14030 m68k)
14031 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)'
14032 hardcode_libdir_flag_spec='-L$libdir'
14033 hardcode_minus_L=yes
14034 ;;
14035 esac
14036 ;;
14037
14038 beos*)
14039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14040 allow_undefined_flag=unsupported
14041 # Joseph Beckenbach <[email protected]> says some releases of gcc
14042 # support --undefined. This deserves some investigation. FIXME
14043 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14044 else
14045 ld_shlibs=no
14046 fi
14047 ;;
14048
14049 cygwin* | mingw* | windows* | pw32* | cegcc*)
14050 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14051 # as there is no search path for DLLs.
14052 hardcode_libdir_flag_spec='-L$libdir'
14053 export_dynamic_flag_spec='$wl--export-all-symbols'
14054 allow_undefined_flag=unsupported
14055 always_export_symbols=no
14056 enable_shared_with_static_runtimes=yes
14057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14058 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14059 file_list_spec='@'
14060
14061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14063 # If the export-symbols file already is a .def file, use it as
14064 # is; otherwise, prepend EXPORTS...
14065 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14066 cp $export_symbols $output_objdir/$soname.def;
14067 else
14068 echo EXPORTS > $output_objdir/$soname.def;
14069 cat $export_symbols >> $output_objdir/$soname.def;
14070 fi~
14071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14072 else
14073 ld_shlibs=no
14074 fi
14075 ;;
14076
14077 haiku*)
14078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14079 link_all_deplibs=no
14080 ;;
14081
14082 os2*)
14083 hardcode_libdir_flag_spec='-L$libdir'
14084 hardcode_minus_L=yes
14085 allow_undefined_flag=unsupported
14086 shrext_cmds=.dll
14087 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14088 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14089 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14090 $ECHO EXPORTS >> $output_objdir/$libname.def~
14091 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14093 emximp -o $lib $output_objdir/$libname.def'
14094 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14095 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14096 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14097 $ECHO EXPORTS >> $output_objdir/$libname.def~
14098 prefix_cmds="$SED"~
14099 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14100 prefix_cmds="$prefix_cmds -e 1d";
14101 fi~
14102 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14103 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14105 emximp -o $lib $output_objdir/$libname.def'
14106 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14107 enable_shared_with_static_runtimes=yes
14108 file_list_spec='@'
14109 ;;
14110
14111 interix[3-9]*)
14112 hardcode_direct=no
14113 hardcode_shlibpath_var=no
14114 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14115 export_dynamic_flag_spec='$wl-E'
14116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14117 # Instead, shared libraries are loaded at an image base (0x10000000 by
14118 # default) and relocated if they conflict, which is a slow very memory
14119 # consuming and fragmenting process. To avoid this, we pick a random,
14120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14123 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'
14124 ;;
14125
14126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14127 tmp_diet=no
14128 if test linux-dietlibc = "$host_os"; then
14129 case $cc_basename in
14130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14131 esac
14132 fi
14133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14134 && test no = "$tmp_diet"
14135 then
14136 tmp_addflag=' $pic_flag'
14137 tmp_sharedflag='-shared'
14138 case $cc_basename,$host_cpu in
14139 pgcc*) # Portland Group C compiler
14140 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'
14141 tmp_addflag=' $pic_flag'
14142 ;;
14143 pgf77* | pgf90* | pgf95* | pgfortran*)
14144 # Portland Group f77 and f90 compilers
14145 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'
14146 tmp_addflag=' $pic_flag -Mnomain' ;;
14147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14148 tmp_addflag=' -i_dynamic' ;;
14149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14150 tmp_addflag=' -i_dynamic -nofor_main' ;;
14151 ifc* | ifort*) # Intel Fortran compiler
14152 tmp_addflag=' -nofor_main' ;;
14153 lf95*) # Lahey Fortran 8.1
14154 whole_archive_flag_spec=
14155 tmp_sharedflag='--shared' ;;
14156 nagfor*) # NAGFOR 5.3
14157 tmp_sharedflag='-Wl,-shared' ;;
14158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14159 tmp_sharedflag='-qmkshrobj'
14160 tmp_addflag= ;;
14161 nvcc*) # Cuda Compiler Driver 2.2
14162 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'
14163 compiler_needs_object=yes
14164 ;;
14165 esac
14166 case `$CC -V 2>&1 | $SED 5q` in
14167 *Sun\ C*) # Sun C 5.9
14168 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'
14169 compiler_needs_object=yes
14170 tmp_sharedflag='-G' ;;
14171 *Sun\ F*) # Sun Fortran 8.3
14172 tmp_sharedflag='-G' ;;
14173 esac
14174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14175
14176 if test yes = "$supports_anon_versioning"; then
14177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14178 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14179 echo "local: *; };" >> $output_objdir/$libname.ver~
14180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14181 fi
14182
14183 case $cc_basename in
14184 tcc*)
14185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14186 export_dynamic_flag_spec='-rdynamic'
14187 ;;
14188 xlf* | bgf* | bgxlf* | mpixlf*)
14189 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14190 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14192 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14193 if test yes = "$supports_anon_versioning"; then
14194 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14195 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14196 echo "local: *; };" >> $output_objdir/$libname.ver~
14197 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14198 fi
14199 ;;
14200 esac
14201 else
14202 ld_shlibs=no
14203 fi
14204 ;;
14205
14206 *-mlibc)
14207 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14208 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14209 ;;
14210
14211 netbsd* | netbsdelf*-gnu)
14212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14213 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14214 wlarc=
14215 else
14216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14218 fi
14219 ;;
14220
14221 solaris*)
14222 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14223 ld_shlibs=no
14224 cat <<_LT_EOF 1>&2
14225
14226 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14227 *** create shared libraries on Solaris systems. Therefore, libtool
14228 *** is disabling shared libraries support. We urge you to upgrade GNU
14229 *** binutils to release 2.9.1 or newer. Another option is to modify
14230 *** your PATH or compiler configuration so that the native linker is
14231 *** used, and then restart.
14232
14233 _LT_EOF
14234 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14237 else
14238 ld_shlibs=no
14239 fi
14240 ;;
14241
14242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14243 case `$LD -v 2>&1` in
14244 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14245 ld_shlibs=no
14246 cat <<_LT_EOF 1>&2
14247
14248 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14249 *** reliably create shared libraries on SCO systems. Therefore, libtool
14250 *** is disabling shared libraries support. We urge you to upgrade GNU
14251 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14252 *** your PATH or compiler configuration so that the native linker is
14253 *** used, and then restart.
14254
14255 _LT_EOF
14256 ;;
14257 *)
14258 # For security reasons, it is highly recommended that you always
14259 # use absolute paths for naming shared libraries, and exclude the
14260 # DT_RUNPATH tag from executables and libraries. But doing so
14261 # requires that you compile everything twice, which is a pain.
14262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14266 else
14267 ld_shlibs=no
14268 fi
14269 ;;
14270 esac
14271 ;;
14272
14273 sunos4*)
14274 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14275 wlarc=
14276 hardcode_direct=yes
14277 hardcode_shlibpath_var=no
14278 ;;
14279
14280 *)
14281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14283 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14284 else
14285 ld_shlibs=no
14286 fi
14287 ;;
14288 esac
14289
14290 if test no = "$ld_shlibs"; then
14291 runpath_var=
14292 hardcode_libdir_flag_spec=
14293 export_dynamic_flag_spec=
14294 whole_archive_flag_spec=
14295 fi
14296 else
14297 # PORTME fill in a description of your system's linker (not GNU ld)
14298 case $host_os in
14299 aix3*)
14300 allow_undefined_flag=unsupported
14301 always_export_symbols=yes
14302 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'
14303 # Note: this linker hardcodes the directories in LIBPATH if there
14304 # are no directories specified by -L.
14305 hardcode_minus_L=yes
14306 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14307 # Neither direct hardcoding nor static linking is supported with a
14308 # broken collect2.
14309 hardcode_direct=unsupported
14310 fi
14311 ;;
14312
14313 aix[4-9]*)
14314 if test ia64 = "$host_cpu"; then
14315 # On IA64, the linker does run time linking by default, so we don't
14316 # have to do anything special.
14317 aix_use_runtimelinking=no
14318 exp_sym_flag='-Bexport'
14319 no_entry_flag=
14320 else
14321 # If we're using GNU nm, then we don't want the "-C" option.
14322 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14323 # Without the "-l" option, or with the "-B" option, AIX nm treats
14324 # weak defined symbols like other global defined symbols, whereas
14325 # GNU nm marks them as "W".
14326 # While the 'weak' keyword is ignored in the Export File, we need
14327 # it in the Import File for the 'aix-soname' feature, so we have
14328 # to replace the "-B" option with "-P" for AIX nm.
14329 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14330 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14331 else
14332 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14333 fi
14334 aix_use_runtimelinking=no
14335
14336 # Test if we are trying to use run time linking or normal
14337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14338 # have runtime linking enabled, and use it for executables.
14339 # For shared libraries, we enable/disable runtime linking
14340 # depending on the kind of the shared library created -
14341 # when "with_aix_soname,aix_use_runtimelinking" is:
14342 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14343 # "aix,yes" lib.so shared, rtl:yes, for executables
14344 # lib.a static archive
14345 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14346 # lib.a(lib.so.V) shared, rtl:no, for executables
14347 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14348 # lib.a(lib.so.V) shared, rtl:no
14349 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14350 # lib.a static archive
14351 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14352 for ld_flag in $LDFLAGS; do
14353 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14354 aix_use_runtimelinking=yes
14355 break
14356 fi
14357 done
14358 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14359 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14360 # so we don't have lib.a shared libs to link our executables.
14361 # We have to force runtime linking in this case.
14362 aix_use_runtimelinking=yes
14363 LDFLAGS="$LDFLAGS -Wl,-brtl"
14364 fi
14365 ;;
14366 esac
14367
14368 exp_sym_flag='-bexport'
14369 no_entry_flag='-bnoentry'
14370 fi
14371
14372 # When large executables or shared objects are built, AIX ld can
14373 # have problems creating the table of contents. If linking a library
14374 # or program results in "error TOC overflow" add -mminimal-toc to
14375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14377
14378 archive_cmds=''
14379 hardcode_direct=yes
14380 hardcode_direct_absolute=yes
14381 hardcode_libdir_separator=':'
14382 link_all_deplibs=yes
14383 file_list_spec='$wl-f,'
14384 case $with_aix_soname,$aix_use_runtimelinking in
14385 aix,*) ;; # traditional, no import file
14386 svr4,* | *,yes) # use import file
14387 # The Import File defines what to hardcode.
14388 hardcode_direct=no
14389 hardcode_direct_absolute=no
14390 ;;
14391 esac
14392
14393 if test yes = "$GCC"; then
14394 case $host_os in aix4.[012]|aix4.[012].*)
14395 # We only want to do this on AIX 4.2 and lower, the check
14396 # below for broken collect2 doesn't work under 4.3+
14397 collect2name=`$CC -print-prog-name=collect2`
14398 if test -f "$collect2name" &&
14399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14400 then
14401 # We have reworked collect2
14402 :
14403 else
14404 # We have old collect2
14405 hardcode_direct=unsupported
14406 # It fails to find uninstalled libraries when the uninstalled
14407 # path is not listed in the libpath. Setting hardcode_minus_L
14408 # to unsupported forces relinking
14409 hardcode_minus_L=yes
14410 hardcode_libdir_flag_spec='-L$libdir'
14411 hardcode_libdir_separator=
14412 fi
14413 ;;
14414 esac
14415 shared_flag='-shared'
14416 if test yes = "$aix_use_runtimelinking"; then
14417 shared_flag="$shared_flag "'$wl-G'
14418 fi
14419 # Need to ensure runtime linking is disabled for the traditional
14420 # shared library, or the linker may eventually find shared libraries
14421 # /with/ Import File - we do not want to mix them.
14422 shared_flag_aix='-shared'
14423 shared_flag_svr4='-shared $wl-G'
14424 else
14425 # not using gcc
14426 if test ia64 = "$host_cpu"; then
14427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14428 # chokes on -Wl,-G. The following line is correct:
14429 shared_flag='-G'
14430 else
14431 if test yes = "$aix_use_runtimelinking"; then
14432 shared_flag='$wl-G'
14433 else
14434 shared_flag='$wl-bM:SRE'
14435 fi
14436 shared_flag_aix='$wl-bM:SRE'
14437 shared_flag_svr4='$wl-G'
14438 fi
14439 fi
14440
14441 export_dynamic_flag_spec='$wl-bexpall'
14442 # It seems that -bexpall does not export symbols beginning with
14443 # underscore (_), so it is better to generate a list of symbols to export.
14444 always_export_symbols=yes
14445 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14446 # Warning - without using the other runtime loading flags (-brtl),
14447 # -berok will link without error, but may produce a broken library.
14448 allow_undefined_flag='-berok'
14449 # Determine the default libpath from the value encoded in an
14450 # empty executable.
14451 if test set = "${lt_cv_aix_libpath+set}"; then
14452 aix_libpath=$lt_cv_aix_libpath
14453 else
14454 if test ${lt_cv_aix_libpath_+y}
14455 then :
14456 printf %s "(cached) " >&6
14457 else case e in #(
14458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460
14461 int
14462 main (void)
14463 {
14464
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"
14470 then :
14471
14472 lt_aix_libpath_sed='
14473 /Import File Strings/,/^$/ {
14474 /^0/ {
14475 s/^0 *\([^ ]*\) *$/\1/
14476 p
14477 }
14478 }'
14479 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14480 # Check for a 64-bit object if we didn't find anything.
14481 if test -z "$lt_cv_aix_libpath_"; then
14482 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14483 fi
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14486 conftest$ac_exeext conftest.$ac_ext
14487 if test -z "$lt_cv_aix_libpath_"; then
14488 lt_cv_aix_libpath_=/usr/lib:/lib
14489 fi
14490 ;;
14491 esac
14492 fi
14493
14494 aix_libpath=$lt_cv_aix_libpath_
14495 fi
14496
14497 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14498 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14499 else
14500 if test ia64 = "$host_cpu"; then
14501 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14502 allow_undefined_flag="-z nodefs"
14503 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"
14504 else
14505 # Determine the default libpath from the value encoded in an
14506 # empty executable.
14507 if test set = "${lt_cv_aix_libpath+set}"; then
14508 aix_libpath=$lt_cv_aix_libpath
14509 else
14510 if test ${lt_cv_aix_libpath_+y}
14511 then :
14512 printf %s "(cached) " >&6
14513 else case e in #(
14514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516
14517 int
14518 main (void)
14519 {
14520
14521 ;
14522 return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"
14526 then :
14527
14528 lt_aix_libpath_sed='
14529 /Import File Strings/,/^$/ {
14530 /^0/ {
14531 s/^0 *\([^ ]*\) *$/\1/
14532 p
14533 }
14534 }'
14535 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14536 # Check for a 64-bit object if we didn't find anything.
14537 if test -z "$lt_cv_aix_libpath_"; then
14538 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14539 fi
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14542 conftest$ac_exeext conftest.$ac_ext
14543 if test -z "$lt_cv_aix_libpath_"; then
14544 lt_cv_aix_libpath_=/usr/lib:/lib
14545 fi
14546 ;;
14547 esac
14548 fi
14549
14550 aix_libpath=$lt_cv_aix_libpath_
14551 fi
14552
14553 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14554 # Warning - without using the other run time loading flags,
14555 # -berok will link without error, but may produce a broken library.
14556 no_undefined_flag=' $wl-bernotok'
14557 allow_undefined_flag=' $wl-berok'
14558 if test yes = "$with_gnu_ld"; then
14559 # We only use this code for GNU lds that support --whole-archive.
14560 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14561 else
14562 # Exported symbols can be pulled into shared objects from archives
14563 whole_archive_flag_spec='$convenience'
14564 fi
14565 archive_cmds_need_lc=yes
14566 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14567 # -brtl affects multiple linker settings, -berok does not and is overridden later
14568 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14569 if test svr4 != "$with_aix_soname"; then
14570 # This is similar to how AIX traditionally builds its shared libraries.
14571 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14572 fi
14573 if test aix != "$with_aix_soname"; then
14574 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14575 else
14576 # used by -dlpreopen to get the symbols
14577 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14578 fi
14579 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14580 fi
14581 fi
14582 ;;
14583
14584 amigaos*)
14585 case $host_cpu in
14586 powerpc)
14587 # see comment about AmigaOS4 .so support
14588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14589 archive_expsym_cmds=''
14590 ;;
14591 m68k)
14592 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)'
14593 hardcode_libdir_flag_spec='-L$libdir'
14594 hardcode_minus_L=yes
14595 ;;
14596 esac
14597 ;;
14598
14599 bsdi[45]*)
14600 export_dynamic_flag_spec=-rdynamic
14601 ;;
14602
14603 cygwin* | mingw* | windows* | pw32* | cegcc*)
14604 # When not using gcc, we currently assume that we are using
14605 # Microsoft Visual C++ or Intel C++ Compiler.
14606 # hardcode_libdir_flag_spec is actually meaningless, as there is
14607 # no search path for DLLs.
14608 case $cc_basename in
14609 cl* | icl*)
14610 # Native MSVC or ICC
14611 hardcode_libdir_flag_spec=' '
14612 allow_undefined_flag=unsupported
14613 always_export_symbols=yes
14614 file_list_spec='@'
14615 # Tell ltmain to make .lib files, not .a files.
14616 libext=lib
14617 # Tell ltmain to make .dll files, not .so files.
14618 shrext_cmds=.dll
14619 # FIXME: Setting linknames here is a bad hack.
14620 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14621 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14622 cp "$export_symbols" "$output_objdir/$soname.def";
14623 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14624 else
14625 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14626 fi~
14627 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14628 linknames='
14629 # The linker will not automatically build a static lib if we build a DLL.
14630 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14631 enable_shared_with_static_runtimes=yes
14632 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14634 # Don't use ranlib
14635 old_postinstall_cmds='chmod 644 $oldlib'
14636 postlink_cmds='lt_outputfile="@OUTPUT@"~
14637 lt_tool_outputfile="@TOOL_OUTPUT@"~
14638 case $lt_outputfile in
14639 *.exe|*.EXE) ;;
14640 *)
14641 lt_outputfile=$lt_outputfile.exe
14642 lt_tool_outputfile=$lt_tool_outputfile.exe
14643 ;;
14644 esac~
14645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14646 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14647 $RM "$lt_outputfile.manifest";
14648 fi'
14649 ;;
14650 *)
14651 # Assume MSVC and ICC wrapper
14652 hardcode_libdir_flag_spec=' '
14653 allow_undefined_flag=unsupported
14654 # Tell ltmain to make .lib files, not .a files.
14655 libext=lib
14656 # Tell ltmain to make .dll files, not .so files.
14657 shrext_cmds=.dll
14658 # FIXME: Setting linknames here is a bad hack.
14659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14660 # The linker will automatically build a .lib file if we build a DLL.
14661 old_archive_from_new_cmds='true'
14662 # FIXME: Should let the user specify the lib program.
14663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14664 enable_shared_with_static_runtimes=yes
14665 ;;
14666 esac
14667 ;;
14668
14669 darwin* | rhapsody*)
14670
14671
14672 archive_cmds_need_lc=no
14673 hardcode_direct=no
14674 hardcode_automatic=yes
14675 hardcode_shlibpath_var=unsupported
14676 if test yes = "$lt_cv_ld_force_load"; then
14677 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\"`'
14678
14679 else
14680 whole_archive_flag_spec=''
14681 fi
14682 link_all_deplibs=yes
14683 allow_undefined_flag=$_lt_dar_allow_undefined
14684 case $cc_basename in
14685 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14686 *) _lt_dar_can_shared=$GCC ;;
14687 esac
14688 if test yes = "$_lt_dar_can_shared"; then
14689 output_verbose_link_cmd=func_echo_all
14690 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14691 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14692 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"
14693 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"
14694
14695 else
14696 ld_shlibs=no
14697 fi
14698
14699 ;;
14700
14701 dgux*)
14702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703 hardcode_libdir_flag_spec='-L$libdir'
14704 hardcode_shlibpath_var=no
14705 ;;
14706
14707 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14708 # support. Future versions do this automatically, but an explicit c++rt0.o
14709 # does not break anything, and helps significantly (at the cost of a little
14710 # extra space).
14711 freebsd2.2*)
14712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14713 hardcode_libdir_flag_spec='-R$libdir'
14714 hardcode_direct=yes
14715 hardcode_shlibpath_var=no
14716 ;;
14717
14718 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14719 freebsd2.*)
14720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_direct=yes
14722 hardcode_minus_L=yes
14723 hardcode_shlibpath_var=no
14724 ;;
14725
14726 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14727 freebsd* | dragonfly* | midnightbsd*)
14728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14729 hardcode_libdir_flag_spec='-R$libdir'
14730 hardcode_direct=yes
14731 hardcode_shlibpath_var=no
14732 ;;
14733
14734 hpux9*)
14735 if test yes = "$GCC"; then
14736 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14737 else
14738 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14739 fi
14740 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14741 hardcode_libdir_separator=:
14742 hardcode_direct=yes
14743
14744 # hardcode_minus_L: Not really in the search PATH,
14745 # but as the default location of the library.
14746 hardcode_minus_L=yes
14747 export_dynamic_flag_spec='$wl-E'
14748 ;;
14749
14750 hpux10*)
14751 if test yes,no = "$GCC,$with_gnu_ld"; then
14752 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14753 else
14754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14755 fi
14756 if test no = "$with_gnu_ld"; then
14757 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14758 hardcode_libdir_separator=:
14759 hardcode_direct=yes
14760 hardcode_direct_absolute=yes
14761 export_dynamic_flag_spec='$wl-E'
14762 # hardcode_minus_L: Not really in the search PATH,
14763 # but as the default location of the library.
14764 hardcode_minus_L=yes
14765 fi
14766 ;;
14767
14768 hpux11*)
14769 if test yes,no = "$GCC,$with_gnu_ld"; then
14770 case $host_cpu in
14771 hppa*64*)
14772 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14773 ;;
14774 ia64*)
14775 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14776 ;;
14777 *)
14778 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14779 ;;
14780 esac
14781 else
14782 case $host_cpu in
14783 hppa*64*)
14784 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 ;;
14786 ia64*)
14787 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14788 ;;
14789 *)
14790
14791 # Older versions of the 11.00 compiler do not understand -b yet
14792 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14794 printf %s "checking if $CC understands -b... " >&6; }
14795 if test ${lt_cv_prog_compiler__b+y}
14796 then :
14797 printf %s "(cached) " >&6
14798 else case e in #(
14799 e) lt_cv_prog_compiler__b=no
14800 save_LDFLAGS=$LDFLAGS
14801 LDFLAGS="$LDFLAGS -b"
14802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804 # The linker can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
14806 if test -s conftest.err; then
14807 # Append any errors to the config.log.
14808 cat conftest.err 1>&5
14809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811 if diff conftest.exp conftest.er2 >/dev/null; then
14812 lt_cv_prog_compiler__b=yes
14813 fi
14814 else
14815 lt_cv_prog_compiler__b=yes
14816 fi
14817 fi
14818 $RM -r conftest*
14819 LDFLAGS=$save_LDFLAGS
14820 ;;
14821 esac
14822 fi
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14824 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14825
14826 if test yes = "$lt_cv_prog_compiler__b"; then
14827 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14828 else
14829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14830 fi
14831
14832 ;;
14833 esac
14834 fi
14835 if test no = "$with_gnu_ld"; then
14836 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14837 hardcode_libdir_separator=:
14838
14839 case $host_cpu in
14840 hppa*64*|ia64*)
14841 hardcode_direct=no
14842 hardcode_shlibpath_var=no
14843 ;;
14844 *)
14845 hardcode_direct=yes
14846 hardcode_direct_absolute=yes
14847 export_dynamic_flag_spec='$wl-E'
14848
14849 # hardcode_minus_L: Not really in the search PATH,
14850 # but as the default location of the library.
14851 hardcode_minus_L=yes
14852 ;;
14853 esac
14854 fi
14855 ;;
14856
14857 irix5* | irix6* | nonstopux*)
14858 if test yes = "$GCC"; then
14859 archive_cmds='$CC -shared $pic_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'
14860 # Try to use the -exported_symbol ld option, if it does not
14861 # work, assume that -exports_file does not work either and
14862 # implicitly export all symbols.
14863 # This should be the same for all languages, so no per-tag cache variable.
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14865 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14866 if test ${lt_cv_irix_exported_symbol+y}
14867 then :
14868 printf %s "(cached) " >&6
14869 else case e in #(
14870 e) save_LDFLAGS=$LDFLAGS
14871 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 int foo (void) { return 0; }
14875 _ACEOF
14876 if ac_fn_c_try_link "$LINENO"
14877 then :
14878 lt_cv_irix_exported_symbol=yes
14879 else case e in #(
14880 e) lt_cv_irix_exported_symbol=no ;;
14881 esac
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LDFLAGS=$save_LDFLAGS ;;
14886 esac
14887 fi
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14889 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14890 if test yes = "$lt_cv_irix_exported_symbol"; then
14891 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
14892 fi
14893 link_all_deplibs=no
14894 else
14895 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'
14896 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'
14897 fi
14898 archive_cmds_need_lc='no'
14899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14900 hardcode_libdir_separator=:
14901 inherit_rpath=yes
14902 link_all_deplibs=yes
14903 ;;
14904
14905 linux*)
14906 case $cc_basename in
14907 tcc*)
14908 # Fabrice Bellard et al's Tiny C Compiler
14909 ld_shlibs=yes
14910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14912 ;;
14913 esac
14914 ;;
14915
14916 *-mlibc)
14917 ;;
14918
14919 netbsd* | netbsdelf*-gnu)
14920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14922 else
14923 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14924 fi
14925 hardcode_libdir_flag_spec='-R$libdir'
14926 hardcode_direct=yes
14927 hardcode_shlibpath_var=no
14928 ;;
14929
14930 newsos6)
14931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_direct=yes
14933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14934 hardcode_libdir_separator=:
14935 hardcode_shlibpath_var=no
14936 ;;
14937
14938 *nto* | *qnx*)
14939 ;;
14940
14941 openbsd*)
14942 if test -f /usr/libexec/ld.so; then
14943 hardcode_direct=yes
14944 hardcode_shlibpath_var=no
14945 hardcode_direct_absolute=yes
14946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14949 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14950 export_dynamic_flag_spec='$wl-E'
14951 else
14952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14953 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14954 fi
14955 else
14956 ld_shlibs=no
14957 fi
14958 ;;
14959
14960 os2*)
14961 hardcode_libdir_flag_spec='-L$libdir'
14962 hardcode_minus_L=yes
14963 allow_undefined_flag=unsupported
14964 shrext_cmds=.dll
14965 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14968 $ECHO EXPORTS >> $output_objdir/$libname.def~
14969 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14971 emximp -o $lib $output_objdir/$libname.def'
14972 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14975 $ECHO EXPORTS >> $output_objdir/$libname.def~
14976 prefix_cmds="$SED"~
14977 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14978 prefix_cmds="$prefix_cmds -e 1d";
14979 fi~
14980 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14981 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14982 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14983 emximp -o $lib $output_objdir/$libname.def'
14984 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14985 enable_shared_with_static_runtimes=yes
14986 file_list_spec='@'
14987 ;;
14988
14989 osf3*)
14990 if test yes = "$GCC"; then
14991 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14992 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'
14993 else
14994 allow_undefined_flag=' -expect_unresolved \*'
14995 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'
14996 fi
14997 archive_cmds_need_lc='no'
14998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14999 hardcode_libdir_separator=:
15000 ;;
15001
15002 osf4* | osf5*) # as osf3* with the addition of -msym flag
15003 if test yes = "$GCC"; then
15004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15005 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
15006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15007 else
15008 allow_undefined_flag=' -expect_unresolved \*'
15009 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'
15010 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~
15011 $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'
15012
15013 # Both c and cxx compiler support -rpath directly
15014 hardcode_libdir_flag_spec='-rpath $libdir'
15015 fi
15016 archive_cmds_need_lc='no'
15017 hardcode_libdir_separator=:
15018 ;;
15019
15020 serenity*)
15021 ;;
15022
15023 solaris*)
15024 no_undefined_flag=' -z defs'
15025 if test yes = "$GCC"; then
15026 wlarc='$wl'
15027 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15029 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15030 else
15031 case `$CC -V 2>&1` in
15032 *"Compilers 5.0"*)
15033 wlarc=''
15034 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15036 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15037 ;;
15038 *)
15039 wlarc='$wl'
15040 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15042 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15043 ;;
15044 esac
15045 fi
15046 hardcode_libdir_flag_spec='-R$libdir'
15047 hardcode_shlibpath_var=no
15048 case $host_os in
15049 solaris2.[0-5] | solaris2.[0-5].*) ;;
15050 *)
15051 # The compiler driver will combine and reorder linker options,
15052 # but understands '-z linker_flag'. GCC discards it without '$wl',
15053 # but is careful enough not to reorder.
15054 # Supported since Solaris 2.6 (maybe 2.5.1?)
15055 if test yes = "$GCC"; then
15056 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15057 else
15058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15059 fi
15060 ;;
15061 esac
15062 link_all_deplibs=yes
15063 ;;
15064
15065 sunos4*)
15066 if test sequent = "$host_vendor"; then
15067 # Use $CC to link under sequent, because it throws in some extra .o
15068 # files that make .init and .fini sections work.
15069 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15070 else
15071 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15072 fi
15073 hardcode_libdir_flag_spec='-L$libdir'
15074 hardcode_direct=yes
15075 hardcode_minus_L=yes
15076 hardcode_shlibpath_var=no
15077 ;;
15078
15079 sysv4)
15080 case $host_vendor in
15081 sni)
15082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_direct=yes # is this really true???
15084 ;;
15085 siemens)
15086 ## LD is ld it makes a PLAMLIB
15087 ## CC just makes a GrossModule.
15088 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15089 reload_cmds='$CC -r -o $output$reload_objs'
15090 hardcode_direct=no
15091 ;;
15092 motorola)
15093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15095 ;;
15096 esac
15097 runpath_var='LD_RUN_PATH'
15098 hardcode_shlibpath_var=no
15099 ;;
15100
15101 sysv4.3*)
15102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_shlibpath_var=no
15104 export_dynamic_flag_spec='-Bexport'
15105 ;;
15106
15107 sysv4*MP*)
15108 if test -d /usr/nec; then
15109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15110 hardcode_shlibpath_var=no
15111 runpath_var=LD_RUN_PATH
15112 hardcode_runpath_var=yes
15113 ld_shlibs=yes
15114 fi
15115 ;;
15116
15117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15118 no_undefined_flag='$wl-z,text'
15119 archive_cmds_need_lc=no
15120 hardcode_shlibpath_var=no
15121 runpath_var='LD_RUN_PATH'
15122
15123 if test yes = "$GCC"; then
15124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 else
15127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 fi
15130 ;;
15131
15132 sysv5* | sco3.2v5* | sco5v6*)
15133 # Note: We CANNOT use -z defs as we might desire, because we do not
15134 # link with -lc, and that would cause any symbols used from libc to
15135 # always be unresolved, which means just about no library would
15136 # ever link correctly. If we're not using GNU ld we use -z text
15137 # though, which does catch some bad symbols but isn't as heavy-handed
15138 # as -z defs.
15139 no_undefined_flag='$wl-z,text'
15140 allow_undefined_flag='$wl-z,nodefs'
15141 archive_cmds_need_lc=no
15142 hardcode_shlibpath_var=no
15143 hardcode_libdir_flag_spec='$wl-R,$libdir'
15144 hardcode_libdir_separator=':'
15145 link_all_deplibs=yes
15146 export_dynamic_flag_spec='$wl-Bexport'
15147 runpath_var='LD_RUN_PATH'
15148
15149 if test yes = "$GCC"; then
15150 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 else
15153 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 fi
15156 ;;
15157
15158 uts4*)
15159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15160 hardcode_libdir_flag_spec='-L$libdir'
15161 hardcode_shlibpath_var=no
15162 ;;
15163
15164 *)
15165 ld_shlibs=no
15166 ;;
15167 esac
15168
15169 if test sni = "$host_vendor"; then
15170 case $host in
15171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15172 export_dynamic_flag_spec='$wl-Blargedynsym'
15173 ;;
15174 esac
15175 fi
15176 fi
15177
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15179 printf "%s\n" "$ld_shlibs" >&6; }
15180 test no = "$ld_shlibs" && can_build_shared=no
15181
15182 with_gnu_ld=$with_gnu_ld
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198 #
15199 # Do we need to explicitly link libc?
15200 #
15201 case "x$archive_cmds_need_lc" in
15202 x|xyes)
15203 # Assume -lc should be added
15204 archive_cmds_need_lc=yes
15205
15206 if test yes,yes = "$GCC,$enable_shared"; then
15207 case $archive_cmds in
15208 *'~'*)
15209 # FIXME: we may have to deal with multi-command sequences.
15210 ;;
15211 '$CC '*)
15212 # Test whether the compiler implicitly links with -lc since on some
15213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15214 # to ld, don't add -lc before -lgcc.
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15216 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15217 if test ${lt_cv_archive_cmds_need_lc+y}
15218 then :
15219 printf %s "(cached) " >&6
15220 else case e in #(
15221 e) $RM conftest*
15222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15223
15224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15225 (eval $ac_compile) 2>&5
15226 ac_status=$?
15227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228 test $ac_status = 0; } 2>conftest.err; then
15229 soname=conftest
15230 lib=conftest
15231 libobjs=conftest.$ac_objext
15232 deplibs=
15233 wl=$lt_prog_compiler_wl
15234 pic_flag=$lt_prog_compiler_pic
15235 compiler_flags=-v
15236 linker_flags=-v
15237 verstring=
15238 output_objdir=.
15239 libname=conftest
15240 lt_save_allow_undefined_flag=$allow_undefined_flag
15241 allow_undefined_flag=
15242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15243 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15244 ac_status=$?
15245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15246 test $ac_status = 0; }
15247 then
15248 lt_cv_archive_cmds_need_lc=no
15249 else
15250 lt_cv_archive_cmds_need_lc=yes
15251 fi
15252 allow_undefined_flag=$lt_save_allow_undefined_flag
15253 else
15254 cat conftest.err 1>&5
15255 fi
15256 $RM conftest*
15257 ;;
15258 esac
15259 fi
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15261 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15262 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15263 ;;
15264 esac
15265 fi
15266 ;;
15267 esac
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15421 printf %s "checking dynamic linker characteristics... " >&6; }
15422
15423 if test yes = "$GCC"; then
15424 case $host_os in
15425 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15426 *) lt_awk_arg='/^libraries:/' ;;
15427 esac
15428 case $host_os in
15429 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15430 *) lt_sed_strip_eq='s|=/|/|g' ;;
15431 esac
15432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15433 case $lt_search_path_spec in
15434 *\;*)
15435 # if the path contains ";" then we assume it to be the separator
15436 # otherwise default to the standard path separator (i.e. ":") - it is
15437 # assumed that no part of a normal pathname contains ";" but that should
15438 # okay in the real world where ";" in dirpaths is itself problematic.
15439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15440 ;;
15441 *)
15442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15443 ;;
15444 esac
15445 # Ok, now we have the path, separated by spaces, we can step through it
15446 # and add multilib dir if necessary...
15447 lt_tmp_lt_search_path_spec=
15448 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15449 # ...but if some path component already ends with the multilib dir we assume
15450 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15451 case "$lt_multi_os_dir; $lt_search_path_spec " in
15452 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15453 lt_multi_os_dir=
15454 ;;
15455 esac
15456 for lt_sys_path in $lt_search_path_spec; do
15457 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15459 elif test -n "$lt_multi_os_dir"; then
15460 test -d "$lt_sys_path" && \
15461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15462 fi
15463 done
15464 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15465 BEGIN {RS = " "; FS = "/|\n";} {
15466 lt_foo = "";
15467 lt_count = 0;
15468 for (lt_i = NF; lt_i > 0; lt_i--) {
15469 if ($lt_i != "" && $lt_i != ".") {
15470 if ($lt_i == "..") {
15471 lt_count++;
15472 } else {
15473 if (lt_count == 0) {
15474 lt_foo = "/" $lt_i lt_foo;
15475 } else {
15476 lt_count--;
15477 }
15478 }
15479 }
15480 }
15481 if (lt_foo != "") { lt_freq[lt_foo]++; }
15482 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15483 }'`
15484 # AWK program above erroneously prepends '/' to C:/dos/paths
15485 # for these hosts.
15486 case $host_os in
15487 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15488 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15489 esac
15490 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15491 else
15492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15493 fi
15494 library_names_spec=
15495 libname_spec='lib$name'
15496 soname_spec=
15497 shrext_cmds=.so
15498 postinstall_cmds=
15499 postuninstall_cmds=
15500 finish_cmds=
15501 finish_eval=
15502 shlibpath_var=
15503 shlibpath_overrides_runpath=unknown
15504 version_type=none
15505 dynamic_linker="$host_os ld.so"
15506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15507 need_lib_prefix=unknown
15508 hardcode_into_libs=no
15509
15510 # when you set need_version to no, make sure it does not cause -set_version
15511 # flags to be left without arguments
15512 need_version=unknown
15513
15514
15515
15516 case $host_os in
15517 aix3*)
15518 version_type=linux # correct to gnu/linux during the next big refactor
15519 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15520 shlibpath_var=LIBPATH
15521
15522 # AIX 3 has no versioning support, so we append a major version to the name.
15523 soname_spec='$libname$release$shared_ext$major'
15524 ;;
15525
15526 aix[4-9]*)
15527 version_type=linux # correct to gnu/linux during the next big refactor
15528 need_lib_prefix=no
15529 need_version=no
15530 hardcode_into_libs=yes
15531 if test ia64 = "$host_cpu"; then
15532 # AIX 5 supports IA64
15533 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 else
15536 # With GCC up to 2.95.x, collect2 would create an import file
15537 # for dependence libraries. The import file would start with
15538 # the line '#! .'. This would cause the generated library to
15539 # depend on '.', always an invalid library. This was fixed in
15540 # development snapshots of GCC prior to 3.0.
15541 case $host_os in
15542 aix4 | aix4.[01] | aix4.[01].*)
15543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15544 echo ' yes '
15545 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15546 :
15547 else
15548 can_build_shared=no
15549 fi
15550 ;;
15551 esac
15552 # Using Import Files as archive members, it is possible to support
15553 # filename-based versioning of shared library archives on AIX. While
15554 # this would work for both with and without runtime linking, it will
15555 # prevent static linking of such archives. So we do filename-based
15556 # shared library versioning with .so extension only, which is used
15557 # when both runtime linking and shared linking is enabled.
15558 # Unfortunately, runtime linking may impact performance, so we do
15559 # not want this to be the default eventually. Also, we use the
15560 # versioned .so libs for executables only if there is the -brtl
15561 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
15562 # To allow for filename-based versioning support, we need to create
15563 # libNAME.so.V as an archive file, containing:
15564 # *) an Import File, referring to the versioned filename of the
15565 # archive as well as the shared archive member, telling the
15566 # bitwidth (32 or 64) of that shared object, and providing the
15567 # list of exported symbols of that shared object, eventually
15568 # decorated with the 'weak' keyword
15569 # *) the shared object with the F_LOADONLY flag set, to really avoid
15570 # it being seen by the linker.
15571 # At run time we better use the real file rather than another symlink,
15572 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15573
15574 case $with_aix_soname,$aix_use_runtimelinking in
15575 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15576 # soname into executable. Probably we can add versioning support to
15577 # collect2, so additional links can be useful in future.
15578 aix,yes) # traditional libtool
15579 dynamic_linker='AIX unversionable lib.so'
15580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15581 # instead of lib<name>.a to let people know that these are not
15582 # typical AIX shared libraries.
15583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15584 ;;
15585 aix,no) # traditional AIX only
15586 dynamic_linker='AIX lib.a(lib.so.V)'
15587 # We preserve .a as extension for shared libraries through AIX4.2
15588 # and later when we are not doing run time linking.
15589 library_names_spec='$libname$release.a $libname.a'
15590 soname_spec='$libname$release$shared_ext$major'
15591 ;;
15592 svr4,*) # full svr4 only
15593 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15594 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15595 # We do not specify a path in Import Files, so LIBPATH fires.
15596 shlibpath_overrides_runpath=yes
15597 ;;
15598 *,yes) # both, prefer svr4
15599 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15600 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15601 # unpreferred sharedlib libNAME.a needs extra handling
15602 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15603 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15604 # We do not specify a path in Import Files, so LIBPATH fires.
15605 shlibpath_overrides_runpath=yes
15606 ;;
15607 *,no) # both, prefer aix
15608 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15609 library_names_spec='$libname$release.a $libname.a'
15610 soname_spec='$libname$release$shared_ext$major'
15611 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15612 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15613 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15614 ;;
15615 esac
15616 shlibpath_var=LIBPATH
15617 fi
15618 ;;
15619
15620 amigaos*)
15621 case $host_cpu in
15622 powerpc)
15623 # Since July 2007 AmigaOS4 officially supports .so libraries.
15624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15626 ;;
15627 m68k)
15628 library_names_spec='$libname.ixlibrary $libname.a'
15629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15630 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15631 ;;
15632 esac
15633 ;;
15634
15635 beos*)
15636 library_names_spec='$libname$shared_ext'
15637 dynamic_linker="$host_os ld.so"
15638 shlibpath_var=LIBRARY_PATH
15639 ;;
15640
15641 bsdi[45]*)
15642 version_type=linux # correct to gnu/linux during the next big refactor
15643 need_version=no
15644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15645 soname_spec='$libname$release$shared_ext$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15650 # the default ld.so.conf also contains /usr/contrib/lib and
15651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652 # libtool to hard-code these into programs
15653 ;;
15654
15655 cygwin* | mingw* | windows* | pw32* | cegcc*)
15656 version_type=windows
15657 shrext_cmds=.dll
15658 need_version=no
15659 need_lib_prefix=no
15660
15661 case $GCC,$cc_basename in
15662 yes,*)
15663 # gcc
15664 library_names_spec='$libname.dll.a'
15665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15666 # If user builds GCC with multilib enabled,
15667 # it should just install on $(libdir)
15668 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
15669 if test xyes = x"$multilib"; then
15670 postinstall_cmds='base_file=`basename \$file`~
15671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15672 dldir=$destdir/`dirname \$dlpath`~
15673 $install_prog $dir/$dlname $destdir/$dlname~
15674 chmod a+x $destdir/$dlname~
15675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15676 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
15677 fi'
15678 else
15679 postinstall_cmds='base_file=`basename \$file`~
15680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15681 dldir=$destdir/`dirname \$dlpath`~
15682 test -d \$dldir || mkdir -p \$dldir~
15683 $install_prog $dir/$dlname \$dldir/$dlname~
15684 chmod a+x \$dldir/$dlname~
15685 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15686 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15687 fi'
15688 fi
15689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15690 dlpath=$dir/\$dldll~
15691 $RM \$dlpath'
15692 shlibpath_overrides_runpath=yes
15693
15694 case $host_os in
15695 cygwin*)
15696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15697 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15698
15699 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15700 ;;
15701 mingw* | windows* | cegcc*)
15702 # MinGW DLLs use traditional 'lib' prefix
15703 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15704 ;;
15705 pw32*)
15706 # pw32 DLLs use 'pw' prefix rather than 'lib'
15707 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15708 ;;
15709 esac
15710 dynamic_linker='Win32 ld.exe'
15711 ;;
15712
15713 *,cl* | *,icl*)
15714 # Native MSVC or ICC
15715 libname_spec='$name'
15716 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15717 library_names_spec='$libname.dll.lib'
15718
15719 case $build_os in
15720 mingw* | windows*)
15721 sys_lib_search_path_spec=
15722 lt_save_ifs=$IFS
15723 IFS=';'
15724 for lt_path in $LIB
15725 do
15726 IFS=$lt_save_ifs
15727 # Let DOS variable expansion print the short 8.3 style file name.
15728 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15729 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15730 done
15731 IFS=$lt_save_ifs
15732 # Convert to MSYS style.
15733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15734 ;;
15735 cygwin*)
15736 # Convert to unix form, then to dos form, then back to unix form
15737 # but this time dos style (no spaces!) so that the unix form looks
15738 # like /cygdrive/c/PROGRA~1:/cygdr...
15739 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15740 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15741 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15742 ;;
15743 *)
15744 sys_lib_search_path_spec=$LIB
15745 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15746 # It is most probably a Windows format PATH.
15747 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15748 else
15749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15750 fi
15751 # FIXME: find the short name or the path components, as spaces are
15752 # common. (e.g. "Program Files" -> "PROGRA~1")
15753 ;;
15754 esac
15755
15756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15757 postinstall_cmds='base_file=`basename \$file`~
15758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15759 dldir=$destdir/`dirname \$dlpath`~
15760 test -d \$dldir || mkdir -p \$dldir~
15761 $install_prog $dir/$dlname \$dldir/$dlname'
15762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15763 dlpath=$dir/\$dldll~
15764 $RM \$dlpath'
15765 shlibpath_overrides_runpath=yes
15766 dynamic_linker='Win32 link.exe'
15767 ;;
15768
15769 *)
15770 # Assume MSVC and ICC wrapper
15771 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15772 dynamic_linker='Win32 ld.exe'
15773 ;;
15774 esac
15775 # FIXME: first we should search . and the directory the executable is in
15776 shlibpath_var=PATH
15777 ;;
15778
15779 darwin* | rhapsody*)
15780 dynamic_linker="$host_os dyld"
15781 version_type=darwin
15782 need_lib_prefix=no
15783 need_version=no
15784 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15785 soname_spec='$libname$release$major$shared_ext'
15786 shlibpath_overrides_runpath=yes
15787 shlibpath_var=DYLD_LIBRARY_PATH
15788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15789
15790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15792 ;;
15793
15794 dgux*)
15795 version_type=linux # correct to gnu/linux during the next big refactor
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15799 soname_spec='$libname$release$shared_ext$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 ;;
15802
15803 freebsd* | dragonfly* | midnightbsd*)
15804 # DragonFly does not have aout. When/if they implement a new
15805 # versioning mechanism, adjust this.
15806 if test -x /usr/bin/objformat; then
15807 objformat=`/usr/bin/objformat`
15808 else
15809 case $host_os in
15810 freebsd[23].*) objformat=aout ;;
15811 *) objformat=elf ;;
15812 esac
15813 fi
15814 version_type=freebsd-$objformat
15815 case $version_type in
15816 freebsd-elf*)
15817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15818 soname_spec='$libname$release$shared_ext$major'
15819 need_version=no
15820 need_lib_prefix=no
15821 ;;
15822 freebsd-*)
15823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15824 need_version=yes
15825 ;;
15826 esac
15827 case $host_cpu in
15828 powerpc64)
15829 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
15830 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 int test_pointer_size[sizeof (void *) - 5];
15834
15835 _ACEOF
15836 if ac_fn_c_try_compile "$LINENO"
15837 then :
15838 shlibpath_var=LD_LIBRARY_PATH
15839 else case e in #(
15840 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
15841 esac
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15844 ;;
15845 *)
15846 shlibpath_var=LD_LIBRARY_PATH
15847 ;;
15848 esac
15849 case $host_os in
15850 freebsd2.*)
15851 shlibpath_overrides_runpath=yes
15852 ;;
15853 freebsd3.[01]* | freebsdelf3.[01]*)
15854 shlibpath_overrides_runpath=yes
15855 hardcode_into_libs=yes
15856 ;;
15857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15859 shlibpath_overrides_runpath=no
15860 hardcode_into_libs=yes
15861 ;;
15862 *) # from 4.6 on, and DragonFly
15863 shlibpath_overrides_runpath=yes
15864 hardcode_into_libs=yes
15865 ;;
15866 esac
15867 ;;
15868
15869 haiku*)
15870 version_type=linux # correct to gnu/linux during the next big refactor
15871 need_lib_prefix=no
15872 need_version=no
15873 dynamic_linker="$host_os runtime_loader"
15874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15875 soname_spec='$libname$release$shared_ext$major'
15876 shlibpath_var=LIBRARY_PATH
15877 shlibpath_overrides_runpath=no
15878 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
15879 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
15880 hardcode_into_libs=no
15881 ;;
15882
15883 hpux9* | hpux10* | hpux11*)
15884 # Give a soname corresponding to the major version so that dld.sl refuses to
15885 # link against other versions.
15886 version_type=sunos
15887 need_lib_prefix=no
15888 need_version=no
15889 case $host_cpu in
15890 ia64*)
15891 shrext_cmds='.so'
15892 hardcode_into_libs=yes
15893 dynamic_linker="$host_os dld.so"
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15897 soname_spec='$libname$release$shared_ext$major'
15898 if test 32 = "$HPUX_IA64_MODE"; then
15899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15900 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15901 else
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15904 fi
15905 ;;
15906 hppa*64*)
15907 shrext_cmds='.sl'
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15913 soname_spec='$libname$release$shared_ext$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916 ;;
15917 *)
15918 shrext_cmds='.sl'
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15923 soname_spec='$libname$release$shared_ext$major'
15924 ;;
15925 esac
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15927 postinstall_cmds='chmod 555 $lib'
15928 # or fails outright, so override atomically:
15929 install_override_mode=555
15930 ;;
15931
15932 interix[3-9]*)
15933 version_type=linux # correct to gnu/linux during the next big refactor
15934 need_lib_prefix=no
15935 need_version=no
15936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15937 soname_spec='$libname$release$shared_ext$major'
15938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 hardcode_into_libs=yes
15942 ;;
15943
15944 irix5* | irix6* | nonstopux*)
15945 case $host_os in
15946 nonstopux*) version_type=nonstopux ;;
15947 *)
15948 if test yes = "$lt_cv_prog_gnu_ld"; then
15949 version_type=linux # correct to gnu/linux during the next big refactor
15950 else
15951 version_type=irix
15952 fi ;;
15953 esac
15954 need_lib_prefix=no
15955 need_version=no
15956 soname_spec='$libname$release$shared_ext$major'
15957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15958 case $host_os in
15959 irix5* | nonstopux*)
15960 libsuff= shlibsuff=
15961 ;;
15962 *)
15963 case $LD in # libtool.m4 will add one of these switches to LD
15964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15965 libsuff= shlibsuff= libmagic=32-bit;;
15966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15967 libsuff=32 shlibsuff=N32 libmagic=N32;;
15968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15970 *) libsuff= shlibsuff= libmagic=never-match;;
15971 esac
15972 ;;
15973 esac
15974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15975 shlibpath_overrides_runpath=no
15976 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15977 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15978 hardcode_into_libs=yes
15979 ;;
15980
15981 # No shared lib support for Linux oldld, aout, or coff.
15982 linux*oldld* | linux*aout* | linux*coff*)
15983 dynamic_linker=no
15984 ;;
15985
15986 linux*android*)
15987 version_type=none # Android doesn't support versioned libraries.
15988 need_lib_prefix=no
15989 need_version=no
15990 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
15991 soname_spec='$libname$release$shared_ext'
15992 finish_cmds=
15993 shlibpath_var=LD_LIBRARY_PATH
15994 shlibpath_overrides_runpath=yes
15995
15996 # This implies no fast_install, which is unacceptable.
15997 # Some rework will be needed to allow for fast_install
15998 # before this can be enabled.
15999 hardcode_into_libs=yes
16000
16001 dynamic_linker='Android linker'
16002 # -rpath works at least for libraries that are not overridden by
16003 # libraries installed in system locations.
16004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16005 ;;
16006
16007 # This must be glibc/ELF.
16008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16009 version_type=linux # correct to gnu/linux during the next big refactor
16010 need_lib_prefix=no
16011 need_version=no
16012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16013 soname_spec='$libname$release$shared_ext$major'
16014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=no
16017
16018 # Some binutils ld are patched to set DT_RUNPATH
16019 if test ${lt_cv_shlibpath_overrides_runpath+y}
16020 then :
16021 printf %s "(cached) " >&6
16022 else case e in #(
16023 e) lt_cv_shlibpath_overrides_runpath=no
16024 save_LDFLAGS=$LDFLAGS
16025 save_libdir=$libdir
16026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030
16031 int
16032 main (void)
16033 {
16034
16035 ;
16036 return 0;
16037 }
16038 _ACEOF
16039 if ac_fn_c_try_link "$LINENO"
16040 then :
16041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16042 then :
16043 lt_cv_shlibpath_overrides_runpath=yes
16044 fi
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16047 conftest$ac_exeext conftest.$ac_ext
16048 LDFLAGS=$save_LDFLAGS
16049 libdir=$save_libdir
16050 ;;
16051 esac
16052 fi
16053
16054 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16055
16056 # This implies no fast_install, which is unacceptable.
16057 # Some rework will be needed to allow for fast_install
16058 # before this can be enabled.
16059 hardcode_into_libs=yes
16060
16061 # Ideally, we could use ldconfig to report *all* directories which are
16062 # searched for libraries, however this is still not possible. Aside from not
16063 # being certain /sbin/ldconfig is available, command
16064 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16065 # even though it is searched at run-time. Try to do the best guess by
16066 # appending ld.so.conf contents (and includes) to the search path.
16067 if test -f /etc/ld.so.conf; then
16068 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' ' '`
16069 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16070 fi
16071
16072 # We used to test for /lib/ld.so.1 and disable shared libraries on
16073 # powerpc, because MkLinux only supported shared libraries with the
16074 # GNU dynamic linker. Since this was broken with cross compilers,
16075 # most powerpc-linux boxes support dynamic linking these days and
16076 # people can always --disable-shared, the test was removed, and we
16077 # assume the GNU/Linux dynamic linker is in use.
16078 dynamic_linker='GNU/Linux ld.so'
16079 ;;
16080
16081 netbsdelf*-gnu)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16086 soname_spec='$libname$release$shared_ext$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=no
16089 hardcode_into_libs=yes
16090 dynamic_linker='NetBSD ld.elf_so'
16091 ;;
16092
16093 netbsdelf*-gnu)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=no
16101 hardcode_into_libs=yes
16102 dynamic_linker='NetBSD ld.elf_so'
16103 ;;
16104
16105 netbsd*)
16106 version_type=sunos
16107 need_lib_prefix=no
16108 need_version=no
16109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16110 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16112 dynamic_linker='NetBSD (a.out) ld.so'
16113 else
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115 soname_spec='$libname$release$shared_ext$major'
16116 dynamic_linker='NetBSD ld.elf_so'
16117 fi
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=yes
16120 hardcode_into_libs=yes
16121 ;;
16122
16123 *-mlibc)
16124 version_type=linux # correct to gnu/linux during the next big refactor
16125 need_lib_prefix=no
16126 need_version=no
16127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16128 soname_spec='$libname$release$shared_ext$major'
16129 dynamic_linker='mlibc ld.so'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=no
16132 hardcode_into_libs=yes
16133 ;;
16134
16135 newsos6)
16136 version_type=linux # correct to gnu/linux during the next big refactor
16137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 shlibpath_overrides_runpath=yes
16140 ;;
16141
16142 *nto* | *qnx*)
16143 version_type=qnx
16144 need_lib_prefix=no
16145 need_version=no
16146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16147 soname_spec='$libname$release$shared_ext$major'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=no
16150 hardcode_into_libs=yes
16151 dynamic_linker='ldqnx.so'
16152 ;;
16153
16154 openbsd*)
16155 version_type=sunos
16156 sys_lib_dlsearch_path_spec=/usr/lib
16157 need_lib_prefix=no
16158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16159 need_version=no
16160 else
16161 need_version=yes
16162 fi
16163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 shlibpath_overrides_runpath=yes
16167 ;;
16168
16169 os2*)
16170 libname_spec='$name'
16171 version_type=windows
16172 shrext_cmds=.dll
16173 need_version=no
16174 need_lib_prefix=no
16175 # OS/2 can only load a DLL with a base name of 8 characters or less.
16176 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16177 v=$($ECHO $release$versuffix | tr -d .-);
16178 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16179 $ECHO $n$v`$shared_ext'
16180 library_names_spec='${libname}_dll.$libext'
16181 dynamic_linker='OS/2 ld.exe'
16182 shlibpath_var=BEGINLIBPATH
16183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16185 postinstall_cmds='base_file=`basename \$file`~
16186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16187 dldir=$destdir/`dirname \$dlpath`~
16188 test -d \$dldir || mkdir -p \$dldir~
16189 $install_prog $dir/$dlname \$dldir/$dlname~
16190 chmod a+x \$dldir/$dlname~
16191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16193 fi'
16194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16195 dlpath=$dir/\$dldll~
16196 $RM \$dlpath'
16197 ;;
16198
16199 osf3* | osf4* | osf5*)
16200 version_type=osf
16201 need_lib_prefix=no
16202 need_version=no
16203 soname_spec='$libname$release$shared_ext$major'
16204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208 ;;
16209
16210 rdos*)
16211 dynamic_linker=no
16212 ;;
16213
16214 serenity*)
16215 version_type=linux # correct to gnu/linux during the next big refactor
16216 need_lib_prefix=no
16217 need_version=no
16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16219 soname_spec='$libname$release$shared_ext$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=no
16222 dynamic_linker='SerenityOS LibELF'
16223 ;;
16224
16225 solaris*)
16226 version_type=linux # correct to gnu/linux during the next big refactor
16227 need_lib_prefix=no
16228 need_version=no
16229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16230 soname_spec='$libname$release$shared_ext$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 shlibpath_overrides_runpath=yes
16233 hardcode_into_libs=yes
16234 # ldd complains unless libraries are executable
16235 postinstall_cmds='chmod +x $lib'
16236 ;;
16237
16238 sunos4*)
16239 version_type=sunos
16240 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16241 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 shlibpath_overrides_runpath=yes
16244 if test yes = "$with_gnu_ld"; then
16245 need_lib_prefix=no
16246 fi
16247 need_version=yes
16248 ;;
16249
16250 sysv4 | sysv4.3*)
16251 version_type=linux # correct to gnu/linux during the next big refactor
16252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16253 soname_spec='$libname$release$shared_ext$major'
16254 shlibpath_var=LD_LIBRARY_PATH
16255 case $host_vendor in
16256 sni)
16257 shlibpath_overrides_runpath=no
16258 need_lib_prefix=no
16259 runpath_var=LD_RUN_PATH
16260 ;;
16261 siemens)
16262 need_lib_prefix=no
16263 ;;
16264 motorola)
16265 need_lib_prefix=no
16266 need_version=no
16267 shlibpath_overrides_runpath=no
16268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16269 ;;
16270 esac
16271 ;;
16272
16273 sysv4*MP*)
16274 if test -d /usr/nec; then
16275 version_type=linux # correct to gnu/linux during the next big refactor
16276 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16277 soname_spec='$libname$shared_ext.$major'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 fi
16280 ;;
16281
16282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16283 version_type=sco
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16287 soname_spec='$libname$release$shared_ext$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=yes
16290 hardcode_into_libs=yes
16291 if test yes = "$with_gnu_ld"; then
16292 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16293 else
16294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16295 case $host_os in
16296 sco3.2v5*)
16297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16298 ;;
16299 esac
16300 fi
16301 sys_lib_dlsearch_path_spec='/usr/lib'
16302 ;;
16303
16304 tpf*)
16305 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16306 version_type=linux # correct to gnu/linux during the next big refactor
16307 need_lib_prefix=no
16308 need_version=no
16309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16310 shlibpath_var=LD_LIBRARY_PATH
16311 shlibpath_overrides_runpath=no
16312 hardcode_into_libs=yes
16313 ;;
16314
16315 uts4*)
16316 version_type=linux # correct to gnu/linux during the next big refactor
16317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16318 soname_spec='$libname$release$shared_ext$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 ;;
16321
16322 emscripten*)
16323 version_type=none
16324 need_lib_prefix=no
16325 need_version=no
16326 library_names_spec='$libname$release$shared_ext'
16327 soname_spec='$libname$release$shared_ext'
16328 finish_cmds=
16329 dynamic_linker="Emscripten linker"
16330 lt_prog_compiler_wl=
16331 lt_prog_compiler_pic=
16332 lt_prog_compiler_static=
16333
16334
16335 if test yes = "$GCC"; then
16336 lt_prog_compiler_wl='-Wl,'
16337 lt_prog_compiler_static='-static'
16338
16339 case $host_os in
16340 aix*)
16341 # All AIX code is PIC.
16342 if test ia64 = "$host_cpu"; then
16343 # AIX 5 now supports IA64 processor
16344 lt_prog_compiler_static='-Bstatic'
16345 fi
16346 lt_prog_compiler_pic='-fPIC'
16347 ;;
16348
16349 amigaos*)
16350 case $host_cpu in
16351 powerpc)
16352 # see comment about AmigaOS4 .so support
16353 lt_prog_compiler_pic='-fPIC'
16354 ;;
16355 m68k)
16356 # FIXME: we need at least 68020 code to build shared libraries, but
16357 # adding the '-m68020' flag to GCC prevents building anything better,
16358 # like '-m68040'.
16359 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16360 ;;
16361 esac
16362 ;;
16363
16364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16365 # PIC is the default for these OSes.
16366 ;;
16367
16368 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16369 # This hack is so that the source file can tell whether it is being
16370 # built for inclusion in a dll (and should export symbols for example).
16371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16372 # (--disable-auto-import) libraries
16373 lt_prog_compiler_pic='-DDLL_EXPORT'
16374 case $host_os in
16375 os2*)
16376 lt_prog_compiler_static='$wl-static'
16377 ;;
16378 esac
16379 ;;
16380
16381 darwin* | rhapsody*)
16382 # PIC is the default on this platform
16383 # Common symbols not allowed in MH_DYLIB files
16384 lt_prog_compiler_pic='-fno-common'
16385 ;;
16386
16387 haiku*)
16388 # PIC is the default for Haiku.
16389 # The "-static" flag exists, but is broken.
16390 lt_prog_compiler_static=
16391 ;;
16392
16393 hpux*)
16394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16396 # sets the default TLS model and affects inlining.
16397 case $host_cpu in
16398 hppa*64*)
16399 # +Z the default
16400 ;;
16401 *)
16402 lt_prog_compiler_pic='-fPIC'
16403 ;;
16404 esac
16405 ;;
16406
16407 interix[3-9]*)
16408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16409 # Instead, we relocate shared libraries at runtime.
16410 ;;
16411
16412 msdosdjgpp*)
16413 # Just because we use GCC doesn't mean we suddenly get shared libraries
16414 # on systems that don't support them.
16415 lt_prog_compiler_can_build_shared=no
16416 enable_shared=no
16417 ;;
16418
16419 *nto* | *qnx*)
16420 # QNX uses GNU C++, but need to define -shared option too, otherwise
16421 # it will coredump.
16422 lt_prog_compiler_pic='-fPIC -shared'
16423 ;;
16424
16425 sysv4*MP*)
16426 if test -d /usr/nec; then
16427 lt_prog_compiler_pic=-Kconform_pic
16428 fi
16429 ;;
16430
16431 *)
16432 lt_prog_compiler_pic='-fPIC'
16433 ;;
16434 esac
16435
16436 case $cc_basename in
16437 nvcc*) # Cuda Compiler Driver 2.2
16438 lt_prog_compiler_wl='-Xlinker '
16439 if test -n "$lt_prog_compiler_pic"; then
16440 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16441 fi
16442 ;;
16443 esac
16444 else
16445 # PORTME Check for flag to pass linker flags through the system compiler.
16446 case $host_os in
16447 aix*)
16448 lt_prog_compiler_wl='-Wl,'
16449 if test ia64 = "$host_cpu"; then
16450 # AIX 5 now supports IA64 processor
16451 lt_prog_compiler_static='-Bstatic'
16452 else
16453 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16454 fi
16455 ;;
16456
16457 darwin* | rhapsody*)
16458 # PIC is the default on this platform
16459 # Common symbols not allowed in MH_DYLIB files
16460 lt_prog_compiler_pic='-fno-common'
16461 case $cc_basename in
16462 nagfor*)
16463 # NAG Fortran compiler
16464 lt_prog_compiler_wl='-Wl,-Wl,,'
16465 lt_prog_compiler_pic='-PIC'
16466 lt_prog_compiler_static='-Bstatic'
16467 ;;
16468 esac
16469 ;;
16470
16471 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16472 # This hack is so that the source file can tell whether it is being
16473 # built for inclusion in a dll (and should export symbols for example).
16474 lt_prog_compiler_pic='-DDLL_EXPORT'
16475 case $host_os in
16476 os2*)
16477 lt_prog_compiler_static='$wl-static'
16478 ;;
16479 esac
16480 ;;
16481
16482 hpux9* | hpux10* | hpux11*)
16483 lt_prog_compiler_wl='-Wl,'
16484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16485 # not for PA HP-UX.
16486 case $host_cpu in
16487 hppa*64*|ia64*)
16488 # +Z the default
16489 ;;
16490 *)
16491 lt_prog_compiler_pic='+Z'
16492 ;;
16493 esac
16494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16495 lt_prog_compiler_static='$wl-a ${wl}archive'
16496 ;;
16497
16498 irix5* | irix6* | nonstopux*)
16499 lt_prog_compiler_wl='-Wl,'
16500 # PIC (with -KPIC) is the default.
16501 lt_prog_compiler_static='-non_shared'
16502 ;;
16503
16504 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16505 case $cc_basename in
16506 # old Intel for x86_64, which still supported -KPIC.
16507 ecc*)
16508 lt_prog_compiler_wl='-Wl,'
16509 lt_prog_compiler_pic='-KPIC'
16510 lt_prog_compiler_static='-static'
16511 ;;
16512 *flang* | ftn | f18* | f95*)
16513 # Flang compiler.
16514 lt_prog_compiler_wl='-Wl,'
16515 lt_prog_compiler_pic='-fPIC'
16516 lt_prog_compiler_static='-static'
16517 ;;
16518 # flang / f18. f95 an alias for gfortran or flang on Debian
16519 flang* | f18* | f95*)
16520 lt_prog_compiler_wl='-Wl,'
16521 lt_prog_compiler_pic='-fPIC'
16522 lt_prog_compiler_static='-static'
16523 ;;
16524 # icc used to be incompatible with GCC.
16525 # ICC 10 doesn't accept -KPIC any more.
16526 icc* | ifort*)
16527 lt_prog_compiler_wl='-Wl,'
16528 lt_prog_compiler_pic='-fPIC'
16529 lt_prog_compiler_static='-static'
16530 ;;
16531 # Lahey Fortran 8.1.
16532 lf95*)
16533 lt_prog_compiler_wl='-Wl,'
16534 lt_prog_compiler_pic='--shared'
16535 lt_prog_compiler_static='--static'
16536 ;;
16537 nagfor*)
16538 # NAG Fortran compiler
16539 lt_prog_compiler_wl='-Wl,-Wl,,'
16540 lt_prog_compiler_pic='-PIC'
16541 lt_prog_compiler_static='-Bstatic'
16542 ;;
16543 tcc*)
16544 # Fabrice Bellard et al's Tiny C Compiler
16545 lt_prog_compiler_wl='-Wl,'
16546 lt_prog_compiler_pic='-fPIC'
16547 lt_prog_compiler_static='-static'
16548 ;;
16549 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16550 # Portland Group compilers (*not* the Pentium gcc compiler,
16551 # which looks to be a dead project)
16552 lt_prog_compiler_wl='-Wl,'
16553 lt_prog_compiler_pic='-fpic'
16554 lt_prog_compiler_static='-Bstatic'
16555 ;;
16556 ccc*)
16557 lt_prog_compiler_wl='-Wl,'
16558 # All Alpha code is PIC.
16559 lt_prog_compiler_static='-non_shared'
16560 ;;
16561 xl* | bgxl* | bgf* | mpixl*)
16562 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16563 lt_prog_compiler_wl='-Wl,'
16564 lt_prog_compiler_pic='-qpic'
16565 lt_prog_compiler_static='-qstaticlink'
16566 ;;
16567 *)
16568 case `$CC -V 2>&1 | $SED 5q` in
16569 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16571 lt_prog_compiler_pic='-KPIC'
16572 lt_prog_compiler_static='-Bstatic'
16573 lt_prog_compiler_wl=''
16574 ;;
16575 *Sun\ F* | *Sun*Fortran*)
16576 lt_prog_compiler_pic='-KPIC'
16577 lt_prog_compiler_static='-Bstatic'
16578 lt_prog_compiler_wl='-Qoption ld '
16579 ;;
16580 *Sun\ C*)
16581 # Sun C 5.9
16582 lt_prog_compiler_pic='-KPIC'
16583 lt_prog_compiler_static='-Bstatic'
16584 lt_prog_compiler_wl='-Wl,'
16585 ;;
16586 *Intel*\ [CF]*Compiler*)
16587 lt_prog_compiler_wl='-Wl,'
16588 lt_prog_compiler_pic='-fPIC'
16589 lt_prog_compiler_static='-static'
16590 ;;
16591 *Portland\ Group*)
16592 lt_prog_compiler_wl='-Wl,'
16593 lt_prog_compiler_pic='-fpic'
16594 lt_prog_compiler_static='-Bstatic'
16595 ;;
16596 esac
16597 ;;
16598 esac
16599 ;;
16600
16601 newsos6)
16602 lt_prog_compiler_pic='-KPIC'
16603 lt_prog_compiler_static='-Bstatic'
16604 ;;
16605
16606 *-mlibc)
16607 lt_prog_compiler_wl='-Wl,'
16608 lt_prog_compiler_pic='-fPIC'
16609 lt_prog_compiler_static='-static'
16610 ;;
16611
16612 *nto* | *qnx*)
16613 # QNX uses GNU C++, but need to define -shared option too, otherwise
16614 # it will coredump.
16615 lt_prog_compiler_pic='-fPIC -shared'
16616 ;;
16617
16618 osf3* | osf4* | osf5*)
16619 lt_prog_compiler_wl='-Wl,'
16620 # All OSF/1 code is PIC.
16621 lt_prog_compiler_static='-non_shared'
16622 ;;
16623
16624 rdos*)
16625 lt_prog_compiler_static='-non_shared'
16626 ;;
16627
16628 serenity*)
16629 ;;
16630
16631 solaris*)
16632 lt_prog_compiler_pic='-KPIC'
16633 lt_prog_compiler_static='-Bstatic'
16634 case $cc_basename in
16635 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16636 lt_prog_compiler_wl='-Qoption ld ';;
16637 *)
16638 lt_prog_compiler_wl='-Wl,';;
16639 esac
16640 ;;
16641
16642 sunos4*)
16643 lt_prog_compiler_wl='-Qoption ld '
16644 lt_prog_compiler_pic='-PIC'
16645 lt_prog_compiler_static='-Bstatic'
16646 ;;
16647
16648 sysv4 | sysv4.2uw2* | sysv4.3*)
16649 lt_prog_compiler_wl='-Wl,'
16650 lt_prog_compiler_pic='-KPIC'
16651 lt_prog_compiler_static='-Bstatic'
16652 ;;
16653
16654 sysv4*MP*)
16655 if test -d /usr/nec; then
16656 lt_prog_compiler_pic='-Kconform_pic'
16657 lt_prog_compiler_static='-Bstatic'
16658 fi
16659 ;;
16660
16661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16662 lt_prog_compiler_wl='-Wl,'
16663 lt_prog_compiler_pic='-KPIC'
16664 lt_prog_compiler_static='-Bstatic'
16665 ;;
16666
16667 unicos*)
16668 lt_prog_compiler_wl='-Wl,'
16669 lt_prog_compiler_can_build_shared=no
16670 ;;
16671
16672 uts4*)
16673 lt_prog_compiler_pic='-pic'
16674 lt_prog_compiler_static='-Bstatic'
16675 ;;
16676
16677 *)
16678 lt_prog_compiler_can_build_shared=no
16679 ;;
16680 esac
16681 fi
16682
16683 case $host_os in
16684 # For platforms that do not support PIC, -DPIC is meaningless:
16685 *djgpp*)
16686 lt_prog_compiler_pic=
16687 ;;
16688 *)
16689 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16690 ;;
16691 esac
16692
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16694 printf %s "checking for $compiler option to produce PIC... " >&6; }
16695 if test ${lt_cv_prog_compiler_pic+y}
16696 then :
16697 printf %s "(cached) " >&6
16698 else case e in #(
16699 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16700 esac
16701 fi
16702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16703 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16704 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16705
16706 #
16707 # Check to make sure the PIC flag actually works.
16708 #
16709 if test -n "$lt_prog_compiler_pic"; then
16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16711 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16712 if test ${lt_cv_prog_compiler_pic_works+y}
16713 then :
16714 printf %s "(cached) " >&6
16715 else case e in #(
16716 e) lt_cv_prog_compiler_pic_works=no
16717 ac_outfile=conftest.$ac_objext
16718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
16720 # Insert the option either (1) after the last *FLAGS variable, or
16721 # (2) before a word containing "conftest.", or (3) at the end.
16722 # Note that $ac_compile itself does not contain backslashes and begins
16723 # with a dollar sign (not a hyphen), so the echo should work correctly.
16724 # The option is referenced via a variable to avoid confusing sed.
16725 lt_compile=`echo "$ac_compile" | $SED \
16726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728 -e 's:$: $lt_compiler_flag:'`
16729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16730 (eval "$lt_compile" 2>conftest.err)
16731 ac_status=$?
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 if (exit $ac_status) && test -s "$ac_outfile"; then
16735 # The compiler can only warn and ignore the option if not recognized
16736 # So say no if there are warnings other than the usual output.
16737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16740 lt_cv_prog_compiler_pic_works=yes
16741 fi
16742 fi
16743 $RM conftest*
16744 ;;
16745 esac
16746 fi
16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16748 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16749
16750 if test yes = "$lt_cv_prog_compiler_pic_works"; then
16751 case $lt_prog_compiler_pic in
16752 "" | " "*) ;;
16753 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16754 esac
16755 else
16756 lt_prog_compiler_pic=
16757 lt_prog_compiler_can_build_shared=no
16758 fi
16759
16760 fi
16761
16762
16763
16764
16765
16766 #
16767 # Check to make sure the static flag actually works.
16768 #
16769 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16771 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16772 if test ${lt_cv_prog_compiler_static_works+y}
16773 then :
16774 printf %s "(cached) " >&6
16775 else case e in #(
16776 e) lt_cv_prog_compiler_static_works=no
16777 save_LDFLAGS=$LDFLAGS
16778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16781 # The linker can only warn and ignore the option if not recognized
16782 # So say no if there are warnings
16783 if test -s conftest.err; then
16784 # Append any errors to the config.log.
16785 cat conftest.err 1>&5
16786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16788 if diff conftest.exp conftest.er2 >/dev/null; then
16789 lt_cv_prog_compiler_static_works=yes
16790 fi
16791 else
16792 lt_cv_prog_compiler_static_works=yes
16793 fi
16794 fi
16795 $RM -r conftest*
16796 LDFLAGS=$save_LDFLAGS
16797 ;;
16798 esac
16799 fi
16800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16801 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16802
16803 if test yes = "$lt_cv_prog_compiler_static_works"; then
16804 :
16805 else
16806 lt_prog_compiler_static=
16807 fi
16808
16809
16810
16811 ='-fPIC'
16812 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
16813 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
16814 archive_cmds_need_lc=no
16815 no_undefined_flag=
16816 ;;
16817
16818 *)
16819 dynamic_linker=no
16820 ;;
16821 esac
16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16823 printf "%s\n" "$dynamic_linker" >&6; }
16824 test no = "$dynamic_linker" && can_build_shared=no
16825
16826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16827 if test yes = "$GCC"; then
16828 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16829 fi
16830
16831 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16832 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16833 fi
16834
16835 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16836 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16837 fi
16838
16839 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16840 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16841
16842 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16843 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16844
16845 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16846 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16945 printf %s "checking how to hardcode library paths into programs... " >&6; }
16946 hardcode_action=
16947 if test -n "$hardcode_libdir_flag_spec" ||
16948 test -n "$runpath_var" ||
16949 test yes = "$hardcode_automatic"; then
16950
16951 # We can hardcode non-existent directories.
16952 if test no != "$hardcode_direct" &&
16953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16954 # have to relink, otherwise we might link with an installed library
16955 # when we should be linking with a yet-to-be-installed one
16956 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16957 test no != "$hardcode_minus_L"; then
16958 # Linking always hardcodes the temporary library directory.
16959 hardcode_action=relink
16960 else
16961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16962 hardcode_action=immediate
16963 fi
16964 else
16965 # We cannot hardcode anything, or else we can only hardcode existing
16966 # directories.
16967 hardcode_action=unsupported
16968 fi
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16970 printf "%s\n" "$hardcode_action" >&6; }
16971
16972 if test relink = "$hardcode_action" ||
16973 test yes = "$inherit_rpath"; then
16974 # Fast installation is not supported
16975 enable_fast_install=no
16976 elif test yes = "$shlibpath_overrides_runpath" ||
16977 test no = "$enable_shared"; then
16978 # Fast installation is not necessary
16979 enable_fast_install=needless
16980 fi
16981
16982
16983
16984
16985
16986
16987 if test yes != "$enable_dlopen"; then
16988 enable_dlopen=unknown
16989 enable_dlopen_self=unknown
16990 enable_dlopen_self_static=unknown
16991 else
16992 lt_cv_dlopen=no
16993 lt_cv_dlopen_libs=
16994
16995 case $host_os in
16996 beos*)
16997 lt_cv_dlopen=load_add_on
16998 lt_cv_dlopen_libs=
16999 lt_cv_dlopen_self=yes
17000 ;;
17001
17002 mingw* | windows* | pw32* | cegcc*)
17003 lt_cv_dlopen=LoadLibrary
17004 lt_cv_dlopen_libs=
17005 ;;
17006
17007 cygwin*)
17008 lt_cv_dlopen=dlopen
17009 lt_cv_dlopen_libs=
17010 ;;
17011
17012 darwin*)
17013 # if libdl is installed we need to link against it
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17015 printf %s "checking for dlopen in -ldl... " >&6; }
17016 if test ${ac_cv_lib_dl_dlopen+y}
17017 then :
17018 printf %s "(cached) " >&6
17019 else case e in #(
17020 e) ac_check_lib_save_LIBS=$LIBS
17021 LIBS="-ldl $LIBS"
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply.
17028 The 'extern "C"' is for builds by C++ compilers;
17029 although this is not generally supported in C code supporting it here
17030 has little cost and some practical benefit (sr 110532). */
17031 #ifdef __cplusplus
17032 extern "C"
17033 #endif
17034 char dlopen (void);
17035 int
17036 main (void)
17037 {
17038 return dlopen ();
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 if ac_fn_c_try_link "$LINENO"
17044 then :
17045 ac_cv_lib_dl_dlopen=yes
17046 else case e in #(
17047 e) ac_cv_lib_dl_dlopen=no ;;
17048 esac
17049 fi
17050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17051 conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS ;;
17053 esac
17054 fi
17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17056 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17057 if test "x$ac_cv_lib_dl_dlopen" = xyes
17058 then :
17059 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17060 else case e in #(
17061 e)
17062 lt_cv_dlopen=dyld
17063 lt_cv_dlopen_libs=
17064 lt_cv_dlopen_self=yes
17065 ;;
17066 esac
17067 fi
17068
17069 ;;
17070
17071 tpf*)
17072 # Don't try to run any link tests for TPF. We know it's impossible
17073 # because TPF is a cross-compiler, and we know how we open DSOs.
17074 lt_cv_dlopen=dlopen
17075 lt_cv_dlopen_libs=
17076 lt_cv_dlopen_self=no
17077 ;;
17078
17079 *)
17080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17081 if test "x$ac_cv_func_shl_load" = xyes
17082 then :
17083 lt_cv_dlopen=shl_load
17084 else case e in #(
17085 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17086 printf %s "checking for shl_load in -ldld... " >&6; }
17087 if test ${ac_cv_lib_dld_shl_load+y}
17088 then :
17089 printf %s "(cached) " >&6
17090 else case e in #(
17091 e) ac_check_lib_save_LIBS=$LIBS
17092 LIBS="-ldld $LIBS"
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095
17096 /* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply.
17099 The 'extern "C"' is for builds by C++ compilers;
17100 although this is not generally supported in C code supporting it here
17101 has little cost and some practical benefit (sr 110532). */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char shl_load (void);
17106 int
17107 main (void)
17108 {
17109 return shl_load ();
17110 ;
17111 return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"
17115 then :
17116 ac_cv_lib_dld_shl_load=yes
17117 else case e in #(
17118 e) ac_cv_lib_dld_shl_load=no ;;
17119 esac
17120 fi
17121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LIBS=$ac_check_lib_save_LIBS ;;
17124 esac
17125 fi
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17127 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
17128 if test "x$ac_cv_lib_dld_shl_load" = xyes
17129 then :
17130 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17131 else case e in #(
17132 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17133 if test "x$ac_cv_func_dlopen" = xyes
17134 then :
17135 lt_cv_dlopen=dlopen
17136 else case e in #(
17137 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17138 printf %s "checking for dlopen in -ldl... " >&6; }
17139 if test ${ac_cv_lib_dl_dlopen+y}
17140 then :
17141 printf %s "(cached) " >&6
17142 else case e in #(
17143 e) ac_check_lib_save_LIBS=$LIBS
17144 LIBS="-ldl $LIBS"
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply.
17151 The 'extern "C"' is for builds by C++ compilers;
17152 although this is not generally supported in C code supporting it here
17153 has little cost and some practical benefit (sr 110532). */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char dlopen (void);
17158 int
17159 main (void)
17160 {
17161 return dlopen ();
17162 ;
17163 return 0;
17164 }
17165 _ACEOF
17166 if ac_fn_c_try_link "$LINENO"
17167 then :
17168 ac_cv_lib_dl_dlopen=yes
17169 else case e in #(
17170 e) ac_cv_lib_dl_dlopen=no ;;
17171 esac
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17174 conftest$ac_exeext conftest.$ac_ext
17175 LIBS=$ac_check_lib_save_LIBS ;;
17176 esac
17177 fi
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17179 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17180 if test "x$ac_cv_lib_dl_dlopen" = xyes
17181 then :
17182 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17183 else case e in #(
17184 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17185 printf %s "checking for dlopen in -lsvld... " >&6; }
17186 if test ${ac_cv_lib_svld_dlopen+y}
17187 then :
17188 printf %s "(cached) " >&6
17189 else case e in #(
17190 e) ac_check_lib_save_LIBS=$LIBS
17191 LIBS="-lsvld $LIBS"
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194
17195 /* Override any GCC internal prototype to avoid an error.
17196 Use char because int might match the return type of a GCC
17197 builtin and then its argument prototype would still apply.
17198 The 'extern "C"' is for builds by C++ compilers;
17199 although this is not generally supported in C code supporting it here
17200 has little cost and some practical benefit (sr 110532). */
17201 #ifdef __cplusplus
17202 extern "C"
17203 #endif
17204 char dlopen (void);
17205 int
17206 main (void)
17207 {
17208 return dlopen ();
17209 ;
17210 return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_link "$LINENO"
17214 then :
17215 ac_cv_lib_svld_dlopen=yes
17216 else case e in #(
17217 e) ac_cv_lib_svld_dlopen=no ;;
17218 esac
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS ;;
17223 esac
17224 fi
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17226 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17227 if test "x$ac_cv_lib_svld_dlopen" = xyes
17228 then :
17229 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17230 else case e in #(
17231 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17232 printf %s "checking for dld_link in -ldld... " >&6; }
17233 if test ${ac_cv_lib_dld_dld_link+y}
17234 then :
17235 printf %s "(cached) " >&6
17236 else case e in #(
17237 e) ac_check_lib_save_LIBS=$LIBS
17238 LIBS="-ldld $LIBS"
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply.
17245 The 'extern "C"' is for builds by C++ compilers;
17246 although this is not generally supported in C code supporting it here
17247 has little cost and some practical benefit (sr 110532). */
17248 #ifdef __cplusplus
17249 extern "C"
17250 #endif
17251 char dld_link (void);
17252 int
17253 main (void)
17254 {
17255 return dld_link ();
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"
17261 then :
17262 ac_cv_lib_dld_dld_link=yes
17263 else case e in #(
17264 e) ac_cv_lib_dld_dld_link=no ;;
17265 esac
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17268 conftest$ac_exeext conftest.$ac_ext
17269 LIBS=$ac_check_lib_save_LIBS ;;
17270 esac
17271 fi
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17273 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17274 if test "x$ac_cv_lib_dld_dld_link" = xyes
17275 then :
17276 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17277 fi
17278
17279 ;;
17280 esac
17281 fi
17282
17283 ;;
17284 esac
17285 fi
17286
17287 ;;
17288 esac
17289 fi
17290
17291 ;;
17292 esac
17293 fi
17294
17295 ;;
17296 esac
17297 fi
17298
17299 ;;
17300 esac
17301
17302 if test no = "$lt_cv_dlopen"; then
17303 enable_dlopen=no
17304 else
17305 enable_dlopen=yes
17306 fi
17307
17308 case $lt_cv_dlopen in
17309 dlopen)
17310 save_CPPFLAGS=$CPPFLAGS
17311 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17312
17313 save_LDFLAGS=$LDFLAGS
17314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17315
17316 save_LIBS=$LIBS
17317 LIBS="$lt_cv_dlopen_libs $LIBS"
17318
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17320 printf %s "checking whether a program can dlopen itself... " >&6; }
17321 if test ${lt_cv_dlopen_self+y}
17322 then :
17323 printf %s "(cached) " >&6
17324 else case e in #(
17325 e) if test yes = "$cross_compiling"; then :
17326 lt_cv_dlopen_self=cross
17327 else
17328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17329 lt_status=$lt_dlunknown
17330 cat > conftest.$ac_ext <<_LT_EOF
17331 #line $LINENO "configure"
17332 #include "confdefs.h"
17333
17334 #if HAVE_DLFCN_H
17335 #include <dlfcn.h>
17336 #endif
17337
17338 #include <stdio.h>
17339
17340 #ifdef RTLD_GLOBAL
17341 # define LT_DLGLOBAL RTLD_GLOBAL
17342 #else
17343 # ifdef DL_GLOBAL
17344 # define LT_DLGLOBAL DL_GLOBAL
17345 # else
17346 # define LT_DLGLOBAL 0
17347 # endif
17348 #endif
17349
17350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17351 find out it does not work in some platform. */
17352 #ifndef LT_DLLAZY_OR_NOW
17353 # ifdef RTLD_LAZY
17354 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17355 # else
17356 # ifdef DL_LAZY
17357 # define LT_DLLAZY_OR_NOW DL_LAZY
17358 # else
17359 # ifdef RTLD_NOW
17360 # define LT_DLLAZY_OR_NOW RTLD_NOW
17361 # else
17362 # ifdef DL_NOW
17363 # define LT_DLLAZY_OR_NOW DL_NOW
17364 # else
17365 # define LT_DLLAZY_OR_NOW 0
17366 # endif
17367 # endif
17368 # endif
17369 # endif
17370 #endif
17371
17372 /* When -fvisibility=hidden is used, assume the code has been annotated
17373 correspondingly for the symbols needed. */
17374 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17375 int fnord (void) __attribute__((visibility("default")));
17376 #endif
17377
17378 int fnord (void) { return 42; }
17379 int main (void)
17380 {
17381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382 int status = $lt_dlunknown;
17383
17384 if (self)
17385 {
17386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17387 else
17388 {
17389 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17390 else puts (dlerror ());
17391 }
17392 /* dlclose (self); */
17393 }
17394 else
17395 puts (dlerror ());
17396
17397 return status;
17398 }
17399 _LT_EOF
17400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17401 (eval $ac_link) 2>&5
17402 ac_status=$?
17403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17404 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17405 (./conftest; exit; ) >&5 2>/dev/null
17406 lt_status=$?
17407 case x$lt_status in
17408 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17409 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17410 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17411 esac
17412 else :
17413 # compilation failed
17414 lt_cv_dlopen_self=no
17415 fi
17416 fi
17417 rm -fr conftest*
17418
17419 ;;
17420 esac
17421 fi
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17423 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17424
17425 if test yes = "$lt_cv_dlopen_self"; then
17426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17428 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17429 if test ${lt_cv_dlopen_self_static+y}
17430 then :
17431 printf %s "(cached) " >&6
17432 else case e in #(
17433 e) if test yes = "$cross_compiling"; then :
17434 lt_cv_dlopen_self_static=cross
17435 else
17436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17437 lt_status=$lt_dlunknown
17438 cat > conftest.$ac_ext <<_LT_EOF
17439 #line $LINENO "configure"
17440 #include "confdefs.h"
17441
17442 #if HAVE_DLFCN_H
17443 #include <dlfcn.h>
17444 #endif
17445
17446 #include <stdio.h>
17447
17448 #ifdef RTLD_GLOBAL
17449 # define LT_DLGLOBAL RTLD_GLOBAL
17450 #else
17451 # ifdef DL_GLOBAL
17452 # define LT_DLGLOBAL DL_GLOBAL
17453 # else
17454 # define LT_DLGLOBAL 0
17455 # endif
17456 #endif
17457
17458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17459 find out it does not work in some platform. */
17460 #ifndef LT_DLLAZY_OR_NOW
17461 # ifdef RTLD_LAZY
17462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17463 # else
17464 # ifdef DL_LAZY
17465 # define LT_DLLAZY_OR_NOW DL_LAZY
17466 # else
17467 # ifdef RTLD_NOW
17468 # define LT_DLLAZY_OR_NOW RTLD_NOW
17469 # else
17470 # ifdef DL_NOW
17471 # define LT_DLLAZY_OR_NOW DL_NOW
17472 # else
17473 # define LT_DLLAZY_OR_NOW 0
17474 # endif
17475 # endif
17476 # endif
17477 # endif
17478 #endif
17479
17480 /* When -fvisibility=hidden is used, assume the code has been annotated
17481 correspondingly for the symbols needed. */
17482 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17483 int fnord (void) __attribute__((visibility("default")));
17484 #endif
17485
17486 int fnord (void) { return 42; }
17487 int main (void)
17488 {
17489 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17490 int status = $lt_dlunknown;
17491
17492 if (self)
17493 {
17494 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17495 else
17496 {
17497 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17498 else puts (dlerror ());
17499 }
17500 /* dlclose (self); */
17501 }
17502 else
17503 puts (dlerror ());
17504
17505 return status;
17506 }
17507 _LT_EOF
17508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17509 (eval $ac_link) 2>&5
17510 ac_status=$?
17511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17512 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17513 (./conftest; exit; ) >&5 2>/dev/null
17514 lt_status=$?
17515 case x$lt_status in
17516 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17517 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17518 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17519 esac
17520 else :
17521 # compilation failed
17522 lt_cv_dlopen_self_static=no
17523 fi
17524 fi
17525 rm -fr conftest*
17526
17527 ;;
17528 esac
17529 fi
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17531 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17532 fi
17533
17534 CPPFLAGS=$save_CPPFLAGS
17535 LDFLAGS=$save_LDFLAGS
17536 LIBS=$save_LIBS
17537 ;;
17538 esac
17539
17540 case $lt_cv_dlopen_self in
17541 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17542 *) enable_dlopen_self=unknown ;;
17543 esac
17544
17545 case $lt_cv_dlopen_self_static in
17546 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17547 *) enable_dlopen_self_static=unknown ;;
17548 esac
17549 fi
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567 striplib=
17568 old_striplib=
17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17570 printf %s "checking whether stripping libraries is possible... " >&6; }
17571 if test -z "$STRIP"; then
17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17573 printf "%s\n" "no" >&6; }
17574 else
17575 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17576 old_striplib="$STRIP --strip-debug"
17577 striplib="$STRIP --strip-unneeded"
17578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17579 printf "%s\n" "yes" >&6; }
17580 else
17581 case $host_os in
17582 darwin*)
17583 # FIXME - insert some real tests, host_os isn't really good enough
17584 striplib="$STRIP -x"
17585 old_striplib="$STRIP -S"
17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17587 printf "%s\n" "yes" >&6; }
17588 ;;
17589 freebsd*)
17590 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17591 old_striplib="$STRIP --strip-debug"
17592 striplib="$STRIP --strip-unneeded"
17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17594 printf "%s\n" "yes" >&6; }
17595 else
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17597 printf "%s\n" "no" >&6; }
17598 fi
17599 ;;
17600 *)
17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 printf "%s\n" "no" >&6; }
17603 ;;
17604 esac
17605 fi
17606 fi
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619 # Report what library types will actually be built
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17621 printf %s "checking if libtool supports shared libraries... " >&6; }
17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17623 printf "%s\n" "$can_build_shared" >&6; }
17624
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17626 printf %s "checking whether to build shared libraries... " >&6; }
17627 test no = "$can_build_shared" && enable_shared=no
17628
17629 # On AIX, shared libraries and static libraries use the same namespace, and
17630 # are all built from PIC.
17631 case $host_os in
17632 aix3*)
17633 test yes = "$enable_shared" && enable_static=no
17634 if test -n "$RANLIB"; then
17635 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17636 postinstall_cmds='$RANLIB $lib'
17637 fi
17638 ;;
17639
17640 aix[4-9]*)
17641 if test ia64 != "$host_cpu"; then
17642 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17643 yes,aix,yes) ;; # shared object as lib.so file only
17644 yes,svr4,*) ;; # shared object as lib.so archive member only
17645 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17646 esac
17647 fi
17648 ;;
17649 esac
17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17651 printf "%s\n" "$enable_shared" >&6; }
17652
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17654 printf %s "checking whether to build static libraries... " >&6; }
17655 # Make sure either enable_shared or enable_static is yes.
17656 test yes = "$enable_shared" || enable_static=yes
17657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17658 printf "%s\n" "$enable_static" >&6; }
17659
17660
17661
17662
17663 fi
17664 ac_ext=c
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670 CC=$lt_save_CC
17671
17672 if test -n "$CXX" && ( test no != "$CXX" &&
17673 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
17674 (test g++ != "$CXX"))); then
17675 ac_ext=cpp
17676 ac_cpp='$CXXCPP $CPPFLAGS'
17677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17681 printf %s "checking how to run the C++ preprocessor... " >&6; }
17682 if test -z "$CXXCPP"; then
17683 if test ${ac_cv_prog_CXXCPP+y}
17684 then :
17685 printf %s "(cached) " >&6
17686 else case e in #(
17687 e) # Double quotes because $CXX needs to be expanded
17688 for CXXCPP in "$CXX -E" cpp /lib/cpp
17689 do
17690 ac_preproc_ok=false
17691 for ac_cxx_preproc_warn_flag in '' yes
17692 do
17693 # Use a header file that comes with gcc, so configuring glibc
17694 # with a fresh cross-compiler works.
17695 # On the NeXT, cc -E runs the code through the compiler's parser,
17696 # not just through cpp. "Syntax error" is here to catch this case.
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17699 #include <limits.h>
17700 Syntax error
17701 _ACEOF
17702 if ac_fn_cxx_try_cpp "$LINENO"
17703 then :
17704
17705 else case e in #(
17706 e) # Broken: fails on valid input.
17707 continue ;;
17708 esac
17709 fi
17710 rm -f conftest.err conftest.i conftest.$ac_ext
17711
17712 # OK, works on sane cases. Now check whether nonexistent headers
17713 # can be detected and how.
17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715 /* end confdefs.h. */
17716 #include <ac_nonexistent.h>
17717 _ACEOF
17718 if ac_fn_cxx_try_cpp "$LINENO"
17719 then :
17720 # Broken: success on invalid input.
17721 continue
17722 else case e in #(
17723 e) # Passes both tests.
17724 ac_preproc_ok=:
17725 break ;;
17726 esac
17727 fi
17728 rm -f conftest.err conftest.i conftest.$ac_ext
17729
17730 done
17731 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17732 rm -f conftest.i conftest.err conftest.$ac_ext
17733 if $ac_preproc_ok
17734 then :
17735 break
17736 fi
17737
17738 done
17739 ac_cv_prog_CXXCPP=$CXXCPP
17740 ;;
17741 esac
17742 fi
17743 CXXCPP=$ac_cv_prog_CXXCPP
17744 else
17745 ac_cv_prog_CXXCPP=$CXXCPP
17746 fi
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17748 printf "%s\n" "$CXXCPP" >&6; }
17749 ac_preproc_ok=false
17750 for ac_cxx_preproc_warn_flag in '' yes
17751 do
17752 # Use a header file that comes with gcc, so configuring glibc
17753 # with a fresh cross-compiler works.
17754 # On the NeXT, cc -E runs the code through the compiler's parser,
17755 # not just through cpp. "Syntax error" is here to catch this case.
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758 #include <limits.h>
17759 Syntax error
17760 _ACEOF
17761 if ac_fn_cxx_try_cpp "$LINENO"
17762 then :
17763
17764 else case e in #(
17765 e) # Broken: fails on valid input.
17766 continue ;;
17767 esac
17768 fi
17769 rm -f conftest.err conftest.i conftest.$ac_ext
17770
17771 # OK, works on sane cases. Now check whether nonexistent headers
17772 # can be detected and how.
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775 #include <ac_nonexistent.h>
17776 _ACEOF
17777 if ac_fn_cxx_try_cpp "$LINENO"
17778 then :
17779 # Broken: success on invalid input.
17780 continue
17781 else case e in #(
17782 e) # Passes both tests.
17783 ac_preproc_ok=:
17784 break ;;
17785 esac
17786 fi
17787 rm -f conftest.err conftest.i conftest.$ac_ext
17788
17789 done
17790 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17791 rm -f conftest.i conftest.err conftest.$ac_ext
17792 if $ac_preproc_ok
17793 then :
17794
17795 else case e in #(
17796 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17797 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17798 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17799 See 'config.log' for more details" "$LINENO" 5; } ;;
17800 esac
17801 fi
17802
17803 ac_ext=c
17804 ac_cpp='$CPP $CPPFLAGS'
17805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17808
17809 else
17810 _lt_caught_CXX_error=yes
17811 fi
17812
17813 ac_ext=cpp
17814 ac_cpp='$CXXCPP $CPPFLAGS'
17815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17818
17819 archive_cmds_need_lc_CXX=no
17820 allow_undefined_flag_CXX=
17821 always_export_symbols_CXX=no
17822 archive_expsym_cmds_CXX=
17823 compiler_needs_object_CXX=no
17824 export_dynamic_flag_spec_CXX=
17825 hardcode_direct_CXX=no
17826 hardcode_direct_absolute_CXX=no
17827 hardcode_libdir_flag_spec_CXX=
17828 hardcode_libdir_separator_CXX=
17829 hardcode_minus_L_CXX=no
17830 hardcode_shlibpath_var_CXX=unsupported
17831 hardcode_automatic_CXX=no
17832 inherit_rpath_CXX=no
17833 module_cmds_CXX=
17834 module_expsym_cmds_CXX=
17835 link_all_deplibs_CXX=unknown
17836 old_archive_cmds_CXX=$old_archive_cmds
17837 reload_flag_CXX=$reload_flag
17838 reload_cmds_CXX=$reload_cmds
17839 no_undefined_flag_CXX=
17840 whole_archive_flag_spec_CXX=
17841 enable_shared_with_static_runtimes_CXX=no
17842
17843 # Source file extension for C++ test sources.
17844 ac_ext=cpp
17845
17846 # Object file extension for compiled C++ test sources.
17847 objext=o
17848 objext_CXX=$objext
17849
17850 # No sense in running all these tests if we already determined that
17851 # the CXX compiler isn't working. Some variables (like enable_shared)
17852 # are currently assumed to apply to all compilers on this platform,
17853 # and will be corrupted by setting them based on a non-working compiler.
17854 if test yes != "$_lt_caught_CXX_error"; then
17855 # Code to be used in simple compile tests
17856 lt_simple_compile_test_code="int some_variable = 0;"
17857
17858 # Code to be used in simple link tests
17859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17860
17861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17862
17863
17864
17865
17866
17867
17868 # If no C compiler was specified, use CC.
17869 LTCC=${LTCC-"$CC"}
17870
17871 # If no C compiler flags were specified, use CFLAGS.
17872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17873
17874 # Allow CC to be a program name with arguments.
17875 compiler=$CC
17876
17877
17878 # save warnings/boilerplate of simple test code
17879 ac_outfile=conftest.$ac_objext
17880 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17882 _lt_compiler_boilerplate=`cat conftest.err`
17883 $RM conftest*
17884
17885 ac_outfile=conftest.$ac_objext
17886 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17888 _lt_linker_boilerplate=`cat conftest.err`
17889 $RM -r conftest*
17890
17891
17892 # Allow CC to be a program name with arguments.
17893 lt_save_CC=$CC
17894 lt_save_CFLAGS=$CFLAGS
17895 lt_save_LD=$LD
17896 lt_save_GCC=$GCC
17897 GCC=$GXX
17898 lt_save_with_gnu_ld=$with_gnu_ld
17899 lt_save_path_LD=$lt_cv_path_LD
17900 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17901 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17902 else
17903 $as_unset lt_cv_prog_gnu_ld
17904 fi
17905 if test -n "${lt_cv_path_LDCXX+set}"; then
17906 lt_cv_path_LD=$lt_cv_path_LDCXX
17907 else
17908 $as_unset lt_cv_path_LD
17909 fi
17910 test -z "${LDCXX+set}" || LD=$LDCXX
17911 CC=${CXX-"c++"}
17912 CFLAGS=$CXXFLAGS
17913 compiler=$CC
17914 compiler_CXX=$CC
17915 func_cc_basename $compiler
17916 cc_basename=$func_cc_basename_result
17917
17918
17919 if test -n "$compiler"; then
17920 # We don't want -fno-exception when compiling C++ code, so set the
17921 # no_builtin_flag separately
17922 if test yes = "$GXX"; then
17923 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17924 else
17925 lt_prog_compiler_no_builtin_flag_CXX=
17926 fi
17927
17928 if test yes = "$GXX"; then
17929 # Set up default GNU C++ configuration
17930
17931
17932
17933 # Check whether --with-gnu-ld was given.
17934 if test ${with_gnu_ld+y}
17935 then :
17936 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17937 else case e in #(
17938 e) with_gnu_ld=no ;;
17939 esac
17940 fi
17941
17942 ac_prog=ld
17943 if test yes = "$GCC"; then
17944 # Check if gcc -print-prog-name=ld gives a path.
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17946 printf %s "checking for ld used by $CC... " >&6; }
17947 case $host in
17948 *-*-mingw* | *-*-windows*)
17949 # gcc leaves a trailing carriage return, which upsets mingw
17950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17951 *)
17952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17953 esac
17954 case $ac_prog in
17955 # Accept absolute paths.
17956 [\\/]* | ?:[\\/]*)
17957 re_direlt='/[^/][^/]*/\.\./'
17958 # Canonicalize the pathname of ld
17959 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17960 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17961 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17962 done
17963 test -z "$LD" && LD=$ac_prog
17964 ;;
17965 "")
17966 # If it fails, then pretend we aren't using GCC.
17967 ac_prog=ld
17968 ;;
17969 *)
17970 # If it is relative, then search for the first ld in PATH.
17971 with_gnu_ld=unknown
17972 ;;
17973 esac
17974 elif test yes = "$with_gnu_ld"; then
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17976 printf %s "checking for GNU ld... " >&6; }
17977 else
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17979 printf %s "checking for non-GNU ld... " >&6; }
17980 fi
17981 if test ${lt_cv_path_LD+y}
17982 then :
17983 printf %s "(cached) " >&6
17984 else case e in #(
17985 e) if test -z "$LD"; then
17986 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17987 for ac_dir in $PATH; do
17988 IFS=$lt_save_ifs
17989 test -z "$ac_dir" && ac_dir=.
17990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17991 lt_cv_path_LD=$ac_dir/$ac_prog
17992 # Check to see if the program is GNU ld. I'd rather use --version,
17993 # but apparently some variants of GNU ld only accept -v.
17994 # Break only if it was the GNU/non-GNU ld that we prefer.
17995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17996 *GNU* | *'with BFD'*)
17997 test no != "$with_gnu_ld" && break
17998 ;;
17999 *)
18000 test yes != "$with_gnu_ld" && break
18001 ;;
18002 esac
18003 fi
18004 done
18005 IFS=$lt_save_ifs
18006 else
18007 lt_cv_path_LD=$LD # Let the user override the test with a path.
18008 fi ;;
18009 esac
18010 fi
18011
18012 LD=$lt_cv_path_LD
18013 if test -n "$LD"; then
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18015 printf "%s\n" "$LD" >&6; }
18016 else
18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 printf "%s\n" "no" >&6; }
18019 fi
18020 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18022 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18023 if test ${lt_cv_prog_gnu_ld+y}
18024 then :
18025 printf %s "(cached) " >&6
18026 else case e in #(
18027 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
18028 case `$LD -v 2>&1 </dev/null` in
18029 *GNU* | *'with BFD'*)
18030 lt_cv_prog_gnu_ld=yes
18031 ;;
18032 *)
18033 lt_cv_prog_gnu_ld=no
18034 ;;
18035 esac ;;
18036 esac
18037 fi
18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18039 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
18040 with_gnu_ld=$lt_cv_prog_gnu_ld
18041
18042
18043
18044
18045
18046
18047
18048 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18049 # archiving commands below assume that GNU ld is being used.
18050 if test yes = "$with_gnu_ld"; then
18051 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18052 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'
18053
18054 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18055 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18056
18057 # If archive_cmds runs LD, not CC, wlarc should be empty
18058 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18059 # investigate it a little bit more. (MM)
18060 wlarc='$wl'
18061
18062 # ancient GNU ld didn't support --whole-archive et. al.
18063 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18064 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18065 else
18066 whole_archive_flag_spec_CXX=
18067 fi
18068 else
18069 with_gnu_ld=no
18070 wlarc=
18071
18072 # A generic and very simple default shared library creation
18073 # command for GNU C++ for the case where it uses the native
18074 # linker, instead of GNU ld. If possible, this setting should
18075 # overridden to take advantage of the native linker features on
18076 # the platform it is being used on.
18077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18078 fi
18079
18080 # Commands to make compiler produce verbose output that lists
18081 # what "hidden" libraries, object files and flags are used when
18082 # linking a shared library.
18083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18084
18085 else
18086 GXX=no
18087 with_gnu_ld=no
18088 wlarc=
18089 fi
18090
18091 # PORTME: fill in a description of your system's C++ link characteristics
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18093 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18094 ld_shlibs_CXX=yes
18095 case $host_os in
18096 aix3*)
18097 # FIXME: insert proper C++ library support
18098 ld_shlibs_CXX=no
18099 ;;
18100 aix[4-9]*)
18101 if test ia64 = "$host_cpu"; then
18102 # On IA64, the linker does run time linking by default, so we don't
18103 # have to do anything special.
18104 aix_use_runtimelinking=no
18105 exp_sym_flag='-Bexport'
18106 no_entry_flag=
18107 else
18108 aix_use_runtimelinking=no
18109
18110 # Test if we are trying to use run time linking or normal
18111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18112 # have runtime linking enabled, and use it for executables.
18113 # For shared libraries, we enable/disable runtime linking
18114 # depending on the kind of the shared library created -
18115 # when "with_aix_soname,aix_use_runtimelinking" is:
18116 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
18117 # "aix,yes" lib.so shared, rtl:yes, for executables
18118 # lib.a static archive
18119 # "both,no" lib.so.V(shr.o) shared, rtl:yes
18120 # lib.a(lib.so.V) shared, rtl:no, for executables
18121 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18122 # lib.a(lib.so.V) shared, rtl:no
18123 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
18124 # lib.a static archive
18125 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18126 for ld_flag in $LDFLAGS; do
18127 case $ld_flag in
18128 *-brtl*)
18129 aix_use_runtimelinking=yes
18130 break
18131 ;;
18132 esac
18133 done
18134 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18135 # With aix-soname=svr4, we create the lib.so.V shared archives only,
18136 # so we don't have lib.a shared libs to link our executables.
18137 # We have to force runtime linking in this case.
18138 aix_use_runtimelinking=yes
18139 LDFLAGS="$LDFLAGS -Wl,-brtl"
18140 fi
18141 ;;
18142 esac
18143
18144 exp_sym_flag='-bexport'
18145 no_entry_flag='-bnoentry'
18146 fi
18147
18148 # When large executables or shared objects are built, AIX ld can
18149 # have problems creating the table of contents. If linking a library
18150 # or program results in "error TOC overflow" add -mminimal-toc to
18151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18153
18154 archive_cmds_CXX=''
18155 hardcode_direct_CXX=yes
18156 hardcode_direct_absolute_CXX=yes
18157 hardcode_libdir_separator_CXX=':'
18158 link_all_deplibs_CXX=yes
18159 file_list_spec_CXX='$wl-f,'
18160 case $with_aix_soname,$aix_use_runtimelinking in
18161 aix,*) ;; # no import file
18162 svr4,* | *,yes) # use import file
18163 # The Import File defines what to hardcode.
18164 hardcode_direct_CXX=no
18165 hardcode_direct_absolute_CXX=no
18166 ;;
18167 esac
18168
18169 if test yes = "$GXX"; then
18170 case $host_os in aix4.[012]|aix4.[012].*)
18171 # We only want to do this on AIX 4.2 and lower, the check
18172 # below for broken collect2 doesn't work under 4.3+
18173 collect2name=`$CC -print-prog-name=collect2`
18174 if test -f "$collect2name" &&
18175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18176 then
18177 # We have reworked collect2
18178 :
18179 else
18180 # We have old collect2
18181 hardcode_direct_CXX=unsupported
18182 # It fails to find uninstalled libraries when the uninstalled
18183 # path is not listed in the libpath. Setting hardcode_minus_L
18184 # to unsupported forces relinking
18185 hardcode_minus_L_CXX=yes
18186 hardcode_libdir_flag_spec_CXX='-L$libdir'
18187 hardcode_libdir_separator_CXX=
18188 fi
18189 esac
18190 shared_flag='-shared'
18191 if test yes = "$aix_use_runtimelinking"; then
18192 shared_flag=$shared_flag' $wl-G'
18193 fi
18194 # Need to ensure runtime linking is disabled for the traditional
18195 # shared library, or the linker may eventually find shared libraries
18196 # /with/ Import File - we do not want to mix them.
18197 shared_flag_aix='-shared'
18198 shared_flag_svr4='-shared $wl-G'
18199 else
18200 # not using gcc
18201 if test ia64 = "$host_cpu"; then
18202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18203 # chokes on -Wl,-G. The following line is correct:
18204 shared_flag='-G'
18205 else
18206 if test yes = "$aix_use_runtimelinking"; then
18207 shared_flag='$wl-G'
18208 else
18209 shared_flag='$wl-bM:SRE'
18210 fi
18211 shared_flag_aix='$wl-bM:SRE'
18212 shared_flag_svr4='$wl-G'
18213 fi
18214 fi
18215
18216 export_dynamic_flag_spec_CXX='$wl-bexpall'
18217 # It seems that -bexpall does not export symbols beginning with
18218 # underscore (_), so it is better to generate a list of symbols to
18219 # export.
18220 always_export_symbols_CXX=yes
18221 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18222 # Warning - without using the other runtime loading flags (-brtl),
18223 # -berok will link without error, but may produce a broken library.
18224 # The "-G" linker flag allows undefined symbols.
18225 no_undefined_flag_CXX='-bernotok'
18226 # Determine the default libpath from the value encoded in an empty
18227 # executable.
18228 if test set = "${lt_cv_aix_libpath+set}"; then
18229 aix_libpath=$lt_cv_aix_libpath
18230 else
18231 if test ${lt_cv_aix_libpath__CXX+y}
18232 then :
18233 printf %s "(cached) " >&6
18234 else case e in #(
18235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237
18238 int
18239 main (void)
18240 {
18241
18242 ;
18243 return 0;
18244 }
18245 _ACEOF
18246 if ac_fn_cxx_try_link "$LINENO"
18247 then :
18248
18249 lt_aix_libpath_sed='
18250 /Import File Strings/,/^$/ {
18251 /^0/ {
18252 s/^0 *\([^ ]*\) *$/\1/
18253 p
18254 }
18255 }'
18256 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18257 # Check for a 64-bit object if we didn't find anything.
18258 if test -z "$lt_cv_aix_libpath__CXX"; then
18259 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18260 fi
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18263 conftest$ac_exeext conftest.$ac_ext
18264 if test -z "$lt_cv_aix_libpath__CXX"; then
18265 lt_cv_aix_libpath__CXX=/usr/lib:/lib
18266 fi
18267 ;;
18268 esac
18269 fi
18270
18271 aix_libpath=$lt_cv_aix_libpath__CXX
18272 fi
18273
18274 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
18275
18276 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
18277 else
18278 if test ia64 = "$host_cpu"; then
18279 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
18280 allow_undefined_flag_CXX="-z nodefs"
18281 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"
18282 else
18283 # Determine the default libpath from the value encoded in an
18284 # empty executable.
18285 if test set = "${lt_cv_aix_libpath+set}"; then
18286 aix_libpath=$lt_cv_aix_libpath
18287 else
18288 if test ${lt_cv_aix_libpath__CXX+y}
18289 then :
18290 printf %s "(cached) " >&6
18291 else case e in #(
18292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294
18295 int
18296 main (void)
18297 {
18298
18299 ;
18300 return 0;
18301 }
18302 _ACEOF
18303 if ac_fn_cxx_try_link "$LINENO"
18304 then :
18305
18306 lt_aix_libpath_sed='
18307 /Import File Strings/,/^$/ {
18308 /^0/ {
18309 s/^0 *\([^ ]*\) *$/\1/
18310 p
18311 }
18312 }'
18313 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18314 # Check for a 64-bit object if we didn't find anything.
18315 if test -z "$lt_cv_aix_libpath__CXX"; then
18316 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18317 fi
18318 fi
18319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18320 conftest$ac_exeext conftest.$ac_ext
18321 if test -z "$lt_cv_aix_libpath__CXX"; then
18322 lt_cv_aix_libpath__CXX=/usr/lib:/lib
18323 fi
18324 ;;
18325 esac
18326 fi
18327
18328 aix_libpath=$lt_cv_aix_libpath__CXX
18329 fi
18330
18331 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
18332 # Warning - without using the other run time loading flags,
18333 # -berok will link without error, but may produce a broken library.
18334 no_undefined_flag_CXX=' $wl-bernotok'
18335 allow_undefined_flag_CXX=' $wl-berok'
18336 if test yes = "$with_gnu_ld"; then
18337 # We only use this code for GNU lds that support --whole-archive.
18338 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18339 else
18340 # Exported symbols can be pulled into shared objects from archives
18341 whole_archive_flag_spec_CXX='$convenience'
18342 fi
18343 archive_cmds_need_lc_CXX=yes
18344 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18345 # -brtl affects multiple linker settings, -berok does not and is overridden later
18346 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18347 if test svr4 != "$with_aix_soname"; then
18348 # This is similar to how AIX traditionally builds its shared
18349 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
18350 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
18351 fi
18352 if test aix != "$with_aix_soname"; then
18353 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
18354 else
18355 # used by -dlpreopen to get the symbols
18356 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
18357 fi
18358 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
18359 fi
18360 fi
18361 ;;
18362
18363 beos*)
18364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18365 allow_undefined_flag_CXX=unsupported
18366 # Joseph Beckenbach <[email protected]> says some releases of gcc
18367 # support --undefined. This deserves some investigation. FIXME
18368 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18369 else
18370 ld_shlibs_CXX=no
18371 fi
18372 ;;
18373
18374 chorus*)
18375 case $cc_basename in
18376 *)
18377 # FIXME: insert proper C++ library support
18378 ld_shlibs_CXX=no
18379 ;;
18380 esac
18381 ;;
18382
18383 cygwin* | mingw* | windows* | pw32* | cegcc*)
18384 case $GXX,$cc_basename in
18385 ,cl* | no,cl* | ,icl* | no,icl*)
18386 # Native MSVC or ICC
18387 # hardcode_libdir_flag_spec is actually meaningless, as there is
18388 # no search path for DLLs.
18389 hardcode_libdir_flag_spec_CXX=' '
18390 allow_undefined_flag_CXX=unsupported
18391 always_export_symbols_CXX=yes
18392 file_list_spec_CXX='@'
18393 # Tell ltmain to make .lib files, not .a files.
18394 libext=lib
18395 # Tell ltmain to make .dll files, not .so files.
18396 shrext_cmds=.dll
18397 # FIXME: Setting linknames here is a bad hack.
18398 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18399 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18400 cp "$export_symbols" "$output_objdir/$soname.def";
18401 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18402 else
18403 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18404 fi~
18405 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18406 linknames='
18407 # The linker will not automatically build a static lib if we build a DLL.
18408 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18409 enable_shared_with_static_runtimes_CXX=yes
18410 # Don't use ranlib
18411 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18412 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18413 lt_tool_outputfile="@TOOL_OUTPUT@"~
18414 case $lt_outputfile in
18415 *.exe|*.EXE) ;;
18416 *)
18417 lt_outputfile=$lt_outputfile.exe
18418 lt_tool_outputfile=$lt_tool_outputfile.exe
18419 ;;
18420 esac~
18421 func_to_tool_file "$lt_outputfile"~
18422 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18423 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18424 $RM "$lt_outputfile.manifest";
18425 fi'
18426 ;;
18427 *)
18428 # g++
18429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18430 # as there is no search path for DLLs.
18431 hardcode_libdir_flag_spec_CXX='-L$libdir'
18432 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
18433 allow_undefined_flag_CXX=unsupported
18434 always_export_symbols_CXX=no
18435 enable_shared_with_static_runtimes_CXX=yes
18436 file_list_spec_CXX='@'
18437
18438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18439 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'
18440 # If the export-symbols file already is a .def file, use it as
18441 # is; otherwise, prepend EXPORTS...
18442 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18443 cp $export_symbols $output_objdir/$soname.def;
18444 else
18445 echo EXPORTS > $output_objdir/$soname.def;
18446 cat $export_symbols >> $output_objdir/$soname.def;
18447 fi~
18448 $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'
18449 else
18450 ld_shlibs_CXX=no
18451 fi
18452 ;;
18453 esac
18454 ;;
18455 darwin* | rhapsody*)
18456
18457
18458 archive_cmds_need_lc_CXX=no
18459 hardcode_direct_CXX=no
18460 hardcode_automatic_CXX=yes
18461 hardcode_shlibpath_var_CXX=unsupported
18462 if test yes = "$lt_cv_ld_force_load"; then
18463 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\"`'
18464
18465 else
18466 whole_archive_flag_spec_CXX=''
18467 fi
18468 link_all_deplibs_CXX=yes
18469 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
18470 case $cc_basename in
18471 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18472 *) _lt_dar_can_shared=$GCC ;;
18473 esac
18474 if test yes = "$_lt_dar_can_shared"; then
18475 output_verbose_link_cmd=func_echo_all
18476 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"
18477 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18478 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"
18479 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"
18480 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
18481 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"
18482 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"
18483 fi
18484
18485 else
18486 ld_shlibs_CXX=no
18487 fi
18488
18489 ;;
18490
18491 os2*)
18492 hardcode_libdir_flag_spec_CXX='-L$libdir'
18493 hardcode_minus_L_CXX=yes
18494 allow_undefined_flag_CXX=unsupported
18495 shrext_cmds=.dll
18496 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18497 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18498 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18499 $ECHO EXPORTS >> $output_objdir/$libname.def~
18500 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18502 emximp -o $lib $output_objdir/$libname.def'
18503 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18506 $ECHO EXPORTS >> $output_objdir/$libname.def~
18507 prefix_cmds="$SED"~
18508 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18509 prefix_cmds="$prefix_cmds -e 1d";
18510 fi~
18511 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18512 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18514 emximp -o $lib $output_objdir/$libname.def'
18515 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18516 enable_shared_with_static_runtimes_CXX=yes
18517 file_list_spec_CXX='@'
18518 ;;
18519
18520 dgux*)
18521 case $cc_basename in
18522 ec++*)
18523 # FIXME: insert proper C++ library support
18524 ld_shlibs_CXX=no
18525 ;;
18526 ghcx*)
18527 # Green Hills C++ Compiler
18528 # FIXME: insert proper C++ library support
18529 ld_shlibs_CXX=no
18530 ;;
18531 *)
18532 # FIXME: insert proper C++ library support
18533 ld_shlibs_CXX=no
18534 ;;
18535 esac
18536 ;;
18537
18538 freebsd2.*)
18539 # C++ shared libraries reported to be fairly broken before
18540 # switch to ELF
18541 ld_shlibs_CXX=no
18542 ;;
18543
18544 freebsd-elf*)
18545 archive_cmds_need_lc_CXX=no
18546 ;;
18547
18548 freebsd* | dragonfly* | midnightbsd*)
18549 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18550 # conventions
18551 ld_shlibs_CXX=yes
18552 ;;
18553
18554 haiku*)
18555 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18556 link_all_deplibs_CXX=no
18557 ;;
18558
18559 hpux9*)
18560 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
18561 hardcode_libdir_separator_CXX=:
18562 export_dynamic_flag_spec_CXX='$wl-E'
18563 hardcode_direct_CXX=yes
18564 hardcode_minus_L_CXX=yes # Not in the search PATH,
18565 # but as the default
18566 # location of the library.
18567
18568 case $cc_basename in
18569 CC*)
18570 # FIXME: insert proper C++ library support
18571 ld_shlibs_CXX=no
18572 ;;
18573 aCC*)
18574 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18575 # Commands to make compiler produce verbose output that lists
18576 # what "hidden" libraries, object files and flags are used when
18577 # linking a shared library.
18578 #
18579 # There doesn't appear to be a way to prevent this compiler from
18580 # explicitly linking system object files so we need to strip them
18581 # from the output so that they don't get included in the library
18582 # dependencies.
18583 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"'
18584 ;;
18585 *)
18586 if test yes = "$GXX"; then
18587 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18588 else
18589 # FIXME: insert proper C++ library support
18590 ld_shlibs_CXX=no
18591 fi
18592 ;;
18593 esac
18594 ;;
18595
18596 hpux10*|hpux11*)
18597 if test no = "$with_gnu_ld"; then
18598 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
18599 hardcode_libdir_separator_CXX=:
18600
18601 case $host_cpu in
18602 hppa*64*|ia64*)
18603 ;;
18604 *)
18605 export_dynamic_flag_spec_CXX='$wl-E'
18606 ;;
18607 esac
18608 fi
18609 case $host_cpu in
18610 hppa*64*|ia64*)
18611 hardcode_direct_CXX=no
18612 hardcode_shlibpath_var_CXX=no
18613 ;;
18614 *)
18615 hardcode_direct_CXX=yes
18616 hardcode_direct_absolute_CXX=yes
18617 hardcode_minus_L_CXX=yes # Not in the search PATH,
18618 # but as the default
18619 # location of the library.
18620 ;;
18621 esac
18622
18623 case $cc_basename in
18624 CC*)
18625 # FIXME: insert proper C++ library support
18626 ld_shlibs_CXX=no
18627 ;;
18628 aCC*)
18629 case $host_cpu in
18630 hppa*64*)
18631 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18632 ;;
18633 ia64*)
18634 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18635 ;;
18636 *)
18637 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18638 ;;
18639 esac
18640 # Commands to make compiler produce verbose output that lists
18641 # what "hidden" libraries, object files and flags are used when
18642 # linking a shared library.
18643 #
18644 # There doesn't appear to be a way to prevent this compiler from
18645 # explicitly linking system object files so we need to strip them
18646 # from the output so that they don't get included in the library
18647 # dependencies.
18648 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"'
18649 ;;
18650 *)
18651 if test yes = "$GXX"; then
18652 if test no = "$with_gnu_ld"; then
18653 case $host_cpu in
18654 hppa*64*)
18655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18656 ;;
18657 ia64*)
18658 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18659 ;;
18660 *)
18661 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18662 ;;
18663 esac
18664 fi
18665 else
18666 # FIXME: insert proper C++ library support
18667 ld_shlibs_CXX=no
18668 fi
18669 ;;
18670 esac
18671 ;;
18672
18673 interix[3-9]*)
18674 hardcode_direct_CXX=no
18675 hardcode_shlibpath_var_CXX=no
18676 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18677 export_dynamic_flag_spec_CXX='$wl-E'
18678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18679 # Instead, shared libraries are loaded at an image base (0x10000000 by
18680 # default) and relocated if they conflict, which is a slow very memory
18681 # consuming and fragmenting process. To avoid this, we pick a random,
18682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18684 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'
18685 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'
18686 ;;
18687 irix5* | irix6*)
18688 case $cc_basename in
18689 CC*)
18690 # SGI C++
18691 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'
18692
18693 # Archives containing C++ object files must be created using
18694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18695 # necessary to make sure instantiated templates are included
18696 # in the archive.
18697 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18698 ;;
18699 *)
18700 if test yes = "$GXX"; then
18701 if test no = "$with_gnu_ld"; then
18702 archive_cmds_CXX='$CC -shared $pic_flag -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'
18703 else
18704 archive_cmds_CXX='$CC -shared $pic_flag -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'
18705 fi
18706 fi
18707 link_all_deplibs_CXX=yes
18708 ;;
18709 esac
18710 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18711 hardcode_libdir_separator_CXX=:
18712 inherit_rpath_CXX=yes
18713 ;;
18714
18715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18716 case $cc_basename in
18717 KCC*)
18718 # Kuck and Associates, Inc. (KAI) C++ Compiler
18719
18720 # KCC will only create a shared library if the output file
18721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18722 # to its proper name (with version) after linking.
18723 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'
18724 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'
18725 # Commands to make compiler produce verbose output that lists
18726 # what "hidden" libraries, object files and flags are used when
18727 # linking a shared library.
18728 #
18729 # There doesn't appear to be a way to prevent this compiler from
18730 # explicitly linking system object files so we need to strip them
18731 # from the output so that they don't get included in the library
18732 # dependencies.
18733 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"'
18734
18735 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18736 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18737
18738 # Archives containing C++ object files must be created using
18739 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18740 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18741 ;;
18742 icpc* | ecpc* )
18743 # Intel C++
18744 with_gnu_ld=yes
18745 # version 8.0 and above of icpc choke on multiply defined symbols
18746 # if we add $predep_objects and $postdep_objects, however 7.1 and
18747 # earlier do not add the objects themselves.
18748 case `$CC -V 2>&1` in
18749 *"Version 7."*)
18750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18751 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'
18752 ;;
18753 *) # Version 8.0 or newer
18754 tmp_idyn=
18755 case $host_cpu in
18756 ia64*) tmp_idyn=' -i_dynamic';;
18757 esac
18758 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18759 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'
18760 ;;
18761 esac
18762 archive_cmds_need_lc_CXX=no
18763 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18764 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18765 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18766 ;;
18767 pgCC* | pgcpp*)
18768 # Portland Group C++ compiler
18769 case `$CC -V` in
18770 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18771 prelink_cmds_CXX='tpldir=Template.dir~
18772 rm -rf $tpldir~
18773 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18774 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18775 old_archive_cmds_CXX='tpldir=Template.dir~
18776 rm -rf $tpldir~
18777 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18778 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18779 $RANLIB $oldlib'
18780 archive_cmds_CXX='tpldir=Template.dir~
18781 rm -rf $tpldir~
18782 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18783 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18784 archive_expsym_cmds_CXX='tpldir=Template.dir~
18785 rm -rf $tpldir~
18786 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18787 $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'
18788 ;;
18789 *) # Version 6 and above use weak symbols
18790 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18791 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'
18792 ;;
18793 esac
18794
18795 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18796 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18797 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'
18798 ;;
18799 cxx*)
18800 # Compaq C++
18801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18802 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'
18803
18804 runpath_var=LD_RUN_PATH
18805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18806 hardcode_libdir_separator_CXX=:
18807
18808 # Commands to make compiler produce verbose output that lists
18809 # what "hidden" libraries, object files and flags are used when
18810 # linking a shared library.
18811 #
18812 # There doesn't appear to be a way to prevent this compiler from
18813 # explicitly linking system object files so we need to strip them
18814 # from the output so that they don't get included in the library
18815 # dependencies.
18816 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'
18817 ;;
18818 xl* | mpixl* | bgxl*)
18819 # IBM XL 8.0 on PPC, with GNU ld
18820 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18821 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18822 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18823 if test yes = "$supports_anon_versioning"; then
18824 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18825 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18826 echo "local: *; };" >> $output_objdir/$libname.ver~
18827 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18828 fi
18829 ;;
18830 *)
18831 case `$CC -V 2>&1 | $SED 5q` in
18832 *Sun\ C*)
18833 # Sun C++ 5.9
18834 no_undefined_flag_CXX=' -zdefs'
18835 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18836 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'
18837 hardcode_libdir_flag_spec_CXX='-R$libdir'
18838 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'
18839 compiler_needs_object_CXX=yes
18840
18841 # Not sure whether something based on
18842 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18843 # would be better.
18844 output_verbose_link_cmd='func_echo_all'
18845
18846 # Archives containing C++ object files must be created using
18847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18848 # necessary to make sure instantiated templates are included
18849 # in the archive.
18850 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18851 ;;
18852 esac
18853 ;;
18854 esac
18855 ;;
18856
18857 lynxos*)
18858 # FIXME: insert proper C++ library support
18859 ld_shlibs_CXX=no
18860 ;;
18861
18862 m88k*)
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18865 ;;
18866
18867 mvs*)
18868 case $cc_basename in
18869 cxx*)
18870 # FIXME: insert proper C++ library support
18871 ld_shlibs_CXX=no
18872 ;;
18873 *)
18874 # FIXME: insert proper C++ library support
18875 ld_shlibs_CXX=no
18876 ;;
18877 esac
18878 ;;
18879
18880 *-mlibc)
18881 ld_shlibs_CXX=yes
18882 ;;
18883
18884 netbsd*)
18885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18886 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18887 wlarc=
18888 hardcode_libdir_flag_spec_CXX='-R$libdir'
18889 hardcode_direct_CXX=yes
18890 hardcode_shlibpath_var_CXX=no
18891 fi
18892 # Workaround some broken pre-1.5 toolchains
18893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18894 ;;
18895
18896 *nto* | *qnx*)
18897 ld_shlibs_CXX=yes
18898 ;;
18899
18900 openbsd*)
18901 if test -f /usr/libexec/ld.so; then
18902 hardcode_direct_CXX=yes
18903 hardcode_shlibpath_var_CXX=no
18904 hardcode_direct_absolute_CXX=yes
18905 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18906 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18908 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18909 export_dynamic_flag_spec_CXX='$wl-E'
18910 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18911 fi
18912 output_verbose_link_cmd=func_echo_all
18913 else
18914 ld_shlibs_CXX=no
18915 fi
18916 ;;
18917
18918 osf3* | osf4* | osf5*)
18919 case $cc_basename in
18920 KCC*)
18921 # Kuck and Associates, Inc. (KAI) C++ Compiler
18922
18923 # KCC will only create a shared library if the output file
18924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18925 # to its proper name (with version) after linking.
18926 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'
18927
18928 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18929 hardcode_libdir_separator_CXX=:
18930
18931 # Archives containing C++ object files must be created using
18932 # the KAI C++ compiler.
18933 case $host in
18934 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18935 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18936 esac
18937 ;;
18938 RCC*)
18939 # Rational C++ 2.4.1
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
18943 cxx*)
18944 case $host in
18945 osf3*)
18946 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18947 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'
18948 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18949 ;;
18950 *)
18951 allow_undefined_flag_CXX=' -expect_unresolved \*'
18952 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'
18953 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18954 echo "-hidden">> $lib.exp~
18955 $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~
18956 $RM $lib.exp'
18957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18958 ;;
18959 esac
18960
18961 hardcode_libdir_separator_CXX=:
18962
18963 # Commands to make compiler produce verbose output that lists
18964 # what "hidden" libraries, object files and flags are used when
18965 # linking a shared library.
18966 #
18967 # There doesn't appear to be a way to prevent this compiler from
18968 # explicitly linking system object files so we need to strip them
18969 # from the output so that they don't get included in the library
18970 # dependencies.
18971 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"'
18972 ;;
18973 *)
18974 if test yes,no = "$GXX,$with_gnu_ld"; then
18975 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18976 case $host in
18977 osf3*)
18978 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'
18979 ;;
18980 *)
18981 archive_cmds_CXX='$CC -shared $pic_flag -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'
18982 ;;
18983 esac
18984
18985 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18986 hardcode_libdir_separator_CXX=:
18987
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18992
18993 else
18994 # FIXME: insert proper C++ library support
18995 ld_shlibs_CXX=no
18996 fi
18997 ;;
18998 esac
18999 ;;
19000
19001 psos*)
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 ;;
19005
19006 serenity*)
19007 ;;
19008
19009 sunos4*)
19010 case $cc_basename in
19011 CC*)
19012 # Sun C++ 4.x
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
19016 lcc*)
19017 # Lucid
19018 # FIXME: insert proper C++ library support
19019 ld_shlibs_CXX=no
19020 ;;
19021 *)
19022 # FIXME: insert proper C++ library support
19023 ld_shlibs_CXX=no
19024 ;;
19025 esac
19026 ;;
19027
19028 solaris*)
19029 case $cc_basename in
19030 CC* | sunCC*)
19031 # Sun C++ 4.2, 5.x and Centerline C++
19032 archive_cmds_need_lc_CXX=yes
19033 no_undefined_flag_CXX=' -zdefs'
19034 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19035 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19036 $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'
19037
19038 hardcode_libdir_flag_spec_CXX='-R$libdir'
19039 hardcode_shlibpath_var_CXX=no
19040 case $host_os in
19041 solaris2.[0-5] | solaris2.[0-5].*) ;;
19042 *)
19043 # The compiler driver will combine and reorder linker options,
19044 # but understands '-z linker_flag'.
19045 # Supported since Solaris 2.6 (maybe 2.5.1?)
19046 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19047 ;;
19048 esac
19049 link_all_deplibs_CXX=yes
19050
19051 output_verbose_link_cmd='func_echo_all'
19052
19053 # Archives containing C++ object files must be created using
19054 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19055 # necessary to make sure instantiated templates are included
19056 # in the archive.
19057 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19058 ;;
19059 gcx*)
19060 # Green Hills C++ Compiler
19061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19062
19063 # The C++ compiler must be used to create the archive.
19064 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19065 ;;
19066 *)
19067 # GNU C++ compiler with Solaris linker
19068 if test yes,no = "$GXX,$with_gnu_ld"; then
19069 no_undefined_flag_CXX=' $wl-z ${wl}defs'
19070 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19071 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19072 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19073 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19074
19075 # Commands to make compiler produce verbose output that lists
19076 # what "hidden" libraries, object files and flags are used when
19077 # linking a shared library.
19078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
19079 else
19080 # g++ 2.7 appears to require '-G' NOT '-shared' on this
19081 # platform.
19082 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19083 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19084 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19085
19086 # Commands to make compiler produce verbose output that lists
19087 # what "hidden" libraries, object files and flags are used when
19088 # linking a shared library.
19089 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
19090 fi
19091
19092 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
19093 case $host_os in
19094 solaris2.[0-5] | solaris2.[0-5].*) ;;
19095 *)
19096 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19097 ;;
19098 esac
19099 fi
19100 ;;
19101 esac
19102 ;;
19103
19104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19105 no_undefined_flag_CXX='$wl-z,text'
19106 archive_cmds_need_lc_CXX=no
19107 hardcode_shlibpath_var_CXX=no
19108 runpath_var='LD_RUN_PATH'
19109
19110 case $cc_basename in
19111 CC*)
19112 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19113 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19114 ;;
19115 *)
19116 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19117 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19118 ;;
19119 esac
19120 ;;
19121
19122 sysv5* | sco3.2v5* | sco5v6*)
19123 # Note: We CANNOT use -z defs as we might desire, because we do not
19124 # link with -lc, and that would cause any symbols used from libc to
19125 # always be unresolved, which means just about no library would
19126 # ever link correctly. If we're not using GNU ld we use -z text
19127 # though, which does catch some bad symbols but isn't as heavy-handed
19128 # as -z defs.
19129 no_undefined_flag_CXX='$wl-z,text'
19130 allow_undefined_flag_CXX='$wl-z,nodefs'
19131 archive_cmds_need_lc_CXX=no
19132 hardcode_shlibpath_var_CXX=no
19133 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
19134 hardcode_libdir_separator_CXX=':'
19135 link_all_deplibs_CXX=yes
19136 export_dynamic_flag_spec_CXX='$wl-Bexport'
19137 runpath_var='LD_RUN_PATH'
19138
19139 case $cc_basename in
19140 CC*)
19141 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19142 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19143 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19144 '"$old_archive_cmds_CXX"
19145 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19146 '"$reload_cmds_CXX"
19147 ;;
19148 *)
19149 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19151 ;;
19152 esac
19153 ;;
19154
19155 tandem*)
19156 case $cc_basename in
19157 NCC*)
19158 # NonStop-UX NCC 3.20
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19161 ;;
19162 *)
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 ;;
19166 esac
19167 ;;
19168
19169 vxworks*)
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19172 ;;
19173
19174 *)
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19177 ;;
19178 esac
19179
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19181 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19182 test no = "$ld_shlibs_CXX" && can_build_shared=no
19183
19184 GCC_CXX=$GXX
19185 LD_CXX=$LD
19186
19187 ## CAVEAT EMPTOR:
19188 ## There is no encapsulation within the following macros, do not change
19189 ## the running order or otherwise move them around unless you know exactly
19190 ## what you are doing...
19191 # Dependencies to place before and after the object being linked:
19192 predep_objects_CXX=
19193 postdep_objects_CXX=
19194 predeps_CXX=
19195 postdeps_CXX=
19196 compiler_lib_search_path_CXX=
19197
19198 cat > conftest.$ac_ext <<_LT_EOF
19199 class Foo
19200 {
19201 public:
19202 Foo (void) { a = 0; }
19203 private:
19204 int a;
19205 };
19206 _LT_EOF
19207
19208
19209 _lt_libdeps_save_CFLAGS=$CFLAGS
19210 case "$CC $CFLAGS " in #(
19211 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19212 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19213 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19214 esac
19215
19216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19217 (eval $ac_compile) 2>&5
19218 ac_status=$?
19219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19220 test $ac_status = 0; }; then
19221 # Parse the compiler output and extract the necessary
19222 # objects, libraries and library flags.
19223
19224 # Sentinel used to keep track of whether or not we are before
19225 # the conftest object file.
19226 pre_test_object_deps_done=no
19227
19228 for p in `eval "$output_verbose_link_cmd"`; do
19229 case $prev$p in
19230
19231 -L* | -R* | -l*)
19232 # Some compilers place space between "-{L,R,l}" and the path.
19233 # Remove the space.
19234 if test x-L = x"$p" ||
19235 test x-R = x"$p" ||
19236 test x-l = x"$p"; then
19237 prev=$p
19238 continue
19239 fi
19240
19241 # Expand the sysroot to ease extracting the directories later.
19242 if test -z "$prev"; then
19243 case $p in
19244 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19245 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19246 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19247 esac
19248 fi
19249 case $p in
19250 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19251 esac
19252 if test no = "$pre_test_object_deps_done"; then
19253 case $prev in
19254 -L | -R)
19255 # Internal compiler library paths should come after those
19256 # provided the user. The postdeps already come after the
19257 # user supplied libs so there is no need to process them.
19258 if test -z "$compiler_lib_search_path_CXX"; then
19259 compiler_lib_search_path_CXX=$prev$p
19260 else
19261 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
19262 fi
19263 ;;
19264 # The "-l" case would never come before the object being
19265 # linked, so don't bother handling this case.
19266 esac
19267 else
19268 if test -z "$postdeps_CXX"; then
19269 postdeps_CXX=$prev$p
19270 else
19271 postdeps_CXX="${postdeps_CXX} $prev$p"
19272 fi
19273 fi
19274 prev=
19275 ;;
19276
19277 *.lto.$objext) ;; # Ignore GCC LTO objects
19278 *.$objext)
19279 # This assumes that the test object file only shows up
19280 # once in the compiler output.
19281 if test "$p" = "conftest.$objext"; then
19282 pre_test_object_deps_done=yes
19283 continue
19284 fi
19285
19286 if test no = "$pre_test_object_deps_done"; then
19287 if test -z "$predep_objects_CXX"; then
19288 predep_objects_CXX=$p
19289 else
19290 predep_objects_CXX="$predep_objects_CXX $p"
19291 fi
19292 else
19293 if test -z "$postdep_objects_CXX"; then
19294 postdep_objects_CXX=$p
19295 else
19296 postdep_objects_CXX="$postdep_objects_CXX $p"
19297 fi
19298 fi
19299 ;;
19300
19301 *) ;; # Ignore the rest.
19302
19303 esac
19304 done
19305
19306 # Clean up.
19307 rm -f a.out a.exe
19308 else
19309 echo "libtool.m4: error: problem compiling CXX test program"
19310 fi
19311
19312 $RM -f confest.$objext
19313 CFLAGS=$_lt_libdeps_save_CFLAGS
19314
19315 # PORTME: override above test on systems where it is broken
19316 case $host_os in
19317 interix[3-9]*)
19318 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19319 # hack all around it, let's just trust "g++" to DTRT.
19320 predep_objects_CXX=
19321 postdep_objects_CXX=
19322 postdeps_CXX=
19323 ;;
19324 esac
19325
19326
19327 case " $postdeps_CXX " in
19328 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19329 esac
19330 compiler_lib_search_dirs_CXX=
19331 if test -n "${compiler_lib_search_path_CXX}"; then
19332 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
19333 fi
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365 lt_prog_compiler_wl_CXX=
19366 lt_prog_compiler_pic_CXX=
19367 lt_prog_compiler_static_CXX=
19368
19369
19370 # C++ specific cases for pic, static, wl, etc.
19371 if test yes = "$GXX"; then
19372 lt_prog_compiler_wl_CXX='-Wl,'
19373 lt_prog_compiler_static_CXX='-static'
19374
19375 case $host_os in
19376 aix*)
19377 # All AIX code is PIC.
19378 if test ia64 = "$host_cpu"; then
19379 # AIX 5 now supports IA64 processor
19380 lt_prog_compiler_static_CXX='-Bstatic'
19381 fi
19382 lt_prog_compiler_pic_CXX='-fPIC'
19383 ;;
19384
19385 amigaos*)
19386 case $host_cpu in
19387 powerpc)
19388 # see comment about AmigaOS4 .so support
19389 lt_prog_compiler_pic_CXX='-fPIC'
19390 ;;
19391 m68k)
19392 # FIXME: we need at least 68020 code to build shared libraries, but
19393 # adding the '-m68020' flag to GCC prevents building anything better,
19394 # like '-m68040'.
19395 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19396 ;;
19397 esac
19398 ;;
19399
19400 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19401 # PIC is the default for these OSes.
19402 ;;
19403 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19404 # This hack is so that the source file can tell whether it is being
19405 # built for inclusion in a dll (and should export symbols for example).
19406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19407 # (--disable-auto-import) libraries
19408 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19409 case $host_os in
19410 os2*)
19411 lt_prog_compiler_static_CXX='$wl-static'
19412 ;;
19413 esac
19414 ;;
19415 darwin* | rhapsody*)
19416 # PIC is the default on this platform
19417 # Common symbols not allowed in MH_DYLIB files
19418 lt_prog_compiler_pic_CXX='-fno-common'
19419 ;;
19420 *djgpp*)
19421 # DJGPP does not support shared libraries at all
19422 lt_prog_compiler_pic_CXX=
19423 ;;
19424 haiku*)
19425 # PIC is the default for Haiku.
19426 # The "-static" flag exists, but is broken.
19427 lt_prog_compiler_static_CXX=
19428 ;;
19429 interix[3-9]*)
19430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19431 # Instead, we relocate shared libraries at runtime.
19432 ;;
19433 sysv4*MP*)
19434 if test -d /usr/nec; then
19435 lt_prog_compiler_pic_CXX=-Kconform_pic
19436 fi
19437 ;;
19438 hpux*)
19439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19441 # sets the default TLS model and affects inlining.
19442 case $host_cpu in
19443 hppa*64*)
19444 ;;
19445 *)
19446 lt_prog_compiler_pic_CXX='-fPIC'
19447 ;;
19448 esac
19449 ;;
19450 *qnx* | *nto*)
19451 # QNX uses GNU C++, but need to define -shared option too, otherwise
19452 # it will coredump.
19453 lt_prog_compiler_pic_CXX='-fPIC -shared'
19454 ;;
19455 *)
19456 lt_prog_compiler_pic_CXX='-fPIC'
19457 ;;
19458 esac
19459 else
19460 case $host_os in
19461 aix[4-9]*)
19462 # All AIX code is PIC.
19463 if test ia64 = "$host_cpu"; then
19464 # AIX 5 now supports IA64 processor
19465 lt_prog_compiler_static_CXX='-Bstatic'
19466 else
19467 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19468 fi
19469 ;;
19470 chorus*)
19471 case $cc_basename in
19472 cxch68*)
19473 # Green Hills C++ Compiler
19474 # _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"
19475 ;;
19476 esac
19477 ;;
19478 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19479 # This hack is so that the source file can tell whether it is being
19480 # built for inclusion in a dll (and should export symbols for example).
19481 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19482 ;;
19483 dgux*)
19484 case $cc_basename in
19485 ec++*)
19486 lt_prog_compiler_pic_CXX='-KPIC'
19487 ;;
19488 ghcx*)
19489 # Green Hills C++ Compiler
19490 lt_prog_compiler_pic_CXX='-pic'
19491 ;;
19492 *)
19493 ;;
19494 esac
19495 ;;
19496 freebsd* | dragonfly* | midnightbsd*)
19497 # FreeBSD uses GNU C++
19498 ;;
19499 hpux9* | hpux10* | hpux11*)
19500 case $cc_basename in
19501 CC*)
19502 lt_prog_compiler_wl_CXX='-Wl,'
19503 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19504 if test ia64 != "$host_cpu"; then
19505 lt_prog_compiler_pic_CXX='+Z'
19506 fi
19507 ;;
19508 aCC*)
19509 lt_prog_compiler_wl_CXX='-Wl,'
19510 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19511 case $host_cpu in
19512 hppa*64*|ia64*)
19513 # +Z the default
19514 ;;
19515 *)
19516 lt_prog_compiler_pic_CXX='+Z'
19517 ;;
19518 esac
19519 ;;
19520 *)
19521 ;;
19522 esac
19523 ;;
19524 interix*)
19525 # This is c89, which is MS Visual C++ (no shared libs)
19526 # Anyone wants to do a port?
19527 ;;
19528 irix5* | irix6* | nonstopux*)
19529 case $cc_basename in
19530 CC*)
19531 lt_prog_compiler_wl_CXX='-Wl,'
19532 lt_prog_compiler_static_CXX='-non_shared'
19533 # CC pic flag -KPIC is the default.
19534 ;;
19535 *)
19536 ;;
19537 esac
19538 ;;
19539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19540 case $cc_basename in
19541 KCC*)
19542 # KAI C++ Compiler
19543 lt_prog_compiler_wl_CXX='--backend -Wl,'
19544 lt_prog_compiler_pic_CXX='-fPIC'
19545 ;;
19546 ecpc* )
19547 # old Intel C++ for x86_64, which still supported -KPIC.
19548 lt_prog_compiler_wl_CXX='-Wl,'
19549 lt_prog_compiler_pic_CXX='-KPIC'
19550 lt_prog_compiler_static_CXX='-static'
19551 ;;
19552 icpc* )
19553 # Intel C++, used to be incompatible with GCC.
19554 # ICC 10 doesn't accept -KPIC any more.
19555 lt_prog_compiler_wl_CXX='-Wl,'
19556 lt_prog_compiler_pic_CXX='-fPIC'
19557 lt_prog_compiler_static_CXX='-static'
19558 ;;
19559 pgCC* | pgcpp*)
19560 # Portland Group C++ compiler
19561 lt_prog_compiler_wl_CXX='-Wl,'
19562 lt_prog_compiler_pic_CXX='-fpic'
19563 lt_prog_compiler_static_CXX='-Bstatic'
19564 ;;
19565 cxx*)
19566 # Compaq C++
19567 # Make sure the PIC flag is empty. It appears that all Alpha
19568 # Linux and Compaq Tru64 Unix objects are PIC.
19569 lt_prog_compiler_pic_CXX=
19570 lt_prog_compiler_static_CXX='-non_shared'
19571 ;;
19572 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19573 # IBM XL 8.0, 9.0 on PPC and BlueGene
19574 lt_prog_compiler_wl_CXX='-Wl,'
19575 lt_prog_compiler_pic_CXX='-qpic'
19576 lt_prog_compiler_static_CXX='-qstaticlink'
19577 ;;
19578 *)
19579 case `$CC -V 2>&1 | $SED 5q` in
19580 *Sun\ C*)
19581 # Sun C++ 5.9
19582 lt_prog_compiler_pic_CXX='-KPIC'
19583 lt_prog_compiler_static_CXX='-Bstatic'
19584 lt_prog_compiler_wl_CXX='-Qoption ld '
19585 ;;
19586 esac
19587 ;;
19588 esac
19589 ;;
19590 lynxos*)
19591 ;;
19592 m88k*)
19593 ;;
19594 mvs*)
19595 case $cc_basename in
19596 cxx*)
19597 lt_prog_compiler_pic_CXX='-W c,exportall'
19598 ;;
19599 *)
19600 ;;
19601 esac
19602 ;;
19603 netbsd* | netbsdelf*-gnu)
19604 ;;
19605 *-mlibc)
19606 ;;
19607 *qnx* | *nto*)
19608 # QNX uses GNU C++, but need to define -shared option too, otherwise
19609 # it will coredump.
19610 lt_prog_compiler_pic_CXX='-fPIC -shared'
19611 ;;
19612 osf3* | osf4* | osf5*)
19613 case $cc_basename in
19614 KCC*)
19615 lt_prog_compiler_wl_CXX='--backend -Wl,'
19616 ;;
19617 RCC*)
19618 # Rational C++ 2.4.1
19619 lt_prog_compiler_pic_CXX='-pic'
19620 ;;
19621 cxx*)
19622 # Digital/Compaq C++
19623 lt_prog_compiler_wl_CXX='-Wl,'
19624 # Make sure the PIC flag is empty. It appears that all Alpha
19625 # Linux and Compaq Tru64 Unix objects are PIC.
19626 lt_prog_compiler_pic_CXX=
19627 lt_prog_compiler_static_CXX='-non_shared'
19628 ;;
19629 *)
19630 ;;
19631 esac
19632 ;;
19633 psos*)
19634 ;;
19635 serenity*)
19636 ;;
19637 solaris*)
19638 case $cc_basename in
19639 CC* | sunCC*)
19640 # Sun C++ 4.2, 5.x and Centerline C++
19641 lt_prog_compiler_pic_CXX='-KPIC'
19642 lt_prog_compiler_static_CXX='-Bstatic'
19643 lt_prog_compiler_wl_CXX='-Qoption ld '
19644 ;;
19645 gcx*)
19646 # Green Hills C++ Compiler
19647 lt_prog_compiler_pic_CXX='-PIC'
19648 ;;
19649 *)
19650 ;;
19651 esac
19652 ;;
19653 sunos4*)
19654 case $cc_basename in
19655 CC*)
19656 # Sun C++ 4.x
19657 lt_prog_compiler_pic_CXX='-pic'
19658 lt_prog_compiler_static_CXX='-Bstatic'
19659 ;;
19660 lcc*)
19661 # Lucid
19662 lt_prog_compiler_pic_CXX='-pic'
19663 ;;
19664 *)
19665 ;;
19666 esac
19667 ;;
19668 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19669 case $cc_basename in
19670 CC*)
19671 lt_prog_compiler_wl_CXX='-Wl,'
19672 lt_prog_compiler_pic_CXX='-KPIC'
19673 lt_prog_compiler_static_CXX='-Bstatic'
19674 ;;
19675 esac
19676 ;;
19677 tandem*)
19678 case $cc_basename in
19679 NCC*)
19680 # NonStop-UX NCC 3.20
19681 lt_prog_compiler_pic_CXX='-KPIC'
19682 ;;
19683 *)
19684 ;;
19685 esac
19686 ;;
19687 vxworks*)
19688 ;;
19689 *)
19690 lt_prog_compiler_can_build_shared_CXX=no
19691 ;;
19692 esac
19693 fi
19694
19695 case $host_os in
19696 # For platforms that do not support PIC, -DPIC is meaningless:
19697 *djgpp*)
19698 lt_prog_compiler_pic_CXX=
19699 ;;
19700 *)
19701 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19702 ;;
19703 esac
19704
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19706 printf %s "checking for $compiler option to produce PIC... " >&6; }
19707 if test ${lt_cv_prog_compiler_pic_CXX+y}
19708 then :
19709 printf %s "(cached) " >&6
19710 else case e in #(
19711 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19712 esac
19713 fi
19714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19715 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19716 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19717
19718 #
19719 # Check to make sure the PIC flag actually works.
19720 #
19721 if test -n "$lt_prog_compiler_pic_CXX"; then
19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19723 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19724 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19725 then :
19726 printf %s "(cached) " >&6
19727 else case e in #(
19728 e) lt_cv_prog_compiler_pic_works_CXX=no
19729 ac_outfile=conftest.$ac_objext
19730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19732 # Insert the option either (1) after the last *FLAGS variable, or
19733 # (2) before a word containing "conftest.", or (3) at the end.
19734 # Note that $ac_compile itself does not contain backslashes and begins
19735 # with a dollar sign (not a hyphen), so the echo should work correctly.
19736 # The option is referenced via a variable to avoid confusing sed.
19737 lt_compile=`echo "$ac_compile" | $SED \
19738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19740 -e 's:$: $lt_compiler_flag:'`
19741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19742 (eval "$lt_compile" 2>conftest.err)
19743 ac_status=$?
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 if (exit $ac_status) && test -s "$ac_outfile"; then
19747 # The compiler can only warn and ignore the option if not recognized
19748 # So say no if there are warnings other than the usual output.
19749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19752 lt_cv_prog_compiler_pic_works_CXX=yes
19753 fi
19754 fi
19755 $RM conftest*
19756 ;;
19757 esac
19758 fi
19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19760 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19761
19762 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19763 case $lt_prog_compiler_pic_CXX in
19764 "" | " "*) ;;
19765 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19766 esac
19767 else
19768 lt_prog_compiler_pic_CXX=
19769 lt_prog_compiler_can_build_shared_CXX=no
19770 fi
19771
19772 fi
19773
19774
19775
19776
19777
19778 #
19779 # Check to make sure the static flag actually works.
19780 #
19781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19783 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19784 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19785 then :
19786 printf %s "(cached) " >&6
19787 else case e in #(
19788 e) lt_cv_prog_compiler_static_works_CXX=no
19789 save_LDFLAGS=$LDFLAGS
19790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19793 # The linker can only warn and ignore the option if not recognized
19794 # So say no if there are warnings
19795 if test -s conftest.err; then
19796 # Append any errors to the config.log.
19797 cat conftest.err 1>&5
19798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800 if diff conftest.exp conftest.er2 >/dev/null; then
19801 lt_cv_prog_compiler_static_works_CXX=yes
19802 fi
19803 else
19804 lt_cv_prog_compiler_static_works_CXX=yes
19805 fi
19806 fi
19807 $RM -r conftest*
19808 LDFLAGS=$save_LDFLAGS
19809 ;;
19810 esac
19811 fi
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19813 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19814
19815 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19816 :
19817 else
19818 lt_prog_compiler_static_CXX=
19819 fi
19820
19821
19822
19823
19824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19825 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19826 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19827 then :
19828 printf %s "(cached) " >&6
19829 else case e in #(
19830 e) lt_cv_prog_compiler_c_o_CXX=no
19831 $RM -r conftest 2>/dev/null
19832 mkdir conftest
19833 cd conftest
19834 mkdir out
19835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19836
19837 lt_compiler_flag="-o out/conftest2.$ac_objext"
19838 # Insert the option either (1) after the last *FLAGS variable, or
19839 # (2) before a word containing "conftest.", or (3) at the end.
19840 # Note that $ac_compile itself does not contain backslashes and begins
19841 # with a dollar sign (not a hyphen), so the echo should work correctly.
19842 lt_compile=`echo "$ac_compile" | $SED \
19843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19845 -e 's:$: $lt_compiler_flag:'`
19846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19847 (eval "$lt_compile" 2>out/conftest.err)
19848 ac_status=$?
19849 cat out/conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19852 then
19853 # The compiler can only warn and ignore the option if not recognized
19854 # So say no if there are warnings
19855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19858 lt_cv_prog_compiler_c_o_CXX=yes
19859 fi
19860 fi
19861 chmod u+w . 2>&5
19862 $RM conftest*
19863 # SGI C++ compiler will create directory out/ii_files/ for
19864 # template instantiation
19865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19866 $RM out/* && rmdir out
19867 cd ..
19868 $RM -r conftest
19869 $RM conftest*
19870 ;;
19871 esac
19872 fi
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19874 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19875
19876
19877
19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19879 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19880 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19881 then :
19882 printf %s "(cached) " >&6
19883 else case e in #(
19884 e) lt_cv_prog_compiler_c_o_CXX=no
19885 $RM -r conftest 2>/dev/null
19886 mkdir conftest
19887 cd conftest
19888 mkdir out
19889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19890
19891 lt_compiler_flag="-o out/conftest2.$ac_objext"
19892 # Insert the option either (1) after the last *FLAGS variable, or
19893 # (2) before a word containing "conftest.", or (3) at the end.
19894 # Note that $ac_compile itself does not contain backslashes and begins
19895 # with a dollar sign (not a hyphen), so the echo should work correctly.
19896 lt_compile=`echo "$ac_compile" | $SED \
19897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899 -e 's:$: $lt_compiler_flag:'`
19900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19901 (eval "$lt_compile" 2>out/conftest.err)
19902 ac_status=$?
19903 cat out/conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19906 then
19907 # The compiler can only warn and ignore the option if not recognized
19908 # So say no if there are warnings
19909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19912 lt_cv_prog_compiler_c_o_CXX=yes
19913 fi
19914 fi
19915 chmod u+w . 2>&5
19916 $RM conftest*
19917 # SGI C++ compiler will create directory out/ii_files/ for
19918 # template instantiation
19919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19920 $RM out/* && rmdir out
19921 cd ..
19922 $RM -r conftest
19923 $RM conftest*
19924 ;;
19925 esac
19926 fi
19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19928 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19929
19930
19931
19932
19933 hard_links=nottested
19934 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19935 # do not overwrite the value of need_locks provided by the user
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19937 printf %s "checking if we can lock with hard links... " >&6; }
19938 hard_links=yes
19939 $RM conftest*
19940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19941 touch conftest.a
19942 ln conftest.a conftest.b 2>&5 || hard_links=no
19943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19945 printf "%s\n" "$hard_links" >&6; }
19946 if test no = "$hard_links"; then
19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19948 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19949 need_locks=warn
19950 fi
19951 else
19952 need_locks=no
19953 fi
19954
19955
19956
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19958 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19959
19960 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19961 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19962 case $host_os in
19963 aix[4-9]*)
19964 # If we're using GNU nm, then we don't want the "-C" option.
19965 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19966 # Without the "-l" option, or with the "-B" option, AIX nm treats
19967 # weak defined symbols like other global defined symbols, whereas
19968 # GNU nm marks them as "W".
19969 # While the 'weak' keyword is ignored in the Export File, we need
19970 # it in the Import File for the 'aix-soname' feature, so we have
19971 # to replace the "-B" option with "-P" for AIX nm.
19972 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19973 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
19974 else
19975 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
19976 fi
19977 ;;
19978 pw32*)
19979 export_symbols_cmds_CXX=$ltdll_cmds
19980 ;;
19981 cygwin* | mingw* | windows* | cegcc*)
19982 case $cc_basename in
19983 cl* | icl*)
19984 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19985 ;;
19986 *)
19987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19988 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19989 ;;
19990 esac
19991 ;;
19992 linux* | k*bsd*-gnu | gnu*)
19993 link_all_deplibs_CXX=no
19994 ;;
19995 *)
19996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19997 ;;
19998 esac
19999
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20001 printf "%s\n" "$ld_shlibs_CXX" >&6; }
20002 test no = "$ld_shlibs_CXX" && can_build_shared=no
20003
20004 with_gnu_ld_CXX=$with_gnu_ld
20005
20006
20007
20008
20009
20010
20011 #
20012 # Do we need to explicitly link libc?
20013 #
20014 case "x$archive_cmds_need_lc_CXX" in
20015 x|xyes)
20016 # Assume -lc should be added
20017 archive_cmds_need_lc_CXX=yes
20018
20019 if test yes,yes = "$GCC,$enable_shared"; then
20020 case $archive_cmds_CXX in
20021 *'~'*)
20022 # FIXME: we may have to deal with multi-command sequences.
20023 ;;
20024 '$CC '*)
20025 # Test whether the compiler implicitly links with -lc since on some
20026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20027 # to ld, don't add -lc before -lgcc.
20028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20029 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20030 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
20031 then :
20032 printf %s "(cached) " >&6
20033 else case e in #(
20034 e) $RM conftest*
20035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20036
20037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20038 (eval $ac_compile) 2>&5
20039 ac_status=$?
20040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20041 test $ac_status = 0; } 2>conftest.err; then
20042 soname=conftest
20043 lib=conftest
20044 libobjs=conftest.$ac_objext
20045 deplibs=
20046 wl=$lt_prog_compiler_wl_CXX
20047 pic_flag=$lt_prog_compiler_pic_CXX
20048 compiler_flags=-v
20049 linker_flags=-v
20050 verstring=
20051 output_objdir=.
20052 libname=conftest
20053 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20054 allow_undefined_flag_CXX=
20055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20056 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20057 ac_status=$?
20058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20059 test $ac_status = 0; }
20060 then
20061 lt_cv_archive_cmds_need_lc_CXX=no
20062 else
20063 lt_cv_archive_cmds_need_lc_CXX=yes
20064 fi
20065 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20066 else
20067 cat conftest.err 1>&5
20068 fi
20069 $RM conftest*
20070 ;;
20071 esac
20072 fi
20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20074 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20075 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20076 ;;
20077 esac
20078 fi
20079 ;;
20080 esac
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20144 printf %s "checking dynamic linker characteristics... " >&6; }
20145
20146 library_names_spec=
20147 libname_spec='lib$name'
20148 soname_spec=
20149 shrext_cmds=.so
20150 postinstall_cmds=
20151 postuninstall_cmds=
20152 finish_cmds=
20153 finish_eval=
20154 shlibpath_var=
20155 shlibpath_overrides_runpath=unknown
20156 version_type=none
20157 dynamic_linker="$host_os ld.so"
20158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20159 need_lib_prefix=unknown
20160 hardcode_into_libs=no
20161
20162 # when you set need_version to no, make sure it does not cause -set_version
20163 # flags to be left without arguments
20164 need_version=unknown
20165
20166
20167
20168 case $host_os in
20169 aix3*)
20170 version_type=linux # correct to gnu/linux during the next big refactor
20171 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20172 shlibpath_var=LIBPATH
20173
20174 # AIX 3 has no versioning support, so we append a major version to the name.
20175 soname_spec='$libname$release$shared_ext$major'
20176 ;;
20177
20178 aix[4-9]*)
20179 version_type=linux # correct to gnu/linux during the next big refactor
20180 need_lib_prefix=no
20181 need_version=no
20182 hardcode_into_libs=yes
20183 if test ia64 = "$host_cpu"; then
20184 # AIX 5 supports IA64
20185 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20186 shlibpath_var=LD_LIBRARY_PATH
20187 else
20188 # With GCC up to 2.95.x, collect2 would create an import file
20189 # for dependence libraries. The import file would start with
20190 # the line '#! .'. This would cause the generated library to
20191 # depend on '.', always an invalid library. This was fixed in
20192 # development snapshots of GCC prior to 3.0.
20193 case $host_os in
20194 aix4 | aix4.[01] | aix4.[01].*)
20195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20196 echo ' yes '
20197 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20198 :
20199 else
20200 can_build_shared=no
20201 fi
20202 ;;
20203 esac
20204 # Using Import Files as archive members, it is possible to support
20205 # filename-based versioning of shared library archives on AIX. While
20206 # this would work for both with and without runtime linking, it will
20207 # prevent static linking of such archives. So we do filename-based
20208 # shared library versioning with .so extension only, which is used
20209 # when both runtime linking and shared linking is enabled.
20210 # Unfortunately, runtime linking may impact performance, so we do
20211 # not want this to be the default eventually. Also, we use the
20212 # versioned .so libs for executables only if there is the -brtl
20213 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
20214 # To allow for filename-based versioning support, we need to create
20215 # libNAME.so.V as an archive file, containing:
20216 # *) an Import File, referring to the versioned filename of the
20217 # archive as well as the shared archive member, telling the
20218 # bitwidth (32 or 64) of that shared object, and providing the
20219 # list of exported symbols of that shared object, eventually
20220 # decorated with the 'weak' keyword
20221 # *) the shared object with the F_LOADONLY flag set, to really avoid
20222 # it being seen by the linker.
20223 # At run time we better use the real file rather than another symlink,
20224 # but for link time we create the symlink libNAME.so -> libNAME.so.V
20225
20226 case $with_aix_soname,$aix_use_runtimelinking in
20227 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20228 # soname into executable. Probably we can add versioning support to
20229 # collect2, so additional links can be useful in future.
20230 aix,yes) # traditional libtool
20231 dynamic_linker='AIX unversionable lib.so'
20232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20233 # instead of lib<name>.a to let people know that these are not
20234 # typical AIX shared libraries.
20235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20236 ;;
20237 aix,no) # traditional AIX only
20238 dynamic_linker='AIX lib.a(lib.so.V)'
20239 # We preserve .a as extension for shared libraries through AIX4.2
20240 # and later when we are not doing run time linking.
20241 library_names_spec='$libname$release.a $libname.a'
20242 soname_spec='$libname$release$shared_ext$major'
20243 ;;
20244 svr4,*) # full svr4 only
20245 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20246 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20247 # We do not specify a path in Import Files, so LIBPATH fires.
20248 shlibpath_overrides_runpath=yes
20249 ;;
20250 *,yes) # both, prefer svr4
20251 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20252 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20253 # unpreferred sharedlib libNAME.a needs extra handling
20254 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
20255 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
20256 # We do not specify a path in Import Files, so LIBPATH fires.
20257 shlibpath_overrides_runpath=yes
20258 ;;
20259 *,no) # both, prefer aix
20260 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20261 library_names_spec='$libname$release.a $libname.a'
20262 soname_spec='$libname$release$shared_ext$major'
20263 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20264 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
20265 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
20266 ;;
20267 esac
20268 shlibpath_var=LIBPATH
20269 fi
20270 ;;
20271
20272 amigaos*)
20273 case $host_cpu in
20274 powerpc)
20275 # Since July 2007 AmigaOS4 officially supports .so libraries.
20276 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20278 ;;
20279 m68k)
20280 library_names_spec='$libname.ixlibrary $libname.a'
20281 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20282 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
20283 ;;
20284 esac
20285 ;;
20286
20287 beos*)
20288 library_names_spec='$libname$shared_ext'
20289 dynamic_linker="$host_os ld.so"
20290 shlibpath_var=LIBRARY_PATH
20291 ;;
20292
20293 bsdi[45]*)
20294 version_type=linux # correct to gnu/linux during the next big refactor
20295 need_version=no
20296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20297 soname_spec='$libname$release$shared_ext$major'
20298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20302 # the default ld.so.conf also contains /usr/contrib/lib and
20303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20304 # libtool to hard-code these into programs
20305 ;;
20306
20307 cygwin* | mingw* | windows* | pw32* | cegcc*)
20308 version_type=windows
20309 shrext_cmds=.dll
20310 need_version=no
20311 need_lib_prefix=no
20312
20313 case $GCC,$cc_basename in
20314 yes,*)
20315 # gcc
20316 library_names_spec='$libname.dll.a'
20317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20318 # If user builds GCC with multilib enabled,
20319 # it should just install on $(libdir)
20320 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
20321 if test xyes = x"$multilib"; then
20322 postinstall_cmds='base_file=`basename \$file`~
20323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20324 dldir=$destdir/`dirname \$dlpath`~
20325 $install_prog $dir/$dlname $destdir/$dlname~
20326 chmod a+x $destdir/$dlname~
20327 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20328 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
20329 fi'
20330 else
20331 postinstall_cmds='base_file=`basename \$file`~
20332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20333 dldir=$destdir/`dirname \$dlpath`~
20334 test -d \$dldir || mkdir -p \$dldir~
20335 $install_prog $dir/$dlname \$dldir/$dlname~
20336 chmod a+x \$dldir/$dlname~
20337 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20338 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20339 fi'
20340 fi
20341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20342 dlpath=$dir/\$dldll~
20343 $RM \$dlpath'
20344 shlibpath_overrides_runpath=yes
20345
20346 case $host_os in
20347 cygwin*)
20348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20349 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20350
20351 ;;
20352 mingw* | windows* | cegcc*)
20353 # MinGW DLLs use traditional 'lib' prefix
20354 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20355 ;;
20356 pw32*)
20357 # pw32 DLLs use 'pw' prefix rather than 'lib'
20358 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20359 ;;
20360 esac
20361 dynamic_linker='Win32 ld.exe'
20362 ;;
20363
20364 *,cl* | *,icl*)
20365 # Native MSVC or ICC
20366 libname_spec='$name'
20367 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20368 library_names_spec='$libname.dll.lib'
20369
20370 case $build_os in
20371 mingw* | windows*)
20372 sys_lib_search_path_spec=
20373 lt_save_ifs=$IFS
20374 IFS=';'
20375 for lt_path in $LIB
20376 do
20377 IFS=$lt_save_ifs
20378 # Let DOS variable expansion print the short 8.3 style file name.
20379 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20380 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20381 done
20382 IFS=$lt_save_ifs
20383 # Convert to MSYS style.
20384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20385 ;;
20386 cygwin*)
20387 # Convert to unix form, then to dos form, then back to unix form
20388 # but this time dos style (no spaces!) so that the unix form looks
20389 # like /cygdrive/c/PROGRA~1:/cygdr...
20390 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20391 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20392 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20393 ;;
20394 *)
20395 sys_lib_search_path_spec=$LIB
20396 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20397 # It is most probably a Windows format PATH.
20398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20399 else
20400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20401 fi
20402 # FIXME: find the short name or the path components, as spaces are
20403 # common. (e.g. "Program Files" -> "PROGRA~1")
20404 ;;
20405 esac
20406
20407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20408 postinstall_cmds='base_file=`basename \$file`~
20409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20410 dldir=$destdir/`dirname \$dlpath`~
20411 test -d \$dldir || mkdir -p \$dldir~
20412 $install_prog $dir/$dlname \$dldir/$dlname'
20413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20414 dlpath=$dir/\$dldll~
20415 $RM \$dlpath'
20416 shlibpath_overrides_runpath=yes
20417 dynamic_linker='Win32 link.exe'
20418 ;;
20419
20420 *)
20421 # Assume MSVC and ICC wrapper
20422 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20423 dynamic_linker='Win32 ld.exe'
20424 ;;
20425 esac
20426 # FIXME: first we should search . and the directory the executable is in
20427 shlibpath_var=PATH
20428 ;;
20429
20430 darwin* | rhapsody*)
20431 dynamic_linker="$host_os dyld"
20432 version_type=darwin
20433 need_lib_prefix=no
20434 need_version=no
20435 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20436 soname_spec='$libname$release$major$shared_ext'
20437 shlibpath_overrides_runpath=yes
20438 shlibpath_var=DYLD_LIBRARY_PATH
20439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20440
20441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20442 ;;
20443
20444 dgux*)
20445 version_type=linux # correct to gnu/linux during the next big refactor
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20449 soname_spec='$libname$release$shared_ext$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 ;;
20452
20453 freebsd* | dragonfly* | midnightbsd*)
20454 # DragonFly does not have aout. When/if they implement a new
20455 # versioning mechanism, adjust this.
20456 if test -x /usr/bin/objformat; then
20457 objformat=`/usr/bin/objformat`
20458 else
20459 case $host_os in
20460 freebsd[23].*) objformat=aout ;;
20461 *) objformat=elf ;;
20462 esac
20463 fi
20464 version_type=freebsd-$objformat
20465 case $version_type in
20466 freebsd-elf*)
20467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20468 soname_spec='$libname$release$shared_ext$major'
20469 need_version=no
20470 need_lib_prefix=no
20471 ;;
20472 freebsd-*)
20473 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20474 need_version=yes
20475 ;;
20476 esac
20477 case $host_cpu in
20478 powerpc64)
20479 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
20480 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20483 int test_pointer_size[sizeof (void *) - 5];
20484
20485 _ACEOF
20486 if ac_fn_cxx_try_compile "$LINENO"
20487 then :
20488 shlibpath_var=LD_LIBRARY_PATH
20489 else case e in #(
20490 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
20491 esac
20492 fi
20493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20494 ;;
20495 *)
20496 shlibpath_var=LD_LIBRARY_PATH
20497 ;;
20498 esac
20499 case $host_os in
20500 freebsd2.*)
20501 shlibpath_overrides_runpath=yes
20502 ;;
20503 freebsd3.[01]* | freebsdelf3.[01]*)
20504 shlibpath_overrides_runpath=yes
20505 hardcode_into_libs=yes
20506 ;;
20507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20509 shlibpath_overrides_runpath=no
20510 hardcode_into_libs=yes
20511 ;;
20512 *) # from 4.6 on, and DragonFly
20513 shlibpath_overrides_runpath=yes
20514 hardcode_into_libs=yes
20515 ;;
20516 esac
20517 ;;
20518
20519 haiku*)
20520 version_type=linux # correct to gnu/linux during the next big refactor
20521 need_lib_prefix=no
20522 need_version=no
20523 dynamic_linker="$host_os runtime_loader"
20524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20525 soname_spec='$libname$release$shared_ext$major'
20526 shlibpath_var=LIBRARY_PATH
20527 shlibpath_overrides_runpath=no
20528 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
20529 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
20530 hardcode_into_libs=no
20531 ;;
20532
20533 hpux9* | hpux10* | hpux11*)
20534 # Give a soname corresponding to the major version so that dld.sl refuses to
20535 # link against other versions.
20536 version_type=sunos
20537 need_lib_prefix=no
20538 need_version=no
20539 case $host_cpu in
20540 ia64*)
20541 shrext_cmds='.so'
20542 hardcode_into_libs=yes
20543 dynamic_linker="$host_os dld.so"
20544 shlibpath_var=LD_LIBRARY_PATH
20545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20547 soname_spec='$libname$release$shared_ext$major'
20548 if test 32 = "$HPUX_IA64_MODE"; then
20549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20550 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20551 else
20552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20553 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20554 fi
20555 ;;
20556 hppa*64*)
20557 shrext_cmds='.sl'
20558 hardcode_into_libs=yes
20559 dynamic_linker="$host_os dld.sl"
20560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20563 soname_spec='$libname$release$shared_ext$major'
20564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20566 ;;
20567 *)
20568 shrext_cmds='.sl'
20569 dynamic_linker="$host_os dld.sl"
20570 shlibpath_var=SHLIB_PATH
20571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20573 soname_spec='$libname$release$shared_ext$major'
20574 ;;
20575 esac
20576 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20577 postinstall_cmds='chmod 555 $lib'
20578 # or fails outright, so override atomically:
20579 install_override_mode=555
20580 ;;
20581
20582 interix[3-9]*)
20583 version_type=linux # correct to gnu/linux during the next big refactor
20584 need_lib_prefix=no
20585 need_version=no
20586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20587 soname_spec='$libname$release$shared_ext$major'
20588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=no
20591 hardcode_into_libs=yes
20592 ;;
20593
20594 irix5* | irix6* | nonstopux*)
20595 case $host_os in
20596 nonstopux*) version_type=nonstopux ;;
20597 *)
20598 if test yes = "$lt_cv_prog_gnu_ld"; then
20599 version_type=linux # correct to gnu/linux during the next big refactor
20600 else
20601 version_type=irix
20602 fi ;;
20603 esac
20604 need_lib_prefix=no
20605 need_version=no
20606 soname_spec='$libname$release$shared_ext$major'
20607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20608 case $host_os in
20609 irix5* | nonstopux*)
20610 libsuff= shlibsuff=
20611 ;;
20612 *)
20613 case $LD in # libtool.m4 will add one of these switches to LD
20614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20615 libsuff= shlibsuff= libmagic=32-bit;;
20616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20617 libsuff=32 shlibsuff=N32 libmagic=N32;;
20618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20619 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20620 *) libsuff= shlibsuff= libmagic=never-match;;
20621 esac
20622 ;;
20623 esac
20624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20625 shlibpath_overrides_runpath=no
20626 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20627 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20628 hardcode_into_libs=yes
20629 ;;
20630
20631 # No shared lib support for Linux oldld, aout, or coff.
20632 linux*oldld* | linux*aout* | linux*coff*)
20633 dynamic_linker=no
20634 ;;
20635
20636 linux*android*)
20637 version_type=none # Android doesn't support versioned libraries.
20638 need_lib_prefix=no
20639 need_version=no
20640 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
20641 soname_spec='$libname$release$shared_ext'
20642 finish_cmds=
20643 shlibpath_var=LD_LIBRARY_PATH
20644 shlibpath_overrides_runpath=yes
20645
20646 # This implies no fast_install, which is unacceptable.
20647 # Some rework will be needed to allow for fast_install
20648 # before this can be enabled.
20649 hardcode_into_libs=yes
20650
20651 dynamic_linker='Android linker'
20652 # -rpath works at least for libraries that are not overridden by
20653 # libraries installed in system locations.
20654 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20655 ;;
20656
20657 # This must be glibc/ELF.
20658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20659 version_type=linux # correct to gnu/linux during the next big refactor
20660 need_lib_prefix=no
20661 need_version=no
20662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20663 soname_spec='$libname$release$shared_ext$major'
20664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20665 shlibpath_var=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath=no
20667
20668 # Some binutils ld are patched to set DT_RUNPATH
20669 if test ${lt_cv_shlibpath_overrides_runpath+y}
20670 then :
20671 printf %s "(cached) " >&6
20672 else case e in #(
20673 e) lt_cv_shlibpath_overrides_runpath=no
20674 save_LDFLAGS=$LDFLAGS
20675 save_libdir=$libdir
20676 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20677 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20680
20681 int
20682 main (void)
20683 {
20684
20685 ;
20686 return 0;
20687 }
20688 _ACEOF
20689 if ac_fn_cxx_try_link "$LINENO"
20690 then :
20691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
20692 then :
20693 lt_cv_shlibpath_overrides_runpath=yes
20694 fi
20695 fi
20696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20697 conftest$ac_exeext conftest.$ac_ext
20698 LDFLAGS=$save_LDFLAGS
20699 libdir=$save_libdir
20700 ;;
20701 esac
20702 fi
20703
20704 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20705
20706 # This implies no fast_install, which is unacceptable.
20707 # Some rework will be needed to allow for fast_install
20708 # before this can be enabled.
20709 hardcode_into_libs=yes
20710
20711 # Ideally, we could use ldconfig to report *all* directories which are
20712 # searched for libraries, however this is still not possible. Aside from not
20713 # being certain /sbin/ldconfig is available, command
20714 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20715 # even though it is searched at run-time. Try to do the best guess by
20716 # appending ld.so.conf contents (and includes) to the search path.
20717 if test -f /etc/ld.so.conf; then
20718 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' ' '`
20719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20720 fi
20721
20722 # We used to test for /lib/ld.so.1 and disable shared libraries on
20723 # powerpc, because MkLinux only supported shared libraries with the
20724 # GNU dynamic linker. Since this was broken with cross compilers,
20725 # most powerpc-linux boxes support dynamic linking these days and
20726 # people can always --disable-shared, the test was removed, and we
20727 # assume the GNU/Linux dynamic linker is in use.
20728 dynamic_linker='GNU/Linux ld.so'
20729 ;;
20730
20731 netbsdelf*-gnu)
20732 version_type=linux
20733 need_lib_prefix=no
20734 need_version=no
20735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20736 soname_spec='$libname$release$shared_ext$major'
20737 shlibpath_var=LD_LIBRARY_PATH
20738 shlibpath_overrides_runpath=no
20739 hardcode_into_libs=yes
20740 dynamic_linker='NetBSD ld.elf_so'
20741 ;;
20742
20743 netbsdelf*-gnu)
20744 version_type=linux
20745 need_lib_prefix=no
20746 need_version=no
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 shlibpath_var=LD_LIBRARY_PATH
20750 shlibpath_overrides_runpath=no
20751 hardcode_into_libs=yes
20752 dynamic_linker='NetBSD ld.elf_so'
20753 ;;
20754
20755 netbsd*)
20756 version_type=sunos
20757 need_lib_prefix=no
20758 need_version=no
20759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20762 dynamic_linker='NetBSD (a.out) ld.so'
20763 else
20764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20765 soname_spec='$libname$release$shared_ext$major'
20766 dynamic_linker='NetBSD ld.elf_so'
20767 fi
20768 shlibpath_var=LD_LIBRARY_PATH
20769 shlibpath_overrides_runpath=yes
20770 hardcode_into_libs=yes
20771 ;;
20772
20773 *-mlibc)
20774 version_type=linux # correct to gnu/linux during the next big refactor
20775 need_lib_prefix=no
20776 need_version=no
20777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20778 soname_spec='$libname$release$shared_ext$major'
20779 dynamic_linker='mlibc ld.so'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=no
20782 hardcode_into_libs=yes
20783 ;;
20784
20785 newsos6)
20786 version_type=linux # correct to gnu/linux during the next big refactor
20787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20788 shlibpath_var=LD_LIBRARY_PATH
20789 shlibpath_overrides_runpath=yes
20790 ;;
20791
20792 *nto* | *qnx*)
20793 version_type=qnx
20794 need_lib_prefix=no
20795 need_version=no
20796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20797 soname_spec='$libname$release$shared_ext$major'
20798 shlibpath_var=LD_LIBRARY_PATH
20799 shlibpath_overrides_runpath=no
20800 hardcode_into_libs=yes
20801 dynamic_linker='ldqnx.so'
20802 ;;
20803
20804 openbsd*)
20805 version_type=sunos
20806 sys_lib_dlsearch_path_spec=/usr/lib
20807 need_lib_prefix=no
20808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20809 need_version=no
20810 else
20811 need_version=yes
20812 fi
20813 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=yes
20817 ;;
20818
20819 os2*)
20820 libname_spec='$name'
20821 version_type=windows
20822 shrext_cmds=.dll
20823 need_version=no
20824 need_lib_prefix=no
20825 # OS/2 can only load a DLL with a base name of 8 characters or less.
20826 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20827 v=$($ECHO $release$versuffix | tr -d .-);
20828 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20829 $ECHO $n$v`$shared_ext'
20830 library_names_spec='${libname}_dll.$libext'
20831 dynamic_linker='OS/2 ld.exe'
20832 shlibpath_var=BEGINLIBPATH
20833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20835 postinstall_cmds='base_file=`basename \$file`~
20836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20837 dldir=$destdir/`dirname \$dlpath`~
20838 test -d \$dldir || mkdir -p \$dldir~
20839 $install_prog $dir/$dlname \$dldir/$dlname~
20840 chmod a+x \$dldir/$dlname~
20841 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20842 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20843 fi'
20844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20845 dlpath=$dir/\$dldll~
20846 $RM \$dlpath'
20847 ;;
20848
20849 osf3* | osf4* | osf5*)
20850 version_type=osf
20851 need_lib_prefix=no
20852 need_version=no
20853 soname_spec='$libname$release$shared_ext$major'
20854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20855 shlibpath_var=LD_LIBRARY_PATH
20856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20858 ;;
20859
20860 rdos*)
20861 dynamic_linker=no
20862 ;;
20863
20864 serenity*)
20865 version_type=linux # correct to gnu/linux during the next big refactor
20866 need_lib_prefix=no
20867 need_version=no
20868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20869 soname_spec='$libname$release$shared_ext$major'
20870 shlibpath_var=LD_LIBRARY_PATH
20871 shlibpath_overrides_runpath=no
20872 dynamic_linker='SerenityOS LibELF'
20873 ;;
20874
20875 solaris*)
20876 version_type=linux # correct to gnu/linux during the next big refactor
20877 need_lib_prefix=no
20878 need_version=no
20879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20880 soname_spec='$libname$release$shared_ext$major'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes
20883 hardcode_into_libs=yes
20884 # ldd complains unless libraries are executable
20885 postinstall_cmds='chmod +x $lib'
20886 ;;
20887
20888 sunos4*)
20889 version_type=sunos
20890 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20892 shlibpath_var=LD_LIBRARY_PATH
20893 shlibpath_overrides_runpath=yes
20894 if test yes = "$with_gnu_ld"; then
20895 need_lib_prefix=no
20896 fi
20897 need_version=yes
20898 ;;
20899
20900 sysv4 | sysv4.3*)
20901 version_type=linux # correct to gnu/linux during the next big refactor
20902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20903 soname_spec='$libname$release$shared_ext$major'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 case $host_vendor in
20906 sni)
20907 shlibpath_overrides_runpath=no
20908 need_lib_prefix=no
20909 runpath_var=LD_RUN_PATH
20910 ;;
20911 siemens)
20912 need_lib_prefix=no
20913 ;;
20914 motorola)
20915 need_lib_prefix=no
20916 need_version=no
20917 shlibpath_overrides_runpath=no
20918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20919 ;;
20920 esac
20921 ;;
20922
20923 sysv4*MP*)
20924 if test -d /usr/nec; then
20925 version_type=linux # correct to gnu/linux during the next big refactor
20926 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20927 soname_spec='$libname$shared_ext.$major'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 fi
20930 ;;
20931
20932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20933 version_type=sco
20934 need_lib_prefix=no
20935 need_version=no
20936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20937 soname_spec='$libname$release$shared_ext$major'
20938 shlibpath_var=LD_LIBRARY_PATH
20939 shlibpath_overrides_runpath=yes
20940 hardcode_into_libs=yes
20941 if test yes = "$with_gnu_ld"; then
20942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20943 else
20944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20945 case $host_os in
20946 sco3.2v5*)
20947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20948 ;;
20949 esac
20950 fi
20951 sys_lib_dlsearch_path_spec='/usr/lib'
20952 ;;
20953
20954 tpf*)
20955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20956 version_type=linux # correct to gnu/linux during the next big refactor
20957 need_lib_prefix=no
20958 need_version=no
20959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20960 shlibpath_var=LD_LIBRARY_PATH
20961 shlibpath_overrides_runpath=no
20962 hardcode_into_libs=yes
20963 ;;
20964
20965 uts4*)
20966 version_type=linux # correct to gnu/linux during the next big refactor
20967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20968 soname_spec='$libname$release$shared_ext$major'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 ;;
20971
20972 emscripten*)
20973 version_type=none
20974 need_lib_prefix=no
20975 need_version=no
20976 library_names_spec='$libname$release$shared_ext'
20977 soname_spec='$libname$release$shared_ext'
20978 finish_cmds=
20979 dynamic_linker="Emscripten linker"
20980 lt_prog_compiler_wl_CXX=
20981 lt_prog_compiler_pic_CXX=
20982 lt_prog_compiler_static_CXX=
20983
20984
20985 # C++ specific cases for pic, static, wl, etc.
20986 if test yes = "$GXX"; then
20987 lt_prog_compiler_wl_CXX='-Wl,'
20988 lt_prog_compiler_static_CXX='-static'
20989
20990 case $host_os in
20991 aix*)
20992 # All AIX code is PIC.
20993 if test ia64 = "$host_cpu"; then
20994 # AIX 5 now supports IA64 processor
20995 lt_prog_compiler_static_CXX='-Bstatic'
20996 fi
20997 lt_prog_compiler_pic_CXX='-fPIC'
20998 ;;
20999
21000 amigaos*)
21001 case $host_cpu in
21002 powerpc)
21003 # see comment about AmigaOS4 .so support
21004 lt_prog_compiler_pic_CXX='-fPIC'
21005 ;;
21006 m68k)
21007 # FIXME: we need at least 68020 code to build shared libraries, but
21008 # adding the '-m68020' flag to GCC prevents building anything better,
21009 # like '-m68040'.
21010 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21011 ;;
21012 esac
21013 ;;
21014
21015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21016 # PIC is the default for these OSes.
21017 ;;
21018 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
21019 # This hack is so that the source file can tell whether it is being
21020 # built for inclusion in a dll (and should export symbols for example).
21021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21022 # (--disable-auto-import) libraries
21023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21024 case $host_os in
21025 os2*)
21026 lt_prog_compiler_static_CXX='$wl-static'
21027 ;;
21028 esac
21029 ;;
21030 darwin* | rhapsody*)
21031 # PIC is the default on this platform
21032 # Common symbols not allowed in MH_DYLIB files
21033 lt_prog_compiler_pic_CXX='-fno-common'
21034 ;;
21035 *djgpp*)
21036 # DJGPP does not support shared libraries at all
21037 lt_prog_compiler_pic_CXX=
21038 ;;
21039 haiku*)
21040 # PIC is the default for Haiku.
21041 # The "-static" flag exists, but is broken.
21042 lt_prog_compiler_static_CXX=
21043 ;;
21044 interix[3-9]*)
21045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21046 # Instead, we relocate shared libraries at runtime.
21047 ;;
21048 sysv4*MP*)
21049 if test -d /usr/nec; then
21050 lt_prog_compiler_pic_CXX=-Kconform_pic
21051 fi
21052 ;;
21053 hpux*)
21054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21056 # sets the default TLS model and affects inlining.
21057 case $host_cpu in
21058 hppa*64*)
21059 ;;
21060 *)
21061 lt_prog_compiler_pic_CXX='-fPIC'
21062 ;;
21063 esac
21064 ;;
21065 *qnx* | *nto*)
21066 # QNX uses GNU C++, but need to define -shared option too, otherwise
21067 # it will coredump.
21068 lt_prog_compiler_pic_CXX='-fPIC -shared'
21069 ;;
21070 *)
21071 lt_prog_compiler_pic_CXX='-fPIC'
21072 ;;
21073 esac
21074 else
21075 case $host_os in
21076 aix[4-9]*)
21077 # All AIX code is PIC.
21078 if test ia64 = "$host_cpu"; then
21079 # AIX 5 now supports IA64 processor
21080 lt_prog_compiler_static_CXX='-Bstatic'
21081 else
21082 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21083 fi
21084 ;;
21085 chorus*)
21086 case $cc_basename in
21087 cxch68*)
21088 # Green Hills C++ Compiler
21089 # _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"
21090 ;;
21091 esac
21092 ;;
21093 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
21094 # This hack is so that the source file can tell whether it is being
21095 # built for inclusion in a dll (and should export symbols for example).
21096 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21097 ;;
21098 dgux*)
21099 case $cc_basename in
21100 ec++*)
21101 lt_prog_compiler_pic_CXX='-KPIC'
21102 ;;
21103 ghcx*)
21104 # Green Hills C++ Compiler
21105 lt_prog_compiler_pic_CXX='-pic'
21106 ;;
21107 *)
21108 ;;
21109 esac
21110 ;;
21111 freebsd* | dragonfly* | midnightbsd*)
21112 # FreeBSD uses GNU C++
21113 ;;
21114 hpux9* | hpux10* | hpux11*)
21115 case $cc_basename in
21116 CC*)
21117 lt_prog_compiler_wl_CXX='-Wl,'
21118 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21119 if test ia64 != "$host_cpu"; then
21120 lt_prog_compiler_pic_CXX='+Z'
21121 fi
21122 ;;
21123 aCC*)
21124 lt_prog_compiler_wl_CXX='-Wl,'
21125 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21126 case $host_cpu in
21127 hppa*64*|ia64*)
21128 # +Z the default
21129 ;;
21130 *)
21131 lt_prog_compiler_pic_CXX='+Z'
21132 ;;
21133 esac
21134 ;;
21135 *)
21136 ;;
21137 esac
21138 ;;
21139 interix*)
21140 # This is c89, which is MS Visual C++ (no shared libs)
21141 # Anyone wants to do a port?
21142 ;;
21143 irix5* | irix6* | nonstopux*)
21144 case $cc_basename in
21145 CC*)
21146 lt_prog_compiler_wl_CXX='-Wl,'
21147 lt_prog_compiler_static_CXX='-non_shared'
21148 # CC pic flag -KPIC is the default.
21149 ;;
21150 *)
21151 ;;
21152 esac
21153 ;;
21154 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21155 case $cc_basename in
21156 KCC*)
21157 # KAI C++ Compiler
21158 lt_prog_compiler_wl_CXX='--backend -Wl,'
21159 lt_prog_compiler_pic_CXX='-fPIC'
21160 ;;
21161 ecpc* )
21162 # old Intel C++ for x86_64, which still supported -KPIC.
21163 lt_prog_compiler_wl_CXX='-Wl,'
21164 lt_prog_compiler_pic_CXX='-KPIC'
21165 lt_prog_compiler_static_CXX='-static'
21166 ;;
21167 icpc* )
21168 # Intel C++, used to be incompatible with GCC.
21169 # ICC 10 doesn't accept -KPIC any more.
21170 lt_prog_compiler_wl_CXX='-Wl,'
21171 lt_prog_compiler_pic_CXX='-fPIC'
21172 lt_prog_compiler_static_CXX='-static'
21173 ;;
21174 pgCC* | pgcpp*)
21175 # Portland Group C++ compiler
21176 lt_prog_compiler_wl_CXX='-Wl,'
21177 lt_prog_compiler_pic_CXX='-fpic'
21178 lt_prog_compiler_static_CXX='-Bstatic'
21179 ;;
21180 cxx*)
21181 # Compaq C++
21182 # Make sure the PIC flag is empty. It appears that all Alpha
21183 # Linux and Compaq Tru64 Unix objects are PIC.
21184 lt_prog_compiler_pic_CXX=
21185 lt_prog_compiler_static_CXX='-non_shared'
21186 ;;
21187 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21188 # IBM XL 8.0, 9.0 on PPC and BlueGene
21189 lt_prog_compiler_wl_CXX='-Wl,'
21190 lt_prog_compiler_pic_CXX='-qpic'
21191 lt_prog_compiler_static_CXX='-qstaticlink'
21192 ;;
21193 *)
21194 case `$CC -V 2>&1 | $SED 5q` in
21195 *Sun\ C*)
21196 # Sun C++ 5.9
21197 lt_prog_compiler_pic_CXX='-KPIC'
21198 lt_prog_compiler_static_CXX='-Bstatic'
21199 lt_prog_compiler_wl_CXX='-Qoption ld '
21200 ;;
21201 esac
21202 ;;
21203 esac
21204 ;;
21205 lynxos*)
21206 ;;
21207 m88k*)
21208 ;;
21209 mvs*)
21210 case $cc_basename in
21211 cxx*)
21212 lt_prog_compiler_pic_CXX='-W c,exportall'
21213 ;;
21214 *)
21215 ;;
21216 esac
21217 ;;
21218 netbsd* | netbsdelf*-gnu)
21219 ;;
21220 *-mlibc)
21221 ;;
21222 *qnx* | *nto*)
21223 # QNX uses GNU C++, but need to define -shared option too, otherwise
21224 # it will coredump.
21225 lt_prog_compiler_pic_CXX='-fPIC -shared'
21226 ;;
21227 osf3* | osf4* | osf5*)
21228 case $cc_basename in
21229 KCC*)
21230 lt_prog_compiler_wl_CXX='--backend -Wl,'
21231 ;;
21232 RCC*)
21233 # Rational C++ 2.4.1
21234 lt_prog_compiler_pic_CXX='-pic'
21235 ;;
21236 cxx*)
21237 # Digital/Compaq C++
21238 lt_prog_compiler_wl_CXX='-Wl,'
21239 # Make sure the PIC flag is empty. It appears that all Alpha
21240 # Linux and Compaq Tru64 Unix objects are PIC.
21241 lt_prog_compiler_pic_CXX=
21242 lt_prog_compiler_static_CXX='-non_shared'
21243 ;;
21244 *)
21245 ;;
21246 esac
21247 ;;
21248 psos*)
21249 ;;
21250 serenity*)
21251 ;;
21252 solaris*)
21253 case $cc_basename in
21254 CC* | sunCC*)
21255 # Sun C++ 4.2, 5.x and Centerline C++
21256 lt_prog_compiler_pic_CXX='-KPIC'
21257 lt_prog_compiler_static_CXX='-Bstatic'
21258 lt_prog_compiler_wl_CXX='-Qoption ld '
21259 ;;
21260 gcx*)
21261 # Green Hills C++ Compiler
21262 lt_prog_compiler_pic_CXX='-PIC'
21263 ;;
21264 *)
21265 ;;
21266 esac
21267 ;;
21268 sunos4*)
21269 case $cc_basename in
21270 CC*)
21271 # Sun C++ 4.x
21272 lt_prog_compiler_pic_CXX='-pic'
21273 lt_prog_compiler_static_CXX='-Bstatic'
21274 ;;
21275 lcc*)
21276 # Lucid
21277 lt_prog_compiler_pic_CXX='-pic'
21278 ;;
21279 *)
21280 ;;
21281 esac
21282 ;;
21283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21284 case $cc_basename in
21285 CC*)
21286 lt_prog_compiler_wl_CXX='-Wl,'
21287 lt_prog_compiler_pic_CXX='-KPIC'
21288 lt_prog_compiler_static_CXX='-Bstatic'
21289 ;;
21290 esac
21291 ;;
21292 tandem*)
21293 case $cc_basename in
21294 NCC*)
21295 # NonStop-UX NCC 3.20
21296 lt_prog_compiler_pic_CXX='-KPIC'
21297 ;;
21298 *)
21299 ;;
21300 esac
21301 ;;
21302 vxworks*)
21303 ;;
21304 *)
21305 lt_prog_compiler_can_build_shared_CXX=no
21306 ;;
21307 esac
21308 fi
21309
21310 case $host_os in
21311 # For platforms that do not support PIC, -DPIC is meaningless:
21312 *djgpp*)
21313 lt_prog_compiler_pic_CXX=
21314 ;;
21315 *)
21316 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21317 ;;
21318 esac
21319
21320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21321 printf %s "checking for $compiler option to produce PIC... " >&6; }
21322 if test ${lt_cv_prog_compiler_pic_CXX+y}
21323 then :
21324 printf %s "(cached) " >&6
21325 else case e in #(
21326 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
21327 esac
21328 fi
21329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21330 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
21331 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21332
21333 #
21334 # Check to make sure the PIC flag actually works.
21335 #
21336 if test -n "$lt_prog_compiler_pic_CXX"; then
21337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21338 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21339 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
21340 then :
21341 printf %s "(cached) " >&6
21342 else case e in #(
21343 e) lt_cv_prog_compiler_pic_works_CXX=no
21344 ac_outfile=conftest.$ac_objext
21345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21346 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
21347 # Insert the option either (1) after the last *FLAGS variable, or
21348 # (2) before a word containing "conftest.", or (3) at the end.
21349 # Note that $ac_compile itself does not contain backslashes and begins
21350 # with a dollar sign (not a hyphen), so the echo should work correctly.
21351 # The option is referenced via a variable to avoid confusing sed.
21352 lt_compile=`echo "$ac_compile" | $SED \
21353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21355 -e 's:$: $lt_compiler_flag:'`
21356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21357 (eval "$lt_compile" 2>conftest.err)
21358 ac_status=$?
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 if (exit $ac_status) && test -s "$ac_outfile"; then
21362 # The compiler can only warn and ignore the option if not recognized
21363 # So say no if there are warnings other than the usual output.
21364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21367 lt_cv_prog_compiler_pic_works_CXX=yes
21368 fi
21369 fi
21370 $RM conftest*
21371 ;;
21372 esac
21373 fi
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21375 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21376
21377 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
21378 case $lt_prog_compiler_pic_CXX in
21379 "" | " "*) ;;
21380 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21381 esac
21382 else
21383 lt_prog_compiler_pic_CXX=
21384 lt_prog_compiler_can_build_shared_CXX=no
21385 fi
21386
21387 fi
21388
21389
21390
21391
21392
21393 #
21394 # Check to make sure the static flag actually works.
21395 #
21396 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21398 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21399 if test ${lt_cv_prog_compiler_static_works_CXX+y}
21400 then :
21401 printf %s "(cached) " >&6
21402 else case e in #(
21403 e) lt_cv_prog_compiler_static_works_CXX=no
21404 save_LDFLAGS=$LDFLAGS
21405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21408 # The linker can only warn and ignore the option if not recognized
21409 # So say no if there are warnings
21410 if test -s conftest.err; then
21411 # Append any errors to the config.log.
21412 cat conftest.err 1>&5
21413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21415 if diff conftest.exp conftest.er2 >/dev/null; then
21416 lt_cv_prog_compiler_static_works_CXX=yes
21417 fi
21418 else
21419 lt_cv_prog_compiler_static_works_CXX=yes
21420 fi
21421 fi
21422 $RM -r conftest*
21423 LDFLAGS=$save_LDFLAGS
21424 ;;
21425 esac
21426 fi
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21428 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21429
21430 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21431 :
21432 else
21433 lt_prog_compiler_static_CXX=
21434 fi
21435
21436
21437
21438 ='-fPIC'
21439 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
21440 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
21441 archive_cmds_need_lc_CXX=no
21442 no_undefined_flag_CXX=
21443 ;;
21444
21445 *)
21446 dynamic_linker=no
21447 ;;
21448 esac
21449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21450 printf "%s\n" "$dynamic_linker" >&6; }
21451 test no = "$dynamic_linker" && can_build_shared=no
21452
21453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21454 if test yes = "$GCC"; then
21455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21456 fi
21457
21458 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21459 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21460 fi
21461
21462 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21463 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21464 fi
21465
21466 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21467 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21468
21469 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21470 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21471
21472 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21473 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21515 printf %s "checking how to hardcode library paths into programs... " >&6; }
21516 hardcode_action_CXX=
21517 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21518 test -n "$runpath_var_CXX" ||
21519 test yes = "$hardcode_automatic_CXX"; then
21520
21521 # We can hardcode non-existent directories.
21522 if test no != "$hardcode_direct_CXX" &&
21523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21524 # have to relink, otherwise we might link with an installed library
21525 # when we should be linking with a yet-to-be-installed one
21526 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
21527 test no != "$hardcode_minus_L_CXX"; then
21528 # Linking always hardcodes the temporary library directory.
21529 hardcode_action_CXX=relink
21530 else
21531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21532 hardcode_action_CXX=immediate
21533 fi
21534 else
21535 # We cannot hardcode anything, or else we can only hardcode existing
21536 # directories.
21537 hardcode_action_CXX=unsupported
21538 fi
21539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21540 printf "%s\n" "$hardcode_action_CXX" >&6; }
21541
21542 if test relink = "$hardcode_action_CXX" ||
21543 test yes = "$inherit_rpath_CXX"; then
21544 # Fast installation is not supported
21545 enable_fast_install=no
21546 elif test yes = "$shlibpath_overrides_runpath" ||
21547 test no = "$enable_shared"; then
21548 # Fast installation is not necessary
21549 enable_fast_install=needless
21550 fi
21551
21552
21553
21554
21555
21556
21557
21558 fi # test -n "$compiler"
21559
21560 CC=$lt_save_CC
21561 CFLAGS=$lt_save_CFLAGS
21562 LDCXX=$LD
21563 LD=$lt_save_LD
21564 GCC=$lt_save_GCC
21565 with_gnu_ld=$lt_save_with_gnu_ld
21566 lt_cv_path_LDCXX=$lt_cv_path_LD
21567 lt_cv_path_LD=$lt_save_path_LD
21568 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21569 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21570 fi # test yes != "$_lt_caught_CXX_error"
21571
21572 ac_ext=c
21573 ac_cpp='$CPP $CPPFLAGS'
21574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592 ac_config_commands="$ac_config_commands libtool"
21593
21594
21595
21596
21597 # Only expand once:
21598
21599
21600
21601
21602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
21603 printf %s "checking for egrep -e... " >&6; }
21604 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
21605 then :
21606 printf %s "(cached) " >&6
21607 else case e in #(
21608 e) if test -z "$EGREP_TRADITIONAL"; then
21609 ac_path_EGREP_TRADITIONAL_found=false
21610 # Loop through the user's path and test for each of PROGNAME-LIST
21611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21613 do
21614 IFS=$as_save_IFS
21615 case $as_dir in #(((
21616 '') as_dir=./ ;;
21617 */) ;;
21618 *) as_dir=$as_dir/ ;;
21619 esac
21620 for ac_prog in grep ggrep
21621 do
21622 for ac_exec_ext in '' $ac_executable_extensions; do
21623 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
21624 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
21625 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
21626 # Check for GNU $ac_path_EGREP_TRADITIONAL
21627 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
21628 *GNU*)
21629 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
21630 #(
21631 *)
21632 ac_count=0
21633 printf %s 0123456789 >"conftest.in"
21634 while :
21635 do
21636 cat "conftest.in" "conftest.in" >"conftest.tmp"
21637 mv "conftest.tmp" "conftest.in"
21638 cp "conftest.in" "conftest.nl"
21639 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
21640 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
21641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21642 as_fn_arith $ac_count + 1 && ac_count=$as_val
21643 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
21644 # Best one so far, save it but keep looking for a better one
21645 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
21646 ac_path_EGREP_TRADITIONAL_max=$ac_count
21647 fi
21648 # 10*(2^10) chars as input seems more than enough
21649 test $ac_count -gt 10 && break
21650 done
21651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21652 esac
21653
21654 $ac_path_EGREP_TRADITIONAL_found && break 3
21655 done
21656 done
21657 done
21658 IFS=$as_save_IFS
21659 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
21660 :
21661 fi
21662 else
21663 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
21664 fi
21665
21666 if test "$ac_cv_path_EGREP_TRADITIONAL"
21667 then :
21668 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
21669 else case e in #(
21670 e) if test -z "$EGREP_TRADITIONAL"; then
21671 ac_path_EGREP_TRADITIONAL_found=false
21672 # Loop through the user's path and test for each of PROGNAME-LIST
21673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21675 do
21676 IFS=$as_save_IFS
21677 case $as_dir in #(((
21678 '') as_dir=./ ;;
21679 */) ;;
21680 *) as_dir=$as_dir/ ;;
21681 esac
21682 for ac_prog in egrep
21683 do
21684 for ac_exec_ext in '' $ac_executable_extensions; do
21685 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
21686 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
21687 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
21688 # Check for GNU $ac_path_EGREP_TRADITIONAL
21689 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
21690 *GNU*)
21691 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
21692 #(
21693 *)
21694 ac_count=0
21695 printf %s 0123456789 >"conftest.in"
21696 while :
21697 do
21698 cat "conftest.in" "conftest.in" >"conftest.tmp"
21699 mv "conftest.tmp" "conftest.in"
21700 cp "conftest.in" "conftest.nl"
21701 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
21702 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
21703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21704 as_fn_arith $ac_count + 1 && ac_count=$as_val
21705 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
21706 # Best one so far, save it but keep looking for a better one
21707 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
21708 ac_path_EGREP_TRADITIONAL_max=$ac_count
21709 fi
21710 # 10*(2^10) chars as input seems more than enough
21711 test $ac_count -gt 10 && break
21712 done
21713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21714 esac
21715
21716 $ac_path_EGREP_TRADITIONAL_found && break 3
21717 done
21718 done
21719 done
21720 IFS=$as_save_IFS
21721 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
21722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21723 fi
21724 else
21725 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
21726 fi
21727 ;;
21728 esac
21729 fi ;;
21730 esac
21731 fi
21732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
21733 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
21734 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
21735
21736
21737
21738
21739
21740
21741
21742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
21743 printf %s "checking for grep that handles long lines and -e... " >&6; }
21744 if test ${ac_cv_path_GREP+y}
21745 then :
21746 printf %s "(cached) " >&6
21747 else case e in #(
21748 e) if test -z "$GREP"; then
21749 ac_path_GREP_found=false
21750 # Loop through the user's path and test for each of PROGNAME-LIST
21751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21753 do
21754 IFS=$as_save_IFS
21755 case $as_dir in #(((
21756 '') as_dir=./ ;;
21757 */) ;;
21758 *) as_dir=$as_dir/ ;;
21759 esac
21760 for ac_prog in grep ggrep
21761 do
21762 for ac_exec_ext in '' $ac_executable_extensions; do
21763 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
21764 as_fn_executable_p "$ac_path_GREP" || continue
21765 # Check for GNU ac_path_GREP and select it if it is found.
21766 # Check for GNU $ac_path_GREP
21767 case `"$ac_path_GREP" --version 2>&1` in #(
21768 *GNU*)
21769 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
21770 #(
21771 *)
21772 ac_count=0
21773 printf %s 0123456789 >"conftest.in"
21774 while :
21775 do
21776 cat "conftest.in" "conftest.in" >"conftest.tmp"
21777 mv "conftest.tmp" "conftest.in"
21778 cp "conftest.in" "conftest.nl"
21779 printf "%s\n" 'GREP' >> "conftest.nl"
21780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
21781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21782 as_fn_arith $ac_count + 1 && ac_count=$as_val
21783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
21784 # Best one so far, save it but keep looking for a better one
21785 ac_cv_path_GREP="$ac_path_GREP"
21786 ac_path_GREP_max=$ac_count
21787 fi
21788 # 10*(2^10) chars as input seems more than enough
21789 test $ac_count -gt 10 && break
21790 done
21791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21792 esac
21793
21794 $ac_path_GREP_found && break 3
21795 done
21796 done
21797 done
21798 IFS=$as_save_IFS
21799 if test -z "$ac_cv_path_GREP"; then
21800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21801 fi
21802 else
21803 ac_cv_path_GREP=$GREP
21804 fi
21805 ;;
21806 esac
21807 fi
21808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
21809 printf "%s\n" "$ac_cv_path_GREP" >&6; }
21810 GREP="$ac_cv_path_GREP"
21811
21812
21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
21814 printf %s "checking for a sed that does not truncate output... " >&6; }
21815 if test ${ac_cv_path_SED+y}
21816 then :
21817 printf %s "(cached) " >&6
21818 else case e in #(
21819 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21820 for ac_i in 1 2 3 4 5 6 7; do
21821 ac_script="$ac_script$as_nl$ac_script"
21822 done
21823 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
21824 { ac_script=; unset ac_script;}
21825 if test -z "$SED"; then
21826 ac_path_SED_found=false
21827 # Loop through the user's path and test for each of PROGNAME-LIST
21828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21829 for as_dir in $PATH
21830 do
21831 IFS=$as_save_IFS
21832 case $as_dir in #(((
21833 '') as_dir=./ ;;
21834 */) ;;
21835 *) as_dir=$as_dir/ ;;
21836 esac
21837 for ac_prog in sed gsed
21838 do
21839 for ac_exec_ext in '' $ac_executable_extensions; do
21840 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
21841 as_fn_executable_p "$ac_path_SED" || continue
21842 # Check for GNU ac_path_SED and select it if it is found.
21843 # Check for GNU $ac_path_SED
21844 case `"$ac_path_SED" --version 2>&1` in #(
21845 *GNU*)
21846 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21847 #(
21848 *)
21849 ac_count=0
21850 printf %s 0123456789 >"conftest.in"
21851 while :
21852 do
21853 cat "conftest.in" "conftest.in" >"conftest.tmp"
21854 mv "conftest.tmp" "conftest.in"
21855 cp "conftest.in" "conftest.nl"
21856 printf "%s\n" '' >> "conftest.nl"
21857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21859 as_fn_arith $ac_count + 1 && ac_count=$as_val
21860 if test $ac_count -gt ${ac_path_SED_max-0}; then
21861 # Best one so far, save it but keep looking for a better one
21862 ac_cv_path_SED="$ac_path_SED"
21863 ac_path_SED_max=$ac_count
21864 fi
21865 # 10*(2^10) chars as input seems more than enough
21866 test $ac_count -gt 10 && break
21867 done
21868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21869 esac
21870
21871 $ac_path_SED_found && break 3
21872 done
21873 done
21874 done
21875 IFS=$as_save_IFS
21876 if test -z "$ac_cv_path_SED"; then
21877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
21878 fi
21879 else
21880 ac_cv_path_SED=$SED
21881 fi
21882 ;;
21883 esac
21884 fi
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
21886 printf "%s\n" "$ac_cv_path_SED" >&6; }
21887 SED="$ac_cv_path_SED"
21888 rm -f conftest.sed
21889
21890 if test "x$with_clang_prefix" != "x"; then
21891 LLVM_CONFIG="$with_clang_prefix/bin/llvm-config"
21892 fi
21893 # Extract the first word of ""llvm-config"", so it can be a program name with args.
21894 set dummy "llvm-config"; ac_word=$2
21895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21896 printf %s "checking for $ac_word... " >&6; }
21897 if test ${ac_cv_path_LLVM_CONFIG+y}
21898 then :
21899 printf %s "(cached) " >&6
21900 else case e in #(
21901 e) case $LLVM_CONFIG in
21902 [\\/]* | ?:[\\/]*)
21903 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
21904 ;;
21905 *)
21906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21907 for as_dir in $PATH
21908 do
21909 IFS=$as_save_IFS
21910 case $as_dir in #(((
21911 '') as_dir=./ ;;
21912 */) ;;
21913 *) as_dir=$as_dir/ ;;
21914 esac
21915 for ac_exec_ext in '' $ac_executable_extensions; do
21916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21917 ac_cv_path_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext"
21918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21919 break 2
21920 fi
21921 done
21922 done
21923 IFS=$as_save_IFS
21924
21925 ;;
21926 esac ;;
21927 esac
21928 fi
21929 LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
21930 if test -n "$LLVM_CONFIG"; then
21931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
21932 printf "%s\n" "$LLVM_CONFIG" >&6; }
21933 else
21934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 printf "%s\n" "no" >&6; }
21936 fi
21937
21938
21939 if test -z "$LLVM_CONFIG" || test ! -x "$LLVM_CONFIG"; then
21940 as_fn_error $? "llvm-config not found" "$LINENO" 5
21941 fi
21942 CLANG_CXXFLAGS=`$LLVM_CONFIG --cxxflags | \
21943 $SED -e 's/-Wcovered-switch-default//' \
21944 -e 's/-gsplit-dwarf//' \
21945 -e 's/-Wl,--no-keep-files-mapped//'`
21946 CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags`
21947 # Construct a -R argument for libtool.
21948 # This is needed in case some of the clang libraries are shared libraries.
21949 CLANG_RFLAG=`echo "$CLANG_LDFLAGS" | $SED -e 's/-L/-R/g'`
21950
21951 CLANG_VERSION=`$LLVM_CONFIG --version`
21952 CLANG_LIB="LLVM-$CLANG_VERSION"
21953
21954 SAVE_LDFLAGS="$LDFLAGS"
21955 LDFLAGS="$CLANG_LDFLAGS $LDFLAGS"
21956 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$CLANG_LIB""_main" | sed "$as_sed_sh"`
21957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$CLANG_LIB" >&5
21958 printf %s "checking for main in -l$CLANG_LIB... " >&6; }
21959 if eval test \${$as_ac_Lib+y}
21960 then :
21961 printf %s "(cached) " >&6
21962 else case e in #(
21963 e) ac_check_lib_save_LIBS=$LIBS
21964 LIBS="-l$CLANG_LIB $LIBS"
21965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21967
21968
21969 int
21970 main (void)
21971 {
21972 return main ();
21973 ;
21974 return 0;
21975 }
21976 _ACEOF
21977 if ac_fn_c_try_link "$LINENO"
21978 then :
21979 eval "$as_ac_Lib=yes"
21980 else case e in #(
21981 e) eval "$as_ac_Lib=no" ;;
21982 esac
21983 fi
21984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21985 conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS ;;
21987 esac
21988 fi
21989 eval ac_res=\$$as_ac_Lib
21990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21991 printf "%s\n" "$ac_res" >&6; }
21992 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
21993 then :
21994 have_lib_llvm=yes
21995 else case e in #(
21996 e) have_lib_llvm=no ;;
21997 esac
21998 fi
21999
22000 LDFLAGS="$SAVE_LDFLAGS"
22001
22002 # Use single libLLVM shared library when available.
22003 # Otherwise, try and figure out all the required libraries
22004 if test "$have_lib_llvm" = yes; then
22005 CLANG_LIBS="-l$CLANG_LIB"
22006 else
22007 targets=`$LLVM_CONFIG --targets-built`
22008 components="$targets asmparser bitreader support mc"
22009 # Link in option and frontendopenmp components when available
22010 # since they may be used by the clang libraries.
22011 for c in option frontendopenmp; do
22012 $LLVM_CONFIG --components | $GREP $c > /dev/null 2> /dev/null
22013 if test $? -eq 0; then
22014 components="$components $c"
22015 fi
22016 done
22017 CLANG_LIBS=`$LLVM_CONFIG --libs $components`
22018 fi
22019 systemlibs=`$LLVM_CONFIG --system-libs 2> /dev/null | tail -1`
22020 if test $? -eq 0; then
22021 CLANG_LIBS="$CLANG_LIBS $systemlibs"
22022 fi
22023
22024 ac_ext=cpp
22025 ac_cpp='$CXXCPP $CPPFLAGS'
22026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22029
22030
22031 SAVE_CPPFLAGS="$CPPFLAGS"
22032 SAVE_LDFLAGS="$LDFLAGS"
22033 SAVE_LIBS="$LIBS"
22034
22035 CPPFLAGS="$CLANG_CXXFLAGS -I$srcdir $CPPFLAGS"
22036 LDFLAGS="$CLANG_LDFLAGS $LDFLAGS"
22037
22038 # A test program for checking whether linking against libclang-cpp works.
22039
22040
22041 # Use single libclang-cpp shared library when available.
22042 # Otherwise, use a selection of clang libraries that appears to work.
22043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclang-cpp" >&5
22044 printf %s "checking for main in -lclang-cpp... " >&6; }
22045 if test ${ac_cv_lib_clang_cpp_main+y}
22046 then :
22047 printf %s "(cached) " >&6
22048 else case e in #(
22049 e) ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lclang-cpp $LIBS"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22053
22054 namespace conftest {
22055 extern "C" int main ();
22056 }
22057 int
22058 main (void)
22059 {
22060 return conftest::main ();
22061 ;
22062 return 0;
22063 }
22064 _ACEOF
22065 if ac_fn_cxx_try_link "$LINENO"
22066 then :
22067 ac_cv_lib_clang_cpp_main=yes
22068 else case e in #(
22069 e) ac_cv_lib_clang_cpp_main=no ;;
22070 esac
22071 fi
22072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22073 conftest$ac_exeext conftest.$ac_ext
22074 LIBS=$ac_check_lib_save_LIBS ;;
22075 esac
22076 fi
22077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_cpp_main" >&5
22078 printf "%s\n" "$ac_cv_lib_clang_cpp_main" >&6; }
22079 if test "x$ac_cv_lib_clang_cpp_main" = xyes
22080 then :
22081 have_lib_clang=yes
22082 else case e in #(
22083 e) have_lib_clang=no ;;
22084 esac
22085 fi
22086
22087 if test "$have_lib_clang" = yes; then
22088 # The LLVM libraries may be linked into libclang-cpp already.
22089 # Linking against them again can cause errors about options
22090 # being registered more than once.
22091 # Check whether linking against libclang-cpp requires
22092 # linking against the LLVM libraries as well.
22093 # Fail if linking fails with or without the LLVM libraries.
22094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libclang-cpp needs LLVM libraries" >&5
22095 printf %s "checking whether libclang-cpp needs LLVM libraries... " >&6; }
22096 LIBS="-lclang-cpp $SAVE_LIBS"
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #include <clang/Frontend/CompilerInstance.h>
22100 int
22101 main (void)
22102 {
22103
22104 new clang::CompilerInstance();
22105
22106 ;
22107 return 0;
22108 }
22109 _ACEOF
22110 if ac_fn_cxx_try_link "$LINENO"
22111 then :
22112 clangcpp_needs_llvm=no
22113 else case e in #(
22114 e)
22115 LIBS="-lclang-cpp $CLANG_LIBS $SAVE_LIBS"
22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117 /* end confdefs.h. */
22118 #include <clang/Frontend/CompilerInstance.h>
22119 int
22120 main (void)
22121 {
22122
22123 new clang::CompilerInstance();
22124
22125 ;
22126 return 0;
22127 }
22128 _ACEOF
22129 if ac_fn_cxx_try_link "$LINENO"
22130 then :
22131 clangcpp_needs_llvm=yes
22132 else case e in #(
22133 e) clangcpp_needs_llvm=unknown ;;
22134 esac
22135 fi
22136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22137 conftest$ac_exeext conftest.$ac_ext
22138 ;;
22139 esac
22140 fi
22141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22142 conftest$ac_exeext conftest.$ac_ext
22143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $clangcpp_needs_llvm" >&5
22144 printf "%s\n" "$clangcpp_needs_llvm" >&6; }
22145 if test "$clangcpp_needs_llvm" = "no"
22146 then :
22147 CLANG_LIBS="-lclang-cpp"
22148 elif test "$clangcpp_needs_llvm" = "yes"
22149 then :
22150 CLANG_LIBS="-lclang-cpp $CLANG_LIBS"
22151 else case e in #(
22152 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22153 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22154 as_fn_error $? "unable to link against libclang-cpp
22155 See 'config.log' for more details" "$LINENO" 5; } ;;
22156 esac
22157 fi
22158 else
22159
22160 LIBS="$CLANG_LIBS $SAVE_LIBS"
22161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangSupport" >&5
22162 printf %s "checking for main in -lclangSupport... " >&6; }
22163 if test ${ac_cv_lib_clangSupport_main+y}
22164 then :
22165 printf %s "(cached) " >&6
22166 else case e in #(
22167 e) ac_check_lib_save_LIBS=$LIBS
22168 LIBS="-lclangSupport $LIBS"
22169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h. */
22171
22172 namespace conftest {
22173 extern "C" int main ();
22174 }
22175 int
22176 main (void)
22177 {
22178 return conftest::main ();
22179 ;
22180 return 0;
22181 }
22182 _ACEOF
22183 if ac_fn_cxx_try_link "$LINENO"
22184 then :
22185 ac_cv_lib_clangSupport_main=yes
22186 else case e in #(
22187 e) ac_cv_lib_clangSupport_main=no ;;
22188 esac
22189 fi
22190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22191 conftest$ac_exeext conftest.$ac_ext
22192 LIBS=$ac_check_lib_save_LIBS ;;
22193 esac
22194 fi
22195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangSupport_main" >&5
22196 printf "%s\n" "$ac_cv_lib_clangSupport_main" >&6; }
22197 if test "x$ac_cv_lib_clangSupport_main" = xyes
22198 then :
22199 CLANG_LIBS="-lclangSupport $CLANG_LIBS"
22200 fi
22201
22202
22203 CLANG_LIBS="-lclangDriver -lclangBasic $CLANG_LIBS"
22204
22205 LIBS="$CLANG_LIBS $SAVE_LIBS"
22206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangOptions" >&5
22207 printf %s "checking for main in -lclangOptions... " >&6; }
22208 if test ${ac_cv_lib_clangOptions_main+y}
22209 then :
22210 printf %s "(cached) " >&6
22211 else case e in #(
22212 e) ac_check_lib_save_LIBS=$LIBS
22213 LIBS="-lclangOptions $LIBS"
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216
22217 namespace conftest {
22218 extern "C" int main ();
22219 }
22220 int
22221 main (void)
22222 {
22223 return conftest::main ();
22224 ;
22225 return 0;
22226 }
22227 _ACEOF
22228 if ac_fn_cxx_try_link "$LINENO"
22229 then :
22230 ac_cv_lib_clangOptions_main=yes
22231 else case e in #(
22232 e) ac_cv_lib_clangOptions_main=no ;;
22233 esac
22234 fi
22235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22236 conftest$ac_exeext conftest.$ac_ext
22237 LIBS=$ac_check_lib_save_LIBS ;;
22238 esac
22239 fi
22240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangOptions_main" >&5
22241 printf "%s\n" "$ac_cv_lib_clangOptions_main" >&6; }
22242 if test "x$ac_cv_lib_clangOptions_main" = xyes
22243 then :
22244 CLANG_LIBS="-lclangOptions $CLANG_LIBS"
22245 fi
22246
22247
22248
22249 LIBS="$CLANG_LIBS $SAVE_LIBS"
22250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangASTMatchers" >&5
22251 printf %s "checking for main in -lclangASTMatchers... " >&6; }
22252 if test ${ac_cv_lib_clangASTMatchers_main+y}
22253 then :
22254 printf %s "(cached) " >&6
22255 else case e in #(
22256 e) ac_check_lib_save_LIBS=$LIBS
22257 LIBS="-lclangASTMatchers $LIBS"
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22260
22261 namespace conftest {
22262 extern "C" int main ();
22263 }
22264 int
22265 main (void)
22266 {
22267 return conftest::main ();
22268 ;
22269 return 0;
22270 }
22271 _ACEOF
22272 if ac_fn_cxx_try_link "$LINENO"
22273 then :
22274 ac_cv_lib_clangASTMatchers_main=yes
22275 else case e in #(
22276 e) ac_cv_lib_clangASTMatchers_main=no ;;
22277 esac
22278 fi
22279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22280 conftest$ac_exeext conftest.$ac_ext
22281 LIBS=$ac_check_lib_save_LIBS ;;
22282 esac
22283 fi
22284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangASTMatchers_main" >&5
22285 printf "%s\n" "$ac_cv_lib_clangASTMatchers_main" >&6; }
22286 if test "x$ac_cv_lib_clangASTMatchers_main" = xyes
22287 then :
22288 CLANG_LIBS="-lclangASTMatchers $CLANG_LIBS"
22289 fi
22290
22291
22292 CLANG_LIBS="-lclangAnalysis -lclangAST -lclangLex $CLANG_LIBS"
22293
22294 LIBS="$CLANG_LIBS $SAVE_LIBS"
22295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangAnalysisLifetimeSafety" >&5
22296 printf %s "checking for main in -lclangAnalysisLifetimeSafety... " >&6; }
22297 if test ${ac_cv_lib_clangAnalysisLifetimeSafety_main+y}
22298 then :
22299 printf %s "(cached) " >&6
22300 else case e in #(
22301 e) ac_check_lib_save_LIBS=$LIBS
22302 LIBS="-lclangAnalysisLifetimeSafety $LIBS"
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305
22306 namespace conftest {
22307 extern "C" int main ();
22308 }
22309 int
22310 main (void)
22311 {
22312 return conftest::main ();
22313 ;
22314 return 0;
22315 }
22316 _ACEOF
22317 if ac_fn_cxx_try_link "$LINENO"
22318 then :
22319 ac_cv_lib_clangAnalysisLifetimeSafety_main=yes
22320 else case e in #(
22321 e) ac_cv_lib_clangAnalysisLifetimeSafety_main=no ;;
22322 esac
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS ;;
22327 esac
22328 fi
22329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangAnalysisLifetimeSafety_main" >&5
22330 printf "%s\n" "$ac_cv_lib_clangAnalysisLifetimeSafety_main" >&6; }
22331 if test "x$ac_cv_lib_clangAnalysisLifetimeSafety_main" = xyes
22332 then :
22333 CLANG_LIBS="-lclangAnalysisLifetimeSafety $CLANG_LIBS"
22334 fi
22335
22336
22337
22338 LIBS="$CLANG_LIBS $SAVE_LIBS"
22339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5
22340 printf %s "checking for main in -lclangEdit... " >&6; }
22341 if test ${ac_cv_lib_clangEdit_main+y}
22342 then :
22343 printf %s "(cached) " >&6
22344 else case e in #(
22345 e) ac_check_lib_save_LIBS=$LIBS
22346 LIBS="-lclangEdit $LIBS"
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22349
22350 namespace conftest {
22351 extern "C" int main ();
22352 }
22353 int
22354 main (void)
22355 {
22356 return conftest::main ();
22357 ;
22358 return 0;
22359 }
22360 _ACEOF
22361 if ac_fn_cxx_try_link "$LINENO"
22362 then :
22363 ac_cv_lib_clangEdit_main=yes
22364 else case e in #(
22365 e) ac_cv_lib_clangEdit_main=no ;;
22366 esac
22367 fi
22368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22369 conftest$ac_exeext conftest.$ac_ext
22370 LIBS=$ac_check_lib_save_LIBS ;;
22371 esac
22372 fi
22373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5
22374 printf "%s\n" "$ac_cv_lib_clangEdit_main" >&6; }
22375 if test "x$ac_cv_lib_clangEdit_main" = xyes
22376 then :
22377 CLANG_LIBS="-lclangEdit $CLANG_LIBS"
22378 fi
22379
22380
22381
22382 LIBS="$CLANG_LIBS $SAVE_LIBS"
22383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangAPINotes" >&5
22384 printf %s "checking for main in -lclangAPINotes... " >&6; }
22385 if test ${ac_cv_lib_clangAPINotes_main+y}
22386 then :
22387 printf %s "(cached) " >&6
22388 else case e in #(
22389 e) ac_check_lib_save_LIBS=$LIBS
22390 LIBS="-lclangAPINotes $LIBS"
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22393
22394 namespace conftest {
22395 extern "C" int main ();
22396 }
22397 int
22398 main (void)
22399 {
22400 return conftest::main ();
22401 ;
22402 return 0;
22403 }
22404 _ACEOF
22405 if ac_fn_cxx_try_link "$LINENO"
22406 then :
22407 ac_cv_lib_clangAPINotes_main=yes
22408 else case e in #(
22409 e) ac_cv_lib_clangAPINotes_main=no ;;
22410 esac
22411 fi
22412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22413 conftest$ac_exeext conftest.$ac_ext
22414 LIBS=$ac_check_lib_save_LIBS ;;
22415 esac
22416 fi
22417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangAPINotes_main" >&5
22418 printf "%s\n" "$ac_cv_lib_clangAPINotes_main" >&6; }
22419 if test "x$ac_cv_lib_clangAPINotes_main" = xyes
22420 then :
22421 CLANG_LIBS="-lclangAPINotes $CLANG_LIBS"
22422 fi
22423
22424
22425 CLANG_LIBS="-lclangParse -lclangSema $CLANG_LIBS"
22426 CLANG_LIBS="-lclangFrontend -lclangSerialization $CLANG_LIBS"
22427 fi
22428
22429 CPPFLAGS="$SAVE_CPPFLAGS"
22430 LDFLAGS="$SAVE_LDFLAGS"
22431 LIBS="$SAVE_LIBS"
22432
22433 ac_ext=c
22434 ac_cpp='$CPP $CPPFLAGS'
22435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22438
22439
22440
22441 CLANG_PREFIX=`$LLVM_CONFIG --prefix`
22442
22443 printf "%s\n" "#define ISL_CLANG_PREFIX \"$CLANG_PREFIX\"" >>confdefs.h
22444
22445
22446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang resource directory" >&5
22447 printf %s "checking for clang resource directory... " >&6; }
22448 CLANG_RESOURCE_DIR=`$CLANG_PREFIX/bin/clang -print-resource-dir 2>/dev/null`
22449 if test $? -eq 0 && test "x$CLANG_RESOURCE_DIR" != "x"; then
22450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG_RESOURCE_DIR" >&5
22451 printf "%s\n" "$CLANG_RESOURCE_DIR" >&6; }
22452
22453 printf "%s\n" "#define ISL_CLANG_RESOURCE_DIR \"$CLANG_RESOURCE_DIR\"" >>confdefs.h
22454
22455 else
22456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found or not supported" >&5
22457 printf "%s\n" "not found or not supported" >&6; }
22458 fi
22459
22460 # If $CLANG_PREFIX/bin/clang cannot find the standard include files,
22461 # then see if setting sysroot to `xcode-select -p`/SDKs/MacOSX.sdk helps.
22462 # This may be required on some versions of OS X since they lack /usr/include.
22463 # If so, set ISL_CLANG_SYSROOT accordingly.
22464 SAVE_CC="$CC"
22465 CC="$CLANG_PREFIX/bin/clang"
22466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CLANG_PREFIX/bin/clang can find standard include files" >&5
22467 printf %s "checking whether $CLANG_PREFIX/bin/clang can find standard include files... " >&6; }
22468 found_header=no
22469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470 /* end confdefs.h. */
22471 #include <stdio.h>
22472 int
22473 main (void)
22474 {
22475
22476 ;
22477 return 0;
22478 }
22479 _ACEOF
22480 if ac_fn_c_try_compile "$LINENO"
22481 then :
22482 found_header=yes
22483 fi
22484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
22486 printf "%s\n" "$found_header" >&6; }
22487 if test "x$found_header" != "xyes"; then
22488 # Extract the first word of "xcode-select", so it can be a program name with args.
22489 set dummy xcode-select; ac_word=$2
22490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22491 printf %s "checking for $ac_word... " >&6; }
22492 if test ${ac_cv_prog_XCODE_SELECT+y}
22493 then :
22494 printf %s "(cached) " >&6
22495 else case e in #(
22496 e) if test -n "$XCODE_SELECT"; then
22497 ac_cv_prog_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test.
22498 else
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502 IFS=$as_save_IFS
22503 case $as_dir in #(((
22504 '') as_dir=./ ;;
22505 */) ;;
22506 *) as_dir=$as_dir/ ;;
22507 esac
22508 for ac_exec_ext in '' $ac_executable_extensions; do
22509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22510 ac_cv_prog_XCODE_SELECT="xcode-select"
22511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22512 break 2
22513 fi
22514 done
22515 done
22516 IFS=$as_save_IFS
22517
22518 fi ;;
22519 esac
22520 fi
22521 XCODE_SELECT=$ac_cv_prog_XCODE_SELECT
22522 if test -n "$XCODE_SELECT"; then
22523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
22524 printf "%s\n" "$XCODE_SELECT" >&6; }
22525 else
22526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 printf "%s\n" "no" >&6; }
22528 fi
22529
22530
22531 if test -z "$XCODE_SELECT"; then
22532 as_fn_error $? "Cannot find xcode-select" "$LINENO" 5
22533 fi
22534 sysroot=`$XCODE_SELECT -p`/SDKs/MacOSX.sdk
22535 SAVE_CPPFLAGS="$CPPFLAGS"
22536 CPPFLAGS="$CPPFLAGS -isysroot $sysroot"
22537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether standard include files can be found with sysroot set" >&5
22538 printf %s "checking whether standard include files can be found with sysroot set... " >&6; }
22539 found_header=no
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22542 #include <stdio.h>
22543 int
22544 main (void)
22545 {
22546
22547 ;
22548 return 0;
22549 }
22550 _ACEOF
22551 if ac_fn_c_try_compile "$LINENO"
22552 then :
22553 found_header=yes
22554 fi
22555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
22557 printf "%s\n" "$found_header" >&6; }
22558 CPPFLAGS="$SAVE_CPPFLAGS"
22559 if test "x$found_header" != "xyes"; then
22560 as_fn_error $? "Cannot find standard include files" "$LINENO" 5
22561 else
22562
22563 printf "%s\n" "#define ISL_CLANG_SYSROOT \"$sysroot\"" >>confdefs.h
22564
22565 fi
22566 fi
22567 CC="$SAVE_CC"
22568
22569 ac_ext=cpp
22570 ac_cpp='$CXXCPP $CPPFLAGS'
22571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22574
22575
22576 SAVE_CPPFLAGS="$CPPFLAGS"
22577
22578 CPPFLAGS="$CLANG_CXXFLAGS -I$srcdir $CPPFLAGS"
22579 ac_fn_cxx_check_header_compile "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default"
22580 if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes
22581 then :
22582
22583 else case e in #(
22584 e) as_fn_error $? "clang header file not found" "$LINENO" 5 ;;
22585 esac
22586 fi
22587
22588 ac_fn_cxx_check_header_compile "$LINENO" "llvm/TargetParser/Host.h" "ac_cv_header_llvm_TargetParser_Host_h" "$ac_includes_default"
22589 if test "x$ac_cv_header_llvm_TargetParser_Host_h" = xyes
22590 then :
22591
22592 printf "%s\n" "#define HAVE_TARGETPARSER_HOST_H /**/" >>confdefs.h
22593
22594 else case e in #(
22595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22597 #include <llvm/Support/Host.h>
22598
22599 _ACEOF
22600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22601 $EGREP_TRADITIONAL "getDefaultTargetTriple" >/dev/null 2>&1
22602 then :
22603
22604 else case e in #(
22605 e)
22606 printf "%s\n" "#define getDefaultTargetTriple getHostTriple" >>confdefs.h
22607 ;;
22608 esac
22609 fi
22610 rm -rf conftest*
22611
22612 ;;
22613 esac
22614 fi
22615
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22618 #include <clang/Basic/SourceLocation.h>
22619
22620 _ACEOF
22621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22622 $EGREP_TRADITIONAL "getExpansionLineNumber" >/dev/null 2>&1
22623 then :
22624
22625 else case e in #(
22626 e)
22627 printf "%s\n" "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h
22628 ;;
22629 esac
22630 fi
22631 rm -rf conftest*
22632
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635 #include <clang/Basic/SourceManager.h>
22636
22637 _ACEOF
22638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22639 $EGREP_TRADITIONAL "getImmediateExpansionRange" >/dev/null 2>&1
22640 then :
22641
22642 else case e in #(
22643 e)
22644 printf "%s\n" "#define getImmediateExpansionRange getImmediateInstantiationRange" >>confdefs.h
22645
22646 ;;
22647 esac
22648 fi
22649 rm -rf conftest*
22650
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22653 #include <clang/Frontend/CompilerInvocation.h>
22654
22655 _ACEOF
22656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22657 $EGREP_TRADITIONAL "ArrayRef.*CommandLineArgs" >/dev/null 2>&1
22658 then :
22659
22660 printf "%s\n" "#define CREATE_FROM_ARGS_TAKES_ARRAYREF /**/" >>confdefs.h
22661
22662
22663 fi
22664 rm -rf conftest*
22665
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667 /* end confdefs.h. */
22668 #include <clang/AST/ASTConsumer.h>
22669
22670 _ACEOF
22671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22672 $EGREP_TRADITIONAL "void HandleTopLevelDecl\(" >/dev/null 2>&1
22673 then :
22674
22675 printf "%s\n" "#define HandleTopLevelDeclReturn void" >>confdefs.h
22676
22677
22678 printf "%s\n" "#define HandleTopLevelDeclContinue /**/" >>confdefs.h
22679
22680 else case e in #(
22681 e)
22682 printf "%s\n" "#define HandleTopLevelDeclReturn bool" >>confdefs.h
22683
22684
22685 printf "%s\n" "#define HandleTopLevelDeclContinue true" >>confdefs.h
22686 ;;
22687 esac
22688 fi
22689 rm -rf conftest*
22690
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h. */
22693 #include <clang/Basic/TargetInfo.h>
22694 int
22695 main (void)
22696 {
22697
22698 using namespace clang;
22699 std::shared_ptr<TargetOptions> TO;
22700 DiagnosticsEngine *Diags;
22701 TargetInfo::CreateTargetInfo(*Diags, TO);
22702
22703 ;
22704 return 0;
22705 }
22706 _ACEOF
22707 if ac_fn_cxx_try_compile "$LINENO"
22708 then :
22709
22710 printf "%s\n" "#define CREATETARGETINFO_TAKES_SHARED_PTR /**/" >>confdefs.h
22711
22712 fi
22713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22716 #include <clang/AST/CanonicalType.h>
22717
22718 _ACEOF
22719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22720 $EGREP_TRADITIONAL "getReturnType" >/dev/null 2>&1
22721 then :
22722
22723 else case e in #(
22724 e)
22725 printf "%s\n" "#define getReturnType getResultType" >>confdefs.h
22726 ;;
22727 esac
22728 fi
22729 rm -rf conftest*
22730
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h. */
22733 #include <clang/Basic/Builtins.h>
22734
22735 _ACEOF
22736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22737 $EGREP_TRADITIONAL "initializeBuiltins" >/dev/null 2>&1
22738 then :
22739
22740 else case e in #(
22741 e)
22742 printf "%s\n" "#define initializeBuiltins InitializeBuiltins" >>confdefs.h
22743 ;;
22744 esac
22745 fi
22746 rm -rf conftest*
22747
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22750 #include <clang/Frontend/FrontendOptions.h>
22751
22752 _ACEOF
22753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22754 $EGREP_TRADITIONAL "IK_C" >/dev/null 2>&1
22755 then :
22756
22757 else case e in #(
22758 e) ac_fn_cxx_check_header_compile "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default"
22759 if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes
22760 then :
22761 IK_C=Language::C
22762 else case e in #(
22763 e) IK_C=InputKind::C ;;
22764 esac
22765 fi
22766
22767
22768 printf "%s\n" "#define IK_C $IK_C" >>confdefs.h
22769
22770 ;;
22771 esac
22772 fi
22773 rm -rf conftest*
22774
22775 # llvmorg-15-init-7544-g93471e65df48
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h. */
22778 #include <clang/Basic/LangOptions.h>
22779
22780 _ACEOF
22781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22782 $EGREP_TRADITIONAL "setLangDefaults" >/dev/null 2>&1
22783 then :
22784 SETLANGDEFAULTS=LangOptions
22785 else case e in #(
22786 e) SETLANGDEFAULTS=CompilerInvocation ;;
22787 esac
22788 fi
22789 rm -rf conftest*
22790
22791
22792 printf "%s\n" "#define SETLANGDEFAULTS $SETLANGDEFAULTS" >>confdefs.h
22793
22794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22795 /* end confdefs.h. */
22796
22797 #include <clang/Basic/TargetOptions.h>
22798 #include <clang/Lex/PreprocessorOptions.h>
22799 #include <clang/Frontend/CompilerInstance.h>
22800
22801 #include "include/isl-interface/set_lang_defaults_arg4.h"
22802
22803 int
22804 main (void)
22805 {
22806
22807 using namespace clang;
22808 CompilerInstance *Clang;
22809 TargetOptions TO;
22810 llvm::Triple T(TO.Triple);
22811 PreprocessorOptions PO;
22812 SETLANGDEFAULTS::setLangDefaults(Clang->getLangOpts(), IK_C,
22813 T, setLangDefaultsArg4(PO),
22814 LangStandard::lang_unspecified);
22815
22816 ;
22817 return 0;
22818 }
22819 _ACEOF
22820 if ac_fn_cxx_try_compile "$LINENO"
22821 then :
22822
22823 printf "%s\n" "#define SETLANGDEFAULTS_TAKES_5_ARGUMENTS /**/" >>confdefs.h
22824
22825 fi
22826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22827 ac_fn_cxx_check_header_compile "$LINENO" "llvm/Option/Arg.h" "ac_cv_header_llvm_Option_Arg_h" "$ac_includes_default"
22828 if test "x$ac_cv_header_llvm_Option_Arg_h" = xyes
22829 then :
22830
22831 printf "%s\n" "#define HAVE_LLVM_OPTION_ARG_H /**/" >>confdefs.h
22832
22833 fi
22834
22835 # llvmorg-20-init-12950-gbdd10d9d249b
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22838 #include <clang/Frontend/CompilerInstance.h>
22839 int
22840 main (void)
22841 {
22842
22843 clang::CompilerInstance *Clang;
22844 Clang->createDiagnostics(*llvm::vfs::getRealFileSystem());
22845
22846 ;
22847 return 0;
22848 }
22849 _ACEOF
22850 if ac_fn_cxx_try_compile "$LINENO"
22851 then :
22852
22853 printf "%s\n" "#define CREATEDIAGNOSTICS_TAKES_VFS /**/" >>confdefs.h
22854
22855 fi
22856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22857
22858 CPPFLAGS="$SAVE_CPPFLAGS"
22859
22860 ac_ext=c
22861 ac_cpp='$CPP $CPPFLAGS'
22862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22865
22866
22867
22868 CONFIG_STATUS_DEPENDENCIES=$LLVM_CONFIG
22869
22870 ac_config_headers="$ac_config_headers isl_config.h include/isl-interface/config.h"
22871
22872 ac_config_files="$ac_config_files Makefile"
22873
22874
22875 cat >confcache <<\_ACEOF
22876 # This file is a shell script that caches the results of configure
22877 # tests run on this system so they can be shared between configure
22878 # scripts and configure runs, see configure's option --config-cache.
22879 # It is not useful on other systems. If it contains results you don't
22880 # want to keep, you may remove or edit it.
22881 #
22882 # config.status only pays attention to the cache file if you give it
22883 # the --recheck option to rerun configure.
22884 #
22885 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22886 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22887 # following values.
22888
22889 _ACEOF
22890
22891 # The following way of writing the cache mishandles newlines in values,
22892 # but we know of no workaround that is simple, portable, and efficient.
22893 # So, we kill variables containing newlines.
22894 # Ultrix sh set writes to stderr and can't be redirected directly,
22895 # and sets the high bit in the cache file unless we assign to the vars.
22896 (
22897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22898 eval ac_val=\$$ac_var
22899 case $ac_val in #(
22900 *${as_nl}*)
22901 case $ac_var in #(
22902 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22903 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22904 esac
22905 case $ac_var in #(
22906 _ | IFS | as_nl) ;; #(
22907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22908 *) { eval $ac_var=; unset $ac_var;} ;;
22909 esac ;;
22910 esac
22911 done
22912
22913 (set) 2>&1 |
22914 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22915 *${as_nl}ac_space=\ *)
22916 # 'set' does not quote correctly, so add quotes: double-quote
22917 # substitution turns \\\\ into \\, and sed turns \\ into \.
22918 sed -n \
22919 "s/'/'\\\\''/g;
22920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22921 ;; #(
22922 *)
22923 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22925 ;;
22926 esac |
22927 sort
22928 ) |
22929 sed '
22930 /^ac_cv_env_/b end
22931 t clear
22932 :clear
22933 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22934 t end
22935 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22936 :end' >>confcache
22937 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22938 if test -w "$cache_file"; then
22939 if test "x$cache_file" != "x/dev/null"; then
22940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22941 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22942 if test ! -f "$cache_file" || test -h "$cache_file"; then
22943 cat confcache >"$cache_file"
22944 else
22945 case $cache_file in #(
22946 */* | ?:*)
22947 mv -f confcache "$cache_file"$$ &&
22948 mv -f "$cache_file"$$ "$cache_file" ;; #(
22949 *)
22950 mv -f confcache "$cache_file" ;;
22951 esac
22952 fi
22953 fi
22954 else
22955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22956 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22957 fi
22958 fi
22959 rm -f confcache
22960
22961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22962 # Let make expand exec_prefix.
22963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22964
22965 DEFS=-DHAVE_CONFIG_H
22966
22967 ac_libobjs=
22968 ac_ltlibobjs=
22969 U=
22970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22971 # 1. Remove the extension, and $U if already installed.
22972 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22973 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22974 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22975 # will be set to the directory where LIBOBJS objects are built.
22976 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22977 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22978 done
22979 LIBOBJS=$ac_libobjs
22980
22981 LTLIBOBJS=$ac_ltlibobjs
22982
22983
22984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22985 printf %s "checking that generated files are newer than configure... " >&6; }
22986 if test -n "$am_sleep_pid"; then
22987 # Hide warnings about reused PIDs.
22988 wait $am_sleep_pid 2>/dev/null
22989 fi
22990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22991 printf "%s\n" "done" >&6; }
22992 case $enable_silent_rules in # (((
22993 yes) AM_DEFAULT_VERBOSITY=0;;
22994 no) AM_DEFAULT_VERBOSITY=1;;
22995 esac
22996 if test $am_cv_make_support_nested_variables = yes; then
22997 AM_V='$(V)'
22998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22999 else
23000 AM_V=$AM_DEFAULT_VERBOSITY
23001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23002 fi
23003
23004 if test -n "$EXEEXT"; then
23005 am__EXEEXT_TRUE=
23006 am__EXEEXT_FALSE='#'
23007 else
23008 am__EXEEXT_TRUE='#'
23009 am__EXEEXT_FALSE=
23010 fi
23011
23012 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23013 as_fn_error $? "conditional \"AMDEP\" was never defined.
23014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23015 fi
23016 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23017 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23019 fi
23020 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23021 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23023 fi
23024 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23025 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23027 fi
23028 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23029 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23031 fi
23032
23033 : "${CONFIG_STATUS=./config.status}"
23034 ac_write_fail=0
23035 ac_clean_files_save=$ac_clean_files
23036 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23038 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23039 as_write_fail=0
23040 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23041 #! $SHELL
23042 # Generated by $as_me.
23043 # Run this file to recreate the current configuration.
23044 # Compiler output produced by configure, useful for debugging
23045 # configure, is in config.log if it exists.
23046
23047 debug=false
23048 ac_cs_recheck=false
23049 ac_cs_silent=false
23050
23051 SHELL=\${CONFIG_SHELL-$SHELL}
23052 export SHELL
23053 _ASEOF
23054 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23055 ## -------------------- ##
23056 ## M4sh Initialization. ##
23057 ## -------------------- ##
23058
23059 # Be more Bourne compatible
23060 DUALCASE=1; export DUALCASE # for MKS sh
23061 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23062 then :
23063 emulate sh
23064 NULLCMD=:
23065 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23066 # is contrary to our usage. Disable this feature.
23067 alias -g '${1+"$@"}'='"$@"'
23068 setopt NO_GLOB_SUBST
23069 else case e in #(
23070 e) case `(set -o) 2>/dev/null` in #(
23071 *posix*) :
23072 set -o posix ;; #(
23073 *) :
23074 ;;
23075 esac ;;
23076 esac
23077 fi
23078
23079
23080
23081 # Reset variables that may have inherited troublesome values from
23082 # the environment.
23083
23084 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23085 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23086 # side effect of setting IFS to empty, thus disabling word splitting.)
23087 # Quoting is to prevent editors from complaining about space-tab.
23088 as_nl='
23089 '
23090 export as_nl
23091 IFS=" "" $as_nl"
23092
23093 PS1='$ '
23094 PS2='> '
23095 PS4='+ '
23096
23097 # Ensure predictable behavior from utilities with locale-dependent output.
23098 LC_ALL=C
23099 export LC_ALL
23100 LANGUAGE=C
23101 export LANGUAGE
23102
23103 # We cannot yet rely on "unset" to work, but we need these variables
23104 # to be unset--not just set to an empty or harmless value--now, to
23105 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23106 # also avoids known problems related to "unset" and subshell syntax
23107 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23108 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23109 do eval test \${$as_var+y} \
23110 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23111 done
23112
23113 # Ensure that fds 0, 1, and 2 are open.
23114 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23115 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23116 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23117
23118 # The user is always right.
23119 if ${PATH_SEPARATOR+false} :; then
23120 PATH_SEPARATOR=:
23121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23123 PATH_SEPARATOR=';'
23124 }
23125 fi
23126
23127
23128 # Find who we are. Look in the path if we contain no directory separator.
23129 as_myself=
23130 case $0 in #((
23131 *[\\/]* ) as_myself=$0 ;;
23132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23133 for as_dir in $PATH
23134 do
23135 IFS=$as_save_IFS
23136 case $as_dir in #(((
23137 '') as_dir=./ ;;
23138 */) ;;
23139 *) as_dir=$as_dir/ ;;
23140 esac
23141 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23142 done
23143 IFS=$as_save_IFS
23144
23145 ;;
23146 esac
23147 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23148 # in which case we are not to be found in the path.
23149 if test "x$as_myself" = x; then
23150 as_myself=$0
23151 fi
23152 if test ! -f "$as_myself"; then
23153 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23154 exit 1
23155 fi
23156
23157
23158
23159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23160 # ----------------------------------------
23161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23163 # script with STATUS, using 1 if that was 0.
23164 as_fn_error ()
23165 {
23166 as_status=$1; test $as_status -eq 0 && as_status=1
23167 if test "$4"; then
23168 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23170 fi
23171 printf "%s\n" "$as_me: error: $2" >&2
23172 as_fn_exit $as_status
23173 } # as_fn_error
23174
23175
23176 # as_fn_set_status STATUS
23177 # -----------------------
23178 # Set $? to STATUS, without forking.
23179 as_fn_set_status ()
23180 {
23181 return $1
23182 } # as_fn_set_status
23183
23184 # as_fn_exit STATUS
23185 # -----------------
23186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23187 as_fn_exit ()
23188 {
23189 set +e
23190 as_fn_set_status $1
23191 exit $1
23192 } # as_fn_exit
23193
23194 # as_fn_unset VAR
23195 # ---------------
23196 # Portably unset VAR.
23197 as_fn_unset ()
23198 {
23199 { eval $1=; unset $1;}
23200 }
23201 as_unset=as_fn_unset
23202
23203 # as_fn_append VAR VALUE
23204 # ----------------------
23205 # Append the text in VALUE to the end of the definition contained in VAR. Take
23206 # advantage of any shell optimizations that allow amortized linear growth over
23207 # repeated appends, instead of the typical quadratic growth present in naive
23208 # implementations.
23209 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23210 then :
23211 eval 'as_fn_append ()
23212 {
23213 eval $1+=\$2
23214 }'
23215 else case e in #(
23216 e) as_fn_append ()
23217 {
23218 eval $1=\$$1\$2
23219 } ;;
23220 esac
23221 fi # as_fn_append
23222
23223 # as_fn_arith ARG...
23224 # ------------------
23225 # Perform arithmetic evaluation on the ARGs, and store the result in the
23226 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23227 # must be portable across $(()) and expr.
23228 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23229 then :
23230 eval 'as_fn_arith ()
23231 {
23232 as_val=$(( $* ))
23233 }'
23234 else case e in #(
23235 e) as_fn_arith ()
23236 {
23237 as_val=`expr "$@" || test $? -eq 1`
23238 } ;;
23239 esac
23240 fi # as_fn_arith
23241
23242
23243 if expr a : '\(a\)' >/dev/null 2>&1 &&
23244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23245 as_expr=expr
23246 else
23247 as_expr=false
23248 fi
23249
23250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23251 as_basename=basename
23252 else
23253 as_basename=false
23254 fi
23255
23256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23257 as_dirname=dirname
23258 else
23259 as_dirname=false
23260 fi
23261
23262 as_me=`$as_basename -- "$0" ||
23263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23264 X"$0" : 'X\(//\)$' \| \
23265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23266 printf "%s\n" X/"$0" |
23267 sed '/^.*\/\([^/][^/]*\)\/*$/{
23268 s//\1/
23269 q
23270 }
23271 /^X\/\(\/\/\)$/{
23272 s//\1/
23273 q
23274 }
23275 /^X\/\(\/\).*/{
23276 s//\1/
23277 q
23278 }
23279 s/.*/./; q'`
23280
23281 # Avoid depending upon Character Ranges.
23282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23285 as_cr_digits='0123456789'
23286 as_cr_alnum=$as_cr_Letters$as_cr_digits
23287
23288
23289 # Determine whether it's possible to make 'echo' print without a newline.
23290 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23291 # for compatibility with existing Makefiles.
23292 ECHO_C= ECHO_N= ECHO_T=
23293 case `echo -n x` in #(((((
23294 -n*)
23295 case `echo 'xy\c'` in
23296 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23297 xy) ECHO_C='\c';;
23298 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23299 ECHO_T=' ';;
23300 esac;;
23301 *)
23302 ECHO_N='-n';;
23303 esac
23304
23305 # For backward compatibility with old third-party macros, we provide
23306 # the shell variables $as_echo and $as_echo_n. New code should use
23307 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23308 as_echo='printf %s\n'
23309 as_echo_n='printf %s'
23310
23311 rm -f conf$$ conf$$.exe conf$$.file
23312 if test -d conf$$.dir; then
23313 rm -f conf$$.dir/conf$$.file
23314 else
23315 rm -f conf$$.dir
23316 mkdir conf$$.dir 2>/dev/null
23317 fi
23318 if (echo >conf$$.file) 2>/dev/null; then
23319 if ln -s conf$$.file conf$$ 2>/dev/null; then
23320 as_ln_s='ln -s'
23321 # ... but there are two gotchas:
23322 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23323 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23324 # In both cases, we have to default to 'cp -pR'.
23325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23326 as_ln_s='cp -pR'
23327 elif ln conf$$.file conf$$ 2>/dev/null; then
23328 as_ln_s=ln
23329 else
23330 as_ln_s='cp -pR'
23331 fi
23332 else
23333 as_ln_s='cp -pR'
23334 fi
23335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23336 rmdir conf$$.dir 2>/dev/null
23337
23338
23339 # as_fn_mkdir_p
23340 # -------------
23341 # Create "$as_dir" as a directory, including parents if necessary.
23342 as_fn_mkdir_p ()
23343 {
23344
23345 case $as_dir in #(
23346 -*) as_dir=./$as_dir;;
23347 esac
23348 test -d "$as_dir" || eval $as_mkdir_p || {
23349 as_dirs=
23350 while :; do
23351 case $as_dir in #(
23352 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23353 *) as_qdir=$as_dir;;
23354 esac
23355 as_dirs="'$as_qdir' $as_dirs"
23356 as_dir=`$as_dirname -- "$as_dir" ||
23357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23358 X"$as_dir" : 'X\(//\)[^/]' \| \
23359 X"$as_dir" : 'X\(//\)$' \| \
23360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23361 printf "%s\n" X"$as_dir" |
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23363 s//\1/
23364 q
23365 }
23366 /^X\(\/\/\)[^/].*/{
23367 s//\1/
23368 q
23369 }
23370 /^X\(\/\/\)$/{
23371 s//\1/
23372 q
23373 }
23374 /^X\(\/\).*/{
23375 s//\1/
23376 q
23377 }
23378 s/.*/./; q'`
23379 test -d "$as_dir" && break
23380 done
23381 test -z "$as_dirs" || eval "mkdir $as_dirs"
23382 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23383
23384
23385 } # as_fn_mkdir_p
23386 if mkdir -p . 2>/dev/null; then
23387 as_mkdir_p='mkdir -p "$as_dir"'
23388 else
23389 test -d ./-p && rmdir ./-p
23390 as_mkdir_p=false
23391 fi
23392
23393
23394 # as_fn_executable_p FILE
23395 # -----------------------
23396 # Test if FILE is an executable regular file.
23397 as_fn_executable_p ()
23398 {
23399 test -f "$1" && test -x "$1"
23400 } # as_fn_executable_p
23401 as_test_x='test -x'
23402 as_executable_p=as_fn_executable_p
23403
23404 # Sed expression to map a string onto a valid CPP name.
23405 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23406 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23407
23408 # Sed expression to map a string onto a valid variable name.
23409 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23410 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23411
23412
23413 exec 6>&1
23414 ## ----------------------------------- ##
23415 ## Main body of $CONFIG_STATUS script. ##
23416 ## ----------------------------------- ##
23417 _ASEOF
23418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23419
23420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23421 # Save the log message, to keep $0 and so on meaningful, and to
23422 # report actual input values of CONFIG_FILES etc. instead of their
23423 # values after options handling.
23424 ac_log="
23425 This file was extended by isl-interface $as_me 0, which was
23426 generated by GNU Autoconf 2.72. Invocation command line was
23427
23428 CONFIG_FILES = $CONFIG_FILES
23429 CONFIG_HEADERS = $CONFIG_HEADERS
23430 CONFIG_LINKS = $CONFIG_LINKS
23431 CONFIG_COMMANDS = $CONFIG_COMMANDS
23432 $ $0 $@
23433
23434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23435 "
23436
23437 _ACEOF
23438
23439 case $ac_config_files in *"
23440 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23441 esac
23442
23443 case $ac_config_headers in *"
23444 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23445 esac
23446
23447
23448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23449 # Files that config.status was made for.
23450 config_files="$ac_config_files"
23451 config_headers="$ac_config_headers"
23452 config_commands="$ac_config_commands"
23453
23454 _ACEOF
23455
23456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23457 ac_cs_usage="\
23458 '$as_me' instantiates files and other configuration actions
23459 from templates according to the current configuration. Unless the files
23460 and actions are specified as TAGs, all are instantiated by default.
23461
23462 Usage: $0 [OPTION]... [TAG]...
23463
23464 -h, --help print this help, then exit
23465 -V, --version print version number and configuration settings, then exit
23466 --config print configuration, then exit
23467 -q, --quiet, --silent
23468 do not print progress messages
23469 -d, --debug don't remove temporary files
23470 --recheck update $as_me by reconfiguring in the same conditions
23471 --file=FILE[:TEMPLATE]
23472 instantiate the configuration file FILE
23473 --header=FILE[:TEMPLATE]
23474 instantiate the configuration header FILE
23475
23476 Configuration files:
23477 $config_files
23478
23479 Configuration headers:
23480 $config_headers
23481
23482 Configuration commands:
23483 $config_commands
23484
23485 Report bugs to <[email protected]>."
23486
23487 _ACEOF
23488 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23489 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23491 ac_cs_config='$ac_cs_config_escaped'
23492 ac_cs_version="\\
23493 isl-interface config.status 0
23494 configured by $0, generated by GNU Autoconf 2.72,
23495 with options \\"\$ac_cs_config\\"
23496
23497 Copyright (C) 2023 Free Software Foundation, Inc.
23498 This config.status script is free software; the Free Software Foundation
23499 gives unlimited permission to copy, distribute and modify it."
23500
23501 ac_pwd='$ac_pwd'
23502 srcdir='$srcdir'
23503 INSTALL='$INSTALL'
23504 MKDIR_P='$MKDIR_P'
23505 AWK='$AWK'
23506 test -n "\$AWK" || AWK=awk
23507 _ACEOF
23508
23509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23510 # The default lists apply if the user does not specify any file.
23511 ac_need_defaults=:
23512 while test $# != 0
23513 do
23514 case $1 in
23515 --*=?*)
23516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23518 ac_shift=:
23519 ;;
23520 --*=)
23521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23522 ac_optarg=
23523 ac_shift=:
23524 ;;
23525 *)
23526 ac_option=$1
23527 ac_optarg=$2
23528 ac_shift=shift
23529 ;;
23530 esac
23531
23532 case $ac_option in
23533 # Handling of the options.
23534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23535 ac_cs_recheck=: ;;
23536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23537 printf "%s\n" "$ac_cs_version"; exit ;;
23538 --config | --confi | --conf | --con | --co | --c )
23539 printf "%s\n" "$ac_cs_config"; exit ;;
23540 --debug | --debu | --deb | --de | --d | -d )
23541 debug=: ;;
23542 --file | --fil | --fi | --f )
23543 $ac_shift
23544 case $ac_optarg in
23545 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23546 '') as_fn_error $? "missing file argument" ;;
23547 esac
23548 as_fn_append CONFIG_FILES " '$ac_optarg'"
23549 ac_need_defaults=false;;
23550 --header | --heade | --head | --hea )
23551 $ac_shift
23552 case $ac_optarg in
23553 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23554 esac
23555 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23556 ac_need_defaults=false;;
23557 --he | --h)
23558 # Conflict between --help and --header
23559 as_fn_error $? "ambiguous option: '$1'
23560 Try '$0 --help' for more information.";;
23561 --help | --hel | -h )
23562 printf "%s\n" "$ac_cs_usage"; exit ;;
23563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23565 ac_cs_silent=: ;;
23566
23567 # This is an error.
23568 -*) as_fn_error $? "unrecognized option: '$1'
23569 Try '$0 --help' for more information." ;;
23570
23571 *) as_fn_append ac_config_targets " $1"
23572 ac_need_defaults=false ;;
23573
23574 esac
23575 shift
23576 done
23577
23578 ac_configure_extra_args=
23579
23580 if $ac_cs_silent; then
23581 exec 6>/dev/null
23582 ac_configure_extra_args="$ac_configure_extra_args --silent"
23583 fi
23584
23585 _ACEOF
23586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23587 if \$ac_cs_recheck; then
23588 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23589 shift
23590 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23591 CONFIG_SHELL='$SHELL'
23592 export CONFIG_SHELL
23593 exec "\$@"
23594 fi
23595
23596 _ACEOF
23597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23598 exec 5>>config.log
23599 {
23600 echo
23601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23602 ## Running $as_me. ##
23603 _ASBOX
23604 printf "%s\n" "$ac_log"
23605 } >&5
23606
23607 _ACEOF
23608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23609 #
23610 # INIT-COMMANDS
23611 #
23612 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23613
23614
23615 # The HP-UX ksh and POSIX shell print the target directory to stdout
23616 # if CDPATH is set.
23617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23618
23619 sed_quote_subst='$sed_quote_subst'
23620 double_quote_subst='$double_quote_subst'
23621 delay_variable_subst='$delay_variable_subst'
23622 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23623 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23624 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23625 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23626 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23627 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23628 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23629 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23630 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23631 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23632 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23633 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23634 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23635 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23636 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23637 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23638 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23639 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23640 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23641 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23642 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23643 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23644 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23645 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23646 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23647 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23648 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23649 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23650 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23651 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23652 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23653 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23654 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23655 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23656 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23657 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23658 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23659 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23660 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23661 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23662 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23663 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23664 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23665 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23667 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23680 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23681 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23682 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"`'
23683 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23684 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23685 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23686 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23687 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23688 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23689 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23690 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23691 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23692 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23693 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23694 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23695 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23696 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23697 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23698 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23699 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23700 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23701 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23702 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23703 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23704 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23705 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23706 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23707 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23708 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23709 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23710 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23711 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23712 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23713 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23714 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23715 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23716 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23717 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23718 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23719 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23720 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23721 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23722 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23723 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23724 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23725 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23726 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23727 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23728 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23729 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23730 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23731 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23732 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23733 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23734 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23735 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23736 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23737 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23738 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23739 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23740 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23741 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23742 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23743 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23744 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23745 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23746 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23747 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23748 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23749 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23750 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23751 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23752 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23753 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23754 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23755 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23756 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23757 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23758 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23759 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23760 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23761 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23762 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23763 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23764 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23765 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23766 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23767 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23768 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23769 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23770 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23771 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23772 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23773 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23774 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23775 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23776 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23777 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23778 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23779 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23780 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23781 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23782 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23783 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23784 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23785 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23786 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23787 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23788 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23789 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23790 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23791 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23792 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23793 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23794 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23795 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23796 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23797 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23798 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23799 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23800 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23801 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23802 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23803 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23804 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23805 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23806 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23807 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23808 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23809 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23810 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23811 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23812 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23813
23814 LTCC='$LTCC'
23815 LTCFLAGS='$LTCFLAGS'
23816 compiler='$compiler_DEFAULT'
23817
23818 # A function that is used when there is no print builtin or printf.
23819 func_fallback_echo ()
23820 {
23821 eval 'cat <<_LTECHO_EOF
23822 \$1
23823 _LTECHO_EOF'
23824 }
23825
23826 # Quote evaled strings.
23827 for var in SHELL \
23828 ECHO \
23829 PATH_SEPARATOR \
23830 SED \
23831 GREP \
23832 EGREP \
23833 FGREP \
23834 LD \
23835 NM \
23836 LN_S \
23837 lt_SP2NL \
23838 lt_NL2SP \
23839 reload_flag \
23840 FILECMD \
23841 OBJDUMP \
23842 deplibs_check_method \
23843 file_magic_cmd \
23844 file_magic_glob \
23845 want_nocaseglob \
23846 DLLTOOL \
23847 sharedlib_from_linklib_cmd \
23848 AR \
23849 archiver_list_spec \
23850 STRIP \
23851 RANLIB \
23852 CC \
23853 CFLAGS \
23854 compiler \
23855 lt_cv_sys_global_symbol_pipe \
23856 lt_cv_sys_global_symbol_to_cdecl \
23857 lt_cv_sys_global_symbol_to_import \
23858 lt_cv_sys_global_symbol_to_c_name_address \
23859 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23860 lt_cv_nm_interface \
23861 nm_file_list_spec \
23862 lt_cv_truncate_bin \
23863 lt_prog_compiler_no_builtin_flag \
23864 lt_prog_compiler_pic \
23865 lt_prog_compiler_wl \
23866 lt_prog_compiler_static \
23867 lt_cv_prog_compiler_c_o \
23868 need_locks \
23869 MANIFEST_TOOL \
23870 DSYMUTIL \
23871 NMEDIT \
23872 LIPO \
23873 OTOOL \
23874 OTOOL64 \
23875 shrext_cmds \
23876 export_dynamic_flag_spec \
23877 whole_archive_flag_spec \
23878 compiler_needs_object \
23879 with_gnu_ld \
23880 allow_undefined_flag \
23881 no_undefined_flag \
23882 hardcode_libdir_flag_spec \
23883 hardcode_libdir_separator \
23884 exclude_expsyms \
23885 include_expsyms \
23886 file_list_spec \
23887 variables_saved_for_relink \
23888 libname_spec \
23889 library_names_spec \
23890 soname_spec \
23891 install_override_mode \
23892 finish_eval \
23893 old_striplib \
23894 striplib \
23895 compiler_lib_search_dirs \
23896 predep_objects \
23897 postdep_objects \
23898 predeps \
23899 postdeps \
23900 compiler_lib_search_path \
23901 LD_CXX \
23902 reload_flag_CXX \
23903 compiler_CXX \
23904 lt_prog_compiler_no_builtin_flag_CXX \
23905 lt_prog_compiler_pic_CXX \
23906 lt_prog_compiler_wl_CXX \
23907 lt_prog_compiler_static_CXX \
23908 lt_cv_prog_compiler_c_o_CXX \
23909 export_dynamic_flag_spec_CXX \
23910 whole_archive_flag_spec_CXX \
23911 compiler_needs_object_CXX \
23912 with_gnu_ld_CXX \
23913 allow_undefined_flag_CXX \
23914 no_undefined_flag_CXX \
23915 hardcode_libdir_flag_spec_CXX \
23916 hardcode_libdir_separator_CXX \
23917 exclude_expsyms_CXX \
23918 include_expsyms_CXX \
23919 file_list_spec_CXX \
23920 compiler_lib_search_dirs_CXX \
23921 predep_objects_CXX \
23922 postdep_objects_CXX \
23923 predeps_CXX \
23924 postdeps_CXX \
23925 compiler_lib_search_path_CXX; do
23926 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23927 *[\\\\\\\`\\"\\\$]*)
23928 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23929 ;;
23930 *)
23931 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23932 ;;
23933 esac
23934 done
23935
23936 # Double-quote double-evaled strings.
23937 for var in reload_cmds \
23938 old_postinstall_cmds \
23939 old_postuninstall_cmds \
23940 old_archive_cmds \
23941 extract_expsyms_cmds \
23942 old_archive_from_new_cmds \
23943 old_archive_from_expsyms_cmds \
23944 archive_cmds \
23945 archive_expsym_cmds \
23946 module_cmds \
23947 module_expsym_cmds \
23948 export_symbols_cmds \
23949 prelink_cmds \
23950 postlink_cmds \
23951 postinstall_cmds \
23952 postuninstall_cmds \
23953 finish_cmds \
23954 sys_lib_search_path_spec \
23955 configure_time_dlsearch_path \
23956 configure_time_lt_sys_library_path \
23957 reload_cmds_CXX \
23958 old_archive_cmds_CXX \
23959 old_archive_from_new_cmds_CXX \
23960 old_archive_from_expsyms_cmds_CXX \
23961 archive_cmds_CXX \
23962 archive_expsym_cmds_CXX \
23963 module_cmds_CXX \
23964 module_expsym_cmds_CXX \
23965 export_symbols_cmds_CXX \
23966 prelink_cmds_CXX \
23967 postlink_cmds_CXX; do
23968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23969 *[\\\\\\\`\\"\\\$]*)
23970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23971 ;;
23972 *)
23973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23974 ;;
23975 esac
23976 done
23977
23978 ac_aux_dir='$ac_aux_dir'
23979
23980 # See if we are running on zsh, and set the options that allow our
23981 # commands through without removal of \ escapes INIT.
23982 if test -n "\${ZSH_VERSION+set}"; then
23983 setopt NO_GLOB_SUBST
23984 fi
23985
23986
23987 PACKAGE='$PACKAGE'
23988 VERSION='$VERSION'
23989 RM='$RM'
23990 ofile='$ofile'
23991
23992
23993
23994
23995
23996
23997 _ACEOF
23998
23999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24000
24001 # Handling of arguments.
24002 for ac_config_target in $ac_config_targets
24003 do
24004 case $ac_config_target in
24005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24007 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;;
24008 "include/isl-interface/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/isl-interface/config.h" ;;
24009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24010
24011 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
24012 esac
24013 done
24014
24015
24016 # If the user did not use the arguments to specify the items to instantiate,
24017 # then the envvar interface is used. Set only those that are not.
24018 # We use the long form for the default assignment because of an extremely
24019 # bizarre bug on SunOS 4.1.3.
24020 if $ac_need_defaults; then
24021 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24022 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24023 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24024 fi
24025
24026 # Have a temporary directory for convenience. Make it in the build tree
24027 # simply because there is no reason against having it here, and in addition,
24028 # creating and moving files from /tmp can sometimes cause problems.
24029 # Hook for its removal unless debugging.
24030 # Note that there is a small window in which the directory will not be cleaned:
24031 # after its creation but before its name has been assigned to '$tmp'.
24032 $debug ||
24033 {
24034 tmp= ac_tmp=
24035 trap 'exit_status=$?
24036 : "${ac_tmp:=$tmp}"
24037 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24038 ' 0
24039 trap 'as_fn_exit 1' 1 2 13 15
24040 }
24041 # Create a (secure) tmp directory for tmp files.
24042
24043 {
24044 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24045 test -d "$tmp"
24046 } ||
24047 {
24048 tmp=./conf$$-$RANDOM
24049 (umask 077 && mkdir "$tmp")
24050 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24051 ac_tmp=$tmp
24052
24053 # Set up the scripts for CONFIG_FILES section.
24054 # No need to generate them if there are no CONFIG_FILES.
24055 # This happens for instance with './config.status config.h'.
24056 if test -n "$CONFIG_FILES"; then
24057
24058
24059 ac_cr=`echo X | tr X '\015'`
24060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24061 # But we know of no other shell where ac_cr would be empty at this
24062 # point, so we can use a bashism as a fallback.
24063 if test "x$ac_cr" = x; then
24064 eval ac_cr=\$\'\\r\'
24065 fi
24066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24068 ac_cs_awk_cr='\\r'
24069 else
24070 ac_cs_awk_cr=$ac_cr
24071 fi
24072
24073 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24074 _ACEOF
24075
24076
24077 {
24078 echo "cat >conf$$subs.awk <<_ACEOF" &&
24079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24080 echo "_ACEOF"
24081 } >conf$$subs.sh ||
24082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24084 ac_delim='%!_!# '
24085 for ac_last_try in false false false false false :; do
24086 . ./conf$$subs.sh ||
24087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24088
24089 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24090 if test $ac_delim_n = $ac_delim_num; then
24091 break
24092 elif $ac_last_try; then
24093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24094 else
24095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24096 fi
24097 done
24098 rm -f conf$$subs.sh
24099
24100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24102 _ACEOF
24103 sed -n '
24104 h
24105 s/^/S["/; s/!.*/"]=/
24106 p
24107 g
24108 s/^[^!]*!//
24109 :repl
24110 t repl
24111 s/'"$ac_delim"'$//
24112 t delim
24113 :nl
24114 h
24115 s/\(.\{148\}\)..*/\1/
24116 t more1
24117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24118 p
24119 n
24120 b repl
24121 :more1
24122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24123 p
24124 g
24125 s/.\{148\}//
24126 t nl
24127 :delim
24128 h
24129 s/\(.\{148\}\)..*/\1/
24130 t more2
24131 s/["\\]/\\&/g; s/^/"/; s/$/"/
24132 p
24133 b
24134 :more2
24135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24136 p
24137 g
24138 s/.\{148\}//
24139 t delim
24140 ' <conf$$subs.awk | sed '
24141 /^[^""]/{
24142 N
24143 s/\n//
24144 }
24145 ' >>$CONFIG_STATUS || ac_write_fail=1
24146 rm -f conf$$subs.awk
24147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24148 _ACAWK
24149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24150 for (key in S) S_is_set[key] = 1
24151 FS = ""
24152
24153 }
24154 {
24155 line = $ 0
24156 nfields = split(line, field, "@")
24157 substed = 0
24158 len = length(field[1])
24159 for (i = 2; i < nfields; i++) {
24160 key = field[i]
24161 keylen = length(key)
24162 if (S_is_set[key]) {
24163 value = S[key]
24164 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24165 len += length(value) + length(field[++i])
24166 substed = 1
24167 } else
24168 len += 1 + keylen
24169 }
24170
24171 print line
24172 }
24173
24174 _ACAWK
24175 _ACEOF
24176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24178 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24179 else
24180 cat
24181 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24182 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24183 _ACEOF
24184
24185 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24186 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24187 # trailing colons and then remove the whole line if VPATH becomes empty
24188 # (actually we leave an empty line to preserve line numbers).
24189 if test "x$srcdir" = x.; then
24190 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24191 h
24192 s///
24193 s/^/:/
24194 s/[ ]*$/:/
24195 s/:\$(srcdir):/:/g
24196 s/:\${srcdir}:/:/g
24197 s/:@srcdir@:/:/g
24198 s/^:*//
24199 s/:*$//
24200 x
24201 s/\(=[ ]*\).*/\1/
24202 G
24203 s/\n//
24204 s/^[^=]*=[ ]*$//
24205 }'
24206 fi
24207
24208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24209 fi # test -n "$CONFIG_FILES"
24210
24211 # Set up the scripts for CONFIG_HEADERS section.
24212 # No need to generate them if there are no CONFIG_HEADERS.
24213 # This happens for instance with './config.status Makefile'.
24214 if test -n "$CONFIG_HEADERS"; then
24215 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24216 BEGIN {
24217 _ACEOF
24218
24219 # Transform confdefs.h into an awk script 'defines.awk', embedded as
24220 # here-document in config.status, that substitutes the proper values into
24221 # config.h.in to produce config.h.
24222
24223 # Create a delimiter string that does not exist in confdefs.h, to ease
24224 # handling of long lines.
24225 ac_delim='%!_!# '
24226 for ac_last_try in false false :; do
24227 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24228 if test -z "$ac_tt"; then
24229 break
24230 elif $ac_last_try; then
24231 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24232 else
24233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24234 fi
24235 done
24236
24237 # For the awk script, D is an array of macro values keyed by name,
24238 # likewise P contains macro parameters if any. Preserve backslash
24239 # newline sequences.
24240
24241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24242 sed -n '
24243 s/.\{148\}/&'"$ac_delim"'/g
24244 t rset
24245 :rset
24246 s/^[ ]*#[ ]*define[ ][ ]*/ /
24247 t def
24248 d
24249 :def
24250 s/\\$//
24251 t bsnl
24252 s/["\\]/\\&/g
24253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24254 D["\1"]=" \3"/p
24255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24256 d
24257 :bsnl
24258 s/["\\]/\\&/g
24259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24260 D["\1"]=" \3\\\\\\n"\\/p
24261 t cont
24262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24263 t cont
24264 d
24265 :cont
24266 n
24267 s/.\{148\}/&'"$ac_delim"'/g
24268 t clear
24269 :clear
24270 s/\\$//
24271 t bsnlc
24272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24273 d
24274 :bsnlc
24275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24276 b cont
24277 ' <confdefs.h | sed '
24278 s/'"$ac_delim"'/"\\\
24279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24280
24281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24282 for (key in D) D_is_set[key] = 1
24283 FS = ""
24284 }
24285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24286 line = \$ 0
24287 split(line, arg, " ")
24288 if (arg[1] == "#") {
24289 defundef = arg[2]
24290 mac1 = arg[3]
24291 } else {
24292 defundef = substr(arg[1], 2)
24293 mac1 = arg[2]
24294 }
24295 split(mac1, mac2, "(") #)
24296 macro = mac2[1]
24297 prefix = substr(line, 1, index(line, defundef) - 1)
24298 if (D_is_set[macro]) {
24299 # Preserve the white space surrounding the "#".
24300 print prefix "define", macro P[macro] D[macro]
24301 next
24302 } else {
24303 # Replace #undef with comments. This is necessary, for example,
24304 # in the case of _POSIX_SOURCE, which is predefined and required
24305 # on some systems where configure will not decide to define it.
24306 if (defundef == "undef") {
24307 print "/*", prefix defundef, macro, "*/"
24308 next
24309 }
24310 }
24311 }
24312 { print }
24313 _ACAWK
24314 _ACEOF
24315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24316 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24317 fi # test -n "$CONFIG_HEADERS"
24318
24319
24320 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24321 shift
24322 for ac_tag
24323 do
24324 case $ac_tag in
24325 :[FHLC]) ac_mode=$ac_tag; continue;;
24326 esac
24327 case $ac_mode$ac_tag in
24328 :[FHL]*:*);;
24329 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24330 :[FH]-) ac_tag=-:-;;
24331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24332 esac
24333 ac_save_IFS=$IFS
24334 IFS=:
24335 set x $ac_tag
24336 IFS=$ac_save_IFS
24337 shift
24338 ac_file=$1
24339 shift
24340
24341 case $ac_mode in
24342 :L) ac_source=$1;;
24343 :[FH])
24344 ac_file_inputs=
24345 for ac_f
24346 do
24347 case $ac_f in
24348 -) ac_f="$ac_tmp/stdin";;
24349 *) # Look for the file first in the build tree, then in the source tree
24350 # (if the path is not absolute). The absolute path cannot be DOS-style,
24351 # because $ac_f cannot contain ':'.
24352 test -f "$ac_f" ||
24353 case $ac_f in
24354 [\\/$]*) false;;
24355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24356 esac ||
24357 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24358 esac
24359 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24360 as_fn_append ac_file_inputs " '$ac_f'"
24361 done
24362
24363 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24364 # use $as_me), people would be surprised to read:
24365 # /* config.h. Generated by config.status. */
24366 configure_input='Generated from '`
24367 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24368 `' by configure.'
24369 if test x"$ac_file" != x-; then
24370 configure_input="$ac_file. $configure_input"
24371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24372 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24373 fi
24374 # Neutralize special characters interpreted by sed in replacement strings.
24375 case $configure_input in #(
24376 *\&* | *\|* | *\\* )
24377 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24378 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24379 *) ac_sed_conf_input=$configure_input;;
24380 esac
24381
24382 case $ac_tag in
24383 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24385 esac
24386 ;;
24387 esac
24388
24389 ac_dir=`$as_dirname -- "$ac_file" ||
24390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24391 X"$ac_file" : 'X\(//\)[^/]' \| \
24392 X"$ac_file" : 'X\(//\)$' \| \
24393 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24394 printf "%s\n" X"$ac_file" |
24395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24396 s//\1/
24397 q
24398 }
24399 /^X\(\/\/\)[^/].*/{
24400 s//\1/
24401 q
24402 }
24403 /^X\(\/\/\)$/{
24404 s//\1/
24405 q
24406 }
24407 /^X\(\/\).*/{
24408 s//\1/
24409 q
24410 }
24411 s/.*/./; q'`
24412 as_dir="$ac_dir"; as_fn_mkdir_p
24413 ac_builddir=.
24414
24415 case "$ac_dir" in
24416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24417 *)
24418 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24419 # A ".." for each directory in $ac_dir_suffix.
24420 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24421 case $ac_top_builddir_sub in
24422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24424 esac ;;
24425 esac
24426 ac_abs_top_builddir=$ac_pwd
24427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24428 # for backward compatibility:
24429 ac_top_builddir=$ac_top_build_prefix
24430
24431 case $srcdir in
24432 .) # We are building in place.
24433 ac_srcdir=.
24434 ac_top_srcdir=$ac_top_builddir_sub
24435 ac_abs_top_srcdir=$ac_pwd ;;
24436 [\\/]* | ?:[\\/]* ) # Absolute name.
24437 ac_srcdir=$srcdir$ac_dir_suffix;
24438 ac_top_srcdir=$srcdir
24439 ac_abs_top_srcdir=$srcdir ;;
24440 *) # Relative name.
24441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24442 ac_top_srcdir=$ac_top_build_prefix$srcdir
24443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24444 esac
24445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24446
24447
24448 case $ac_mode in
24449 :F)
24450 #
24451 # CONFIG_FILE
24452 #
24453
24454 case $INSTALL in
24455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24457 esac
24458 ac_MKDIR_P=$MKDIR_P
24459 case $MKDIR_P in
24460 [\\/$]* | ?:[\\/]* ) ;;
24461 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24462 esac
24463 _ACEOF
24464
24465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24466 # If the template does not know about datarootdir, expand it.
24467 # FIXME: This hack should be removed a few years after 2.60.
24468 ac_datarootdir_hack=; ac_datarootdir_seen=
24469 ac_sed_dataroot='
24470 /datarootdir/ {
24471 p
24472 q
24473 }
24474 /@datadir@/p
24475 /@docdir@/p
24476 /@infodir@/p
24477 /@localedir@/p
24478 /@mandir@/p'
24479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24480 *datarootdir*) ac_datarootdir_seen=yes;;
24481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24483 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24484 _ACEOF
24485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24486 ac_datarootdir_hack='
24487 s&@datadir@&$datadir&g
24488 s&@docdir@&$docdir&g
24489 s&@infodir@&$infodir&g
24490 s&@localedir@&$localedir&g
24491 s&@mandir@&$mandir&g
24492 s&\\\${datarootdir}&$datarootdir&g' ;;
24493 esac
24494 _ACEOF
24495
24496 # Neutralize VPATH when '$srcdir' = '.'.
24497 # Shell code in configure.ac might set extrasub.
24498 # FIXME: do we really want to maintain this feature?
24499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24500 ac_sed_extra="$ac_vpsub
24501 $extrasub
24502 _ACEOF
24503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24504 :t
24505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24506 s|@configure_input@|$ac_sed_conf_input|;t t
24507 s&@top_builddir@&$ac_top_builddir_sub&;t t
24508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24509 s&@srcdir@&$ac_srcdir&;t t
24510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24511 s&@top_srcdir@&$ac_top_srcdir&;t t
24512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24513 s&@builddir@&$ac_builddir&;t t
24514 s&@abs_builddir@&$ac_abs_builddir&;t t
24515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24516 s&@INSTALL@&$ac_INSTALL&;t t
24517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24518 $ac_datarootdir_hack
24519 "
24520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24521 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24522
24523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24524 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24526 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24528 which seems to be undefined. Please make sure it is defined" >&5
24529 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24530 which seems to be undefined. Please make sure it is defined" >&2;}
24531
24532 rm -f "$ac_tmp/stdin"
24533 case $ac_file in
24534 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24535 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24536 esac \
24537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24538 ;;
24539 :H)
24540 #
24541 # CONFIG_HEADER
24542 #
24543 if test x"$ac_file" != x-; then
24544 {
24545 printf "%s\n" "/* $configure_input */" >&1 \
24546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24547 } >"$ac_tmp/config.h" \
24548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24549 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24551 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24552 else
24553 rm -f "$ac_file"
24554 mv "$ac_tmp/config.h" "$ac_file" \
24555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24556 fi
24557 else
24558 printf "%s\n" "/* $configure_input */" >&1 \
24559 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24560 || as_fn_error $? "could not create -" "$LINENO" 5
24561 fi
24562 # Compute "$ac_file"'s index in $config_headers.
24563 _am_arg="$ac_file"
24564 _am_stamp_count=1
24565 for _am_header in $config_headers :; do
24566 case $_am_header in
24567 $_am_arg | $_am_arg:* )
24568 break ;;
24569 * )
24570 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24571 esac
24572 done
24573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24575 X"$_am_arg" : 'X\(//\)[^/]' \| \
24576 X"$_am_arg" : 'X\(//\)$' \| \
24577 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24578 printf "%s\n" X"$_am_arg" |
24579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24580 s//\1/
24581 q
24582 }
24583 /^X\(\/\/\)[^/].*/{
24584 s//\1/
24585 q
24586 }
24587 /^X\(\/\/\)$/{
24588 s//\1/
24589 q
24590 }
24591 /^X\(\/\).*/{
24592 s//\1/
24593 q
24594 }
24595 s/.*/./; q'`/stamp-h$_am_stamp_count
24596 ;;
24597
24598 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24599 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24600 ;;
24601 esac
24602
24603
24604 case $ac_file$ac_mode in
24605 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24606 # Older Autoconf quotes --file arguments for eval, but not when files
24607 # are listed without --file. Let's play safe and only enable the eval
24608 # if we detect the quoting.
24609 # TODO: see whether this extra hack can be removed once we start
24610 # requiring Autoconf 2.70 or later.
24611 case $CONFIG_FILES in #(
24612 *\'*) :
24613 eval set x "$CONFIG_FILES" ;; #(
24614 *) :
24615 set x $CONFIG_FILES ;; #(
24616 *) :
24617 ;;
24618 esac
24619 shift
24620 # Used to flag and report bootstrapping failures.
24621 am_rc=0
24622 for am_mf
24623 do
24624 # Strip MF so we end up with the name of the file.
24625 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24626 # Check whether this is an Automake generated Makefile which includes
24627 # dependency-tracking related rules and includes.
24628 # Grep'ing the whole file directly is not great: AIX grep has a line
24629 # limit of 2048, but all sed's we know have understand at least 4000.
24630 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24631 || continue
24632 am_dirpart=`$as_dirname -- "$am_mf" ||
24633 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24634 X"$am_mf" : 'X\(//\)[^/]' \| \
24635 X"$am_mf" : 'X\(//\)$' \| \
24636 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24637 printf "%s\n" X"$am_mf" |
24638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24639 s//\1/
24640 q
24641 }
24642 /^X\(\/\/\)[^/].*/{
24643 s//\1/
24644 q
24645 }
24646 /^X\(\/\/\)$/{
24647 s//\1/
24648 q
24649 }
24650 /^X\(\/\).*/{
24651 s//\1/
24652 q
24653 }
24654 s/.*/./; q'`
24655 am_filepart=`$as_basename -- "$am_mf" ||
24656 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24657 X"$am_mf" : 'X\(//\)$' \| \
24658 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24659 printf "%s\n" X/"$am_mf" |
24660 sed '/^.*\/\([^/][^/]*\)\/*$/{
24661 s//\1/
24662 q
24663 }
24664 /^X\/\(\/\/\)$/{
24665 s//\1/
24666 q
24667 }
24668 /^X\/\(\/\).*/{
24669 s//\1/
24670 q
24671 }
24672 s/.*/./; q'`
24673 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24674 && sed -e '/# am--include-marker/d' "$am_filepart" \
24675 | $MAKE -f - am--depfiles" >&5
24676 (cd "$am_dirpart" \
24677 && sed -e '/# am--include-marker/d' "$am_filepart" \
24678 | $MAKE -f - am--depfiles) >&5 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } || am_rc=$?
24682 done
24683 if test $am_rc -ne 0; then
24684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24685 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24686 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24687 for automatic dependency tracking. If GNU make was not used, consider
24688 re-running the configure script with MAKE=\"gmake\" (or whatever is
24689 necessary). You can also try re-running configure with the
24690 '--disable-dependency-tracking' option to at least be able to build
24691 the package (albeit without support for automatic dependency tracking).
24692 See 'config.log' for more details" "$LINENO" 5; }
24693 fi
24694 { am_dirpart=; unset am_dirpart;}
24695 { am_filepart=; unset am_filepart;}
24696 { am_mf=; unset am_mf;}
24697 { am_rc=; unset am_rc;}
24698 rm -f conftest-deps.mk
24699 }
24700 ;;
24701 "libtool":C)
24702
24703 # See if we are running on zsh, and set the options that allow our
24704 # commands through without removal of \ escapes.
24705 if test -n "${ZSH_VERSION+set}"; then
24706 setopt NO_GLOB_SUBST
24707 fi
24708
24709 cfgfile=${ofile}T
24710 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24711 $RM "$cfgfile"
24712
24713 cat <<_LT_EOF >> "$cfgfile"
24714 #! $SHELL
24715 # Generated automatically by $as_me ($PACKAGE) $VERSION
24716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24717
24718 # Provide generalized library-building support services.
24719 # Written by Gordon Matzigkeit, 1996
24720
24721 # Copyright (C) 2024 Free Software Foundation, Inc.
24722 # This is free software; see the source for copying conditions. There is NO
24723 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24724
24725 # GNU Libtool is free software; you can redistribute it and/or modify
24726 # it under the terms of the GNU General Public License as published by
24727 # the Free Software Foundation; either version 2 of the License, or
24728 # (at your option) any later version.
24729 #
24730 # As a special exception to the GNU General Public License, if you
24731 # distribute this file as part of a program or library that is built
24732 # using GNU Libtool, you may include this file under the same
24733 # distribution terms that you use for the rest of that program.
24734 #
24735 # GNU Libtool is distributed in the hope that it will be useful, but
24736 # WITHOUT ANY WARRANTY; without even the implied warranty of
24737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24738 # GNU General Public License for more details.
24739 #
24740 # You should have received a copy of the GNU General Public License
24741 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24742
24743
24744 # The names of the tagged configurations supported by this script.
24745 available_tags='CXX '
24746
24747 # Configured defaults for sys_lib_dlsearch_path munging.
24748 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24749
24750 # ### BEGIN LIBTOOL CONFIG
24751
24752 # Whether or not to build shared libraries.
24753 build_libtool_libs=$enable_shared
24754
24755 # Which release of libtool.m4 was used?
24756 macro_version=$macro_version
24757 macro_revision=$macro_revision
24758
24759 # Whether or not to build static libraries.
24760 build_old_libs=$enable_static
24761
24762 # What type of objects to build.
24763 pic_mode=$pic_mode
24764
24765 # Whether or not to optimize for fast installation.
24766 fast_install=$enable_fast_install
24767
24768 # Shared archive member basename,for filename based shared library versioning on AIX.
24769 shared_archive_member_spec=$shared_archive_member_spec
24770
24771 # Shell to use when invoking shell scripts.
24772 SHELL=$lt_SHELL
24773
24774 # An echo program that protects backslashes.
24775 ECHO=$lt_ECHO
24776
24777 # The PATH separator for the build system.
24778 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24779
24780 # The host system.
24781 host_alias=$host_alias
24782 host=$host
24783 host_os=$host_os
24784
24785 # The build system.
24786 build_alias=$build_alias
24787 build=$build
24788 build_os=$build_os
24789
24790 # A sed program that does not truncate output.
24791 SED=$lt_SED
24792
24793 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24794 Xsed="\$SED -e 1s/^X//"
24795
24796 # A grep program that handles long lines.
24797 GREP=$lt_GREP
24798
24799 # An ERE matcher.
24800 EGREP=$lt_EGREP
24801
24802 # A literal string matcher.
24803 FGREP=$lt_FGREP
24804
24805 # A BSD- or MS-compatible name lister.
24806 NM=$lt_NM
24807
24808 # Whether we need soft or hard links.
24809 LN_S=$lt_LN_S
24810
24811 # What is the maximum length of a command?
24812 max_cmd_len=$max_cmd_len
24813
24814 # Object file suffix (normally "o").
24815 objext=$ac_objext
24816
24817 # Executable file suffix (normally "").
24818 exeext=$exeext
24819
24820 # whether the shell understands "unset".
24821 lt_unset=$lt_unset
24822
24823 # turn spaces into newlines.
24824 SP2NL=$lt_lt_SP2NL
24825
24826 # turn newlines into spaces.
24827 NL2SP=$lt_lt_NL2SP
24828
24829 # convert \$build file names to \$host format.
24830 to_host_file_cmd=$lt_cv_to_host_file_cmd
24831
24832 # convert \$build files to toolchain format.
24833 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24834
24835 # A file(cmd) program that detects file types.
24836 FILECMD=$lt_FILECMD
24837
24838 # An object symbol dumper.
24839 OBJDUMP=$lt_OBJDUMP
24840
24841 # Method to check whether dependent libraries are shared objects.
24842 deplibs_check_method=$lt_deplibs_check_method
24843
24844 # Command to use when deplibs_check_method = "file_magic".
24845 file_magic_cmd=$lt_file_magic_cmd
24846
24847 # How to find potential files when deplibs_check_method = "file_magic".
24848 file_magic_glob=$lt_file_magic_glob
24849
24850 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24851 want_nocaseglob=$lt_want_nocaseglob
24852
24853 # DLL creation program.
24854 DLLTOOL=$lt_DLLTOOL
24855
24856 # Command to associate shared and link libraries.
24857 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24858
24859 # The archiver.
24860 AR=$lt_AR
24861
24862 # Flags to create an archive (by configure).
24863 lt_ar_flags=$lt_ar_flags
24864
24865 # Flags to create an archive.
24866 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24867
24868 # How to feed a file listing to the archiver.
24869 archiver_list_spec=$lt_archiver_list_spec
24870
24871 # A symbol stripping program.
24872 STRIP=$lt_STRIP
24873
24874 # Commands used to install an old-style archive.
24875 RANLIB=$lt_RANLIB
24876 old_postinstall_cmds=$lt_old_postinstall_cmds
24877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24878
24879 # Whether to use a lock for old archive extraction.
24880 lock_old_archive_extraction=$lock_old_archive_extraction
24881
24882 # A C compiler.
24883 LTCC=$lt_CC
24884
24885 # LTCC compiler flags.
24886 LTCFLAGS=$lt_CFLAGS
24887
24888 # Take the output of nm and produce a listing of raw symbols and C names.
24889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24890
24891 # Transform the output of nm in a proper C declaration.
24892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24893
24894 # Transform the output of nm into a list of symbols to manually relocate.
24895 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24896
24897 # Transform the output of nm in a C name address pair.
24898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24899
24900 # Transform the output of nm in a C name address pair when lib prefix is needed.
24901 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24902
24903 # The name lister interface.
24904 nm_interface=$lt_lt_cv_nm_interface
24905
24906 # Specify filename containing input files for \$NM.
24907 nm_file_list_spec=$lt_nm_file_list_spec
24908
24909 # The root where to search for dependent libraries,and where our libraries should be installed.
24910 lt_sysroot=$lt_sysroot
24911
24912 # Command to truncate a binary pipe.
24913 lt_truncate_bin=$lt_lt_cv_truncate_bin
24914
24915 # The name of the directory that contains temporary libtool files.
24916 objdir=$objdir
24917
24918 # Used to examine libraries when file_magic_cmd begins with "file".
24919 MAGIC_CMD=$MAGIC_CMD
24920
24921 # Must we lock files when doing compilation?
24922 need_locks=$lt_need_locks
24923
24924 # Manifest tool.
24925 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24926
24927 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24928 DSYMUTIL=$lt_DSYMUTIL
24929
24930 # Tool to change global to local symbols on Mac OS X.
24931 NMEDIT=$lt_NMEDIT
24932
24933 # Tool to manipulate fat objects and archives on Mac OS X.
24934 LIPO=$lt_LIPO
24935
24936 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24937 OTOOL=$lt_OTOOL
24938
24939 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24940 OTOOL64=$lt_OTOOL64
24941
24942 # Old archive suffix (normally "a").
24943 libext=$libext
24944
24945 # Shared library suffix (normally ".so").
24946 shrext_cmds=$lt_shrext_cmds
24947
24948 # The commands to extract the exported symbol list from a shared archive.
24949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24950
24951 # Variables whose values should be saved in libtool wrapper scripts and
24952 # restored at link time.
24953 variables_saved_for_relink=$lt_variables_saved_for_relink
24954
24955 # Do we need the "lib" prefix for modules?
24956 need_lib_prefix=$need_lib_prefix
24957
24958 # Do we need a version for libraries?
24959 need_version=$need_version
24960
24961 # Library versioning type.
24962 version_type=$version_type
24963
24964 # Shared library runtime path variable.
24965 runpath_var=$runpath_var
24966
24967 # Shared library path variable.
24968 shlibpath_var=$shlibpath_var
24969
24970 # Is shlibpath searched before the hard-coded library search path?
24971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24972
24973 # Format of library name prefix.
24974 libname_spec=$lt_libname_spec
24975
24976 # List of archive names. First name is the real one, the rest are links.
24977 # The last name is the one that the linker finds with -lNAME
24978 library_names_spec=$lt_library_names_spec
24979
24980 # The coded name of the library, if different from the real name.
24981 soname_spec=$lt_soname_spec
24982
24983 # Permission mode override for installation of shared libraries.
24984 install_override_mode=$lt_install_override_mode
24985
24986 # Command to use after installation of a shared archive.
24987 postinstall_cmds=$lt_postinstall_cmds
24988
24989 # Command to use after uninstallation of a shared archive.
24990 postuninstall_cmds=$lt_postuninstall_cmds
24991
24992 # Commands used to finish a libtool library installation in a directory.
24993 finish_cmds=$lt_finish_cmds
24994
24995 # As "finish_cmds", except a single script fragment to be evaled but
24996 # not shown.
24997 finish_eval=$lt_finish_eval
24998
24999 # Whether we should hardcode library paths into libraries.
25000 hardcode_into_libs=$hardcode_into_libs
25001
25002 # Compile-time system search path for libraries.
25003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25004
25005 # Detected run-time system search path for libraries.
25006 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25007
25008 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25009 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25010
25011 # Whether dlopen is supported.
25012 dlopen_support=$enable_dlopen
25013
25014 # Whether dlopen of programs is supported.
25015 dlopen_self=$enable_dlopen_self
25016
25017 # Whether dlopen of statically linked programs is supported.
25018 dlopen_self_static=$enable_dlopen_self_static
25019
25020 # Commands to strip libraries.
25021 old_striplib=$lt_old_striplib
25022 striplib=$lt_striplib
25023
25024
25025 # The linker used to build libraries.
25026 LD=$lt_LD
25027
25028 # How to create reloadable object files.
25029 reload_flag=$lt_reload_flag
25030 reload_cmds=$lt_reload_cmds
25031
25032 # Commands used to build an old-style archive.
25033 old_archive_cmds=$lt_old_archive_cmds
25034
25035 # A language specific compiler.
25036 CC=$lt_compiler
25037
25038 # Is the compiler the GNU compiler?
25039 with_gcc=$GCC
25040
25041 # Compiler flag to turn off builtin functions.
25042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25043
25044 # Additional compiler flags for building library objects.
25045 pic_flag=$lt_lt_prog_compiler_pic
25046
25047 # How to pass a linker flag through the compiler.
25048 wl=$lt_lt_prog_compiler_wl
25049
25050 # Compiler flag to prevent dynamic linking.
25051 link_static_flag=$lt_lt_prog_compiler_static
25052
25053 # Does compiler simultaneously support -c and -o options?
25054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25055
25056 # Whether or not to add -lc for building shared libraries.
25057 build_libtool_need_lc=$archive_cmds_need_lc
25058
25059 # Whether or not to disallow shared libs when runtime libs are static.
25060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25061
25062 # Compiler flag to allow reflexive dlopens.
25063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25064
25065 # Compiler flag to generate shared objects directly from archives.
25066 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25067
25068 # Whether the compiler copes with passing no objects directly.
25069 compiler_needs_object=$lt_compiler_needs_object
25070
25071 # Create an old-style archive from a shared archive.
25072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25073
25074 # Create a temporary old-style archive to link instead of a shared archive.
25075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25076
25077 # Commands used to build a shared archive.
25078 archive_cmds=$lt_archive_cmds
25079 archive_expsym_cmds=$lt_archive_expsym_cmds
25080
25081 # Commands used to build a loadable module if different from building
25082 # a shared archive.
25083 module_cmds=$lt_module_cmds
25084 module_expsym_cmds=$lt_module_expsym_cmds
25085
25086 # Whether we are building with GNU ld or not.
25087 with_gnu_ld=$lt_with_gnu_ld
25088
25089 # Flag that allows shared libraries with undefined symbols to be built.
25090 allow_undefined_flag=$lt_allow_undefined_flag
25091
25092 # Flag that enforces no undefined symbols.
25093 no_undefined_flag=$lt_no_undefined_flag
25094
25095 # Flag to hardcode \$libdir into a binary during linking.
25096 # This must work even if \$libdir does not exist
25097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25098
25099 # Whether we need a single "-rpath" flag with a separated argument.
25100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25101
25102 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25103 # DIR into the resulting binary.
25104 hardcode_direct=$hardcode_direct
25105
25106 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25107 # DIR into the resulting binary and the resulting library dependency is
25108 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25109 # library is relocated.
25110 hardcode_direct_absolute=$hardcode_direct_absolute
25111
25112 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25113 # into the resulting binary.
25114 hardcode_minus_L=$hardcode_minus_L
25115
25116 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25117 # into the resulting binary.
25118 hardcode_shlibpath_var=$hardcode_shlibpath_var
25119
25120 # Set to "yes" if building a shared library automatically hardcodes DIR
25121 # into the library and all subsequent libraries and executables linked
25122 # against it.
25123 hardcode_automatic=$hardcode_automatic
25124
25125 # Set to yes if linker adds runtime paths of dependent libraries
25126 # to runtime path list.
25127 inherit_rpath=$inherit_rpath
25128
25129 # Whether libtool must link a program against all its dependency libraries.
25130 link_all_deplibs=$link_all_deplibs
25131
25132 # Set to "yes" if exported symbols are required.
25133 always_export_symbols=$always_export_symbols
25134
25135 # The commands to list exported symbols.
25136 export_symbols_cmds=$lt_export_symbols_cmds
25137
25138 # Symbols that should not be listed in the preloaded symbols.
25139 exclude_expsyms=$lt_exclude_expsyms
25140
25141 # Symbols that must always be exported.
25142 include_expsyms=$lt_include_expsyms
25143
25144 # Commands necessary for linking programs (against libraries) with templates.
25145 prelink_cmds=$lt_prelink_cmds
25146
25147 # Commands necessary for finishing linking programs.
25148 postlink_cmds=$lt_postlink_cmds
25149
25150 # Specify filename containing input files.
25151 file_list_spec=$lt_file_list_spec
25152
25153 # How to hardcode a shared library path into an executable.
25154 hardcode_action=$hardcode_action
25155
25156 # The directories searched by this compiler when creating a shared library.
25157 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25158
25159 # Dependencies to place before and after the objects being linked to
25160 # create a shared library.
25161 predep_objects=$lt_predep_objects
25162 postdep_objects=$lt_postdep_objects
25163 predeps=$lt_predeps
25164 postdeps=$lt_postdeps
25165
25166 # The library search path used internally by the compiler when linking
25167 # a shared library.
25168 compiler_lib_search_path=$lt_compiler_lib_search_path
25169
25170 # ### END LIBTOOL CONFIG
25171
25172 _LT_EOF
25173
25174 cat <<'_LT_EOF' >> "$cfgfile"
25175
25176 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25177
25178 # func_munge_path_list VARIABLE PATH
25179 # -----------------------------------
25180 # VARIABLE is name of variable containing _space_ separated list of
25181 # directories to be munged by the contents of PATH, which is string
25182 # having a format:
25183 # "DIR[:DIR]:"
25184 # string "DIR[ DIR]" will be prepended to VARIABLE
25185 # ":DIR[:DIR]"
25186 # string "DIR[ DIR]" will be appended to VARIABLE
25187 # "DIRP[:DIRP]::[DIRA:]DIRA"
25188 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25189 # "DIRA[ DIRA]" will be appended to VARIABLE
25190 # "DIR[:DIR]"
25191 # VARIABLE will be replaced by "DIR[ DIR]"
25192 func_munge_path_list ()
25193 {
25194 case x$2 in
25195 x)
25196 ;;
25197 *:)
25198 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25199 ;;
25200 x:*)
25201 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25202 ;;
25203 *::*)
25204 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25205 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25206 ;;
25207 *)
25208 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25209 ;;
25210 esac
25211 }
25212
25213
25214 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25215 func_cc_basename ()
25216 {
25217 for cc_temp in $*""; do
25218 case $cc_temp in
25219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25221 \-*) ;;
25222 *) break;;
25223 esac
25224 done
25225 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25226 }
25227
25228
25229 # ### END FUNCTIONS SHARED WITH CONFIGURE
25230
25231 _LT_EOF
25232
25233 case $host_os in
25234 aix3*)
25235 cat <<\_LT_EOF >> "$cfgfile"
25236 # AIX sometimes has problems with the GCC collect2 program. For some
25237 # reason, if we set the COLLECT_NAMES environment variable, the problems
25238 # vanish in a puff of smoke.
25239 if test set != "${COLLECT_NAMES+set}"; then
25240 COLLECT_NAMES=
25241 export COLLECT_NAMES
25242 fi
25243 _LT_EOF
25244 ;;
25245 esac
25246
25247
25248
25249 ltmain=$ac_aux_dir/ltmain.sh
25250
25251
25252 # We use sed instead of cat because bash on DJGPP gets confused if
25253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25254 # text mode, it properly converts lines to CR/LF. This bash problem
25255 # is reportedly fixed, but why not run on old versions too?
25256 $SED '$q' "$ltmain" >> "$cfgfile" \
25257 || (rm -f "$cfgfile"; exit 1)
25258
25259 mv -f "$cfgfile" "$ofile" ||
25260 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25261 chmod +x "$ofile"
25262
25263
25264 cat <<_LT_EOF >> "$ofile"
25265
25266 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25267
25268 # The linker used to build libraries.
25269 LD=$lt_LD_CXX
25270
25271 # How to create reloadable object files.
25272 reload_flag=$lt_reload_flag_CXX
25273 reload_cmds=$lt_reload_cmds_CXX
25274
25275 # Commands used to build an old-style archive.
25276 old_archive_cmds=$lt_old_archive_cmds_CXX
25277
25278 # A language specific compiler.
25279 CC=$lt_compiler_CXX
25280
25281 # Is the compiler the GNU compiler?
25282 with_gcc=$GCC_CXX
25283
25284 # Compiler flag to turn off builtin functions.
25285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25286
25287 # Additional compiler flags for building library objects.
25288 pic_flag=$lt_lt_prog_compiler_pic_CXX
25289
25290 # How to pass a linker flag through the compiler.
25291 wl=$lt_lt_prog_compiler_wl_CXX
25292
25293 # Compiler flag to prevent dynamic linking.
25294 link_static_flag=$lt_lt_prog_compiler_static_CXX
25295
25296 # Does compiler simultaneously support -c and -o options?
25297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25298
25299 # Whether or not to add -lc for building shared libraries.
25300 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25301
25302 # Whether or not to disallow shared libs when runtime libs are static.
25303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25304
25305 # Compiler flag to allow reflexive dlopens.
25306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25307
25308 # Compiler flag to generate shared objects directly from archives.
25309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25310
25311 # Whether the compiler copes with passing no objects directly.
25312 compiler_needs_object=$lt_compiler_needs_object_CXX
25313
25314 # Create an old-style archive from a shared archive.
25315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25316
25317 # Create a temporary old-style archive to link instead of a shared archive.
25318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25319
25320 # Commands used to build a shared archive.
25321 archive_cmds=$lt_archive_cmds_CXX
25322 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25323
25324 # Commands used to build a loadable module if different from building
25325 # a shared archive.
25326 module_cmds=$lt_module_cmds_CXX
25327 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25328
25329 # Whether we are building with GNU ld or not.
25330 with_gnu_ld=$lt_with_gnu_ld_CXX
25331
25332 # Flag that allows shared libraries with undefined symbols to be built.
25333 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25334
25335 # Flag that enforces no undefined symbols.
25336 no_undefined_flag=$lt_no_undefined_flag_CXX
25337
25338 # Flag to hardcode \$libdir into a binary during linking.
25339 # This must work even if \$libdir does not exist
25340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25341
25342 # Whether we need a single "-rpath" flag with a separated argument.
25343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25344
25345 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25346 # DIR into the resulting binary.
25347 hardcode_direct=$hardcode_direct_CXX
25348
25349 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25350 # DIR into the resulting binary and the resulting library dependency is
25351 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25352 # library is relocated.
25353 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25354
25355 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25356 # into the resulting binary.
25357 hardcode_minus_L=$hardcode_minus_L_CXX
25358
25359 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25360 # into the resulting binary.
25361 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25362
25363 # Set to "yes" if building a shared library automatically hardcodes DIR
25364 # into the library and all subsequent libraries and executables linked
25365 # against it.
25366 hardcode_automatic=$hardcode_automatic_CXX
25367
25368 # Set to yes if linker adds runtime paths of dependent libraries
25369 # to runtime path list.
25370 inherit_rpath=$inherit_rpath_CXX
25371
25372 # Whether libtool must link a program against all its dependency libraries.
25373 link_all_deplibs=$link_all_deplibs_CXX
25374
25375 # Set to "yes" if exported symbols are required.
25376 always_export_symbols=$always_export_symbols_CXX
25377
25378 # The commands to list exported symbols.
25379 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25380
25381 # Symbols that should not be listed in the preloaded symbols.
25382 exclude_expsyms=$lt_exclude_expsyms_CXX
25383
25384 # Symbols that must always be exported.
25385 include_expsyms=$lt_include_expsyms_CXX
25386
25387 # Commands necessary for linking programs (against libraries) with templates.
25388 prelink_cmds=$lt_prelink_cmds_CXX
25389
25390 # Commands necessary for finishing linking programs.
25391 postlink_cmds=$lt_postlink_cmds_CXX
25392
25393 # Specify filename containing input files.
25394 file_list_spec=$lt_file_list_spec_CXX
25395
25396 # How to hardcode a shared library path into an executable.
25397 hardcode_action=$hardcode_action_CXX
25398
25399 # The directories searched by this compiler when creating a shared library.
25400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25401
25402 # Dependencies to place before and after the objects being linked to
25403 # create a shared library.
25404 predep_objects=$lt_predep_objects_CXX
25405 postdep_objects=$lt_postdep_objects_CXX
25406 predeps=$lt_predeps_CXX
25407 postdeps=$lt_postdeps_CXX
25408
25409 # The library search path used internally by the compiler when linking
25410 # a shared library.
25411 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25412
25413 # ### END LIBTOOL TAG CONFIG: CXX
25414 _LT_EOF
25415
25416 ;;
25417
25418 esac
25419 done # for ac_tag
25420
25421
25422 as_fn_exit 0
25423 _ACEOF
25424 ac_clean_files=$ac_clean_files_save
25425
25426 test $ac_write_fail = 0 ||
25427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25428
25429
25430 # configure is writing to config.log, and then calls config.status.
25431 # config.status does its own redirection, appending to config.log.
25432 # Unfortunately, on DOS this fails, as config.log is still kept open
25433 # by configure, so config.status won't be able to write to it; its
25434 # output is simply discarded. So we exec the FD to /dev/null,
25435 # effectively closing config.log, so it can be properly (re)opened and
25436 # appended to by config.status. When coming back to configure, we
25437 # need to make the FD available again.
25438 if test "$no_create" != yes; then
25439 ac_cs_success=:
25440 ac_config_status_args=
25441 test "$silent" = yes &&
25442 ac_config_status_args="$ac_config_status_args --quiet"
25443 exec 5>/dev/null
25444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25445 exec 5>>config.log
25446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25447 # would make configure fail if this is the last instruction.
25448 $ac_cs_success || as_fn_exit 1
25449 fi
25450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25452 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25453 fi
25454
25455