Debian Codegraph @

cextern/healpix/src/cxx/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for healpix_cxx 3.83.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='healpix_cxx'
613 PACKAGE_TARNAME='healpix_cxx'
614 PACKAGE_VERSION='3.83.0'
615 PACKAGE_STRING='healpix_cxx 3.83.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 pkgconfig_libfile
656 pkgconfig_libdir
657 SHARP_LIBS
658 SHARP_CFLAGS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 CFITSIO_LIBS
663 CFITSIO_CFLAGS
664 OPENMP_CXXFLAGS
665 HAVE_CXX11
666 CXXCPP
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 ac_ct_CXX
671 CXXFLAGS
672 CXX
673 OPENMP_CFLAGS
674 LT_SYS_LIBRARY_PATH
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 DLLTOOL
683 OBJDUMP
684 FILECMD
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 ac_ct_AR
720 AR
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 am__xargs_n
725 am__rm_f_notfound
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 CSCOPE
731 ETAGS
732 CTAGS
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
738 AWK
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 runstatedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL
795 am__quote'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_silent_rules
800 enable_maintainer_mode
801 enable_dependency_tracking
802 enable_shared
803 enable_static
804 enable_pic
805 with_pic
806 enable_fast_install
807 enable_aix_soname
808 with_aix_soname
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 enable_openmp
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 LT_SYS_LIBRARY_PATH
823 CXX
824 CXXFLAGS
825 CCC
826 CXXCPP
827 CFITSIO_CFLAGS
828 CFITSIO_LIBS
829 PKG_CONFIG
830 PKG_CONFIG_PATH
831 PKG_CONFIG_LIBDIR
832 SHARP_CFLAGS
833 SHARP_LIBS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 runstatedir='${localstatedir}/run'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: '$ac_useropt'"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: '$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -runstatedir | --runstatedir | --runstatedi | --runstated \
1124 | --runstate | --runstat | --runsta | --runst | --runs \
1125 | --run | --ru | --r)
1126 ac_prev=runstatedir ;;
1127 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129 | --run=* | --ru=* | --r=*)
1130 runstatedir=$ac_optarg ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: '$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: '$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
1227 -*) as_fn_error $? "unrecognized option: '$ac_option'
1228 Try '$0 --help' for more information"
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 ;;
1248
1249 esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1270 do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: '$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 printf "%s\n" X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347 else
1348 ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 'configure' configures healpix_cxx 3.83.0 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print 'checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for '--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or '..']
1401
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408 By default, 'make install' will install all the files in
1409 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than '$ac_default_prefix' using '--prefix',
1411 for instance '--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/healpix_cxx]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of healpix_cxx 3.83.0:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --disable-maintainer-mode
1464 disable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
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=yes]
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 --disable-openmp do not use OpenMP
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1487 compiler's sysroot if not specified).
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 LT_SYS_LIBRARY_PATH
1498 User-defined run-time library search path.
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 CFITSIO_CFLAGS
1503 compiler flags needed for building with cfitsio, if not found by
1504 pkg-config
1505 CFITSIO_LIBS
1506 linker flags needed for building with cfitsio, if not found by
1507 pkg-config
1508 PKG_CONFIG path to pkg-config utility
1509 PKG_CONFIG_PATH
1510 directories to add to pkg-config's search path
1511 PKG_CONFIG_LIBDIR
1512 path overriding pkg-config's built-in search path
1513 SHARP_CFLAGS
1514 compiler flags needed for building with libsharp, if not found
1515 by pkg-config
1516 SHARP_LIBS linker flags needed for building with libsharp, if not found by
1517 pkg-config
1518
1519 Use these variables to override the choices made by 'configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to the package provider.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 continue
1533 ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for configure.gnu first; this name is used for a wrapper for
1569 # Metaconfig's "Configure" on case-insensitive file systems.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1576 else
1577 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 fi || ac_status=$?
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1580 done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585 cat <<\_ACEOF
1586 healpix_cxx configure 3.83.0
1587 generated by GNU Autoconf 2.72
1588
1589 Copyright (C) 2023 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest.beam
1607 if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 printf "%s\n" "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext
1626 then :
1627 ac_retval=0
1628 else case e in #(
1629 e) printf "%s\n" "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1 ;;
1633 esac
1634 fi
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_c_try_link LINENO
1641 # -----------------------
1642 # Try to link conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_link ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1647 if { { ac_try="$ac_link"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_link") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest$ac_exeext && {
1666 test "$cross_compiling" = yes ||
1667 test -x conftest$ac_exeext
1668 }
1669 then :
1670 ac_retval=0
1671 else case e in #(
1672 e) printf "%s\n" "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1 ;;
1676 esac
1677 fi
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 printf %s "checking for $2... " >&6; }
1697 if eval test \${$3+y}
1698 then :
1699 printf %s "(cached) " >&6
1700 else case e in #(
1701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"
1707 then :
1708 eval "$3=yes"
1709 else case e in #(
1710 e) eval "$3=no" ;;
1711 esac
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1714 esac
1715 fi
1716 eval ac_res=\$$3
1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 printf "%s\n" "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721 } # ac_fn_c_check_header_compile
1722
1723 # ac_fn_c_check_func LINENO FUNC VAR
1724 # ----------------------------------
1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1726 ac_fn_c_check_func ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1732 then :
1733 printf %s "(cached) " >&6
1734 else case e in #(
1735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (void); below. */
1743
1744 #include <limits.h>
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 (void);
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main (void)
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"
1770 then :
1771 eval "$3=yes"
1772 else case e in #(
1773 e) eval "$3=no" ;;
1774 esac
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777 conftest$ac_exeext conftest.$ac_ext ;;
1778 esac
1779 fi
1780 eval ac_res=\$$3
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 printf "%s\n" "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_cxx_try_compile LINENO
1788 # ----------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest.beam
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 printf "%s\n" "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext
1813 then :
1814 ac_retval=0
1815 else case e in #(
1816 e) printf "%s\n" "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1 ;;
1820 esac
1821 fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_cxx_try_compile
1826
1827 # ac_fn_cxx_try_cpp LINENO
1828 # ------------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_cpp ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 printf "%s\n" "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } > conftest.i && {
1849 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 }
1852 then :
1853 ac_retval=0
1854 else case e in #(
1855 e) printf "%s\n" "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1 ;;
1859 esac
1860 fi
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1863
1864 } # ac_fn_cxx_try_cpp
1865
1866 # ac_fn_cxx_try_link LINENO
1867 # -------------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_link ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 printf "%s\n" "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1886 fi
1887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_cxx_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest$ac_exeext && {
1892 test "$cross_compiling" = yes ||
1893 test -x conftest$ac_exeext
1894 }
1895 then :
1896 ac_retval=0
1897 else case e in #(
1898 e) printf "%s\n" "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1 ;;
1902 esac
1903 fi
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1911
1912 } # ac_fn_cxx_try_link
1913 ac_configure_args_raw=
1914 for ac_arg
1915 do
1916 case $ac_arg in
1917 *\'*)
1918 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 esac
1920 as_fn_append ac_configure_args_raw " '$ac_arg'"
1921 done
1922
1923 case $ac_configure_args_raw in
1924 *$as_nl*)
1925 ac_safe_unquote= ;;
1926 *)
1927 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1928 ac_unsafe_a="$ac_unsafe_z#~"
1929 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1930 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1931 esac
1932
1933 cat >config.log <<_ACEOF
1934 This file contains any messages produced by compilers while
1935 running configure, to aid debugging if configure makes a mistake.
1936
1937 It was created by healpix_cxx $as_me 3.83.0, which was
1938 generated by GNU Autoconf 2.72. Invocation command line was
1939
1940 $ $0$ac_configure_args_raw
1941
1942 _ACEOF
1943 exec 5>>config.log
1944 {
1945 cat <<_ASUNAME
1946 ## --------- ##
1947 ## Platform. ##
1948 ## --------- ##
1949
1950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1958
1959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1966
1967 _ASUNAME
1968
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 case $as_dir in #(((
1974 '') as_dir=./ ;;
1975 */) ;;
1976 *) as_dir=$as_dir/ ;;
1977 esac
1978 printf "%s\n" "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Sanitize IFS.
2049 IFS=" "" $as_nl"
2050 # Save into config.log some information that might help in debugging.
2051 {
2052 echo
2053
2054 printf "%s\n" "## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##"
2057 echo
2058 # The following way of writing the cache mishandles newlines in values,
2059 (
2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in #(
2063 *${as_nl}*)
2064 case $ac_var in #(
2065 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067 esac
2068 case $ac_var in #(
2069 _ | IFS | as_nl) ;; #(
2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071 *) { eval $ac_var=; unset $ac_var;} ;;
2072 esac ;;
2073 esac
2074 done
2075 (set) 2>&1 |
2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077 *${as_nl}ac_space=\ *)
2078 sed -n \
2079 "s/'\''/'\''\\\\'\'''\''/g;
2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081 ;; #(
2082 *)
2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 ;;
2085 esac |
2086 sort
2087 )
2088 echo
2089
2090 printf "%s\n" "## ----------------- ##
2091 ## Output variables. ##
2092 ## ----------------- ##"
2093 echo
2094 for ac_var in $ac_subst_vars
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 printf "%s\n" "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103
2104 if test -n "$ac_subst_files"; then
2105 printf "%s\n" "## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##"
2108 echo
2109 for ac_var in $ac_subst_files
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 printf "%s\n" "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118 fi
2119
2120 if test -s confdefs.h; then
2121 printf "%s\n" "## ----------- ##
2122 ## confdefs.h. ##
2123 ## ----------- ##"
2124 echo
2125 cat confdefs.h
2126 echo
2127 fi
2128 test "$ac_signal" != 0 &&
2129 printf "%s\n" "$as_me: caught signal $ac_signal"
2130 printf "%s\n" "$as_me: exit $exit_status"
2131 } >&5
2132 rm -f core *.core core.conftest.* &&
2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134 exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 printf "%s\n" "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2149
2150 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2153
2154 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_files="$CONFIG_SITE"
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2167 else
2168 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2169 fi
2170
2171 for ac_site_file in $ac_site_files
2172 do
2173 case $ac_site_file in #(
2174 */*) :
2175 ;; #(
2176 *) :
2177 ac_site_file=./$ac_site_file ;;
2178 esac
2179 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2185 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See 'config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 # Test code for whether the C compiler supports C89 (global declarations)
2209 ac_c_conftest_c89_globals='
2210 /* Does the compiler advertise C89 conformance?
2211 Do not test the value of __STDC__, because some compilers set it to 0
2212 while being otherwise adequately conformant. */
2213 #if !defined __STDC__
2214 # error "Compiler does not advertise C89 conformance"
2215 #endif
2216
2217 #include <stddef.h>
2218 #include <stdarg.h>
2219 struct stat;
2220 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2221 struct buf { int x; };
2222 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2223 static char *e (char **p, int i)
2224 {
2225 return p[i];
2226 }
2227 static char *f (char * (*g) (char **, int), char **p, ...)
2228 {
2229 char *s;
2230 va_list v;
2231 va_start (v,p);
2232 s = g (p, va_arg (v,int));
2233 va_end (v);
2234 return s;
2235 }
2236
2237 /* C89 style stringification. */
2238 #define noexpand_stringify(a) #a
2239 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2240
2241 /* C89 style token pasting. Exercises some of the corner cases that
2242 e.g. old MSVC gets wrong, but not very hard. */
2243 #define noexpand_concat(a,b) a##b
2244 #define expand_concat(a,b) noexpand_concat(a,b)
2245 extern int vA;
2246 extern int vbee;
2247 #define aye A
2248 #define bee B
2249 int *pvA = &expand_concat(v,aye);
2250 int *pvbee = &noexpand_concat(v,bee);
2251
2252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2253 function prototypes and stuff, but not \xHH hex character constants.
2254 These do not provoke an error unfortunately, instead are silently treated
2255 as an "x". The following induces an error, until -std is added to get
2256 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2257 array size at least. It is necessary to write \x00 == 0 to get something
2258 that is true only with -std. */
2259 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2260
2261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2262 inside strings and character constants. */
2263 #define FOO(x) '\''x'\''
2264 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2265
2266 int test (int i, double x);
2267 struct s1 {int (*f) (int a);};
2268 struct s2 {int (*f) (double a);};
2269 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2270 int, int);'
2271
2272 # Test code for whether the C compiler supports C89 (body of main).
2273 ac_c_conftest_c89_main='
2274 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2275 '
2276
2277 # Test code for whether the C compiler supports C99 (global declarations)
2278 ac_c_conftest_c99_globals='
2279 /* Does the compiler advertise C99 conformance? */
2280 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2281 # error "Compiler does not advertise C99 conformance"
2282 #endif
2283
2284 // See if C++-style comments work.
2285
2286 #include <stdbool.h>
2287 extern int puts (const char *);
2288 extern int printf (const char *, ...);
2289 extern int dprintf (int, const char *, ...);
2290 extern void *malloc (size_t);
2291 extern void free (void *);
2292
2293 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2294 // dprintf is used instead of fprintf to avoid needing to declare
2295 // FILE and stderr.
2296 #define debug(...) dprintf (2, __VA_ARGS__)
2297 #define showlist(...) puts (#__VA_ARGS__)
2298 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2299 static void
2300 test_varargs_macros (void)
2301 {
2302 int x = 1234;
2303 int y = 5678;
2304 debug ("Flag");
2305 debug ("X = %d\n", x);
2306 showlist (The first, second, and third items.);
2307 report (x>y, "x is %d but y is %d", x, y);
2308 }
2309
2310 // Check long long types.
2311 #define BIG64 18446744073709551615ull
2312 #define BIG32 4294967295ul
2313 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2314 #if !BIG_OK
2315 #error "your preprocessor is broken"
2316 #endif
2317 #if BIG_OK
2318 #else
2319 #error "your preprocessor is broken"
2320 #endif
2321 static long long int bignum = -9223372036854775807LL;
2322 static unsigned long long int ubignum = BIG64;
2323
2324 struct incomplete_array
2325 {
2326 int datasize;
2327 double data[];
2328 };
2329
2330 struct named_init {
2331 int number;
2332 const wchar_t *name;
2333 double average;
2334 };
2335
2336 typedef const char *ccp;
2337
2338 static inline int
2339 test_restrict (ccp restrict text)
2340 {
2341 // Iterate through items via the restricted pointer.
2342 // Also check for declarations in for loops.
2343 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2344 continue;
2345 return 0;
2346 }
2347
2348 // Check varargs and va_copy.
2349 static bool
2350 test_varargs (const char *format, ...)
2351 {
2352 va_list args;
2353 va_start (args, format);
2354 va_list args_copy;
2355 va_copy (args_copy, args);
2356
2357 const char *str = "";
2358 int number = 0;
2359 float fnumber = 0;
2360
2361 while (*format)
2362 {
2363 switch (*format++)
2364 {
2365 case '\''s'\'': // string
2366 str = va_arg (args_copy, const char *);
2367 break;
2368 case '\''d'\'': // int
2369 number = va_arg (args_copy, int);
2370 break;
2371 case '\''f'\'': // float
2372 fnumber = va_arg (args_copy, double);
2373 break;
2374 default:
2375 break;
2376 }
2377 }
2378 va_end (args_copy);
2379 va_end (args);
2380
2381 return *str && number && fnumber;
2382 }
2383 '
2384
2385 # Test code for whether the C compiler supports C99 (body of main).
2386 ac_c_conftest_c99_main='
2387 // Check bool.
2388 _Bool success = false;
2389 success |= (argc != 0);
2390
2391 // Check restrict.
2392 if (test_restrict ("String literal") == 0)
2393 success = true;
2394 char *restrict newvar = "Another string";
2395
2396 // Check varargs.
2397 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2398 test_varargs_macros ();
2399
2400 // Check flexible array members.
2401 struct incomplete_array *ia =
2402 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2403 ia->datasize = 10;
2404 for (int i = 0; i < ia->datasize; ++i)
2405 ia->data[i] = i * 1.234;
2406 // Work around memory leak warnings.
2407 free (ia);
2408
2409 // Check named initializers.
2410 struct named_init ni = {
2411 .number = 34,
2412 .name = L"Test wide string",
2413 .average = 543.34343,
2414 };
2415
2416 ni.number = 58;
2417
2418 int dynamic_array[ni.number];
2419 dynamic_array[0] = argv[0][0];
2420 dynamic_array[ni.number - 1] = 543;
2421
2422 // work around unused variable warnings
2423 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2424 || dynamic_array[ni.number - 1] != 543);
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (global declarations)
2428 ac_c_conftest_c11_globals='
2429 /* Does the compiler advertise C11 conformance? */
2430 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2431 # error "Compiler does not advertise C11 conformance"
2432 #endif
2433
2434 // Check _Alignas.
2435 char _Alignas (double) aligned_as_double;
2436 char _Alignas (0) no_special_alignment;
2437 extern char aligned_as_int;
2438 char _Alignas (0) _Alignas (int) aligned_as_int;
2439
2440 // Check _Alignof.
2441 enum
2442 {
2443 int_alignment = _Alignof (int),
2444 int_array_alignment = _Alignof (int[100]),
2445 char_alignment = _Alignof (char)
2446 };
2447 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2448
2449 // Check _Noreturn.
2450 int _Noreturn does_not_return (void) { for (;;) continue; }
2451
2452 // Check _Static_assert.
2453 struct test_static_assert
2454 {
2455 int x;
2456 _Static_assert (sizeof (int) <= sizeof (long int),
2457 "_Static_assert does not work in struct");
2458 long int y;
2459 };
2460
2461 // Check UTF-8 literals.
2462 #define u8 syntax error!
2463 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2464
2465 // Check duplicate typedefs.
2466 typedef long *long_ptr;
2467 typedef long int *long_ptr;
2468 typedef long_ptr long_ptr;
2469
2470 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2471 struct anonymous
2472 {
2473 union {
2474 struct { int i; int j; };
2475 struct { int k; long int l; } w;
2476 };
2477 int m;
2478 } v1;
2479 '
2480
2481 # Test code for whether the C compiler supports C11 (body of main).
2482 ac_c_conftest_c11_main='
2483 _Static_assert ((offsetof (struct anonymous, i)
2484 == offsetof (struct anonymous, w.k)),
2485 "Anonymous union alignment botch");
2486 v1.i = 2;
2487 v1.w.k = 5;
2488 ok |= v1.i != 5;
2489 '
2490
2491 # Test code for whether the C compiler supports C11 (complete).
2492 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2493 ${ac_c_conftest_c99_globals}
2494 ${ac_c_conftest_c11_globals}
2495
2496 int
2497 main (int argc, char **argv)
2498 {
2499 int ok = 0;
2500 ${ac_c_conftest_c89_main}
2501 ${ac_c_conftest_c99_main}
2502 ${ac_c_conftest_c11_main}
2503 return ok;
2504 }
2505 "
2506
2507 # Test code for whether the C compiler supports C99 (complete).
2508 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2509 ${ac_c_conftest_c99_globals}
2510
2511 int
2512 main (int argc, char **argv)
2513 {
2514 int ok = 0;
2515 ${ac_c_conftest_c89_main}
2516 ${ac_c_conftest_c99_main}
2517 return ok;
2518 }
2519 "
2520
2521 # Test code for whether the C compiler supports C89 (complete).
2522 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2523
2524 int
2525 main (int argc, char **argv)
2526 {
2527 int ok = 0;
2528 ${ac_c_conftest_c89_main}
2529 return ok;
2530 }
2531 "
2532
2533 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2534 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2535 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2536 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2537 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2538 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2539 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2540 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2541 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2542 # Test code for whether the C++ compiler supports C++98 (global declarations)
2543 ac_cxx_conftest_cxx98_globals='
2544 // Does the compiler advertise C++98 conformance?
2545 #if !defined __cplusplus || __cplusplus < 199711L
2546 # error "Compiler does not advertise C++98 conformance"
2547 #endif
2548
2549 // These inclusions are to reject old compilers that
2550 // lack the unsuffixed header files.
2551 #include <cstdlib>
2552 #include <exception>
2553
2554 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2555 extern void assert (int);
2556 namespace std {
2557 extern int strcmp (const char *, const char *);
2558 }
2559
2560 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2561 using std::exception;
2562 using std::strcmp;
2563
2564 namespace {
2565
2566 void test_exception_syntax()
2567 {
2568 try {
2569 throw "test";
2570 } catch (const char *s) {
2571 // Extra parentheses suppress a warning when building autoconf itself,
2572 // due to lint rules shared with more typical C programs.
2573 assert (!(strcmp) (s, "test"));
2574 }
2575 }
2576
2577 template <typename T> struct test_template
2578 {
2579 T const val;
2580 explicit test_template(T t) : val(t) {}
2581 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2582 };
2583
2584 } // anonymous namespace
2585 '
2586
2587 # Test code for whether the C++ compiler supports C++98 (body of main)
2588 ac_cxx_conftest_cxx98_main='
2589 assert (argc);
2590 assert (! argv[0]);
2591 {
2592 test_exception_syntax ();
2593 test_template<double> tt (2.0);
2594 assert (tt.add (4) == 6.0);
2595 assert (true && !false);
2596 }
2597 '
2598
2599 # Test code for whether the C++ compiler supports C++11 (global declarations)
2600 ac_cxx_conftest_cxx11_globals='
2601 // Does the compiler advertise C++ 2011 conformance?
2602 #if !defined __cplusplus || __cplusplus < 201103L
2603 # error "Compiler does not advertise C++11 conformance"
2604 #endif
2605
2606 namespace cxx11test
2607 {
2608 constexpr int get_val() { return 20; }
2609
2610 struct testinit
2611 {
2612 int i;
2613 double d;
2614 };
2615
2616 class delegate
2617 {
2618 public:
2619 delegate(int n) : n(n) {}
2620 delegate(): delegate(2354) {}
2621
2622 virtual int getval() { return this->n; };
2623 protected:
2624 int n;
2625 };
2626
2627 class overridden : public delegate
2628 {
2629 public:
2630 overridden(int n): delegate(n) {}
2631 virtual int getval() override final { return this->n * 2; }
2632 };
2633
2634 class nocopy
2635 {
2636 public:
2637 nocopy(int i): i(i) {}
2638 nocopy() = default;
2639 nocopy(const nocopy&) = delete;
2640 nocopy & operator=(const nocopy&) = delete;
2641 private:
2642 int i;
2643 };
2644
2645 // for testing lambda expressions
2646 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2647 {
2648 return f(v);
2649 }
2650
2651 // for testing variadic templates and trailing return types
2652 template <typename V> auto sum(V first) -> V
2653 {
2654 return first;
2655 }
2656 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2657 {
2658 return first + sum(rest...);
2659 }
2660 }
2661 '
2662
2663 # Test code for whether the C++ compiler supports C++11 (body of main)
2664 ac_cxx_conftest_cxx11_main='
2665 {
2666 // Test auto and decltype
2667 auto a1 = 6538;
2668 auto a2 = 48573953.4;
2669 auto a3 = "String literal";
2670
2671 int total = 0;
2672 for (auto i = a3; *i; ++i) { total += *i; }
2673
2674 decltype(a2) a4 = 34895.034;
2675 }
2676 {
2677 // Test constexpr
2678 short sa[cxx11test::get_val()] = { 0 };
2679 }
2680 {
2681 // Test initializer lists
2682 cxx11test::testinit il = { 4323, 435234.23544 };
2683 }
2684 {
2685 // Test range-based for
2686 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2687 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2688 for (auto &x : array) { x += 23; }
2689 }
2690 {
2691 // Test lambda expressions
2692 using cxx11test::eval;
2693 assert (eval ([](int x) { return x*2; }, 21) == 42);
2694 double d = 2.0;
2695 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2696 assert (d == 5.0);
2697 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2698 assert (d == 5.0);
2699 }
2700 {
2701 // Test use of variadic templates
2702 using cxx11test::sum;
2703 auto a = sum(1);
2704 auto b = sum(1, 2);
2705 auto c = sum(1.0, 2.0, 3.0);
2706 }
2707 {
2708 // Test constructor delegation
2709 cxx11test::delegate d1;
2710 cxx11test::delegate d2();
2711 cxx11test::delegate d3(45);
2712 }
2713 {
2714 // Test override and final
2715 cxx11test::overridden o1(55464);
2716 }
2717 {
2718 // Test nullptr
2719 char *c = nullptr;
2720 }
2721 {
2722 // Test template brackets
2723 test_template<::test_template<int>> v(test_template<int>(12));
2724 }
2725 {
2726 // Unicode literals
2727 char const *utf8 = u8"UTF-8 string \u2500";
2728 char16_t const *utf16 = u"UTF-8 string \u2500";
2729 char32_t const *utf32 = U"UTF-32 string \u2500";
2730 }
2731 '
2732
2733 # Test code for whether the C compiler supports C++11 (complete).
2734 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2735 ${ac_cxx_conftest_cxx11_globals}
2736
2737 int
2738 main (int argc, char **argv)
2739 {
2740 int ok = 0;
2741 ${ac_cxx_conftest_cxx98_main}
2742 ${ac_cxx_conftest_cxx11_main}
2743 return ok;
2744 }
2745 "
2746
2747 # Test code for whether the C compiler supports C++98 (complete).
2748 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2749 int
2750 main (int argc, char **argv)
2751 {
2752 int ok = 0;
2753 ${ac_cxx_conftest_cxx98_main}
2754 return ok;
2755 }
2756 "
2757
2758
2759 # Auxiliary files required by this configure script.
2760 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2761
2762 # Locations in which to look for auxiliary files.
2763 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2764
2765 # Search for a directory containing all of the required auxiliary files,
2766 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2767 # If we don't find one directory that contains all the files we need,
2768 # we report the set of missing files from the *first* directory in
2769 # $ac_aux_dir_candidates and give up.
2770 ac_missing_aux_files=""
2771 ac_first_candidate=:
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 as_found=false
2775 for as_dir in $ac_aux_dir_candidates
2776 do
2777 IFS=$as_save_IFS
2778 case $as_dir in #(((
2779 '') as_dir=./ ;;
2780 */) ;;
2781 *) as_dir=$as_dir/ ;;
2782 esac
2783 as_found=:
2784
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2786 ac_aux_dir_found=yes
2787 ac_install_sh=
2788 for ac_aux in $ac_aux_files
2789 do
2790 # As a special case, if "install-sh" is required, that requirement
2791 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2792 # and $ac_install_sh is set appropriately for whichever one is found.
2793 if test x"$ac_aux" = x"install-sh"
2794 then
2795 if test -f "${as_dir}install-sh"; then
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2797 ac_install_sh="${as_dir}install-sh -c"
2798 elif test -f "${as_dir}install.sh"; then
2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2800 ac_install_sh="${as_dir}install.sh -c"
2801 elif test -f "${as_dir}shtool"; then
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2803 ac_install_sh="${as_dir}shtool install -c"
2804 else
2805 ac_aux_dir_found=no
2806 if $ac_first_candidate; then
2807 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2808 else
2809 break
2810 fi
2811 fi
2812 else
2813 if test -f "${as_dir}${ac_aux}"; then
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2815 else
2816 ac_aux_dir_found=no
2817 if $ac_first_candidate; then
2818 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2819 else
2820 break
2821 fi
2822 fi
2823 fi
2824 done
2825 if test "$ac_aux_dir_found" = yes; then
2826 ac_aux_dir="$as_dir"
2827 break
2828 fi
2829 ac_first_candidate=false
2830
2831 as_found=false
2832 done
2833 IFS=$as_save_IFS
2834 if $as_found
2835 then :
2836
2837 else case e in #(
2838 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2839 esac
2840 fi
2841
2842
2843 # These three variables are undocumented and unsupported,
2844 # and are intended to be withdrawn in a future Autoconf release.
2845 # They can cause serious problems if a builder's source tree is in a directory
2846 # whose full name contains unusual characters.
2847 if test -f "${ac_aux_dir}config.guess"; then
2848 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2849 fi
2850 if test -f "${ac_aux_dir}config.sub"; then
2851 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2852 fi
2853 if test -f "$ac_aux_dir/configure"; then
2854 ac_configure="$SHELL ${ac_aux_dir}configure"
2855 fi
2856
2857 # Check that the precious variables saved in the cache have kept the same
2858 # value.
2859 ac_cache_corrupted=false
2860 for ac_var in $ac_precious_vars; do
2861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2862 eval ac_new_set=\$ac_env_${ac_var}_set
2863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2864 eval ac_new_val=\$ac_env_${ac_var}_value
2865 case $ac_old_set,$ac_new_set in
2866 set,)
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2868 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2869 ac_cache_corrupted=: ;;
2870 ,set)
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2872 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2873 ac_cache_corrupted=: ;;
2874 ,);;
2875 *)
2876 if test "x$ac_old_val" != "x$ac_new_val"; then
2877 # differences in whitespace do not lead to failure.
2878 ac_old_val_w=`echo x $ac_old_val`
2879 ac_new_val_w=`echo x $ac_new_val`
2880 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2882 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2883 ac_cache_corrupted=:
2884 else
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2886 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2887 eval $ac_var=\$ac_old_val
2888 fi
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2890 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2892 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2893 fi;;
2894 esac
2895 # Pass precious variables to config.status.
2896 if test "$ac_new_set" = set; then
2897 case $ac_new_val in
2898 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 *) ac_arg=$ac_var=$ac_new_val ;;
2900 esac
2901 case " $ac_configure_args " in
2902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2903 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2904 esac
2905 fi
2906 done
2907 if $ac_cache_corrupted; then
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2909 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2911 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2912 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2913 and start over" "$LINENO" 5
2914 fi
2915 ## -------------------- ##
2916 ## Main body of script. ##
2917 ## -------------------- ##
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924
2925
2926 am__api_version='1.17'
2927
2928
2929
2930 # Find a good install program. We prefer a C program (faster),
2931 # so one script is as good as another. But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2936 # AIX /bin/install
2937 # AmigaOS /C/install, which installs bootblocks on floppy discs
2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941 # OS/2's system install, which has a completely different semantic
2942 # ./install, which can be erroneously created by make from ./install.sh.
2943 # Reject install programs that cannot install multiple files.
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945 printf %s "checking for a BSD-compatible install... " >&6; }
2946 if test -z "$INSTALL"; then
2947 if test ${ac_cv_path_install+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else case e in #(
2951 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 case $as_dir in #(((
2956 '') as_dir=./ ;;
2957 */) ;;
2958 *) as_dir=$as_dir/ ;;
2959 esac
2960 # Account for fact that we put trailing slashes in our PATH walk.
2961 case $as_dir in #((
2962 ./ | /[cC]/* | \
2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2965 /usr/ucb/* ) ;;
2966 *)
2967 # OSF1 and SCO ODT 3.0 have their own names for install.
2968 # Don't use installbsd from OSF since it installs stuff as root
2969 # by default.
2970 for ac_prog in ginstall scoinst install; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2973 if test $ac_prog = install &&
2974 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # AIX install. It has an incompatible calling convention.
2976 :
2977 elif test $ac_prog = install &&
2978 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # program-specific install script used by HP pwplus--don't use.
2980 :
2981 else
2982 rm -rf conftest.one conftest.two conftest.dir
2983 echo one > conftest.one
2984 echo two > conftest.two
2985 mkdir conftest.dir
2986 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2987 test -s conftest.one && test -s conftest.two &&
2988 test -s conftest.dir/conftest.one &&
2989 test -s conftest.dir/conftest.two
2990 then
2991 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2992 break 3
2993 fi
2994 fi
2995 fi
2996 done
2997 done
2998 ;;
2999 esac
3000
3001 done
3002 IFS=$as_save_IFS
3003
3004 rm -rf conftest.one conftest.two conftest.dir
3005 ;;
3006 esac
3007 fi
3008 if test ${ac_cv_path_install+y}; then
3009 INSTALL=$ac_cv_path_install
3010 else
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for INSTALL within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 INSTALL=$ac_install_sh
3016 fi
3017 fi
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3019 printf "%s\n" "$INSTALL" >&6; }
3020
3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022 # It thinks the first close brace ends the variable substitution.
3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024
3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026
3027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3030 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3031 if test ${am_cv_sleep_fractional_seconds+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else case e in #(
3035 e) if sleep 0.001 2>/dev/null
3036 then :
3037 am_cv_sleep_fractional_seconds=yes
3038 else case e in #(
3039 e) am_cv_sleep_fractional_seconds=no ;;
3040 esac
3041 fi
3042 ;;
3043 esac
3044 fi
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3046 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3047
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3049 printf %s "checking filesystem timestamp resolution... " >&6; }
3050 if test ${am_cv_filesystem_timestamp_resolution+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else case e in #(
3054 e) # Default to the worst case.
3055 am_cv_filesystem_timestamp_resolution=2
3056
3057 # Only try to go finer than 1 sec if sleep can do it.
3058 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3059 # - 1 sec is not much of a win compared to 2 sec, and
3060 # - it takes 2 seconds to perform the test whether 1 sec works.
3061 #
3062 # Instead, just use the default 2s on platforms that have 1s resolution,
3063 # accept the extra 1s delay when using $sleep in the Automake tests, in
3064 # exchange for not incurring the 2s delay for running the test for all
3065 # packages.
3066 #
3067 am_try_resolutions=
3068 if test "$am_cv_sleep_fractional_seconds" = yes; then
3069 # Even a millisecond often causes a bunch of false positives,
3070 # so just try a hundredth of a second. The time saved between .001 and
3071 # .01 is not terribly consequential.
3072 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3073 fi
3074
3075 # In order to catch current-generation FAT out, we must *modify* files
3076 # that already exist; the *creation* timestamp is finer. Use names
3077 # that make ls -t sort them differently when they have equal
3078 # timestamps than when they have distinct timestamps, keeping
3079 # in mind that ls -t prints the *newest* file first.
3080 rm -f conftest.ts?
3081 : > conftest.ts1
3082 : > conftest.ts2
3083 : > conftest.ts3
3084
3085 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3086 # clobber the current shell's arguments. (Outer-level square brackets
3087 # are removed by m4; they're present so that m4 does not expand
3088 # <dollar><star>; be careful, easy to get confused.)
3089 if (
3090 set X `ls -t conftest.ts[12]` &&
3091 {
3092 test "$*" != "X conftest.ts1 conftest.ts2" ||
3093 test "$*" != "X conftest.ts2 conftest.ts1";
3094 }
3095 ); then :; else
3096 # If neither matched, then we have a broken ls. This can happen
3097 # if, for instance, CONFIG_SHELL is bash and it inherits a
3098 # broken ls alias from the environment. This has actually
3099 # happened. Such a system could not be considered "sane".
3100 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3102 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3103 as_fn_error $? "ls -t produces unexpected output.
3104 Make sure there is not a broken ls alias in your environment.
3105 See 'config.log' for more details" "$LINENO" 5; }
3106 fi
3107
3108 for am_try_res in $am_try_resolutions; do
3109 # Any one fine-grained sleep might happen to cross the boundary
3110 # between two values of a coarser actual resolution, but if we do
3111 # two fine-grained sleeps in a row, at least one of them will fall
3112 # entirely within a coarse interval.
3113 echo alpha > conftest.ts1
3114 sleep $am_try_res
3115 echo beta > conftest.ts2
3116 sleep $am_try_res
3117 echo gamma > conftest.ts3
3118
3119 # We assume that 'ls -t' will make use of high-resolution
3120 # timestamps if the operating system supports them at all.
3121 if (set X `ls -t conftest.ts?` &&
3122 test "$2" = conftest.ts3 &&
3123 test "$3" = conftest.ts2 &&
3124 test "$4" = conftest.ts1); then
3125 #
3126 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3127 # because we don't need to test make.
3128 make_ok=true
3129 if test $am_try_res != 1; then
3130 # But if we've succeeded so far with a subsecond resolution, we
3131 # have one more thing to check: make. It can happen that
3132 # everything else supports the subsecond mtimes, but make doesn't;
3133 # notably on macOS, which ships make 3.81 from 2006 (the last one
3134 # released under GPLv2). https://bugs.gnu.org/68808
3135 #
3136 # We test $MAKE if it is defined in the environment, else "make".
3137 # It might get overridden later, but our hope is that in practice
3138 # it does not matter: it is the system "make" which is (by far)
3139 # the most likely to be broken, whereas if the user overrides it,
3140 # probably they did so with a better, or at least not worse, make.
3141 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3142 #
3143 # Create a Makefile (real tab character here):
3144 rm -f conftest.mk
3145 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3146 echo ' touch conftest.ts2' >>conftest.mk
3147 #
3148 # Now, running
3149 # touch conftest.ts1; touch conftest.ts2; make
3150 # should touch ts1 because ts2 is newer. This could happen by luck,
3151 # but most often, it will fail if make's support is insufficient. So
3152 # test for several consecutive successes.
3153 #
3154 # (We reuse conftest.ts[12] because we still want to modify existing
3155 # files, not create new ones, per above.)
3156 n=0
3157 make=${MAKE-make}
3158 until test $n -eq 3; do
3159 echo one > conftest.ts1
3160 sleep $am_try_res
3161 echo two > conftest.ts2 # ts2 should now be newer than ts1
3162 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3163 make_ok=false
3164 break # out of $n loop
3165 fi
3166 n=`expr $n + 1`
3167 done
3168 fi
3169 #
3170 if $make_ok; then
3171 # Everything we know to check worked out, so call this resolution good.
3172 am_cv_filesystem_timestamp_resolution=$am_try_res
3173 break # out of $am_try_res loop
3174 fi
3175 # Otherwise, we'll go on to check the next resolution.
3176 fi
3177 done
3178 rm -f conftest.ts?
3179 # (end _am_filesystem_timestamp_resolution)
3180 ;;
3181 esac
3182 fi
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3184 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3185
3186 # This check should not be cached, as it may vary across builds of
3187 # different projects.
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3189 printf %s "checking whether build environment is sane... " >&6; }
3190 # Reject unsafe characters in $srcdir or the absolute working directory
3191 # name. Accept space and tab only in the latter.
3192 am_lf='
3193 '
3194 case `pwd` in
3195 *[\\\"\#\$\&\'\`$am_lf]*)
3196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3197 esac
3198 case $srcdir in
3199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3200 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3201 esac
3202
3203 # Do 'set' in a subshell so we don't clobber the current shell's
3204 # arguments. Must try -L first in case configure is actually a
3205 # symlink; some systems play weird games with the mod time of symlinks
3206 # (eg FreeBSD returns the mod time of the symlink's containing
3207 # directory).
3208 am_build_env_is_sane=no
3209 am_has_slept=no
3210 rm -f conftest.file
3211 for am_try in 1 2; do
3212 echo "timestamp, slept: $am_has_slept" > conftest.file
3213 if (
3214 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3215 if test "$*" = "X"; then
3216 # -L didn't work.
3217 set X `ls -t "$srcdir/configure" conftest.file`
3218 fi
3219 test "$2" = conftest.file
3220 ); then
3221 am_build_env_is_sane=yes
3222 break
3223 fi
3224 # Just in case.
3225 sleep "$am_cv_filesystem_timestamp_resolution"
3226 am_has_slept=yes
3227 done
3228
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3230 printf "%s\n" "$am_build_env_is_sane" >&6; }
3231 if test "$am_build_env_is_sane" = no; then
3232 as_fn_error $? "newly created file is older than distributed files!
3233 Check your system clock" "$LINENO" 5
3234 fi
3235
3236 # If we didn't sleep, we still need to ensure time stamps of config.status and
3237 # generated files are strictly newer.
3238 am_sleep_pid=
3239 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3240 then :
3241
3242 else case e in #(
3243 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3244 am_sleep_pid=$!
3245 ;;
3246 esac
3247 fi
3248
3249 rm -f conftest.file
3250
3251 test "$program_prefix" != NONE &&
3252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3253 # Use a double $ so make ignores it.
3254 test "$program_suffix" != NONE &&
3255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3256 # Double any \ or $.
3257 # By default was 's,x,x', remove it if useless.
3258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3259 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3260
3261
3262 # Expand $ac_aux_dir to an absolute path.
3263 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3264
3265
3266 if test x"${MISSING+set}" != xset; then
3267 MISSING="\${SHELL} '$am_aux_dir/missing'"
3268 fi
3269 # Use eval to expand $SHELL
3270 if eval "$MISSING --is-lightweight"; then
3271 am_missing_run="$MISSING "
3272 else
3273 am_missing_run=
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3275 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3276 fi
3277
3278 if test x"${install_sh+set}" != xset; then
3279 case $am_aux_dir in
3280 *\ * | *\ *)
3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3282 *)
3283 install_sh="\${SHELL} $am_aux_dir/install-sh"
3284 esac
3285 fi
3286
3287 # Installed binaries are usually stripped using 'strip' when the user
3288 # run "make install-strip". However 'strip' might not be the right
3289 # tool to use in cross-compilation environments, therefore Automake
3290 # will honor the 'STRIP' environment variable to overrule this program.
3291 if test "$cross_compiling" != no; then
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}strip; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_STRIP+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else case e in #(
3301 e) if test -n "$STRIP"; then
3302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 case $as_dir in #(((
3309 '') as_dir=./ ;;
3310 */) ;;
3311 *) as_dir=$as_dir/ ;;
3312 esac
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi ;;
3324 esac
3325 fi
3326 STRIP=$ac_cv_prog_STRIP
3327 if test -n "$STRIP"; then
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3329 printf "%s\n" "$STRIP" >&6; }
3330 else
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 printf "%s\n" "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$ac_cv_prog_STRIP"; then
3338 ac_ct_STRIP=$STRIP
3339 # Extract the first word of "strip", so it can be a program name with args.
3340 set dummy strip; ac_word=$2
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 printf %s "checking for $ac_word... " >&6; }
3343 if test ${ac_cv_prog_ac_ct_STRIP+y}
3344 then :
3345 printf %s "(cached) " >&6
3346 else case e in #(
3347 e) if test -n "$ac_ct_STRIP"; then
3348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 case $as_dir in #(((
3355 '') as_dir=./ ;;
3356 */) ;;
3357 *) as_dir=$as_dir/ ;;
3358 esac
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_STRIP="strip"
3362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi ;;
3370 esac
3371 fi
3372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3373 if test -n "$ac_ct_STRIP"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3375 printf "%s\n" "$ac_ct_STRIP" >&6; }
3376 else
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 printf "%s\n" "no" >&6; }
3379 fi
3380
3381 if test "x$ac_ct_STRIP" = x; then
3382 STRIP=":"
3383 else
3384 case $cross_compiling:$ac_tool_warned in
3385 yes:)
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned=yes ;;
3389 esac
3390 STRIP=$ac_ct_STRIP
3391 fi
3392 else
3393 STRIP="$ac_cv_prog_STRIP"
3394 fi
3395
3396 fi
3397 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3398
3399
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3401 printf %s "checking for a race-free mkdir -p... " >&6; }
3402 if test -z "$MKDIR_P"; then
3403 if test ${ac_cv_path_mkdir+y}
3404 then :
3405 printf %s "(cached) " >&6
3406 else case e in #(
3407 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3409 do
3410 IFS=$as_save_IFS
3411 case $as_dir in #(((
3412 '') as_dir=./ ;;
3413 */) ;;
3414 *) as_dir=$as_dir/ ;;
3415 esac
3416 for ac_prog in mkdir gmkdir; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3419 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3420 'mkdir ('*'coreutils) '* | \
3421 *'BusyBox '* | \
3422 'mkdir (fileutils) '4.1*)
3423 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3424 break 3;;
3425 esac
3426 done
3427 done
3428 done
3429 IFS=$as_save_IFS
3430 ;;
3431 esac
3432 fi
3433
3434 test -d ./--version && rmdir ./--version
3435 if test ${ac_cv_path_mkdir+y}; then
3436 MKDIR_P="$ac_cv_path_mkdir -p"
3437 else
3438 # As a last resort, use plain mkdir -p,
3439 # in the hope it doesn't have the bugs of ancient mkdir.
3440 MKDIR_P='mkdir -p'
3441 fi
3442 fi
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3444 printf "%s\n" "$MKDIR_P" >&6; }
3445
3446 for ac_prog in gawk mawk nawk awk
3447 do
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 printf %s "checking for $ac_word... " >&6; }
3452 if test ${ac_cv_prog_AWK+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else case e in #(
3456 e) if test -n "$AWK"; then
3457 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 case $as_dir in #(((
3464 '') as_dir=./ ;;
3465 */) ;;
3466 *) as_dir=$as_dir/ ;;
3467 esac
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_AWK="$ac_prog"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi ;;
3479 esac
3480 fi
3481 AWK=$ac_cv_prog_AWK
3482 if test -n "$AWK"; then
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3484 printf "%s\n" "$AWK" >&6; }
3485 else
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 printf "%s\n" "no" >&6; }
3488 fi
3489
3490
3491 test -n "$AWK" && break
3492 done
3493
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3495 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3496 set x ${MAKE-make}
3497 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3498 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else case e in #(
3502 e) cat >conftest.make <<\_ACEOF
3503 SHELL = /bin/sh
3504 all:
3505 @echo '@@@%%%=$(MAKE)=@@@%%%'
3506 _ACEOF
3507 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3508 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3509 *@@@%%%=?*=@@@%%%*)
3510 eval ac_cv_prog_make_${ac_make}_set=yes;;
3511 *)
3512 eval ac_cv_prog_make_${ac_make}_set=no;;
3513 esac
3514 rm -f conftest.make ;;
3515 esac
3516 fi
3517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 printf "%s\n" "yes" >&6; }
3520 SET_MAKE=
3521 else
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 printf "%s\n" "no" >&6; }
3524 SET_MAKE="MAKE=${MAKE-make}"
3525 fi
3526
3527 rm -rf .tst 2>/dev/null
3528 mkdir .tst 2>/dev/null
3529 if test -d .tst; then
3530 am__leading_dot=.
3531 else
3532 am__leading_dot=_
3533 fi
3534 rmdir .tst 2>/dev/null
3535
3536 AM_DEFAULT_VERBOSITY=1
3537 # Check whether --enable-silent-rules was given.
3538 if test ${enable_silent_rules+y}
3539 then :
3540 enableval=$enable_silent_rules;
3541 fi
3542
3543 am_make=${MAKE-make}
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3545 printf %s "checking whether $am_make supports nested variables... " >&6; }
3546 if test ${am_cv_make_support_nested_variables+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3551 BAR0=false
3552 BAR1=true
3553 V=1
3554 am__doit:
3555 @$(TRUE)
3556 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3557 am_cv_make_support_nested_variables=yes
3558 else
3559 am_cv_make_support_nested_variables=no
3560 fi ;;
3561 esac
3562 fi
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3565 AM_BACKSLASH='\'
3566
3567 am__rm_f_notfound=
3568 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3569 then :
3570
3571 else case e in #(
3572 e) am__rm_f_notfound='""' ;;
3573 esac
3574 fi
3575
3576
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3578 printf %s "checking xargs -n works... " >&6; }
3579 if test ${am_cv_xargs_n_works+y}
3580 then :
3581 printf %s "(cached) " >&6
3582 else case e in #(
3583 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3584 3"
3585 then :
3586 am_cv_xargs_n_works=yes
3587 else case e in #(
3588 e) am_cv_xargs_n_works=no ;;
3589 esac
3590 fi ;;
3591 esac
3592 fi
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3594 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3595 if test "$am_cv_xargs_n_works" = yes
3596 then :
3597 am__xargs_n='xargs -n'
3598 else case e in #(
3599 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3600 ;;
3601 esac
3602 fi
3603
3604 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3606 # is not polluted with repeated "-I."
3607 am__isrc=' -I$(srcdir)'
3608 # test to see if srcdir already configured
3609 if test -f $srcdir/config.status; then
3610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3611 fi
3612 fi
3613
3614 # test whether we have cygpath
3615 if test -z "$CYGPATH_W"; then
3616 if (cygpath --version) >/dev/null 2>/dev/null; then
3617 CYGPATH_W='cygpath -w'
3618 else
3619 CYGPATH_W=echo
3620 fi
3621 fi
3622
3623
3624 # Define the identity of the package.
3625 PACKAGE='healpix_cxx'
3626 VERSION='3.83.0'
3627
3628
3629 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3630
3631
3632 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3633
3634 # Some tools Automake needs.
3635
3636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3637
3638
3639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3640
3641
3642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3643
3644
3645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3646
3647
3648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3649
3650 # For better backward compatibility. To be removed once Automake 1.9.x
3651 # dies out for good. For more background, see:
3652 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3653 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3654 mkdir_p='$(MKDIR_P)'
3655
3656 # We need awk for the "check" target (and possibly the TAP driver). The
3657 # system "awk" is bad on some platforms.
3658 # Always define AMTAR for backward compatibility. Yes, it's still used
3659 # in the wild :-( We should find a proper way to deprecate it ...
3660 AMTAR='$${TAR-tar}'
3661
3662
3663 # We'll loop over all known methods to create a tar archive until one works.
3664 _am_tools='gnutar pax cpio none'
3665
3666 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3667
3668
3669
3670
3671
3672 # Variables for tags utilities; see am/tags.am
3673 if test -z "$CTAGS"; then
3674 CTAGS=ctags
3675 fi
3676
3677 if test -z "$ETAGS"; then
3678 ETAGS=etags
3679 fi
3680
3681 if test -z "$CSCOPE"; then
3682 CSCOPE=cscope
3683 fi
3684
3685
3686
3687
3688
3689
3690
3691
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3693 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3694 # Check whether --enable-maintainer-mode was given.
3695 if test ${enable_maintainer_mode+y}
3696 then :
3697 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3698 else case e in #(
3699 e) USE_MAINTAINER_MODE=yes ;;
3700 esac
3701 fi
3702
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3704 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3705 if test $USE_MAINTAINER_MODE = yes; then
3706 MAINTAINER_MODE_TRUE=
3707 MAINTAINER_MODE_FALSE='#'
3708 else
3709 MAINTAINER_MODE_TRUE='#'
3710 MAINTAINER_MODE_FALSE=
3711 fi
3712
3713 MAINT=$MAINTAINER_MODE_TRUE
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726 DEPDIR="${am__leading_dot}deps"
3727
3728 ac_config_commands="$ac_config_commands depfiles"
3729
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3731 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3732 cat > confinc.mk << 'END'
3733 am__doit:
3734 @echo this is the am__doit target >confinc.out
3735 .PHONY: am__doit
3736 END
3737 am__include="#"
3738 am__quote=
3739 # BSD make does it like this.
3740 echo '.include "confinc.mk" # ignored' > confmf.BSD
3741 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3742 echo 'include confinc.mk # ignored' > confmf.GNU
3743 _am_result=no
3744 for s in GNU BSD; do
3745 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3746 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750 case $?:`cat confinc.out 2>/dev/null` in #(
3751 '0:this is the am__doit target') :
3752 case $s in #(
3753 BSD) :
3754 am__include='.include' am__quote='"' ;; #(
3755 *) :
3756 am__include='include' am__quote='' ;;
3757 esac ;; #(
3758 *) :
3759 ;;
3760 esac
3761 if test "$am__include" != "#"; then
3762 _am_result="yes ($s style)"
3763 break
3764 fi
3765 done
3766 rm -f confinc.* confmf.*
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3768 printf "%s\n" "${_am_result}" >&6; }
3769
3770 # Check whether --enable-dependency-tracking was given.
3771 if test ${enable_dependency_tracking+y}
3772 then :
3773 enableval=$enable_dependency_tracking;
3774 fi
3775
3776 if test "x$enable_dependency_tracking" != xno; then
3777 am_depcomp="$ac_aux_dir/depcomp"
3778 AMDEPBACKSLASH='\'
3779 am__nodep='_no'
3780 fi
3781 if test "x$enable_dependency_tracking" != xno; then
3782 AMDEP_TRUE=
3783 AMDEP_FALSE='#'
3784 else
3785 AMDEP_TRUE='#'
3786 AMDEP_FALSE=
3787 fi
3788
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 printf %s "checking for $ac_word... " >&6; }
3800 if test ${ac_cv_prog_CC+y}
3801 then :
3802 printf %s "(cached) " >&6
3803 else case e in #(
3804 e) if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 case $as_dir in #(((
3812 '') as_dir=./ ;;
3813 */) ;;
3814 *) as_dir=$as_dir/ ;;
3815 esac
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822 done
3823 done
3824 IFS=$as_save_IFS
3825
3826 fi ;;
3827 esac
3828 fi
3829 CC=$ac_cv_prog_CC
3830 if test -n "$CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 printf "%s\n" "$CC" >&6; }
3833 else
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 printf "%s\n" "no" >&6; }
3836 fi
3837
3838
3839 fi
3840 if test -z "$ac_cv_prog_CC"; then
3841 ac_ct_CC=$CC
3842 # Extract the first word of "gcc", so it can be a program name with args.
3843 set dummy gcc; ac_word=$2
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 printf %s "checking for $ac_word... " >&6; }
3846 if test ${ac_cv_prog_ac_ct_CC+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else case e in #(
3850 e) if test -n "$ac_ct_CC"; then
3851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 case $as_dir in #(((
3858 '') as_dir=./ ;;
3859 */) ;;
3860 *) as_dir=$as_dir/ ;;
3861 esac
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_CC="gcc"
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi ;;
3873 esac
3874 fi
3875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876 if test -n "$ac_ct_CC"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878 printf "%s\n" "$ac_ct_CC" >&6; }
3879 else
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 fi
3883
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3894 fi
3895 else
3896 CC="$ac_cv_prog_CC"
3897 fi
3898
3899 if test -z "$CC"; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}cc; ac_word=$2
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 printf %s "checking for $ac_word... " >&6; }
3905 if test ${ac_cv_prog_CC+y}
3906 then :
3907 printf %s "(cached) " >&6
3908 else case e in #(
3909 e) if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 case $as_dir in #(((
3917 '') as_dir=./ ;;
3918 */) ;;
3919 *) as_dir=$as_dir/ ;;
3920 esac
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="${ac_tool_prefix}cc"
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi ;;
3932 esac
3933 fi
3934 CC=$ac_cv_prog_CC
3935 if test -n "$CC"; then
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937 printf "%s\n" "$CC" >&6; }
3938 else
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 printf "%s\n" "no" >&6; }
3941 fi
3942
3943
3944 fi
3945 fi
3946 if test -z "$CC"; then
3947 # Extract the first word of "cc", so it can be a program name with args.
3948 set dummy cc; ac_word=$2
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 printf %s "checking for $ac_word... " >&6; }
3951 if test ${ac_cv_prog_CC+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else case e in #(
3955 e) if test -n "$CC"; then
3956 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 else
3958 ac_prog_rejected=no
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962 IFS=$as_save_IFS
3963 case $as_dir in #(((
3964 '') as_dir=./ ;;
3965 */) ;;
3966 *) as_dir=$as_dir/ ;;
3967 esac
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3970 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3971 ac_prog_rejected=yes
3972 continue
3973 fi
3974 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3983 # We found a bogon in the path, so make sure we never use it.
3984 set dummy $ac_cv_prog_CC
3985 shift
3986 if test $# != 0; then
3987 # We chose a different compiler from the bogus one.
3988 # However, it has the same basename, so the bogon will be chosen
3989 # first if we set CC to just the basename; use the full file name.
3990 shift
3991 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3992 fi
3993 fi
3994 fi ;;
3995 esac
3996 fi
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 printf "%s\n" "$CC" >&6; }
4001 else
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 printf "%s\n" "no" >&6; }
4004 fi
4005
4006
4007 fi
4008 if test -z "$CC"; then
4009 if test -n "$ac_tool_prefix"; then
4010 for ac_prog in cl.exe
4011 do
4012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 printf %s "checking for $ac_word... " >&6; }
4016 if test ${ac_cv_prog_CC+y}
4017 then :
4018 printf %s "(cached) " >&6
4019 else case e in #(
4020 e) if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 case $as_dir in #(((
4028 '') as_dir=./ ;;
4029 */) ;;
4030 *) as_dir=$as_dir/ ;;
4031 esac
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi ;;
4043 esac
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 printf "%s\n" "$CC" >&6; }
4049 else
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4052 fi
4053
4054
4055 test -n "$CC" && break
4056 done
4057 fi
4058 if test -z "$CC"; then
4059 ac_ct_CC=$CC
4060 for ac_prog in cl.exe
4061 do
4062 # Extract the first word of "$ac_prog", so it can be a program name with args.
4063 set dummy $ac_prog; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_ac_ct_CC+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else case e in #(
4070 e) if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 case $as_dir in #(((
4078 '') as_dir=./ ;;
4079 */) ;;
4080 *) as_dir=$as_dir/ ;;
4081 esac
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_CC="$ac_prog"
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088 done
4089 done
4090 IFS=$as_save_IFS
4091
4092 fi ;;
4093 esac
4094 fi
4095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096 if test -n "$ac_ct_CC"; then
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098 printf "%s\n" "$ac_ct_CC" >&6; }
4099 else
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 printf "%s\n" "no" >&6; }
4102 fi
4103
4104
4105 test -n "$ac_ct_CC" && break
4106 done
4107
4108 if test "x$ac_ct_CC" = x; then
4109 CC=""
4110 else
4111 case $cross_compiling:$ac_tool_warned in
4112 yes:)
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4114 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4115 ac_tool_warned=yes ;;
4116 esac
4117 CC=$ac_ct_CC
4118 fi
4119 fi
4120
4121 fi
4122 if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}clang; ac_word=$2
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 printf %s "checking for $ac_word... " >&6; }
4128 if test ${ac_cv_prog_CC+y}
4129 then :
4130 printf %s "(cached) " >&6
4131 else case e in #(
4132 e) if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 case $as_dir in #(((
4140 '') as_dir=./ ;;
4141 */) ;;
4142 *) as_dir=$as_dir/ ;;
4143 esac
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_CC="${ac_tool_prefix}clang"
4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi ;;
4155 esac
4156 fi
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 printf "%s\n" "$CC" >&6; }
4161 else
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4164 fi
4165
4166
4167 fi
4168 if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
4170 # Extract the first word of "clang", so it can be a program name with args.
4171 set dummy clang; ac_word=$2
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 printf %s "checking for $ac_word... " >&6; }
4174 if test ${ac_cv_prog_ac_ct_CC+y}
4175 then :
4176 printf %s "(cached) " >&6
4177 else case e in #(
4178 e) if test -n "$ac_ct_CC"; then
4179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 case $as_dir in #(((
4186 '') as_dir=./ ;;
4187 */) ;;
4188 *) as_dir=$as_dir/ ;;
4189 esac
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_ac_ct_CC="clang"
4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4194 break 2
4195 fi
4196 done
4197 done
4198 IFS=$as_save_IFS
4199
4200 fi ;;
4201 esac
4202 fi
4203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4204 if test -n "$ac_ct_CC"; then
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4206 printf "%s\n" "$ac_ct_CC" >&6; }
4207 else
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 printf "%s\n" "no" >&6; }
4210 fi
4211
4212 if test "x$ac_ct_CC" = x; then
4213 CC=""
4214 else
4215 case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221 CC=$ac_ct_CC
4222 fi
4223 else
4224 CC="$ac_cv_prog_CC"
4225 fi
4226
4227 fi
4228
4229
4230 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4231 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4232 as_fn_error $? "no acceptable C compiler found in \$PATH
4233 See 'config.log' for more details" "$LINENO" 5; }
4234
4235 # Provide some information about the compiler.
4236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4237 set X $ac_compile
4238 ac_compiler=$2
4239 for ac_option in --version -v -V -qversion -version; do
4240 { { ac_try="$ac_compiler $ac_option >&5"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 printf "%s\n" "$ac_try_echo"; } >&5
4247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248 ac_status=$?
4249 if test -s conftest.err; then
4250 sed '10a\
4251 ... rest of stderr output deleted ...
4252 10q' conftest.err >conftest.er1
4253 cat conftest.er1 >&5
4254 fi
4255 rm -f conftest.er1 conftest.err
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258 done
4259
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main (void)
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 ac_clean_files_save=$ac_clean_files
4272 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4273 # Try to create an executable without -o first, disregard a.out.
4274 # It will help us diagnose broken compilers, and finding out an intuition
4275 # of exeext.
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4277 printf %s "checking whether the C compiler works... " >&6; }
4278 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4279
4280 # The possible output files:
4281 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4282
4283 ac_rmfiles=
4284 for ac_file in $ac_files
4285 do
4286 case $ac_file in
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4289 esac
4290 done
4291 rm -f $ac_rmfiles
4292
4293 if { { ac_try="$ac_link_default"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 printf "%s\n" "$ac_try_echo"; } >&5
4300 (eval "$ac_link_default") 2>&5
4301 ac_status=$?
4302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }
4304 then :
4305 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4306 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4308 # so that the user can short-circuit this test for compilers unknown to
4309 # Autoconf.
4310 for ac_file in $ac_files ''
4311 do
4312 test -f "$ac_file" || continue
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4315 ;;
4316 [ab].out )
4317 # We found the default executable, but exeext='' is most
4318 # certainly right.
4319 break;;
4320 *.* )
4321 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4322 then :; else
4323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 fi
4325 # We set ac_cv_exeext here because the later test for it is not
4326 # safe: cross compilers may not add the suffix if given an '-o'
4327 # argument, so we may need to know it at that point already.
4328 # Even if this section looks crufty: it has the advantage of
4329 # actually working.
4330 break;;
4331 * )
4332 break;;
4333 esac
4334 done
4335 test "$ac_cv_exeext" = no && ac_cv_exeext=
4336
4337 else case e in #(
4338 e) ac_file='' ;;
4339 esac
4340 fi
4341 if test -z "$ac_file"
4342 then :
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 printf "%s\n" "no" >&6; }
4345 printf "%s\n" "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4349 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4350 as_fn_error 77 "C compiler cannot create executables
4351 See 'config.log' for more details" "$LINENO" 5; }
4352 else case e in #(
4353 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 printf "%s\n" "yes" >&6; } ;;
4355 esac
4356 fi
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4358 printf %s "checking for C compiler default output file name... " >&6; }
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4360 printf "%s\n" "$ac_file" >&6; }
4361 ac_exeext=$ac_cv_exeext
4362
4363 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4364 ac_clean_files=$ac_clean_files_save
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4366 printf %s "checking for suffix of executables... " >&6; }
4367 if { { ac_try="$ac_link"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 printf "%s\n" "$ac_try_echo"; } >&5
4374 (eval "$ac_link") 2>&5
4375 ac_status=$?
4376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4378 then :
4379 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4380 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4381 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4382 # 'rm'.
4383 for ac_file in conftest.exe conftest conftest.*; do
4384 test -f "$ac_file" || continue
4385 case $ac_file in
4386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 break;;
4389 * ) break;;
4390 esac
4391 done
4392 else case e in #(
4393 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4395 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4396 See 'config.log' for more details" "$LINENO" 5; } ;;
4397 esac
4398 fi
4399 rm -f conftest conftest$ac_cv_exeext
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4401 printf "%s\n" "$ac_cv_exeext" >&6; }
4402
4403 rm -f conftest.$ac_ext
4404 EXEEXT=$ac_cv_exeext
4405 ac_exeext=$EXEEXT
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <stdio.h>
4409 int
4410 main (void)
4411 {
4412 FILE *f = fopen ("conftest.out", "w");
4413 if (!f)
4414 return 1;
4415 return ferror (f) || fclose (f) != 0;
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 ac_clean_files="$ac_clean_files conftest.out"
4422 # Check that the compiler produces executables we can run. If not, either
4423 # the compiler is broken, or we cross compile.
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425 printf %s "checking whether we are cross compiling... " >&6; }
4426 if test "$cross_compiling" != yes; then
4427 { { ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 printf "%s\n" "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4435 ac_status=$?
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }
4438 if { ac_try='./conftest$ac_cv_exeext'
4439 { { case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 printf "%s\n" "$ac_try_echo"; } >&5
4445 (eval "$ac_try") 2>&5
4446 ac_status=$?
4447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; }; then
4449 cross_compiling=no
4450 else
4451 if test "$cross_compiling" = maybe; then
4452 cross_compiling=yes
4453 else
4454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4455 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4456 as_fn_error 77 "cannot run C compiled programs.
4457 If you meant to cross compile, use '--host'.
4458 See 'config.log' for more details" "$LINENO" 5; }
4459 fi
4460 fi
4461 fi
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4463 printf "%s\n" "$cross_compiling" >&6; }
4464
4465 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4466 conftest.o conftest.obj conftest.out
4467 ac_clean_files=$ac_clean_files_save
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469 printf %s "checking for suffix of object files... " >&6; }
4470 if test ${ac_cv_objext+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else case e in #(
4474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476
4477 int
4478 main (void)
4479 {
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.o conftest.obj
4486 if { { ac_try="$ac_compile"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 printf "%s\n" "$ac_try_echo"; } >&5
4493 (eval "$ac_compile") 2>&5
4494 ac_status=$?
4495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }
4497 then :
4498 for ac_file in conftest.o conftest.obj conftest.*; do
4499 test -f "$ac_file" || continue;
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4503 break;;
4504 esac
4505 done
4506 else case e in #(
4507 e) printf "%s\n" "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4511 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot compute suffix of object files: cannot compile
4513 See 'config.log' for more details" "$LINENO" 5; } ;;
4514 esac
4515 fi
4516 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4517 esac
4518 fi
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4520 printf "%s\n" "$ac_cv_objext" >&6; }
4521 OBJEXT=$ac_cv_objext
4522 ac_objext=$OBJEXT
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4524 printf %s "checking whether the compiler supports GNU C... " >&6; }
4525 if test ${ac_cv_c_compiler_gnu+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else case e in #(
4529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main (void)
4534 {
4535 #ifndef __GNUC__
4536 choke me
4537 #endif
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4545 ac_compiler_gnu=yes
4546 else case e in #(
4547 e) ac_compiler_gnu=no ;;
4548 esac
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4552 ;;
4553 esac
4554 fi
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4556 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 if test $ac_compiler_gnu = yes; then
4560 GCC=yes
4561 else
4562 GCC=
4563 fi
4564 ac_test_CFLAGS=${CFLAGS+y}
4565 ac_save_CFLAGS=$CFLAGS
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567 printf %s "checking whether $CC accepts -g... " >&6; }
4568 if test ${ac_cv_prog_cc_g+y}
4569 then :
4570 printf %s "(cached) " >&6
4571 else case e in #(
4572 e) ac_save_c_werror_flag=$ac_c_werror_flag
4573 ac_c_werror_flag=yes
4574 ac_cv_prog_cc_g=no
4575 CFLAGS="-g"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 int
4580 main (void)
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"
4588 then :
4589 ac_cv_prog_cc_g=yes
4590 else case e in #(
4591 e) CFLAGS=""
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594
4595 int
4596 main (void)
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 if ac_fn_c_try_compile "$LINENO"
4604 then :
4605
4606 else case e in #(
4607 e) ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="-g"
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611
4612 int
4613 main (void)
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"
4621 then :
4622 ac_cv_prog_cc_g=yes
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4625 esac
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4628 esac
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4631 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4632 esac
4633 fi
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4635 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4636 if test $ac_test_CFLAGS; then
4637 CFLAGS=$ac_save_CFLAGS
4638 elif test $ac_cv_prog_cc_g = yes; then
4639 if test "$GCC" = yes; then
4640 CFLAGS="-g -O2"
4641 else
4642 CFLAGS="-g"
4643 fi
4644 else
4645 if test "$GCC" = yes; then
4646 CFLAGS="-O2"
4647 else
4648 CFLAGS=
4649 fi
4650 fi
4651 ac_prog_cc_stdc=no
4652 if test x$ac_prog_cc_stdc = xno
4653 then :
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4655 printf %s "checking for $CC option to enable C11 features... " >&6; }
4656 if test ${ac_cv_prog_cc_c11+y}
4657 then :
4658 printf %s "(cached) " >&6
4659 else case e in #(
4660 e) ac_cv_prog_cc_c11=no
4661 ac_save_CC=$CC
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 $ac_c_conftest_c11_program
4665 _ACEOF
4666 for ac_arg in '' -std=gnu11
4667 do
4668 CC="$ac_save_CC $ac_arg"
4669 if ac_fn_c_try_compile "$LINENO"
4670 then :
4671 ac_cv_prog_cc_c11=$ac_arg
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.beam
4674 test "x$ac_cv_prog_cc_c11" != "xno" && break
4675 done
4676 rm -f conftest.$ac_ext
4677 CC=$ac_save_CC ;;
4678 esac
4679 fi
4680
4681 if test "x$ac_cv_prog_cc_c11" = xno
4682 then :
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4684 printf "%s\n" "unsupported" >&6; }
4685 else case e in #(
4686 e) if test "x$ac_cv_prog_cc_c11" = x
4687 then :
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 printf "%s\n" "none needed" >&6; }
4690 else case e in #(
4691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4692 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4693 CC="$CC $ac_cv_prog_cc_c11" ;;
4694 esac
4695 fi
4696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4697 ac_prog_cc_stdc=c11 ;;
4698 esac
4699 fi
4700 fi
4701 if test x$ac_prog_cc_stdc = xno
4702 then :
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4704 printf %s "checking for $CC option to enable C99 features... " >&6; }
4705 if test ${ac_cv_prog_cc_c99+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else case e in #(
4709 e) ac_cv_prog_cc_c99=no
4710 ac_save_CC=$CC
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 $ac_c_conftest_c99_program
4714 _ACEOF
4715 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4716 do
4717 CC="$ac_save_CC $ac_arg"
4718 if ac_fn_c_try_compile "$LINENO"
4719 then :
4720 ac_cv_prog_cc_c99=$ac_arg
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.beam
4723 test "x$ac_cv_prog_cc_c99" != "xno" && break
4724 done
4725 rm -f conftest.$ac_ext
4726 CC=$ac_save_CC ;;
4727 esac
4728 fi
4729
4730 if test "x$ac_cv_prog_cc_c99" = xno
4731 then :
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 printf "%s\n" "unsupported" >&6; }
4734 else case e in #(
4735 e) if test "x$ac_cv_prog_cc_c99" = x
4736 then :
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 printf "%s\n" "none needed" >&6; }
4739 else case e in #(
4740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4741 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4742 CC="$CC $ac_cv_prog_cc_c99" ;;
4743 esac
4744 fi
4745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4746 ac_prog_cc_stdc=c99 ;;
4747 esac
4748 fi
4749 fi
4750 if test x$ac_prog_cc_stdc = xno
4751 then :
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4753 printf %s "checking for $CC option to enable C89 features... " >&6; }
4754 if test ${ac_cv_prog_cc_c89+y}
4755 then :
4756 printf %s "(cached) " >&6
4757 else case e in #(
4758 e) ac_cv_prog_cc_c89=no
4759 ac_save_CC=$CC
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 $ac_c_conftest_c89_program
4763 _ACEOF
4764 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4765 do
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"
4768 then :
4769 ac_cv_prog_cc_c89=$ac_arg
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.beam
4772 test "x$ac_cv_prog_cc_c89" != "xno" && break
4773 done
4774 rm -f conftest.$ac_ext
4775 CC=$ac_save_CC ;;
4776 esac
4777 fi
4778
4779 if test "x$ac_cv_prog_cc_c89" = xno
4780 then :
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782 printf "%s\n" "unsupported" >&6; }
4783 else case e in #(
4784 e) if test "x$ac_cv_prog_cc_c89" = x
4785 then :
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787 printf "%s\n" "none needed" >&6; }
4788 else case e in #(
4789 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4790 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4791 CC="$CC $ac_cv_prog_cc_c89" ;;
4792 esac
4793 fi
4794 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4795 ac_prog_cc_stdc=c89 ;;
4796 esac
4797 fi
4798 fi
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4813 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4814 if test ${am_cv_prog_cc_c_o+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else case e in #(
4818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main (void)
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 # Make sure it works both with $CC and with simple cc.
4830 # Following AC_PROG_CC_C_O, we do the test twice because some
4831 # compilers refuse to overwrite an existing .o file with -o,
4832 # though they will create one.
4833 am_cv_prog_cc_c_o=yes
4834 for am_i in 1 2; do
4835 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4836 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } \
4840 && test -f conftest2.$ac_objext; then
4841 : OK
4842 else
4843 am_cv_prog_cc_c_o=no
4844 break
4845 fi
4846 done
4847 rm -f core conftest*
4848 unset am_i ;;
4849 esac
4850 fi
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4852 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4853 if test "$am_cv_prog_cc_c_o" != yes; then
4854 # Losing compiler, so override with the script.
4855 # FIXME: It is wrong to rewrite CC.
4856 # But if we don't then we get into trouble of one sort or another.
4857 # A longer-term fix would be to have automake use am__CC in this case,
4858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4859 CC="$am_aux_dir/compile $CC"
4860 fi
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867
4868 depcc="$CC" am_compiler_list=
4869
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871 printf %s "checking dependency style of $depcc... " >&6; }
4872 if test ${am_cv_CC_dependencies_compiler_type+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else case e in #(
4876 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named 'D' -- because '-MD' means "put the output
4881 # in D".
4882 rm -rf conftest.dir
4883 mkdir conftest.dir
4884 # Copy depcomp to subdir because otherwise we won't find it if we're
4885 # using a relative directory.
4886 cp "$am_depcomp" conftest.dir
4887 cd conftest.dir
4888 # We will build objects and dependencies in a subdirectory because
4889 # it helps to detect inapplicable dependency modes. For instance
4890 # both Tru64's cc and ICC support -MD to output dependencies as a
4891 # side effect of compilation, but ICC will put the dependencies in
4892 # the current directory while Tru64 will put them in the object
4893 # directory.
4894 mkdir sub
4895
4896 am_cv_CC_dependencies_compiler_type=none
4897 if test "$am_compiler_list" = ""; then
4898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899 fi
4900 am__universal=false
4901 case " $depcc " in #(
4902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4903 esac
4904
4905 for depmode in $am_compiler_list; do
4906 # Setup a source with many dependencies, because some compilers
4907 # like to wrap large dependency lists on column 80 (with \), and
4908 # we should not choose a depcomp mode which is confused by this.
4909 #
4910 # We need to recreate these files for each test, as the compiler may
4911 # overwrite some of them when testing with obscure command lines.
4912 # This happens at least with the AIX C compiler.
4913 : > sub/conftest.c
4914 for i in 1 2 3 4 5 6; do
4915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4916 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4917 # Solaris 10 /bin/sh.
4918 echo '/* dummy */' > sub/conftst$i.h
4919 done
4920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921
4922 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4923 # mode. It turns out that the SunPro C++ compiler does not properly
4924 # handle '-M -o', and we need to detect this. Also, some Intel
4925 # versions had trouble with output in subdirs.
4926 am__obj=sub/conftest.${OBJEXT-o}
4927 am__minus_obj="-o $am__obj"
4928 case $depmode in
4929 gcc)
4930 # This depmode causes a compiler race in universal mode.
4931 test "$am__universal" = false || continue
4932 ;;
4933 nosideeffect)
4934 # After this tag, mechanisms are not by side-effect, so they'll
4935 # only be used when explicitly requested.
4936 if test "x$enable_dependency_tracking" = xyes; then
4937 continue
4938 else
4939 break
4940 fi
4941 ;;
4942 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4943 # This compiler won't grok '-c -o', but also, the minuso test has
4944 # not run yet. These depmodes are late enough in the game, and
4945 # so weak that their functioning should not be impacted.
4946 am__obj=conftest.${OBJEXT-o}
4947 am__minus_obj=
4948 ;;
4949 none) break ;;
4950 esac
4951 if depmode=$depmode \
4952 source=sub/conftest.c object=$am__obj \
4953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4955 >/dev/null 2>conftest.err &&
4956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960 # icc doesn't choke on unknown options, it will just issue warnings
4961 # or remarks (even with -Werror). So we grep stderr for any message
4962 # that says an option was ignored or not supported.
4963 # When given -MP, icc 7.0 and 7.1 complain thus:
4964 # icc: Command line warning: ignoring option '-M'; no argument required
4965 # The diagnosis changed in icc 8.0:
4966 # icc: Command line remark: option '-MP' not supported
4967 if (grep 'ignoring option' conftest.err ||
4968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969 am_cv_CC_dependencies_compiler_type=$depmode
4970 break
4971 fi
4972 fi
4973 done
4974
4975 cd ..
4976 rm -rf conftest.dir
4977 else
4978 am_cv_CC_dependencies_compiler_type=none
4979 fi
4980 ;;
4981 esac
4982 fi
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4984 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4985 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4986
4987 if
4988 test "x$enable_dependency_tracking" != xno \
4989 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4990 am__fastdepCC_TRUE=
4991 am__fastdepCC_FALSE='#'
4992 else
4993 am__fastdepCC_TRUE='#'
4994 am__fastdepCC_FALSE=
4995 fi
4996
4997
4998
4999
5000 if test -n "$ac_tool_prefix"; then
5001 for ac_prog in ar lib "link -lib"
5002 do
5003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 printf %s "checking for $ac_word... " >&6; }
5007 if test ${ac_cv_prog_AR+y}
5008 then :
5009 printf %s "(cached) " >&6
5010 else case e in #(
5011 e) if test -n "$AR"; then
5012 ac_cv_prog_AR="$AR" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 case $as_dir in #(((
5019 '') as_dir=./ ;;
5020 */) ;;
5021 *) as_dir=$as_dir/ ;;
5022 esac
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi ;;
5034 esac
5035 fi
5036 AR=$ac_cv_prog_AR
5037 if test -n "$AR"; then
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5039 printf "%s\n" "$AR" >&6; }
5040 else
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 printf "%s\n" "no" >&6; }
5043 fi
5044
5045
5046 test -n "$AR" && break
5047 done
5048 fi
5049 if test -z "$AR"; then
5050 ac_ct_AR=$AR
5051 for ac_prog in ar lib "link -lib"
5052 do
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 printf %s "checking for $ac_word... " >&6; }
5057 if test ${ac_cv_prog_ac_ct_AR+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else case e in #(
5061 e) if test -n "$ac_ct_AR"; then
5062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 case $as_dir in #(((
5069 '') as_dir=./ ;;
5070 */) ;;
5071 *) as_dir=$as_dir/ ;;
5072 esac
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_ac_ct_AR="$ac_prog"
5076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi ;;
5084 esac
5085 fi
5086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5087 if test -n "$ac_ct_AR"; then
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5089 printf "%s\n" "$ac_ct_AR" >&6; }
5090 else
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 printf "%s\n" "no" >&6; }
5093 fi
5094
5095
5096 test -n "$ac_ct_AR" && break
5097 done
5098
5099 if test "x$ac_ct_AR" = x; then
5100 AR="false"
5101 else
5102 case $cross_compiling:$ac_tool_warned in
5103 yes:)
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5107 esac
5108 AR=$ac_ct_AR
5109 fi
5110 fi
5111
5112 : ${AR=ar}
5113 : ${ARFLAGS=cr}
5114
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5116 printf %s "checking the archiver ($AR) interface... " >&6; }
5117 if test ${am_cv_ar_interface+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else case e in #(
5121 e) ac_ext=c
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127 am_cv_ar_interface=ar
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 int some_variable = 0;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"
5133 then :
5134 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5136 (eval $am_ar_try) 2>&5
5137 ac_status=$?
5138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }
5140 if test "$ac_status" -eq 0; then
5141 am_cv_ar_interface=ar
5142 else
5143 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5145 (eval $am_ar_try) 2>&5
5146 ac_status=$?
5147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5148 test $ac_status = 0; }
5149 if test "$ac_status" -eq 0; then
5150 am_cv_ar_interface=lib
5151 else
5152 am_cv_ar_interface=unknown
5153 fi
5154 fi
5155 rm -f conftest.lib libconftest.a
5156
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5159 ac_ext=c
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164 ;;
5165 esac
5166 fi
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5168 printf "%s\n" "$am_cv_ar_interface" >&6; }
5169
5170 case $am_cv_ar_interface in
5171 ar)
5172 ;;
5173 lib)
5174 # Microsoft lib, so override with the ar-lib wrapper script.
5175 # FIXME: It is wrong to rewrite AR.
5176 # But if we don't then we get into trouble of one sort or another.
5177 # A longer-term fix would be to have automake use am__AR in this case,
5178 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5179 # similar.
5180 AR="$am_aux_dir/ar-lib $AR"
5181 ;;
5182 unknown)
5183 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5184 ;;
5185 esac
5186
5187
5188 case `pwd` in
5189 *\ * | *\ *)
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5191 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5192 esac
5193
5194
5195
5196 macro_version='2.5.4'
5197 macro_revision='2.5.4'
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 ltmain=$ac_aux_dir/ltmain.sh
5213
5214
5215
5216 # Make sure we can run config.sub.
5217 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5218 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5219
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5221 printf %s "checking build system type... " >&6; }
5222 if test ${ac_cv_build+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else case e in #(
5226 e) ac_build_alias=$build_alias
5227 test "x$ac_build_alias" = x &&
5228 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5229 test "x$ac_build_alias" = x &&
5230 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5231 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5232 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5233 ;;
5234 esac
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5237 printf "%s\n" "$ac_cv_build" >&6; }
5238 case $ac_cv_build in
5239 *-*-*) ;;
5240 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5241 esac
5242 build=$ac_cv_build
5243 ac_save_IFS=$IFS; IFS='-'
5244 set x $ac_cv_build
5245 shift
5246 build_cpu=$1
5247 build_vendor=$2
5248 shift; shift
5249 # Remember, the first character of IFS is used to create $*,
5250 # except with old shells:
5251 build_os=$*
5252 IFS=$ac_save_IFS
5253 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5254
5255
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5257 printf %s "checking host system type... " >&6; }
5258 if test ${ac_cv_host+y}
5259 then :
5260 printf %s "(cached) " >&6
5261 else case e in #(
5262 e) if test "x$host_alias" = x; then
5263 ac_cv_host=$ac_cv_build
5264 else
5265 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5266 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5267 fi
5268 ;;
5269 esac
5270 fi
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5272 printf "%s\n" "$ac_cv_host" >&6; }
5273 case $ac_cv_host in
5274 *-*-*) ;;
5275 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5276 esac
5277 host=$ac_cv_host
5278 ac_save_IFS=$IFS; IFS='-'
5279 set x $ac_cv_host
5280 shift
5281 host_cpu=$1
5282 host_vendor=$2
5283 shift; shift
5284 # Remember, the first character of IFS is used to create $*,
5285 # except with old shells:
5286 host_os=$*
5287 IFS=$ac_save_IFS
5288 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5289
5290
5291 # Backslashify metacharacters that are still active within
5292 # double-quoted strings.
5293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5294
5295 # Same as above, but do not quote variable references.
5296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5297
5298 # Sed substitution to delay expansion of an escaped shell variable in a
5299 # double_quote_subst'ed string.
5300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5301
5302 # Sed substitution to delay expansion of an escaped single quote.
5303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5304
5305 # Sed substitution to avoid accidental globbing in evaled expressions
5306 no_glob_subst='s/\*/\\\*/g'
5307
5308 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5311
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5313 printf %s "checking how to print strings... " >&6; }
5314 # Test print first, because it will be a builtin if present.
5315 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5316 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5317 ECHO='print -r --'
5318 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5319 ECHO='printf %s\n'
5320 else
5321 # Use this function as a fallback that always works.
5322 func_fallback_echo ()
5323 {
5324 eval 'cat <<_LTECHO_EOF
5325 $1
5326 _LTECHO_EOF'
5327 }
5328 ECHO='func_fallback_echo'
5329 fi
5330
5331 # func_echo_all arg...
5332 # Invoke $ECHO with all args, space-separated.
5333 func_echo_all ()
5334 {
5335 $ECHO ""
5336 }
5337
5338 case $ECHO in
5339 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5340 printf "%s\n" "printf" >&6; } ;;
5341 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5342 printf "%s\n" "print -r" >&6; } ;;
5343 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5344 printf "%s\n" "cat" >&6; } ;;
5345 esac
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5361 printf %s "checking for a sed that does not truncate output... " >&6; }
5362 if test ${ac_cv_path_SED+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else case e in #(
5366 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5367 for ac_i in 1 2 3 4 5 6 7; do
5368 ac_script="$ac_script$as_nl$ac_script"
5369 done
5370 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5371 { ac_script=; unset ac_script;}
5372 if test -z "$SED"; then
5373 ac_path_SED_found=false
5374 # Loop through the user's path and test for each of PROGNAME-LIST
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 case $as_dir in #(((
5380 '') as_dir=./ ;;
5381 */) ;;
5382 *) as_dir=$as_dir/ ;;
5383 esac
5384 for ac_prog in sed gsed
5385 do
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5388 as_fn_executable_p "$ac_path_SED" || continue
5389 # Check for GNU ac_path_SED and select it if it is found.
5390 # Check for GNU $ac_path_SED
5391 case `"$ac_path_SED" --version 2>&1` in #(
5392 *GNU*)
5393 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5394 #(
5395 *)
5396 ac_count=0
5397 printf %s 0123456789 >"conftest.in"
5398 while :
5399 do
5400 cat "conftest.in" "conftest.in" >"conftest.tmp"
5401 mv "conftest.tmp" "conftest.in"
5402 cp "conftest.in" "conftest.nl"
5403 printf "%s\n" '' >> "conftest.nl"
5404 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5406 as_fn_arith $ac_count + 1 && ac_count=$as_val
5407 if test $ac_count -gt ${ac_path_SED_max-0}; then
5408 # Best one so far, save it but keep looking for a better one
5409 ac_cv_path_SED="$ac_path_SED"
5410 ac_path_SED_max=$ac_count
5411 fi
5412 # 10*(2^10) chars as input seems more than enough
5413 test $ac_count -gt 10 && break
5414 done
5415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5416 esac
5417
5418 $ac_path_SED_found && break 3
5419 done
5420 done
5421 done
5422 IFS=$as_save_IFS
5423 if test -z "$ac_cv_path_SED"; then
5424 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5425 fi
5426 else
5427 ac_cv_path_SED=$SED
5428 fi
5429 ;;
5430 esac
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5433 printf "%s\n" "$ac_cv_path_SED" >&6; }
5434 SED="$ac_cv_path_SED"
5435 rm -f conftest.sed
5436
5437 test -z "$SED" && SED=sed
5438 Xsed="$SED -e 1s/^X//"
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5451 printf %s "checking for grep that handles long lines and -e... " >&6; }
5452 if test ${ac_cv_path_GREP+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else case e in #(
5456 e) if test -z "$GREP"; then
5457 ac_path_GREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461 do
5462 IFS=$as_save_IFS
5463 case $as_dir in #(((
5464 '') as_dir=./ ;;
5465 */) ;;
5466 *) as_dir=$as_dir/ ;;
5467 esac
5468 for ac_prog in grep ggrep
5469 do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5472 as_fn_executable_p "$ac_path_GREP" || continue
5473 # Check for GNU ac_path_GREP and select it if it is found.
5474 # Check for GNU $ac_path_GREP
5475 case `"$ac_path_GREP" --version 2>&1` in #(
5476 *GNU*)
5477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5478 #(
5479 *)
5480 ac_count=0
5481 printf %s 0123456789 >"conftest.in"
5482 while :
5483 do
5484 cat "conftest.in" "conftest.in" >"conftest.tmp"
5485 mv "conftest.tmp" "conftest.in"
5486 cp "conftest.in" "conftest.nl"
5487 printf "%s\n" 'GREP' >> "conftest.nl"
5488 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5490 as_fn_arith $ac_count + 1 && ac_count=$as_val
5491 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5492 # Best one so far, save it but keep looking for a better one
5493 ac_cv_path_GREP="$ac_path_GREP"
5494 ac_path_GREP_max=$ac_count
5495 fi
5496 # 10*(2^10) chars as input seems more than enough
5497 test $ac_count -gt 10 && break
5498 done
5499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500 esac
5501
5502 $ac_path_GREP_found && break 3
5503 done
5504 done
5505 done
5506 IFS=$as_save_IFS
5507 if test -z "$ac_cv_path_GREP"; then
5508 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5509 fi
5510 else
5511 ac_cv_path_GREP=$GREP
5512 fi
5513 ;;
5514 esac
5515 fi
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5517 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5518 GREP="$ac_cv_path_GREP"
5519
5520
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5522 printf %s "checking for egrep... " >&6; }
5523 if test ${ac_cv_path_EGREP+y}
5524 then :
5525 printf %s "(cached) " >&6
5526 else case e in #(
5527 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5528 then ac_cv_path_EGREP="$GREP -E"
5529 else
5530 if test -z "$EGREP"; then
5531 ac_path_EGREP_found=false
5532 # Loop through the user's path and test for each of PROGNAME-LIST
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5535 do
5536 IFS=$as_save_IFS
5537 case $as_dir in #(((
5538 '') as_dir=./ ;;
5539 */) ;;
5540 *) as_dir=$as_dir/ ;;
5541 esac
5542 for ac_prog in egrep
5543 do
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5546 as_fn_executable_p "$ac_path_EGREP" || continue
5547 # Check for GNU ac_path_EGREP and select it if it is found.
5548 # Check for GNU $ac_path_EGREP
5549 case `"$ac_path_EGREP" --version 2>&1` in #(
5550 *GNU*)
5551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5552 #(
5553 *)
5554 ac_count=0
5555 printf %s 0123456789 >"conftest.in"
5556 while :
5557 do
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 printf "%s\n" 'EGREP' >> "conftest.nl"
5562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_EGREP="$ac_path_EGREP"
5568 ac_path_EGREP_max=$ac_count
5569 fi
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5572 done
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574 esac
5575
5576 $ac_path_EGREP_found && break 3
5577 done
5578 done
5579 done
5580 IFS=$as_save_IFS
5581 if test -z "$ac_cv_path_EGREP"; then
5582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5583 fi
5584 else
5585 ac_cv_path_EGREP=$EGREP
5586 fi
5587
5588 fi ;;
5589 esac
5590 fi
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5592 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5593 EGREP="$ac_cv_path_EGREP"
5594
5595 EGREP_TRADITIONAL=$EGREP
5596 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5597
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5599 printf %s "checking for fgrep... " >&6; }
5600 if test ${ac_cv_path_FGREP+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else case e in #(
5604 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5605 then ac_cv_path_FGREP="$GREP -F"
5606 else
5607 if test -z "$FGREP"; then
5608 ac_path_FGREP_found=false
5609 # Loop through the user's path and test for each of PROGNAME-LIST
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5612 do
5613 IFS=$as_save_IFS
5614 case $as_dir in #(((
5615 '') as_dir=./ ;;
5616 */) ;;
5617 *) as_dir=$as_dir/ ;;
5618 esac
5619 for ac_prog in fgrep
5620 do
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5623 as_fn_executable_p "$ac_path_FGREP" || continue
5624 # Check for GNU ac_path_FGREP and select it if it is found.
5625 # Check for GNU $ac_path_FGREP
5626 case `"$ac_path_FGREP" --version 2>&1` in #(
5627 *GNU*)
5628 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5629 #(
5630 *)
5631 ac_count=0
5632 printf %s 0123456789 >"conftest.in"
5633 while :
5634 do
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 printf "%s\n" 'FGREP' >> "conftest.nl"
5639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 as_fn_arith $ac_count + 1 && ac_count=$as_val
5642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_FGREP="$ac_path_FGREP"
5645 ac_path_FGREP_max=$ac_count
5646 fi
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5649 done
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653 $ac_path_FGREP_found && break 3
5654 done
5655 done
5656 done
5657 IFS=$as_save_IFS
5658 if test -z "$ac_cv_path_FGREP"; then
5659 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5660 fi
5661 else
5662 ac_cv_path_FGREP=$FGREP
5663 fi
5664
5665 fi ;;
5666 esac
5667 fi
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5669 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5670 FGREP="$ac_cv_path_FGREP"
5671
5672
5673 test -z "$GREP" && GREP=grep
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693 # Check whether --with-gnu-ld was given.
5694 if test ${with_gnu_ld+y}
5695 then :
5696 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5697 else case e in #(
5698 e) with_gnu_ld=no ;;
5699 esac
5700 fi
5701
5702 ac_prog=ld
5703 if test yes = "$GCC"; then
5704 # Check if gcc -print-prog-name=ld gives a path.
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5706 printf %s "checking for ld used by $CC... " >&6; }
5707 case $host in
5708 *-*-mingw* | *-*-windows*)
5709 # gcc leaves a trailing carriage return, which upsets mingw
5710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5711 *)
5712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5713 esac
5714 case $ac_prog in
5715 # Accept absolute paths.
5716 [\\/]* | ?:[\\/]*)
5717 re_direlt='/[^/][^/]*/\.\./'
5718 # Canonicalize the pathname of ld
5719 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5720 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5721 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5722 done
5723 test -z "$LD" && LD=$ac_prog
5724 ;;
5725 "")
5726 # If it fails, then pretend we aren't using GCC.
5727 ac_prog=ld
5728 ;;
5729 *)
5730 # If it is relative, then search for the first ld in PATH.
5731 with_gnu_ld=unknown
5732 ;;
5733 esac
5734 elif test yes = "$with_gnu_ld"; then
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5736 printf %s "checking for GNU ld... " >&6; }
5737 else
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5739 printf %s "checking for non-GNU ld... " >&6; }
5740 fi
5741 if test ${lt_cv_path_LD+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5745 e) if test -z "$LD"; then
5746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5747 for ac_dir in $PATH; do
5748 IFS=$lt_save_ifs
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751 lt_cv_path_LD=$ac_dir/$ac_prog
5752 # Check to see if the program is GNU ld. I'd rather use --version,
5753 # but apparently some variants of GNU ld only accept -v.
5754 # Break only if it was the GNU/non-GNU ld that we prefer.
5755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5756 *GNU* | *'with BFD'*)
5757 test no != "$with_gnu_ld" && break
5758 ;;
5759 *)
5760 test yes != "$with_gnu_ld" && break
5761 ;;
5762 esac
5763 fi
5764 done
5765 IFS=$lt_save_ifs
5766 else
5767 lt_cv_path_LD=$LD # Let the user override the test with a path.
5768 fi ;;
5769 esac
5770 fi
5771
5772 LD=$lt_cv_path_LD
5773 if test -n "$LD"; then
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5775 printf "%s\n" "$LD" >&6; }
5776 else
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 printf "%s\n" "no" >&6; }
5779 fi
5780 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5782 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5783 if test ${lt_cv_prog_gnu_ld+y}
5784 then :
5785 printf %s "(cached) " >&6
5786 else case e in #(
5787 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5788 case `$LD -v 2>&1 </dev/null` in
5789 *GNU* | *'with BFD'*)
5790 lt_cv_prog_gnu_ld=yes
5791 ;;
5792 *)
5793 lt_cv_prog_gnu_ld=no
5794 ;;
5795 esac ;;
5796 esac
5797 fi
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5799 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5800 with_gnu_ld=$lt_cv_prog_gnu_ld
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5811 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5812 if test ${lt_cv_path_NM+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else case e in #(
5816 e) if test -n "$NM"; then
5817 # Let the user override the test.
5818 lt_cv_path_NM=$NM
5819 else
5820 lt_nm_to_check=${ac_tool_prefix}nm
5821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5822 lt_nm_to_check="$lt_nm_to_check nm"
5823 fi
5824 for lt_tmp_nm in $lt_nm_to_check; do
5825 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5827 IFS=$lt_save_ifs
5828 test -z "$ac_dir" && ac_dir=.
5829 tmp_nm=$ac_dir/$lt_tmp_nm
5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5831 # Check to see if the nm accepts a BSD-compat flag.
5832 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5833 # nm: unknown option "B" ignored
5834 # Tru64's nm complains that /dev/null is an invalid object file
5835 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5836 case $build_os in
5837 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5838 *) lt_bad_file=/dev/null ;;
5839 esac
5840 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5841 *$lt_bad_file* | *'Invalid file or object type'*)
5842 lt_cv_path_NM="$tmp_nm -B"
5843 break 2
5844 ;;
5845 *)
5846 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5847 */dev/null*)
5848 lt_cv_path_NM="$tmp_nm -p"
5849 break 2
5850 ;;
5851 *)
5852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853 continue # so that we can try to find one that supports BSD flags
5854 ;;
5855 esac
5856 ;;
5857 esac
5858 fi
5859 done
5860 IFS=$lt_save_ifs
5861 done
5862 : ${lt_cv_path_NM=no}
5863 fi ;;
5864 esac
5865 fi
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5867 printf "%s\n" "$lt_cv_path_NM" >&6; }
5868 if test no != "$lt_cv_path_NM"; then
5869 NM=$lt_cv_path_NM
5870 else
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$DUMPBIN"; then :
5873 # Let the user override the test.
5874 else
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in dumpbin "link -dump"
5877 do
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 printf %s "checking for $ac_word... " >&6; }
5882 if test ${ac_cv_prog_DUMPBIN+y}
5883 then :
5884 printf %s "(cached) " >&6
5885 else case e in #(
5886 e) if test -n "$DUMPBIN"; then
5887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 case $as_dir in #(((
5894 '') as_dir=./ ;;
5895 */) ;;
5896 *) as_dir=$as_dir/ ;;
5897 esac
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi ;;
5909 esac
5910 fi
5911 DUMPBIN=$ac_cv_prog_DUMPBIN
5912 if test -n "$DUMPBIN"; then
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5914 printf "%s\n" "$DUMPBIN" >&6; }
5915 else
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 printf "%s\n" "no" >&6; }
5918 fi
5919
5920
5921 test -n "$DUMPBIN" && break
5922 done
5923 fi
5924 if test -z "$DUMPBIN"; then
5925 ac_ct_DUMPBIN=$DUMPBIN
5926 for ac_prog in dumpbin "link -dump"
5927 do
5928 # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 printf %s "checking for $ac_word... " >&6; }
5932 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else case e in #(
5936 e) if test -n "$ac_ct_DUMPBIN"; then
5937 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 case $as_dir in #(((
5944 '') as_dir=./ ;;
5945 */) ;;
5946 *) as_dir=$as_dir/ ;;
5947 esac
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi ;;
5959 esac
5960 fi
5961 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5962 if test -n "$ac_ct_DUMPBIN"; then
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5964 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5965 else
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 printf "%s\n" "no" >&6; }
5968 fi
5969
5970
5971 test -n "$ac_ct_DUMPBIN" && break
5972 done
5973
5974 if test "x$ac_ct_DUMPBIN" = x; then
5975 DUMPBIN=":"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 DUMPBIN=$ac_ct_DUMPBIN
5984 fi
5985 fi
5986
5987 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5988 *COFF*)
5989 DUMPBIN="$DUMPBIN -symbols -headers"
5990 ;;
5991 *)
5992 DUMPBIN=:
5993 ;;
5994 esac
5995 fi
5996
5997 if test : != "$DUMPBIN"; then
5998 NM=$DUMPBIN
5999 fi
6000 fi
6001 test -z "$NM" && NM=nm
6002
6003
6004
6005
6006
6007
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6009 printf %s "checking the name lister ($NM) interface... " >&6; }
6010 if test ${lt_cv_nm_interface+y}
6011 then :
6012 printf %s "(cached) " >&6
6013 else case e in #(
6014 e) lt_cv_nm_interface="BSD nm"
6015 echo "int some_variable = 0;" > conftest.$ac_ext
6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6017 (eval "$ac_compile" 2>conftest.err)
6018 cat conftest.err >&5
6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6021 cat conftest.err >&5
6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6023 cat conftest.out >&5
6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6025 lt_cv_nm_interface="MS dumpbin"
6026 fi
6027 rm -f conftest* ;;
6028 esac
6029 fi
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6031 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6032
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6034 printf %s "checking whether ln -s works... " >&6; }
6035 LN_S=$as_ln_s
6036 if test "$LN_S" = "ln -s"; then
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038 printf "%s\n" "yes" >&6; }
6039 else
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6041 printf "%s\n" "no, using $LN_S" >&6; }
6042 fi
6043
6044 # find the maximum length of command line arguments
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6046 printf %s "checking the maximum length of command line arguments... " >&6; }
6047 if test ${lt_cv_sys_max_cmd_len+y}
6048 then :
6049 printf %s "(cached) " >&6
6050 else case e in #(
6051 e) i=0
6052 teststring=ABCD
6053
6054 case $build_os in
6055 msdosdjgpp*)
6056 # On DJGPP, this test can blow up pretty badly due to problems in libc
6057 # (any single argument exceeding 2000 bytes causes a buffer overrun
6058 # during glob expansion). Even if it were fixed, the result of this
6059 # check would be larger than it should be.
6060 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6061 ;;
6062
6063 gnu* | ironclad*)
6064 # Under GNU Hurd and Ironclad, this test is not required because there
6065 # is no limit to the length of command line arguments.
6066 # Libtool will interpret -1 as no limit whatsoever
6067 lt_cv_sys_max_cmd_len=-1;
6068 ;;
6069
6070 cygwin* | mingw* | windows* | cegcc*)
6071 # On Win9x/ME, this test blows up -- it succeeds, but takes
6072 # about 5 minutes as the teststring grows exponentially.
6073 # Worse, since 9x/ME are not pre-emptively multitasking,
6074 # you end up with a "frozen" computer, even though with patience
6075 # the test eventually succeeds (with a max line length of 256k).
6076 # Instead, let's just punt: use the minimum linelength reported by
6077 # all of the supported platforms: 8192 (on NT/2K/XP).
6078 lt_cv_sys_max_cmd_len=8192;
6079 ;;
6080
6081 mint*)
6082 # On MiNT this can take a long time and run out of memory.
6083 lt_cv_sys_max_cmd_len=8192;
6084 ;;
6085
6086 amigaos*)
6087 # On AmigaOS with pdksh, this test takes hours, literally.
6088 # So we just punt and use a minimum line length of 8192.
6089 lt_cv_sys_max_cmd_len=8192;
6090 ;;
6091
6092 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6093 # This has been around since 386BSD, at least. Likely further.
6094 if test -x /sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6096 elif test -x /usr/sbin/sysctl; then
6097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6098 else
6099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6100 fi
6101 # And add a safety zone
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6104 ;;
6105
6106 interix*)
6107 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6108 lt_cv_sys_max_cmd_len=196608
6109 ;;
6110
6111 os2*)
6112 # The test takes a long time on OS/2.
6113 lt_cv_sys_max_cmd_len=8192
6114 ;;
6115
6116 osf*)
6117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6119 # nice to cause kernel panics so lets avoid the loop below.
6120 # First set a reasonable default.
6121 lt_cv_sys_max_cmd_len=16384
6122 #
6123 if test -x /sbin/sysconfig; then
6124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6125 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6126 esac
6127 fi
6128 ;;
6129 sco3.2v5*)
6130 lt_cv_sys_max_cmd_len=102400
6131 ;;
6132 sysv5* | sco5v6* | sysv4.2uw2*)
6133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6134 if test -n "$kargmax"; then
6135 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6136 else
6137 lt_cv_sys_max_cmd_len=32768
6138 fi
6139 ;;
6140 *)
6141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6142 if test -n "$lt_cv_sys_max_cmd_len" && \
6143 test undefined != "$lt_cv_sys_max_cmd_len"; then
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6146 else
6147 # Make teststring a little bigger before we do anything with it.
6148 # a 1K string should be a reasonable start.
6149 for i in 1 2 3 4 5 6 7 8; do
6150 teststring=$teststring$teststring
6151 done
6152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153 # If test is not a shell built-in, we'll probably end up computing a
6154 # maximum length that is only half of the actual maximum length, but
6155 # we can't tell.
6156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6158 test 17 != "$i" # 1/2 MB should be enough
6159 do
6160 i=`expr $i + 1`
6161 teststring=$teststring$teststring
6162 done
6163 # Only check the string length outside the loop.
6164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6165 teststring=
6166 # Add a significant safety factor because C++ compilers can tack on
6167 # massive amounts of additional arguments before passing them to the
6168 # linker. It appears as though 1/2 is a usable value.
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6170 fi
6171 ;;
6172 esac
6173 ;;
6174 esac
6175 fi
6176
6177 if test -n "$lt_cv_sys_max_cmd_len"; then
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6179 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6180 else
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6182 printf "%s\n" "none" >&6; }
6183 fi
6184 max_cmd_len=$lt_cv_sys_max_cmd_len
6185
6186
6187
6188
6189
6190
6191 : ${CP="cp -f"}
6192 : ${MV="mv -f"}
6193 : ${RM="rm -f"}
6194
6195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6196 lt_unset=unset
6197 else
6198 lt_unset=false
6199 fi
6200
6201
6202
6203
6204
6205 # test EBCDIC or ASCII
6206 case `echo X|tr X '\101'` in
6207 A) # ASCII based system
6208 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6209 lt_SP2NL='tr \040 \012'
6210 lt_NL2SP='tr \015\012 \040\040'
6211 ;;
6212 *) # EBCDIC based system
6213 lt_SP2NL='tr \100 \n'
6214 lt_NL2SP='tr \r\n \100\100'
6215 ;;
6216 esac
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6227 printf %s "checking how to convert $build file names to $host format... " >&6; }
6228 if test ${lt_cv_to_host_file_cmd+y}
6229 then :
6230 printf %s "(cached) " >&6
6231 else case e in #(
6232 e) case $host in
6233 *-*-mingw* )
6234 case $build in
6235 *-*-mingw* | *-*-windows* ) # actually msys
6236 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6237 ;;
6238 *-*-cygwin* )
6239 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6240 ;;
6241 * ) # otherwise, assume *nix
6242 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6243 ;;
6244 esac
6245 ;;
6246 *-*-cygwin* )
6247 case $build in
6248 *-*-mingw* | *-*-windows* ) # actually msys
6249 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6250 ;;
6251 *-*-cygwin* )
6252 lt_cv_to_host_file_cmd=func_convert_file_noop
6253 ;;
6254 * ) # otherwise, assume *nix
6255 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6256 ;;
6257 esac
6258 ;;
6259 * ) # unhandled hosts (and "normal" native builds)
6260 lt_cv_to_host_file_cmd=func_convert_file_noop
6261 ;;
6262 esac
6263 ;;
6264 esac
6265 fi
6266
6267 to_host_file_cmd=$lt_cv_to_host_file_cmd
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6269 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6270
6271
6272
6273
6274
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6276 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6277 if test ${lt_cv_to_tool_file_cmd+y}
6278 then :
6279 printf %s "(cached) " >&6
6280 else case e in #(
6281 e) #assume ordinary cross tools, or native build.
6282 lt_cv_to_tool_file_cmd=func_convert_file_noop
6283 case $host in
6284 *-*-mingw* | *-*-windows* )
6285 case $build in
6286 *-*-mingw* | *-*-windows* ) # actually msys
6287 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6288 ;;
6289 esac
6290 ;;
6291 esac
6292 ;;
6293 esac
6294 fi
6295
6296 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6298 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6299
6300
6301
6302
6303
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6305 printf %s "checking for $LD option to reload object files... " >&6; }
6306 if test ${lt_cv_ld_reload_flag+y}
6307 then :
6308 printf %s "(cached) " >&6
6309 else case e in #(
6310 e) lt_cv_ld_reload_flag='-r' ;;
6311 esac
6312 fi
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6314 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6315 reload_flag=$lt_cv_ld_reload_flag
6316 case $reload_flag in
6317 "" | " "*) ;;
6318 *) reload_flag=" $reload_flag" ;;
6319 esac
6320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6321 case $host_os in
6322 cygwin* | mingw* | windows* | pw32* | cegcc*)
6323 if test yes != "$GCC"; then
6324 reload_cmds=false
6325 fi
6326 ;;
6327 darwin*)
6328 if test yes = "$GCC"; then
6329 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6330 else
6331 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6332 fi
6333 ;;
6334 esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 # Extract the first word of "file", so it can be a program name with args.
6345 set dummy file; ac_word=$2
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 printf %s "checking for $ac_word... " >&6; }
6348 if test ${ac_cv_prog_FILECMD+y}
6349 then :
6350 printf %s "(cached) " >&6
6351 else case e in #(
6352 e) if test -n "$FILECMD"; then
6353 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 case $as_dir in #(((
6360 '') as_dir=./ ;;
6361 */) ;;
6362 *) as_dir=$as_dir/ ;;
6363 esac
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_FILECMD="file"
6367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6375 fi ;;
6376 esac
6377 fi
6378 FILECMD=$ac_cv_prog_FILECMD
6379 if test -n "$FILECMD"; then
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6381 printf "%s\n" "$FILECMD" >&6; }
6382 else
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 printf "%s\n" "no" >&6; }
6385 fi
6386
6387
6388
6389
6390
6391
6392
6393
6394 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 printf %s "checking for $ac_word... " >&6; }
6399 if test ${ac_cv_prog_OBJDUMP+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else case e in #(
6403 e) if test -n "$OBJDUMP"; then
6404 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 case $as_dir in #(((
6411 '') as_dir=./ ;;
6412 */) ;;
6413 *) as_dir=$as_dir/ ;;
6414 esac
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi ;;
6426 esac
6427 fi
6428 OBJDUMP=$ac_cv_prog_OBJDUMP
6429 if test -n "$OBJDUMP"; then
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6431 printf "%s\n" "$OBJDUMP" >&6; }
6432 else
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 printf "%s\n" "no" >&6; }
6435 fi
6436
6437
6438 fi
6439 if test -z "$ac_cv_prog_OBJDUMP"; then
6440 ac_ct_OBJDUMP=$OBJDUMP
6441 # Extract the first word of "objdump", so it can be a program name with args.
6442 set dummy objdump; ac_word=$2
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 printf %s "checking for $ac_word... " >&6; }
6445 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else case e in #(
6449 e) if test -n "$ac_ct_OBJDUMP"; then
6450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 case $as_dir in #(((
6457 '') as_dir=./ ;;
6458 */) ;;
6459 *) as_dir=$as_dir/ ;;
6460 esac
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi ;;
6472 esac
6473 fi
6474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6475 if test -n "$ac_ct_OBJDUMP"; then
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6477 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6478 else
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 printf "%s\n" "no" >&6; }
6481 fi
6482
6483 if test "x$ac_ct_OBJDUMP" = x; then
6484 OBJDUMP="false"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 OBJDUMP=$ac_ct_OBJDUMP
6493 fi
6494 else
6495 OBJDUMP="$ac_cv_prog_OBJDUMP"
6496 fi
6497
6498 test -z "$OBJDUMP" && OBJDUMP=objdump
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6509 printf %s "checking how to recognize dependent libraries... " >&6; }
6510 if test ${lt_cv_deplibs_check_method+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else case e in #(
6514 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6515 lt_cv_file_magic_test_file=
6516 lt_cv_deplibs_check_method='unknown'
6517 # Need to set the preceding variable on all platforms that support
6518 # interlibrary dependencies.
6519 # 'none' -- dependencies not supported.
6520 # 'unknown' -- same as none, but documents that we really don't know.
6521 # 'pass_all' -- all dependencies passed with no checks.
6522 # 'file_magic [[regex]]' -- check by looking for files in library path
6523 # that responds to the $file_magic_cmd with a given extended regex.
6524 # If you have 'file' or equivalent on your system and you're not sure
6525 # whether 'pass_all' will *always* work, you probably want this one.
6526
6527 case $host_os in
6528 aix[4-9]*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 beos*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 bsdi[45]*)
6537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6538 lt_cv_file_magic_cmd='$FILECMD -L'
6539 lt_cv_file_magic_test_file=/shlib/libc.so
6540 ;;
6541
6542 cygwin*)
6543 # func_win32_libid is a shell function defined in ltmain.sh
6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545 lt_cv_file_magic_cmd='func_win32_libid'
6546 ;;
6547
6548 mingw* | windows* | pw32*)
6549 # Base MSYS/MinGW do not provide the 'file' command needed by
6550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6551 # unless we find 'file', for example because we are cross-compiling.
6552 if ( file / ) >/dev/null 2>&1; then
6553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6554 lt_cv_file_magic_cmd='func_win32_libid'
6555 else
6556 # Keep this pattern in sync with the one in func_win32_libid.
6557 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6558 lt_cv_file_magic_cmd='$OBJDUMP -f'
6559 fi
6560 ;;
6561
6562 cegcc*)
6563 # use the weaker test based on 'objdump'. See mingw*.
6564 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6565 lt_cv_file_magic_cmd='$OBJDUMP -f'
6566 ;;
6567
6568 darwin* | rhapsody*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571
6572 freebsd* | dragonfly* | midnightbsd*)
6573 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6574 case $host_cpu in
6575 i*86 )
6576 # Not sure whether the presence of OpenBSD here was a mistake.
6577 # Let's accept both of them until this is cleared up.
6578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6579 lt_cv_file_magic_cmd=$FILECMD
6580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6581 ;;
6582 esac
6583 else
6584 lt_cv_deplibs_check_method=pass_all
6585 fi
6586 ;;
6587
6588 haiku*)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591
6592 hpux10.20* | hpux11*)
6593 lt_cv_file_magic_cmd=$FILECMD
6594 case $host_cpu in
6595 ia64*)
6596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6598 ;;
6599 hppa*64*)
6600 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]'
6601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6602 ;;
6603 *)
6604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6605 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6606 ;;
6607 esac
6608 ;;
6609
6610 interix[3-9]*)
6611 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6613 ;;
6614
6615 irix5* | irix6* | nonstopux*)
6616 case $LD in
6617 *-32|*"-32 ") libmagic=32-bit;;
6618 *-n32|*"-n32 ") libmagic=N32;;
6619 *-64|*"-64 ") libmagic=64-bit;;
6620 *) libmagic=never-match;;
6621 esac
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624
6625 # This must be glibc/ELF.
6626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6627 lt_cv_deplibs_check_method=pass_all
6628 ;;
6629
6630 *-mlibc)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 netbsd* | netbsdelf*-gnu)
6635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6637 else
6638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6639 fi
6640 ;;
6641
6642 newos6*)
6643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6644 lt_cv_file_magic_cmd=$FILECMD
6645 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6646 ;;
6647
6648 *nto* | *qnx*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
6652 openbsd*)
6653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6655 else
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6657 fi
6658 ;;
6659
6660 osf3* | osf4* | osf5*)
6661 lt_cv_deplibs_check_method=pass_all
6662 ;;
6663
6664 rdos*)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668 serenity*)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671
6672 solaris*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675
6676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679
6680 sysv4 | sysv4.3*)
6681 case $host_vendor in
6682 motorola)
6683 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]'
6684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6685 ;;
6686 ncr)
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689 sequent)
6690 lt_cv_file_magic_cmd='/bin/file'
6691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6692 ;;
6693 sni)
6694 lt_cv_file_magic_cmd='/bin/file'
6695 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6696 lt_cv_file_magic_test_file=/lib/libc.so
6697 ;;
6698 siemens)
6699 lt_cv_deplibs_check_method=pass_all
6700 ;;
6701 pc)
6702 lt_cv_deplibs_check_method=pass_all
6703 ;;
6704 esac
6705 ;;
6706
6707 tpf*)
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710 os2*)
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
6713 esac
6714 ;;
6715 esac
6716 fi
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6718 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6719
6720 file_magic_glob=
6721 want_nocaseglob=no
6722 if test "$build" = "$host"; then
6723 case $host_os in
6724 mingw* | windows* | pw32*)
6725 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6726 want_nocaseglob=yes
6727 else
6728 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6729 fi
6730 ;;
6731 esac
6732 fi
6733
6734 file_magic_cmd=$lt_cv_file_magic_cmd
6735 deplibs_check_method=$lt_cv_deplibs_check_method
6736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 printf %s "checking for $ac_word... " >&6; }
6764 if test ${ac_cv_prog_DLLTOOL+y}
6765 then :
6766 printf %s "(cached) " >&6
6767 else case e in #(
6768 e) if test -n "$DLLTOOL"; then
6769 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 case $as_dir in #(((
6776 '') as_dir=./ ;;
6777 */) ;;
6778 *) as_dir=$as_dir/ ;;
6779 esac
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi ;;
6791 esac
6792 fi
6793 DLLTOOL=$ac_cv_prog_DLLTOOL
6794 if test -n "$DLLTOOL"; then
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6796 printf "%s\n" "$DLLTOOL" >&6; }
6797 else
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 printf "%s\n" "no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_DLLTOOL"; then
6805 ac_ct_DLLTOOL=$DLLTOOL
6806 # Extract the first word of "dlltool", so it can be a program name with args.
6807 set dummy dlltool; ac_word=$2
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 printf %s "checking for $ac_word... " >&6; }
6810 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) if test -n "$ac_ct_DLLTOOL"; then
6815 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 case $as_dir in #(((
6822 '') as_dir=./ ;;
6823 */) ;;
6824 *) as_dir=$as_dir/ ;;
6825 esac
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi ;;
6837 esac
6838 fi
6839 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6840 if test -n "$ac_ct_DLLTOOL"; then
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6842 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6843 else
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 printf "%s\n" "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_DLLTOOL" = x; then
6849 DLLTOOL="false"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 DLLTOOL=$ac_ct_DLLTOOL
6858 fi
6859 else
6860 DLLTOOL="$ac_cv_prog_DLLTOOL"
6861 fi
6862
6863 test -z "$DLLTOOL" && DLLTOOL=dlltool
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6875 printf %s "checking how to associate runtime and link libraries... " >&6; }
6876 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else case e in #(
6880 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6881
6882 case $host_os in
6883 cygwin* | mingw* | windows* | pw32* | cegcc*)
6884 # two different shell functions defined in ltmain.sh;
6885 # decide which one to use based on capabilities of $DLLTOOL
6886 case `$DLLTOOL --help 2>&1` in
6887 *--identify-strict*)
6888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6889 ;;
6890 *)
6891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6892 ;;
6893 esac
6894 ;;
6895 *)
6896 # fallback: assume linklib IS sharedlib
6897 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6898 ;;
6899 esac
6900 ;;
6901 esac
6902 fi
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6904 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6905 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6906 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6907
6908
6909
6910
6911
6912
6913
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 printf %s "checking for $ac_word... " >&6; }
6919 if test ${ac_cv_prog_RANLIB+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else case e in #(
6923 e) if test -n "$RANLIB"; then
6924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 case $as_dir in #(((
6931 '') as_dir=./ ;;
6932 */) ;;
6933 *) as_dir=$as_dir/ ;;
6934 esac
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi ;;
6946 esac
6947 fi
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6951 printf "%s\n" "$RANLIB" >&6; }
6952 else
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 printf "%s\n" "no" >&6; }
6955 fi
6956
6957
6958 fi
6959 if test -z "$ac_cv_prog_RANLIB"; then
6960 ac_ct_RANLIB=$RANLIB
6961 # Extract the first word of "ranlib", so it can be a program name with args.
6962 set dummy ranlib; ac_word=$2
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 printf %s "checking for $ac_word... " >&6; }
6965 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6966 then :
6967 printf %s "(cached) " >&6
6968 else case e in #(
6969 e) if test -n "$ac_ct_RANLIB"; then
6970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975 IFS=$as_save_IFS
6976 case $as_dir in #(((
6977 '') as_dir=./ ;;
6978 */) ;;
6979 *) as_dir=$as_dir/ ;;
6980 esac
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_ac_ct_RANLIB="ranlib"
6984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi ;;
6992 esac
6993 fi
6994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6995 if test -n "$ac_ct_RANLIB"; then
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6997 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6998 else
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 printf "%s\n" "no" >&6; }
7001 fi
7002
7003 if test "x$ac_ct_RANLIB" = x; then
7004 RANLIB=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012 RANLIB=$ac_ct_RANLIB
7013 fi
7014 else
7015 RANLIB="$ac_cv_prog_RANLIB"
7016 fi
7017
7018 if test -n "$ac_tool_prefix"; then
7019 for ac_prog in ar
7020 do
7021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 printf %s "checking for $ac_word... " >&6; }
7025 if test ${ac_cv_prog_AR+y}
7026 then :
7027 printf %s "(cached) " >&6
7028 else case e in #(
7029 e) if test -n "$AR"; then
7030 ac_cv_prog_AR="$AR" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 case $as_dir in #(((
7037 '') as_dir=./ ;;
7038 */) ;;
7039 *) as_dir=$as_dir/ ;;
7040 esac
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051 fi ;;
7052 esac
7053 fi
7054 AR=$ac_cv_prog_AR
7055 if test -n "$AR"; then
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7057 printf "%s\n" "$AR" >&6; }
7058 else
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 printf "%s\n" "no" >&6; }
7061 fi
7062
7063
7064 test -n "$AR" && break
7065 done
7066 fi
7067 if test -z "$AR"; then
7068 ac_ct_AR=$AR
7069 for ac_prog in ar
7070 do
7071 # Extract the first word of "$ac_prog", so it can be a program name with args.
7072 set dummy $ac_prog; ac_word=$2
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 printf %s "checking for $ac_word... " >&6; }
7075 if test ${ac_cv_prog_ac_ct_AR+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else case e in #(
7079 e) if test -n "$ac_ct_AR"; then
7080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 case $as_dir in #(((
7087 '') as_dir=./ ;;
7088 */) ;;
7089 *) as_dir=$as_dir/ ;;
7090 esac
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_AR="$ac_prog"
7094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi ;;
7102 esac
7103 fi
7104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7105 if test -n "$ac_ct_AR"; then
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7107 printf "%s\n" "$ac_ct_AR" >&6; }
7108 else
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111 fi
7112
7113
7114 test -n "$ac_ct_AR" && break
7115 done
7116
7117 if test "x$ac_ct_AR" = x; then
7118 AR="false"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 AR=$ac_ct_AR
7127 fi
7128 fi
7129
7130 : ${AR=ar}
7131
7132
7133
7134
7135
7136
7137 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7138 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7139 # higher priority because that's what people were doing historically (setting
7140 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7141 # variable obsoleted/removed.
7142
7143 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7144 lt_ar_flags=$AR_FLAGS
7145
7146
7147
7148
7149
7150
7151 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7152 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7153
7154
7155
7156
7157
7158
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7160 printf %s "checking for archiver @FILE support... " >&6; }
7161 if test ${lt_cv_ar_at_file+y}
7162 then :
7163 printf %s "(cached) " >&6
7164 else case e in #(
7165 e) lt_cv_ar_at_file=no
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168
7169 int
7170 main (void)
7171 {
7172
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"
7178 then :
7179 echo conftest.$ac_objext > conftest.lst
7180 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7182 (eval $lt_ar_try) 2>&5
7183 ac_status=$?
7184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; }
7186 if test 0 -eq "$ac_status"; then
7187 # Ensure the archiver fails upon bogus file names.
7188 rm -f conftest.$ac_objext libconftest.a
7189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7190 (eval $lt_ar_try) 2>&5
7191 ac_status=$?
7192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }
7194 if test 0 -ne "$ac_status"; then
7195 lt_cv_ar_at_file=@
7196 fi
7197 fi
7198 rm -f conftest.* libconftest.a
7199
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7202 ;;
7203 esac
7204 fi
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7206 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7207
7208 if test no = "$lt_cv_ar_at_file"; then
7209 archiver_list_spec=
7210 else
7211 archiver_list_spec=$lt_cv_ar_at_file
7212 fi
7213
7214
7215
7216
7217
7218
7219
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}strip; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_prog_STRIP+y}
7226 then :
7227 printf %s "(cached) " >&6
7228 else case e in #(
7229 e) if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 case $as_dir in #(((
7237 '') as_dir=./ ;;
7238 */) ;;
7239 *) as_dir=$as_dir/ ;;
7240 esac
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi ;;
7252 esac
7253 fi
7254 STRIP=$ac_cv_prog_STRIP
7255 if test -n "$STRIP"; then
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7257 printf "%s\n" "$STRIP" >&6; }
7258 else
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 printf "%s\n" "no" >&6; }
7261 fi
7262
7263
7264 fi
7265 if test -z "$ac_cv_prog_STRIP"; then
7266 ac_ct_STRIP=$STRIP
7267 # Extract the first word of "strip", so it can be a program name with args.
7268 set dummy strip; ac_word=$2
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 printf %s "checking for $ac_word... " >&6; }
7271 if test ${ac_cv_prog_ac_ct_STRIP+y}
7272 then :
7273 printf %s "(cached) " >&6
7274 else case e in #(
7275 e) if test -n "$ac_ct_STRIP"; then
7276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 case $as_dir in #(((
7283 '') as_dir=./ ;;
7284 */) ;;
7285 *) as_dir=$as_dir/ ;;
7286 esac
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_STRIP="strip"
7290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297 fi ;;
7298 esac
7299 fi
7300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7301 if test -n "$ac_ct_STRIP"; then
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7303 printf "%s\n" "$ac_ct_STRIP" >&6; }
7304 else
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 printf "%s\n" "no" >&6; }
7307 fi
7308
7309 if test "x$ac_ct_STRIP" = x; then
7310 STRIP=":"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 STRIP=$ac_ct_STRIP
7319 fi
7320 else
7321 STRIP="$ac_cv_prog_STRIP"
7322 fi
7323
7324 test -z "$STRIP" && STRIP=:
7325
7326
7327
7328
7329
7330
7331
7332 test -z "$RANLIB" && RANLIB=:
7333
7334
7335
7336
7337
7338
7339 # Determine commands to create old-style static archives.
7340 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7341 old_postinstall_cmds='chmod 644 $oldlib'
7342 old_postuninstall_cmds=
7343
7344 if test -n "$RANLIB"; then
7345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7347 fi
7348
7349 case $host_os in
7350 darwin*)
7351 lock_old_archive_extraction=yes ;;
7352 *)
7353 lock_old_archive_extraction=no ;;
7354 esac
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 # If no C compiler was specified, use CC.
7395 LTCC=${LTCC-"$CC"}
7396
7397 # If no C compiler flags were specified, use CFLAGS.
7398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7399
7400 # Allow CC to be a program name with arguments.
7401 compiler=$CC
7402
7403
7404 # Check for command to grab the raw symbol name followed by C symbol from nm.
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7406 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7407 if test ${lt_cv_sys_global_symbol_pipe+y}
7408 then :
7409 printf %s "(cached) " >&6
7410 else case e in #(
7411 e)
7412 # These are sane defaults that work on at least a few old systems.
7413 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7414
7415 # Character class describing NM global symbol codes.
7416 symcode='[BCDEGRST]'
7417
7418 # Regexp to match symbols that can be accessed directly from C.
7419 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7420
7421 # Define system-specific variables.
7422 case $host_os in
7423 aix*)
7424 symcode='[BCDT]'
7425 ;;
7426 cygwin* | mingw* | windows* | pw32* | cegcc*)
7427 symcode='[ABCDGISTW]'
7428 ;;
7429 hpux*)
7430 if test ia64 = "$host_cpu"; then
7431 symcode='[ABCDEGRST]'
7432 fi
7433 ;;
7434 irix* | nonstopux*)
7435 symcode='[BCDEGRST]'
7436 ;;
7437 osf*)
7438 symcode='[BCDEGQRST]'
7439 ;;
7440 solaris*)
7441 symcode='[BCDRT]'
7442 ;;
7443 sco3.2v5*)
7444 symcode='[DT]'
7445 ;;
7446 sysv4.2uw2*)
7447 symcode='[DT]'
7448 ;;
7449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7450 symcode='[ABDT]'
7451 ;;
7452 sysv4)
7453 symcode='[DFNSTU]'
7454 ;;
7455 esac
7456
7457 # If we're using GNU nm, then use its standard symbol codes.
7458 case `$NM -V 2>&1` in
7459 *GNU* | *'with BFD'*)
7460 symcode='[ABCDGIRSTW]' ;;
7461 esac
7462
7463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7464 # Gets list of data symbols to import.
7465 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7466 # Adjust the below global symbol transforms to fixup imported variables.
7467 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7468 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7469 lt_c_name_lib_hook="\
7470 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7471 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7472 else
7473 # Disable hooks by default.
7474 lt_cv_sys_global_symbol_to_import=
7475 lt_cdecl_hook=
7476 lt_c_name_hook=
7477 lt_c_name_lib_hook=
7478 fi
7479
7480 # Transform an extracted symbol line into a proper C declaration.
7481 # Some systems (esp. on ia64) link data and code symbols differently,
7482 # so use this general approach.
7483 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7484 $lt_cdecl_hook\
7485 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7486 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7487
7488 # Transform an extracted symbol line into symbol name and symbol address
7489 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7490 $lt_c_name_hook\
7491 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7492 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7493
7494 # Transform an extracted symbol line into symbol name with lib prefix and
7495 # symbol address.
7496 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7497 $lt_c_name_lib_hook\
7498 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7499 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7500 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7501
7502 # Handle CRLF in mingw tool chain
7503 opt_cr=
7504 case $build_os in
7505 mingw* | windows*)
7506 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7507 ;;
7508 esac
7509
7510 # Try without a prefix underscore, then with it.
7511 for ac_symprfx in "" "_"; do
7512
7513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7514 symxfrm="\\1 $ac_symprfx\\2 \\2"
7515
7516 # Write the raw and C identifiers.
7517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7518 # Fake it for dumpbin and say T for any non-static function,
7519 # D for any global variable and I for any imported variable.
7520 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7521 # which start with @ or ?.
7522 lt_cv_sys_global_symbol_pipe="$AWK '"\
7523 " {last_section=section; section=\$ 3};"\
7524 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7525 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7526 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7527 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7528 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7529 " \$ 0!~/External *\|/{next};"\
7530 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7531 " {if(hide[section]) next};"\
7532 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7533 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7534 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7535 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7536 " ' prfx=^$ac_symprfx"
7537 else
7538 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7539 fi
7540 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7541
7542 # Check to see that the pipe works correctly.
7543 pipe_works=no
7544
7545 rm -f conftest*
7546 cat > conftest.$ac_ext <<_LT_EOF
7547 #ifdef __cplusplus
7548 extern "C" {
7549 #endif
7550 char nm_test_var;
7551 void nm_test_func(void);
7552 void nm_test_func(void){}
7553 #ifdef __cplusplus
7554 }
7555 #endif
7556 int main(void){nm_test_var='a';nm_test_func();return(0);}
7557 _LT_EOF
7558
7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560 (eval $ac_compile) 2>&5
7561 ac_status=$?
7562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; }; then
7564 # Now try to grab the symbols.
7565 nlist=conftest.nm
7566 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7567 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7568 # Try sorting and uniquifying the output.
7569 if sort "$nlist" | uniq > "$nlist"T; then
7570 mv -f "$nlist"T "$nlist"
7571 else
7572 rm -f "$nlist"T
7573 fi
7574
7575 # Make sure that we snagged all the symbols we need.
7576 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7577 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7578 cat <<_LT_EOF > conftest.$ac_ext
7579 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7580 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7581 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7582 relocations are performed -- see ld's documentation on pseudo-relocs. */
7583 # define LT_DLSYM_CONST
7584 #elif defined __osf__
7585 /* This system does not cope well with relocations in const data. */
7586 # define LT_DLSYM_CONST
7587 #else
7588 # define LT_DLSYM_CONST const
7589 #endif
7590
7591 #ifdef __cplusplus
7592 extern "C" {
7593 #endif
7594
7595 _LT_EOF
7596 # Now generate the symbol file.
7597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7598
7599 cat <<_LT_EOF >> conftest.$ac_ext
7600
7601 /* The mapping between symbol names and symbols. */
7602 LT_DLSYM_CONST struct {
7603 const char *name;
7604 void *address;
7605 }
7606 lt__PROGRAM__LTX_preloaded_symbols[] =
7607 {
7608 { "@PROGRAM@", (void *) 0 },
7609 _LT_EOF
7610 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7611 cat <<\_LT_EOF >> conftest.$ac_ext
7612 {0, (void *) 0}
7613 };
7614
7615 /* This works around a problem in FreeBSD linker */
7616 #ifdef FREEBSD_WORKAROUND
7617 static const void *lt_preloaded_setup() {
7618 return lt__PROGRAM__LTX_preloaded_symbols;
7619 }
7620 #endif
7621
7622 #ifdef __cplusplus
7623 }
7624 #endif
7625 _LT_EOF
7626 # Now try linking the two files.
7627 mv conftest.$ac_objext conftstm.$ac_objext
7628 lt_globsym_save_LIBS=$LIBS
7629 lt_globsym_save_CFLAGS=$CFLAGS
7630 LIBS=conftstm.$ac_objext
7631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7633 (eval $ac_link) 2>&5
7634 ac_status=$?
7635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7637 pipe_works=yes
7638 fi
7639 LIBS=$lt_globsym_save_LIBS
7640 CFLAGS=$lt_globsym_save_CFLAGS
7641 else
7642 echo "cannot find nm_test_func in $nlist" >&5
7643 fi
7644 else
7645 echo "cannot find nm_test_var in $nlist" >&5
7646 fi
7647 else
7648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7649 fi
7650 else
7651 echo "$progname: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7653 fi
7654 rm -rf conftest* conftst*
7655
7656 # Do not use the global_symbol_pipe unless it works.
7657 if test yes = "$pipe_works"; then
7658 break
7659 else
7660 lt_cv_sys_global_symbol_pipe=
7661 fi
7662 done
7663 ;;
7664 esac
7665 fi
7666
7667 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7668 lt_cv_sys_global_symbol_to_cdecl=
7669 fi
7670 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7672 printf "%s\n" "failed" >&6; }
7673 else
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7675 printf "%s\n" "ok" >&6; }
7676 fi
7677
7678 # Response file support.
7679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7680 nm_file_list_spec='@'
7681 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7682 nm_file_list_spec='@'
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7722 printf %s "checking for sysroot... " >&6; }
7723
7724 # Check whether --with-sysroot was given.
7725 if test ${with_sysroot+y}
7726 then :
7727 withval=$with_sysroot;
7728 else case e in #(
7729 e) with_sysroot=no ;;
7730 esac
7731 fi
7732
7733
7734 lt_sysroot=
7735 case $with_sysroot in #(
7736 yes)
7737 if test yes = "$GCC"; then
7738 # Trim trailing / since we'll always append absolute paths and we want
7739 # to avoid //, if only for less confusing output for the user.
7740 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7741 fi
7742 ;; #(
7743 /*)
7744 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7745 ;; #(
7746 no|'')
7747 ;; #(
7748 *)
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7750 printf "%s\n" "$with_sysroot" >&6; }
7751 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7752 ;;
7753 esac
7754
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7756 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7757
7758
7759
7760
7761
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7763 printf %s "checking for a working dd... " >&6; }
7764 if test ${ac_cv_path_lt_DD+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else case e in #(
7768 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7769 cat conftest.i conftest.i >conftest2.i
7770 : ${lt_DD:=$DD}
7771 if test -z "$lt_DD"; then
7772 ac_path_lt_DD_found=false
7773 # Loop through the user's path and test for each of PROGNAME-LIST
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 case $as_dir in #(((
7779 '') as_dir=./ ;;
7780 */) ;;
7781 *) as_dir=$as_dir/ ;;
7782 esac
7783 for ac_prog in dd
7784 do
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7787 as_fn_executable_p "$ac_path_lt_DD" || continue
7788 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7789 cmp -s conftest.i conftest.out \
7790 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7791 fi
7792 $ac_path_lt_DD_found && break 3
7793 done
7794 done
7795 done
7796 IFS=$as_save_IFS
7797 if test -z "$ac_cv_path_lt_DD"; then
7798 :
7799 fi
7800 else
7801 ac_cv_path_lt_DD=$lt_DD
7802 fi
7803
7804 rm -f conftest.i conftest2.i conftest.out ;;
7805 esac
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7808 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7809
7810
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7812 printf %s "checking how to truncate binary pipes... " >&6; }
7813 if test ${lt_cv_truncate_bin+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else case e in #(
7817 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7818 cat conftest.i conftest.i >conftest2.i
7819 lt_cv_truncate_bin=
7820 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7821 cmp -s conftest.i conftest.out \
7822 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7823 fi
7824 rm -f conftest.i conftest2.i conftest.out
7825 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7826 esac
7827 fi
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7829 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7830
7831
7832
7833
7834
7835
7836
7837 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7838 func_cc_basename ()
7839 {
7840 for cc_temp in $*""; do
7841 case $cc_temp in
7842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7844 \-*) ;;
7845 *) break;;
7846 esac
7847 done
7848 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7849 }
7850
7851 # Check whether --enable-libtool-lock was given.
7852 if test ${enable_libtool_lock+y}
7853 then :
7854 enableval=$enable_libtool_lock;
7855 fi
7856
7857 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7858
7859 # Some flags need to be propagated to the compiler or linker for good
7860 # libtool support.
7861 case $host in
7862 ia64-*-hpux*)
7863 # Find out what ABI is being produced by ac_compile, and set mode
7864 # options accordingly.
7865 echo 'int i;' > conftest.$ac_ext
7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867 (eval $ac_compile) 2>&5
7868 ac_status=$?
7869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }; then
7871 case `$FILECMD conftest.$ac_objext` in
7872 *ELF-32*)
7873 HPUX_IA64_MODE=32
7874 ;;
7875 *ELF-64*)
7876 HPUX_IA64_MODE=64
7877 ;;
7878 esac
7879 fi
7880 rm -rf conftest*
7881 ;;
7882 *-*-irix6*)
7883 # Find out what ABI is being produced by ac_compile, and set linker
7884 # options accordingly.
7885 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7887 (eval $ac_compile) 2>&5
7888 ac_status=$?
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 if test yes = "$lt_cv_prog_gnu_ld"; then
7892 case `$FILECMD conftest.$ac_objext` in
7893 *32-bit*)
7894 LD="${LD-ld} -melf32bsmip"
7895 ;;
7896 *N32*)
7897 LD="${LD-ld} -melf32bmipn32"
7898 ;;
7899 *64-bit*)
7900 LD="${LD-ld} -melf64bmip"
7901 ;;
7902 esac
7903 else
7904 case `$FILECMD conftest.$ac_objext` in
7905 *32-bit*)
7906 LD="${LD-ld} -32"
7907 ;;
7908 *N32*)
7909 LD="${LD-ld} -n32"
7910 ;;
7911 *64-bit*)
7912 LD="${LD-ld} -64"
7913 ;;
7914 esac
7915 fi
7916 fi
7917 rm -rf conftest*
7918 ;;
7919
7920 mips64*-*linux*)
7921 # Find out what ABI is being produced by ac_compile, and set linker
7922 # options accordingly.
7923 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7925 (eval $ac_compile) 2>&5
7926 ac_status=$?
7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928 test $ac_status = 0; }; then
7929 emul=elf
7930 case `$FILECMD conftest.$ac_objext` in
7931 *32-bit*)
7932 emul="${emul}32"
7933 ;;
7934 *64-bit*)
7935 emul="${emul}64"
7936 ;;
7937 esac
7938 case `$FILECMD conftest.$ac_objext` in
7939 *MSB*)
7940 emul="${emul}btsmip"
7941 ;;
7942 *LSB*)
7943 emul="${emul}ltsmip"
7944 ;;
7945 esac
7946 case `$FILECMD conftest.$ac_objext` in
7947 *N32*)
7948 emul="${emul}n32"
7949 ;;
7950 esac
7951 LD="${LD-ld} -m $emul"
7952 fi
7953 rm -rf conftest*
7954 ;;
7955
7956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7958 # Find out what ABI is being produced by ac_compile, and set linker
7959 # options accordingly. Note that the listed cases only cover the
7960 # situations where additional linker options are needed (such as when
7961 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7962 # vice versa); the common cases where no linker options are needed do
7963 # not appear in the list.
7964 echo 'int i;' > conftest.$ac_ext
7965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7966 (eval $ac_compile) 2>&5
7967 ac_status=$?
7968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }; then
7970 case `$FILECMD conftest.o` in
7971 *32-bit*)
7972 case $host in
7973 x86_64-*kfreebsd*-gnu)
7974 LD="${LD-ld} -m elf_i386_fbsd"
7975 ;;
7976 x86_64-*linux*|x86_64-gnu*)
7977 case `$FILECMD conftest.o` in
7978 *x86-64*)
7979 LD="${LD-ld} -m elf32_x86_64"
7980 ;;
7981 *)
7982 LD="${LD-ld} -m elf_i386"
7983 ;;
7984 esac
7985 ;;
7986 powerpc64le-*linux*)
7987 LD="${LD-ld} -m elf32lppclinux"
7988 ;;
7989 powerpc64-*linux*)
7990 LD="${LD-ld} -m elf32ppclinux"
7991 ;;
7992 s390x-*linux*)
7993 LD="${LD-ld} -m elf_s390"
7994 ;;
7995 sparc64-*linux*)
7996 LD="${LD-ld} -m elf32_sparc"
7997 ;;
7998 esac
7999 ;;
8000 *64-bit*)
8001 case $host in
8002 x86_64-*kfreebsd*-gnu)
8003 LD="${LD-ld} -m elf_x86_64_fbsd"
8004 ;;
8005 x86_64-*linux*|x86_64-gnu*)
8006 LD="${LD-ld} -m elf_x86_64"
8007 ;;
8008 powerpcle-*linux*)
8009 LD="${LD-ld} -m elf64lppc"
8010 ;;
8011 powerpc-*linux*)
8012 LD="${LD-ld} -m elf64ppc"
8013 ;;
8014 s390*-*linux*|s390*-*tpf*)
8015 LD="${LD-ld} -m elf64_s390"
8016 ;;
8017 sparc*-*linux*)
8018 LD="${LD-ld} -m elf64_sparc"
8019 ;;
8020 esac
8021 ;;
8022 esac
8023 fi
8024 rm -rf conftest*
8025 ;;
8026
8027 *-*-sco3.2v5*)
8028 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8029 SAVE_CFLAGS=$CFLAGS
8030 CFLAGS="$CFLAGS -belf"
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8032 printf %s "checking whether the C compiler needs -belf... " >&6; }
8033 if test ${lt_cv_cc_needs_belf+y}
8034 then :
8035 printf %s "(cached) " >&6
8036 else case e in #(
8037 e) ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045
8046 int
8047 main (void)
8048 {
8049
8050 ;
8051 return 0;
8052 }
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"
8055 then :
8056 lt_cv_cc_needs_belf=yes
8057 else case e in #(
8058 e) lt_cv_cc_needs_belf=no ;;
8059 esac
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8062 conftest$ac_exeext conftest.$ac_ext
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068 ;;
8069 esac
8070 fi
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8072 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8073 if test yes != "$lt_cv_cc_needs_belf"; then
8074 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8075 CFLAGS=$SAVE_CFLAGS
8076 fi
8077 ;;
8078 *-*solaris*)
8079 # Find out what ABI is being produced by ac_compile, and set linker
8080 # options accordingly.
8081 echo 'int i;' > conftest.$ac_ext
8082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8083 (eval $ac_compile) 2>&5
8084 ac_status=$?
8085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8086 test $ac_status = 0; }; then
8087 case `$FILECMD conftest.o` in
8088 *64-bit*)
8089 case $lt_cv_prog_gnu_ld in
8090 yes*)
8091 case $host in
8092 i?86-*-solaris*|x86_64-*-solaris*)
8093 LD="${LD-ld} -m elf_x86_64"
8094 ;;
8095 sparc*-*-solaris*)
8096 LD="${LD-ld} -m elf64_sparc"
8097 ;;
8098 esac
8099 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8100 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8101 LD=${LD-ld}_sol2
8102 fi
8103 ;;
8104 *)
8105 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8106 LD="${LD-ld} -64"
8107 fi
8108 ;;
8109 esac
8110 ;;
8111 esac
8112 fi
8113 rm -rf conftest*
8114 ;;
8115 esac
8116
8117 need_locks=$enable_libtool_lock
8118
8119 if test -n "$ac_tool_prefix"; then
8120 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8121 set dummy ${ac_tool_prefix}mt; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else case e in #(
8128 e) if test -n "$MANIFEST_TOOL"; then
8129 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 case $as_dir in #(((
8136 '') as_dir=./ ;;
8137 */) ;;
8138 *) as_dir=$as_dir/ ;;
8139 esac
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi ;;
8151 esac
8152 fi
8153 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8154 if test -n "$MANIFEST_TOOL"; then
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8156 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8157 else
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8160 fi
8161
8162
8163 fi
8164 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8165 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8166 # Extract the first word of "mt", so it can be a program name with args.
8167 set dummy mt; ac_word=$2
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 printf %s "checking for $ac_word... " >&6; }
8170 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else case e in #(
8174 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8175 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180 IFS=$as_save_IFS
8181 case $as_dir in #(((
8182 '') as_dir=./ ;;
8183 */) ;;
8184 *) as_dir=$as_dir/ ;;
8185 esac
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi ;;
8197 esac
8198 fi
8199 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8200 if test -n "$ac_ct_MANIFEST_TOOL"; then
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8202 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8203 else
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 printf "%s\n" "no" >&6; }
8206 fi
8207
8208 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8209 MANIFEST_TOOL=":"
8210 else
8211 case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8218 fi
8219 else
8220 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8221 fi
8222
8223 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8225 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8226 if test ${lt_cv_path_manifest_tool+y}
8227 then :
8228 printf %s "(cached) " >&6
8229 else case e in #(
8230 e) lt_cv_path_manifest_tool=no
8231 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8232 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8233 cat conftest.err >&5
8234 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8235 lt_cv_path_manifest_tool=yes
8236 fi
8237 rm -f conftest* ;;
8238 esac
8239 fi
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8241 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8242 if test yes != "$lt_cv_path_manifest_tool"; then
8243 MANIFEST_TOOL=:
8244 fi
8245
8246
8247
8248
8249
8250
8251 case $host_os in
8252 rhapsody* | darwin*)
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 printf %s "checking for $ac_word... " >&6; }
8258 if test ${ac_cv_prog_DSYMUTIL+y}
8259 then :
8260 printf %s "(cached) " >&6
8261 else case e in #(
8262 e) if test -n "$DSYMUTIL"; then
8263 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268 IFS=$as_save_IFS
8269 case $as_dir in #(((
8270 '') as_dir=./ ;;
8271 */) ;;
8272 *) as_dir=$as_dir/ ;;
8273 esac
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280 done
8281 done
8282 IFS=$as_save_IFS
8283
8284 fi ;;
8285 esac
8286 fi
8287 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8288 if test -n "$DSYMUTIL"; then
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8290 printf "%s\n" "$DSYMUTIL" >&6; }
8291 else
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 printf "%s\n" "no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_DSYMUTIL"; then
8299 ac_ct_DSYMUTIL=$DSYMUTIL
8300 # Extract the first word of "dsymutil", so it can be a program name with args.
8301 set dummy dsymutil; ac_word=$2
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 printf %s "checking for $ac_word... " >&6; }
8304 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8305 then :
8306 printf %s "(cached) " >&6
8307 else case e in #(
8308 e) if test -n "$ac_ct_DSYMUTIL"; then
8309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314 IFS=$as_save_IFS
8315 case $as_dir in #(((
8316 '') as_dir=./ ;;
8317 */) ;;
8318 *) as_dir=$as_dir/ ;;
8319 esac
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330 fi ;;
8331 esac
8332 fi
8333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8334 if test -n "$ac_ct_DSYMUTIL"; then
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8336 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8337 else
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 printf "%s\n" "no" >&6; }
8340 fi
8341
8342 if test "x$ac_ct_DSYMUTIL" = x; then
8343 DSYMUTIL=":"
8344 else
8345 case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8350 esac
8351 DSYMUTIL=$ac_ct_DSYMUTIL
8352 fi
8353 else
8354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8355 fi
8356
8357 if test -n "$ac_tool_prefix"; then
8358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 printf %s "checking for $ac_word... " >&6; }
8362 if test ${ac_cv_prog_NMEDIT+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else case e in #(
8366 e) if test -n "$NMEDIT"; then
8367 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372 IFS=$as_save_IFS
8373 case $as_dir in #(((
8374 '') as_dir=./ ;;
8375 */) ;;
8376 *) as_dir=$as_dir/ ;;
8377 esac
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi ;;
8389 esac
8390 fi
8391 NMEDIT=$ac_cv_prog_NMEDIT
8392 if test -n "$NMEDIT"; then
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8394 printf "%s\n" "$NMEDIT" >&6; }
8395 else
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 printf "%s\n" "no" >&6; }
8398 fi
8399
8400
8401 fi
8402 if test -z "$ac_cv_prog_NMEDIT"; then
8403 ac_ct_NMEDIT=$NMEDIT
8404 # Extract the first word of "nmedit", so it can be a program name with args.
8405 set dummy nmedit; ac_word=$2
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 printf %s "checking for $ac_word... " >&6; }
8408 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8409 then :
8410 printf %s "(cached) " >&6
8411 else case e in #(
8412 e) if test -n "$ac_ct_NMEDIT"; then
8413 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418 IFS=$as_save_IFS
8419 case $as_dir in #(((
8420 '') as_dir=./ ;;
8421 */) ;;
8422 *) as_dir=$as_dir/ ;;
8423 esac
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434 fi ;;
8435 esac
8436 fi
8437 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8438 if test -n "$ac_ct_NMEDIT"; then
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8440 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8441 else
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 printf "%s\n" "no" >&6; }
8444 fi
8445
8446 if test "x$ac_ct_NMEDIT" = x; then
8447 NMEDIT=":"
8448 else
8449 case $cross_compiling:$ac_tool_warned in
8450 yes:)
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8453 ac_tool_warned=yes ;;
8454 esac
8455 NMEDIT=$ac_ct_NMEDIT
8456 fi
8457 else
8458 NMEDIT="$ac_cv_prog_NMEDIT"
8459 fi
8460
8461 if test -n "$ac_tool_prefix"; then
8462 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8463 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 printf %s "checking for $ac_word... " >&6; }
8466 if test ${ac_cv_prog_LIPO+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else case e in #(
8470 e) if test -n "$LIPO"; then
8471 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8472 else
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8475 do
8476 IFS=$as_save_IFS
8477 case $as_dir in #(((
8478 '') as_dir=./ ;;
8479 */) ;;
8480 *) as_dir=$as_dir/ ;;
8481 esac
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488 done
8489 done
8490 IFS=$as_save_IFS
8491
8492 fi ;;
8493 esac
8494 fi
8495 LIPO=$ac_cv_prog_LIPO
8496 if test -n "$LIPO"; then
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8498 printf "%s\n" "$LIPO" >&6; }
8499 else
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 printf "%s\n" "no" >&6; }
8502 fi
8503
8504
8505 fi
8506 if test -z "$ac_cv_prog_LIPO"; then
8507 ac_ct_LIPO=$LIPO
8508 # Extract the first word of "lipo", so it can be a program name with args.
8509 set dummy lipo; ac_word=$2
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 printf %s "checking for $ac_word... " >&6; }
8512 if test ${ac_cv_prog_ac_ct_LIPO+y}
8513 then :
8514 printf %s "(cached) " >&6
8515 else case e in #(
8516 e) if test -n "$ac_ct_LIPO"; then
8517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522 IFS=$as_save_IFS
8523 case $as_dir in #(((
8524 '') as_dir=./ ;;
8525 */) ;;
8526 *) as_dir=$as_dir/ ;;
8527 esac
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_ac_ct_LIPO="lipo"
8531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537
8538 fi ;;
8539 esac
8540 fi
8541 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8542 if test -n "$ac_ct_LIPO"; then
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8544 printf "%s\n" "$ac_ct_LIPO" >&6; }
8545 else
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 printf "%s\n" "no" >&6; }
8548 fi
8549
8550 if test "x$ac_ct_LIPO" = x; then
8551 LIPO=":"
8552 else
8553 case $cross_compiling:$ac_tool_warned in
8554 yes:)
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8556 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557 ac_tool_warned=yes ;;
8558 esac
8559 LIPO=$ac_ct_LIPO
8560 fi
8561 else
8562 LIPO="$ac_cv_prog_LIPO"
8563 fi
8564
8565 if test -n "$ac_tool_prefix"; then
8566 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8567 set dummy ${ac_tool_prefix}otool; ac_word=$2
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 printf %s "checking for $ac_word... " >&6; }
8570 if test ${ac_cv_prog_OTOOL+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e) if test -n "$OTOOL"; then
8575 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580 IFS=$as_save_IFS
8581 case $as_dir in #(((
8582 '') as_dir=./ ;;
8583 */) ;;
8584 *) as_dir=$as_dir/ ;;
8585 esac
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 fi ;;
8597 esac
8598 fi
8599 OTOOL=$ac_cv_prog_OTOOL
8600 if test -n "$OTOOL"; then
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8602 printf "%s\n" "$OTOOL" >&6; }
8603 else
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 printf "%s\n" "no" >&6; }
8606 fi
8607
8608
8609 fi
8610 if test -z "$ac_cv_prog_OTOOL"; then
8611 ac_ct_OTOOL=$OTOOL
8612 # Extract the first word of "otool", so it can be a program name with args.
8613 set dummy otool; ac_word=$2
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 printf %s "checking for $ac_word... " >&6; }
8616 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8617 then :
8618 printf %s "(cached) " >&6
8619 else case e in #(
8620 e) if test -n "$ac_ct_OTOOL"; then
8621 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 case $as_dir in #(((
8628 '') as_dir=./ ;;
8629 */) ;;
8630 *) as_dir=$as_dir/ ;;
8631 esac
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_ac_ct_OTOOL="otool"
8635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi ;;
8643 esac
8644 fi
8645 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8646 if test -n "$ac_ct_OTOOL"; then
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8648 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8649 else
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 printf "%s\n" "no" >&6; }
8652 fi
8653
8654 if test "x$ac_ct_OTOOL" = x; then
8655 OTOOL=":"
8656 else
8657 case $cross_compiling:$ac_tool_warned in
8658 yes:)
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8662 esac
8663 OTOOL=$ac_ct_OTOOL
8664 fi
8665 else
8666 OTOOL="$ac_cv_prog_OTOOL"
8667 fi
8668
8669 if test -n "$ac_tool_prefix"; then
8670 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8671 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 printf %s "checking for $ac_word... " >&6; }
8674 if test ${ac_cv_prog_OTOOL64+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else case e in #(
8678 e) if test -n "$OTOOL64"; then
8679 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684 IFS=$as_save_IFS
8685 case $as_dir in #(((
8686 '') as_dir=./ ;;
8687 */) ;;
8688 *) as_dir=$as_dir/ ;;
8689 esac
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 fi ;;
8701 esac
8702 fi
8703 OTOOL64=$ac_cv_prog_OTOOL64
8704 if test -n "$OTOOL64"; then
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8706 printf "%s\n" "$OTOOL64" >&6; }
8707 else
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 printf "%s\n" "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_OTOOL64"; then
8715 ac_ct_OTOOL64=$OTOOL64
8716 # Extract the first word of "otool64", so it can be a program name with args.
8717 set dummy otool64; ac_word=$2
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 printf %s "checking for $ac_word... " >&6; }
8720 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else case e in #(
8724 e) if test -n "$ac_ct_OTOOL64"; then
8725 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730 IFS=$as_save_IFS
8731 case $as_dir in #(((
8732 '') as_dir=./ ;;
8733 */) ;;
8734 *) as_dir=$as_dir/ ;;
8735 esac
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_OTOOL64="otool64"
8739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746 fi ;;
8747 esac
8748 fi
8749 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8750 if test -n "$ac_ct_OTOOL64"; then
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8752 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8753 else
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 printf "%s\n" "no" >&6; }
8756 fi
8757
8758 if test "x$ac_ct_OTOOL64" = x; then
8759 OTOOL64=":"
8760 else
8761 case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767 OTOOL64=$ac_ct_OTOOL64
8768 fi
8769 else
8770 OTOOL64="$ac_cv_prog_OTOOL64"
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8800 printf %s "checking for -single_module linker flag... " >&6; }
8801 if test ${lt_cv_apple_cc_single_mod+y}
8802 then :
8803 printf %s "(cached) " >&6
8804 else case e in #(
8805 e) lt_cv_apple_cc_single_mod=no
8806 if test -z "$LT_MULTI_MODULE"; then
8807 # By default we will add the -single_module flag. You can override
8808 # by either setting the environment variable LT_MULTI_MODULE
8809 # non-empty at configure time, or by adding -multi_module to the
8810 # link flags.
8811 rm -rf libconftest.dylib*
8812 echo "int foo(void){return 1;}" > conftest.c
8813 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814 -dynamiclib -Wl,-single_module conftest.c" >&5
8815 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8816 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8817 _lt_result=$?
8818 # If there is a non-empty error log, and "single_module"
8819 # appears in it, assume the flag caused a linker warning
8820 if test -s conftest.err && $GREP single_module conftest.err; then
8821 cat conftest.err >&5
8822 # Otherwise, if the output was created with a 0 exit code from
8823 # the compiler, it worked.
8824 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8825 lt_cv_apple_cc_single_mod=yes
8826 else
8827 cat conftest.err >&5
8828 fi
8829 rm -rf libconftest.dylib*
8830 rm -f conftest.*
8831 fi ;;
8832 esac
8833 fi
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8835 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8836
8837 # Feature test to disable chained fixups since it is not
8838 # compatible with '-undefined dynamic_lookup'
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8840 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8841 if test ${lt_cv_support_no_fixup_chains+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else case e in #(
8845 e) save_LDFLAGS=$LDFLAGS
8846 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849
8850 int
8851 main (void)
8852 {
8853
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"
8859 then :
8860 lt_cv_support_no_fixup_chains=yes
8861 else case e in #(
8862 e) lt_cv_support_no_fixup_chains=no
8863 ;;
8864 esac
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867 conftest$ac_exeext conftest.$ac_ext
8868 LDFLAGS=$save_LDFLAGS
8869
8870 ;;
8871 esac
8872 fi
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8874 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8875
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8877 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8878 if test ${lt_cv_ld_exported_symbols_list+y}
8879 then :
8880 printf %s "(cached) " >&6
8881 else case e in #(
8882 e) lt_cv_ld_exported_symbols_list=no
8883 save_LDFLAGS=$LDFLAGS
8884 echo "_main" > conftest.sym
8885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888
8889 int
8890 main (void)
8891 {
8892
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"
8898 then :
8899 lt_cv_ld_exported_symbols_list=yes
8900 else case e in #(
8901 e) lt_cv_ld_exported_symbols_list=no ;;
8902 esac
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8905 conftest$ac_exeext conftest.$ac_ext
8906 LDFLAGS=$save_LDFLAGS
8907 ;;
8908 esac
8909 fi
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8911 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8912
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8914 printf %s "checking for -force_load linker flag... " >&6; }
8915 if test ${lt_cv_ld_force_load+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else case e in #(
8919 e) lt_cv_ld_force_load=no
8920 cat > conftest.c << _LT_EOF
8921 int forced_loaded() { return 2;}
8922 _LT_EOF
8923 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8924 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8925 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8926 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8927 echo "$RANLIB libconftest.a" >&5
8928 $RANLIB libconftest.a 2>&5
8929 cat > conftest.c << _LT_EOF
8930 int main(void) { return 0;}
8931 _LT_EOF
8932 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8933 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8934 _lt_result=$?
8935 if test -s conftest.err && $GREP force_load conftest.err; then
8936 cat conftest.err >&5
8937 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8938 lt_cv_ld_force_load=yes
8939 else
8940 cat conftest.err >&5
8941 fi
8942 rm -f conftest.err libconftest.a conftest conftest.c
8943 rm -rf conftest.dSYM
8944 ;;
8945 esac
8946 fi
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8948 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8949 case $host_os in
8950 rhapsody* | darwin1.[012])
8951 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8952 darwin1.*)
8953 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8954 darwin*)
8955 case $MACOSX_DEPLOYMENT_TARGET,$host in
8956 10.[012],*|,*powerpc*-darwin[5-8]*)
8957 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8958 *)
8959 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8960 if test yes = "$lt_cv_support_no_fixup_chains"; then
8961 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8962 fi
8963 ;;
8964 esac
8965 ;;
8966 esac
8967 if test yes = "$lt_cv_apple_cc_single_mod"; then
8968 _lt_dar_single_mod='$single_module'
8969 fi
8970 _lt_dar_needs_single_mod=no
8971 case $host_os in
8972 rhapsody* | darwin1.*)
8973 _lt_dar_needs_single_mod=yes ;;
8974 darwin*)
8975 # When targeting Mac OS X 10.4 (darwin 8) or later,
8976 # -single_module is the default and -multi_module is unsupported.
8977 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8978 # target any OS version that needs -single_module.
8979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8980 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8981 _lt_dar_needs_single_mod=yes ;;
8982 esac
8983 ;;
8984 esac
8985 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8986 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8987 else
8988 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8989 fi
8990 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8991 _lt_dsymutil='~$DSYMUTIL $lib || :'
8992 else
8993 _lt_dsymutil=
8994 fi
8995 ;;
8996 esac
8997
8998 # func_munge_path_list VARIABLE PATH
8999 # -----------------------------------
9000 # VARIABLE is name of variable containing _space_ separated list of
9001 # directories to be munged by the contents of PATH, which is string
9002 # having a format:
9003 # "DIR[:DIR]:"
9004 # string "DIR[ DIR]" will be prepended to VARIABLE
9005 # ":DIR[:DIR]"
9006 # string "DIR[ DIR]" will be appended to VARIABLE
9007 # "DIRP[:DIRP]::[DIRA:]DIRA"
9008 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9009 # "DIRA[ DIRA]" will be appended to VARIABLE
9010 # "DIR[:DIR]"
9011 # VARIABLE will be replaced by "DIR[ DIR]"
9012 func_munge_path_list ()
9013 {
9014 case x$2 in
9015 x)
9016 ;;
9017 *:)
9018 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9019 ;;
9020 x:*)
9021 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9022 ;;
9023 *::*)
9024 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9025 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9026 ;;
9027 *)
9028 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9029 ;;
9030 esac
9031 }
9032
9033 ac_header= ac_cache=
9034 for ac_item in $ac_header_c_list
9035 do
9036 if test $ac_cache; then
9037 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9038 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9039 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9040 fi
9041 ac_header= ac_cache=
9042 elif test $ac_header; then
9043 ac_cache=$ac_item
9044 else
9045 ac_header=$ac_item
9046 fi
9047 done
9048
9049
9050
9051
9052
9053
9054
9055
9056 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9057 then :
9058
9059 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9060
9061 fi
9062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9063 "
9064 if test "x$ac_cv_header_dlfcn_h" = xyes
9065 then :
9066 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9067
9068 fi
9069
9070
9071
9072
9073
9074 # Set options
9075
9076
9077
9078 enable_dlopen=no
9079
9080
9081 enable_win32_dll=no
9082
9083
9084 # Check whether --enable-shared was given.
9085 if test ${enable_shared+y}
9086 then :
9087 enableval=$enable_shared; p=${PACKAGE-default}
9088 case $enableval in
9089 yes) enable_shared=yes ;;
9090 no) enable_shared=no ;;
9091 *)
9092 enable_shared=no
9093 # Look at the argument we got. We use all the common list separators.
9094 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9095 for pkg in $enableval; do
9096 IFS=$lt_save_ifs
9097 if test "X$pkg" = "X$p"; then
9098 enable_shared=yes
9099 fi
9100 done
9101 IFS=$lt_save_ifs
9102 ;;
9103 esac
9104 else case e in #(
9105 e) enable_shared=yes ;;
9106 esac
9107 fi
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117 # Check whether --enable-static was given.
9118 if test ${enable_static+y}
9119 then :
9120 enableval=$enable_static; p=${PACKAGE-default}
9121 case $enableval in
9122 yes) enable_static=yes ;;
9123 no) enable_static=no ;;
9124 *)
9125 enable_static=no
9126 # Look at the argument we got. We use all the common list separators.
9127 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9128 for pkg in $enableval; do
9129 IFS=$lt_save_ifs
9130 if test "X$pkg" = "X$p"; then
9131 enable_static=yes
9132 fi
9133 done
9134 IFS=$lt_save_ifs
9135 ;;
9136 esac
9137 else case e in #(
9138 e) enable_static=yes ;;
9139 esac
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 # Check whether --enable-pic was given.
9151 if test ${enable_pic+y}
9152 then :
9153 enableval=$enable_pic; lt_p=${PACKAGE-default}
9154 case $enableval in
9155 yes|no) pic_mode=$enableval ;;
9156 *)
9157 pic_mode=default
9158 # Look at the argument we got. We use all the common list separators.
9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160 for lt_pkg in $enableval; do
9161 IFS=$lt_save_ifs
9162 if test "X$lt_pkg" = "X$lt_p"; then
9163 pic_mode=yes
9164 fi
9165 done
9166 IFS=$lt_save_ifs
9167 ;;
9168 esac
9169 else case e in #(
9170 e) # Check whether --with-pic was given.
9171 if test ${with_pic+y}
9172 then :
9173 withval=$with_pic; lt_p=${PACKAGE-default}
9174 case $withval in
9175 yes|no) pic_mode=$withval ;;
9176 *)
9177 pic_mode=default
9178 # Look at the argument we got. We use all the common list separators.
9179 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9180 for lt_pkg in $withval; do
9181 IFS=$lt_save_ifs
9182 if test "X$lt_pkg" = "X$lt_p"; then
9183 pic_mode=yes
9184 fi
9185 done
9186 IFS=$lt_save_ifs
9187 ;;
9188 esac
9189 else case e in #(
9190 e) pic_mode=default ;;
9191 esac
9192 fi
9193
9194 ;;
9195 esac
9196 fi
9197
9198
9199
9200
9201
9202
9203
9204
9205 # Check whether --enable-fast-install was given.
9206 if test ${enable_fast_install+y}
9207 then :
9208 enableval=$enable_fast_install; p=${PACKAGE-default}
9209 case $enableval in
9210 yes) enable_fast_install=yes ;;
9211 no) enable_fast_install=no ;;
9212 *)
9213 enable_fast_install=no
9214 # Look at the argument we got. We use all the common list separators.
9215 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9216 for pkg in $enableval; do
9217 IFS=$lt_save_ifs
9218 if test "X$pkg" = "X$p"; then
9219 enable_fast_install=yes
9220 fi
9221 done
9222 IFS=$lt_save_ifs
9223 ;;
9224 esac
9225 else case e in #(
9226 e) enable_fast_install=yes ;;
9227 esac
9228 fi
9229
9230
9231
9232
9233
9234
9235
9236
9237 shared_archive_member_spec=
9238 case $host,$enable_shared in
9239 power*-*-aix[5-9]*,yes)
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9241 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9242 # Check whether --enable-aix-soname was given.
9243 if test ${enable_aix_soname+y}
9244 then :
9245 enableval=$enable_aix_soname; case $enableval in
9246 aix|svr4|both)
9247 ;;
9248 *)
9249 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9250 ;;
9251 esac
9252 lt_cv_with_aix_soname=$enable_aix_soname
9253 else case e in #(
9254 e) # Check whether --with-aix-soname was given.
9255 if test ${with_aix_soname+y}
9256 then :
9257 withval=$with_aix_soname; case $withval in
9258 aix|svr4|both)
9259 ;;
9260 *)
9261 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9262 ;;
9263 esac
9264 lt_cv_with_aix_soname=$with_aix_soname
9265 else case e in #(
9266 e) if test ${lt_cv_with_aix_soname+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else case e in #(
9270 e) lt_cv_with_aix_soname=aix ;;
9271 esac
9272 fi
9273 ;;
9274 esac
9275 fi
9276
9277 enable_aix_soname=$lt_cv_with_aix_soname ;;
9278 esac
9279 fi
9280
9281 with_aix_soname=$enable_aix_soname
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9283 printf "%s\n" "$with_aix_soname" >&6; }
9284 if test aix != "$with_aix_soname"; then
9285 # For the AIX way of multilib, we name the shared archive member
9286 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9287 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9288 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9289 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9290 if test 64 = "${OBJECT_MODE-32}"; then
9291 shared_archive_member_spec=shr_64
9292 else
9293 shared_archive_member_spec=shr
9294 fi
9295 fi
9296 ;;
9297 *)
9298 with_aix_soname=aix
9299 ;;
9300 esac
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 # This can be used to rebuild libtool when needed
9312 LIBTOOL_DEPS=$ltmain
9313
9314 # Always use our own libtool.
9315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 test -z "$LN_S" && LN_S="ln -s"
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 if test -n "${ZSH_VERSION+set}"; then
9362 setopt NO_GLOB_SUBST
9363 fi
9364
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9366 printf %s "checking for objdir... " >&6; }
9367 if test ${lt_cv_objdir+y}
9368 then :
9369 printf %s "(cached) " >&6
9370 else case e in #(
9371 e) rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374 lt_cv_objdir=.libs
9375 else
9376 # MS-DOS does not allow filenames that begin with a dot.
9377 lt_cv_objdir=_libs
9378 fi
9379 rmdir .libs 2>/dev/null ;;
9380 esac
9381 fi
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9383 printf "%s\n" "$lt_cv_objdir" >&6; }
9384 objdir=$lt_cv_objdir
9385
9386
9387
9388
9389
9390 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9391
9392
9393
9394
9395 case $host_os in
9396 aix3*)
9397 # AIX sometimes has problems with the GCC collect2 program. For some
9398 # reason, if we set the COLLECT_NAMES environment variable, the problems
9399 # vanish in a puff of smoke.
9400 if test set != "${COLLECT_NAMES+set}"; then
9401 COLLECT_NAMES=
9402 export COLLECT_NAMES
9403 fi
9404 ;;
9405 esac
9406
9407 # Global variables:
9408 ofile=libtool
9409 can_build_shared=yes
9410
9411 # All known linkers require a '.a' archive for static linking (except MSVC and
9412 # ICC, which need '.lib').
9413 libext=a
9414
9415 with_gnu_ld=$lt_cv_prog_gnu_ld
9416
9417 old_CC=$CC
9418 old_CFLAGS=$CFLAGS
9419
9420 # Set sane defaults for various variables
9421 test -z "$CC" && CC=cc
9422 test -z "$LTCC" && LTCC=$CC
9423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9424 test -z "$LD" && LD=ld
9425 test -z "$ac_objext" && ac_objext=o
9426
9427 func_cc_basename $compiler
9428 cc_basename=$func_cc_basename_result
9429
9430
9431 # Only perform the check for file, if the check method requires it
9432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9433 case $deplibs_check_method in
9434 file_magic*)
9435 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9437 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9438 if test ${lt_cv_path_MAGIC_CMD+y}
9439 then :
9440 printf %s "(cached) " >&6
9441 else case e in #(
9442 e) case $MAGIC_CMD in
9443 [\\/*] | ?:[\\/]*)
9444 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9445 ;;
9446 *)
9447 lt_save_MAGIC_CMD=$MAGIC_CMD
9448 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9450 for ac_dir in $ac_dummy; do
9451 IFS=$lt_save_ifs
9452 test -z "$ac_dir" && ac_dir=.
9453 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9454 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9455 if test -n "$file_magic_test_file"; then
9456 case $deplibs_check_method in
9457 "file_magic "*)
9458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9459 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9461 $EGREP "$file_magic_regex" > /dev/null; then
9462 :
9463 else
9464 cat <<_LT_EOF 1>&2
9465
9466 *** Warning: the command libtool uses to detect shared libraries,
9467 *** $file_magic_cmd, produces output that libtool cannot recognize.
9468 *** The result is that libtool may fail to recognize shared libraries
9469 *** as such. This will affect the creation of libtool libraries that
9470 *** depend on shared libraries, but programs linked with such libtool
9471 *** libraries will work regardless of this problem. Nevertheless, you
9472 *** may want to report the problem to your system manager and/or to
9473 *** [email protected]
9474
9475 _LT_EOF
9476 fi ;;
9477 esac
9478 fi
9479 break
9480 fi
9481 done
9482 IFS=$lt_save_ifs
9483 MAGIC_CMD=$lt_save_MAGIC_CMD
9484 ;;
9485 esac ;;
9486 esac
9487 fi
9488
9489 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9490 if test -n "$MAGIC_CMD"; then
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 printf "%s\n" "$MAGIC_CMD" >&6; }
9493 else
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 printf "%s\n" "no" >&6; }
9496 fi
9497
9498
9499
9500
9501
9502 if test -z "$lt_cv_path_MAGIC_CMD"; then
9503 if test -n "$ac_tool_prefix"; then
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9505 printf %s "checking for file... " >&6; }
9506 if test ${lt_cv_path_MAGIC_CMD+y}
9507 then :
9508 printf %s "(cached) " >&6
9509 else case e in #(
9510 e) case $MAGIC_CMD in
9511 [\\/*] | ?:[\\/]*)
9512 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9513 ;;
9514 *)
9515 lt_save_MAGIC_CMD=$MAGIC_CMD
9516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9518 for ac_dir in $ac_dummy; do
9519 IFS=$lt_save_ifs
9520 test -z "$ac_dir" && ac_dir=.
9521 if test -f "$ac_dir/file"; then
9522 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9523 if test -n "$file_magic_test_file"; then
9524 case $deplibs_check_method in
9525 "file_magic "*)
9526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9527 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9529 $EGREP "$file_magic_regex" > /dev/null; then
9530 :
9531 else
9532 cat <<_LT_EOF 1>&2
9533
9534 *** Warning: the command libtool uses to detect shared libraries,
9535 *** $file_magic_cmd, produces output that libtool cannot recognize.
9536 *** The result is that libtool may fail to recognize shared libraries
9537 *** as such. This will affect the creation of libtool libraries that
9538 *** depend on shared libraries, but programs linked with such libtool
9539 *** libraries will work regardless of this problem. Nevertheless, you
9540 *** may want to report the problem to your system manager and/or to
9541 *** [email protected]
9542
9543 _LT_EOF
9544 fi ;;
9545 esac
9546 fi
9547 break
9548 fi
9549 done
9550 IFS=$lt_save_ifs
9551 MAGIC_CMD=$lt_save_MAGIC_CMD
9552 ;;
9553 esac ;;
9554 esac
9555 fi
9556
9557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9558 if test -n "$MAGIC_CMD"; then
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9560 printf "%s\n" "$MAGIC_CMD" >&6; }
9561 else
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 printf "%s\n" "no" >&6; }
9564 fi
9565
9566
9567 else
9568 MAGIC_CMD=:
9569 fi
9570 fi
9571
9572 fi
9573 ;;
9574 esac
9575
9576 # Use C for the default configuration in the libtool script
9577
9578 lt_save_CC=$CC
9579 ac_ext=c
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9584
9585
9586 # Source file extension for C test sources.
9587 ac_ext=c
9588
9589 # Object file extension for compiled C test sources.
9590 objext=o
9591 objext=$objext
9592
9593 # Code to be used in simple compile tests
9594 lt_simple_compile_test_code="int some_variable = 0;"
9595
9596 # Code to be used in simple link tests
9597 lt_simple_link_test_code='int main(void){return(0);}'
9598
9599
9600
9601
9602
9603
9604
9605 # If no C compiler was specified, use CC.
9606 LTCC=${LTCC-"$CC"}
9607
9608 # If no C compiler flags were specified, use CFLAGS.
9609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9610
9611 # Allow CC to be a program name with arguments.
9612 compiler=$CC
9613
9614 # Save the default compiler, since it gets overwritten when the other
9615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9616 compiler_DEFAULT=$CC
9617
9618 # save warnings/boilerplate of simple test code
9619 ac_outfile=conftest.$ac_objext
9620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9622 _lt_compiler_boilerplate=`cat conftest.err`
9623 $RM conftest*
9624
9625 ac_outfile=conftest.$ac_objext
9626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9628 _lt_linker_boilerplate=`cat conftest.err`
9629 $RM -r conftest*
9630
9631
9632 ## CAVEAT EMPTOR:
9633 ## There is no encapsulation within the following macros, do not change
9634 ## the running order or otherwise move them around unless you know exactly
9635 ## what you are doing...
9636 if test -n "$compiler"; then
9637
9638 lt_prog_compiler_no_builtin_flag=
9639
9640 if test yes = "$GCC"; then
9641 case $cc_basename in
9642 nvcc*)
9643 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9644 *)
9645 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9646 esac
9647
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9649 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9650 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9651 then :
9652 printf %s "(cached) " >&6
9653 else case e in #(
9654 e) lt_cv_prog_compiler_rtti_exceptions=no
9655 ac_outfile=conftest.$ac_objext
9656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9657 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9658 # Insert the option either (1) after the last *FLAGS variable, or
9659 # (2) before a word containing "conftest.", or (3) at the end.
9660 # Note that $ac_compile itself does not contain backslashes and begins
9661 # with a dollar sign (not a hyphen), so the echo should work correctly.
9662 # The option is referenced via a variable to avoid confusing sed.
9663 lt_compile=`echo "$ac_compile" | $SED \
9664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9666 -e 's:$: $lt_compiler_flag:'`
9667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9668 (eval "$lt_compile" 2>conftest.err)
9669 ac_status=$?
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 if (exit $ac_status) && test -s "$ac_outfile"; then
9673 # The compiler can only warn and ignore the option if not recognized
9674 # So say no if there are warnings other than the usual output.
9675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9678 lt_cv_prog_compiler_rtti_exceptions=yes
9679 fi
9680 fi
9681 $RM conftest*
9682 ;;
9683 esac
9684 fi
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9686 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9687
9688 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9690 else
9691 :
9692 fi
9693
9694 fi
9695
9696
9697
9698
9699
9700
9701 lt_prog_compiler_wl=
9702 lt_prog_compiler_pic=
9703 lt_prog_compiler_static=
9704
9705
9706 if test yes = "$GCC"; then
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_static='-static'
9709
9710 case $host_os in
9711 aix*)
9712 # All AIX code is PIC.
9713 if test ia64 = "$host_cpu"; then
9714 # AIX 5 now supports IA64 processor
9715 lt_prog_compiler_static='-Bstatic'
9716 fi
9717 lt_prog_compiler_pic='-fPIC'
9718 ;;
9719
9720 amigaos*)
9721 case $host_cpu in
9722 powerpc)
9723 # see comment about AmigaOS4 .so support
9724 lt_prog_compiler_pic='-fPIC'
9725 ;;
9726 m68k)
9727 # FIXME: we need at least 68020 code to build shared libraries, but
9728 # adding the '-m68020' flag to GCC prevents building anything better,
9729 # like '-m68040'.
9730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9731 ;;
9732 esac
9733 ;;
9734
9735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736 # PIC is the default for these OSes.
9737 ;;
9738
9739 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9740 # This hack is so that the source file can tell whether it is being
9741 # built for inclusion in a dll (and should export symbols for example).
9742 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743 # (--disable-auto-import) libraries
9744 lt_prog_compiler_pic='-DDLL_EXPORT'
9745 case $host_os in
9746 os2*)
9747 lt_prog_compiler_static='$wl-static'
9748 ;;
9749 esac
9750 ;;
9751
9752 darwin* | rhapsody*)
9753 # PIC is the default on this platform
9754 # Common symbols not allowed in MH_DYLIB files
9755 lt_prog_compiler_pic='-fno-common'
9756 ;;
9757
9758 haiku*)
9759 # PIC is the default for Haiku.
9760 # The "-static" flag exists, but is broken.
9761 lt_prog_compiler_static=
9762 ;;
9763
9764 hpux*)
9765 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9766 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9767 # sets the default TLS model and affects inlining.
9768 case $host_cpu in
9769 hppa*64*)
9770 # +Z the default
9771 ;;
9772 *)
9773 lt_prog_compiler_pic='-fPIC'
9774 ;;
9775 esac
9776 ;;
9777
9778 interix[3-9]*)
9779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9780 # Instead, we relocate shared libraries at runtime.
9781 ;;
9782
9783 msdosdjgpp*)
9784 # Just because we use GCC doesn't mean we suddenly get shared libraries
9785 # on systems that don't support them.
9786 lt_prog_compiler_can_build_shared=no
9787 enable_shared=no
9788 ;;
9789
9790 *nto* | *qnx*)
9791 # QNX uses GNU C++, but need to define -shared option too, otherwise
9792 # it will coredump.
9793 lt_prog_compiler_pic='-fPIC -shared'
9794 ;;
9795
9796 sysv4*MP*)
9797 if test -d /usr/nec; then
9798 lt_prog_compiler_pic=-Kconform_pic
9799 fi
9800 ;;
9801
9802 *)
9803 lt_prog_compiler_pic='-fPIC'
9804 ;;
9805 esac
9806
9807 case $cc_basename in
9808 nvcc*) # Cuda Compiler Driver 2.2
9809 lt_prog_compiler_wl='-Xlinker '
9810 if test -n "$lt_prog_compiler_pic"; then
9811 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9812 fi
9813 ;;
9814 esac
9815 else
9816 # PORTME Check for flag to pass linker flags through the system compiler.
9817 case $host_os in
9818 aix*)
9819 lt_prog_compiler_wl='-Wl,'
9820 if test ia64 = "$host_cpu"; then
9821 # AIX 5 now supports IA64 processor
9822 lt_prog_compiler_static='-Bstatic'
9823 else
9824 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9825 fi
9826 ;;
9827
9828 darwin* | rhapsody*)
9829 # PIC is the default on this platform
9830 # Common symbols not allowed in MH_DYLIB files
9831 lt_prog_compiler_pic='-fno-common'
9832 case $cc_basename in
9833 nagfor*)
9834 # NAG Fortran compiler
9835 lt_prog_compiler_wl='-Wl,-Wl,,'
9836 lt_prog_compiler_pic='-PIC'
9837 lt_prog_compiler_static='-Bstatic'
9838 ;;
9839 esac
9840 ;;
9841
9842 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9843 # This hack is so that the source file can tell whether it is being
9844 # built for inclusion in a dll (and should export symbols for example).
9845 lt_prog_compiler_pic='-DDLL_EXPORT'
9846 case $host_os in
9847 os2*)
9848 lt_prog_compiler_static='$wl-static'
9849 ;;
9850 esac
9851 ;;
9852
9853 hpux9* | hpux10* | hpux11*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856 # not for PA HP-UX.
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 # +Z the default
9860 ;;
9861 *)
9862 lt_prog_compiler_pic='+Z'
9863 ;;
9864 esac
9865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866 lt_prog_compiler_static='$wl-a ${wl}archive'
9867 ;;
9868
9869 irix5* | irix6* | nonstopux*)
9870 lt_prog_compiler_wl='-Wl,'
9871 # PIC (with -KPIC) is the default.
9872 lt_prog_compiler_static='-non_shared'
9873 ;;
9874
9875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9876 case $cc_basename in
9877 # old Intel for x86_64, which still supported -KPIC.
9878 ecc*)
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-static'
9882 ;;
9883 *flang* | ftn | f18* | f95*)
9884 # Flang compiler.
9885 lt_prog_compiler_wl='-Wl,'
9886 lt_prog_compiler_pic='-fPIC'
9887 lt_prog_compiler_static='-static'
9888 ;;
9889 # flang / f18. f95 an alias for gfortran or flang on Debian
9890 flang* | f18* | f95*)
9891 lt_prog_compiler_wl='-Wl,'
9892 lt_prog_compiler_pic='-fPIC'
9893 lt_prog_compiler_static='-static'
9894 ;;
9895 # icc used to be incompatible with GCC.
9896 # ICC 10 doesn't accept -KPIC any more.
9897 icc* | ifort*)
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-fPIC'
9900 lt_prog_compiler_static='-static'
9901 ;;
9902 # Lahey Fortran 8.1.
9903 lf95*)
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='--shared'
9906 lt_prog_compiler_static='--static'
9907 ;;
9908 nagfor*)
9909 # NAG Fortran compiler
9910 lt_prog_compiler_wl='-Wl,-Wl,,'
9911 lt_prog_compiler_pic='-PIC'
9912 lt_prog_compiler_static='-Bstatic'
9913 ;;
9914 tcc*)
9915 # Fabrice Bellard et al's Tiny C Compiler
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fPIC'
9918 lt_prog_compiler_static='-static'
9919 ;;
9920 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9921 # Portland Group compilers (*not* the Pentium gcc compiler,
9922 # which looks to be a dead project)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fpic'
9925 lt_prog_compiler_static='-Bstatic'
9926 ;;
9927 ccc*)
9928 lt_prog_compiler_wl='-Wl,'
9929 # All Alpha code is PIC.
9930 lt_prog_compiler_static='-non_shared'
9931 ;;
9932 xl* | bgxl* | bgf* | mpixl*)
9933 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9934 lt_prog_compiler_wl='-Wl,'
9935 lt_prog_compiler_pic='-qpic'
9936 lt_prog_compiler_static='-qstaticlink'
9937 ;;
9938 *)
9939 case `$CC -V 2>&1 | $SED 5q` in
9940 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9941 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9942 lt_prog_compiler_pic='-KPIC'
9943 lt_prog_compiler_static='-Bstatic'
9944 lt_prog_compiler_wl=''
9945 ;;
9946 *Sun\ F* | *Sun*Fortran*)
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9949 lt_prog_compiler_wl='-Qoption ld '
9950 ;;
9951 *Sun\ C*)
9952 # Sun C 5.9
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 lt_prog_compiler_wl='-Wl,'
9956 ;;
9957 *Intel*\ [CF]*Compiler*)
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-fPIC'
9960 lt_prog_compiler_static='-static'
9961 ;;
9962 *Portland\ Group*)
9963 lt_prog_compiler_wl='-Wl,'
9964 lt_prog_compiler_pic='-fpic'
9965 lt_prog_compiler_static='-Bstatic'
9966 ;;
9967 esac
9968 ;;
9969 esac
9970 ;;
9971
9972 newsos6)
9973 lt_prog_compiler_pic='-KPIC'
9974 lt_prog_compiler_static='-Bstatic'
9975 ;;
9976
9977 *-mlibc)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-fPIC'
9980 lt_prog_compiler_static='-static'
9981 ;;
9982
9983 *nto* | *qnx*)
9984 # QNX uses GNU C++, but need to define -shared option too, otherwise
9985 # it will coredump.
9986 lt_prog_compiler_pic='-fPIC -shared'
9987 ;;
9988
9989 osf3* | osf4* | osf5*)
9990 lt_prog_compiler_wl='-Wl,'
9991 # All OSF/1 code is PIC.
9992 lt_prog_compiler_static='-non_shared'
9993 ;;
9994
9995 rdos*)
9996 lt_prog_compiler_static='-non_shared'
9997 ;;
9998
9999 serenity*)
10000 ;;
10001
10002 solaris*)
10003 lt_prog_compiler_pic='-KPIC'
10004 lt_prog_compiler_static='-Bstatic'
10005 case $cc_basename in
10006 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10007 lt_prog_compiler_wl='-Qoption ld ';;
10008 *)
10009 lt_prog_compiler_wl='-Wl,';;
10010 esac
10011 ;;
10012
10013 sunos4*)
10014 lt_prog_compiler_wl='-Qoption ld '
10015 lt_prog_compiler_pic='-PIC'
10016 lt_prog_compiler_static='-Bstatic'
10017 ;;
10018
10019 sysv4 | sysv4.2uw2* | sysv4.3*)
10020 lt_prog_compiler_wl='-Wl,'
10021 lt_prog_compiler_pic='-KPIC'
10022 lt_prog_compiler_static='-Bstatic'
10023 ;;
10024
10025 sysv4*MP*)
10026 if test -d /usr/nec; then
10027 lt_prog_compiler_pic='-Kconform_pic'
10028 lt_prog_compiler_static='-Bstatic'
10029 fi
10030 ;;
10031
10032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10033 lt_prog_compiler_wl='-Wl,'
10034 lt_prog_compiler_pic='-KPIC'
10035 lt_prog_compiler_static='-Bstatic'
10036 ;;
10037
10038 unicos*)
10039 lt_prog_compiler_wl='-Wl,'
10040 lt_prog_compiler_can_build_shared=no
10041 ;;
10042
10043 uts4*)
10044 lt_prog_compiler_pic='-pic'
10045 lt_prog_compiler_static='-Bstatic'
10046 ;;
10047
10048 *)
10049 lt_prog_compiler_can_build_shared=no
10050 ;;
10051 esac
10052 fi
10053
10054 case $host_os in
10055 # For platforms that do not support PIC, -DPIC is meaningless:
10056 *djgpp*)
10057 lt_prog_compiler_pic=
10058 ;;
10059 *)
10060 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10061 ;;
10062 esac
10063
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10065 printf %s "checking for $compiler option to produce PIC... " >&6; }
10066 if test ${lt_cv_prog_compiler_pic+y}
10067 then :
10068 printf %s "(cached) " >&6
10069 else case e in #(
10070 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10071 esac
10072 fi
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10074 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10075 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10076
10077 #
10078 # Check to make sure the PIC flag actually works.
10079 #
10080 if test -n "$lt_prog_compiler_pic"; then
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10082 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10083 if test ${lt_cv_prog_compiler_pic_works+y}
10084 then :
10085 printf %s "(cached) " >&6
10086 else case e in #(
10087 e) lt_cv_prog_compiler_pic_works=no
10088 ac_outfile=conftest.$ac_objext
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10090 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10091 # Insert the option either (1) after the last *FLAGS variable, or
10092 # (2) before a word containing "conftest.", or (3) at the end.
10093 # Note that $ac_compile itself does not contain backslashes and begins
10094 # with a dollar sign (not a hyphen), so the echo should work correctly.
10095 # The option is referenced via a variable to avoid confusing sed.
10096 lt_compile=`echo "$ac_compile" | $SED \
10097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10099 -e 's:$: $lt_compiler_flag:'`
10100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10101 (eval "$lt_compile" 2>conftest.err)
10102 ac_status=$?
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 if (exit $ac_status) && test -s "$ac_outfile"; then
10106 # The compiler can only warn and ignore the option if not recognized
10107 # So say no if there are warnings other than the usual output.
10108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_pic_works=yes
10112 fi
10113 fi
10114 $RM conftest*
10115 ;;
10116 esac
10117 fi
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10119 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10120
10121 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10122 case $lt_prog_compiler_pic in
10123 "" | " "*) ;;
10124 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10125 esac
10126 else
10127 lt_prog_compiler_pic=
10128 lt_prog_compiler_can_build_shared=no
10129 fi
10130
10131 fi
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143 #
10144 # Check to make sure the static flag actually works.
10145 #
10146 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10148 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10149 if test ${lt_cv_prog_compiler_static_works+y}
10150 then :
10151 printf %s "(cached) " >&6
10152 else case e in #(
10153 e) lt_cv_prog_compiler_static_works=no
10154 save_LDFLAGS=$LDFLAGS
10155 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10156 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10157 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10158 # The linker can only warn and ignore the option if not recognized
10159 # So say no if there are warnings
10160 if test -s conftest.err; then
10161 # Append any errors to the config.log.
10162 cat conftest.err 1>&5
10163 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10165 if diff conftest.exp conftest.er2 >/dev/null; then
10166 lt_cv_prog_compiler_static_works=yes
10167 fi
10168 else
10169 lt_cv_prog_compiler_static_works=yes
10170 fi
10171 fi
10172 $RM -r conftest*
10173 LDFLAGS=$save_LDFLAGS
10174 ;;
10175 esac
10176 fi
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10178 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10179
10180 if test yes = "$lt_cv_prog_compiler_static_works"; then
10181 :
10182 else
10183 lt_prog_compiler_static=
10184 fi
10185
10186
10187
10188
10189
10190
10191
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10193 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10194 if test ${lt_cv_prog_compiler_c_o+y}
10195 then :
10196 printf %s "(cached) " >&6
10197 else case e in #(
10198 e) lt_cv_prog_compiler_c_o=no
10199 $RM -r conftest 2>/dev/null
10200 mkdir conftest
10201 cd conftest
10202 mkdir out
10203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10204
10205 lt_compiler_flag="-o out/conftest2.$ac_objext"
10206 # Insert the option either (1) after the last *FLAGS variable, or
10207 # (2) before a word containing "conftest.", or (3) at the end.
10208 # Note that $ac_compile itself does not contain backslashes and begins
10209 # with a dollar sign (not a hyphen), so the echo should work correctly.
10210 lt_compile=`echo "$ac_compile" | $SED \
10211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10213 -e 's:$: $lt_compiler_flag:'`
10214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10215 (eval "$lt_compile" 2>out/conftest.err)
10216 ac_status=$?
10217 cat out/conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10220 then
10221 # The compiler can only warn and ignore the option if not recognized
10222 # So say no if there are warnings
10223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10226 lt_cv_prog_compiler_c_o=yes
10227 fi
10228 fi
10229 chmod u+w . 2>&5
10230 $RM conftest*
10231 # SGI C++ compiler will create directory out/ii_files/ for
10232 # template instantiation
10233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10234 $RM out/* && rmdir out
10235 cd ..
10236 $RM -r conftest
10237 $RM conftest*
10238 ;;
10239 esac
10240 fi
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10242 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10243
10244
10245
10246
10247
10248
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10250 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10251 if test ${lt_cv_prog_compiler_c_o+y}
10252 then :
10253 printf %s "(cached) " >&6
10254 else case e in #(
10255 e) lt_cv_prog_compiler_c_o=no
10256 $RM -r conftest 2>/dev/null
10257 mkdir conftest
10258 cd conftest
10259 mkdir out
10260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10261
10262 lt_compiler_flag="-o out/conftest2.$ac_objext"
10263 # Insert the option either (1) after the last *FLAGS variable, or
10264 # (2) before a word containing "conftest.", or (3) at the end.
10265 # Note that $ac_compile itself does not contain backslashes and begins
10266 # with a dollar sign (not a hyphen), so the echo should work correctly.
10267 lt_compile=`echo "$ac_compile" | $SED \
10268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10270 -e 's:$: $lt_compiler_flag:'`
10271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10272 (eval "$lt_compile" 2>out/conftest.err)
10273 ac_status=$?
10274 cat out/conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10277 then
10278 # The compiler can only warn and ignore the option if not recognized
10279 # So say no if there are warnings
10280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10283 lt_cv_prog_compiler_c_o=yes
10284 fi
10285 fi
10286 chmod u+w . 2>&5
10287 $RM conftest*
10288 # SGI C++ compiler will create directory out/ii_files/ for
10289 # template instantiation
10290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10291 $RM out/* && rmdir out
10292 cd ..
10293 $RM -r conftest
10294 $RM conftest*
10295 ;;
10296 esac
10297 fi
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10299 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10300
10301
10302
10303
10304 hard_links=nottested
10305 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10306 # do not overwrite the value of need_locks provided by the user
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10308 printf %s "checking if we can lock with hard links... " >&6; }
10309 hard_links=yes
10310 $RM conftest*
10311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10312 touch conftest.a
10313 ln conftest.a conftest.b 2>&5 || hard_links=no
10314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10316 printf "%s\n" "$hard_links" >&6; }
10317 if test no = "$hard_links"; then
10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10319 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10320 need_locks=warn
10321 fi
10322 else
10323 need_locks=no
10324 fi
10325
10326
10327
10328
10329
10330
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10332 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10333
10334 runpath_var=
10335 allow_undefined_flag=
10336 always_export_symbols=no
10337 archive_cmds=
10338 archive_expsym_cmds=
10339 compiler_needs_object=no
10340 enable_shared_with_static_runtimes=no
10341 export_dynamic_flag_spec=
10342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10343 hardcode_automatic=no
10344 hardcode_direct=no
10345 hardcode_direct_absolute=no
10346 hardcode_libdir_flag_spec=
10347 hardcode_libdir_separator=
10348 hardcode_minus_L=no
10349 hardcode_shlibpath_var=unsupported
10350 inherit_rpath=no
10351 link_all_deplibs=unknown
10352 module_cmds=
10353 module_expsym_cmds=
10354 old_archive_from_new_cmds=
10355 old_archive_from_expsyms_cmds=
10356 thread_safe_flag_spec=
10357 whole_archive_flag_spec=
10358 # include_expsyms should be a list of space-separated symbols to be *always*
10359 # included in the symbol list
10360 include_expsyms=
10361 # exclude_expsyms can be an extended regexp of symbols to exclude
10362 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10363 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10364 # as well as any symbol that contains 'd'.
10365 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10367 # platforms (ab)use it in PIC code, but their linkers get confused if
10368 # the symbol is explicitly referenced. Since portable code cannot
10369 # rely on this symbol name, it's probably fine to never include it in
10370 # preloaded symbol tables.
10371 # Exclude shared library initialization/finalization symbols.
10372 extract_expsyms_cmds=
10373
10374 case $host_os in
10375 cygwin* | mingw* | windows* | pw32* | cegcc*)
10376 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10377 # When not using gcc, we currently assume that we are using
10378 # Microsoft Visual C++ or Intel C++ Compiler.
10379 if test yes != "$GCC"; then
10380 with_gnu_ld=no
10381 fi
10382 ;;
10383 interix*)
10384 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10385 with_gnu_ld=yes
10386 ;;
10387 linux* | k*bsd*-gnu | gnu*)
10388 link_all_deplibs=no
10389 ;;
10390 esac
10391
10392 ld_shlibs=yes
10393
10394 # On some targets, GNU ld is compatible enough with the native linker
10395 # that we're better off using the native interface for both.
10396 lt_use_gnu_ld_interface=no
10397 if test yes = "$with_gnu_ld"; then
10398 case $host_os in
10399 aix*)
10400 # The AIX port of GNU ld has always aspired to compatibility
10401 # with the native linker. However, as the warning in the GNU ld
10402 # block says, versions before 2.19.5* couldn't really create working
10403 # shared libraries, regardless of the interface used.
10404 case `$LD -v 2>&1` in
10405 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10406 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10407 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10408 *)
10409 lt_use_gnu_ld_interface=yes
10410 ;;
10411 esac
10412 ;;
10413 *)
10414 lt_use_gnu_ld_interface=yes
10415 ;;
10416 esac
10417 fi
10418
10419 if test yes = "$lt_use_gnu_ld_interface"; then
10420 # If archive_cmds runs LD, not CC, wlarc should be empty
10421 wlarc='$wl'
10422
10423 # Set some defaults for GNU ld with shared library support. These
10424 # are reset later if shared libraries are not supported. Putting them
10425 # here allows them to be overridden if necessary.
10426 runpath_var=LD_RUN_PATH
10427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10428 export_dynamic_flag_spec='$wl--export-dynamic'
10429 # ancient GNU ld didn't support --whole-archive et. al.
10430 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10431 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10432 else
10433 whole_archive_flag_spec=
10434 fi
10435 supports_anon_versioning=no
10436 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10437 *GNU\ gold*) supports_anon_versioning=yes ;;
10438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10441 *\ 2.11.*) ;; # other 2.11 versions
10442 *) supports_anon_versioning=yes ;;
10443 esac
10444
10445 # See if GNU ld supports shared libraries.
10446 case $host_os in
10447 aix[3-9]*)
10448 # On AIX/PPC, the GNU linker is very broken
10449 if test ia64 != "$host_cpu"; then
10450 ld_shlibs=no
10451 cat <<_LT_EOF 1>&2
10452
10453 *** Warning: the GNU linker, at least up to release 2.19, is reported
10454 *** to be unable to reliably create shared libraries on AIX.
10455 *** Therefore, libtool is disabling shared libraries support. If you
10456 *** really care for shared libraries, you may want to install binutils
10457 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10458 *** You will then need to restart the configuration process.
10459
10460 _LT_EOF
10461 fi
10462 ;;
10463
10464 amigaos*)
10465 case $host_cpu in
10466 powerpc)
10467 # see comment about AmigaOS4 .so support
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10469 archive_expsym_cmds=''
10470 ;;
10471 m68k)
10472 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)'
10473 hardcode_libdir_flag_spec='-L$libdir'
10474 hardcode_minus_L=yes
10475 ;;
10476 esac
10477 ;;
10478
10479 beos*)
10480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481 allow_undefined_flag=unsupported
10482 # Joseph Beckenbach <[email protected]> says some releases of gcc
10483 # support --undefined. This deserves some investigation. FIXME
10484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10485 else
10486 ld_shlibs=no
10487 fi
10488 ;;
10489
10490 cygwin* | mingw* | windows* | pw32* | cegcc*)
10491 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10492 # as there is no search path for DLLs.
10493 hardcode_libdir_flag_spec='-L$libdir'
10494 export_dynamic_flag_spec='$wl--export-all-symbols'
10495 allow_undefined_flag=unsupported
10496 always_export_symbols=no
10497 enable_shared_with_static_runtimes=yes
10498 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'
10499 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10500 file_list_spec='@'
10501
10502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10504 # If the export-symbols file already is a .def file, use it as
10505 # is; otherwise, prepend EXPORTS...
10506 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10507 cp $export_symbols $output_objdir/$soname.def;
10508 else
10509 echo EXPORTS > $output_objdir/$soname.def;
10510 cat $export_symbols >> $output_objdir/$soname.def;
10511 fi~
10512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10513 else
10514 ld_shlibs=no
10515 fi
10516 ;;
10517
10518 haiku*)
10519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10520 link_all_deplibs=no
10521 ;;
10522
10523 os2*)
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 hardcode_minus_L=yes
10526 allow_undefined_flag=unsupported
10527 shrext_cmds=.dll
10528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10531 $ECHO EXPORTS >> $output_objdir/$libname.def~
10532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10534 emximp -o $lib $output_objdir/$libname.def'
10535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10538 $ECHO EXPORTS >> $output_objdir/$libname.def~
10539 prefix_cmds="$SED"~
10540 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10541 prefix_cmds="$prefix_cmds -e 1d";
10542 fi~
10543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10546 emximp -o $lib $output_objdir/$libname.def'
10547 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10548 enable_shared_with_static_runtimes=yes
10549 file_list_spec='@'
10550 ;;
10551
10552 interix[3-9]*)
10553 hardcode_direct=no
10554 hardcode_shlibpath_var=no
10555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556 export_dynamic_flag_spec='$wl-E'
10557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10558 # Instead, shared libraries are loaded at an image base (0x10000000 by
10559 # default) and relocated if they conflict, which is a slow very memory
10560 # consuming and fragmenting process. To avoid this, we pick a random,
10561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10564 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'
10565 ;;
10566
10567 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10568 tmp_diet=no
10569 if test linux-dietlibc = "$host_os"; then
10570 case $cc_basename in
10571 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10572 esac
10573 fi
10574 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10575 && test no = "$tmp_diet"
10576 then
10577 tmp_addflag=' $pic_flag'
10578 tmp_sharedflag='-shared'
10579 case $cc_basename,$host_cpu in
10580 pgcc*) # Portland Group C compiler
10581 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'
10582 tmp_addflag=' $pic_flag'
10583 ;;
10584 pgf77* | pgf90* | pgf95* | pgfortran*)
10585 # Portland Group f77 and f90 compilers
10586 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'
10587 tmp_addflag=' $pic_flag -Mnomain' ;;
10588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10589 tmp_addflag=' -i_dynamic' ;;
10590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10591 tmp_addflag=' -i_dynamic -nofor_main' ;;
10592 ifc* | ifort*) # Intel Fortran compiler
10593 tmp_addflag=' -nofor_main' ;;
10594 lf95*) # Lahey Fortran 8.1
10595 whole_archive_flag_spec=
10596 tmp_sharedflag='--shared' ;;
10597 nagfor*) # NAGFOR 5.3
10598 tmp_sharedflag='-Wl,-shared' ;;
10599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10600 tmp_sharedflag='-qmkshrobj'
10601 tmp_addflag= ;;
10602 nvcc*) # Cuda Compiler Driver 2.2
10603 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'
10604 compiler_needs_object=yes
10605 ;;
10606 esac
10607 case `$CC -V 2>&1 | $SED 5q` in
10608 *Sun\ C*) # Sun C 5.9
10609 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'
10610 compiler_needs_object=yes
10611 tmp_sharedflag='-G' ;;
10612 *Sun\ F*) # Sun Fortran 8.3
10613 tmp_sharedflag='-G' ;;
10614 esac
10615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10616
10617 if test yes = "$supports_anon_versioning"; then
10618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10619 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10620 echo "local: *; };" >> $output_objdir/$libname.ver~
10621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10622 fi
10623
10624 case $cc_basename in
10625 tcc*)
10626 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10627 export_dynamic_flag_spec='-rdynamic'
10628 ;;
10629 xlf* | bgf* | bgxlf* | mpixlf*)
10630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10634 if test yes = "$supports_anon_versioning"; then
10635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10636 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10637 echo "local: *; };" >> $output_objdir/$libname.ver~
10638 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10639 fi
10640 ;;
10641 esac
10642 else
10643 ld_shlibs=no
10644 fi
10645 ;;
10646
10647 *-mlibc)
10648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10649 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10650 ;;
10651
10652 netbsd* | netbsdelf*-gnu)
10653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10655 wlarc=
10656 else
10657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10659 fi
10660 ;;
10661
10662 solaris*)
10663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10664 ld_shlibs=no
10665 cat <<_LT_EOF 1>&2
10666
10667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10668 *** create shared libraries on Solaris systems. Therefore, libtool
10669 *** is disabling shared libraries support. We urge you to upgrade GNU
10670 *** binutils to release 2.9.1 or newer. Another option is to modify
10671 *** your PATH or compiler configuration so that the native linker is
10672 *** used, and then restart.
10673
10674 _LT_EOF
10675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10678 else
10679 ld_shlibs=no
10680 fi
10681 ;;
10682
10683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10684 case `$LD -v 2>&1` in
10685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10686 ld_shlibs=no
10687 cat <<_LT_EOF 1>&2
10688
10689 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10690 *** reliably create shared libraries on SCO systems. Therefore, libtool
10691 *** is disabling shared libraries support. We urge you to upgrade GNU
10692 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10693 *** your PATH or compiler configuration so that the native linker is
10694 *** used, and then restart.
10695
10696 _LT_EOF
10697 ;;
10698 *)
10699 # For security reasons, it is highly recommended that you always
10700 # use absolute paths for naming shared libraries, and exclude the
10701 # DT_RUNPATH tag from executables and libraries. But doing so
10702 # requires that you compile everything twice, which is a pain.
10703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10707 else
10708 ld_shlibs=no
10709 fi
10710 ;;
10711 esac
10712 ;;
10713
10714 sunos4*)
10715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10716 wlarc=
10717 hardcode_direct=yes
10718 hardcode_shlibpath_var=no
10719 ;;
10720
10721 *)
10722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10725 else
10726 ld_shlibs=no
10727 fi
10728 ;;
10729 esac
10730
10731 if test no = "$ld_shlibs"; then
10732 runpath_var=
10733 hardcode_libdir_flag_spec=
10734 export_dynamic_flag_spec=
10735 whole_archive_flag_spec=
10736 fi
10737 else
10738 # PORTME fill in a description of your system's linker (not GNU ld)
10739 case $host_os in
10740 aix3*)
10741 allow_undefined_flag=unsupported
10742 always_export_symbols=yes
10743 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'
10744 # Note: this linker hardcodes the directories in LIBPATH if there
10745 # are no directories specified by -L.
10746 hardcode_minus_L=yes
10747 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10748 # Neither direct hardcoding nor static linking is supported with a
10749 # broken collect2.
10750 hardcode_direct=unsupported
10751 fi
10752 ;;
10753
10754 aix[4-9]*)
10755 if test ia64 = "$host_cpu"; then
10756 # On IA64, the linker does run time linking by default, so we don't
10757 # have to do anything special.
10758 aix_use_runtimelinking=no
10759 exp_sym_flag='-Bexport'
10760 no_entry_flag=
10761 else
10762 # If we're using GNU nm, then we don't want the "-C" option.
10763 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10764 # Without the "-l" option, or with the "-B" option, AIX nm treats
10765 # weak defined symbols like other global defined symbols, whereas
10766 # GNU nm marks them as "W".
10767 # While the 'weak' keyword is ignored in the Export File, we need
10768 # it in the Import File for the 'aix-soname' feature, so we have
10769 # to replace the "-B" option with "-P" for AIX nm.
10770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10771 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'
10772 else
10773 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'
10774 fi
10775 aix_use_runtimelinking=no
10776
10777 # Test if we are trying to use run time linking or normal
10778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10779 # have runtime linking enabled, and use it for executables.
10780 # For shared libraries, we enable/disable runtime linking
10781 # depending on the kind of the shared library created -
10782 # when "with_aix_soname,aix_use_runtimelinking" is:
10783 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10784 # "aix,yes" lib.so shared, rtl:yes, for executables
10785 # lib.a static archive
10786 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10787 # lib.a(lib.so.V) shared, rtl:no, for executables
10788 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10789 # lib.a(lib.so.V) shared, rtl:no
10790 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10791 # lib.a static archive
10792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10793 for ld_flag in $LDFLAGS; do
10794 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10795 aix_use_runtimelinking=yes
10796 break
10797 fi
10798 done
10799 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10800 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10801 # so we don't have lib.a shared libs to link our executables.
10802 # We have to force runtime linking in this case.
10803 aix_use_runtimelinking=yes
10804 LDFLAGS="$LDFLAGS -Wl,-brtl"
10805 fi
10806 ;;
10807 esac
10808
10809 exp_sym_flag='-bexport'
10810 no_entry_flag='-bnoentry'
10811 fi
10812
10813 # When large executables or shared objects are built, AIX ld can
10814 # have problems creating the table of contents. If linking a library
10815 # or program results in "error TOC overflow" add -mminimal-toc to
10816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10818
10819 archive_cmds=''
10820 hardcode_direct=yes
10821 hardcode_direct_absolute=yes
10822 hardcode_libdir_separator=':'
10823 link_all_deplibs=yes
10824 file_list_spec='$wl-f,'
10825 case $with_aix_soname,$aix_use_runtimelinking in
10826 aix,*) ;; # traditional, no import file
10827 svr4,* | *,yes) # use import file
10828 # The Import File defines what to hardcode.
10829 hardcode_direct=no
10830 hardcode_direct_absolute=no
10831 ;;
10832 esac
10833
10834 if test yes = "$GCC"; then
10835 case $host_os in aix4.[012]|aix4.[012].*)
10836 # We only want to do this on AIX 4.2 and lower, the check
10837 # below for broken collect2 doesn't work under 4.3+
10838 collect2name=`$CC -print-prog-name=collect2`
10839 if test -f "$collect2name" &&
10840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10841 then
10842 # We have reworked collect2
10843 :
10844 else
10845 # We have old collect2
10846 hardcode_direct=unsupported
10847 # It fails to find uninstalled libraries when the uninstalled
10848 # path is not listed in the libpath. Setting hardcode_minus_L
10849 # to unsupported forces relinking
10850 hardcode_minus_L=yes
10851 hardcode_libdir_flag_spec='-L$libdir'
10852 hardcode_libdir_separator=
10853 fi
10854 ;;
10855 esac
10856 shared_flag='-shared'
10857 if test yes = "$aix_use_runtimelinking"; then
10858 shared_flag="$shared_flag "'$wl-G'
10859 fi
10860 # Need to ensure runtime linking is disabled for the traditional
10861 # shared library, or the linker may eventually find shared libraries
10862 # /with/ Import File - we do not want to mix them.
10863 shared_flag_aix='-shared'
10864 shared_flag_svr4='-shared $wl-G'
10865 else
10866 # not using gcc
10867 if test ia64 = "$host_cpu"; then
10868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10869 # chokes on -Wl,-G. The following line is correct:
10870 shared_flag='-G'
10871 else
10872 if test yes = "$aix_use_runtimelinking"; then
10873 shared_flag='$wl-G'
10874 else
10875 shared_flag='$wl-bM:SRE'
10876 fi
10877 shared_flag_aix='$wl-bM:SRE'
10878 shared_flag_svr4='$wl-G'
10879 fi
10880 fi
10881
10882 export_dynamic_flag_spec='$wl-bexpall'
10883 # It seems that -bexpall does not export symbols beginning with
10884 # underscore (_), so it is better to generate a list of symbols to export.
10885 always_export_symbols=yes
10886 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10887 # Warning - without using the other runtime loading flags (-brtl),
10888 # -berok will link without error, but may produce a broken library.
10889 allow_undefined_flag='-berok'
10890 # Determine the default libpath from the value encoded in an
10891 # empty executable.
10892 if test set = "${lt_cv_aix_libpath+set}"; then
10893 aix_libpath=$lt_cv_aix_libpath
10894 else
10895 if test ${lt_cv_aix_libpath_+y}
10896 then :
10897 printf %s "(cached) " >&6
10898 else case e in #(
10899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901
10902 int
10903 main (void)
10904 {
10905
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"
10911 then :
10912
10913 lt_aix_libpath_sed='
10914 /Import File Strings/,/^$/ {
10915 /^0/ {
10916 s/^0 *\([^ ]*\) *$/\1/
10917 p
10918 }
10919 }'
10920 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10921 # Check for a 64-bit object if we didn't find anything.
10922 if test -z "$lt_cv_aix_libpath_"; then
10923 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10924 fi
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10927 conftest$ac_exeext conftest.$ac_ext
10928 if test -z "$lt_cv_aix_libpath_"; then
10929 lt_cv_aix_libpath_=/usr/lib:/lib
10930 fi
10931 ;;
10932 esac
10933 fi
10934
10935 aix_libpath=$lt_cv_aix_libpath_
10936 fi
10937
10938 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10939 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
10940 else
10941 if test ia64 = "$host_cpu"; then
10942 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10943 allow_undefined_flag="-z nodefs"
10944 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"
10945 else
10946 # Determine the default libpath from the value encoded in an
10947 # empty executable.
10948 if test set = "${lt_cv_aix_libpath+set}"; then
10949 aix_libpath=$lt_cv_aix_libpath
10950 else
10951 if test ${lt_cv_aix_libpath_+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else case e in #(
10955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 int
10959 main (void)
10960 {
10961
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"
10967 then :
10968
10969 lt_aix_libpath_sed='
10970 /Import File Strings/,/^$/ {
10971 /^0/ {
10972 s/^0 *\([^ ]*\) *$/\1/
10973 p
10974 }
10975 }'
10976 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10977 # Check for a 64-bit object if we didn't find anything.
10978 if test -z "$lt_cv_aix_libpath_"; then
10979 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10980 fi
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10983 conftest$ac_exeext conftest.$ac_ext
10984 if test -z "$lt_cv_aix_libpath_"; then
10985 lt_cv_aix_libpath_=/usr/lib:/lib
10986 fi
10987 ;;
10988 esac
10989 fi
10990
10991 aix_libpath=$lt_cv_aix_libpath_
10992 fi
10993
10994 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10995 # Warning - without using the other run time loading flags,
10996 # -berok will link without error, but may produce a broken library.
10997 no_undefined_flag=' $wl-bernotok'
10998 allow_undefined_flag=' $wl-berok'
10999 if test yes = "$with_gnu_ld"; then
11000 # We only use this code for GNU lds that support --whole-archive.
11001 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11002 else
11003 # Exported symbols can be pulled into shared objects from archives
11004 whole_archive_flag_spec='$convenience'
11005 fi
11006 archive_cmds_need_lc=yes
11007 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11008 # -brtl affects multiple linker settings, -berok does not and is overridden later
11009 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11010 if test svr4 != "$with_aix_soname"; then
11011 # This is similar to how AIX traditionally builds its shared libraries.
11012 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'
11013 fi
11014 if test aix != "$with_aix_soname"; then
11015 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'
11016 else
11017 # used by -dlpreopen to get the symbols
11018 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11019 fi
11020 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11021 fi
11022 fi
11023 ;;
11024
11025 amigaos*)
11026 case $host_cpu in
11027 powerpc)
11028 # see comment about AmigaOS4 .so support
11029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11030 archive_expsym_cmds=''
11031 ;;
11032 m68k)
11033 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)'
11034 hardcode_libdir_flag_spec='-L$libdir'
11035 hardcode_minus_L=yes
11036 ;;
11037 esac
11038 ;;
11039
11040 bsdi[45]*)
11041 export_dynamic_flag_spec=-rdynamic
11042 ;;
11043
11044 cygwin* | mingw* | windows* | pw32* | cegcc*)
11045 # When not using gcc, we currently assume that we are using
11046 # Microsoft Visual C++ or Intel C++ Compiler.
11047 # hardcode_libdir_flag_spec is actually meaningless, as there is
11048 # no search path for DLLs.
11049 case $cc_basename in
11050 cl* | icl*)
11051 # Native MSVC or ICC
11052 hardcode_libdir_flag_spec=' '
11053 allow_undefined_flag=unsupported
11054 always_export_symbols=yes
11055 file_list_spec='@'
11056 # Tell ltmain to make .lib files, not .a files.
11057 libext=lib
11058 # Tell ltmain to make .dll files, not .so files.
11059 shrext_cmds=.dll
11060 # FIXME: Setting linknames here is a bad hack.
11061 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11062 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11063 cp "$export_symbols" "$output_objdir/$soname.def";
11064 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11065 else
11066 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11067 fi~
11068 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11069 linknames='
11070 # The linker will not automatically build a static lib if we build a DLL.
11071 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11072 enable_shared_with_static_runtimes=yes
11073 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11075 # Don't use ranlib
11076 old_postinstall_cmds='chmod 644 $oldlib'
11077 postlink_cmds='lt_outputfile="@OUTPUT@"~
11078 lt_tool_outputfile="@TOOL_OUTPUT@"~
11079 case $lt_outputfile in
11080 *.exe|*.EXE) ;;
11081 *)
11082 lt_outputfile=$lt_outputfile.exe
11083 lt_tool_outputfile=$lt_tool_outputfile.exe
11084 ;;
11085 esac~
11086 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11087 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11088 $RM "$lt_outputfile.manifest";
11089 fi'
11090 ;;
11091 *)
11092 # Assume MSVC and ICC wrapper
11093 hardcode_libdir_flag_spec=' '
11094 allow_undefined_flag=unsupported
11095 # Tell ltmain to make .lib files, not .a files.
11096 libext=lib
11097 # Tell ltmain to make .dll files, not .so files.
11098 shrext_cmds=.dll
11099 # FIXME: Setting linknames here is a bad hack.
11100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11101 # The linker will automatically build a .lib file if we build a DLL.
11102 old_archive_from_new_cmds='true'
11103 # FIXME: Should let the user specify the lib program.
11104 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11105 enable_shared_with_static_runtimes=yes
11106 ;;
11107 esac
11108 ;;
11109
11110 darwin* | rhapsody*)
11111
11112
11113 archive_cmds_need_lc=no
11114 hardcode_direct=no
11115 hardcode_automatic=yes
11116 hardcode_shlibpath_var=unsupported
11117 if test yes = "$lt_cv_ld_force_load"; then
11118 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\"`'
11119
11120 else
11121 whole_archive_flag_spec=''
11122 fi
11123 link_all_deplibs=yes
11124 allow_undefined_flag=$_lt_dar_allow_undefined
11125 case $cc_basename in
11126 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11127 *) _lt_dar_can_shared=$GCC ;;
11128 esac
11129 if test yes = "$_lt_dar_can_shared"; then
11130 output_verbose_link_cmd=func_echo_all
11131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11133 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"
11134 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"
11135
11136 else
11137 ld_shlibs=no
11138 fi
11139
11140 ;;
11141
11142 dgux*)
11143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11144 hardcode_libdir_flag_spec='-L$libdir'
11145 hardcode_shlibpath_var=no
11146 ;;
11147
11148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11149 # support. Future versions do this automatically, but an explicit c++rt0.o
11150 # does not break anything, and helps significantly (at the cost of a little
11151 # extra space).
11152 freebsd2.2*)
11153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11154 hardcode_libdir_flag_spec='-R$libdir'
11155 hardcode_direct=yes
11156 hardcode_shlibpath_var=no
11157 ;;
11158
11159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11160 freebsd2.*)
11161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11162 hardcode_direct=yes
11163 hardcode_minus_L=yes
11164 hardcode_shlibpath_var=no
11165 ;;
11166
11167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11168 freebsd* | dragonfly* | midnightbsd*)
11169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11170 hardcode_libdir_flag_spec='-R$libdir'
11171 hardcode_direct=yes
11172 hardcode_shlibpath_var=no
11173 ;;
11174
11175 hpux9*)
11176 if test yes = "$GCC"; then
11177 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'
11178 else
11179 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'
11180 fi
11181 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11182 hardcode_libdir_separator=:
11183 hardcode_direct=yes
11184
11185 # hardcode_minus_L: Not really in the search PATH,
11186 # but as the default location of the library.
11187 hardcode_minus_L=yes
11188 export_dynamic_flag_spec='$wl-E'
11189 ;;
11190
11191 hpux10*)
11192 if test yes,no = "$GCC,$with_gnu_ld"; then
11193 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11194 else
11195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11196 fi
11197 if test no = "$with_gnu_ld"; then
11198 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11199 hardcode_libdir_separator=:
11200 hardcode_direct=yes
11201 hardcode_direct_absolute=yes
11202 export_dynamic_flag_spec='$wl-E'
11203 # hardcode_minus_L: Not really in the search PATH,
11204 # but as the default location of the library.
11205 hardcode_minus_L=yes
11206 fi
11207 ;;
11208
11209 hpux11*)
11210 if test yes,no = "$GCC,$with_gnu_ld"; then
11211 case $host_cpu in
11212 hppa*64*)
11213 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214 ;;
11215 ia64*)
11216 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11217 ;;
11218 *)
11219 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11220 ;;
11221 esac
11222 else
11223 case $host_cpu in
11224 hppa*64*)
11225 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 ;;
11227 ia64*)
11228 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11229 ;;
11230 *)
11231
11232 # Older versions of the 11.00 compiler do not understand -b yet
11233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11235 printf %s "checking if $CC understands -b... " >&6; }
11236 if test ${lt_cv_prog_compiler__b+y}
11237 then :
11238 printf %s "(cached) " >&6
11239 else case e in #(
11240 e) lt_cv_prog_compiler__b=no
11241 save_LDFLAGS=$LDFLAGS
11242 LDFLAGS="$LDFLAGS -b"
11243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11245 # The linker can only warn and ignore the option if not recognized
11246 # So say no if there are warnings
11247 if test -s conftest.err; then
11248 # Append any errors to the config.log.
11249 cat conftest.err 1>&5
11250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11252 if diff conftest.exp conftest.er2 >/dev/null; then
11253 lt_cv_prog_compiler__b=yes
11254 fi
11255 else
11256 lt_cv_prog_compiler__b=yes
11257 fi
11258 fi
11259 $RM -r conftest*
11260 LDFLAGS=$save_LDFLAGS
11261 ;;
11262 esac
11263 fi
11264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11265 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11266
11267 if test yes = "$lt_cv_prog_compiler__b"; then
11268 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11269 else
11270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11271 fi
11272
11273 ;;
11274 esac
11275 fi
11276 if test no = "$with_gnu_ld"; then
11277 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11278 hardcode_libdir_separator=:
11279
11280 case $host_cpu in
11281 hppa*64*|ia64*)
11282 hardcode_direct=no
11283 hardcode_shlibpath_var=no
11284 ;;
11285 *)
11286 hardcode_direct=yes
11287 hardcode_direct_absolute=yes
11288 export_dynamic_flag_spec='$wl-E'
11289
11290 # hardcode_minus_L: Not really in the search PATH,
11291 # but as the default location of the library.
11292 hardcode_minus_L=yes
11293 ;;
11294 esac
11295 fi
11296 ;;
11297
11298 irix5* | irix6* | nonstopux*)
11299 if test yes = "$GCC"; then
11300 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'
11301 # Try to use the -exported_symbol ld option, if it does not
11302 # work, assume that -exports_file does not work either and
11303 # implicitly export all symbols.
11304 # This should be the same for all languages, so no per-tag cache variable.
11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11306 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11307 if test ${lt_cv_irix_exported_symbol+y}
11308 then :
11309 printf %s "(cached) " >&6
11310 else case e in #(
11311 e) save_LDFLAGS=$LDFLAGS
11312 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 int foo (void) { return 0; }
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"
11318 then :
11319 lt_cv_irix_exported_symbol=yes
11320 else case e in #(
11321 e) lt_cv_irix_exported_symbol=no ;;
11322 esac
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11325 conftest$ac_exeext conftest.$ac_ext
11326 LDFLAGS=$save_LDFLAGS ;;
11327 esac
11328 fi
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11330 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11331 if test yes = "$lt_cv_irix_exported_symbol"; then
11332 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'
11333 fi
11334 link_all_deplibs=no
11335 else
11336 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'
11337 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'
11338 fi
11339 archive_cmds_need_lc='no'
11340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11341 hardcode_libdir_separator=:
11342 inherit_rpath=yes
11343 link_all_deplibs=yes
11344 ;;
11345
11346 linux*)
11347 case $cc_basename in
11348 tcc*)
11349 # Fabrice Bellard et al's Tiny C Compiler
11350 ld_shlibs=yes
11351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353 ;;
11354 esac
11355 ;;
11356
11357 *-mlibc)
11358 ;;
11359
11360 netbsd* | netbsdelf*-gnu)
11361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11363 else
11364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11365 fi
11366 hardcode_libdir_flag_spec='-R$libdir'
11367 hardcode_direct=yes
11368 hardcode_shlibpath_var=no
11369 ;;
11370
11371 newsos6)
11372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373 hardcode_direct=yes
11374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11375 hardcode_libdir_separator=:
11376 hardcode_shlibpath_var=no
11377 ;;
11378
11379 *nto* | *qnx*)
11380 ;;
11381
11382 openbsd*)
11383 if test -f /usr/libexec/ld.so; then
11384 hardcode_direct=yes
11385 hardcode_shlibpath_var=no
11386 hardcode_direct_absolute=yes
11387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11391 export_dynamic_flag_spec='$wl-E'
11392 else
11393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11394 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11395 fi
11396 else
11397 ld_shlibs=no
11398 fi
11399 ;;
11400
11401 os2*)
11402 hardcode_libdir_flag_spec='-L$libdir'
11403 hardcode_minus_L=yes
11404 allow_undefined_flag=unsupported
11405 shrext_cmds=.dll
11406 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11407 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11408 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11409 $ECHO EXPORTS >> $output_objdir/$libname.def~
11410 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11412 emximp -o $lib $output_objdir/$libname.def'
11413 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11416 $ECHO EXPORTS >> $output_objdir/$libname.def~
11417 prefix_cmds="$SED"~
11418 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11419 prefix_cmds="$prefix_cmds -e 1d";
11420 fi~
11421 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11422 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11424 emximp -o $lib $output_objdir/$libname.def'
11425 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11426 enable_shared_with_static_runtimes=yes
11427 file_list_spec='@'
11428 ;;
11429
11430 osf3*)
11431 if test yes = "$GCC"; then
11432 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11433 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'
11434 else
11435 allow_undefined_flag=' -expect_unresolved \*'
11436 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'
11437 fi
11438 archive_cmds_need_lc='no'
11439 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11440 hardcode_libdir_separator=:
11441 ;;
11442
11443 osf4* | osf5*) # as osf3* with the addition of -msym flag
11444 if test yes = "$GCC"; then
11445 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11446 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'
11447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11448 else
11449 allow_undefined_flag=' -expect_unresolved \*'
11450 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'
11451 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~
11452 $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'
11453
11454 # Both c and cxx compiler support -rpath directly
11455 hardcode_libdir_flag_spec='-rpath $libdir'
11456 fi
11457 archive_cmds_need_lc='no'
11458 hardcode_libdir_separator=:
11459 ;;
11460
11461 serenity*)
11462 ;;
11463
11464 solaris*)
11465 no_undefined_flag=' -z defs'
11466 if test yes = "$GCC"; then
11467 wlarc='$wl'
11468 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11470 $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'
11471 else
11472 case `$CC -V 2>&1` in
11473 *"Compilers 5.0"*)
11474 wlarc=''
11475 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11477 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11478 ;;
11479 *)
11480 wlarc='$wl'
11481 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11483 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11484 ;;
11485 esac
11486 fi
11487 hardcode_libdir_flag_spec='-R$libdir'
11488 hardcode_shlibpath_var=no
11489 case $host_os in
11490 solaris2.[0-5] | solaris2.[0-5].*) ;;
11491 *)
11492 # The compiler driver will combine and reorder linker options,
11493 # but understands '-z linker_flag'. GCC discards it without '$wl',
11494 # but is careful enough not to reorder.
11495 # Supported since Solaris 2.6 (maybe 2.5.1?)
11496 if test yes = "$GCC"; then
11497 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11498 else
11499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11500 fi
11501 ;;
11502 esac
11503 link_all_deplibs=yes
11504 ;;
11505
11506 sunos4*)
11507 if test sequent = "$host_vendor"; then
11508 # Use $CC to link under sequent, because it throws in some extra .o
11509 # files that make .init and .fini sections work.
11510 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11511 else
11512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11513 fi
11514 hardcode_libdir_flag_spec='-L$libdir'
11515 hardcode_direct=yes
11516 hardcode_minus_L=yes
11517 hardcode_shlibpath_var=no
11518 ;;
11519
11520 sysv4)
11521 case $host_vendor in
11522 sni)
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_direct=yes # is this really true???
11525 ;;
11526 siemens)
11527 ## LD is ld it makes a PLAMLIB
11528 ## CC just makes a GrossModule.
11529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11530 reload_cmds='$CC -r -o $output$reload_objs'
11531 hardcode_direct=no
11532 ;;
11533 motorola)
11534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11536 ;;
11537 esac
11538 runpath_var='LD_RUN_PATH'
11539 hardcode_shlibpath_var=no
11540 ;;
11541
11542 sysv4.3*)
11543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544 hardcode_shlibpath_var=no
11545 export_dynamic_flag_spec='-Bexport'
11546 ;;
11547
11548 sysv4*MP*)
11549 if test -d /usr/nec; then
11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11551 hardcode_shlibpath_var=no
11552 runpath_var=LD_RUN_PATH
11553 hardcode_runpath_var=yes
11554 ld_shlibs=yes
11555 fi
11556 ;;
11557
11558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11559 no_undefined_flag='$wl-z,text'
11560 archive_cmds_need_lc=no
11561 hardcode_shlibpath_var=no
11562 runpath_var='LD_RUN_PATH'
11563
11564 if test yes = "$GCC"; then
11565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 else
11568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 fi
11571 ;;
11572
11573 sysv5* | sco3.2v5* | sco5v6*)
11574 # Note: We CANNOT use -z defs as we might desire, because we do not
11575 # link with -lc, and that would cause any symbols used from libc to
11576 # always be unresolved, which means just about no library would
11577 # ever link correctly. If we're not using GNU ld we use -z text
11578 # though, which does catch some bad symbols but isn't as heavy-handed
11579 # as -z defs.
11580 no_undefined_flag='$wl-z,text'
11581 allow_undefined_flag='$wl-z,nodefs'
11582 archive_cmds_need_lc=no
11583 hardcode_shlibpath_var=no
11584 hardcode_libdir_flag_spec='$wl-R,$libdir'
11585 hardcode_libdir_separator=':'
11586 link_all_deplibs=yes
11587 export_dynamic_flag_spec='$wl-Bexport'
11588 runpath_var='LD_RUN_PATH'
11589
11590 if test yes = "$GCC"; then
11591 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 else
11594 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 fi
11597 ;;
11598
11599 uts4*)
11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601 hardcode_libdir_flag_spec='-L$libdir'
11602 hardcode_shlibpath_var=no
11603 ;;
11604
11605 *)
11606 ld_shlibs=no
11607 ;;
11608 esac
11609
11610 if test sni = "$host_vendor"; then
11611 case $host in
11612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11613 export_dynamic_flag_spec='$wl-Blargedynsym'
11614 ;;
11615 esac
11616 fi
11617 fi
11618
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11620 printf "%s\n" "$ld_shlibs" >&6; }
11621 test no = "$ld_shlibs" && can_build_shared=no
11622
11623 with_gnu_ld=$with_gnu_ld
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639 #
11640 # Do we need to explicitly link libc?
11641 #
11642 case "x$archive_cmds_need_lc" in
11643 x|xyes)
11644 # Assume -lc should be added
11645 archive_cmds_need_lc=yes
11646
11647 if test yes,yes = "$GCC,$enable_shared"; then
11648 case $archive_cmds in
11649 *'~'*)
11650 # FIXME: we may have to deal with multi-command sequences.
11651 ;;
11652 '$CC '*)
11653 # Test whether the compiler implicitly links with -lc since on some
11654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11655 # to ld, don't add -lc before -lgcc.
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11657 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11658 if test ${lt_cv_archive_cmds_need_lc+y}
11659 then :
11660 printf %s "(cached) " >&6
11661 else case e in #(
11662 e) $RM conftest*
11663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11664
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11666 (eval $ac_compile) 2>&5
11667 ac_status=$?
11668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } 2>conftest.err; then
11670 soname=conftest
11671 lib=conftest
11672 libobjs=conftest.$ac_objext
11673 deplibs=
11674 wl=$lt_prog_compiler_wl
11675 pic_flag=$lt_prog_compiler_pic
11676 compiler_flags=-v
11677 linker_flags=-v
11678 verstring=
11679 output_objdir=.
11680 libname=conftest
11681 lt_save_allow_undefined_flag=$allow_undefined_flag
11682 allow_undefined_flag=
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11685 ac_status=$?
11686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }
11688 then
11689 lt_cv_archive_cmds_need_lc=no
11690 else
11691 lt_cv_archive_cmds_need_lc=yes
11692 fi
11693 allow_undefined_flag=$lt_save_allow_undefined_flag
11694 else
11695 cat conftest.err 1>&5
11696 fi
11697 $RM conftest*
11698 ;;
11699 esac
11700 fi
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11702 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11704 ;;
11705 esac
11706 fi
11707 ;;
11708 esac
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11862 printf %s "checking dynamic linker characteristics... " >&6; }
11863
11864 if test yes = "$GCC"; then
11865 case $host_os in
11866 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11867 *) lt_awk_arg='/^libraries:/' ;;
11868 esac
11869 case $host_os in
11870 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11871 *) lt_sed_strip_eq='s|=/|/|g' ;;
11872 esac
11873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11874 case $lt_search_path_spec in
11875 *\;*)
11876 # if the path contains ";" then we assume it to be the separator
11877 # otherwise default to the standard path separator (i.e. ":") - it is
11878 # assumed that no part of a normal pathname contains ";" but that should
11879 # okay in the real world where ";" in dirpaths is itself problematic.
11880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11881 ;;
11882 *)
11883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11884 ;;
11885 esac
11886 # Ok, now we have the path, separated by spaces, we can step through it
11887 # and add multilib dir if necessary...
11888 lt_tmp_lt_search_path_spec=
11889 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11890 # ...but if some path component already ends with the multilib dir we assume
11891 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11892 case "$lt_multi_os_dir; $lt_search_path_spec " in
11893 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11894 lt_multi_os_dir=
11895 ;;
11896 esac
11897 for lt_sys_path in $lt_search_path_spec; do
11898 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11900 elif test -n "$lt_multi_os_dir"; then
11901 test -d "$lt_sys_path" && \
11902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11903 fi
11904 done
11905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11906 BEGIN {RS = " "; FS = "/|\n";} {
11907 lt_foo = "";
11908 lt_count = 0;
11909 for (lt_i = NF; lt_i > 0; lt_i--) {
11910 if ($lt_i != "" && $lt_i != ".") {
11911 if ($lt_i == "..") {
11912 lt_count++;
11913 } else {
11914 if (lt_count == 0) {
11915 lt_foo = "/" $lt_i lt_foo;
11916 } else {
11917 lt_count--;
11918 }
11919 }
11920 }
11921 }
11922 if (lt_foo != "") { lt_freq[lt_foo]++; }
11923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11924 }'`
11925 # AWK program above erroneously prepends '/' to C:/dos/paths
11926 # for these hosts.
11927 case $host_os in
11928 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11929 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11930 esac
11931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11932 else
11933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11934 fi
11935 library_names_spec=
11936 libname_spec='lib$name'
11937 soname_spec=
11938 shrext_cmds=.so
11939 postinstall_cmds=
11940 postuninstall_cmds=
11941 finish_cmds=
11942 finish_eval=
11943 shlibpath_var=
11944 shlibpath_overrides_runpath=unknown
11945 version_type=none
11946 dynamic_linker="$host_os ld.so"
11947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11948 need_lib_prefix=unknown
11949 hardcode_into_libs=no
11950
11951 # when you set need_version to no, make sure it does not cause -set_version
11952 # flags to be left without arguments
11953 need_version=unknown
11954
11955
11956
11957 case $host_os in
11958 aix3*)
11959 version_type=linux # correct to gnu/linux during the next big refactor
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11961 shlibpath_var=LIBPATH
11962
11963 # AIX 3 has no versioning support, so we append a major version to the name.
11964 soname_spec='$libname$release$shared_ext$major'
11965 ;;
11966
11967 aix[4-9]*)
11968 version_type=linux # correct to gnu/linux during the next big refactor
11969 need_lib_prefix=no
11970 need_version=no
11971 hardcode_into_libs=yes
11972 if test ia64 = "$host_cpu"; then
11973 # AIX 5 supports IA64
11974 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 else
11977 # With GCC up to 2.95.x, collect2 would create an import file
11978 # for dependence libraries. The import file would start with
11979 # the line '#! .'. This would cause the generated library to
11980 # depend on '.', always an invalid library. This was fixed in
11981 # development snapshots of GCC prior to 3.0.
11982 case $host_os in
11983 aix4 | aix4.[01] | aix4.[01].*)
11984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11985 echo ' yes '
11986 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11987 :
11988 else
11989 can_build_shared=no
11990 fi
11991 ;;
11992 esac
11993 # Using Import Files as archive members, it is possible to support
11994 # filename-based versioning of shared library archives on AIX. While
11995 # this would work for both with and without runtime linking, it will
11996 # prevent static linking of such archives. So we do filename-based
11997 # shared library versioning with .so extension only, which is used
11998 # when both runtime linking and shared linking is enabled.
11999 # Unfortunately, runtime linking may impact performance, so we do
12000 # not want this to be the default eventually. Also, we use the
12001 # versioned .so libs for executables only if there is the -brtl
12002 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12003 # To allow for filename-based versioning support, we need to create
12004 # libNAME.so.V as an archive file, containing:
12005 # *) an Import File, referring to the versioned filename of the
12006 # archive as well as the shared archive member, telling the
12007 # bitwidth (32 or 64) of that shared object, and providing the
12008 # list of exported symbols of that shared object, eventually
12009 # decorated with the 'weak' keyword
12010 # *) the shared object with the F_LOADONLY flag set, to really avoid
12011 # it being seen by the linker.
12012 # At run time we better use the real file rather than another symlink,
12013 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12014
12015 case $with_aix_soname,$aix_use_runtimelinking in
12016 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12017 # soname into executable. Probably we can add versioning support to
12018 # collect2, so additional links can be useful in future.
12019 aix,yes) # traditional libtool
12020 dynamic_linker='AIX unversionable lib.so'
12021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12022 # instead of lib<name>.a to let people know that these are not
12023 # typical AIX shared libraries.
12024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12025 ;;
12026 aix,no) # traditional AIX only
12027 dynamic_linker='AIX lib.a(lib.so.V)'
12028 # We preserve .a as extension for shared libraries through AIX4.2
12029 # and later when we are not doing run time linking.
12030 library_names_spec='$libname$release.a $libname.a'
12031 soname_spec='$libname$release$shared_ext$major'
12032 ;;
12033 svr4,*) # full svr4 only
12034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12036 # We do not specify a path in Import Files, so LIBPATH fires.
12037 shlibpath_overrides_runpath=yes
12038 ;;
12039 *,yes) # both, prefer svr4
12040 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12041 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12042 # unpreferred sharedlib libNAME.a needs extra handling
12043 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"'
12044 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"'
12045 # We do not specify a path in Import Files, so LIBPATH fires.
12046 shlibpath_overrides_runpath=yes
12047 ;;
12048 *,no) # both, prefer aix
12049 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12050 library_names_spec='$libname$release.a $libname.a'
12051 soname_spec='$libname$release$shared_ext$major'
12052 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12053 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)'
12054 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"'
12055 ;;
12056 esac
12057 shlibpath_var=LIBPATH
12058 fi
12059 ;;
12060
12061 amigaos*)
12062 case $host_cpu in
12063 powerpc)
12064 # Since July 2007 AmigaOS4 officially supports .so libraries.
12065 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067 ;;
12068 m68k)
12069 library_names_spec='$libname.ixlibrary $libname.a'
12070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12071 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'
12072 ;;
12073 esac
12074 ;;
12075
12076 beos*)
12077 library_names_spec='$libname$shared_ext'
12078 dynamic_linker="$host_os ld.so"
12079 shlibpath_var=LIBRARY_PATH
12080 ;;
12081
12082 bsdi[45]*)
12083 version_type=linux # correct to gnu/linux during the next big refactor
12084 need_version=no
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086 soname_spec='$libname$release$shared_ext$major'
12087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12091 # the default ld.so.conf also contains /usr/contrib/lib and
12092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12093 # libtool to hard-code these into programs
12094 ;;
12095
12096 cygwin* | mingw* | windows* | pw32* | cegcc*)
12097 version_type=windows
12098 shrext_cmds=.dll
12099 need_version=no
12100 need_lib_prefix=no
12101
12102 case $GCC,$cc_basename in
12103 yes,*)
12104 # gcc
12105 library_names_spec='$libname.dll.a'
12106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12107 # If user builds GCC with multilib enabled,
12108 # it should just install on $(libdir)
12109 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12110 if test xyes = x"$multilib"; then
12111 postinstall_cmds='base_file=`basename \$file`~
12112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12113 dldir=$destdir/`dirname \$dlpath`~
12114 $install_prog $dir/$dlname $destdir/$dlname~
12115 chmod a+x $destdir/$dlname~
12116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12117 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12118 fi'
12119 else
12120 postinstall_cmds='base_file=`basename \$file`~
12121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12122 dldir=$destdir/`dirname \$dlpath`~
12123 test -d \$dldir || mkdir -p \$dldir~
12124 $install_prog $dir/$dlname \$dldir/$dlname~
12125 chmod a+x \$dldir/$dlname~
12126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12128 fi'
12129 fi
12130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12131 dlpath=$dir/\$dldll~
12132 $RM \$dlpath'
12133 shlibpath_overrides_runpath=yes
12134
12135 case $host_os in
12136 cygwin*)
12137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12138 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12139
12140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12141 ;;
12142 mingw* | windows* | cegcc*)
12143 # MinGW DLLs use traditional 'lib' prefix
12144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12145 ;;
12146 pw32*)
12147 # pw32 DLLs use 'pw' prefix rather than 'lib'
12148 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12149 ;;
12150 esac
12151 dynamic_linker='Win32 ld.exe'
12152 ;;
12153
12154 *,cl* | *,icl*)
12155 # Native MSVC or ICC
12156 libname_spec='$name'
12157 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12158 library_names_spec='$libname.dll.lib'
12159
12160 case $build_os in
12161 mingw* | windows*)
12162 sys_lib_search_path_spec=
12163 lt_save_ifs=$IFS
12164 IFS=';'
12165 for lt_path in $LIB
12166 do
12167 IFS=$lt_save_ifs
12168 # Let DOS variable expansion print the short 8.3 style file name.
12169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12171 done
12172 IFS=$lt_save_ifs
12173 # Convert to MSYS style.
12174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12175 ;;
12176 cygwin*)
12177 # Convert to unix form, then to dos form, then back to unix form
12178 # but this time dos style (no spaces!) so that the unix form looks
12179 # like /cygdrive/c/PROGRA~1:/cygdr...
12180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12183 ;;
12184 *)
12185 sys_lib_search_path_spec=$LIB
12186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12187 # It is most probably a Windows format PATH.
12188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12189 else
12190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12191 fi
12192 # FIXME: find the short name or the path components, as spaces are
12193 # common. (e.g. "Program Files" -> "PROGRA~1")
12194 ;;
12195 esac
12196
12197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12198 postinstall_cmds='base_file=`basename \$file`~
12199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12200 dldir=$destdir/`dirname \$dlpath`~
12201 test -d \$dldir || mkdir -p \$dldir~
12202 $install_prog $dir/$dlname \$dldir/$dlname'
12203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12204 dlpath=$dir/\$dldll~
12205 $RM \$dlpath'
12206 shlibpath_overrides_runpath=yes
12207 dynamic_linker='Win32 link.exe'
12208 ;;
12209
12210 *)
12211 # Assume MSVC and ICC wrapper
12212 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12213 dynamic_linker='Win32 ld.exe'
12214 ;;
12215 esac
12216 # FIXME: first we should search . and the directory the executable is in
12217 shlibpath_var=PATH
12218 ;;
12219
12220 darwin* | rhapsody*)
12221 dynamic_linker="$host_os dyld"
12222 version_type=darwin
12223 need_lib_prefix=no
12224 need_version=no
12225 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12226 soname_spec='$libname$release$major$shared_ext'
12227 shlibpath_overrides_runpath=yes
12228 shlibpath_var=DYLD_LIBRARY_PATH
12229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12230
12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12233 ;;
12234
12235 dgux*)
12236 version_type=linux # correct to gnu/linux during the next big refactor
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 soname_spec='$libname$release$shared_ext$major'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 ;;
12243
12244 freebsd* | dragonfly* | midnightbsd*)
12245 # DragonFly does not have aout. When/if they implement a new
12246 # versioning mechanism, adjust this.
12247 if test -x /usr/bin/objformat; then
12248 objformat=`/usr/bin/objformat`
12249 else
12250 case $host_os in
12251 freebsd[23].*) objformat=aout ;;
12252 *) objformat=elf ;;
12253 esac
12254 fi
12255 version_type=freebsd-$objformat
12256 case $version_type in
12257 freebsd-elf*)
12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12259 soname_spec='$libname$release$shared_ext$major'
12260 need_version=no
12261 need_lib_prefix=no
12262 ;;
12263 freebsd-*)
12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12265 need_version=yes
12266 ;;
12267 esac
12268 case $host_cpu in
12269 powerpc64)
12270 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12271 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274 int test_pointer_size[sizeof (void *) - 5];
12275
12276 _ACEOF
12277 if ac_fn_c_try_compile "$LINENO"
12278 then :
12279 shlibpath_var=LD_LIBRARY_PATH
12280 else case e in #(
12281 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12282 esac
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12285 ;;
12286 *)
12287 shlibpath_var=LD_LIBRARY_PATH
12288 ;;
12289 esac
12290 case $host_os in
12291 freebsd2.*)
12292 shlibpath_overrides_runpath=yes
12293 ;;
12294 freebsd3.[01]* | freebsdelf3.[01]*)
12295 shlibpath_overrides_runpath=yes
12296 hardcode_into_libs=yes
12297 ;;
12298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12300 shlibpath_overrides_runpath=no
12301 hardcode_into_libs=yes
12302 ;;
12303 *) # from 4.6 on, and DragonFly
12304 shlibpath_overrides_runpath=yes
12305 hardcode_into_libs=yes
12306 ;;
12307 esac
12308 ;;
12309
12310 haiku*)
12311 version_type=linux # correct to gnu/linux during the next big refactor
12312 need_lib_prefix=no
12313 need_version=no
12314 dynamic_linker="$host_os runtime_loader"
12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12316 soname_spec='$libname$release$shared_ext$major'
12317 shlibpath_var=LIBRARY_PATH
12318 shlibpath_overrides_runpath=no
12319 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12320 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12321 hardcode_into_libs=no
12322 ;;
12323
12324 hpux9* | hpux10* | hpux11*)
12325 # Give a soname corresponding to the major version so that dld.sl refuses to
12326 # link against other versions.
12327 version_type=sunos
12328 need_lib_prefix=no
12329 need_version=no
12330 case $host_cpu in
12331 ia64*)
12332 shrext_cmds='.so'
12333 hardcode_into_libs=yes
12334 dynamic_linker="$host_os dld.so"
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338 soname_spec='$libname$release$shared_ext$major'
12339 if test 32 = "$HPUX_IA64_MODE"; then
12340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12341 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12342 else
12343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12344 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12345 fi
12346 ;;
12347 hppa*64*)
12348 shrext_cmds='.sl'
12349 hardcode_into_libs=yes
12350 dynamic_linker="$host_os dld.sl"
12351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354 soname_spec='$libname$release$shared_ext$major'
12355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12357 ;;
12358 *)
12359 shrext_cmds='.sl'
12360 dynamic_linker="$host_os dld.sl"
12361 shlibpath_var=SHLIB_PATH
12362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12364 soname_spec='$libname$release$shared_ext$major'
12365 ;;
12366 esac
12367 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12368 postinstall_cmds='chmod 555 $lib'
12369 # or fails outright, so override atomically:
12370 install_override_mode=555
12371 ;;
12372
12373 interix[3-9]*)
12374 version_type=linux # correct to gnu/linux during the next big refactor
12375 need_lib_prefix=no
12376 need_version=no
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12378 soname_spec='$libname$release$shared_ext$major'
12379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=no
12382 hardcode_into_libs=yes
12383 ;;
12384
12385 irix5* | irix6* | nonstopux*)
12386 case $host_os in
12387 nonstopux*) version_type=nonstopux ;;
12388 *)
12389 if test yes = "$lt_cv_prog_gnu_ld"; then
12390 version_type=linux # correct to gnu/linux during the next big refactor
12391 else
12392 version_type=irix
12393 fi ;;
12394 esac
12395 need_lib_prefix=no
12396 need_version=no
12397 soname_spec='$libname$release$shared_ext$major'
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12399 case $host_os in
12400 irix5* | nonstopux*)
12401 libsuff= shlibsuff=
12402 ;;
12403 *)
12404 case $LD in # libtool.m4 will add one of these switches to LD
12405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12406 libsuff= shlibsuff= libmagic=32-bit;;
12407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12408 libsuff=32 shlibsuff=N32 libmagic=N32;;
12409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12411 *) libsuff= shlibsuff= libmagic=never-match;;
12412 esac
12413 ;;
12414 esac
12415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12416 shlibpath_overrides_runpath=no
12417 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12418 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12419 hardcode_into_libs=yes
12420 ;;
12421
12422 # No shared lib support for Linux oldld, aout, or coff.
12423 linux*oldld* | linux*aout* | linux*coff*)
12424 dynamic_linker=no
12425 ;;
12426
12427 linux*android*)
12428 version_type=none # Android doesn't support versioned libraries.
12429 need_lib_prefix=no
12430 need_version=no
12431 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12432 soname_spec='$libname$release$shared_ext'
12433 finish_cmds=
12434 shlibpath_var=LD_LIBRARY_PATH
12435 shlibpath_overrides_runpath=yes
12436
12437 # This implies no fast_install, which is unacceptable.
12438 # Some rework will be needed to allow for fast_install
12439 # before this can be enabled.
12440 hardcode_into_libs=yes
12441
12442 dynamic_linker='Android linker'
12443 # -rpath works at least for libraries that are not overridden by
12444 # libraries installed in system locations.
12445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12446 ;;
12447
12448 # This must be glibc/ELF.
12449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12450 version_type=linux # correct to gnu/linux during the next big refactor
12451 need_lib_prefix=no
12452 need_version=no
12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12454 soname_spec='$libname$release$shared_ext$major'
12455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=no
12458
12459 # Some binutils ld are patched to set DT_RUNPATH
12460 if test ${lt_cv_shlibpath_overrides_runpath+y}
12461 then :
12462 printf %s "(cached) " >&6
12463 else case e in #(
12464 e) lt_cv_shlibpath_overrides_runpath=no
12465 save_LDFLAGS=$LDFLAGS
12466 save_libdir=$libdir
12467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471
12472 int
12473 main (void)
12474 {
12475
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"
12481 then :
12482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12483 then :
12484 lt_cv_shlibpath_overrides_runpath=yes
12485 fi
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12488 conftest$ac_exeext conftest.$ac_ext
12489 LDFLAGS=$save_LDFLAGS
12490 libdir=$save_libdir
12491 ;;
12492 esac
12493 fi
12494
12495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12496
12497 # This implies no fast_install, which is unacceptable.
12498 # Some rework will be needed to allow for fast_install
12499 # before this can be enabled.
12500 hardcode_into_libs=yes
12501
12502 # Ideally, we could use ldconfig to report *all* directories which are
12503 # searched for libraries, however this is still not possible. Aside from not
12504 # being certain /sbin/ldconfig is available, command
12505 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12506 # even though it is searched at run-time. Try to do the best guess by
12507 # appending ld.so.conf contents (and includes) to the search path.
12508 if test -f /etc/ld.so.conf; then
12509 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' ' '`
12510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12511 fi
12512
12513 # We used to test for /lib/ld.so.1 and disable shared libraries on
12514 # powerpc, because MkLinux only supported shared libraries with the
12515 # GNU dynamic linker. Since this was broken with cross compilers,
12516 # most powerpc-linux boxes support dynamic linking these days and
12517 # people can always --disable-shared, the test was removed, and we
12518 # assume the GNU/Linux dynamic linker is in use.
12519 dynamic_linker='GNU/Linux ld.so'
12520 ;;
12521
12522 netbsdelf*-gnu)
12523 version_type=linux
12524 need_lib_prefix=no
12525 need_version=no
12526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12527 soname_spec='$libname$release$shared_ext$major'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=no
12530 hardcode_into_libs=yes
12531 dynamic_linker='NetBSD ld.elf_so'
12532 ;;
12533
12534 netbsdelf*-gnu)
12535 version_type=linux
12536 need_lib_prefix=no
12537 need_version=no
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12539 soname_spec='${libname}${release}${shared_ext}$major'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath=no
12542 hardcode_into_libs=yes
12543 dynamic_linker='NetBSD ld.elf_so'
12544 ;;
12545
12546 netbsd*)
12547 version_type=sunos
12548 need_lib_prefix=no
12549 need_version=no
12550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12553 dynamic_linker='NetBSD (a.out) ld.so'
12554 else
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12556 soname_spec='$libname$release$shared_ext$major'
12557 dynamic_linker='NetBSD ld.elf_so'
12558 fi
12559 shlibpath_var=LD_LIBRARY_PATH
12560 shlibpath_overrides_runpath=yes
12561 hardcode_into_libs=yes
12562 ;;
12563
12564 *-mlibc)
12565 version_type=linux # correct to gnu/linux during the next big refactor
12566 need_lib_prefix=no
12567 need_version=no
12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12569 soname_spec='$libname$release$shared_ext$major'
12570 dynamic_linker='mlibc ld.so'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 shlibpath_overrides_runpath=no
12573 hardcode_into_libs=yes
12574 ;;
12575
12576 newsos6)
12577 version_type=linux # correct to gnu/linux during the next big refactor
12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581 ;;
12582
12583 *nto* | *qnx*)
12584 version_type=qnx
12585 need_lib_prefix=no
12586 need_version=no
12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12588 soname_spec='$libname$release$shared_ext$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=no
12591 hardcode_into_libs=yes
12592 dynamic_linker='ldqnx.so'
12593 ;;
12594
12595 openbsd*)
12596 version_type=sunos
12597 sys_lib_dlsearch_path_spec=/usr/lib
12598 need_lib_prefix=no
12599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12600 need_version=no
12601 else
12602 need_version=yes
12603 fi
12604 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 shlibpath_overrides_runpath=yes
12608 ;;
12609
12610 os2*)
12611 libname_spec='$name'
12612 version_type=windows
12613 shrext_cmds=.dll
12614 need_version=no
12615 need_lib_prefix=no
12616 # OS/2 can only load a DLL with a base name of 8 characters or less.
12617 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12618 v=$($ECHO $release$versuffix | tr -d .-);
12619 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12620 $ECHO $n$v`$shared_ext'
12621 library_names_spec='${libname}_dll.$libext'
12622 dynamic_linker='OS/2 ld.exe'
12623 shlibpath_var=BEGINLIBPATH
12624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12626 postinstall_cmds='base_file=`basename \$file`~
12627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12628 dldir=$destdir/`dirname \$dlpath`~
12629 test -d \$dldir || mkdir -p \$dldir~
12630 $install_prog $dir/$dlname \$dldir/$dlname~
12631 chmod a+x \$dldir/$dlname~
12632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12634 fi'
12635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12636 dlpath=$dir/\$dldll~
12637 $RM \$dlpath'
12638 ;;
12639
12640 osf3* | osf4* | osf5*)
12641 version_type=osf
12642 need_lib_prefix=no
12643 need_version=no
12644 soname_spec='$libname$release$shared_ext$major'
12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12646 shlibpath_var=LD_LIBRARY_PATH
12647 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12649 ;;
12650
12651 rdos*)
12652 dynamic_linker=no
12653 ;;
12654
12655 serenity*)
12656 version_type=linux # correct to gnu/linux during the next big refactor
12657 need_lib_prefix=no
12658 need_version=no
12659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12660 soname_spec='$libname$release$shared_ext$major'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 shlibpath_overrides_runpath=no
12663 dynamic_linker='SerenityOS LibELF'
12664 ;;
12665
12666 solaris*)
12667 version_type=linux # correct to gnu/linux during the next big refactor
12668 need_lib_prefix=no
12669 need_version=no
12670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12671 soname_spec='$libname$release$shared_ext$major'
12672 shlibpath_var=LD_LIBRARY_PATH
12673 shlibpath_overrides_runpath=yes
12674 hardcode_into_libs=yes
12675 # ldd complains unless libraries are executable
12676 postinstall_cmds='chmod +x $lib'
12677 ;;
12678
12679 sunos4*)
12680 version_type=sunos
12681 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12683 shlibpath_var=LD_LIBRARY_PATH
12684 shlibpath_overrides_runpath=yes
12685 if test yes = "$with_gnu_ld"; then
12686 need_lib_prefix=no
12687 fi
12688 need_version=yes
12689 ;;
12690
12691 sysv4 | sysv4.3*)
12692 version_type=linux # correct to gnu/linux during the next big refactor
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694 soname_spec='$libname$release$shared_ext$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 case $host_vendor in
12697 sni)
12698 shlibpath_overrides_runpath=no
12699 need_lib_prefix=no
12700 runpath_var=LD_RUN_PATH
12701 ;;
12702 siemens)
12703 need_lib_prefix=no
12704 ;;
12705 motorola)
12706 need_lib_prefix=no
12707 need_version=no
12708 shlibpath_overrides_runpath=no
12709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12710 ;;
12711 esac
12712 ;;
12713
12714 sysv4*MP*)
12715 if test -d /usr/nec; then
12716 version_type=linux # correct to gnu/linux during the next big refactor
12717 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12718 soname_spec='$libname$shared_ext.$major'
12719 shlibpath_var=LD_LIBRARY_PATH
12720 fi
12721 ;;
12722
12723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12724 version_type=sco
12725 need_lib_prefix=no
12726 need_version=no
12727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12728 soname_spec='$libname$release$shared_ext$major'
12729 shlibpath_var=LD_LIBRARY_PATH
12730 shlibpath_overrides_runpath=yes
12731 hardcode_into_libs=yes
12732 if test yes = "$with_gnu_ld"; then
12733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12734 else
12735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12736 case $host_os in
12737 sco3.2v5*)
12738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12739 ;;
12740 esac
12741 fi
12742 sys_lib_dlsearch_path_spec='/usr/lib'
12743 ;;
12744
12745 tpf*)
12746 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12747 version_type=linux # correct to gnu/linux during the next big refactor
12748 need_lib_prefix=no
12749 need_version=no
12750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12751 shlibpath_var=LD_LIBRARY_PATH
12752 shlibpath_overrides_runpath=no
12753 hardcode_into_libs=yes
12754 ;;
12755
12756 uts4*)
12757 version_type=linux # correct to gnu/linux during the next big refactor
12758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12759 soname_spec='$libname$release$shared_ext$major'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 ;;
12762
12763 emscripten*)
12764 version_type=none
12765 need_lib_prefix=no
12766 need_version=no
12767 library_names_spec='$libname$release$shared_ext'
12768 soname_spec='$libname$release$shared_ext'
12769 finish_cmds=
12770 dynamic_linker="Emscripten linker"
12771 lt_prog_compiler_wl=
12772 lt_prog_compiler_pic=
12773 lt_prog_compiler_static=
12774
12775
12776 if test yes = "$GCC"; then
12777 lt_prog_compiler_wl='-Wl,'
12778 lt_prog_compiler_static='-static'
12779
12780 case $host_os in
12781 aix*)
12782 # All AIX code is PIC.
12783 if test ia64 = "$host_cpu"; then
12784 # AIX 5 now supports IA64 processor
12785 lt_prog_compiler_static='-Bstatic'
12786 fi
12787 lt_prog_compiler_pic='-fPIC'
12788 ;;
12789
12790 amigaos*)
12791 case $host_cpu in
12792 powerpc)
12793 # see comment about AmigaOS4 .so support
12794 lt_prog_compiler_pic='-fPIC'
12795 ;;
12796 m68k)
12797 # FIXME: we need at least 68020 code to build shared libraries, but
12798 # adding the '-m68020' flag to GCC prevents building anything better,
12799 # like '-m68040'.
12800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12801 ;;
12802 esac
12803 ;;
12804
12805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12806 # PIC is the default for these OSes.
12807 ;;
12808
12809 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12813 # (--disable-auto-import) libraries
12814 lt_prog_compiler_pic='-DDLL_EXPORT'
12815 case $host_os in
12816 os2*)
12817 lt_prog_compiler_static='$wl-static'
12818 ;;
12819 esac
12820 ;;
12821
12822 darwin* | rhapsody*)
12823 # PIC is the default on this platform
12824 # Common symbols not allowed in MH_DYLIB files
12825 lt_prog_compiler_pic='-fno-common'
12826 ;;
12827
12828 haiku*)
12829 # PIC is the default for Haiku.
12830 # The "-static" flag exists, but is broken.
12831 lt_prog_compiler_static=
12832 ;;
12833
12834 hpux*)
12835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12837 # sets the default TLS model and affects inlining.
12838 case $host_cpu in
12839 hppa*64*)
12840 # +Z the default
12841 ;;
12842 *)
12843 lt_prog_compiler_pic='-fPIC'
12844 ;;
12845 esac
12846 ;;
12847
12848 interix[3-9]*)
12849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12850 # Instead, we relocate shared libraries at runtime.
12851 ;;
12852
12853 msdosdjgpp*)
12854 # Just because we use GCC doesn't mean we suddenly get shared libraries
12855 # on systems that don't support them.
12856 lt_prog_compiler_can_build_shared=no
12857 enable_shared=no
12858 ;;
12859
12860 *nto* | *qnx*)
12861 # QNX uses GNU C++, but need to define -shared option too, otherwise
12862 # it will coredump.
12863 lt_prog_compiler_pic='-fPIC -shared'
12864 ;;
12865
12866 sysv4*MP*)
12867 if test -d /usr/nec; then
12868 lt_prog_compiler_pic=-Kconform_pic
12869 fi
12870 ;;
12871
12872 *)
12873 lt_prog_compiler_pic='-fPIC'
12874 ;;
12875 esac
12876
12877 case $cc_basename in
12878 nvcc*) # Cuda Compiler Driver 2.2
12879 lt_prog_compiler_wl='-Xlinker '
12880 if test -n "$lt_prog_compiler_pic"; then
12881 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12882 fi
12883 ;;
12884 esac
12885 else
12886 # PORTME Check for flag to pass linker flags through the system compiler.
12887 case $host_os in
12888 aix*)
12889 lt_prog_compiler_wl='-Wl,'
12890 if test ia64 = "$host_cpu"; then
12891 # AIX 5 now supports IA64 processor
12892 lt_prog_compiler_static='-Bstatic'
12893 else
12894 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12895 fi
12896 ;;
12897
12898 darwin* | rhapsody*)
12899 # PIC is the default on this platform
12900 # Common symbols not allowed in MH_DYLIB files
12901 lt_prog_compiler_pic='-fno-common'
12902 case $cc_basename in
12903 nagfor*)
12904 # NAG Fortran compiler
12905 lt_prog_compiler_wl='-Wl,-Wl,,'
12906 lt_prog_compiler_pic='-PIC'
12907 lt_prog_compiler_static='-Bstatic'
12908 ;;
12909 esac
12910 ;;
12911
12912 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12913 # This hack is so that the source file can tell whether it is being
12914 # built for inclusion in a dll (and should export symbols for example).
12915 lt_prog_compiler_pic='-DDLL_EXPORT'
12916 case $host_os in
12917 os2*)
12918 lt_prog_compiler_static='$wl-static'
12919 ;;
12920 esac
12921 ;;
12922
12923 hpux9* | hpux10* | hpux11*)
12924 lt_prog_compiler_wl='-Wl,'
12925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12926 # not for PA HP-UX.
12927 case $host_cpu in
12928 hppa*64*|ia64*)
12929 # +Z the default
12930 ;;
12931 *)
12932 lt_prog_compiler_pic='+Z'
12933 ;;
12934 esac
12935 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12936 lt_prog_compiler_static='$wl-a ${wl}archive'
12937 ;;
12938
12939 irix5* | irix6* | nonstopux*)
12940 lt_prog_compiler_wl='-Wl,'
12941 # PIC (with -KPIC) is the default.
12942 lt_prog_compiler_static='-non_shared'
12943 ;;
12944
12945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12946 case $cc_basename in
12947 # old Intel for x86_64, which still supported -KPIC.
12948 ecc*)
12949 lt_prog_compiler_wl='-Wl,'
12950 lt_prog_compiler_pic='-KPIC'
12951 lt_prog_compiler_static='-static'
12952 ;;
12953 *flang* | ftn | f18* | f95*)
12954 # Flang compiler.
12955 lt_prog_compiler_wl='-Wl,'
12956 lt_prog_compiler_pic='-fPIC'
12957 lt_prog_compiler_static='-static'
12958 ;;
12959 # flang / f18. f95 an alias for gfortran or flang on Debian
12960 flang* | f18* | f95*)
12961 lt_prog_compiler_wl='-Wl,'
12962 lt_prog_compiler_pic='-fPIC'
12963 lt_prog_compiler_static='-static'
12964 ;;
12965 # icc used to be incompatible with GCC.
12966 # ICC 10 doesn't accept -KPIC any more.
12967 icc* | ifort*)
12968 lt_prog_compiler_wl='-Wl,'
12969 lt_prog_compiler_pic='-fPIC'
12970 lt_prog_compiler_static='-static'
12971 ;;
12972 # Lahey Fortran 8.1.
12973 lf95*)
12974 lt_prog_compiler_wl='-Wl,'
12975 lt_prog_compiler_pic='--shared'
12976 lt_prog_compiler_static='--static'
12977 ;;
12978 nagfor*)
12979 # NAG Fortran compiler
12980 lt_prog_compiler_wl='-Wl,-Wl,,'
12981 lt_prog_compiler_pic='-PIC'
12982 lt_prog_compiler_static='-Bstatic'
12983 ;;
12984 tcc*)
12985 # Fabrice Bellard et al's Tiny C Compiler
12986 lt_prog_compiler_wl='-Wl,'
12987 lt_prog_compiler_pic='-fPIC'
12988 lt_prog_compiler_static='-static'
12989 ;;
12990 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12991 # Portland Group compilers (*not* the Pentium gcc compiler,
12992 # which looks to be a dead project)
12993 lt_prog_compiler_wl='-Wl,'
12994 lt_prog_compiler_pic='-fpic'
12995 lt_prog_compiler_static='-Bstatic'
12996 ;;
12997 ccc*)
12998 lt_prog_compiler_wl='-Wl,'
12999 # All Alpha code is PIC.
13000 lt_prog_compiler_static='-non_shared'
13001 ;;
13002 xl* | bgxl* | bgf* | mpixl*)
13003 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13004 lt_prog_compiler_wl='-Wl,'
13005 lt_prog_compiler_pic='-qpic'
13006 lt_prog_compiler_static='-qstaticlink'
13007 ;;
13008 *)
13009 case `$CC -V 2>&1 | $SED 5q` in
13010 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13011 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13012 lt_prog_compiler_pic='-KPIC'
13013 lt_prog_compiler_static='-Bstatic'
13014 lt_prog_compiler_wl=''
13015 ;;
13016 *Sun\ F* | *Sun*Fortran*)
13017 lt_prog_compiler_pic='-KPIC'
13018 lt_prog_compiler_static='-Bstatic'
13019 lt_prog_compiler_wl='-Qoption ld '
13020 ;;
13021 *Sun\ C*)
13022 # Sun C 5.9
13023 lt_prog_compiler_pic='-KPIC'
13024 lt_prog_compiler_static='-Bstatic'
13025 lt_prog_compiler_wl='-Wl,'
13026 ;;
13027 *Intel*\ [CF]*Compiler*)
13028 lt_prog_compiler_wl='-Wl,'
13029 lt_prog_compiler_pic='-fPIC'
13030 lt_prog_compiler_static='-static'
13031 ;;
13032 *Portland\ Group*)
13033 lt_prog_compiler_wl='-Wl,'
13034 lt_prog_compiler_pic='-fpic'
13035 lt_prog_compiler_static='-Bstatic'
13036 ;;
13037 esac
13038 ;;
13039 esac
13040 ;;
13041
13042 newsos6)
13043 lt_prog_compiler_pic='-KPIC'
13044 lt_prog_compiler_static='-Bstatic'
13045 ;;
13046
13047 *-mlibc)
13048 lt_prog_compiler_wl='-Wl,'
13049 lt_prog_compiler_pic='-fPIC'
13050 lt_prog_compiler_static='-static'
13051 ;;
13052
13053 *nto* | *qnx*)
13054 # QNX uses GNU C++, but need to define -shared option too, otherwise
13055 # it will coredump.
13056 lt_prog_compiler_pic='-fPIC -shared'
13057 ;;
13058
13059 osf3* | osf4* | osf5*)
13060 lt_prog_compiler_wl='-Wl,'
13061 # All OSF/1 code is PIC.
13062 lt_prog_compiler_static='-non_shared'
13063 ;;
13064
13065 rdos*)
13066 lt_prog_compiler_static='-non_shared'
13067 ;;
13068
13069 serenity*)
13070 ;;
13071
13072 solaris*)
13073 lt_prog_compiler_pic='-KPIC'
13074 lt_prog_compiler_static='-Bstatic'
13075 case $cc_basename in
13076 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13077 lt_prog_compiler_wl='-Qoption ld ';;
13078 *)
13079 lt_prog_compiler_wl='-Wl,';;
13080 esac
13081 ;;
13082
13083 sunos4*)
13084 lt_prog_compiler_wl='-Qoption ld '
13085 lt_prog_compiler_pic='-PIC'
13086 lt_prog_compiler_static='-Bstatic'
13087 ;;
13088
13089 sysv4 | sysv4.2uw2* | sysv4.3*)
13090 lt_prog_compiler_wl='-Wl,'
13091 lt_prog_compiler_pic='-KPIC'
13092 lt_prog_compiler_static='-Bstatic'
13093 ;;
13094
13095 sysv4*MP*)
13096 if test -d /usr/nec; then
13097 lt_prog_compiler_pic='-Kconform_pic'
13098 lt_prog_compiler_static='-Bstatic'
13099 fi
13100 ;;
13101
13102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13103 lt_prog_compiler_wl='-Wl,'
13104 lt_prog_compiler_pic='-KPIC'
13105 lt_prog_compiler_static='-Bstatic'
13106 ;;
13107
13108 unicos*)
13109 lt_prog_compiler_wl='-Wl,'
13110 lt_prog_compiler_can_build_shared=no
13111 ;;
13112
13113 uts4*)
13114 lt_prog_compiler_pic='-pic'
13115 lt_prog_compiler_static='-Bstatic'
13116 ;;
13117
13118 *)
13119 lt_prog_compiler_can_build_shared=no
13120 ;;
13121 esac
13122 fi
13123
13124 case $host_os in
13125 # For platforms that do not support PIC, -DPIC is meaningless:
13126 *djgpp*)
13127 lt_prog_compiler_pic=
13128 ;;
13129 *)
13130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13131 ;;
13132 esac
13133
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13135 printf %s "checking for $compiler option to produce PIC... " >&6; }
13136 if test ${lt_cv_prog_compiler_pic+y}
13137 then :
13138 printf %s "(cached) " >&6
13139 else case e in #(
13140 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13141 esac
13142 fi
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13144 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13145 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13146
13147 #
13148 # Check to make sure the PIC flag actually works.
13149 #
13150 if test -n "$lt_prog_compiler_pic"; then
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13152 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13153 if test ${lt_cv_prog_compiler_pic_works+y}
13154 then :
13155 printf %s "(cached) " >&6
13156 else case e in #(
13157 e) lt_cv_prog_compiler_pic_works=no
13158 ac_outfile=conftest.$ac_objext
13159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13161 # Insert the option either (1) after the last *FLAGS variable, or
13162 # (2) before a word containing "conftest.", or (3) at the end.
13163 # Note that $ac_compile itself does not contain backslashes and begins
13164 # with a dollar sign (not a hyphen), so the echo should work correctly.
13165 # The option is referenced via a variable to avoid confusing sed.
13166 lt_compile=`echo "$ac_compile" | $SED \
13167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13169 -e 's:$: $lt_compiler_flag:'`
13170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13171 (eval "$lt_compile" 2>conftest.err)
13172 ac_status=$?
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 if (exit $ac_status) && test -s "$ac_outfile"; then
13176 # The compiler can only warn and ignore the option if not recognized
13177 # So say no if there are warnings other than the usual output.
13178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13181 lt_cv_prog_compiler_pic_works=yes
13182 fi
13183 fi
13184 $RM conftest*
13185 ;;
13186 esac
13187 fi
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13189 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13190
13191 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13192 case $lt_prog_compiler_pic in
13193 "" | " "*) ;;
13194 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13195 esac
13196 else
13197 lt_prog_compiler_pic=
13198 lt_prog_compiler_can_build_shared=no
13199 fi
13200
13201 fi
13202
13203
13204
13205
13206
13207 #
13208 # Check to make sure the static flag actually works.
13209 #
13210 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13212 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13213 if test ${lt_cv_prog_compiler_static_works+y}
13214 then :
13215 printf %s "(cached) " >&6
13216 else case e in #(
13217 e) lt_cv_prog_compiler_static_works=no
13218 save_LDFLAGS=$LDFLAGS
13219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13222 # The linker can only warn and ignore the option if not recognized
13223 # So say no if there are warnings
13224 if test -s conftest.err; then
13225 # Append any errors to the config.log.
13226 cat conftest.err 1>&5
13227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13229 if diff conftest.exp conftest.er2 >/dev/null; then
13230 lt_cv_prog_compiler_static_works=yes
13231 fi
13232 else
13233 lt_cv_prog_compiler_static_works=yes
13234 fi
13235 fi
13236 $RM -r conftest*
13237 LDFLAGS=$save_LDFLAGS
13238 ;;
13239 esac
13240 fi
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13242 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13243
13244 if test yes = "$lt_cv_prog_compiler_static_works"; then
13245 :
13246 else
13247 lt_prog_compiler_static=
13248 fi
13249
13250
13251
13252 ='-fPIC'
13253 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13254 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'
13255 archive_cmds_need_lc=no
13256 no_undefined_flag=
13257 ;;
13258
13259 *)
13260 dynamic_linker=no
13261 ;;
13262 esac
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13264 printf "%s\n" "$dynamic_linker" >&6; }
13265 test no = "$dynamic_linker" && can_build_shared=no
13266
13267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13268 if test yes = "$GCC"; then
13269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13270 fi
13271
13272 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13273 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13274 fi
13275
13276 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13277 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13278 fi
13279
13280 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13281 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13282
13283 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13284 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13285
13286 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13287 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13386 printf %s "checking how to hardcode library paths into programs... " >&6; }
13387 hardcode_action=
13388 if test -n "$hardcode_libdir_flag_spec" ||
13389 test -n "$runpath_var" ||
13390 test yes = "$hardcode_automatic"; then
13391
13392 # We can hardcode non-existent directories.
13393 if test no != "$hardcode_direct" &&
13394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13395 # have to relink, otherwise we might link with an installed library
13396 # when we should be linking with a yet-to-be-installed one
13397 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13398 test no != "$hardcode_minus_L"; then
13399 # Linking always hardcodes the temporary library directory.
13400 hardcode_action=relink
13401 else
13402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13403 hardcode_action=immediate
13404 fi
13405 else
13406 # We cannot hardcode anything, or else we can only hardcode existing
13407 # directories.
13408 hardcode_action=unsupported
13409 fi
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13411 printf "%s\n" "$hardcode_action" >&6; }
13412
13413 if test relink = "$hardcode_action" ||
13414 test yes = "$inherit_rpath"; then
13415 # Fast installation is not supported
13416 enable_fast_install=no
13417 elif test yes = "$shlibpath_overrides_runpath" ||
13418 test no = "$enable_shared"; then
13419 # Fast installation is not necessary
13420 enable_fast_install=needless
13421 fi
13422
13423
13424
13425
13426
13427
13428 if test yes != "$enable_dlopen"; then
13429 enable_dlopen=unknown
13430 enable_dlopen_self=unknown
13431 enable_dlopen_self_static=unknown
13432 else
13433 lt_cv_dlopen=no
13434 lt_cv_dlopen_libs=
13435
13436 case $host_os in
13437 beos*)
13438 lt_cv_dlopen=load_add_on
13439 lt_cv_dlopen_libs=
13440 lt_cv_dlopen_self=yes
13441 ;;
13442
13443 mingw* | windows* | pw32* | cegcc*)
13444 lt_cv_dlopen=LoadLibrary
13445 lt_cv_dlopen_libs=
13446 ;;
13447
13448 cygwin*)
13449 lt_cv_dlopen=dlopen
13450 lt_cv_dlopen_libs=
13451 ;;
13452
13453 darwin*)
13454 # if libdl is installed we need to link against it
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13456 printf %s "checking for dlopen in -ldl... " >&6; }
13457 if test ${ac_cv_lib_dl_dlopen+y}
13458 then :
13459 printf %s "(cached) " >&6
13460 else case e in #(
13461 e) ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-ldl $LIBS"
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply.
13469 The 'extern "C"' is for builds by C++ compilers;
13470 although this is not generally supported in C code supporting it here
13471 has little cost and some practical benefit (sr 110532). */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char dlopen (void);
13476 int
13477 main (void)
13478 {
13479 return dlopen ();
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"
13485 then :
13486 ac_cv_lib_dl_dlopen=yes
13487 else case e in #(
13488 e) ac_cv_lib_dl_dlopen=no ;;
13489 esac
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS ;;
13494 esac
13495 fi
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13497 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13498 if test "x$ac_cv_lib_dl_dlopen" = xyes
13499 then :
13500 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13501 else case e in #(
13502 e)
13503 lt_cv_dlopen=dyld
13504 lt_cv_dlopen_libs=
13505 lt_cv_dlopen_self=yes
13506 ;;
13507 esac
13508 fi
13509
13510 ;;
13511
13512 tpf*)
13513 # Don't try to run any link tests for TPF. We know it's impossible
13514 # because TPF is a cross-compiler, and we know how we open DSOs.
13515 lt_cv_dlopen=dlopen
13516 lt_cv_dlopen_libs=
13517 lt_cv_dlopen_self=no
13518 ;;
13519
13520 *)
13521 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13522 if test "x$ac_cv_func_shl_load" = xyes
13523 then :
13524 lt_cv_dlopen=shl_load
13525 else case e in #(
13526 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13527 printf %s "checking for shl_load in -ldld... " >&6; }
13528 if test ${ac_cv_lib_dld_shl_load+y}
13529 then :
13530 printf %s "(cached) " >&6
13531 else case e in #(
13532 e) ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-ldld $LIBS"
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536
13537 /* Override any GCC internal prototype to avoid an error.
13538 Use char because int might match the return type of a GCC
13539 builtin and then its argument prototype would still apply.
13540 The 'extern "C"' is for builds by C++ compilers;
13541 although this is not generally supported in C code supporting it here
13542 has little cost and some practical benefit (sr 110532). */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char shl_load (void);
13547 int
13548 main (void)
13549 {
13550 return shl_load ();
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"
13556 then :
13557 ac_cv_lib_dld_shl_load=yes
13558 else case e in #(
13559 e) ac_cv_lib_dld_shl_load=no ;;
13560 esac
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13563 conftest$ac_exeext conftest.$ac_ext
13564 LIBS=$ac_check_lib_save_LIBS ;;
13565 esac
13566 fi
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13568 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13569 if test "x$ac_cv_lib_dld_shl_load" = xyes
13570 then :
13571 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13572 else case e in #(
13573 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13574 if test "x$ac_cv_func_dlopen" = xyes
13575 then :
13576 lt_cv_dlopen=dlopen
13577 else case e in #(
13578 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13579 printf %s "checking for dlopen in -ldl... " >&6; }
13580 if test ${ac_cv_lib_dl_dlopen+y}
13581 then :
13582 printf %s "(cached) " >&6
13583 else case e in #(
13584 e) ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-ldl $LIBS"
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply.
13592 The 'extern "C"' is for builds by C++ compilers;
13593 although this is not generally supported in C code supporting it here
13594 has little cost and some practical benefit (sr 110532). */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char dlopen (void);
13599 int
13600 main (void)
13601 {
13602 return dlopen ();
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"
13608 then :
13609 ac_cv_lib_dl_dlopen=yes
13610 else case e in #(
13611 e) ac_cv_lib_dl_dlopen=no ;;
13612 esac
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13615 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS ;;
13617 esac
13618 fi
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13620 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13621 if test "x$ac_cv_lib_dl_dlopen" = xyes
13622 then :
13623 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13624 else case e in #(
13625 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13626 printf %s "checking for dlopen in -lsvld... " >&6; }
13627 if test ${ac_cv_lib_svld_dlopen+y}
13628 then :
13629 printf %s "(cached) " >&6
13630 else case e in #(
13631 e) ac_check_lib_save_LIBS=$LIBS
13632 LIBS="-lsvld $LIBS"
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply.
13639 The 'extern "C"' is for builds by C++ compilers;
13640 although this is not generally supported in C code supporting it here
13641 has little cost and some practical benefit (sr 110532). */
13642 #ifdef __cplusplus
13643 extern "C"
13644 #endif
13645 char dlopen (void);
13646 int
13647 main (void)
13648 {
13649 return dlopen ();
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_c_try_link "$LINENO"
13655 then :
13656 ac_cv_lib_svld_dlopen=yes
13657 else case e in #(
13658 e) ac_cv_lib_svld_dlopen=no ;;
13659 esac
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13662 conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS ;;
13664 esac
13665 fi
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13667 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13668 if test "x$ac_cv_lib_svld_dlopen" = xyes
13669 then :
13670 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13671 else case e in #(
13672 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13673 printf %s "checking for dld_link in -ldld... " >&6; }
13674 if test ${ac_cv_lib_dld_dld_link+y}
13675 then :
13676 printf %s "(cached) " >&6
13677 else case e in #(
13678 e) ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-ldld $LIBS"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682
13683 /* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply.
13686 The 'extern "C"' is for builds by C++ compilers;
13687 although this is not generally supported in C code supporting it here
13688 has little cost and some practical benefit (sr 110532). */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 char dld_link (void);
13693 int
13694 main (void)
13695 {
13696 return dld_link ();
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_link "$LINENO"
13702 then :
13703 ac_cv_lib_dld_dld_link=yes
13704 else case e in #(
13705 e) ac_cv_lib_dld_dld_link=no ;;
13706 esac
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS ;;
13711 esac
13712 fi
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13714 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13715 if test "x$ac_cv_lib_dld_dld_link" = xyes
13716 then :
13717 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13718 fi
13719
13720 ;;
13721 esac
13722 fi
13723
13724 ;;
13725 esac
13726 fi
13727
13728 ;;
13729 esac
13730 fi
13731
13732 ;;
13733 esac
13734 fi
13735
13736 ;;
13737 esac
13738 fi
13739
13740 ;;
13741 esac
13742
13743 if test no = "$lt_cv_dlopen"; then
13744 enable_dlopen=no
13745 else
13746 enable_dlopen=yes
13747 fi
13748
13749 case $lt_cv_dlopen in
13750 dlopen)
13751 save_CPPFLAGS=$CPPFLAGS
13752 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13753
13754 save_LDFLAGS=$LDFLAGS
13755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13756
13757 save_LIBS=$LIBS
13758 LIBS="$lt_cv_dlopen_libs $LIBS"
13759
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13761 printf %s "checking whether a program can dlopen itself... " >&6; }
13762 if test ${lt_cv_dlopen_self+y}
13763 then :
13764 printf %s "(cached) " >&6
13765 else case e in #(
13766 e) if test yes = "$cross_compiling"; then :
13767 lt_cv_dlopen_self=cross
13768 else
13769 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13770 lt_status=$lt_dlunknown
13771 cat > conftest.$ac_ext <<_LT_EOF
13772 #line $LINENO "configure"
13773 #include "confdefs.h"
13774
13775 #if HAVE_DLFCN_H
13776 #include <dlfcn.h>
13777 #endif
13778
13779 #include <stdio.h>
13780
13781 #ifdef RTLD_GLOBAL
13782 # define LT_DLGLOBAL RTLD_GLOBAL
13783 #else
13784 # ifdef DL_GLOBAL
13785 # define LT_DLGLOBAL DL_GLOBAL
13786 # else
13787 # define LT_DLGLOBAL 0
13788 # endif
13789 #endif
13790
13791 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13792 find out it does not work in some platform. */
13793 #ifndef LT_DLLAZY_OR_NOW
13794 # ifdef RTLD_LAZY
13795 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13796 # else
13797 # ifdef DL_LAZY
13798 # define LT_DLLAZY_OR_NOW DL_LAZY
13799 # else
13800 # ifdef RTLD_NOW
13801 # define LT_DLLAZY_OR_NOW RTLD_NOW
13802 # else
13803 # ifdef DL_NOW
13804 # define LT_DLLAZY_OR_NOW DL_NOW
13805 # else
13806 # define LT_DLLAZY_OR_NOW 0
13807 # endif
13808 # endif
13809 # endif
13810 # endif
13811 #endif
13812
13813 /* When -fvisibility=hidden is used, assume the code has been annotated
13814 correspondingly for the symbols needed. */
13815 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13816 int fnord (void) __attribute__((visibility("default")));
13817 #endif
13818
13819 int fnord (void) { return 42; }
13820 int main (void)
13821 {
13822 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13823 int status = $lt_dlunknown;
13824
13825 if (self)
13826 {
13827 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13828 else
13829 {
13830 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13831 else puts (dlerror ());
13832 }
13833 /* dlclose (self); */
13834 }
13835 else
13836 puts (dlerror ());
13837
13838 return status;
13839 }
13840 _LT_EOF
13841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13842 (eval $ac_link) 2>&5
13843 ac_status=$?
13844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13846 (./conftest; exit; ) >&5 2>/dev/null
13847 lt_status=$?
13848 case x$lt_status in
13849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13851 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13852 esac
13853 else :
13854 # compilation failed
13855 lt_cv_dlopen_self=no
13856 fi
13857 fi
13858 rm -fr conftest*
13859
13860 ;;
13861 esac
13862 fi
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13864 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13865
13866 if test yes = "$lt_cv_dlopen_self"; then
13867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13869 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13870 if test ${lt_cv_dlopen_self_static+y}
13871 then :
13872 printf %s "(cached) " >&6
13873 else case e in #(
13874 e) if test yes = "$cross_compiling"; then :
13875 lt_cv_dlopen_self_static=cross
13876 else
13877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13878 lt_status=$lt_dlunknown
13879 cat > conftest.$ac_ext <<_LT_EOF
13880 #line $LINENO "configure"
13881 #include "confdefs.h"
13882
13883 #if HAVE_DLFCN_H
13884 #include <dlfcn.h>
13885 #endif
13886
13887 #include <stdio.h>
13888
13889 #ifdef RTLD_GLOBAL
13890 # define LT_DLGLOBAL RTLD_GLOBAL
13891 #else
13892 # ifdef DL_GLOBAL
13893 # define LT_DLGLOBAL DL_GLOBAL
13894 # else
13895 # define LT_DLGLOBAL 0
13896 # endif
13897 #endif
13898
13899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13900 find out it does not work in some platform. */
13901 #ifndef LT_DLLAZY_OR_NOW
13902 # ifdef RTLD_LAZY
13903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13904 # else
13905 # ifdef DL_LAZY
13906 # define LT_DLLAZY_OR_NOW DL_LAZY
13907 # else
13908 # ifdef RTLD_NOW
13909 # define LT_DLLAZY_OR_NOW RTLD_NOW
13910 # else
13911 # ifdef DL_NOW
13912 # define LT_DLLAZY_OR_NOW DL_NOW
13913 # else
13914 # define LT_DLLAZY_OR_NOW 0
13915 # endif
13916 # endif
13917 # endif
13918 # endif
13919 #endif
13920
13921 /* When -fvisibility=hidden is used, assume the code has been annotated
13922 correspondingly for the symbols needed. */
13923 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13924 int fnord (void) __attribute__((visibility("default")));
13925 #endif
13926
13927 int fnord (void) { return 42; }
13928 int main (void)
13929 {
13930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13931 int status = $lt_dlunknown;
13932
13933 if (self)
13934 {
13935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13936 else
13937 {
13938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13939 else puts (dlerror ());
13940 }
13941 /* dlclose (self); */
13942 }
13943 else
13944 puts (dlerror ());
13945
13946 return status;
13947 }
13948 _LT_EOF
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13950 (eval $ac_link) 2>&5
13951 ac_status=$?
13952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13954 (./conftest; exit; ) >&5 2>/dev/null
13955 lt_status=$?
13956 case x$lt_status in
13957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13959 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13960 esac
13961 else :
13962 # compilation failed
13963 lt_cv_dlopen_self_static=no
13964 fi
13965 fi
13966 rm -fr conftest*
13967
13968 ;;
13969 esac
13970 fi
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13972 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13973 fi
13974
13975 CPPFLAGS=$save_CPPFLAGS
13976 LDFLAGS=$save_LDFLAGS
13977 LIBS=$save_LIBS
13978 ;;
13979 esac
13980
13981 case $lt_cv_dlopen_self in
13982 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13983 *) enable_dlopen_self=unknown ;;
13984 esac
13985
13986 case $lt_cv_dlopen_self_static in
13987 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13988 *) enable_dlopen_self_static=unknown ;;
13989 esac
13990 fi
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008 striplib=
14009 old_striplib=
14010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14011 printf %s "checking whether stripping libraries is possible... " >&6; }
14012 if test -z "$STRIP"; then
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 printf "%s\n" "no" >&6; }
14015 else
14016 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14017 old_striplib="$STRIP --strip-debug"
14018 striplib="$STRIP --strip-unneeded"
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14020 printf "%s\n" "yes" >&6; }
14021 else
14022 case $host_os in
14023 darwin*)
14024 # FIXME - insert some real tests, host_os isn't really good enough
14025 striplib="$STRIP -x"
14026 old_striplib="$STRIP -S"
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14028 printf "%s\n" "yes" >&6; }
14029 ;;
14030 freebsd*)
14031 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14032 old_striplib="$STRIP --strip-debug"
14033 striplib="$STRIP --strip-unneeded"
14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14035 printf "%s\n" "yes" >&6; }
14036 else
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 printf "%s\n" "no" >&6; }
14039 fi
14040 ;;
14041 *)
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 printf "%s\n" "no" >&6; }
14044 ;;
14045 esac
14046 fi
14047 fi
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060 # Report what library types will actually be built
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14062 printf %s "checking if libtool supports shared libraries... " >&6; }
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14064 printf "%s\n" "$can_build_shared" >&6; }
14065
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14067 printf %s "checking whether to build shared libraries... " >&6; }
14068 test no = "$can_build_shared" && enable_shared=no
14069
14070 # On AIX, shared libraries and static libraries use the same namespace, and
14071 # are all built from PIC.
14072 case $host_os in
14073 aix3*)
14074 test yes = "$enable_shared" && enable_static=no
14075 if test -n "$RANLIB"; then
14076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14077 postinstall_cmds='$RANLIB $lib'
14078 fi
14079 ;;
14080
14081 aix[4-9]*)
14082 if test ia64 != "$host_cpu"; then
14083 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14084 yes,aix,yes) ;; # shared object as lib.so file only
14085 yes,svr4,*) ;; # shared object as lib.so archive member only
14086 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14087 esac
14088 fi
14089 ;;
14090 esac
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14092 printf "%s\n" "$enable_shared" >&6; }
14093
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14095 printf %s "checking whether to build static libraries... " >&6; }
14096 # Make sure either enable_shared or enable_static is yes.
14097 test yes = "$enable_shared" || enable_static=yes
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14099 printf "%s\n" "$enable_static" >&6; }
14100
14101
14102
14103
14104 fi
14105 ac_ext=c
14106 ac_cpp='$CPP $CPPFLAGS'
14107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
14111 CC=$lt_save_CC
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127 ac_config_commands="$ac_config_commands libtool"
14128
14129
14130
14131
14132 # Only expand once:
14133
14134
14135
14136
14137 includedir="${includedir}/${PACKAGE_NAME}"
14138
14139
14140 AM_DEFAULT_VERBOSITY=0
14141
14142 ac_ext=c
14143 ac_cpp='$CPP $CPPFLAGS'
14144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14147 if test -n "$ac_tool_prefix"; then
14148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151 printf %s "checking for $ac_word... " >&6; }
14152 if test ${ac_cv_prog_CC+y}
14153 then :
14154 printf %s "(cached) " >&6
14155 else case e in #(
14156 e) if test -n "$CC"; then
14157 ac_cv_prog_CC="$CC" # Let the user override the test.
14158 else
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14161 do
14162 IFS=$as_save_IFS
14163 case $as_dir in #(((
14164 '') as_dir=./ ;;
14165 */) ;;
14166 *) as_dir=$as_dir/ ;;
14167 esac
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14172 break 2
14173 fi
14174 done
14175 done
14176 IFS=$as_save_IFS
14177
14178 fi ;;
14179 esac
14180 fi
14181 CC=$ac_cv_prog_CC
14182 if test -n "$CC"; then
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14184 printf "%s\n" "$CC" >&6; }
14185 else
14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 printf "%s\n" "no" >&6; }
14188 fi
14189
14190
14191 fi
14192 if test -z "$ac_cv_prog_CC"; then
14193 ac_ct_CC=$CC
14194 # Extract the first word of "gcc", so it can be a program name with args.
14195 set dummy gcc; ac_word=$2
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 printf %s "checking for $ac_word... " >&6; }
14198 if test ${ac_cv_prog_ac_ct_CC+y}
14199 then :
14200 printf %s "(cached) " >&6
14201 else case e in #(
14202 e) if test -n "$ac_ct_CC"; then
14203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14204 else
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14207 do
14208 IFS=$as_save_IFS
14209 case $as_dir in #(((
14210 '') as_dir=./ ;;
14211 */) ;;
14212 *) as_dir=$as_dir/ ;;
14213 esac
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_ac_ct_CC="gcc"
14217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14218 break 2
14219 fi
14220 done
14221 done
14222 IFS=$as_save_IFS
14223
14224 fi ;;
14225 esac
14226 fi
14227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14228 if test -n "$ac_ct_CC"; then
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14230 printf "%s\n" "$ac_ct_CC" >&6; }
14231 else
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 printf "%s\n" "no" >&6; }
14234 fi
14235
14236 if test "x$ac_ct_CC" = x; then
14237 CC=""
14238 else
14239 case $cross_compiling:$ac_tool_warned in
14240 yes:)
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14243 ac_tool_warned=yes ;;
14244 esac
14245 CC=$ac_ct_CC
14246 fi
14247 else
14248 CC="$ac_cv_prog_CC"
14249 fi
14250
14251 if test -z "$CC"; then
14252 if test -n "$ac_tool_prefix"; then
14253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14254 set dummy ${ac_tool_prefix}cc; ac_word=$2
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 printf %s "checking for $ac_word... " >&6; }
14257 if test ${ac_cv_prog_CC+y}
14258 then :
14259 printf %s "(cached) " >&6
14260 else case e in #(
14261 e) if test -n "$CC"; then
14262 ac_cv_prog_CC="$CC" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267 IFS=$as_save_IFS
14268 case $as_dir in #(((
14269 '') as_dir=./ ;;
14270 */) ;;
14271 *) as_dir=$as_dir/ ;;
14272 esac
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14275 ac_cv_prog_CC="${ac_tool_prefix}cc"
14276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14277 break 2
14278 fi
14279 done
14280 done
14281 IFS=$as_save_IFS
14282
14283 fi ;;
14284 esac
14285 fi
14286 CC=$ac_cv_prog_CC
14287 if test -n "$CC"; then
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14289 printf "%s\n" "$CC" >&6; }
14290 else
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 printf "%s\n" "no" >&6; }
14293 fi
14294
14295
14296 fi
14297 fi
14298 if test -z "$CC"; then
14299 # Extract the first word of "cc", so it can be a program name with args.
14300 set dummy cc; ac_word=$2
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302 printf %s "checking for $ac_word... " >&6; }
14303 if test ${ac_cv_prog_CC+y}
14304 then :
14305 printf %s "(cached) " >&6
14306 else case e in #(
14307 e) if test -n "$CC"; then
14308 ac_cv_prog_CC="$CC" # Let the user override the test.
14309 else
14310 ac_prog_rejected=no
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314 IFS=$as_save_IFS
14315 case $as_dir in #(((
14316 '') as_dir=./ ;;
14317 */) ;;
14318 *) as_dir=$as_dir/ ;;
14319 esac
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14322 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14323 ac_prog_rejected=yes
14324 continue
14325 fi
14326 ac_cv_prog_CC="cc"
14327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14328 break 2
14329 fi
14330 done
14331 done
14332 IFS=$as_save_IFS
14333
14334 if test $ac_prog_rejected = yes; then
14335 # We found a bogon in the path, so make sure we never use it.
14336 set dummy $ac_cv_prog_CC
14337 shift
14338 if test $# != 0; then
14339 # We chose a different compiler from the bogus one.
14340 # However, it has the same basename, so the bogon will be chosen
14341 # first if we set CC to just the basename; use the full file name.
14342 shift
14343 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14344 fi
14345 fi
14346 fi ;;
14347 esac
14348 fi
14349 CC=$ac_cv_prog_CC
14350 if test -n "$CC"; then
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14352 printf "%s\n" "$CC" >&6; }
14353 else
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 printf "%s\n" "no" >&6; }
14356 fi
14357
14358
14359 fi
14360 if test -z "$CC"; then
14361 if test -n "$ac_tool_prefix"; then
14362 for ac_prog in cl.exe
14363 do
14364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14367 printf %s "checking for $ac_word... " >&6; }
14368 if test ${ac_cv_prog_CC+y}
14369 then :
14370 printf %s "(cached) " >&6
14371 else case e in #(
14372 e) if test -n "$CC"; then
14373 ac_cv_prog_CC="$CC" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14377 do
14378 IFS=$as_save_IFS
14379 case $as_dir in #(((
14380 '') as_dir=./ ;;
14381 */) ;;
14382 *) as_dir=$as_dir/ ;;
14383 esac
14384 for ac_exec_ext in '' $ac_executable_extensions; do
14385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14388 break 2
14389 fi
14390 done
14391 done
14392 IFS=$as_save_IFS
14393
14394 fi ;;
14395 esac
14396 fi
14397 CC=$ac_cv_prog_CC
14398 if test -n "$CC"; then
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14400 printf "%s\n" "$CC" >&6; }
14401 else
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403 printf "%s\n" "no" >&6; }
14404 fi
14405
14406
14407 test -n "$CC" && break
14408 done
14409 fi
14410 if test -z "$CC"; then
14411 ac_ct_CC=$CC
14412 for ac_prog in cl.exe
14413 do
14414 # Extract the first word of "$ac_prog", so it can be a program name with args.
14415 set dummy $ac_prog; ac_word=$2
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 printf %s "checking for $ac_word... " >&6; }
14418 if test ${ac_cv_prog_ac_ct_CC+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else case e in #(
14422 e) if test -n "$ac_ct_CC"; then
14423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14424 else
14425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14427 do
14428 IFS=$as_save_IFS
14429 case $as_dir in #(((
14430 '') as_dir=./ ;;
14431 */) ;;
14432 *) as_dir=$as_dir/ ;;
14433 esac
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14436 ac_cv_prog_ac_ct_CC="$ac_prog"
14437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14438 break 2
14439 fi
14440 done
14441 done
14442 IFS=$as_save_IFS
14443
14444 fi ;;
14445 esac
14446 fi
14447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14448 if test -n "$ac_ct_CC"; then
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14450 printf "%s\n" "$ac_ct_CC" >&6; }
14451 else
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453 printf "%s\n" "no" >&6; }
14454 fi
14455
14456
14457 test -n "$ac_ct_CC" && break
14458 done
14459
14460 if test "x$ac_ct_CC" = x; then
14461 CC=""
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464 yes:)
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467 ac_tool_warned=yes ;;
14468 esac
14469 CC=$ac_ct_CC
14470 fi
14471 fi
14472
14473 fi
14474 if test -z "$CC"; then
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14477 set dummy ${ac_tool_prefix}clang; ac_word=$2
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 printf %s "checking for $ac_word... " >&6; }
14480 if test ${ac_cv_prog_CC+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else case e in #(
14484 e) if test -n "$CC"; then
14485 ac_cv_prog_CC="$CC" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490 IFS=$as_save_IFS
14491 case $as_dir in #(((
14492 '') as_dir=./ ;;
14493 */) ;;
14494 *) as_dir=$as_dir/ ;;
14495 esac
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_CC="${ac_tool_prefix}clang"
14499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14500 break 2
14501 fi
14502 done
14503 done
14504 IFS=$as_save_IFS
14505
14506 fi ;;
14507 esac
14508 fi
14509 CC=$ac_cv_prog_CC
14510 if test -n "$CC"; then
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14512 printf "%s\n" "$CC" >&6; }
14513 else
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 printf "%s\n" "no" >&6; }
14516 fi
14517
14518
14519 fi
14520 if test -z "$ac_cv_prog_CC"; then
14521 ac_ct_CC=$CC
14522 # Extract the first word of "clang", so it can be a program name with args.
14523 set dummy clang; ac_word=$2
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 printf %s "checking for $ac_word... " >&6; }
14526 if test ${ac_cv_prog_ac_ct_CC+y}
14527 then :
14528 printf %s "(cached) " >&6
14529 else case e in #(
14530 e) if test -n "$ac_ct_CC"; then
14531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14532 else
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14535 do
14536 IFS=$as_save_IFS
14537 case $as_dir in #(((
14538 '') as_dir=./ ;;
14539 */) ;;
14540 *) as_dir=$as_dir/ ;;
14541 esac
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14544 ac_cv_prog_ac_ct_CC="clang"
14545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14546 break 2
14547 fi
14548 done
14549 done
14550 IFS=$as_save_IFS
14551
14552 fi ;;
14553 esac
14554 fi
14555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14556 if test -n "$ac_ct_CC"; then
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14558 printf "%s\n" "$ac_ct_CC" >&6; }
14559 else
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 printf "%s\n" "no" >&6; }
14562 fi
14563
14564 if test "x$ac_ct_CC" = x; then
14565 CC=""
14566 else
14567 case $cross_compiling:$ac_tool_warned in
14568 yes:)
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14572 esac
14573 CC=$ac_ct_CC
14574 fi
14575 else
14576 CC="$ac_cv_prog_CC"
14577 fi
14578
14579 fi
14580
14581
14582 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14583 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14584 as_fn_error $? "no acceptable C compiler found in \$PATH
14585 See 'config.log' for more details" "$LINENO" 5; }
14586
14587 # Provide some information about the compiler.
14588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14589 set X $ac_compile
14590 ac_compiler=$2
14591 for ac_option in --version -v -V -qversion -version; do
14592 { { ac_try="$ac_compiler $ac_option >&5"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14598 printf "%s\n" "$ac_try_echo"; } >&5
14599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14600 ac_status=$?
14601 if test -s conftest.err; then
14602 sed '10a\
14603 ... rest of stderr output deleted ...
14604 10q' conftest.err >conftest.er1
14605 cat conftest.er1 >&5
14606 fi
14607 rm -f conftest.er1 conftest.err
14608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }
14610 done
14611
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14613 printf %s "checking whether the compiler supports GNU C... " >&6; }
14614 if test ${ac_cv_c_compiler_gnu+y}
14615 then :
14616 printf %s "(cached) " >&6
14617 else case e in #(
14618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620
14621 int
14622 main (void)
14623 {
14624 #ifndef __GNUC__
14625 choke me
14626 #endif
14627
14628 ;
14629 return 0;
14630 }
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"
14633 then :
14634 ac_compiler_gnu=yes
14635 else case e in #(
14636 e) ac_compiler_gnu=no ;;
14637 esac
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14641 ;;
14642 esac
14643 fi
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14645 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14647
14648 if test $ac_compiler_gnu = yes; then
14649 GCC=yes
14650 else
14651 GCC=
14652 fi
14653 ac_test_CFLAGS=${CFLAGS+y}
14654 ac_save_CFLAGS=$CFLAGS
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14656 printf %s "checking whether $CC accepts -g... " >&6; }
14657 if test ${ac_cv_prog_cc_g+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else case e in #(
14661 e) ac_save_c_werror_flag=$ac_c_werror_flag
14662 ac_c_werror_flag=yes
14663 ac_cv_prog_cc_g=no
14664 CFLAGS="-g"
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667
14668 int
14669 main (void)
14670 {
14671
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_c_try_compile "$LINENO"
14677 then :
14678 ac_cv_prog_cc_g=yes
14679 else case e in #(
14680 e) CFLAGS=""
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14683
14684 int
14685 main (void)
14686 {
14687
14688 ;
14689 return 0;
14690 }
14691 _ACEOF
14692 if ac_fn_c_try_compile "$LINENO"
14693 then :
14694
14695 else case e in #(
14696 e) ac_c_werror_flag=$ac_save_c_werror_flag
14697 CFLAGS="-g"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700
14701 int
14702 main (void)
14703 {
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_compile "$LINENO"
14710 then :
14711 ac_cv_prog_cc_g=yes
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14714 esac
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14717 esac
14718 fi
14719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14720 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14721 esac
14722 fi
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14724 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14725 if test $ac_test_CFLAGS; then
14726 CFLAGS=$ac_save_CFLAGS
14727 elif test $ac_cv_prog_cc_g = yes; then
14728 if test "$GCC" = yes; then
14729 CFLAGS="-g -O2"
14730 else
14731 CFLAGS="-g"
14732 fi
14733 else
14734 if test "$GCC" = yes; then
14735 CFLAGS="-O2"
14736 else
14737 CFLAGS=
14738 fi
14739 fi
14740 ac_prog_cc_stdc=no
14741 if test x$ac_prog_cc_stdc = xno
14742 then :
14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14744 printf %s "checking for $CC option to enable C11 features... " >&6; }
14745 if test ${ac_cv_prog_cc_c11+y}
14746 then :
14747 printf %s "(cached) " >&6
14748 else case e in #(
14749 e) ac_cv_prog_cc_c11=no
14750 ac_save_CC=$CC
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 $ac_c_conftest_c11_program
14754 _ACEOF
14755 for ac_arg in '' -std=gnu11
14756 do
14757 CC="$ac_save_CC $ac_arg"
14758 if ac_fn_c_try_compile "$LINENO"
14759 then :
14760 ac_cv_prog_cc_c11=$ac_arg
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext conftest.beam
14763 test "x$ac_cv_prog_cc_c11" != "xno" && break
14764 done
14765 rm -f conftest.$ac_ext
14766 CC=$ac_save_CC ;;
14767 esac
14768 fi
14769
14770 if test "x$ac_cv_prog_cc_c11" = xno
14771 then :
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14773 printf "%s\n" "unsupported" >&6; }
14774 else case e in #(
14775 e) if test "x$ac_cv_prog_cc_c11" = x
14776 then :
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14778 printf "%s\n" "none needed" >&6; }
14779 else case e in #(
14780 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14781 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14782 CC="$CC $ac_cv_prog_cc_c11" ;;
14783 esac
14784 fi
14785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14786 ac_prog_cc_stdc=c11 ;;
14787 esac
14788 fi
14789 fi
14790 if test x$ac_prog_cc_stdc = xno
14791 then :
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14793 printf %s "checking for $CC option to enable C99 features... " >&6; }
14794 if test ${ac_cv_prog_cc_c99+y}
14795 then :
14796 printf %s "(cached) " >&6
14797 else case e in #(
14798 e) ac_cv_prog_cc_c99=no
14799 ac_save_CC=$CC
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 $ac_c_conftest_c99_program
14803 _ACEOF
14804 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14805 do
14806 CC="$ac_save_CC $ac_arg"
14807 if ac_fn_c_try_compile "$LINENO"
14808 then :
14809 ac_cv_prog_cc_c99=$ac_arg
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.beam
14812 test "x$ac_cv_prog_cc_c99" != "xno" && break
14813 done
14814 rm -f conftest.$ac_ext
14815 CC=$ac_save_CC ;;
14816 esac
14817 fi
14818
14819 if test "x$ac_cv_prog_cc_c99" = xno
14820 then :
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14822 printf "%s\n" "unsupported" >&6; }
14823 else case e in #(
14824 e) if test "x$ac_cv_prog_cc_c99" = x
14825 then :
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14827 printf "%s\n" "none needed" >&6; }
14828 else case e in #(
14829 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14830 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14831 CC="$CC $ac_cv_prog_cc_c99" ;;
14832 esac
14833 fi
14834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14835 ac_prog_cc_stdc=c99 ;;
14836 esac
14837 fi
14838 fi
14839 if test x$ac_prog_cc_stdc = xno
14840 then :
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14842 printf %s "checking for $CC option to enable C89 features... " >&6; }
14843 if test ${ac_cv_prog_cc_c89+y}
14844 then :
14845 printf %s "(cached) " >&6
14846 else case e in #(
14847 e) ac_cv_prog_cc_c89=no
14848 ac_save_CC=$CC
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 $ac_c_conftest_c89_program
14852 _ACEOF
14853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14854 do
14855 CC="$ac_save_CC $ac_arg"
14856 if ac_fn_c_try_compile "$LINENO"
14857 then :
14858 ac_cv_prog_cc_c89=$ac_arg
14859 fi
14860 rm -f core conftest.err conftest.$ac_objext conftest.beam
14861 test "x$ac_cv_prog_cc_c89" != "xno" && break
14862 done
14863 rm -f conftest.$ac_ext
14864 CC=$ac_save_CC ;;
14865 esac
14866 fi
14867
14868 if test "x$ac_cv_prog_cc_c89" = xno
14869 then :
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14871 printf "%s\n" "unsupported" >&6; }
14872 else case e in #(
14873 e) if test "x$ac_cv_prog_cc_c89" = x
14874 then :
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14876 printf "%s\n" "none needed" >&6; }
14877 else case e in #(
14878 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14879 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14880 CC="$CC $ac_cv_prog_cc_c89" ;;
14881 esac
14882 fi
14883 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14884 ac_prog_cc_stdc=c89 ;;
14885 esac
14886 fi
14887 fi
14888
14889 ac_ext=c
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14894
14895
14896 ac_ext=c
14897 ac_cpp='$CPP $CPPFLAGS'
14898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14902 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14903 if test ${am_cv_prog_cc_c_o+y}
14904 then :
14905 printf %s "(cached) " >&6
14906 else case e in #(
14907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909
14910 int
14911 main (void)
14912 {
14913
14914 ;
14915 return 0;
14916 }
14917 _ACEOF
14918 # Make sure it works both with $CC and with simple cc.
14919 # Following AC_PROG_CC_C_O, we do the test twice because some
14920 # compilers refuse to overwrite an existing .o file with -o,
14921 # though they will create one.
14922 am_cv_prog_cc_c_o=yes
14923 for am_i in 1 2; do
14924 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14925 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } \
14929 && test -f conftest2.$ac_objext; then
14930 : OK
14931 else
14932 am_cv_prog_cc_c_o=no
14933 break
14934 fi
14935 done
14936 rm -f core conftest*
14937 unset am_i ;;
14938 esac
14939 fi
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14941 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14942 if test "$am_cv_prog_cc_c_o" != yes; then
14943 # Losing compiler, so override with the script.
14944 # FIXME: It is wrong to rewrite CC.
14945 # But if we don't then we get into trouble of one sort or another.
14946 # A longer-term fix would be to have automake use am__CC in this case,
14947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14948 CC="$am_aux_dir/compile $CC"
14949 fi
14950 ac_ext=c
14951 ac_cpp='$CPP $CPPFLAGS'
14952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14955
14956
14957 depcc="$CC" am_compiler_list=
14958
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14960 printf %s "checking dependency style of $depcc... " >&6; }
14961 if test ${am_cv_CC_dependencies_compiler_type+y}
14962 then :
14963 printf %s "(cached) " >&6
14964 else case e in #(
14965 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14966 # We make a subdir and do the tests there. Otherwise we can end up
14967 # making bogus files that we don't know about and never remove. For
14968 # instance it was reported that on HP-UX the gcc test will end up
14969 # making a dummy file named 'D' -- because '-MD' means "put the output
14970 # in D".
14971 rm -rf conftest.dir
14972 mkdir conftest.dir
14973 # Copy depcomp to subdir because otherwise we won't find it if we're
14974 # using a relative directory.
14975 cp "$am_depcomp" conftest.dir
14976 cd conftest.dir
14977 # We will build objects and dependencies in a subdirectory because
14978 # it helps to detect inapplicable dependency modes. For instance
14979 # both Tru64's cc and ICC support -MD to output dependencies as a
14980 # side effect of compilation, but ICC will put the dependencies in
14981 # the current directory while Tru64 will put them in the object
14982 # directory.
14983 mkdir sub
14984
14985 am_cv_CC_dependencies_compiler_type=none
14986 if test "$am_compiler_list" = ""; then
14987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14988 fi
14989 am__universal=false
14990 case " $depcc " in #(
14991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14992 esac
14993
14994 for depmode in $am_compiler_list; do
14995 # Setup a source with many dependencies, because some compilers
14996 # like to wrap large dependency lists on column 80 (with \), and
14997 # we should not choose a depcomp mode which is confused by this.
14998 #
14999 # We need to recreate these files for each test, as the compiler may
15000 # overwrite some of them when testing with obscure command lines.
15001 # This happens at least with the AIX C compiler.
15002 : > sub/conftest.c
15003 for i in 1 2 3 4 5 6; do
15004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15006 # Solaris 10 /bin/sh.
15007 echo '/* dummy */' > sub/conftst$i.h
15008 done
15009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15010
15011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15012 # mode. It turns out that the SunPro C++ compiler does not properly
15013 # handle '-M -o', and we need to detect this. Also, some Intel
15014 # versions had trouble with output in subdirs.
15015 am__obj=sub/conftest.${OBJEXT-o}
15016 am__minus_obj="-o $am__obj"
15017 case $depmode in
15018 gcc)
15019 # This depmode causes a compiler race in universal mode.
15020 test "$am__universal" = false || continue
15021 ;;
15022 nosideeffect)
15023 # After this tag, mechanisms are not by side-effect, so they'll
15024 # only be used when explicitly requested.
15025 if test "x$enable_dependency_tracking" = xyes; then
15026 continue
15027 else
15028 break
15029 fi
15030 ;;
15031 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15032 # This compiler won't grok '-c -o', but also, the minuso test has
15033 # not run yet. These depmodes are late enough in the game, and
15034 # so weak that their functioning should not be impacted.
15035 am__obj=conftest.${OBJEXT-o}
15036 am__minus_obj=
15037 ;;
15038 none) break ;;
15039 esac
15040 if depmode=$depmode \
15041 source=sub/conftest.c object=$am__obj \
15042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15044 >/dev/null 2>conftest.err &&
15045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15049 # icc doesn't choke on unknown options, it will just issue warnings
15050 # or remarks (even with -Werror). So we grep stderr for any message
15051 # that says an option was ignored or not supported.
15052 # When given -MP, icc 7.0 and 7.1 complain thus:
15053 # icc: Command line warning: ignoring option '-M'; no argument required
15054 # The diagnosis changed in icc 8.0:
15055 # icc: Command line remark: option '-MP' not supported
15056 if (grep 'ignoring option' conftest.err ||
15057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15058 am_cv_CC_dependencies_compiler_type=$depmode
15059 break
15060 fi
15061 fi
15062 done
15063
15064 cd ..
15065 rm -rf conftest.dir
15066 else
15067 am_cv_CC_dependencies_compiler_type=none
15068 fi
15069 ;;
15070 esac
15071 fi
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15073 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
15074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15075
15076 if
15077 test "x$enable_dependency_tracking" != xno \
15078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15079 am__fastdepCC_TRUE=
15080 am__fastdepCC_FALSE='#'
15081 else
15082 am__fastdepCC_TRUE='#'
15083 am__fastdepCC_FALSE=
15084 fi
15085
15086
15087 if test -e penmp || test -e mp; then
15088 as_fn_error $? "AC_OPENMP clobbers files named 'mp' and 'penmp'. Aborting configure because one of these files already exists." "$LINENO" 5
15089 fi
15090 # Check whether --enable-openmp was given.
15091 if test ${enable_openmp+y}
15092 then :
15093 enableval=$enable_openmp;
15094 fi
15095
15096 OPENMP_CFLAGS=
15097 if test "$enable_openmp" != no; then
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
15099 printf %s "checking for $CC option to support OpenMP... " >&6; }
15100 if test ${ac_cv_prog_c_openmp+y}
15101 then :
15102 printf %s "(cached) " >&6
15103 else case e in #(
15104 e) ac_cv_prog_c_openmp='not found'
15105 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
15106 -Popenmp --openmp; do
15107
15108 ac_save_CFLAGS=$CFLAGS
15109 CFLAGS="$CFLAGS $ac_option"
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112
15113 #ifndef _OPENMP
15114 #error "OpenMP not supported"
15115 #endif
15116 #include <omp.h>
15117 int main (void) { return omp_get_num_threads (); }
15118
15119 _ACEOF
15120 if ac_fn_c_try_compile "$LINENO"
15121 then :
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124
15125 #ifndef _OPENMP
15126 #error "OpenMP not supported"
15127 #endif
15128 #include <omp.h>
15129 int main (void) { return omp_get_num_threads (); }
15130
15131 _ACEOF
15132 if ac_fn_c_try_link "$LINENO"
15133 then :
15134 ac_cv_prog_c_openmp=$ac_option
15135 else case e in #(
15136 e) ac_cv_prog_c_openmp='unsupported' ;;
15137 esac
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15140 conftest$ac_exeext conftest.$ac_ext
15141 fi
15142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15143 CFLAGS=$ac_save_CFLAGS
15144
15145 if test "$ac_cv_prog_c_openmp" != 'not found'; then
15146 break
15147 fi
15148 done
15149 if test "$ac_cv_prog_c_openmp" = 'not found'; then
15150 ac_cv_prog_c_openmp='unsupported'
15151 elif test "$ac_cv_prog_c_openmp" = ''; then
15152 ac_cv_prog_c_openmp='none needed'
15153 fi
15154 rm -f penmp mp ;;
15155 esac
15156 fi
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
15158 printf "%s\n" "$ac_cv_prog_c_openmp" >&6; }
15159 if test "$ac_cv_prog_c_openmp" != 'unsupported' && \
15160 test "$ac_cv_prog_c_openmp" != 'none needed'; then
15161 OPENMP_CFLAGS="$ac_cv_prog_c_openmp"
15162 fi
15163 fi
15164
15165
15166 CPPFLAGS="$CPPFLAGS $OPENMP_CFLAGS"
15167 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
15168
15169
15170
15171
15172
15173
15174
15175 ac_ext=cpp
15176 ac_cpp='$CXXCPP $CPPFLAGS'
15177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15180 if test -z "$CXX"; then
15181 if test -n "$CCC"; then
15182 CXX=$CCC
15183 else
15184 if test -n "$ac_tool_prefix"; then
15185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15186 do
15187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15190 printf %s "checking for $ac_word... " >&6; }
15191 if test ${ac_cv_prog_CXX+y}
15192 then :
15193 printf %s "(cached) " >&6
15194 else case e in #(
15195 e) if test -n "$CXX"; then
15196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15197 else
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15200 do
15201 IFS=$as_save_IFS
15202 case $as_dir in #(((
15203 '') as_dir=./ ;;
15204 */) ;;
15205 *) as_dir=$as_dir/ ;;
15206 esac
15207 for ac_exec_ext in '' $ac_executable_extensions; do
15208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15209 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15211 break 2
15212 fi
15213 done
15214 done
15215 IFS=$as_save_IFS
15216
15217 fi ;;
15218 esac
15219 fi
15220 CXX=$ac_cv_prog_CXX
15221 if test -n "$CXX"; then
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15223 printf "%s\n" "$CXX" >&6; }
15224 else
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 printf "%s\n" "no" >&6; }
15227 fi
15228
15229
15230 test -n "$CXX" && break
15231 done
15232 fi
15233 if test -z "$CXX"; then
15234 ac_ct_CXX=$CXX
15235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15236 do
15237 # Extract the first word of "$ac_prog", so it can be a program name with args.
15238 set dummy $ac_prog; ac_word=$2
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15240 printf %s "checking for $ac_word... " >&6; }
15241 if test ${ac_cv_prog_ac_ct_CXX+y}
15242 then :
15243 printf %s "(cached) " >&6
15244 else case e in #(
15245 e) if test -n "$ac_ct_CXX"; then
15246 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15247 else
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15250 do
15251 IFS=$as_save_IFS
15252 case $as_dir in #(((
15253 '') as_dir=./ ;;
15254 */) ;;
15255 *) as_dir=$as_dir/ ;;
15256 esac
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_ac_ct_CXX="$ac_prog"
15260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15261 break 2
15262 fi
15263 done
15264 done
15265 IFS=$as_save_IFS
15266
15267 fi ;;
15268 esac
15269 fi
15270 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15271 if test -n "$ac_ct_CXX"; then
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15273 printf "%s\n" "$ac_ct_CXX" >&6; }
15274 else
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 printf "%s\n" "no" >&6; }
15277 fi
15278
15279
15280 test -n "$ac_ct_CXX" && break
15281 done
15282
15283 if test "x$ac_ct_CXX" = x; then
15284 CXX="g++"
15285 else
15286 case $cross_compiling:$ac_tool_warned in
15287 yes:)
15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15290 ac_tool_warned=yes ;;
15291 esac
15292 CXX=$ac_ct_CXX
15293 fi
15294 fi
15295
15296 fi
15297 fi
15298 # Provide some information about the compiler.
15299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15300 set X $ac_compile
15301 ac_compiler=$2
15302 for ac_option in --version -v -V -qversion; do
15303 { { ac_try="$ac_compiler $ac_option >&5"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307 esac
15308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15309 printf "%s\n" "$ac_try_echo"; } >&5
15310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15311 ac_status=$?
15312 if test -s conftest.err; then
15313 sed '10a\
15314 ... rest of stderr output deleted ...
15315 10q' conftest.err >conftest.er1
15316 cat conftest.er1 >&5
15317 fi
15318 rm -f conftest.er1 conftest.err
15319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15320 test $ac_status = 0; }
15321 done
15322
15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15324 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15325 if test ${ac_cv_cxx_compiler_gnu+y}
15326 then :
15327 printf %s "(cached) " >&6
15328 else case e in #(
15329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331
15332 int
15333 main (void)
15334 {
15335 #ifndef __GNUC__
15336 choke me
15337 #endif
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_cxx_try_compile "$LINENO"
15344 then :
15345 ac_compiler_gnu=yes
15346 else case e in #(
15347 e) ac_compiler_gnu=no ;;
15348 esac
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15351 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15352 ;;
15353 esac
15354 fi
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15356 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15358
15359 if test $ac_compiler_gnu = yes; then
15360 GXX=yes
15361 else
15362 GXX=
15363 fi
15364 ac_test_CXXFLAGS=${CXXFLAGS+y}
15365 ac_save_CXXFLAGS=$CXXFLAGS
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15367 printf %s "checking whether $CXX accepts -g... " >&6; }
15368 if test ${ac_cv_prog_cxx_g+y}
15369 then :
15370 printf %s "(cached) " >&6
15371 else case e in #(
15372 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15373 ac_cxx_werror_flag=yes
15374 ac_cv_prog_cxx_g=no
15375 CXXFLAGS="-g"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378
15379 int
15380 main (void)
15381 {
15382
15383 ;
15384 return 0;
15385 }
15386 _ACEOF
15387 if ac_fn_cxx_try_compile "$LINENO"
15388 then :
15389 ac_cv_prog_cxx_g=yes
15390 else case e in #(
15391 e) CXXFLAGS=""
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394
15395 int
15396 main (void)
15397 {
15398
15399 ;
15400 return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_cxx_try_compile "$LINENO"
15404 then :
15405
15406 else case e in #(
15407 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15408 CXXFLAGS="-g"
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411
15412 int
15413 main (void)
15414 {
15415
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_cxx_try_compile "$LINENO"
15421 then :
15422 ac_cv_prog_cxx_g=yes
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15425 esac
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15428 esac
15429 fi
15430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15431 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
15432 esac
15433 fi
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15435 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15436 if test $ac_test_CXXFLAGS; then
15437 CXXFLAGS=$ac_save_CXXFLAGS
15438 elif test $ac_cv_prog_cxx_g = yes; then
15439 if test "$GXX" = yes; then
15440 CXXFLAGS="-g -O2"
15441 else
15442 CXXFLAGS="-g"
15443 fi
15444 else
15445 if test "$GXX" = yes; then
15446 CXXFLAGS="-O2"
15447 else
15448 CXXFLAGS=
15449 fi
15450 fi
15451 ac_prog_cxx_stdcxx=no
15452 if test x$ac_prog_cxx_stdcxx = xno
15453 then :
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15455 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15456 if test ${ac_cv_prog_cxx_cxx11+y}
15457 then :
15458 printf %s "(cached) " >&6
15459 else case e in #(
15460 e) ac_cv_prog_cxx_cxx11=no
15461 ac_save_CXX=$CXX
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15464 $ac_cxx_conftest_cxx11_program
15465 _ACEOF
15466 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15467 do
15468 CXX="$ac_save_CXX $ac_arg"
15469 if ac_fn_cxx_try_compile "$LINENO"
15470 then :
15471 ac_cv_prog_cxx_cxx11=$ac_arg
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam
15474 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15475 done
15476 rm -f conftest.$ac_ext
15477 CXX=$ac_save_CXX ;;
15478 esac
15479 fi
15480
15481 if test "x$ac_cv_prog_cxx_cxx11" = xno
15482 then :
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15484 printf "%s\n" "unsupported" >&6; }
15485 else case e in #(
15486 e) if test "x$ac_cv_prog_cxx_cxx11" = x
15487 then :
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15489 printf "%s\n" "none needed" >&6; }
15490 else case e in #(
15491 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15492 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15493 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
15494 esac
15495 fi
15496 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15497 ac_prog_cxx_stdcxx=cxx11 ;;
15498 esac
15499 fi
15500 fi
15501 if test x$ac_prog_cxx_stdcxx = xno
15502 then :
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15504 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15505 if test ${ac_cv_prog_cxx_cxx98+y}
15506 then :
15507 printf %s "(cached) " >&6
15508 else case e in #(
15509 e) ac_cv_prog_cxx_cxx98=no
15510 ac_save_CXX=$CXX
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 $ac_cxx_conftest_cxx98_program
15514 _ACEOF
15515 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15516 do
15517 CXX="$ac_save_CXX $ac_arg"
15518 if ac_fn_cxx_try_compile "$LINENO"
15519 then :
15520 ac_cv_prog_cxx_cxx98=$ac_arg
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.beam
15523 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15524 done
15525 rm -f conftest.$ac_ext
15526 CXX=$ac_save_CXX ;;
15527 esac
15528 fi
15529
15530 if test "x$ac_cv_prog_cxx_cxx98" = xno
15531 then :
15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15533 printf "%s\n" "unsupported" >&6; }
15534 else case e in #(
15535 e) if test "x$ac_cv_prog_cxx_cxx98" = x
15536 then :
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15538 printf "%s\n" "none needed" >&6; }
15539 else case e in #(
15540 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15541 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15542 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
15543 esac
15544 fi
15545 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15546 ac_prog_cxx_stdcxx=cxx98 ;;
15547 esac
15548 fi
15549 fi
15550
15551 ac_ext=c
15552 ac_cpp='$CPP $CPPFLAGS'
15553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15556
15557 depcc="$CXX" am_compiler_list=
15558
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15560 printf %s "checking dependency style of $depcc... " >&6; }
15561 if test ${am_cv_CXX_dependencies_compiler_type+y}
15562 then :
15563 printf %s "(cached) " >&6
15564 else case e in #(
15565 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15566 # We make a subdir and do the tests there. Otherwise we can end up
15567 # making bogus files that we don't know about and never remove. For
15568 # instance it was reported that on HP-UX the gcc test will end up
15569 # making a dummy file named 'D' -- because '-MD' means "put the output
15570 # in D".
15571 rm -rf conftest.dir
15572 mkdir conftest.dir
15573 # Copy depcomp to subdir because otherwise we won't find it if we're
15574 # using a relative directory.
15575 cp "$am_depcomp" conftest.dir
15576 cd conftest.dir
15577 # We will build objects and dependencies in a subdirectory because
15578 # it helps to detect inapplicable dependency modes. For instance
15579 # both Tru64's cc and ICC support -MD to output dependencies as a
15580 # side effect of compilation, but ICC will put the dependencies in
15581 # the current directory while Tru64 will put them in the object
15582 # directory.
15583 mkdir sub
15584
15585 am_cv_CXX_dependencies_compiler_type=none
15586 if test "$am_compiler_list" = ""; then
15587 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15588 fi
15589 am__universal=false
15590 case " $depcc " in #(
15591 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15592 esac
15593
15594 for depmode in $am_compiler_list; do
15595 # Setup a source with many dependencies, because some compilers
15596 # like to wrap large dependency lists on column 80 (with \), and
15597 # we should not choose a depcomp mode which is confused by this.
15598 #
15599 # We need to recreate these files for each test, as the compiler may
15600 # overwrite some of them when testing with obscure command lines.
15601 # This happens at least with the AIX C compiler.
15602 : > sub/conftest.c
15603 for i in 1 2 3 4 5 6; do
15604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15605 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15606 # Solaris 10 /bin/sh.
15607 echo '/* dummy */' > sub/conftst$i.h
15608 done
15609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15610
15611 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15612 # mode. It turns out that the SunPro C++ compiler does not properly
15613 # handle '-M -o', and we need to detect this. Also, some Intel
15614 # versions had trouble with output in subdirs.
15615 am__obj=sub/conftest.${OBJEXT-o}
15616 am__minus_obj="-o $am__obj"
15617 case $depmode in
15618 gcc)
15619 # This depmode causes a compiler race in universal mode.
15620 test "$am__universal" = false || continue
15621 ;;
15622 nosideeffect)
15623 # After this tag, mechanisms are not by side-effect, so they'll
15624 # only be used when explicitly requested.
15625 if test "x$enable_dependency_tracking" = xyes; then
15626 continue
15627 else
15628 break
15629 fi
15630 ;;
15631 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15632 # This compiler won't grok '-c -o', but also, the minuso test has
15633 # not run yet. These depmodes are late enough in the game, and
15634 # so weak that their functioning should not be impacted.
15635 am__obj=conftest.${OBJEXT-o}
15636 am__minus_obj=
15637 ;;
15638 none) break ;;
15639 esac
15640 if depmode=$depmode \
15641 source=sub/conftest.c object=$am__obj \
15642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15643 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15644 >/dev/null 2>conftest.err &&
15645 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15646 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15647 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15648 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15649 # icc doesn't choke on unknown options, it will just issue warnings
15650 # or remarks (even with -Werror). So we grep stderr for any message
15651 # that says an option was ignored or not supported.
15652 # When given -MP, icc 7.0 and 7.1 complain thus:
15653 # icc: Command line warning: ignoring option '-M'; no argument required
15654 # The diagnosis changed in icc 8.0:
15655 # icc: Command line remark: option '-MP' not supported
15656 if (grep 'ignoring option' conftest.err ||
15657 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15658 am_cv_CXX_dependencies_compiler_type=$depmode
15659 break
15660 fi
15661 fi
15662 done
15663
15664 cd ..
15665 rm -rf conftest.dir
15666 else
15667 am_cv_CXX_dependencies_compiler_type=none
15668 fi
15669 ;;
15670 esac
15671 fi
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15673 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
15674 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15675
15676 if
15677 test "x$enable_dependency_tracking" != xno \
15678 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15679 am__fastdepCXX_TRUE=
15680 am__fastdepCXX_FALSE='#'
15681 else
15682 am__fastdepCXX_TRUE='#'
15683 am__fastdepCXX_FALSE=
15684 fi
15685
15686
15687
15688
15689 func_stripname_cnf ()
15690 {
15691 case $2 in
15692 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15693 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15694 esac
15695 } # func_stripname_cnf
15696
15697 if test -n "$CXX" && ( test no != "$CXX" &&
15698 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15699 (test g++ != "$CXX"))); then
15700 ac_ext=cpp
15701 ac_cpp='$CXXCPP $CPPFLAGS'
15702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15706 printf %s "checking how to run the C++ preprocessor... " >&6; }
15707 if test -z "$CXXCPP"; then
15708 if test ${ac_cv_prog_CXXCPP+y}
15709 then :
15710 printf %s "(cached) " >&6
15711 else case e in #(
15712 e) # Double quotes because $CXX needs to be expanded
15713 for CXXCPP in "$CXX -E" cpp /lib/cpp
15714 do
15715 ac_preproc_ok=false
15716 for ac_cxx_preproc_warn_flag in '' yes
15717 do
15718 # Use a header file that comes with gcc, so configuring glibc
15719 # with a fresh cross-compiler works.
15720 # On the NeXT, cc -E runs the code through the compiler's parser,
15721 # not just through cpp. "Syntax error" is here to catch this case.
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 #include <limits.h>
15725 Syntax error
15726 _ACEOF
15727 if ac_fn_cxx_try_cpp "$LINENO"
15728 then :
15729
15730 else case e in #(
15731 e) # Broken: fails on valid input.
15732 continue ;;
15733 esac
15734 fi
15735 rm -f conftest.err conftest.i conftest.$ac_ext
15736
15737 # OK, works on sane cases. Now check whether nonexistent headers
15738 # can be detected and how.
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <ac_nonexistent.h>
15742 _ACEOF
15743 if ac_fn_cxx_try_cpp "$LINENO"
15744 then :
15745 # Broken: success on invalid input.
15746 continue
15747 else case e in #(
15748 e) # Passes both tests.
15749 ac_preproc_ok=:
15750 break ;;
15751 esac
15752 fi
15753 rm -f conftest.err conftest.i conftest.$ac_ext
15754
15755 done
15756 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15757 rm -f conftest.i conftest.err conftest.$ac_ext
15758 if $ac_preproc_ok
15759 then :
15760 break
15761 fi
15762
15763 done
15764 ac_cv_prog_CXXCPP=$CXXCPP
15765 ;;
15766 esac
15767 fi
15768 CXXCPP=$ac_cv_prog_CXXCPP
15769 else
15770 ac_cv_prog_CXXCPP=$CXXCPP
15771 fi
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15773 printf "%s\n" "$CXXCPP" >&6; }
15774 ac_preproc_ok=false
15775 for ac_cxx_preproc_warn_flag in '' yes
15776 do
15777 # Use a header file that comes with gcc, so configuring glibc
15778 # with a fresh cross-compiler works.
15779 # On the NeXT, cc -E runs the code through the compiler's parser,
15780 # not just through cpp. "Syntax error" is here to catch this case.
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15783 #include <limits.h>
15784 Syntax error
15785 _ACEOF
15786 if ac_fn_cxx_try_cpp "$LINENO"
15787 then :
15788
15789 else case e in #(
15790 e) # Broken: fails on valid input.
15791 continue ;;
15792 esac
15793 fi
15794 rm -f conftest.err conftest.i conftest.$ac_ext
15795
15796 # OK, works on sane cases. Now check whether nonexistent headers
15797 # can be detected and how.
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <ac_nonexistent.h>
15801 _ACEOF
15802 if ac_fn_cxx_try_cpp "$LINENO"
15803 then :
15804 # Broken: success on invalid input.
15805 continue
15806 else case e in #(
15807 e) # Passes both tests.
15808 ac_preproc_ok=:
15809 break ;;
15810 esac
15811 fi
15812 rm -f conftest.err conftest.i conftest.$ac_ext
15813
15814 done
15815 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15816 rm -f conftest.i conftest.err conftest.$ac_ext
15817 if $ac_preproc_ok
15818 then :
15819
15820 else case e in #(
15821 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15822 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15823 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15824 See 'config.log' for more details" "$LINENO" 5; } ;;
15825 esac
15826 fi
15827
15828 ac_ext=c
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
15834 else
15835 _lt_caught_CXX_error=yes
15836 fi
15837
15838 ac_ext=cpp
15839 ac_cpp='$CXXCPP $CPPFLAGS'
15840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15843
15844 archive_cmds_need_lc_CXX=no
15845 allow_undefined_flag_CXX=
15846 always_export_symbols_CXX=no
15847 archive_expsym_cmds_CXX=
15848 compiler_needs_object_CXX=no
15849 export_dynamic_flag_spec_CXX=
15850 hardcode_direct_CXX=no
15851 hardcode_direct_absolute_CXX=no
15852 hardcode_libdir_flag_spec_CXX=
15853 hardcode_libdir_separator_CXX=
15854 hardcode_minus_L_CXX=no
15855 hardcode_shlibpath_var_CXX=unsupported
15856 hardcode_automatic_CXX=no
15857 inherit_rpath_CXX=no
15858 module_cmds_CXX=
15859 module_expsym_cmds_CXX=
15860 link_all_deplibs_CXX=unknown
15861 old_archive_cmds_CXX=$old_archive_cmds
15862 reload_flag_CXX=$reload_flag
15863 reload_cmds_CXX=$reload_cmds
15864 no_undefined_flag_CXX=
15865 whole_archive_flag_spec_CXX=
15866 enable_shared_with_static_runtimes_CXX=no
15867
15868 # Source file extension for C++ test sources.
15869 ac_ext=cpp
15870
15871 # Object file extension for compiled C++ test sources.
15872 objext=o
15873 objext_CXX=$objext
15874
15875 # No sense in running all these tests if we already determined that
15876 # the CXX compiler isn't working. Some variables (like enable_shared)
15877 # are currently assumed to apply to all compilers on this platform,
15878 # and will be corrupted by setting them based on a non-working compiler.
15879 if test yes != "$_lt_caught_CXX_error"; then
15880 # Code to be used in simple compile tests
15881 lt_simple_compile_test_code="int some_variable = 0;"
15882
15883 # Code to be used in simple link tests
15884 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15885
15886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15887
15888
15889
15890
15891
15892
15893 # If no C compiler was specified, use CC.
15894 LTCC=${LTCC-"$CC"}
15895
15896 # If no C compiler flags were specified, use CFLAGS.
15897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15898
15899 # Allow CC to be a program name with arguments.
15900 compiler=$CC
15901
15902
15903 # save warnings/boilerplate of simple test code
15904 ac_outfile=conftest.$ac_objext
15905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15907 _lt_compiler_boilerplate=`cat conftest.err`
15908 $RM conftest*
15909
15910 ac_outfile=conftest.$ac_objext
15911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15913 _lt_linker_boilerplate=`cat conftest.err`
15914 $RM -r conftest*
15915
15916
15917 # Allow CC to be a program name with arguments.
15918 lt_save_CC=$CC
15919 lt_save_CFLAGS=$CFLAGS
15920 lt_save_LD=$LD
15921 lt_save_GCC=$GCC
15922 GCC=$GXX
15923 lt_save_with_gnu_ld=$with_gnu_ld
15924 lt_save_path_LD=$lt_cv_path_LD
15925 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15926 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15927 else
15928 $as_unset lt_cv_prog_gnu_ld
15929 fi
15930 if test -n "${lt_cv_path_LDCXX+set}"; then
15931 lt_cv_path_LD=$lt_cv_path_LDCXX
15932 else
15933 $as_unset lt_cv_path_LD
15934 fi
15935 test -z "${LDCXX+set}" || LD=$LDCXX
15936 CC=${CXX-"c++"}
15937 CFLAGS=$CXXFLAGS
15938 compiler=$CC
15939 compiler_CXX=$CC
15940 func_cc_basename $compiler
15941 cc_basename=$func_cc_basename_result
15942
15943
15944 if test -n "$compiler"; then
15945 # We don't want -fno-exception when compiling C++ code, so set the
15946 # no_builtin_flag separately
15947 if test yes = "$GXX"; then
15948 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15949 else
15950 lt_prog_compiler_no_builtin_flag_CXX=
15951 fi
15952
15953 if test yes = "$GXX"; then
15954 # Set up default GNU C++ configuration
15955
15956
15957
15958 # Check whether --with-gnu-ld was given.
15959 if test ${with_gnu_ld+y}
15960 then :
15961 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15962 else case e in #(
15963 e) with_gnu_ld=no ;;
15964 esac
15965 fi
15966
15967 ac_prog=ld
15968 if test yes = "$GCC"; then
15969 # Check if gcc -print-prog-name=ld gives a path.
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15971 printf %s "checking for ld used by $CC... " >&6; }
15972 case $host in
15973 *-*-mingw* | *-*-windows*)
15974 # gcc leaves a trailing carriage return, which upsets mingw
15975 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15976 *)
15977 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15978 esac
15979 case $ac_prog in
15980 # Accept absolute paths.
15981 [\\/]* | ?:[\\/]*)
15982 re_direlt='/[^/][^/]*/\.\./'
15983 # Canonicalize the pathname of ld
15984 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15985 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15986 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15987 done
15988 test -z "$LD" && LD=$ac_prog
15989 ;;
15990 "")
15991 # If it fails, then pretend we aren't using GCC.
15992 ac_prog=ld
15993 ;;
15994 *)
15995 # If it is relative, then search for the first ld in PATH.
15996 with_gnu_ld=unknown
15997 ;;
15998 esac
15999 elif test yes = "$with_gnu_ld"; then
16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16001 printf %s "checking for GNU ld... " >&6; }
16002 else
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16004 printf %s "checking for non-GNU ld... " >&6; }
16005 fi
16006 if test ${lt_cv_path_LD+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else case e in #(
16010 e) if test -z "$LD"; then
16011 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16012 for ac_dir in $PATH; do
16013 IFS=$lt_save_ifs
16014 test -z "$ac_dir" && ac_dir=.
16015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16016 lt_cv_path_LD=$ac_dir/$ac_prog
16017 # Check to see if the program is GNU ld. I'd rather use --version,
16018 # but apparently some variants of GNU ld only accept -v.
16019 # Break only if it was the GNU/non-GNU ld that we prefer.
16020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16021 *GNU* | *'with BFD'*)
16022 test no != "$with_gnu_ld" && break
16023 ;;
16024 *)
16025 test yes != "$with_gnu_ld" && break
16026 ;;
16027 esac
16028 fi
16029 done
16030 IFS=$lt_save_ifs
16031 else
16032 lt_cv_path_LD=$LD # Let the user override the test with a path.
16033 fi ;;
16034 esac
16035 fi
16036
16037 LD=$lt_cv_path_LD
16038 if test -n "$LD"; then
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16040 printf "%s\n" "$LD" >&6; }
16041 else
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 printf "%s\n" "no" >&6; }
16044 fi
16045 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16047 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16048 if test ${lt_cv_prog_gnu_ld+y}
16049 then :
16050 printf %s "(cached) " >&6
16051 else case e in #(
16052 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16053 case `$LD -v 2>&1 </dev/null` in
16054 *GNU* | *'with BFD'*)
16055 lt_cv_prog_gnu_ld=yes
16056 ;;
16057 *)
16058 lt_cv_prog_gnu_ld=no
16059 ;;
16060 esac ;;
16061 esac
16062 fi
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16064 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16065 with_gnu_ld=$lt_cv_prog_gnu_ld
16066
16067
16068
16069
16070
16071
16072
16073 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16074 # archiving commands below assume that GNU ld is being used.
16075 if test yes = "$with_gnu_ld"; then
16076 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16077 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'
16078
16079 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16080 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16081
16082 # If archive_cmds runs LD, not CC, wlarc should be empty
16083 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16084 # investigate it a little bit more. (MM)
16085 wlarc='$wl'
16086
16087 # ancient GNU ld didn't support --whole-archive et. al.
16088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16089 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16090 else
16091 whole_archive_flag_spec_CXX=
16092 fi
16093 else
16094 with_gnu_ld=no
16095 wlarc=
16096
16097 # A generic and very simple default shared library creation
16098 # command for GNU C++ for the case where it uses the native
16099 # linker, instead of GNU ld. If possible, this setting should
16100 # overridden to take advantage of the native linker features on
16101 # the platform it is being used on.
16102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16103 fi
16104
16105 # Commands to make compiler produce verbose output that lists
16106 # what "hidden" libraries, object files and flags are used when
16107 # linking a shared library.
16108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16109
16110 else
16111 GXX=no
16112 with_gnu_ld=no
16113 wlarc=
16114 fi
16115
16116 # PORTME: fill in a description of your system's C++ link characteristics
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16118 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16119 ld_shlibs_CXX=yes
16120 case $host_os in
16121 aix3*)
16122 # FIXME: insert proper C++ library support
16123 ld_shlibs_CXX=no
16124 ;;
16125 aix[4-9]*)
16126 if test ia64 = "$host_cpu"; then
16127 # On IA64, the linker does run time linking by default, so we don't
16128 # have to do anything special.
16129 aix_use_runtimelinking=no
16130 exp_sym_flag='-Bexport'
16131 no_entry_flag=
16132 else
16133 aix_use_runtimelinking=no
16134
16135 # Test if we are trying to use run time linking or normal
16136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16137 # have runtime linking enabled, and use it for executables.
16138 # For shared libraries, we enable/disable runtime linking
16139 # depending on the kind of the shared library created -
16140 # when "with_aix_soname,aix_use_runtimelinking" is:
16141 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16142 # "aix,yes" lib.so shared, rtl:yes, for executables
16143 # lib.a static archive
16144 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16145 # lib.a(lib.so.V) shared, rtl:no, for executables
16146 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16147 # lib.a(lib.so.V) shared, rtl:no
16148 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16149 # lib.a static archive
16150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16151 for ld_flag in $LDFLAGS; do
16152 case $ld_flag in
16153 *-brtl*)
16154 aix_use_runtimelinking=yes
16155 break
16156 ;;
16157 esac
16158 done
16159 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16160 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16161 # so we don't have lib.a shared libs to link our executables.
16162 # We have to force runtime linking in this case.
16163 aix_use_runtimelinking=yes
16164 LDFLAGS="$LDFLAGS -Wl,-brtl"
16165 fi
16166 ;;
16167 esac
16168
16169 exp_sym_flag='-bexport'
16170 no_entry_flag='-bnoentry'
16171 fi
16172
16173 # When large executables or shared objects are built, AIX ld can
16174 # have problems creating the table of contents. If linking a library
16175 # or program results in "error TOC overflow" add -mminimal-toc to
16176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16178
16179 archive_cmds_CXX=''
16180 hardcode_direct_CXX=yes
16181 hardcode_direct_absolute_CXX=yes
16182 hardcode_libdir_separator_CXX=':'
16183 link_all_deplibs_CXX=yes
16184 file_list_spec_CXX='$wl-f,'
16185 case $with_aix_soname,$aix_use_runtimelinking in
16186 aix,*) ;; # no import file
16187 svr4,* | *,yes) # use import file
16188 # The Import File defines what to hardcode.
16189 hardcode_direct_CXX=no
16190 hardcode_direct_absolute_CXX=no
16191 ;;
16192 esac
16193
16194 if test yes = "$GXX"; then
16195 case $host_os in aix4.[012]|aix4.[012].*)
16196 # We only want to do this on AIX 4.2 and lower, the check
16197 # below for broken collect2 doesn't work under 4.3+
16198 collect2name=`$CC -print-prog-name=collect2`
16199 if test -f "$collect2name" &&
16200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16201 then
16202 # We have reworked collect2
16203 :
16204 else
16205 # We have old collect2
16206 hardcode_direct_CXX=unsupported
16207 # It fails to find uninstalled libraries when the uninstalled
16208 # path is not listed in the libpath. Setting hardcode_minus_L
16209 # to unsupported forces relinking
16210 hardcode_minus_L_CXX=yes
16211 hardcode_libdir_flag_spec_CXX='-L$libdir'
16212 hardcode_libdir_separator_CXX=
16213 fi
16214 esac
16215 shared_flag='-shared'
16216 if test yes = "$aix_use_runtimelinking"; then
16217 shared_flag=$shared_flag' $wl-G'
16218 fi
16219 # Need to ensure runtime linking is disabled for the traditional
16220 # shared library, or the linker may eventually find shared libraries
16221 # /with/ Import File - we do not want to mix them.
16222 shared_flag_aix='-shared'
16223 shared_flag_svr4='-shared $wl-G'
16224 else
16225 # not using gcc
16226 if test ia64 = "$host_cpu"; then
16227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16228 # chokes on -Wl,-G. The following line is correct:
16229 shared_flag='-G'
16230 else
16231 if test yes = "$aix_use_runtimelinking"; then
16232 shared_flag='$wl-G'
16233 else
16234 shared_flag='$wl-bM:SRE'
16235 fi
16236 shared_flag_aix='$wl-bM:SRE'
16237 shared_flag_svr4='$wl-G'
16238 fi
16239 fi
16240
16241 export_dynamic_flag_spec_CXX='$wl-bexpall'
16242 # It seems that -bexpall does not export symbols beginning with
16243 # underscore (_), so it is better to generate a list of symbols to
16244 # export.
16245 always_export_symbols_CXX=yes
16246 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16247 # Warning - without using the other runtime loading flags (-brtl),
16248 # -berok will link without error, but may produce a broken library.
16249 # The "-G" linker flag allows undefined symbols.
16250 no_undefined_flag_CXX='-bernotok'
16251 # Determine the default libpath from the value encoded in an empty
16252 # executable.
16253 if test set = "${lt_cv_aix_libpath+set}"; then
16254 aix_libpath=$lt_cv_aix_libpath
16255 else
16256 if test ${lt_cv_aix_libpath__CXX+y}
16257 then :
16258 printf %s "(cached) " >&6
16259 else case e in #(
16260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16262
16263 int
16264 main (void)
16265 {
16266
16267 ;
16268 return 0;
16269 }
16270 _ACEOF
16271 if ac_fn_cxx_try_link "$LINENO"
16272 then :
16273
16274 lt_aix_libpath_sed='
16275 /Import File Strings/,/^$/ {
16276 /^0/ {
16277 s/^0 *\([^ ]*\) *$/\1/
16278 p
16279 }
16280 }'
16281 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16282 # Check for a 64-bit object if we didn't find anything.
16283 if test -z "$lt_cv_aix_libpath__CXX"; then
16284 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16285 fi
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16288 conftest$ac_exeext conftest.$ac_ext
16289 if test -z "$lt_cv_aix_libpath__CXX"; then
16290 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16291 fi
16292 ;;
16293 esac
16294 fi
16295
16296 aix_libpath=$lt_cv_aix_libpath__CXX
16297 fi
16298
16299 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16300
16301 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
16302 else
16303 if test ia64 = "$host_cpu"; then
16304 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16305 allow_undefined_flag_CXX="-z nodefs"
16306 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"
16307 else
16308 # Determine the default libpath from the value encoded in an
16309 # empty executable.
16310 if test set = "${lt_cv_aix_libpath+set}"; then
16311 aix_libpath=$lt_cv_aix_libpath
16312 else
16313 if test ${lt_cv_aix_libpath__CXX+y}
16314 then :
16315 printf %s "(cached) " >&6
16316 else case e in #(
16317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319
16320 int
16321 main (void)
16322 {
16323
16324 ;
16325 return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_cxx_try_link "$LINENO"
16329 then :
16330
16331 lt_aix_libpath_sed='
16332 /Import File Strings/,/^$/ {
16333 /^0/ {
16334 s/^0 *\([^ ]*\) *$/\1/
16335 p
16336 }
16337 }'
16338 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16339 # Check for a 64-bit object if we didn't find anything.
16340 if test -z "$lt_cv_aix_libpath__CXX"; then
16341 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342 fi
16343 fi
16344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16345 conftest$ac_exeext conftest.$ac_ext
16346 if test -z "$lt_cv_aix_libpath__CXX"; then
16347 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16348 fi
16349 ;;
16350 esac
16351 fi
16352
16353 aix_libpath=$lt_cv_aix_libpath__CXX
16354 fi
16355
16356 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16357 # Warning - without using the other run time loading flags,
16358 # -berok will link without error, but may produce a broken library.
16359 no_undefined_flag_CXX=' $wl-bernotok'
16360 allow_undefined_flag_CXX=' $wl-berok'
16361 if test yes = "$with_gnu_ld"; then
16362 # We only use this code for GNU lds that support --whole-archive.
16363 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16364 else
16365 # Exported symbols can be pulled into shared objects from archives
16366 whole_archive_flag_spec_CXX='$convenience'
16367 fi
16368 archive_cmds_need_lc_CXX=yes
16369 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16370 # -brtl affects multiple linker settings, -berok does not and is overridden later
16371 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16372 if test svr4 != "$with_aix_soname"; then
16373 # This is similar to how AIX traditionally builds its shared
16374 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16375 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'
16376 fi
16377 if test aix != "$with_aix_soname"; then
16378 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'
16379 else
16380 # used by -dlpreopen to get the symbols
16381 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16382 fi
16383 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16384 fi
16385 fi
16386 ;;
16387
16388 beos*)
16389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16390 allow_undefined_flag_CXX=unsupported
16391 # Joseph Beckenbach <[email protected]> says some releases of gcc
16392 # support --undefined. This deserves some investigation. FIXME
16393 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16394 else
16395 ld_shlibs_CXX=no
16396 fi
16397 ;;
16398
16399 chorus*)
16400 case $cc_basename in
16401 *)
16402 # FIXME: insert proper C++ library support
16403 ld_shlibs_CXX=no
16404 ;;
16405 esac
16406 ;;
16407
16408 cygwin* | mingw* | windows* | pw32* | cegcc*)
16409 case $GXX,$cc_basename in
16410 ,cl* | no,cl* | ,icl* | no,icl*)
16411 # Native MSVC or ICC
16412 # hardcode_libdir_flag_spec is actually meaningless, as there is
16413 # no search path for DLLs.
16414 hardcode_libdir_flag_spec_CXX=' '
16415 allow_undefined_flag_CXX=unsupported
16416 always_export_symbols_CXX=yes
16417 file_list_spec_CXX='@'
16418 # Tell ltmain to make .lib files, not .a files.
16419 libext=lib
16420 # Tell ltmain to make .dll files, not .so files.
16421 shrext_cmds=.dll
16422 # FIXME: Setting linknames here is a bad hack.
16423 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16424 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16425 cp "$export_symbols" "$output_objdir/$soname.def";
16426 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16427 else
16428 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16429 fi~
16430 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16431 linknames='
16432 # The linker will not automatically build a static lib if we build a DLL.
16433 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16434 enable_shared_with_static_runtimes_CXX=yes
16435 # Don't use ranlib
16436 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16437 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16438 lt_tool_outputfile="@TOOL_OUTPUT@"~
16439 case $lt_outputfile in
16440 *.exe|*.EXE) ;;
16441 *)
16442 lt_outputfile=$lt_outputfile.exe
16443 lt_tool_outputfile=$lt_tool_outputfile.exe
16444 ;;
16445 esac~
16446 func_to_tool_file "$lt_outputfile"~
16447 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16449 $RM "$lt_outputfile.manifest";
16450 fi'
16451 ;;
16452 *)
16453 # g++
16454 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16455 # as there is no search path for DLLs.
16456 hardcode_libdir_flag_spec_CXX='-L$libdir'
16457 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16458 allow_undefined_flag_CXX=unsupported
16459 always_export_symbols_CXX=no
16460 enable_shared_with_static_runtimes_CXX=yes
16461 file_list_spec_CXX='@'
16462
16463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16464 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'
16465 # If the export-symbols file already is a .def file, use it as
16466 # is; otherwise, prepend EXPORTS...
16467 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16468 cp $export_symbols $output_objdir/$soname.def;
16469 else
16470 echo EXPORTS > $output_objdir/$soname.def;
16471 cat $export_symbols >> $output_objdir/$soname.def;
16472 fi~
16473 $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'
16474 else
16475 ld_shlibs_CXX=no
16476 fi
16477 ;;
16478 esac
16479 ;;
16480 darwin* | rhapsody*)
16481
16482
16483 archive_cmds_need_lc_CXX=no
16484 hardcode_direct_CXX=no
16485 hardcode_automatic_CXX=yes
16486 hardcode_shlibpath_var_CXX=unsupported
16487 if test yes = "$lt_cv_ld_force_load"; then
16488 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\"`'
16489
16490 else
16491 whole_archive_flag_spec_CXX=''
16492 fi
16493 link_all_deplibs_CXX=yes
16494 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16495 case $cc_basename in
16496 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16497 *) _lt_dar_can_shared=$GCC ;;
16498 esac
16499 if test yes = "$_lt_dar_can_shared"; then
16500 output_verbose_link_cmd=func_echo_all
16501 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"
16502 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16503 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"
16504 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"
16505 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16506 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"
16507 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"
16508 fi
16509
16510 else
16511 ld_shlibs_CXX=no
16512 fi
16513
16514 ;;
16515
16516 os2*)
16517 hardcode_libdir_flag_spec_CXX='-L$libdir'
16518 hardcode_minus_L_CXX=yes
16519 allow_undefined_flag_CXX=unsupported
16520 shrext_cmds=.dll
16521 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16524 $ECHO EXPORTS >> $output_objdir/$libname.def~
16525 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16527 emximp -o $lib $output_objdir/$libname.def'
16528 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16531 $ECHO EXPORTS >> $output_objdir/$libname.def~
16532 prefix_cmds="$SED"~
16533 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16534 prefix_cmds="$prefix_cmds -e 1d";
16535 fi~
16536 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16537 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16539 emximp -o $lib $output_objdir/$libname.def'
16540 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16541 enable_shared_with_static_runtimes_CXX=yes
16542 file_list_spec_CXX='@'
16543 ;;
16544
16545 dgux*)
16546 case $cc_basename in
16547 ec++*)
16548 # FIXME: insert proper C++ library support
16549 ld_shlibs_CXX=no
16550 ;;
16551 ghcx*)
16552 # Green Hills C++ Compiler
16553 # FIXME: insert proper C++ library support
16554 ld_shlibs_CXX=no
16555 ;;
16556 *)
16557 # FIXME: insert proper C++ library support
16558 ld_shlibs_CXX=no
16559 ;;
16560 esac
16561 ;;
16562
16563 freebsd2.*)
16564 # C++ shared libraries reported to be fairly broken before
16565 # switch to ELF
16566 ld_shlibs_CXX=no
16567 ;;
16568
16569 freebsd-elf*)
16570 archive_cmds_need_lc_CXX=no
16571 ;;
16572
16573 freebsd* | dragonfly* | midnightbsd*)
16574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16575 # conventions
16576 ld_shlibs_CXX=yes
16577 ;;
16578
16579 haiku*)
16580 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16581 link_all_deplibs_CXX=no
16582 ;;
16583
16584 hpux9*)
16585 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16586 hardcode_libdir_separator_CXX=:
16587 export_dynamic_flag_spec_CXX='$wl-E'
16588 hardcode_direct_CXX=yes
16589 hardcode_minus_L_CXX=yes # Not in the search PATH,
16590 # but as the default
16591 # location of the library.
16592
16593 case $cc_basename in
16594 CC*)
16595 # FIXME: insert proper C++ library support
16596 ld_shlibs_CXX=no
16597 ;;
16598 aCC*)
16599 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'
16600 # Commands to make compiler produce verbose output that lists
16601 # what "hidden" libraries, object files and flags are used when
16602 # linking a shared library.
16603 #
16604 # There doesn't appear to be a way to prevent this compiler from
16605 # explicitly linking system object files so we need to strip them
16606 # from the output so that they don't get included in the library
16607 # dependencies.
16608 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"'
16609 ;;
16610 *)
16611 if test yes = "$GXX"; then
16612 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'
16613 else
16614 # FIXME: insert proper C++ library support
16615 ld_shlibs_CXX=no
16616 fi
16617 ;;
16618 esac
16619 ;;
16620
16621 hpux10*|hpux11*)
16622 if test no = "$with_gnu_ld"; then
16623 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16624 hardcode_libdir_separator_CXX=:
16625
16626 case $host_cpu in
16627 hppa*64*|ia64*)
16628 ;;
16629 *)
16630 export_dynamic_flag_spec_CXX='$wl-E'
16631 ;;
16632 esac
16633 fi
16634 case $host_cpu in
16635 hppa*64*|ia64*)
16636 hardcode_direct_CXX=no
16637 hardcode_shlibpath_var_CXX=no
16638 ;;
16639 *)
16640 hardcode_direct_CXX=yes
16641 hardcode_direct_absolute_CXX=yes
16642 hardcode_minus_L_CXX=yes # Not in the search PATH,
16643 # but as the default
16644 # location of the library.
16645 ;;
16646 esac
16647
16648 case $cc_basename in
16649 CC*)
16650 # FIXME: insert proper C++ library support
16651 ld_shlibs_CXX=no
16652 ;;
16653 aCC*)
16654 case $host_cpu in
16655 hppa*64*)
16656 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16657 ;;
16658 ia64*)
16659 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16660 ;;
16661 *)
16662 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16663 ;;
16664 esac
16665 # Commands to make compiler produce verbose output that lists
16666 # what "hidden" libraries, object files and flags are used when
16667 # linking a shared library.
16668 #
16669 # There doesn't appear to be a way to prevent this compiler from
16670 # explicitly linking system object files so we need to strip them
16671 # from the output so that they don't get included in the library
16672 # dependencies.
16673 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"'
16674 ;;
16675 *)
16676 if test yes = "$GXX"; then
16677 if test no = "$with_gnu_ld"; then
16678 case $host_cpu in
16679 hppa*64*)
16680 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16681 ;;
16682 ia64*)
16683 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16684 ;;
16685 *)
16686 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'
16687 ;;
16688 esac
16689 fi
16690 else
16691 # FIXME: insert proper C++ library support
16692 ld_shlibs_CXX=no
16693 fi
16694 ;;
16695 esac
16696 ;;
16697
16698 interix[3-9]*)
16699 hardcode_direct_CXX=no
16700 hardcode_shlibpath_var_CXX=no
16701 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16702 export_dynamic_flag_spec_CXX='$wl-E'
16703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16704 # Instead, shared libraries are loaded at an image base (0x10000000 by
16705 # default) and relocated if they conflict, which is a slow very memory
16706 # consuming and fragmenting process. To avoid this, we pick a random,
16707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16709 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'
16710 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'
16711 ;;
16712 irix5* | irix6*)
16713 case $cc_basename in
16714 CC*)
16715 # SGI C++
16716 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'
16717
16718 # Archives containing C++ object files must be created using
16719 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16720 # necessary to make sure instantiated templates are included
16721 # in the archive.
16722 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16723 ;;
16724 *)
16725 if test yes = "$GXX"; then
16726 if test no = "$with_gnu_ld"; then
16727 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'
16728 else
16729 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'
16730 fi
16731 fi
16732 link_all_deplibs_CXX=yes
16733 ;;
16734 esac
16735 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16736 hardcode_libdir_separator_CXX=:
16737 inherit_rpath_CXX=yes
16738 ;;
16739
16740 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16741 case $cc_basename in
16742 KCC*)
16743 # Kuck and Associates, Inc. (KAI) C++ Compiler
16744
16745 # KCC will only create a shared library if the output file
16746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16747 # to its proper name (with version) after linking.
16748 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'
16749 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'
16750 # Commands to make compiler produce verbose output that lists
16751 # what "hidden" libraries, object files and flags are used when
16752 # linking a shared library.
16753 #
16754 # There doesn't appear to be a way to prevent this compiler from
16755 # explicitly linking system object files so we need to strip them
16756 # from the output so that they don't get included in the library
16757 # dependencies.
16758 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"'
16759
16760 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16761 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16762
16763 # Archives containing C++ object files must be created using
16764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16766 ;;
16767 icpc* | ecpc* )
16768 # Intel C++
16769 with_gnu_ld=yes
16770 # version 8.0 and above of icpc choke on multiply defined symbols
16771 # if we add $predep_objects and $postdep_objects, however 7.1 and
16772 # earlier do not add the objects themselves.
16773 case `$CC -V 2>&1` in
16774 *"Version 7."*)
16775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16776 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'
16777 ;;
16778 *) # Version 8.0 or newer
16779 tmp_idyn=
16780 case $host_cpu in
16781 ia64*) tmp_idyn=' -i_dynamic';;
16782 esac
16783 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16784 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'
16785 ;;
16786 esac
16787 archive_cmds_need_lc_CXX=no
16788 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16789 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16790 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16791 ;;
16792 pgCC* | pgcpp*)
16793 # Portland Group C++ compiler
16794 case `$CC -V` in
16795 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16796 prelink_cmds_CXX='tpldir=Template.dir~
16797 rm -rf $tpldir~
16798 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16799 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16800 old_archive_cmds_CXX='tpldir=Template.dir~
16801 rm -rf $tpldir~
16802 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16803 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16804 $RANLIB $oldlib'
16805 archive_cmds_CXX='tpldir=Template.dir~
16806 rm -rf $tpldir~
16807 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16808 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16809 archive_expsym_cmds_CXX='tpldir=Template.dir~
16810 rm -rf $tpldir~
16811 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16812 $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'
16813 ;;
16814 *) # Version 6 and above use weak symbols
16815 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16816 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'
16817 ;;
16818 esac
16819
16820 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16821 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16822 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'
16823 ;;
16824 cxx*)
16825 # Compaq C++
16826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16827 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'
16828
16829 runpath_var=LD_RUN_PATH
16830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16831 hardcode_libdir_separator_CXX=:
16832
16833 # Commands to make compiler produce verbose output that lists
16834 # what "hidden" libraries, object files and flags are used when
16835 # linking a shared library.
16836 #
16837 # There doesn't appear to be a way to prevent this compiler from
16838 # explicitly linking system object files so we need to strip them
16839 # from the output so that they don't get included in the library
16840 # dependencies.
16841 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'
16842 ;;
16843 xl* | mpixl* | bgxl*)
16844 # IBM XL 8.0 on PPC, with GNU ld
16845 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16846 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16847 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16848 if test yes = "$supports_anon_versioning"; then
16849 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16850 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16851 echo "local: *; };" >> $output_objdir/$libname.ver~
16852 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16853 fi
16854 ;;
16855 *)
16856 case `$CC -V 2>&1 | $SED 5q` in
16857 *Sun\ C*)
16858 # Sun C++ 5.9
16859 no_undefined_flag_CXX=' -zdefs'
16860 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16861 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'
16862 hardcode_libdir_flag_spec_CXX='-R$libdir'
16863 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'
16864 compiler_needs_object_CXX=yes
16865
16866 # Not sure whether something based on
16867 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16868 # would be better.
16869 output_verbose_link_cmd='func_echo_all'
16870
16871 # Archives containing C++ object files must be created using
16872 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16873 # necessary to make sure instantiated templates are included
16874 # in the archive.
16875 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16876 ;;
16877 esac
16878 ;;
16879 esac
16880 ;;
16881
16882 lynxos*)
16883 # FIXME: insert proper C++ library support
16884 ld_shlibs_CXX=no
16885 ;;
16886
16887 m88k*)
16888 # FIXME: insert proper C++ library support
16889 ld_shlibs_CXX=no
16890 ;;
16891
16892 mvs*)
16893 case $cc_basename in
16894 cxx*)
16895 # FIXME: insert proper C++ library support
16896 ld_shlibs_CXX=no
16897 ;;
16898 *)
16899 # FIXME: insert proper C++ library support
16900 ld_shlibs_CXX=no
16901 ;;
16902 esac
16903 ;;
16904
16905 *-mlibc)
16906 ld_shlibs_CXX=yes
16907 ;;
16908
16909 netbsd*)
16910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16911 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16912 wlarc=
16913 hardcode_libdir_flag_spec_CXX='-R$libdir'
16914 hardcode_direct_CXX=yes
16915 hardcode_shlibpath_var_CXX=no
16916 fi
16917 # Workaround some broken pre-1.5 toolchains
16918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16919 ;;
16920
16921 *nto* | *qnx*)
16922 ld_shlibs_CXX=yes
16923 ;;
16924
16925 openbsd*)
16926 if test -f /usr/libexec/ld.so; then
16927 hardcode_direct_CXX=yes
16928 hardcode_shlibpath_var_CXX=no
16929 hardcode_direct_absolute_CXX=yes
16930 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16931 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16933 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16934 export_dynamic_flag_spec_CXX='$wl-E'
16935 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16936 fi
16937 output_verbose_link_cmd=func_echo_all
16938 else
16939 ld_shlibs_CXX=no
16940 fi
16941 ;;
16942
16943 osf3* | osf4* | osf5*)
16944 case $cc_basename in
16945 KCC*)
16946 # Kuck and Associates, Inc. (KAI) C++ Compiler
16947
16948 # KCC will only create a shared library if the output file
16949 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16950 # to its proper name (with version) after linking.
16951 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'
16952
16953 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16954 hardcode_libdir_separator_CXX=:
16955
16956 # Archives containing C++ object files must be created using
16957 # the KAI C++ compiler.
16958 case $host in
16959 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16960 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16961 esac
16962 ;;
16963 RCC*)
16964 # Rational C++ 2.4.1
16965 # FIXME: insert proper C++ library support
16966 ld_shlibs_CXX=no
16967 ;;
16968 cxx*)
16969 case $host in
16970 osf3*)
16971 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16972 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'
16973 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16974 ;;
16975 *)
16976 allow_undefined_flag_CXX=' -expect_unresolved \*'
16977 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'
16978 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16979 echo "-hidden">> $lib.exp~
16980 $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~
16981 $RM $lib.exp'
16982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16983 ;;
16984 esac
16985
16986 hardcode_libdir_separator_CXX=:
16987
16988 # Commands to make compiler produce verbose output that lists
16989 # what "hidden" libraries, object files and flags are used when
16990 # linking a shared library.
16991 #
16992 # There doesn't appear to be a way to prevent this compiler from
16993 # explicitly linking system object files so we need to strip them
16994 # from the output so that they don't get included in the library
16995 # dependencies.
16996 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"'
16997 ;;
16998 *)
16999 if test yes,no = "$GXX,$with_gnu_ld"; then
17000 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17001 case $host in
17002 osf3*)
17003 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'
17004 ;;
17005 *)
17006 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'
17007 ;;
17008 esac
17009
17010 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17011 hardcode_libdir_separator_CXX=:
17012
17013 # Commands to make compiler produce verbose output that lists
17014 # what "hidden" libraries, object files and flags are used when
17015 # linking a shared library.
17016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17017
17018 else
17019 # FIXME: insert proper C++ library support
17020 ld_shlibs_CXX=no
17021 fi
17022 ;;
17023 esac
17024 ;;
17025
17026 psos*)
17027 # FIXME: insert proper C++ library support
17028 ld_shlibs_CXX=no
17029 ;;
17030
17031 serenity*)
17032 ;;
17033
17034 sunos4*)
17035 case $cc_basename in
17036 CC*)
17037 # Sun C++ 4.x
17038 # FIXME: insert proper C++ library support
17039 ld_shlibs_CXX=no
17040 ;;
17041 lcc*)
17042 # Lucid
17043 # FIXME: insert proper C++ library support
17044 ld_shlibs_CXX=no
17045 ;;
17046 *)
17047 # FIXME: insert proper C++ library support
17048 ld_shlibs_CXX=no
17049 ;;
17050 esac
17051 ;;
17052
17053 solaris*)
17054 case $cc_basename in
17055 CC* | sunCC*)
17056 # Sun C++ 4.2, 5.x and Centerline C++
17057 archive_cmds_need_lc_CXX=yes
17058 no_undefined_flag_CXX=' -zdefs'
17059 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17061 $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'
17062
17063 hardcode_libdir_flag_spec_CXX='-R$libdir'
17064 hardcode_shlibpath_var_CXX=no
17065 case $host_os in
17066 solaris2.[0-5] | solaris2.[0-5].*) ;;
17067 *)
17068 # The compiler driver will combine and reorder linker options,
17069 # but understands '-z linker_flag'.
17070 # Supported since Solaris 2.6 (maybe 2.5.1?)
17071 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17072 ;;
17073 esac
17074 link_all_deplibs_CXX=yes
17075
17076 output_verbose_link_cmd='func_echo_all'
17077
17078 # Archives containing C++ object files must be created using
17079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17080 # necessary to make sure instantiated templates are included
17081 # in the archive.
17082 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17083 ;;
17084 gcx*)
17085 # Green Hills C++ Compiler
17086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17087
17088 # The C++ compiler must be used to create the archive.
17089 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17090 ;;
17091 *)
17092 # GNU C++ compiler with Solaris linker
17093 if test yes,no = "$GXX,$with_gnu_ld"; then
17094 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17095 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17096 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17097 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17098 $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'
17099
17100 # Commands to make compiler produce verbose output that lists
17101 # what "hidden" libraries, object files and flags are used when
17102 # linking a shared library.
17103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17104 else
17105 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17106 # platform.
17107 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17108 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17109 $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'
17110
17111 # Commands to make compiler produce verbose output that lists
17112 # what "hidden" libraries, object files and flags are used when
17113 # linking a shared library.
17114 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17115 fi
17116
17117 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17118 case $host_os in
17119 solaris2.[0-5] | solaris2.[0-5].*) ;;
17120 *)
17121 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17122 ;;
17123 esac
17124 fi
17125 ;;
17126 esac
17127 ;;
17128
17129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17130 no_undefined_flag_CXX='$wl-z,text'
17131 archive_cmds_need_lc_CXX=no
17132 hardcode_shlibpath_var_CXX=no
17133 runpath_var='LD_RUN_PATH'
17134
17135 case $cc_basename in
17136 CC*)
17137 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 ;;
17140 *)
17141 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17142 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17143 ;;
17144 esac
17145 ;;
17146
17147 sysv5* | sco3.2v5* | sco5v6*)
17148 # Note: We CANNOT use -z defs as we might desire, because we do not
17149 # link with -lc, and that would cause any symbols used from libc to
17150 # always be unresolved, which means just about no library would
17151 # ever link correctly. If we're not using GNU ld we use -z text
17152 # though, which does catch some bad symbols but isn't as heavy-handed
17153 # as -z defs.
17154 no_undefined_flag_CXX='$wl-z,text'
17155 allow_undefined_flag_CXX='$wl-z,nodefs'
17156 archive_cmds_need_lc_CXX=no
17157 hardcode_shlibpath_var_CXX=no
17158 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17159 hardcode_libdir_separator_CXX=':'
17160 link_all_deplibs_CXX=yes
17161 export_dynamic_flag_spec_CXX='$wl-Bexport'
17162 runpath_var='LD_RUN_PATH'
17163
17164 case $cc_basename in
17165 CC*)
17166 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17169 '"$old_archive_cmds_CXX"
17170 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17171 '"$reload_cmds_CXX"
17172 ;;
17173 *)
17174 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17175 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17176 ;;
17177 esac
17178 ;;
17179
17180 tandem*)
17181 case $cc_basename in
17182 NCC*)
17183 # NonStop-UX NCC 3.20
17184 # FIXME: insert proper C++ library support
17185 ld_shlibs_CXX=no
17186 ;;
17187 *)
17188 # FIXME: insert proper C++ library support
17189 ld_shlibs_CXX=no
17190 ;;
17191 esac
17192 ;;
17193
17194 vxworks*)
17195 # FIXME: insert proper C++ library support
17196 ld_shlibs_CXX=no
17197 ;;
17198
17199 *)
17200 # FIXME: insert proper C++ library support
17201 ld_shlibs_CXX=no
17202 ;;
17203 esac
17204
17205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17206 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17207 test no = "$ld_shlibs_CXX" && can_build_shared=no
17208
17209 GCC_CXX=$GXX
17210 LD_CXX=$LD
17211
17212 ## CAVEAT EMPTOR:
17213 ## There is no encapsulation within the following macros, do not change
17214 ## the running order or otherwise move them around unless you know exactly
17215 ## what you are doing...
17216 # Dependencies to place before and after the object being linked:
17217 predep_objects_CXX=
17218 postdep_objects_CXX=
17219 predeps_CXX=
17220 postdeps_CXX=
17221 compiler_lib_search_path_CXX=
17222
17223 cat > conftest.$ac_ext <<_LT_EOF
17224 class Foo
17225 {
17226 public:
17227 Foo (void) { a = 0; }
17228 private:
17229 int a;
17230 };
17231 _LT_EOF
17232
17233
17234 _lt_libdeps_save_CFLAGS=$CFLAGS
17235 case "$CC $CFLAGS " in #(
17236 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17237 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17238 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17239 esac
17240
17241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17242 (eval $ac_compile) 2>&5
17243 ac_status=$?
17244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17245 test $ac_status = 0; }; then
17246 # Parse the compiler output and extract the necessary
17247 # objects, libraries and library flags.
17248
17249 # Sentinel used to keep track of whether or not we are before
17250 # the conftest object file.
17251 pre_test_object_deps_done=no
17252
17253 for p in `eval "$output_verbose_link_cmd"`; do
17254 case $prev$p in
17255
17256 -L* | -R* | -l*)
17257 # Some compilers place space between "-{L,R,l}" and the path.
17258 # Remove the space.
17259 if test x-L = x"$p" ||
17260 test x-R = x"$p" ||
17261 test x-l = x"$p"; then
17262 prev=$p
17263 continue
17264 fi
17265
17266 # Expand the sysroot to ease extracting the directories later.
17267 if test -z "$prev"; then
17268 case $p in
17269 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17270 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17271 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17272 esac
17273 fi
17274 case $p in
17275 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17276 esac
17277 if test no = "$pre_test_object_deps_done"; then
17278 case $prev in
17279 -L | -R)
17280 # Internal compiler library paths should come after those
17281 # provided the user. The postdeps already come after the
17282 # user supplied libs so there is no need to process them.
17283 if test -z "$compiler_lib_search_path_CXX"; then
17284 compiler_lib_search_path_CXX=$prev$p
17285 else
17286 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17287 fi
17288 ;;
17289 # The "-l" case would never come before the object being
17290 # linked, so don't bother handling this case.
17291 esac
17292 else
17293 if test -z "$postdeps_CXX"; then
17294 postdeps_CXX=$prev$p
17295 else
17296 postdeps_CXX="${postdeps_CXX} $prev$p"
17297 fi
17298 fi
17299 prev=
17300 ;;
17301
17302 *.lto.$objext) ;; # Ignore GCC LTO objects
17303 *.$objext)
17304 # This assumes that the test object file only shows up
17305 # once in the compiler output.
17306 if test "$p" = "conftest.$objext"; then
17307 pre_test_object_deps_done=yes
17308 continue
17309 fi
17310
17311 if test no = "$pre_test_object_deps_done"; then
17312 if test -z "$predep_objects_CXX"; then
17313 predep_objects_CXX=$p
17314 else
17315 predep_objects_CXX="$predep_objects_CXX $p"
17316 fi
17317 else
17318 if test -z "$postdep_objects_CXX"; then
17319 postdep_objects_CXX=$p
17320 else
17321 postdep_objects_CXX="$postdep_objects_CXX $p"
17322 fi
17323 fi
17324 ;;
17325
17326 *) ;; # Ignore the rest.
17327
17328 esac
17329 done
17330
17331 # Clean up.
17332 rm -f a.out a.exe
17333 else
17334 echo "libtool.m4: error: problem compiling CXX test program"
17335 fi
17336
17337 $RM -f confest.$objext
17338 CFLAGS=$_lt_libdeps_save_CFLAGS
17339
17340 # PORTME: override above test on systems where it is broken
17341 case $host_os in
17342 interix[3-9]*)
17343 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17344 # hack all around it, let's just trust "g++" to DTRT.
17345 predep_objects_CXX=
17346 postdep_objects_CXX=
17347 postdeps_CXX=
17348 ;;
17349 esac
17350
17351
17352 case " $postdeps_CXX " in
17353 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17354 esac
17355 compiler_lib_search_dirs_CXX=
17356 if test -n "${compiler_lib_search_path_CXX}"; then
17357 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17358 fi
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390 lt_prog_compiler_wl_CXX=
17391 lt_prog_compiler_pic_CXX=
17392 lt_prog_compiler_static_CXX=
17393
17394
17395 # C++ specific cases for pic, static, wl, etc.
17396 if test yes = "$GXX"; then
17397 lt_prog_compiler_wl_CXX='-Wl,'
17398 lt_prog_compiler_static_CXX='-static'
17399
17400 case $host_os in
17401 aix*)
17402 # All AIX code is PIC.
17403 if test ia64 = "$host_cpu"; then
17404 # AIX 5 now supports IA64 processor
17405 lt_prog_compiler_static_CXX='-Bstatic'
17406 fi
17407 lt_prog_compiler_pic_CXX='-fPIC'
17408 ;;
17409
17410 amigaos*)
17411 case $host_cpu in
17412 powerpc)
17413 # see comment about AmigaOS4 .so support
17414 lt_prog_compiler_pic_CXX='-fPIC'
17415 ;;
17416 m68k)
17417 # FIXME: we need at least 68020 code to build shared libraries, but
17418 # adding the '-m68020' flag to GCC prevents building anything better,
17419 # like '-m68040'.
17420 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17421 ;;
17422 esac
17423 ;;
17424
17425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17426 # PIC is the default for these OSes.
17427 ;;
17428 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17429 # This hack is so that the source file can tell whether it is being
17430 # built for inclusion in a dll (and should export symbols for example).
17431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17432 # (--disable-auto-import) libraries
17433 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17434 case $host_os in
17435 os2*)
17436 lt_prog_compiler_static_CXX='$wl-static'
17437 ;;
17438 esac
17439 ;;
17440 darwin* | rhapsody*)
17441 # PIC is the default on this platform
17442 # Common symbols not allowed in MH_DYLIB files
17443 lt_prog_compiler_pic_CXX='-fno-common'
17444 ;;
17445 *djgpp*)
17446 # DJGPP does not support shared libraries at all
17447 lt_prog_compiler_pic_CXX=
17448 ;;
17449 haiku*)
17450 # PIC is the default for Haiku.
17451 # The "-static" flag exists, but is broken.
17452 lt_prog_compiler_static_CXX=
17453 ;;
17454 interix[3-9]*)
17455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17456 # Instead, we relocate shared libraries at runtime.
17457 ;;
17458 sysv4*MP*)
17459 if test -d /usr/nec; then
17460 lt_prog_compiler_pic_CXX=-Kconform_pic
17461 fi
17462 ;;
17463 hpux*)
17464 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17465 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17466 # sets the default TLS model and affects inlining.
17467 case $host_cpu in
17468 hppa*64*)
17469 ;;
17470 *)
17471 lt_prog_compiler_pic_CXX='-fPIC'
17472 ;;
17473 esac
17474 ;;
17475 *qnx* | *nto*)
17476 # QNX uses GNU C++, but need to define -shared option too, otherwise
17477 # it will coredump.
17478 lt_prog_compiler_pic_CXX='-fPIC -shared'
17479 ;;
17480 *)
17481 lt_prog_compiler_pic_CXX='-fPIC'
17482 ;;
17483 esac
17484 else
17485 case $host_os in
17486 aix[4-9]*)
17487 # All AIX code is PIC.
17488 if test ia64 = "$host_cpu"; then
17489 # AIX 5 now supports IA64 processor
17490 lt_prog_compiler_static_CXX='-Bstatic'
17491 else
17492 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17493 fi
17494 ;;
17495 chorus*)
17496 case $cc_basename in
17497 cxch68*)
17498 # Green Hills C++ Compiler
17499 # _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"
17500 ;;
17501 esac
17502 ;;
17503 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17504 # This hack is so that the source file can tell whether it is being
17505 # built for inclusion in a dll (and should export symbols for example).
17506 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17507 ;;
17508 dgux*)
17509 case $cc_basename in
17510 ec++*)
17511 lt_prog_compiler_pic_CXX='-KPIC'
17512 ;;
17513 ghcx*)
17514 # Green Hills C++ Compiler
17515 lt_prog_compiler_pic_CXX='-pic'
17516 ;;
17517 *)
17518 ;;
17519 esac
17520 ;;
17521 freebsd* | dragonfly* | midnightbsd*)
17522 # FreeBSD uses GNU C++
17523 ;;
17524 hpux9* | hpux10* | hpux11*)
17525 case $cc_basename in
17526 CC*)
17527 lt_prog_compiler_wl_CXX='-Wl,'
17528 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17529 if test ia64 != "$host_cpu"; then
17530 lt_prog_compiler_pic_CXX='+Z'
17531 fi
17532 ;;
17533 aCC*)
17534 lt_prog_compiler_wl_CXX='-Wl,'
17535 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17536 case $host_cpu in
17537 hppa*64*|ia64*)
17538 # +Z the default
17539 ;;
17540 *)
17541 lt_prog_compiler_pic_CXX='+Z'
17542 ;;
17543 esac
17544 ;;
17545 *)
17546 ;;
17547 esac
17548 ;;
17549 interix*)
17550 # This is c89, which is MS Visual C++ (no shared libs)
17551 # Anyone wants to do a port?
17552 ;;
17553 irix5* | irix6* | nonstopux*)
17554 case $cc_basename in
17555 CC*)
17556 lt_prog_compiler_wl_CXX='-Wl,'
17557 lt_prog_compiler_static_CXX='-non_shared'
17558 # CC pic flag -KPIC is the default.
17559 ;;
17560 *)
17561 ;;
17562 esac
17563 ;;
17564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17565 case $cc_basename in
17566 KCC*)
17567 # KAI C++ Compiler
17568 lt_prog_compiler_wl_CXX='--backend -Wl,'
17569 lt_prog_compiler_pic_CXX='-fPIC'
17570 ;;
17571 ecpc* )
17572 # old Intel C++ for x86_64, which still supported -KPIC.
17573 lt_prog_compiler_wl_CXX='-Wl,'
17574 lt_prog_compiler_pic_CXX='-KPIC'
17575 lt_prog_compiler_static_CXX='-static'
17576 ;;
17577 icpc* )
17578 # Intel C++, used to be incompatible with GCC.
17579 # ICC 10 doesn't accept -KPIC any more.
17580 lt_prog_compiler_wl_CXX='-Wl,'
17581 lt_prog_compiler_pic_CXX='-fPIC'
17582 lt_prog_compiler_static_CXX='-static'
17583 ;;
17584 pgCC* | pgcpp*)
17585 # Portland Group C++ compiler
17586 lt_prog_compiler_wl_CXX='-Wl,'
17587 lt_prog_compiler_pic_CXX='-fpic'
17588 lt_prog_compiler_static_CXX='-Bstatic'
17589 ;;
17590 cxx*)
17591 # Compaq C++
17592 # Make sure the PIC flag is empty. It appears that all Alpha
17593 # Linux and Compaq Tru64 Unix objects are PIC.
17594 lt_prog_compiler_pic_CXX=
17595 lt_prog_compiler_static_CXX='-non_shared'
17596 ;;
17597 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17598 # IBM XL 8.0, 9.0 on PPC and BlueGene
17599 lt_prog_compiler_wl_CXX='-Wl,'
17600 lt_prog_compiler_pic_CXX='-qpic'
17601 lt_prog_compiler_static_CXX='-qstaticlink'
17602 ;;
17603 *)
17604 case `$CC -V 2>&1 | $SED 5q` in
17605 *Sun\ C*)
17606 # Sun C++ 5.9
17607 lt_prog_compiler_pic_CXX='-KPIC'
17608 lt_prog_compiler_static_CXX='-Bstatic'
17609 lt_prog_compiler_wl_CXX='-Qoption ld '
17610 ;;
17611 esac
17612 ;;
17613 esac
17614 ;;
17615 lynxos*)
17616 ;;
17617 m88k*)
17618 ;;
17619 mvs*)
17620 case $cc_basename in
17621 cxx*)
17622 lt_prog_compiler_pic_CXX='-W c,exportall'
17623 ;;
17624 *)
17625 ;;
17626 esac
17627 ;;
17628 netbsd* | netbsdelf*-gnu)
17629 ;;
17630 *-mlibc)
17631 ;;
17632 *qnx* | *nto*)
17633 # QNX uses GNU C++, but need to define -shared option too, otherwise
17634 # it will coredump.
17635 lt_prog_compiler_pic_CXX='-fPIC -shared'
17636 ;;
17637 osf3* | osf4* | osf5*)
17638 case $cc_basename in
17639 KCC*)
17640 lt_prog_compiler_wl_CXX='--backend -Wl,'
17641 ;;
17642 RCC*)
17643 # Rational C++ 2.4.1
17644 lt_prog_compiler_pic_CXX='-pic'
17645 ;;
17646 cxx*)
17647 # Digital/Compaq C++
17648 lt_prog_compiler_wl_CXX='-Wl,'
17649 # Make sure the PIC flag is empty. It appears that all Alpha
17650 # Linux and Compaq Tru64 Unix objects are PIC.
17651 lt_prog_compiler_pic_CXX=
17652 lt_prog_compiler_static_CXX='-non_shared'
17653 ;;
17654 *)
17655 ;;
17656 esac
17657 ;;
17658 psos*)
17659 ;;
17660 serenity*)
17661 ;;
17662 solaris*)
17663 case $cc_basename in
17664 CC* | sunCC*)
17665 # Sun C++ 4.2, 5.x and Centerline C++
17666 lt_prog_compiler_pic_CXX='-KPIC'
17667 lt_prog_compiler_static_CXX='-Bstatic'
17668 lt_prog_compiler_wl_CXX='-Qoption ld '
17669 ;;
17670 gcx*)
17671 # Green Hills C++ Compiler
17672 lt_prog_compiler_pic_CXX='-PIC'
17673 ;;
17674 *)
17675 ;;
17676 esac
17677 ;;
17678 sunos4*)
17679 case $cc_basename in
17680 CC*)
17681 # Sun C++ 4.x
17682 lt_prog_compiler_pic_CXX='-pic'
17683 lt_prog_compiler_static_CXX='-Bstatic'
17684 ;;
17685 lcc*)
17686 # Lucid
17687 lt_prog_compiler_pic_CXX='-pic'
17688 ;;
17689 *)
17690 ;;
17691 esac
17692 ;;
17693 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17694 case $cc_basename in
17695 CC*)
17696 lt_prog_compiler_wl_CXX='-Wl,'
17697 lt_prog_compiler_pic_CXX='-KPIC'
17698 lt_prog_compiler_static_CXX='-Bstatic'
17699 ;;
17700 esac
17701 ;;
17702 tandem*)
17703 case $cc_basename in
17704 NCC*)
17705 # NonStop-UX NCC 3.20
17706 lt_prog_compiler_pic_CXX='-KPIC'
17707 ;;
17708 *)
17709 ;;
17710 esac
17711 ;;
17712 vxworks*)
17713 ;;
17714 *)
17715 lt_prog_compiler_can_build_shared_CXX=no
17716 ;;
17717 esac
17718 fi
17719
17720 case $host_os in
17721 # For platforms that do not support PIC, -DPIC is meaningless:
17722 *djgpp*)
17723 lt_prog_compiler_pic_CXX=
17724 ;;
17725 *)
17726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17727 ;;
17728 esac
17729
17730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17731 printf %s "checking for $compiler option to produce PIC... " >&6; }
17732 if test ${lt_cv_prog_compiler_pic_CXX+y}
17733 then :
17734 printf %s "(cached) " >&6
17735 else case e in #(
17736 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17737 esac
17738 fi
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17740 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17741 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17742
17743 #
17744 # Check to make sure the PIC flag actually works.
17745 #
17746 if test -n "$lt_prog_compiler_pic_CXX"; then
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17748 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17749 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17750 then :
17751 printf %s "(cached) " >&6
17752 else case e in #(
17753 e) lt_cv_prog_compiler_pic_works_CXX=no
17754 ac_outfile=conftest.$ac_objext
17755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17757 # Insert the option either (1) after the last *FLAGS variable, or
17758 # (2) before a word containing "conftest.", or (3) at the end.
17759 # Note that $ac_compile itself does not contain backslashes and begins
17760 # with a dollar sign (not a hyphen), so the echo should work correctly.
17761 # The option is referenced via a variable to avoid confusing sed.
17762 lt_compile=`echo "$ac_compile" | $SED \
17763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17765 -e 's:$: $lt_compiler_flag:'`
17766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17767 (eval "$lt_compile" 2>conftest.err)
17768 ac_status=$?
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 if (exit $ac_status) && test -s "$ac_outfile"; then
17772 # The compiler can only warn and ignore the option if not recognized
17773 # So say no if there are warnings other than the usual output.
17774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17777 lt_cv_prog_compiler_pic_works_CXX=yes
17778 fi
17779 fi
17780 $RM conftest*
17781 ;;
17782 esac
17783 fi
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17785 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17786
17787 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17788 case $lt_prog_compiler_pic_CXX in
17789 "" | " "*) ;;
17790 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17791 esac
17792 else
17793 lt_prog_compiler_pic_CXX=
17794 lt_prog_compiler_can_build_shared_CXX=no
17795 fi
17796
17797 fi
17798
17799
17800
17801
17802
17803 #
17804 # Check to make sure the static flag actually works.
17805 #
17806 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17808 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17809 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17810 then :
17811 printf %s "(cached) " >&6
17812 else case e in #(
17813 e) lt_cv_prog_compiler_static_works_CXX=no
17814 save_LDFLAGS=$LDFLAGS
17815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17818 # The linker can only warn and ignore the option if not recognized
17819 # So say no if there are warnings
17820 if test -s conftest.err; then
17821 # Append any errors to the config.log.
17822 cat conftest.err 1>&5
17823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17825 if diff conftest.exp conftest.er2 >/dev/null; then
17826 lt_cv_prog_compiler_static_works_CXX=yes
17827 fi
17828 else
17829 lt_cv_prog_compiler_static_works_CXX=yes
17830 fi
17831 fi
17832 $RM -r conftest*
17833 LDFLAGS=$save_LDFLAGS
17834 ;;
17835 esac
17836 fi
17837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17838 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17839
17840 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17841 :
17842 else
17843 lt_prog_compiler_static_CXX=
17844 fi
17845
17846
17847
17848
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17850 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17851 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17852 then :
17853 printf %s "(cached) " >&6
17854 else case e in #(
17855 e) lt_cv_prog_compiler_c_o_CXX=no
17856 $RM -r conftest 2>/dev/null
17857 mkdir conftest
17858 cd conftest
17859 mkdir out
17860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17861
17862 lt_compiler_flag="-o out/conftest2.$ac_objext"
17863 # Insert the option either (1) after the last *FLAGS variable, or
17864 # (2) before a word containing "conftest.", or (3) at the end.
17865 # Note that $ac_compile itself does not contain backslashes and begins
17866 # with a dollar sign (not a hyphen), so the echo should work correctly.
17867 lt_compile=`echo "$ac_compile" | $SED \
17868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17870 -e 's:$: $lt_compiler_flag:'`
17871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17872 (eval "$lt_compile" 2>out/conftest.err)
17873 ac_status=$?
17874 cat out/conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17877 then
17878 # The compiler can only warn and ignore the option if not recognized
17879 # So say no if there are warnings
17880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17883 lt_cv_prog_compiler_c_o_CXX=yes
17884 fi
17885 fi
17886 chmod u+w . 2>&5
17887 $RM conftest*
17888 # SGI C++ compiler will create directory out/ii_files/ for
17889 # template instantiation
17890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17891 $RM out/* && rmdir out
17892 cd ..
17893 $RM -r conftest
17894 $RM conftest*
17895 ;;
17896 esac
17897 fi
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17899 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17900
17901
17902
17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17904 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17905 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17906 then :
17907 printf %s "(cached) " >&6
17908 else case e in #(
17909 e) lt_cv_prog_compiler_c_o_CXX=no
17910 $RM -r conftest 2>/dev/null
17911 mkdir conftest
17912 cd conftest
17913 mkdir out
17914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17915
17916 lt_compiler_flag="-o out/conftest2.$ac_objext"
17917 # Insert the option either (1) after the last *FLAGS variable, or
17918 # (2) before a word containing "conftest.", or (3) at the end.
17919 # Note that $ac_compile itself does not contain backslashes and begins
17920 # with a dollar sign (not a hyphen), so the echo should work correctly.
17921 lt_compile=`echo "$ac_compile" | $SED \
17922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17924 -e 's:$: $lt_compiler_flag:'`
17925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17926 (eval "$lt_compile" 2>out/conftest.err)
17927 ac_status=$?
17928 cat out/conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17931 then
17932 # The compiler can only warn and ignore the option if not recognized
17933 # So say no if there are warnings
17934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17937 lt_cv_prog_compiler_c_o_CXX=yes
17938 fi
17939 fi
17940 chmod u+w . 2>&5
17941 $RM conftest*
17942 # SGI C++ compiler will create directory out/ii_files/ for
17943 # template instantiation
17944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17945 $RM out/* && rmdir out
17946 cd ..
17947 $RM -r conftest
17948 $RM conftest*
17949 ;;
17950 esac
17951 fi
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17953 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17954
17955
17956
17957
17958 hard_links=nottested
17959 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17960 # do not overwrite the value of need_locks provided by the user
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17962 printf %s "checking if we can lock with hard links... " >&6; }
17963 hard_links=yes
17964 $RM conftest*
17965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17966 touch conftest.a
17967 ln conftest.a conftest.b 2>&5 || hard_links=no
17968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17970 printf "%s\n" "$hard_links" >&6; }
17971 if test no = "$hard_links"; then
17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17973 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17974 need_locks=warn
17975 fi
17976 else
17977 need_locks=no
17978 fi
17979
17980
17981
17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17983 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17984
17985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17986 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17987 case $host_os in
17988 aix[4-9]*)
17989 # If we're using GNU nm, then we don't want the "-C" option.
17990 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17991 # Without the "-l" option, or with the "-B" option, AIX nm treats
17992 # weak defined symbols like other global defined symbols, whereas
17993 # GNU nm marks them as "W".
17994 # While the 'weak' keyword is ignored in the Export File, we need
17995 # it in the Import File for the 'aix-soname' feature, so we have
17996 # to replace the "-B" option with "-P" for AIX nm.
17997 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17998 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'
17999 else
18000 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'
18001 fi
18002 ;;
18003 pw32*)
18004 export_symbols_cmds_CXX=$ltdll_cmds
18005 ;;
18006 cygwin* | mingw* | windows* | cegcc*)
18007 case $cc_basename in
18008 cl* | icl*)
18009 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18010 ;;
18011 *)
18012 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'
18013 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18014 ;;
18015 esac
18016 ;;
18017 linux* | k*bsd*-gnu | gnu*)
18018 link_all_deplibs_CXX=no
18019 ;;
18020 *)
18021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18022 ;;
18023 esac
18024
18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18026 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18027 test no = "$ld_shlibs_CXX" && can_build_shared=no
18028
18029 with_gnu_ld_CXX=$with_gnu_ld
18030
18031
18032
18033
18034
18035
18036 #
18037 # Do we need to explicitly link libc?
18038 #
18039 case "x$archive_cmds_need_lc_CXX" in
18040 x|xyes)
18041 # Assume -lc should be added
18042 archive_cmds_need_lc_CXX=yes
18043
18044 if test yes,yes = "$GCC,$enable_shared"; then
18045 case $archive_cmds_CXX in
18046 *'~'*)
18047 # FIXME: we may have to deal with multi-command sequences.
18048 ;;
18049 '$CC '*)
18050 # Test whether the compiler implicitly links with -lc since on some
18051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18052 # to ld, don't add -lc before -lgcc.
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18054 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18055 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18056 then :
18057 printf %s "(cached) " >&6
18058 else case e in #(
18059 e) $RM conftest*
18060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18061
18062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18063 (eval $ac_compile) 2>&5
18064 ac_status=$?
18065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; } 2>conftest.err; then
18067 soname=conftest
18068 lib=conftest
18069 libobjs=conftest.$ac_objext
18070 deplibs=
18071 wl=$lt_prog_compiler_wl_CXX
18072 pic_flag=$lt_prog_compiler_pic_CXX
18073 compiler_flags=-v
18074 linker_flags=-v
18075 verstring=
18076 output_objdir=.
18077 libname=conftest
18078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18079 allow_undefined_flag_CXX=
18080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18081 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18082 ac_status=$?
18083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18084 test $ac_status = 0; }
18085 then
18086 lt_cv_archive_cmds_need_lc_CXX=no
18087 else
18088 lt_cv_archive_cmds_need_lc_CXX=yes
18089 fi
18090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18091 else
18092 cat conftest.err 1>&5
18093 fi
18094 $RM conftest*
18095 ;;
18096 esac
18097 fi
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18099 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18100 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18101 ;;
18102 esac
18103 fi
18104 ;;
18105 esac
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18169 printf %s "checking dynamic linker characteristics... " >&6; }
18170
18171 library_names_spec=
18172 libname_spec='lib$name'
18173 soname_spec=
18174 shrext_cmds=.so
18175 postinstall_cmds=
18176 postuninstall_cmds=
18177 finish_cmds=
18178 finish_eval=
18179 shlibpath_var=
18180 shlibpath_overrides_runpath=unknown
18181 version_type=none
18182 dynamic_linker="$host_os ld.so"
18183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18184 need_lib_prefix=unknown
18185 hardcode_into_libs=no
18186
18187 # when you set need_version to no, make sure it does not cause -set_version
18188 # flags to be left without arguments
18189 need_version=unknown
18190
18191
18192
18193 case $host_os in
18194 aix3*)
18195 version_type=linux # correct to gnu/linux during the next big refactor
18196 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18197 shlibpath_var=LIBPATH
18198
18199 # AIX 3 has no versioning support, so we append a major version to the name.
18200 soname_spec='$libname$release$shared_ext$major'
18201 ;;
18202
18203 aix[4-9]*)
18204 version_type=linux # correct to gnu/linux during the next big refactor
18205 need_lib_prefix=no
18206 need_version=no
18207 hardcode_into_libs=yes
18208 if test ia64 = "$host_cpu"; then
18209 # AIX 5 supports IA64
18210 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18211 shlibpath_var=LD_LIBRARY_PATH
18212 else
18213 # With GCC up to 2.95.x, collect2 would create an import file
18214 # for dependence libraries. The import file would start with
18215 # the line '#! .'. This would cause the generated library to
18216 # depend on '.', always an invalid library. This was fixed in
18217 # development snapshots of GCC prior to 3.0.
18218 case $host_os in
18219 aix4 | aix4.[01] | aix4.[01].*)
18220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18221 echo ' yes '
18222 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18223 :
18224 else
18225 can_build_shared=no
18226 fi
18227 ;;
18228 esac
18229 # Using Import Files as archive members, it is possible to support
18230 # filename-based versioning of shared library archives on AIX. While
18231 # this would work for both with and without runtime linking, it will
18232 # prevent static linking of such archives. So we do filename-based
18233 # shared library versioning with .so extension only, which is used
18234 # when both runtime linking and shared linking is enabled.
18235 # Unfortunately, runtime linking may impact performance, so we do
18236 # not want this to be the default eventually. Also, we use the
18237 # versioned .so libs for executables only if there is the -brtl
18238 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18239 # To allow for filename-based versioning support, we need to create
18240 # libNAME.so.V as an archive file, containing:
18241 # *) an Import File, referring to the versioned filename of the
18242 # archive as well as the shared archive member, telling the
18243 # bitwidth (32 or 64) of that shared object, and providing the
18244 # list of exported symbols of that shared object, eventually
18245 # decorated with the 'weak' keyword
18246 # *) the shared object with the F_LOADONLY flag set, to really avoid
18247 # it being seen by the linker.
18248 # At run time we better use the real file rather than another symlink,
18249 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18250
18251 case $with_aix_soname,$aix_use_runtimelinking in
18252 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18253 # soname into executable. Probably we can add versioning support to
18254 # collect2, so additional links can be useful in future.
18255 aix,yes) # traditional libtool
18256 dynamic_linker='AIX unversionable lib.so'
18257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18258 # instead of lib<name>.a to let people know that these are not
18259 # typical AIX shared libraries.
18260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18261 ;;
18262 aix,no) # traditional AIX only
18263 dynamic_linker='AIX lib.a(lib.so.V)'
18264 # We preserve .a as extension for shared libraries through AIX4.2
18265 # and later when we are not doing run time linking.
18266 library_names_spec='$libname$release.a $libname.a'
18267 soname_spec='$libname$release$shared_ext$major'
18268 ;;
18269 svr4,*) # full svr4 only
18270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18272 # We do not specify a path in Import Files, so LIBPATH fires.
18273 shlibpath_overrides_runpath=yes
18274 ;;
18275 *,yes) # both, prefer svr4
18276 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18277 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18278 # unpreferred sharedlib libNAME.a needs extra handling
18279 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"'
18280 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"'
18281 # We do not specify a path in Import Files, so LIBPATH fires.
18282 shlibpath_overrides_runpath=yes
18283 ;;
18284 *,no) # both, prefer aix
18285 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18286 library_names_spec='$libname$release.a $libname.a'
18287 soname_spec='$libname$release$shared_ext$major'
18288 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18289 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)'
18290 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"'
18291 ;;
18292 esac
18293 shlibpath_var=LIBPATH
18294 fi
18295 ;;
18296
18297 amigaos*)
18298 case $host_cpu in
18299 powerpc)
18300 # Since July 2007 AmigaOS4 officially supports .so libraries.
18301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18303 ;;
18304 m68k)
18305 library_names_spec='$libname.ixlibrary $libname.a'
18306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18307 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'
18308 ;;
18309 esac
18310 ;;
18311
18312 beos*)
18313 library_names_spec='$libname$shared_ext'
18314 dynamic_linker="$host_os ld.so"
18315 shlibpath_var=LIBRARY_PATH
18316 ;;
18317
18318 bsdi[45]*)
18319 version_type=linux # correct to gnu/linux during the next big refactor
18320 need_version=no
18321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18322 soname_spec='$libname$release$shared_ext$major'
18323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18327 # the default ld.so.conf also contains /usr/contrib/lib and
18328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18329 # libtool to hard-code these into programs
18330 ;;
18331
18332 cygwin* | mingw* | windows* | pw32* | cegcc*)
18333 version_type=windows
18334 shrext_cmds=.dll
18335 need_version=no
18336 need_lib_prefix=no
18337
18338 case $GCC,$cc_basename in
18339 yes,*)
18340 # gcc
18341 library_names_spec='$libname.dll.a'
18342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18343 # If user builds GCC with multilib enabled,
18344 # it should just install on $(libdir)
18345 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18346 if test xyes = x"$multilib"; then
18347 postinstall_cmds='base_file=`basename \$file`~
18348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18349 dldir=$destdir/`dirname \$dlpath`~
18350 $install_prog $dir/$dlname $destdir/$dlname~
18351 chmod a+x $destdir/$dlname~
18352 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18353 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18354 fi'
18355 else
18356 postinstall_cmds='base_file=`basename \$file`~
18357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18358 dldir=$destdir/`dirname \$dlpath`~
18359 test -d \$dldir || mkdir -p \$dldir~
18360 $install_prog $dir/$dlname \$dldir/$dlname~
18361 chmod a+x \$dldir/$dlname~
18362 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18363 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18364 fi'
18365 fi
18366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18367 dlpath=$dir/\$dldll~
18368 $RM \$dlpath'
18369 shlibpath_overrides_runpath=yes
18370
18371 case $host_os in
18372 cygwin*)
18373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18374 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18375
18376 ;;
18377 mingw* | windows* | cegcc*)
18378 # MinGW DLLs use traditional 'lib' prefix
18379 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18380 ;;
18381 pw32*)
18382 # pw32 DLLs use 'pw' prefix rather than 'lib'
18383 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18384 ;;
18385 esac
18386 dynamic_linker='Win32 ld.exe'
18387 ;;
18388
18389 *,cl* | *,icl*)
18390 # Native MSVC or ICC
18391 libname_spec='$name'
18392 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18393 library_names_spec='$libname.dll.lib'
18394
18395 case $build_os in
18396 mingw* | windows*)
18397 sys_lib_search_path_spec=
18398 lt_save_ifs=$IFS
18399 IFS=';'
18400 for lt_path in $LIB
18401 do
18402 IFS=$lt_save_ifs
18403 # Let DOS variable expansion print the short 8.3 style file name.
18404 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18405 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18406 done
18407 IFS=$lt_save_ifs
18408 # Convert to MSYS style.
18409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18410 ;;
18411 cygwin*)
18412 # Convert to unix form, then to dos form, then back to unix form
18413 # but this time dos style (no spaces!) so that the unix form looks
18414 # like /cygdrive/c/PROGRA~1:/cygdr...
18415 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18416 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18417 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18418 ;;
18419 *)
18420 sys_lib_search_path_spec=$LIB
18421 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18422 # It is most probably a Windows format PATH.
18423 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18424 else
18425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18426 fi
18427 # FIXME: find the short name or the path components, as spaces are
18428 # common. (e.g. "Program Files" -> "PROGRA~1")
18429 ;;
18430 esac
18431
18432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18433 postinstall_cmds='base_file=`basename \$file`~
18434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18435 dldir=$destdir/`dirname \$dlpath`~
18436 test -d \$dldir || mkdir -p \$dldir~
18437 $install_prog $dir/$dlname \$dldir/$dlname'
18438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18439 dlpath=$dir/\$dldll~
18440 $RM \$dlpath'
18441 shlibpath_overrides_runpath=yes
18442 dynamic_linker='Win32 link.exe'
18443 ;;
18444
18445 *)
18446 # Assume MSVC and ICC wrapper
18447 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18448 dynamic_linker='Win32 ld.exe'
18449 ;;
18450 esac
18451 # FIXME: first we should search . and the directory the executable is in
18452 shlibpath_var=PATH
18453 ;;
18454
18455 darwin* | rhapsody*)
18456 dynamic_linker="$host_os dyld"
18457 version_type=darwin
18458 need_lib_prefix=no
18459 need_version=no
18460 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18461 soname_spec='$libname$release$major$shared_ext'
18462 shlibpath_overrides_runpath=yes
18463 shlibpath_var=DYLD_LIBRARY_PATH
18464 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18465
18466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18467 ;;
18468
18469 dgux*)
18470 version_type=linux # correct to gnu/linux during the next big refactor
18471 need_lib_prefix=no
18472 need_version=no
18473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18474 soname_spec='$libname$release$shared_ext$major'
18475 shlibpath_var=LD_LIBRARY_PATH
18476 ;;
18477
18478 freebsd* | dragonfly* | midnightbsd*)
18479 # DragonFly does not have aout. When/if they implement a new
18480 # versioning mechanism, adjust this.
18481 if test -x /usr/bin/objformat; then
18482 objformat=`/usr/bin/objformat`
18483 else
18484 case $host_os in
18485 freebsd[23].*) objformat=aout ;;
18486 *) objformat=elf ;;
18487 esac
18488 fi
18489 version_type=freebsd-$objformat
18490 case $version_type in
18491 freebsd-elf*)
18492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18493 soname_spec='$libname$release$shared_ext$major'
18494 need_version=no
18495 need_lib_prefix=no
18496 ;;
18497 freebsd-*)
18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18499 need_version=yes
18500 ;;
18501 esac
18502 case $host_cpu in
18503 powerpc64)
18504 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18505 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18508 int test_pointer_size[sizeof (void *) - 5];
18509
18510 _ACEOF
18511 if ac_fn_cxx_try_compile "$LINENO"
18512 then :
18513 shlibpath_var=LD_LIBRARY_PATH
18514 else case e in #(
18515 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18516 esac
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18519 ;;
18520 *)
18521 shlibpath_var=LD_LIBRARY_PATH
18522 ;;
18523 esac
18524 case $host_os in
18525 freebsd2.*)
18526 shlibpath_overrides_runpath=yes
18527 ;;
18528 freebsd3.[01]* | freebsdelf3.[01]*)
18529 shlibpath_overrides_runpath=yes
18530 hardcode_into_libs=yes
18531 ;;
18532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18534 shlibpath_overrides_runpath=no
18535 hardcode_into_libs=yes
18536 ;;
18537 *) # from 4.6 on, and DragonFly
18538 shlibpath_overrides_runpath=yes
18539 hardcode_into_libs=yes
18540 ;;
18541 esac
18542 ;;
18543
18544 haiku*)
18545 version_type=linux # correct to gnu/linux during the next big refactor
18546 need_lib_prefix=no
18547 need_version=no
18548 dynamic_linker="$host_os runtime_loader"
18549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18550 soname_spec='$libname$release$shared_ext$major'
18551 shlibpath_var=LIBRARY_PATH
18552 shlibpath_overrides_runpath=no
18553 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18554 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18555 hardcode_into_libs=no
18556 ;;
18557
18558 hpux9* | hpux10* | hpux11*)
18559 # Give a soname corresponding to the major version so that dld.sl refuses to
18560 # link against other versions.
18561 version_type=sunos
18562 need_lib_prefix=no
18563 need_version=no
18564 case $host_cpu in
18565 ia64*)
18566 shrext_cmds='.so'
18567 hardcode_into_libs=yes
18568 dynamic_linker="$host_os dld.so"
18569 shlibpath_var=LD_LIBRARY_PATH
18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18572 soname_spec='$libname$release$shared_ext$major'
18573 if test 32 = "$HPUX_IA64_MODE"; then
18574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18575 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18576 else
18577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18578 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18579 fi
18580 ;;
18581 hppa*64*)
18582 shrext_cmds='.sl'
18583 hardcode_into_libs=yes
18584 dynamic_linker="$host_os dld.sl"
18585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18588 soname_spec='$libname$release$shared_ext$major'
18589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18591 ;;
18592 *)
18593 shrext_cmds='.sl'
18594 dynamic_linker="$host_os dld.sl"
18595 shlibpath_var=SHLIB_PATH
18596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18598 soname_spec='$libname$release$shared_ext$major'
18599 ;;
18600 esac
18601 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18602 postinstall_cmds='chmod 555 $lib'
18603 # or fails outright, so override atomically:
18604 install_override_mode=555
18605 ;;
18606
18607 interix[3-9]*)
18608 version_type=linux # correct to gnu/linux during the next big refactor
18609 need_lib_prefix=no
18610 need_version=no
18611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18612 soname_spec='$libname$release$shared_ext$major'
18613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=no
18616 hardcode_into_libs=yes
18617 ;;
18618
18619 irix5* | irix6* | nonstopux*)
18620 case $host_os in
18621 nonstopux*) version_type=nonstopux ;;
18622 *)
18623 if test yes = "$lt_cv_prog_gnu_ld"; then
18624 version_type=linux # correct to gnu/linux during the next big refactor
18625 else
18626 version_type=irix
18627 fi ;;
18628 esac
18629 need_lib_prefix=no
18630 need_version=no
18631 soname_spec='$libname$release$shared_ext$major'
18632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18633 case $host_os in
18634 irix5* | nonstopux*)
18635 libsuff= shlibsuff=
18636 ;;
18637 *)
18638 case $LD in # libtool.m4 will add one of these switches to LD
18639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18640 libsuff= shlibsuff= libmagic=32-bit;;
18641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18642 libsuff=32 shlibsuff=N32 libmagic=N32;;
18643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18645 *) libsuff= shlibsuff= libmagic=never-match;;
18646 esac
18647 ;;
18648 esac
18649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18650 shlibpath_overrides_runpath=no
18651 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18652 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18653 hardcode_into_libs=yes
18654 ;;
18655
18656 # No shared lib support for Linux oldld, aout, or coff.
18657 linux*oldld* | linux*aout* | linux*coff*)
18658 dynamic_linker=no
18659 ;;
18660
18661 linux*android*)
18662 version_type=none # Android doesn't support versioned libraries.
18663 need_lib_prefix=no
18664 need_version=no
18665 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18666 soname_spec='$libname$release$shared_ext'
18667 finish_cmds=
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=yes
18670
18671 # This implies no fast_install, which is unacceptable.
18672 # Some rework will be needed to allow for fast_install
18673 # before this can be enabled.
18674 hardcode_into_libs=yes
18675
18676 dynamic_linker='Android linker'
18677 # -rpath works at least for libraries that are not overridden by
18678 # libraries installed in system locations.
18679 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18680 ;;
18681
18682 # This must be glibc/ELF.
18683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18684 version_type=linux # correct to gnu/linux during the next big refactor
18685 need_lib_prefix=no
18686 need_version=no
18687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18688 soname_spec='$libname$release$shared_ext$major'
18689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18690 shlibpath_var=LD_LIBRARY_PATH
18691 shlibpath_overrides_runpath=no
18692
18693 # Some binutils ld are patched to set DT_RUNPATH
18694 if test ${lt_cv_shlibpath_overrides_runpath+y}
18695 then :
18696 printf %s "(cached) " >&6
18697 else case e in #(
18698 e) lt_cv_shlibpath_overrides_runpath=no
18699 save_LDFLAGS=$LDFLAGS
18700 save_libdir=$libdir
18701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705
18706 int
18707 main (void)
18708 {
18709
18710 ;
18711 return 0;
18712 }
18713 _ACEOF
18714 if ac_fn_cxx_try_link "$LINENO"
18715 then :
18716 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18717 then :
18718 lt_cv_shlibpath_overrides_runpath=yes
18719 fi
18720 fi
18721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18722 conftest$ac_exeext conftest.$ac_ext
18723 LDFLAGS=$save_LDFLAGS
18724 libdir=$save_libdir
18725 ;;
18726 esac
18727 fi
18728
18729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18730
18731 # This implies no fast_install, which is unacceptable.
18732 # Some rework will be needed to allow for fast_install
18733 # before this can be enabled.
18734 hardcode_into_libs=yes
18735
18736 # Ideally, we could use ldconfig to report *all* directories which are
18737 # searched for libraries, however this is still not possible. Aside from not
18738 # being certain /sbin/ldconfig is available, command
18739 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18740 # even though it is searched at run-time. Try to do the best guess by
18741 # appending ld.so.conf contents (and includes) to the search path.
18742 if test -f /etc/ld.so.conf; then
18743 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' ' '`
18744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18745 fi
18746
18747 # We used to test for /lib/ld.so.1 and disable shared libraries on
18748 # powerpc, because MkLinux only supported shared libraries with the
18749 # GNU dynamic linker. Since this was broken with cross compilers,
18750 # most powerpc-linux boxes support dynamic linking these days and
18751 # people can always --disable-shared, the test was removed, and we
18752 # assume the GNU/Linux dynamic linker is in use.
18753 dynamic_linker='GNU/Linux ld.so'
18754 ;;
18755
18756 netbsdelf*-gnu)
18757 version_type=linux
18758 need_lib_prefix=no
18759 need_version=no
18760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18761 soname_spec='$libname$release$shared_ext$major'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 shlibpath_overrides_runpath=no
18764 hardcode_into_libs=yes
18765 dynamic_linker='NetBSD ld.elf_so'
18766 ;;
18767
18768 netbsdelf*-gnu)
18769 version_type=linux
18770 need_lib_prefix=no
18771 need_version=no
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 shlibpath_overrides_runpath=no
18776 hardcode_into_libs=yes
18777 dynamic_linker='NetBSD ld.elf_so'
18778 ;;
18779
18780 netbsd*)
18781 version_type=sunos
18782 need_lib_prefix=no
18783 need_version=no
18784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18785 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18787 dynamic_linker='NetBSD (a.out) ld.so'
18788 else
18789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18790 soname_spec='$libname$release$shared_ext$major'
18791 dynamic_linker='NetBSD ld.elf_so'
18792 fi
18793 shlibpath_var=LD_LIBRARY_PATH
18794 shlibpath_overrides_runpath=yes
18795 hardcode_into_libs=yes
18796 ;;
18797
18798 *-mlibc)
18799 version_type=linux # correct to gnu/linux during the next big refactor
18800 need_lib_prefix=no
18801 need_version=no
18802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18803 soname_spec='$libname$release$shared_ext$major'
18804 dynamic_linker='mlibc ld.so'
18805 shlibpath_var=LD_LIBRARY_PATH
18806 shlibpath_overrides_runpath=no
18807 hardcode_into_libs=yes
18808 ;;
18809
18810 newsos6)
18811 version_type=linux # correct to gnu/linux during the next big refactor
18812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18815 ;;
18816
18817 *nto* | *qnx*)
18818 version_type=qnx
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18822 soname_spec='$libname$release$shared_ext$major'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 shlibpath_overrides_runpath=no
18825 hardcode_into_libs=yes
18826 dynamic_linker='ldqnx.so'
18827 ;;
18828
18829 openbsd*)
18830 version_type=sunos
18831 sys_lib_dlsearch_path_spec=/usr/lib
18832 need_lib_prefix=no
18833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18834 need_version=no
18835 else
18836 need_version=yes
18837 fi
18838 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 shlibpath_overrides_runpath=yes
18842 ;;
18843
18844 os2*)
18845 libname_spec='$name'
18846 version_type=windows
18847 shrext_cmds=.dll
18848 need_version=no
18849 need_lib_prefix=no
18850 # OS/2 can only load a DLL with a base name of 8 characters or less.
18851 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18852 v=$($ECHO $release$versuffix | tr -d .-);
18853 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18854 $ECHO $n$v`$shared_ext'
18855 library_names_spec='${libname}_dll.$libext'
18856 dynamic_linker='OS/2 ld.exe'
18857 shlibpath_var=BEGINLIBPATH
18858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18860 postinstall_cmds='base_file=`basename \$file`~
18861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18862 dldir=$destdir/`dirname \$dlpath`~
18863 test -d \$dldir || mkdir -p \$dldir~
18864 $install_prog $dir/$dlname \$dldir/$dlname~
18865 chmod a+x \$dldir/$dlname~
18866 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18867 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18868 fi'
18869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18870 dlpath=$dir/\$dldll~
18871 $RM \$dlpath'
18872 ;;
18873
18874 osf3* | osf4* | osf5*)
18875 version_type=osf
18876 need_lib_prefix=no
18877 need_version=no
18878 soname_spec='$libname$release$shared_ext$major'
18879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18880 shlibpath_var=LD_LIBRARY_PATH
18881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18883 ;;
18884
18885 rdos*)
18886 dynamic_linker=no
18887 ;;
18888
18889 serenity*)
18890 version_type=linux # correct to gnu/linux during the next big refactor
18891 need_lib_prefix=no
18892 need_version=no
18893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18894 soname_spec='$libname$release$shared_ext$major'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 shlibpath_overrides_runpath=no
18897 dynamic_linker='SerenityOS LibELF'
18898 ;;
18899
18900 solaris*)
18901 version_type=linux # correct to gnu/linux during the next big refactor
18902 need_lib_prefix=no
18903 need_version=no
18904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18905 soname_spec='$libname$release$shared_ext$major'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath=yes
18908 hardcode_into_libs=yes
18909 # ldd complains unless libraries are executable
18910 postinstall_cmds='chmod +x $lib'
18911 ;;
18912
18913 sunos4*)
18914 version_type=sunos
18915 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 shlibpath_overrides_runpath=yes
18919 if test yes = "$with_gnu_ld"; then
18920 need_lib_prefix=no
18921 fi
18922 need_version=yes
18923 ;;
18924
18925 sysv4 | sysv4.3*)
18926 version_type=linux # correct to gnu/linux during the next big refactor
18927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18928 soname_spec='$libname$release$shared_ext$major'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 case $host_vendor in
18931 sni)
18932 shlibpath_overrides_runpath=no
18933 need_lib_prefix=no
18934 runpath_var=LD_RUN_PATH
18935 ;;
18936 siemens)
18937 need_lib_prefix=no
18938 ;;
18939 motorola)
18940 need_lib_prefix=no
18941 need_version=no
18942 shlibpath_overrides_runpath=no
18943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18944 ;;
18945 esac
18946 ;;
18947
18948 sysv4*MP*)
18949 if test -d /usr/nec; then
18950 version_type=linux # correct to gnu/linux during the next big refactor
18951 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18952 soname_spec='$libname$shared_ext.$major'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 fi
18955 ;;
18956
18957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18958 version_type=sco
18959 need_lib_prefix=no
18960 need_version=no
18961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18962 soname_spec='$libname$release$shared_ext$major'
18963 shlibpath_var=LD_LIBRARY_PATH
18964 shlibpath_overrides_runpath=yes
18965 hardcode_into_libs=yes
18966 if test yes = "$with_gnu_ld"; then
18967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18968 else
18969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18970 case $host_os in
18971 sco3.2v5*)
18972 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18973 ;;
18974 esac
18975 fi
18976 sys_lib_dlsearch_path_spec='/usr/lib'
18977 ;;
18978
18979 tpf*)
18980 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18981 version_type=linux # correct to gnu/linux during the next big refactor
18982 need_lib_prefix=no
18983 need_version=no
18984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18985 shlibpath_var=LD_LIBRARY_PATH
18986 shlibpath_overrides_runpath=no
18987 hardcode_into_libs=yes
18988 ;;
18989
18990 uts4*)
18991 version_type=linux # correct to gnu/linux during the next big refactor
18992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18993 soname_spec='$libname$release$shared_ext$major'
18994 shlibpath_var=LD_LIBRARY_PATH
18995 ;;
18996
18997 emscripten*)
18998 version_type=none
18999 need_lib_prefix=no
19000 need_version=no
19001 library_names_spec='$libname$release$shared_ext'
19002 soname_spec='$libname$release$shared_ext'
19003 finish_cmds=
19004 dynamic_linker="Emscripten linker"
19005 lt_prog_compiler_wl_CXX=
19006 lt_prog_compiler_pic_CXX=
19007 lt_prog_compiler_static_CXX=
19008
19009
19010 # C++ specific cases for pic, static, wl, etc.
19011 if test yes = "$GXX"; then
19012 lt_prog_compiler_wl_CXX='-Wl,'
19013 lt_prog_compiler_static_CXX='-static'
19014
19015 case $host_os in
19016 aix*)
19017 # All AIX code is PIC.
19018 if test ia64 = "$host_cpu"; then
19019 # AIX 5 now supports IA64 processor
19020 lt_prog_compiler_static_CXX='-Bstatic'
19021 fi
19022 lt_prog_compiler_pic_CXX='-fPIC'
19023 ;;
19024
19025 amigaos*)
19026 case $host_cpu in
19027 powerpc)
19028 # see comment about AmigaOS4 .so support
19029 lt_prog_compiler_pic_CXX='-fPIC'
19030 ;;
19031 m68k)
19032 # FIXME: we need at least 68020 code to build shared libraries, but
19033 # adding the '-m68020' flag to GCC prevents building anything better,
19034 # like '-m68040'.
19035 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19036 ;;
19037 esac
19038 ;;
19039
19040 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19041 # PIC is the default for these OSes.
19042 ;;
19043 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19044 # This hack is so that the source file can tell whether it is being
19045 # built for inclusion in a dll (and should export symbols for example).
19046 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19047 # (--disable-auto-import) libraries
19048 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19049 case $host_os in
19050 os2*)
19051 lt_prog_compiler_static_CXX='$wl-static'
19052 ;;
19053 esac
19054 ;;
19055 darwin* | rhapsody*)
19056 # PIC is the default on this platform
19057 # Common symbols not allowed in MH_DYLIB files
19058 lt_prog_compiler_pic_CXX='-fno-common'
19059 ;;
19060 *djgpp*)
19061 # DJGPP does not support shared libraries at all
19062 lt_prog_compiler_pic_CXX=
19063 ;;
19064 haiku*)
19065 # PIC is the default for Haiku.
19066 # The "-static" flag exists, but is broken.
19067 lt_prog_compiler_static_CXX=
19068 ;;
19069 interix[3-9]*)
19070 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19071 # Instead, we relocate shared libraries at runtime.
19072 ;;
19073 sysv4*MP*)
19074 if test -d /usr/nec; then
19075 lt_prog_compiler_pic_CXX=-Kconform_pic
19076 fi
19077 ;;
19078 hpux*)
19079 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19080 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19081 # sets the default TLS model and affects inlining.
19082 case $host_cpu in
19083 hppa*64*)
19084 ;;
19085 *)
19086 lt_prog_compiler_pic_CXX='-fPIC'
19087 ;;
19088 esac
19089 ;;
19090 *qnx* | *nto*)
19091 # QNX uses GNU C++, but need to define -shared option too, otherwise
19092 # it will coredump.
19093 lt_prog_compiler_pic_CXX='-fPIC -shared'
19094 ;;
19095 *)
19096 lt_prog_compiler_pic_CXX='-fPIC'
19097 ;;
19098 esac
19099 else
19100 case $host_os in
19101 aix[4-9]*)
19102 # All AIX code is PIC.
19103 if test ia64 = "$host_cpu"; then
19104 # AIX 5 now supports IA64 processor
19105 lt_prog_compiler_static_CXX='-Bstatic'
19106 else
19107 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19108 fi
19109 ;;
19110 chorus*)
19111 case $cc_basename in
19112 cxch68*)
19113 # Green Hills C++ Compiler
19114 # _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"
19115 ;;
19116 esac
19117 ;;
19118 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19119 # This hack is so that the source file can tell whether it is being
19120 # built for inclusion in a dll (and should export symbols for example).
19121 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19122 ;;
19123 dgux*)
19124 case $cc_basename in
19125 ec++*)
19126 lt_prog_compiler_pic_CXX='-KPIC'
19127 ;;
19128 ghcx*)
19129 # Green Hills C++ Compiler
19130 lt_prog_compiler_pic_CXX='-pic'
19131 ;;
19132 *)
19133 ;;
19134 esac
19135 ;;
19136 freebsd* | dragonfly* | midnightbsd*)
19137 # FreeBSD uses GNU C++
19138 ;;
19139 hpux9* | hpux10* | hpux11*)
19140 case $cc_basename in
19141 CC*)
19142 lt_prog_compiler_wl_CXX='-Wl,'
19143 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19144 if test ia64 != "$host_cpu"; then
19145 lt_prog_compiler_pic_CXX='+Z'
19146 fi
19147 ;;
19148 aCC*)
19149 lt_prog_compiler_wl_CXX='-Wl,'
19150 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19151 case $host_cpu in
19152 hppa*64*|ia64*)
19153 # +Z the default
19154 ;;
19155 *)
19156 lt_prog_compiler_pic_CXX='+Z'
19157 ;;
19158 esac
19159 ;;
19160 *)
19161 ;;
19162 esac
19163 ;;
19164 interix*)
19165 # This is c89, which is MS Visual C++ (no shared libs)
19166 # Anyone wants to do a port?
19167 ;;
19168 irix5* | irix6* | nonstopux*)
19169 case $cc_basename in
19170 CC*)
19171 lt_prog_compiler_wl_CXX='-Wl,'
19172 lt_prog_compiler_static_CXX='-non_shared'
19173 # CC pic flag -KPIC is the default.
19174 ;;
19175 *)
19176 ;;
19177 esac
19178 ;;
19179 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19180 case $cc_basename in
19181 KCC*)
19182 # KAI C++ Compiler
19183 lt_prog_compiler_wl_CXX='--backend -Wl,'
19184 lt_prog_compiler_pic_CXX='-fPIC'
19185 ;;
19186 ecpc* )
19187 # old Intel C++ for x86_64, which still supported -KPIC.
19188 lt_prog_compiler_wl_CXX='-Wl,'
19189 lt_prog_compiler_pic_CXX='-KPIC'
19190 lt_prog_compiler_static_CXX='-static'
19191 ;;
19192 icpc* )
19193 # Intel C++, used to be incompatible with GCC.
19194 # ICC 10 doesn't accept -KPIC any more.
19195 lt_prog_compiler_wl_CXX='-Wl,'
19196 lt_prog_compiler_pic_CXX='-fPIC'
19197 lt_prog_compiler_static_CXX='-static'
19198 ;;
19199 pgCC* | pgcpp*)
19200 # Portland Group C++ compiler
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 lt_prog_compiler_pic_CXX='-fpic'
19203 lt_prog_compiler_static_CXX='-Bstatic'
19204 ;;
19205 cxx*)
19206 # Compaq C++
19207 # Make sure the PIC flag is empty. It appears that all Alpha
19208 # Linux and Compaq Tru64 Unix objects are PIC.
19209 lt_prog_compiler_pic_CXX=
19210 lt_prog_compiler_static_CXX='-non_shared'
19211 ;;
19212 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19213 # IBM XL 8.0, 9.0 on PPC and BlueGene
19214 lt_prog_compiler_wl_CXX='-Wl,'
19215 lt_prog_compiler_pic_CXX='-qpic'
19216 lt_prog_compiler_static_CXX='-qstaticlink'
19217 ;;
19218 *)
19219 case `$CC -V 2>&1 | $SED 5q` in
19220 *Sun\ C*)
19221 # Sun C++ 5.9
19222 lt_prog_compiler_pic_CXX='-KPIC'
19223 lt_prog_compiler_static_CXX='-Bstatic'
19224 lt_prog_compiler_wl_CXX='-Qoption ld '
19225 ;;
19226 esac
19227 ;;
19228 esac
19229 ;;
19230 lynxos*)
19231 ;;
19232 m88k*)
19233 ;;
19234 mvs*)
19235 case $cc_basename in
19236 cxx*)
19237 lt_prog_compiler_pic_CXX='-W c,exportall'
19238 ;;
19239 *)
19240 ;;
19241 esac
19242 ;;
19243 netbsd* | netbsdelf*-gnu)
19244 ;;
19245 *-mlibc)
19246 ;;
19247 *qnx* | *nto*)
19248 # QNX uses GNU C++, but need to define -shared option too, otherwise
19249 # it will coredump.
19250 lt_prog_compiler_pic_CXX='-fPIC -shared'
19251 ;;
19252 osf3* | osf4* | osf5*)
19253 case $cc_basename in
19254 KCC*)
19255 lt_prog_compiler_wl_CXX='--backend -Wl,'
19256 ;;
19257 RCC*)
19258 # Rational C++ 2.4.1
19259 lt_prog_compiler_pic_CXX='-pic'
19260 ;;
19261 cxx*)
19262 # Digital/Compaq C++
19263 lt_prog_compiler_wl_CXX='-Wl,'
19264 # Make sure the PIC flag is empty. It appears that all Alpha
19265 # Linux and Compaq Tru64 Unix objects are PIC.
19266 lt_prog_compiler_pic_CXX=
19267 lt_prog_compiler_static_CXX='-non_shared'
19268 ;;
19269 *)
19270 ;;
19271 esac
19272 ;;
19273 psos*)
19274 ;;
19275 serenity*)
19276 ;;
19277 solaris*)
19278 case $cc_basename in
19279 CC* | sunCC*)
19280 # Sun C++ 4.2, 5.x and Centerline C++
19281 lt_prog_compiler_pic_CXX='-KPIC'
19282 lt_prog_compiler_static_CXX='-Bstatic'
19283 lt_prog_compiler_wl_CXX='-Qoption ld '
19284 ;;
19285 gcx*)
19286 # Green Hills C++ Compiler
19287 lt_prog_compiler_pic_CXX='-PIC'
19288 ;;
19289 *)
19290 ;;
19291 esac
19292 ;;
19293 sunos4*)
19294 case $cc_basename in
19295 CC*)
19296 # Sun C++ 4.x
19297 lt_prog_compiler_pic_CXX='-pic'
19298 lt_prog_compiler_static_CXX='-Bstatic'
19299 ;;
19300 lcc*)
19301 # Lucid
19302 lt_prog_compiler_pic_CXX='-pic'
19303 ;;
19304 *)
19305 ;;
19306 esac
19307 ;;
19308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19309 case $cc_basename in
19310 CC*)
19311 lt_prog_compiler_wl_CXX='-Wl,'
19312 lt_prog_compiler_pic_CXX='-KPIC'
19313 lt_prog_compiler_static_CXX='-Bstatic'
19314 ;;
19315 esac
19316 ;;
19317 tandem*)
19318 case $cc_basename in
19319 NCC*)
19320 # NonStop-UX NCC 3.20
19321 lt_prog_compiler_pic_CXX='-KPIC'
19322 ;;
19323 *)
19324 ;;
19325 esac
19326 ;;
19327 vxworks*)
19328 ;;
19329 *)
19330 lt_prog_compiler_can_build_shared_CXX=no
19331 ;;
19332 esac
19333 fi
19334
19335 case $host_os in
19336 # For platforms that do not support PIC, -DPIC is meaningless:
19337 *djgpp*)
19338 lt_prog_compiler_pic_CXX=
19339 ;;
19340 *)
19341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19342 ;;
19343 esac
19344
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19346 printf %s "checking for $compiler option to produce PIC... " >&6; }
19347 if test ${lt_cv_prog_compiler_pic_CXX+y}
19348 then :
19349 printf %s "(cached) " >&6
19350 else case e in #(
19351 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19352 esac
19353 fi
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19355 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19356 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19357
19358 #
19359 # Check to make sure the PIC flag actually works.
19360 #
19361 if test -n "$lt_prog_compiler_pic_CXX"; then
19362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19363 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19364 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19365 then :
19366 printf %s "(cached) " >&6
19367 else case e in #(
19368 e) lt_cv_prog_compiler_pic_works_CXX=no
19369 ac_outfile=conftest.$ac_objext
19370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19371 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19372 # Insert the option either (1) after the last *FLAGS variable, or
19373 # (2) before a word containing "conftest.", or (3) at the end.
19374 # Note that $ac_compile itself does not contain backslashes and begins
19375 # with a dollar sign (not a hyphen), so the echo should work correctly.
19376 # The option is referenced via a variable to avoid confusing sed.
19377 lt_compile=`echo "$ac_compile" | $SED \
19378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19380 -e 's:$: $lt_compiler_flag:'`
19381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19382 (eval "$lt_compile" 2>conftest.err)
19383 ac_status=$?
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 if (exit $ac_status) && test -s "$ac_outfile"; then
19387 # The compiler can only warn and ignore the option if not recognized
19388 # So say no if there are warnings other than the usual output.
19389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19392 lt_cv_prog_compiler_pic_works_CXX=yes
19393 fi
19394 fi
19395 $RM conftest*
19396 ;;
19397 esac
19398 fi
19399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19400 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19401
19402 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19403 case $lt_prog_compiler_pic_CXX in
19404 "" | " "*) ;;
19405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19406 esac
19407 else
19408 lt_prog_compiler_pic_CXX=
19409 lt_prog_compiler_can_build_shared_CXX=no
19410 fi
19411
19412 fi
19413
19414
19415
19416
19417
19418 #
19419 # Check to make sure the static flag actually works.
19420 #
19421 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19423 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19424 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19425 then :
19426 printf %s "(cached) " >&6
19427 else case e in #(
19428 e) lt_cv_prog_compiler_static_works_CXX=no
19429 save_LDFLAGS=$LDFLAGS
19430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19433 # The linker can only warn and ignore the option if not recognized
19434 # So say no if there are warnings
19435 if test -s conftest.err; then
19436 # Append any errors to the config.log.
19437 cat conftest.err 1>&5
19438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19440 if diff conftest.exp conftest.er2 >/dev/null; then
19441 lt_cv_prog_compiler_static_works_CXX=yes
19442 fi
19443 else
19444 lt_cv_prog_compiler_static_works_CXX=yes
19445 fi
19446 fi
19447 $RM -r conftest*
19448 LDFLAGS=$save_LDFLAGS
19449 ;;
19450 esac
19451 fi
19452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19453 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19454
19455 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19456 :
19457 else
19458 lt_prog_compiler_static_CXX=
19459 fi
19460
19461
19462
19463 ='-fPIC'
19464 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19465 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'
19466 archive_cmds_need_lc_CXX=no
19467 no_undefined_flag_CXX=
19468 ;;
19469
19470 *)
19471 dynamic_linker=no
19472 ;;
19473 esac
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19475 printf "%s\n" "$dynamic_linker" >&6; }
19476 test no = "$dynamic_linker" && can_build_shared=no
19477
19478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19479 if test yes = "$GCC"; then
19480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19481 fi
19482
19483 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19484 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19485 fi
19486
19487 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19488 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19489 fi
19490
19491 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19492 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19493
19494 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19495 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19496
19497 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19498 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19540 printf %s "checking how to hardcode library paths into programs... " >&6; }
19541 hardcode_action_CXX=
19542 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19543 test -n "$runpath_var_CXX" ||
19544 test yes = "$hardcode_automatic_CXX"; then
19545
19546 # We can hardcode non-existent directories.
19547 if test no != "$hardcode_direct_CXX" &&
19548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19549 # have to relink, otherwise we might link with an installed library
19550 # when we should be linking with a yet-to-be-installed one
19551 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19552 test no != "$hardcode_minus_L_CXX"; then
19553 # Linking always hardcodes the temporary library directory.
19554 hardcode_action_CXX=relink
19555 else
19556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19557 hardcode_action_CXX=immediate
19558 fi
19559 else
19560 # We cannot hardcode anything, or else we can only hardcode existing
19561 # directories.
19562 hardcode_action_CXX=unsupported
19563 fi
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19565 printf "%s\n" "$hardcode_action_CXX" >&6; }
19566
19567 if test relink = "$hardcode_action_CXX" ||
19568 test yes = "$inherit_rpath_CXX"; then
19569 # Fast installation is not supported
19570 enable_fast_install=no
19571 elif test yes = "$shlibpath_overrides_runpath" ||
19572 test no = "$enable_shared"; then
19573 # Fast installation is not necessary
19574 enable_fast_install=needless
19575 fi
19576
19577
19578
19579
19580
19581
19582
19583 fi # test -n "$compiler"
19584
19585 CC=$lt_save_CC
19586 CFLAGS=$lt_save_CFLAGS
19587 LDCXX=$LD
19588 LD=$lt_save_LD
19589 GCC=$lt_save_GCC
19590 with_gnu_ld=$lt_save_with_gnu_ld
19591 lt_cv_path_LDCXX=$lt_cv_path_LD
19592 lt_cv_path_LD=$lt_save_path_LD
19593 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19594 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19595 fi # test yes != "$_lt_caught_CXX_error"
19596
19597 ac_ext=c
19598 ac_cpp='$CPP $CPPFLAGS'
19599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602
19603
19604 ac_ext=cpp
19605 ac_cpp='$CXXCPP $CPPFLAGS'
19606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19609
19610 ax_cxx_compile_cxx11_required=true
19611 ac_ext=cpp
19612 ac_cpp='$CXXCPP $CPPFLAGS'
19613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19616 ac_success=no
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
19618 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
19619 if test ${ax_cv_cxx_compile_cxx11+y}
19620 then :
19621 printf %s "(cached) " >&6
19622 else case e in #(
19623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19625
19626
19627 // If the compiler admits that it is not ready for C++11, why torture it?
19628 // Hopefully, this will speed up the test.
19629
19630 #ifndef __cplusplus
19631
19632 #error "This is not a C++ compiler"
19633
19634 #elif __cplusplus < 201103L
19635
19636 #error "This is not a C++11 compiler"
19637
19638 #else
19639
19640 namespace cxx11
19641 {
19642
19643 namespace test_static_assert
19644 {
19645
19646 template <typename T>
19647 struct check
19648 {
19649 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19650 };
19651
19652 }
19653
19654 namespace test_final_override
19655 {
19656
19657 struct Base
19658 {
19659 virtual void f() {}
19660 };
19661
19662 struct Derived : public Base
19663 {
19664 virtual void f() override {}
19665 };
19666
19667 }
19668
19669 namespace test_double_right_angle_brackets
19670 {
19671
19672 template < typename T >
19673 struct check {};
19674
19675 typedef check<void> single_type;
19676 typedef check<check<void>> double_type;
19677 typedef check<check<check<void>>> triple_type;
19678 typedef check<check<check<check<void>>>> quadruple_type;
19679
19680 }
19681
19682 namespace test_decltype
19683 {
19684
19685 int
19686 f()
19687 {
19688 int a = 1;
19689 decltype(a) b = 2;
19690 return a + b;
19691 }
19692
19693 }
19694
19695 namespace test_type_deduction
19696 {
19697
19698 template < typename T1, typename T2 >
19699 struct is_same
19700 {
19701 static const bool value = false;
19702 };
19703
19704 template < typename T >
19705 struct is_same<T, T>
19706 {
19707 static const bool value = true;
19708 };
19709
19710 template < typename T1, typename T2 >
19711 auto
19712 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19713 {
19714 return a1 + a2;
19715 }
19716
19717 int
19718 test(const int c, volatile int v)
19719 {
19720 static_assert(is_same<int, decltype(0)>::value == true, "");
19721 static_assert(is_same<int, decltype(c)>::value == false, "");
19722 static_assert(is_same<int, decltype(v)>::value == false, "");
19723 auto ac = c;
19724 auto av = v;
19725 auto sumi = ac + av + 'x';
19726 auto sumf = ac + av + 1.0;
19727 static_assert(is_same<int, decltype(ac)>::value == true, "");
19728 static_assert(is_same<int, decltype(av)>::value == true, "");
19729 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19730 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19731 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19732 return (sumf > 0.0) ? sumi : add(c, v);
19733 }
19734
19735 }
19736
19737 namespace test_noexcept
19738 {
19739
19740 int f() { return 0; }
19741 int g() noexcept { return 0; }
19742
19743 static_assert(noexcept(f()) == false, "");
19744 static_assert(noexcept(g()) == true, "");
19745
19746 }
19747
19748 namespace test_constexpr
19749 {
19750
19751 template < typename CharT >
19752 unsigned long constexpr
19753 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19754 {
19755 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19756 }
19757
19758 template < typename CharT >
19759 unsigned long constexpr
19760 strlen_c(const CharT *const s) noexcept
19761 {
19762 return strlen_c_r(s, 0UL);
19763 }
19764
19765 static_assert(strlen_c("") == 0UL, "");
19766 static_assert(strlen_c("1") == 1UL, "");
19767 static_assert(strlen_c("example") == 7UL, "");
19768 static_assert(strlen_c("another\0example") == 7UL, "");
19769
19770 }
19771
19772 namespace test_rvalue_references
19773 {
19774
19775 template < int N >
19776 struct answer
19777 {
19778 static constexpr int value = N;
19779 };
19780
19781 answer<1> f(int&) { return answer<1>(); }
19782 answer<2> f(const int&) { return answer<2>(); }
19783 answer<3> f(int&&) { return answer<3>(); }
19784
19785 void
19786 test()
19787 {
19788 int i = 0;
19789 const int c = 0;
19790 static_assert(decltype(f(i))::value == 1, "");
19791 static_assert(decltype(f(c))::value == 2, "");
19792 static_assert(decltype(f(0))::value == 3, "");
19793 }
19794
19795 }
19796
19797 namespace test_uniform_initialization
19798 {
19799
19800 struct test
19801 {
19802 static const int zero {};
19803 static const int one {1};
19804 };
19805
19806 static_assert(test::zero == 0, "");
19807 static_assert(test::one == 1, "");
19808
19809 }
19810
19811 namespace test_lambdas
19812 {
19813
19814 void
19815 test1()
19816 {
19817 auto lambda1 = [](){};
19818 auto lambda2 = lambda1;
19819 lambda1();
19820 lambda2();
19821 }
19822
19823 int
19824 test2()
19825 {
19826 auto a = [](int i, int j){ return i + j; }(1, 2);
19827 auto b = []() -> int { return '0'; }();
19828 auto c = [=](){ return a + b; }();
19829 auto d = [&](){ return c; }();
19830 auto e = [a, &b](int x) mutable {
19831 const auto identity = [](int y){ return y; };
19832 for (auto i = 0; i < a; ++i)
19833 a += b--;
19834 return x + identity(a + b);
19835 }(0);
19836 return a + b + c + d + e;
19837 }
19838
19839 int
19840 test3()
19841 {
19842 const auto nullary = [](){ return 0; };
19843 const auto unary = [](int x){ return x; };
19844 using nullary_t = decltype(nullary);
19845 using unary_t = decltype(unary);
19846 const auto higher1st = [](nullary_t f){ return f(); };
19847 const auto higher2nd = [unary](nullary_t f1){
19848 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19849 };
19850 return higher1st(nullary) + higher2nd(nullary)(unary);
19851 }
19852
19853 }
19854
19855 namespace test_variadic_templates
19856 {
19857
19858 template <int...>
19859 struct sum;
19860
19861 template <int N0, int... N1toN>
19862 struct sum<N0, N1toN...>
19863 {
19864 static constexpr auto value = N0 + sum<N1toN...>::value;
19865 };
19866
19867 template <>
19868 struct sum<>
19869 {
19870 static constexpr auto value = 0;
19871 };
19872
19873 static_assert(sum<>::value == 0, "");
19874 static_assert(sum<1>::value == 1, "");
19875 static_assert(sum<23>::value == 23, "");
19876 static_assert(sum<1, 2>::value == 3, "");
19877 static_assert(sum<5, 5, 11>::value == 21, "");
19878 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19879
19880 }
19881
19882 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19883 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19884 // because of this.
19885 namespace test_template_alias_sfinae
19886 {
19887
19888 struct foo {};
19889
19890 template<typename T>
19891 using member = typename T::member_type;
19892
19893 template<typename T>
19894 void func(...) {}
19895
19896 template<typename T>
19897 void func(member<T>*) {}
19898
19899 void test();
19900
19901 void test() { func<foo>(0); }
19902
19903 }
19904
19905 } // namespace cxx11
19906
19907 #endif // __cplusplus >= 201103L
19908
19909
19910
19911 _ACEOF
19912 if ac_fn_cxx_try_compile "$LINENO"
19913 then :
19914 ax_cv_cxx_compile_cxx11=yes
19915 else case e in #(
19916 e) ax_cv_cxx_compile_cxx11=no ;;
19917 esac
19918 fi
19919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19920 esac
19921 fi
19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
19923 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
19924 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
19925 ac_success=yes
19926 fi
19927
19928 if test x$ac_success = xno; then
19929 for switch in -std=gnu++11 -std=gnu++0x; do
19930 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
19932 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
19933 if eval test \${$cachevar+y}
19934 then :
19935 printf %s "(cached) " >&6
19936 else case e in #(
19937 e) ac_save_CXX="$CXX"
19938 CXX="$CXX $switch"
19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19941
19942
19943 // If the compiler admits that it is not ready for C++11, why torture it?
19944 // Hopefully, this will speed up the test.
19945
19946 #ifndef __cplusplus
19947
19948 #error "This is not a C++ compiler"
19949
19950 #elif __cplusplus < 201103L
19951
19952 #error "This is not a C++11 compiler"
19953
19954 #else
19955
19956 namespace cxx11
19957 {
19958
19959 namespace test_static_assert
19960 {
19961
19962 template <typename T>
19963 struct check
19964 {
19965 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19966 };
19967
19968 }
19969
19970 namespace test_final_override
19971 {
19972
19973 struct Base
19974 {
19975 virtual void f() {}
19976 };
19977
19978 struct Derived : public Base
19979 {
19980 virtual void f() override {}
19981 };
19982
19983 }
19984
19985 namespace test_double_right_angle_brackets
19986 {
19987
19988 template < typename T >
19989 struct check {};
19990
19991 typedef check<void> single_type;
19992 typedef check<check<void>> double_type;
19993 typedef check<check<check<void>>> triple_type;
19994 typedef check<check<check<check<void>>>> quadruple_type;
19995
19996 }
19997
19998 namespace test_decltype
19999 {
20000
20001 int
20002 f()
20003 {
20004 int a = 1;
20005 decltype(a) b = 2;
20006 return a + b;
20007 }
20008
20009 }
20010
20011 namespace test_type_deduction
20012 {
20013
20014 template < typename T1, typename T2 >
20015 struct is_same
20016 {
20017 static const bool value = false;
20018 };
20019
20020 template < typename T >
20021 struct is_same<T, T>
20022 {
20023 static const bool value = true;
20024 };
20025
20026 template < typename T1, typename T2 >
20027 auto
20028 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20029 {
20030 return a1 + a2;
20031 }
20032
20033 int
20034 test(const int c, volatile int v)
20035 {
20036 static_assert(is_same<int, decltype(0)>::value == true, "");
20037 static_assert(is_same<int, decltype(c)>::value == false, "");
20038 static_assert(is_same<int, decltype(v)>::value == false, "");
20039 auto ac = c;
20040 auto av = v;
20041 auto sumi = ac + av + 'x';
20042 auto sumf = ac + av + 1.0;
20043 static_assert(is_same<int, decltype(ac)>::value == true, "");
20044 static_assert(is_same<int, decltype(av)>::value == true, "");
20045 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20046 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20047 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20048 return (sumf > 0.0) ? sumi : add(c, v);
20049 }
20050
20051 }
20052
20053 namespace test_noexcept
20054 {
20055
20056 int f() { return 0; }
20057 int g() noexcept { return 0; }
20058
20059 static_assert(noexcept(f()) == false, "");
20060 static_assert(noexcept(g()) == true, "");
20061
20062 }
20063
20064 namespace test_constexpr
20065 {
20066
20067 template < typename CharT >
20068 unsigned long constexpr
20069 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20070 {
20071 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20072 }
20073
20074 template < typename CharT >
20075 unsigned long constexpr
20076 strlen_c(const CharT *const s) noexcept
20077 {
20078 return strlen_c_r(s, 0UL);
20079 }
20080
20081 static_assert(strlen_c("") == 0UL, "");
20082 static_assert(strlen_c("1") == 1UL, "");
20083 static_assert(strlen_c("example") == 7UL, "");
20084 static_assert(strlen_c("another\0example") == 7UL, "");
20085
20086 }
20087
20088 namespace test_rvalue_references
20089 {
20090
20091 template < int N >
20092 struct answer
20093 {
20094 static constexpr int value = N;
20095 };
20096
20097 answer<1> f(int&) { return answer<1>(); }
20098 answer<2> f(const int&) { return answer<2>(); }
20099 answer<3> f(int&&) { return answer<3>(); }
20100
20101 void
20102 test()
20103 {
20104 int i = 0;
20105 const int c = 0;
20106 static_assert(decltype(f(i))::value == 1, "");
20107 static_assert(decltype(f(c))::value == 2, "");
20108 static_assert(decltype(f(0))::value == 3, "");
20109 }
20110
20111 }
20112
20113 namespace test_uniform_initialization
20114 {
20115
20116 struct test
20117 {
20118 static const int zero {};
20119 static const int one {1};
20120 };
20121
20122 static_assert(test::zero == 0, "");
20123 static_assert(test::one == 1, "");
20124
20125 }
20126
20127 namespace test_lambdas
20128 {
20129
20130 void
20131 test1()
20132 {
20133 auto lambda1 = [](){};
20134 auto lambda2 = lambda1;
20135 lambda1();
20136 lambda2();
20137 }
20138
20139 int
20140 test2()
20141 {
20142 auto a = [](int i, int j){ return i + j; }(1, 2);
20143 auto b = []() -> int { return '0'; }();
20144 auto c = [=](){ return a + b; }();
20145 auto d = [&](){ return c; }();
20146 auto e = [a, &b](int x) mutable {
20147 const auto identity = [](int y){ return y; };
20148 for (auto i = 0; i < a; ++i)
20149 a += b--;
20150 return x + identity(a + b);
20151 }(0);
20152 return a + b + c + d + e;
20153 }
20154
20155 int
20156 test3()
20157 {
20158 const auto nullary = [](){ return 0; };
20159 const auto unary = [](int x){ return x; };
20160 using nullary_t = decltype(nullary);
20161 using unary_t = decltype(unary);
20162 const auto higher1st = [](nullary_t f){ return f(); };
20163 const auto higher2nd = [unary](nullary_t f1){
20164 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20165 };
20166 return higher1st(nullary) + higher2nd(nullary)(unary);
20167 }
20168
20169 }
20170
20171 namespace test_variadic_templates
20172 {
20173
20174 template <int...>
20175 struct sum;
20176
20177 template <int N0, int... N1toN>
20178 struct sum<N0, N1toN...>
20179 {
20180 static constexpr auto value = N0 + sum<N1toN...>::value;
20181 };
20182
20183 template <>
20184 struct sum<>
20185 {
20186 static constexpr auto value = 0;
20187 };
20188
20189 static_assert(sum<>::value == 0, "");
20190 static_assert(sum<1>::value == 1, "");
20191 static_assert(sum<23>::value == 23, "");
20192 static_assert(sum<1, 2>::value == 3, "");
20193 static_assert(sum<5, 5, 11>::value == 21, "");
20194 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20195
20196 }
20197
20198 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20199 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20200 // because of this.
20201 namespace test_template_alias_sfinae
20202 {
20203
20204 struct foo {};
20205
20206 template<typename T>
20207 using member = typename T::member_type;
20208
20209 template<typename T>
20210 void func(...) {}
20211
20212 template<typename T>
20213 void func(member<T>*) {}
20214
20215 void test();
20216
20217 void test() { func<foo>(0); }
20218
20219 }
20220
20221 } // namespace cxx11
20222
20223 #endif // __cplusplus >= 201103L
20224
20225
20226
20227 _ACEOF
20228 if ac_fn_cxx_try_compile "$LINENO"
20229 then :
20230 eval $cachevar=yes
20231 else case e in #(
20232 e) eval $cachevar=no ;;
20233 esac
20234 fi
20235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20236 CXX="$ac_save_CXX" ;;
20237 esac
20238 fi
20239 eval ac_res=\$$cachevar
20240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20241 printf "%s\n" "$ac_res" >&6; }
20242 if eval test x\$$cachevar = xyes; then
20243 CXX="$CXX $switch"
20244 if test -n "$CXXCPP" ; then
20245 CXXCPP="$CXXCPP $switch"
20246 fi
20247 ac_success=yes
20248 break
20249 fi
20250 done
20251 fi
20252
20253 if test x$ac_success = xno; then
20254 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
20255 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20257 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20258 if eval test \${$cachevar+y}
20259 then :
20260 printf %s "(cached) " >&6
20261 else case e in #(
20262 e) ac_save_CXX="$CXX"
20263 CXX="$CXX $switch"
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266
20267
20268 // If the compiler admits that it is not ready for C++11, why torture it?
20269 // Hopefully, this will speed up the test.
20270
20271 #ifndef __cplusplus
20272
20273 #error "This is not a C++ compiler"
20274
20275 #elif __cplusplus < 201103L
20276
20277 #error "This is not a C++11 compiler"
20278
20279 #else
20280
20281 namespace cxx11
20282 {
20283
20284 namespace test_static_assert
20285 {
20286
20287 template <typename T>
20288 struct check
20289 {
20290 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20291 };
20292
20293 }
20294
20295 namespace test_final_override
20296 {
20297
20298 struct Base
20299 {
20300 virtual void f() {}
20301 };
20302
20303 struct Derived : public Base
20304 {
20305 virtual void f() override {}
20306 };
20307
20308 }
20309
20310 namespace test_double_right_angle_brackets
20311 {
20312
20313 template < typename T >
20314 struct check {};
20315
20316 typedef check<void> single_type;
20317 typedef check<check<void>> double_type;
20318 typedef check<check<check<void>>> triple_type;
20319 typedef check<check<check<check<void>>>> quadruple_type;
20320
20321 }
20322
20323 namespace test_decltype
20324 {
20325
20326 int
20327 f()
20328 {
20329 int a = 1;
20330 decltype(a) b = 2;
20331 return a + b;
20332 }
20333
20334 }
20335
20336 namespace test_type_deduction
20337 {
20338
20339 template < typename T1, typename T2 >
20340 struct is_same
20341 {
20342 static const bool value = false;
20343 };
20344
20345 template < typename T >
20346 struct is_same<T, T>
20347 {
20348 static const bool value = true;
20349 };
20350
20351 template < typename T1, typename T2 >
20352 auto
20353 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20354 {
20355 return a1 + a2;
20356 }
20357
20358 int
20359 test(const int c, volatile int v)
20360 {
20361 static_assert(is_same<int, decltype(0)>::value == true, "");
20362 static_assert(is_same<int, decltype(c)>::value == false, "");
20363 static_assert(is_same<int, decltype(v)>::value == false, "");
20364 auto ac = c;
20365 auto av = v;
20366 auto sumi = ac + av + 'x';
20367 auto sumf = ac + av + 1.0;
20368 static_assert(is_same<int, decltype(ac)>::value == true, "");
20369 static_assert(is_same<int, decltype(av)>::value == true, "");
20370 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20371 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20372 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20373 return (sumf > 0.0) ? sumi : add(c, v);
20374 }
20375
20376 }
20377
20378 namespace test_noexcept
20379 {
20380
20381 int f() { return 0; }
20382 int g() noexcept { return 0; }
20383
20384 static_assert(noexcept(f()) == false, "");
20385 static_assert(noexcept(g()) == true, "");
20386
20387 }
20388
20389 namespace test_constexpr
20390 {
20391
20392 template < typename CharT >
20393 unsigned long constexpr
20394 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20395 {
20396 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20397 }
20398
20399 template < typename CharT >
20400 unsigned long constexpr
20401 strlen_c(const CharT *const s) noexcept
20402 {
20403 return strlen_c_r(s, 0UL);
20404 }
20405
20406 static_assert(strlen_c("") == 0UL, "");
20407 static_assert(strlen_c("1") == 1UL, "");
20408 static_assert(strlen_c("example") == 7UL, "");
20409 static_assert(strlen_c("another\0example") == 7UL, "");
20410
20411 }
20412
20413 namespace test_rvalue_references
20414 {
20415
20416 template < int N >
20417 struct answer
20418 {
20419 static constexpr int value = N;
20420 };
20421
20422 answer<1> f(int&) { return answer<1>(); }
20423 answer<2> f(const int&) { return answer<2>(); }
20424 answer<3> f(int&&) { return answer<3>(); }
20425
20426 void
20427 test()
20428 {
20429 int i = 0;
20430 const int c = 0;
20431 static_assert(decltype(f(i))::value == 1, "");
20432 static_assert(decltype(f(c))::value == 2, "");
20433 static_assert(decltype(f(0))::value == 3, "");
20434 }
20435
20436 }
20437
20438 namespace test_uniform_initialization
20439 {
20440
20441 struct test
20442 {
20443 static const int zero {};
20444 static const int one {1};
20445 };
20446
20447 static_assert(test::zero == 0, "");
20448 static_assert(test::one == 1, "");
20449
20450 }
20451
20452 namespace test_lambdas
20453 {
20454
20455 void
20456 test1()
20457 {
20458 auto lambda1 = [](){};
20459 auto lambda2 = lambda1;
20460 lambda1();
20461 lambda2();
20462 }
20463
20464 int
20465 test2()
20466 {
20467 auto a = [](int i, int j){ return i + j; }(1, 2);
20468 auto b = []() -> int { return '0'; }();
20469 auto c = [=](){ return a + b; }();
20470 auto d = [&](){ return c; }();
20471 auto e = [a, &b](int x) mutable {
20472 const auto identity = [](int y){ return y; };
20473 for (auto i = 0; i < a; ++i)
20474 a += b--;
20475 return x + identity(a + b);
20476 }(0);
20477 return a + b + c + d + e;
20478 }
20479
20480 int
20481 test3()
20482 {
20483 const auto nullary = [](){ return 0; };
20484 const auto unary = [](int x){ return x; };
20485 using nullary_t = decltype(nullary);
20486 using unary_t = decltype(unary);
20487 const auto higher1st = [](nullary_t f){ return f(); };
20488 const auto higher2nd = [unary](nullary_t f1){
20489 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20490 };
20491 return higher1st(nullary) + higher2nd(nullary)(unary);
20492 }
20493
20494 }
20495
20496 namespace test_variadic_templates
20497 {
20498
20499 template <int...>
20500 struct sum;
20501
20502 template <int N0, int... N1toN>
20503 struct sum<N0, N1toN...>
20504 {
20505 static constexpr auto value = N0 + sum<N1toN...>::value;
20506 };
20507
20508 template <>
20509 struct sum<>
20510 {
20511 static constexpr auto value = 0;
20512 };
20513
20514 static_assert(sum<>::value == 0, "");
20515 static_assert(sum<1>::value == 1, "");
20516 static_assert(sum<23>::value == 23, "");
20517 static_assert(sum<1, 2>::value == 3, "");
20518 static_assert(sum<5, 5, 11>::value == 21, "");
20519 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20520
20521 }
20522
20523 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20524 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20525 // because of this.
20526 namespace test_template_alias_sfinae
20527 {
20528
20529 struct foo {};
20530
20531 template<typename T>
20532 using member = typename T::member_type;
20533
20534 template<typename T>
20535 void func(...) {}
20536
20537 template<typename T>
20538 void func(member<T>*) {}
20539
20540 void test();
20541
20542 void test() { func<foo>(0); }
20543
20544 }
20545
20546 } // namespace cxx11
20547
20548 #endif // __cplusplus >= 201103L
20549
20550
20551
20552 _ACEOF
20553 if ac_fn_cxx_try_compile "$LINENO"
20554 then :
20555 eval $cachevar=yes
20556 else case e in #(
20557 e) eval $cachevar=no ;;
20558 esac
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20561 CXX="$ac_save_CXX" ;;
20562 esac
20563 fi
20564 eval ac_res=\$$cachevar
20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20566 printf "%s\n" "$ac_res" >&6; }
20567 if eval test x\$$cachevar = xyes; then
20568 CXX="$CXX $switch"
20569 if test -n "$CXXCPP" ; then
20570 CXXCPP="$CXXCPP $switch"
20571 fi
20572 ac_success=yes
20573 break
20574 fi
20575 done
20576 fi
20577 ac_ext=cpp
20578 ac_cpp='$CXXCPP $CPPFLAGS'
20579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582
20583 if test x$ax_cxx_compile_cxx11_required = xtrue; then
20584 if test x$ac_success = xno; then
20585 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
20586 fi
20587 fi
20588 if test x$ac_success = xno; then
20589 HAVE_CXX11=0
20590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
20591 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
20592 else
20593 HAVE_CXX11=1
20594
20595 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
20596
20597 fi
20598
20599
20600 # Check whether --enable-openmp was given.
20601 if test ${enable_openmp+y}
20602 then :
20603 enableval=$enable_openmp;
20604 fi
20605
20606 OPENMP_CXXFLAGS=
20607 if test "$enable_openmp" != no; then
20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
20609 printf %s "checking for $CXX option to support OpenMP... " >&6; }
20610 if test ${ac_cv_prog_cxx_openmp+y}
20611 then :
20612 printf %s "(cached) " >&6
20613 else case e in #(
20614 e) ac_cv_prog_cxx_openmp='not found'
20615 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
20616 -Popenmp --openmp; do
20617
20618 ac_save_CXXFLAGS=$CXXFLAGS
20619 CXXFLAGS="$CXXFLAGS $ac_option"
20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20622
20623 #ifndef _OPENMP
20624 #error "OpenMP not supported"
20625 #endif
20626 #include <omp.h>
20627 int main (void) { return omp_get_num_threads (); }
20628
20629 _ACEOF
20630 if ac_fn_cxx_try_compile "$LINENO"
20631 then :
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20634
20635 #ifndef _OPENMP
20636 #error "OpenMP not supported"
20637 #endif
20638 #include <omp.h>
20639 int main (void) { return omp_get_num_threads (); }
20640
20641 _ACEOF
20642 if ac_fn_cxx_try_link "$LINENO"
20643 then :
20644 ac_cv_prog_cxx_openmp=$ac_option
20645 else case e in #(
20646 e) ac_cv_prog_cxx_openmp='unsupported' ;;
20647 esac
20648 fi
20649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20650 conftest$ac_exeext conftest.$ac_ext
20651 fi
20652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20653 CXXFLAGS=$ac_save_CXXFLAGS
20654
20655 if test "$ac_cv_prog_cxx_openmp" != 'not found'; then
20656 break
20657 fi
20658 done
20659 if test "$ac_cv_prog_cxx_openmp" = 'not found'; then
20660 ac_cv_prog_cxx_openmp='unsupported'
20661 elif test "$ac_cv_prog_cxx_openmp" = ''; then
20662 ac_cv_prog_cxx_openmp='none needed'
20663 fi
20664 rm -f penmp mp ;;
20665 esac
20666 fi
20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
20668 printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; }
20669 if test "$ac_cv_prog_cxx_openmp" != 'unsupported' && \
20670 test "$ac_cv_prog_cxx_openmp" != 'none needed'; then
20671 OPENMP_CXXFLAGS="$ac_cv_prog_cxx_openmp"
20672 fi
20673 fi
20674
20675
20676 CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS"
20677 ac_ext=c
20678 ac_cpp='$CPP $CPPFLAGS'
20679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20694 if test -n "$ac_tool_prefix"; then
20695 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20696 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20698 printf %s "checking for $ac_word... " >&6; }
20699 if test ${ac_cv_path_PKG_CONFIG+y}
20700 then :
20701 printf %s "(cached) " >&6
20702 else case e in #(
20703 e) case $PKG_CONFIG in
20704 [\\/]* | ?:[\\/]*)
20705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20706 ;;
20707 *)
20708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20709 for as_dir in $PATH
20710 do
20711 IFS=$as_save_IFS
20712 case $as_dir in #(((
20713 '') as_dir=./ ;;
20714 */) ;;
20715 *) as_dir=$as_dir/ ;;
20716 esac
20717 for ac_exec_ext in '' $ac_executable_extensions; do
20718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20719 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20721 break 2
20722 fi
20723 done
20724 done
20725 IFS=$as_save_IFS
20726
20727 ;;
20728 esac ;;
20729 esac
20730 fi
20731 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20732 if test -n "$PKG_CONFIG"; then
20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20734 printf "%s\n" "$PKG_CONFIG" >&6; }
20735 else
20736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20737 printf "%s\n" "no" >&6; }
20738 fi
20739
20740
20741 fi
20742 if test -z "$ac_cv_path_PKG_CONFIG"; then
20743 ac_pt_PKG_CONFIG=$PKG_CONFIG
20744 # Extract the first word of "pkg-config", so it can be a program name with args.
20745 set dummy pkg-config; ac_word=$2
20746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20747 printf %s "checking for $ac_word... " >&6; }
20748 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20749 then :
20750 printf %s "(cached) " >&6
20751 else case e in #(
20752 e) case $ac_pt_PKG_CONFIG in
20753 [\\/]* | ?:[\\/]*)
20754 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20755 ;;
20756 *)
20757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20758 for as_dir in $PATH
20759 do
20760 IFS=$as_save_IFS
20761 case $as_dir in #(((
20762 '') as_dir=./ ;;
20763 */) ;;
20764 *) as_dir=$as_dir/ ;;
20765 esac
20766 for ac_exec_ext in '' $ac_executable_extensions; do
20767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20768 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20770 break 2
20771 fi
20772 done
20773 done
20774 IFS=$as_save_IFS
20775
20776 ;;
20777 esac ;;
20778 esac
20779 fi
20780 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20781 if test -n "$ac_pt_PKG_CONFIG"; then
20782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20783 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20784 else
20785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 printf "%s\n" "no" >&6; }
20787 fi
20788
20789 if test "x$ac_pt_PKG_CONFIG" = x; then
20790 PKG_CONFIG=""
20791 else
20792 case $cross_compiling:$ac_tool_warned in
20793 yes:)
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20796 ac_tool_warned=yes ;;
20797 esac
20798 PKG_CONFIG=$ac_pt_PKG_CONFIG
20799 fi
20800 else
20801 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20802 fi
20803
20804 fi
20805 if test -n "$PKG_CONFIG"; then
20806 _pkg_min_version=0.9.0
20807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20808 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20809 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20811 printf "%s\n" "yes" >&6; }
20812 else
20813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20814 printf "%s\n" "no" >&6; }
20815 PKG_CONFIG=""
20816 fi
20817 fi
20818
20819 pkg_failed=no
20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cfitsio" >&5
20821 printf %s "checking for cfitsio... " >&6; }
20822
20823 if test -n "$CFITSIO_CFLAGS"; then
20824 pkg_cv_CFITSIO_CFLAGS="$CFITSIO_CFLAGS"
20825 elif test -n "$PKG_CONFIG"; then
20826 if test -n "$PKG_CONFIG" && \
20827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5
20828 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5
20829 ac_status=$?
20830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20831 test $ac_status = 0; }; then
20832 pkg_cv_CFITSIO_CFLAGS=`$PKG_CONFIG --cflags "cfitsio" 2>/dev/null`
20833 test "x$?" != "x0" && pkg_failed=yes
20834 else
20835 pkg_failed=yes
20836 fi
20837 else
20838 pkg_failed=untried
20839 fi
20840 if test -n "$CFITSIO_LIBS"; then
20841 pkg_cv_CFITSIO_LIBS="$CFITSIO_LIBS"
20842 elif test -n "$PKG_CONFIG"; then
20843 if test -n "$PKG_CONFIG" && \
20844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5
20845 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5
20846 ac_status=$?
20847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20848 test $ac_status = 0; }; then
20849 pkg_cv_CFITSIO_LIBS=`$PKG_CONFIG --libs "cfitsio" 2>/dev/null`
20850 test "x$?" != "x0" && pkg_failed=yes
20851 else
20852 pkg_failed=yes
20853 fi
20854 else
20855 pkg_failed=untried
20856 fi
20857
20858
20859
20860 if test $pkg_failed = yes; then
20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20862 printf "%s\n" "no" >&6; }
20863
20864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20865 _pkg_short_errors_supported=yes
20866 else
20867 _pkg_short_errors_supported=no
20868 fi
20869 if test $_pkg_short_errors_supported = yes; then
20870 CFITSIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cfitsio" 2>&1`
20871 else
20872 CFITSIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cfitsio" 2>&1`
20873 fi
20874 # Put the nasty error message in config.log where it belongs
20875 echo "$CFITSIO_PKG_ERRORS" >&5
20876
20877 CFITSIO_LIBS=-lcfitsio
20878 elif test $pkg_failed = untried; then
20879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 printf "%s\n" "no" >&6; }
20881 CFITSIO_LIBS=-lcfitsio
20882 else
20883 CFITSIO_CFLAGS=$pkg_cv_CFITSIO_CFLAGS
20884 CFITSIO_LIBS=$pkg_cv_CFITSIO_LIBS
20885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886 printf "%s\n" "yes" >&6; }
20887
20888 fi
20889
20890
20891 save_CFLAGS=$CFLAGS
20892 save_LIBS=$LIBS
20893 CFLAGS="$CFLAGS $CFITSIO_CFLAGS"
20894 LIBS="$LIBS $CFITSIO_LIBS"
20895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffgnrwll in -lcfitsio" >&5
20896 printf %s "checking for ffgnrwll in -lcfitsio... " >&6; }
20897 if test ${ac_cv_lib_cfitsio_ffgnrwll+y}
20898 then :
20899 printf %s "(cached) " >&6
20900 else case e in #(
20901 e) ac_check_lib_save_LIBS=$LIBS
20902 LIBS="-lcfitsio $LIBS"
20903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20904 /* end confdefs.h. */
20905
20906 /* Override any GCC internal prototype to avoid an error.
20907 Use char because int might match the return type of a GCC
20908 builtin and then its argument prototype would still apply.
20909 The 'extern "C"' is for builds by C++ compilers;
20910 although this is not generally supported in C code supporting it here
20911 has little cost and some practical benefit (sr 110532). */
20912 #ifdef __cplusplus
20913 extern "C"
20914 #endif
20915 char ffgnrwll (void);
20916 int
20917 main (void)
20918 {
20919 return ffgnrwll ();
20920 ;
20921 return 0;
20922 }
20923 _ACEOF
20924 if ac_fn_c_try_link "$LINENO"
20925 then :
20926 ac_cv_lib_cfitsio_ffgnrwll=yes
20927 else case e in #(
20928 e) ac_cv_lib_cfitsio_ffgnrwll=no ;;
20929 esac
20930 fi
20931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20932 conftest$ac_exeext conftest.$ac_ext
20933 LIBS=$ac_check_lib_save_LIBS ;;
20934 esac
20935 fi
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffgnrwll" >&5
20937 printf "%s\n" "$ac_cv_lib_cfitsio_ffgnrwll" >&6; }
20938 if test "x$ac_cv_lib_cfitsio_ffgnrwll" = xyes
20939 then :
20940 :
20941 else case e in #(
20942 e) as_fn_error $? "could not find the cfitsio library" "$LINENO" 5 ;;
20943 esac
20944 fi
20945
20946 for ac_header in fitsio.h
20947 do :
20948 ac_fn_c_check_header_compile "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
20949 if test "x$ac_cv_header_fitsio_h" = xyes
20950 then :
20951 printf "%s\n" "#define HAVE_FITSIO_H 1" >>confdefs.h
20952 :
20953 else case e in #(
20954 e) as_fn_error $? "could not find the cfitsio header file" "$LINENO" 5 ;;
20955 esac
20956 fi
20957
20958 done
20959 CFLAGS=$save_CFLAGS
20960 LIBS=$save_LIBS
20961
20962
20963
20964
20965 pkg_failed=no
20966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsharp" >&5
20967 printf %s "checking for libsharp... " >&6; }
20968
20969 if test -n "$SHARP_CFLAGS"; then
20970 pkg_cv_SHARP_CFLAGS="$SHARP_CFLAGS"
20971 elif test -n "$PKG_CONFIG"; then
20972 if test -n "$PKG_CONFIG" && \
20973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharp\""; } >&5
20974 ($PKG_CONFIG --exists --print-errors "libsharp") 2>&5
20975 ac_status=$?
20976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; }; then
20978 pkg_cv_SHARP_CFLAGS=`$PKG_CONFIG --cflags "libsharp" 2>/dev/null`
20979 test "x$?" != "x0" && pkg_failed=yes
20980 else
20981 pkg_failed=yes
20982 fi
20983 else
20984 pkg_failed=untried
20985 fi
20986 if test -n "$SHARP_LIBS"; then
20987 pkg_cv_SHARP_LIBS="$SHARP_LIBS"
20988 elif test -n "$PKG_CONFIG"; then
20989 if test -n "$PKG_CONFIG" && \
20990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharp\""; } >&5
20991 ($PKG_CONFIG --exists --print-errors "libsharp") 2>&5
20992 ac_status=$?
20993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }; then
20995 pkg_cv_SHARP_LIBS=`$PKG_CONFIG --libs "libsharp" 2>/dev/null`
20996 test "x$?" != "x0" && pkg_failed=yes
20997 else
20998 pkg_failed=yes
20999 fi
21000 else
21001 pkg_failed=untried
21002 fi
21003
21004
21005
21006 if test $pkg_failed = yes; then
21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008 printf "%s\n" "no" >&6; }
21009
21010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21011 _pkg_short_errors_supported=yes
21012 else
21013 _pkg_short_errors_supported=no
21014 fi
21015 if test $_pkg_short_errors_supported = yes; then
21016 SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsharp" 2>&1`
21017 else
21018 SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsharp" 2>&1`
21019 fi
21020 # Put the nasty error message in config.log where it belongs
21021 echo "$SHARP_PKG_ERRORS" >&5
21022
21023 SHARP_LIBS=-lsharp
21024 elif test $pkg_failed = untried; then
21025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 printf "%s\n" "no" >&6; }
21027 SHARP_LIBS=-lsharp
21028 else
21029 SHARP_CFLAGS=$pkg_cv_SHARP_CFLAGS
21030 SHARP_LIBS=$pkg_cv_SHARP_LIBS
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21032 printf "%s\n" "yes" >&6; }
21033
21034 fi
21035 SHARP_LIBS="$SHARP_LIBS -lm"
21036
21037
21038 save_CFLAGS=$CFLAGS
21039 save_LIBS=$LIBS
21040 CFLAGS="$CFLAGS $SHARP_CFLAGS"
21041 LIBS="$LIBS $SHARP_LIBS"
21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sharp_execute in -lsharp" >&5
21043 printf %s "checking for sharp_execute in -lsharp... " >&6; }
21044 if test ${ac_cv_lib_sharp_sharp_execute+y}
21045 then :
21046 printf %s "(cached) " >&6
21047 else case e in #(
21048 e) ac_check_lib_save_LIBS=$LIBS
21049 LIBS="-lsharp $LIBS"
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052
21053 /* Override any GCC internal prototype to avoid an error.
21054 Use char because int might match the return type of a GCC
21055 builtin and then its argument prototype would still apply.
21056 The 'extern "C"' is for builds by C++ compilers;
21057 although this is not generally supported in C code supporting it here
21058 has little cost and some practical benefit (sr 110532). */
21059 #ifdef __cplusplus
21060 extern "C"
21061 #endif
21062 char sharp_execute (void);
21063 int
21064 main (void)
21065 {
21066 return sharp_execute ();
21067 ;
21068 return 0;
21069 }
21070 _ACEOF
21071 if ac_fn_c_try_link "$LINENO"
21072 then :
21073 ac_cv_lib_sharp_sharp_execute=yes
21074 else case e in #(
21075 e) ac_cv_lib_sharp_sharp_execute=no ;;
21076 esac
21077 fi
21078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21079 conftest$ac_exeext conftest.$ac_ext
21080 LIBS=$ac_check_lib_save_LIBS ;;
21081 esac
21082 fi
21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sharp_sharp_execute" >&5
21084 printf "%s\n" "$ac_cv_lib_sharp_sharp_execute" >&6; }
21085 if test "x$ac_cv_lib_sharp_sharp_execute" = xyes
21086 then :
21087 :
21088 else case e in #(
21089 e) as_fn_error $? "could not find the libsharp library" "$LINENO" 5 ;;
21090 esac
21091 fi
21092
21093 for ac_header in libsharp/sharp.h
21094 do :
21095 ac_fn_c_check_header_compile "$LINENO" "libsharp/sharp.h" "ac_cv_header_libsharp_sharp_h" "$ac_includes_default"
21096 if test "x$ac_cv_header_libsharp_sharp_h" = xyes
21097 then :
21098 printf "%s\n" "#define HAVE_LIBSHARP_SHARP_H 1" >>confdefs.h
21099 :
21100 else case e in #(
21101 e) as_fn_error $? "could not find the libsharp header file" "$LINENO" 5 ;;
21102 esac
21103 fi
21104
21105 done
21106 CFLAGS=$save_CFLAGS
21107 LIBS=$save_LIBS
21108
21109
21110
21111
21112 # we need the expanded forms...
21113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21115
21116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
21117 printf %s "checking our pkgconfig libname... " >&6; }
21118 test ".$ax_create_pkgconfig_libname" != "." || \
21119 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
21120 test ".$ax_create_pkgconfig_libname" != "." || \
21121 ax_create_pkgconfig_libname="$PACKAGE"
21122 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
21123 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
21124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
21125 printf "%s\n" "$ax_create_pkgconfig_libname" >&6; }
21126
21127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
21128 printf %s "checking our pkgconfig version... " >&6; }
21129 test ".$ax_create_pkgconfig_version" != "." || \
21130 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
21131 test ".$ax_create_pkgconfig_version" != "." || \
21132 ax_create_pkgconfig_version="$VERSION"
21133 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
21134 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
21136 printf "%s\n" "$ax_create_pkgconfig_version" >&6; }
21137
21138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
21139 printf %s "checking our pkgconfig_libdir... " >&6; }
21140 test ".$pkgconfig_libdir" = "." && \
21141 pkgconfig_libdir='${libdir}/pkgconfig'
21142 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
21143 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
21144 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
21145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
21146 printf "%s\n" "$pkgconfig_libdir" >&6; }
21147 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
21148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
21149 printf "%s\n" "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
21150
21151
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
21153 printf %s "checking our pkgconfig_libfile... " >&6; }
21154 test ".$pkgconfig_libfile" != "." || \
21155 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
21156 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
21157 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
21159 printf "%s\n" "$pkgconfig_libfile" >&6; }
21160 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
21162 printf "%s\n" "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
21163
21164
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
21166 printf %s "checking our package / suffix... " >&6; }
21167 ax_create_pkgconfig_suffix="$program_suffix"
21168 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
21170 printf "%s\n" "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
21171
21172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
21173 printf %s "checking our pkgconfig description... " >&6; }
21174 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
21175 test ".$ax_create_pkgconfig_description" != "." || \
21176 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
21177 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
21178 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
21180 printf "%s\n" "$ax_create_pkgconfig_description" >&6; }
21181
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
21183 printf %s "checking our pkgconfig requires... " >&6; }
21184 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
21185 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
21186 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
21187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
21188 printf "%s\n" "$ax_create_pkgconfig_requires" >&6; }
21189
21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
21191 printf %s "checking our pkgconfig ext libs... " >&6; }
21192 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
21193 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
21194 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
21195 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
21196 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
21197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
21198 printf "%s\n" "$ax_create_pkgconfig_libs" >&6; }
21199
21200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
21201 printf %s "checking our pkgconfig cppflags... " >&6; }
21202 ax_create_pkgconfig_cppflags="$OPENMP_CFLAGS $SHARP_CFLAGS $CFITSIO_CFLAGS"
21203 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
21204 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
21205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
21206 printf "%s\n" "$ax_create_pkgconfig_cppflags" >&6; }
21207
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
21209 printf %s "checking our pkgconfig ldflags... " >&6; }
21210 ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS"
21211 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
21212 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
21214 printf "%s\n" "$ax_create_pkgconfig_ldflags" >&6; }
21215
21216 test ".$ax_create_pkgconfig_generate" != "." || \
21217 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
21218 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
21219 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
21220 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
21221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
21222 printf "%s\n" "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
21223
21224 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
21225 ax_create_pkgconfig_src_libdir=`pwd`
21226 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
21227 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21228 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
21229 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
21230 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
21231 printf "%s\n" X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
21232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21233 s//\1/
21234 q
21235 }
21236 /^X\(\/\/\)[^/].*/{
21237 s//\1/
21238 q
21239 }
21240 /^X\(\/\/\)$/{
21241 s//\1/
21242 q
21243 }
21244 /^X\(\/\).*/{
21245 s//\1/
21246 q
21247 }
21248 s/.*/./; q'`
21249 test ! -d $ax_create_pkgconfig_src_libdir/src || \
21250 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
21251 case ".$objdir" in
21252 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
21254 printf "%s\n" "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
21255 fi
21256
21257 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
21258 ax_create_pkgconfig_src_headers=`pwd`
21259 v="$ac_top_srcdir" ;
21260 test ".$v" != "." || v="$ax_spec_dir"
21261 test ".$v" != "." || v="$srcdir"
21262 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
21263 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
21264 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21265 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
21266 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
21267 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
21268 printf "%s\n" X"$ax_create_pkgconfig_src_headers/$v/x" |
21269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21270 s//\1/
21271 q
21272 }
21273 /^X\(\/\/\)[^/].*/{
21274 s//\1/
21275 q
21276 }
21277 /^X\(\/\/\)$/{
21278 s//\1/
21279 q
21280 }
21281 /^X\(\/\).*/{
21282 s//\1/
21283 q
21284 }
21285 s/.*/./; q'`
21286 test ! -d $ax_create_pkgconfig_src_headers/include || \
21287 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
21289 printf "%s\n" "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
21290 fi
21291
21292
21293 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
21294
21295
21296 ac_config_files="$ac_config_files Makefile"
21297
21298 cat >confcache <<\_ACEOF
21299 # This file is a shell script that caches the results of configure
21300 # tests run on this system so they can be shared between configure
21301 # scripts and configure runs, see configure's option --config-cache.
21302 # It is not useful on other systems. If it contains results you don't
21303 # want to keep, you may remove or edit it.
21304 #
21305 # config.status only pays attention to the cache file if you give it
21306 # the --recheck option to rerun configure.
21307 #
21308 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21309 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21310 # following values.
21311
21312 _ACEOF
21313
21314 # The following way of writing the cache mishandles newlines in values,
21315 # but we know of no workaround that is simple, portable, and efficient.
21316 # So, we kill variables containing newlines.
21317 # Ultrix sh set writes to stderr and can't be redirected directly,
21318 # and sets the high bit in the cache file unless we assign to the vars.
21319 (
21320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21321 eval ac_val=\$$ac_var
21322 case $ac_val in #(
21323 *${as_nl}*)
21324 case $ac_var in #(
21325 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21326 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21327 esac
21328 case $ac_var in #(
21329 _ | IFS | as_nl) ;; #(
21330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21331 *) { eval $ac_var=; unset $ac_var;} ;;
21332 esac ;;
21333 esac
21334 done
21335
21336 (set) 2>&1 |
21337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21338 *${as_nl}ac_space=\ *)
21339 # 'set' does not quote correctly, so add quotes: double-quote
21340 # substitution turns \\\\ into \\, and sed turns \\ into \.
21341 sed -n \
21342 "s/'/'\\\\''/g;
21343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21344 ;; #(
21345 *)
21346 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21348 ;;
21349 esac |
21350 sort
21351 ) |
21352 sed '
21353 /^ac_cv_env_/b end
21354 t clear
21355 :clear
21356 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21357 t end
21358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21359 :end' >>confcache
21360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21361 if test -w "$cache_file"; then
21362 if test "x$cache_file" != "x/dev/null"; then
21363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21364 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21365 if test ! -f "$cache_file" || test -h "$cache_file"; then
21366 cat confcache >"$cache_file"
21367 else
21368 case $cache_file in #(
21369 */* | ?:*)
21370 mv -f confcache "$cache_file"$$ &&
21371 mv -f "$cache_file"$$ "$cache_file" ;; #(
21372 *)
21373 mv -f confcache "$cache_file" ;;
21374 esac
21375 fi
21376 fi
21377 else
21378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21379 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21380 fi
21381 fi
21382 rm -f confcache
21383
21384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21385 # Let make expand exec_prefix.
21386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21387
21388 # Transform confdefs.h into DEFS.
21389 # Protect against shell expansion while executing Makefile rules.
21390 # Protect against Makefile macro expansion.
21391 #
21392 # If the first sed substitution is executed (which looks for macros that
21393 # take arguments), then branch to the quote section. Otherwise,
21394 # look for a macro that doesn't take arguments.
21395 ac_script='
21396 :mline
21397 /\\$/{
21398 N
21399 s,\\\n,,
21400 b mline
21401 }
21402 t clear
21403 :clear
21404 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21405 t quote
21406 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21407 t quote
21408 b any
21409 :quote
21410 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21411 s/\$/$$/g
21412 H
21413 :any
21414 ${
21415 g
21416 s/^\n//
21417 s/\n/ /g
21418 p
21419 }
21420 '
21421 DEFS=`sed -n "$ac_script" confdefs.h`
21422
21423
21424 ac_libobjs=
21425 ac_ltlibobjs=
21426 U=
21427 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21428 # 1. Remove the extension, and $U if already installed.
21429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21430 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21432 # will be set to the directory where LIBOBJS objects are built.
21433 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21434 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21435 done
21436 LIBOBJS=$ac_libobjs
21437
21438 LTLIBOBJS=$ac_ltlibobjs
21439
21440
21441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21442 printf %s "checking that generated files are newer than configure... " >&6; }
21443 if test -n "$am_sleep_pid"; then
21444 # Hide warnings about reused PIDs.
21445 wait $am_sleep_pid 2>/dev/null
21446 fi
21447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21448 printf "%s\n" "done" >&6; }
21449 case $enable_silent_rules in # (((
21450 yes) AM_DEFAULT_VERBOSITY=0;;
21451 no) AM_DEFAULT_VERBOSITY=1;;
21452 esac
21453 if test $am_cv_make_support_nested_variables = yes; then
21454 AM_V='$(V)'
21455 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21456 else
21457 AM_V=$AM_DEFAULT_VERBOSITY
21458 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21459 fi
21460
21461 if test -n "$EXEEXT"; then
21462 am__EXEEXT_TRUE=
21463 am__EXEEXT_FALSE='#'
21464 else
21465 am__EXEEXT_TRUE='#'
21466 am__EXEEXT_FALSE=
21467 fi
21468
21469 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21470 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21472 fi
21473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21474 as_fn_error $? "conditional \"AMDEP\" was never defined.
21475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21476 fi
21477 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21478 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21480 fi
21481 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21482 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21484 fi
21485 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21486 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21488 fi
21489
21490 : "${CONFIG_STATUS=./config.status}"
21491 ac_write_fail=0
21492 ac_clean_files_save=$ac_clean_files
21493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21495 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21496 as_write_fail=0
21497 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21498 #! $SHELL
21499 # Generated by $as_me.
21500 # Run this file to recreate the current configuration.
21501 # Compiler output produced by configure, useful for debugging
21502 # configure, is in config.log if it exists.
21503
21504 debug=false
21505 ac_cs_recheck=false
21506 ac_cs_silent=false
21507
21508 SHELL=\${CONFIG_SHELL-$SHELL}
21509 export SHELL
21510 _ASEOF
21511 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21512 ## -------------------- ##
21513 ## M4sh Initialization. ##
21514 ## -------------------- ##
21515
21516 # Be more Bourne compatible
21517 DUALCASE=1; export DUALCASE # for MKS sh
21518 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21519 then :
21520 emulate sh
21521 NULLCMD=:
21522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21523 # is contrary to our usage. Disable this feature.
21524 alias -g '${1+"$@"}'='"$@"'
21525 setopt NO_GLOB_SUBST
21526 else case e in #(
21527 e) case `(set -o) 2>/dev/null` in #(
21528 *posix*) :
21529 set -o posix ;; #(
21530 *) :
21531 ;;
21532 esac ;;
21533 esac
21534 fi
21535
21536
21537
21538 # Reset variables that may have inherited troublesome values from
21539 # the environment.
21540
21541 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21542 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21543 # side effect of setting IFS to empty, thus disabling word splitting.)
21544 # Quoting is to prevent editors from complaining about space-tab.
21545 as_nl='
21546 '
21547 export as_nl
21548 IFS=" "" $as_nl"
21549
21550 PS1='$ '
21551 PS2='> '
21552 PS4='+ '
21553
21554 # Ensure predictable behavior from utilities with locale-dependent output.
21555 LC_ALL=C
21556 export LC_ALL
21557 LANGUAGE=C
21558 export LANGUAGE
21559
21560 # We cannot yet rely on "unset" to work, but we need these variables
21561 # to be unset--not just set to an empty or harmless value--now, to
21562 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21563 # also avoids known problems related to "unset" and subshell syntax
21564 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21565 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21566 do eval test \${$as_var+y} \
21567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21568 done
21569
21570 # Ensure that fds 0, 1, and 2 are open.
21571 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21572 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21573 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21574
21575 # The user is always right.
21576 if ${PATH_SEPARATOR+false} :; then
21577 PATH_SEPARATOR=:
21578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21580 PATH_SEPARATOR=';'
21581 }
21582 fi
21583
21584
21585 # Find who we are. Look in the path if we contain no directory separator.
21586 as_myself=
21587 case $0 in #((
21588 *[\\/]* ) as_myself=$0 ;;
21589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21590 for as_dir in $PATH
21591 do
21592 IFS=$as_save_IFS
21593 case $as_dir in #(((
21594 '') as_dir=./ ;;
21595 */) ;;
21596 *) as_dir=$as_dir/ ;;
21597 esac
21598 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21599 done
21600 IFS=$as_save_IFS
21601
21602 ;;
21603 esac
21604 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21605 # in which case we are not to be found in the path.
21606 if test "x$as_myself" = x; then
21607 as_myself=$0
21608 fi
21609 if test ! -f "$as_myself"; then
21610 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21611 exit 1
21612 fi
21613
21614
21615
21616 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21617 # ----------------------------------------
21618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21620 # script with STATUS, using 1 if that was 0.
21621 as_fn_error ()
21622 {
21623 as_status=$1; test $as_status -eq 0 && as_status=1
21624 if test "$4"; then
21625 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21627 fi
21628 printf "%s\n" "$as_me: error: $2" >&2
21629 as_fn_exit $as_status
21630 } # as_fn_error
21631
21632
21633 # as_fn_set_status STATUS
21634 # -----------------------
21635 # Set $? to STATUS, without forking.
21636 as_fn_set_status ()
21637 {
21638 return $1
21639 } # as_fn_set_status
21640
21641 # as_fn_exit STATUS
21642 # -----------------
21643 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21644 as_fn_exit ()
21645 {
21646 set +e
21647 as_fn_set_status $1
21648 exit $1
21649 } # as_fn_exit
21650
21651 # as_fn_unset VAR
21652 # ---------------
21653 # Portably unset VAR.
21654 as_fn_unset ()
21655 {
21656 { eval $1=; unset $1;}
21657 }
21658 as_unset=as_fn_unset
21659
21660 # as_fn_append VAR VALUE
21661 # ----------------------
21662 # Append the text in VALUE to the end of the definition contained in VAR. Take
21663 # advantage of any shell optimizations that allow amortized linear growth over
21664 # repeated appends, instead of the typical quadratic growth present in naive
21665 # implementations.
21666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21667 then :
21668 eval 'as_fn_append ()
21669 {
21670 eval $1+=\$2
21671 }'
21672 else case e in #(
21673 e) as_fn_append ()
21674 {
21675 eval $1=\$$1\$2
21676 } ;;
21677 esac
21678 fi # as_fn_append
21679
21680 # as_fn_arith ARG...
21681 # ------------------
21682 # Perform arithmetic evaluation on the ARGs, and store the result in the
21683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21684 # must be portable across $(()) and expr.
21685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21686 then :
21687 eval 'as_fn_arith ()
21688 {
21689 as_val=$(( $* ))
21690 }'
21691 else case e in #(
21692 e) as_fn_arith ()
21693 {
21694 as_val=`expr "$@" || test $? -eq 1`
21695 } ;;
21696 esac
21697 fi # as_fn_arith
21698
21699
21700 if expr a : '\(a\)' >/dev/null 2>&1 &&
21701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21702 as_expr=expr
21703 else
21704 as_expr=false
21705 fi
21706
21707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21708 as_basename=basename
21709 else
21710 as_basename=false
21711 fi
21712
21713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21714 as_dirname=dirname
21715 else
21716 as_dirname=false
21717 fi
21718
21719 as_me=`$as_basename -- "$0" ||
21720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21721 X"$0" : 'X\(//\)$' \| \
21722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21723 printf "%s\n" X/"$0" |
21724 sed '/^.*\/\([^/][^/]*\)\/*$/{
21725 s//\1/
21726 q
21727 }
21728 /^X\/\(\/\/\)$/{
21729 s//\1/
21730 q
21731 }
21732 /^X\/\(\/\).*/{
21733 s//\1/
21734 q
21735 }
21736 s/.*/./; q'`
21737
21738 # Avoid depending upon Character Ranges.
21739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21742 as_cr_digits='0123456789'
21743 as_cr_alnum=$as_cr_Letters$as_cr_digits
21744
21745
21746 # Determine whether it's possible to make 'echo' print without a newline.
21747 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21748 # for compatibility with existing Makefiles.
21749 ECHO_C= ECHO_N= ECHO_T=
21750 case `echo -n x` in #(((((
21751 -n*)
21752 case `echo 'xy\c'` in
21753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21754 xy) ECHO_C='\c';;
21755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21756 ECHO_T=' ';;
21757 esac;;
21758 *)
21759 ECHO_N='-n';;
21760 esac
21761
21762 # For backward compatibility with old third-party macros, we provide
21763 # the shell variables $as_echo and $as_echo_n. New code should use
21764 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21765 as_echo='printf %s\n'
21766 as_echo_n='printf %s'
21767
21768 rm -f conf$$ conf$$.exe conf$$.file
21769 if test -d conf$$.dir; then
21770 rm -f conf$$.dir/conf$$.file
21771 else
21772 rm -f conf$$.dir
21773 mkdir conf$$.dir 2>/dev/null
21774 fi
21775 if (echo >conf$$.file) 2>/dev/null; then
21776 if ln -s conf$$.file conf$$ 2>/dev/null; then
21777 as_ln_s='ln -s'
21778 # ... but there are two gotchas:
21779 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21780 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21781 # In both cases, we have to default to 'cp -pR'.
21782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21783 as_ln_s='cp -pR'
21784 elif ln conf$$.file conf$$ 2>/dev/null; then
21785 as_ln_s=ln
21786 else
21787 as_ln_s='cp -pR'
21788 fi
21789 else
21790 as_ln_s='cp -pR'
21791 fi
21792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21793 rmdir conf$$.dir 2>/dev/null
21794
21795
21796 # as_fn_mkdir_p
21797 # -------------
21798 # Create "$as_dir" as a directory, including parents if necessary.
21799 as_fn_mkdir_p ()
21800 {
21801
21802 case $as_dir in #(
21803 -*) as_dir=./$as_dir;;
21804 esac
21805 test -d "$as_dir" || eval $as_mkdir_p || {
21806 as_dirs=
21807 while :; do
21808 case $as_dir in #(
21809 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21810 *) as_qdir=$as_dir;;
21811 esac
21812 as_dirs="'$as_qdir' $as_dirs"
21813 as_dir=`$as_dirname -- "$as_dir" ||
21814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21815 X"$as_dir" : 'X\(//\)[^/]' \| \
21816 X"$as_dir" : 'X\(//\)$' \| \
21817 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21818 printf "%s\n" X"$as_dir" |
21819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21820 s//\1/
21821 q
21822 }
21823 /^X\(\/\/\)[^/].*/{
21824 s//\1/
21825 q
21826 }
21827 /^X\(\/\/\)$/{
21828 s//\1/
21829 q
21830 }
21831 /^X\(\/\).*/{
21832 s//\1/
21833 q
21834 }
21835 s/.*/./; q'`
21836 test -d "$as_dir" && break
21837 done
21838 test -z "$as_dirs" || eval "mkdir $as_dirs"
21839 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21840
21841
21842 } # as_fn_mkdir_p
21843 if mkdir -p . 2>/dev/null; then
21844 as_mkdir_p='mkdir -p "$as_dir"'
21845 else
21846 test -d ./-p && rmdir ./-p
21847 as_mkdir_p=false
21848 fi
21849
21850
21851 # as_fn_executable_p FILE
21852 # -----------------------
21853 # Test if FILE is an executable regular file.
21854 as_fn_executable_p ()
21855 {
21856 test -f "$1" && test -x "$1"
21857 } # as_fn_executable_p
21858 as_test_x='test -x'
21859 as_executable_p=as_fn_executable_p
21860
21861 # Sed expression to map a string onto a valid CPP name.
21862 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21863 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21864
21865 # Sed expression to map a string onto a valid variable name.
21866 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21867 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21868
21869
21870 exec 6>&1
21871 ## ----------------------------------- ##
21872 ## Main body of $CONFIG_STATUS script. ##
21873 ## ----------------------------------- ##
21874 _ASEOF
21875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21876
21877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21878 # Save the log message, to keep $0 and so on meaningful, and to
21879 # report actual input values of CONFIG_FILES etc. instead of their
21880 # values after options handling.
21881 ac_log="
21882 This file was extended by healpix_cxx $as_me 3.83.0, which was
21883 generated by GNU Autoconf 2.72. Invocation command line was
21884
21885 CONFIG_FILES = $CONFIG_FILES
21886 CONFIG_HEADERS = $CONFIG_HEADERS
21887 CONFIG_LINKS = $CONFIG_LINKS
21888 CONFIG_COMMANDS = $CONFIG_COMMANDS
21889 $ $0 $@
21890
21891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21892 "
21893
21894 _ACEOF
21895
21896 case $ac_config_files in *"
21897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21898 esac
21899
21900
21901
21902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21903 # Files that config.status was made for.
21904 config_files="$ac_config_files"
21905 config_commands="$ac_config_commands"
21906
21907 _ACEOF
21908
21909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21910 ac_cs_usage="\
21911 '$as_me' instantiates files and other configuration actions
21912 from templates according to the current configuration. Unless the files
21913 and actions are specified as TAGs, all are instantiated by default.
21914
21915 Usage: $0 [OPTION]... [TAG]...
21916
21917 -h, --help print this help, then exit
21918 -V, --version print version number and configuration settings, then exit
21919 --config print configuration, then exit
21920 -q, --quiet, --silent
21921 do not print progress messages
21922 -d, --debug don't remove temporary files
21923 --recheck update $as_me by reconfiguring in the same conditions
21924 --file=FILE[:TEMPLATE]
21925 instantiate the configuration file FILE
21926
21927 Configuration files:
21928 $config_files
21929
21930 Configuration commands:
21931 $config_commands
21932
21933 Report bugs to the package provider."
21934
21935 _ACEOF
21936 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21937 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21939 ac_cs_config='$ac_cs_config_escaped'
21940 ac_cs_version="\\
21941 healpix_cxx config.status 3.83.0
21942 configured by $0, generated by GNU Autoconf 2.72,
21943 with options \\"\$ac_cs_config\\"
21944
21945 Copyright (C) 2023 Free Software Foundation, Inc.
21946 This config.status script is free software; the Free Software Foundation
21947 gives unlimited permission to copy, distribute and modify it."
21948
21949 ac_pwd='$ac_pwd'
21950 srcdir='$srcdir'
21951 INSTALL='$INSTALL'
21952 MKDIR_P='$MKDIR_P'
21953 AWK='$AWK'
21954 test -n "\$AWK" || AWK=awk
21955 _ACEOF
21956
21957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21958 # The default lists apply if the user does not specify any file.
21959 ac_need_defaults=:
21960 while test $# != 0
21961 do
21962 case $1 in
21963 --*=?*)
21964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21966 ac_shift=:
21967 ;;
21968 --*=)
21969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21970 ac_optarg=
21971 ac_shift=:
21972 ;;
21973 *)
21974 ac_option=$1
21975 ac_optarg=$2
21976 ac_shift=shift
21977 ;;
21978 esac
21979
21980 case $ac_option in
21981 # Handling of the options.
21982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21983 ac_cs_recheck=: ;;
21984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21985 printf "%s\n" "$ac_cs_version"; exit ;;
21986 --config | --confi | --conf | --con | --co | --c )
21987 printf "%s\n" "$ac_cs_config"; exit ;;
21988 --debug | --debu | --deb | --de | --d | -d )
21989 debug=: ;;
21990 --file | --fil | --fi | --f )
21991 $ac_shift
21992 case $ac_optarg in
21993 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21994 '') as_fn_error $? "missing file argument" ;;
21995 esac
21996 as_fn_append CONFIG_FILES " '$ac_optarg'"
21997 ac_need_defaults=false;;
21998 --he | --h | --help | --hel | -h )
21999 printf "%s\n" "$ac_cs_usage"; exit ;;
22000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22002 ac_cs_silent=: ;;
22003
22004 # This is an error.
22005 -*) as_fn_error $? "unrecognized option: '$1'
22006 Try '$0 --help' for more information." ;;
22007
22008 *) as_fn_append ac_config_targets " $1"
22009 ac_need_defaults=false ;;
22010
22011 esac
22012 shift
22013 done
22014
22015 ac_configure_extra_args=
22016
22017 if $ac_cs_silent; then
22018 exec 6>/dev/null
22019 ac_configure_extra_args="$ac_configure_extra_args --silent"
22020 fi
22021
22022 _ACEOF
22023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22024 if \$ac_cs_recheck; then
22025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22026 shift
22027 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22028 CONFIG_SHELL='$SHELL'
22029 export CONFIG_SHELL
22030 exec "\$@"
22031 fi
22032
22033 _ACEOF
22034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22035 exec 5>>config.log
22036 {
22037 echo
22038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22039 ## Running $as_me. ##
22040 _ASBOX
22041 printf "%s\n" "$ac_log"
22042 } >&5
22043
22044 _ACEOF
22045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22046 #
22047 # INIT-COMMANDS
22048 #
22049 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22050
22051
22052 # The HP-UX ksh and POSIX shell print the target directory to stdout
22053 # if CDPATH is set.
22054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22055
22056 sed_quote_subst='$sed_quote_subst'
22057 double_quote_subst='$double_quote_subst'
22058 delay_variable_subst='$delay_variable_subst'
22059 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22060 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22061 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22062 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22063 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22064 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22065 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22066 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22067 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22068 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22069 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22070 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22071 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22072 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22073 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22074 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22075 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22076 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22077 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22078 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22079 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22080 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22081 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22082 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22083 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22084 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22085 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22086 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22087 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22088 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22089 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22090 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22091 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22092 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22093 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22094 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22095 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22096 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22097 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22098 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22099 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22100 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22101 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22102 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22103 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22104 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22117 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22119 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"`'
22120 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22121 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22122 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22123 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22124 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22125 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22126 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22127 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22128 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22129 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22130 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22131 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22132 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22133 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22134 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22135 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22136 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22137 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22138 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22139 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22140 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22141 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22142 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22143 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22144 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22145 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22146 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22147 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22148 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22149 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22150 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22151 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22152 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22153 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22154 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22155 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22156 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22157 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22158 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22159 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22160 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22161 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22162 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22163 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22164 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22165 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22166 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22167 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22168 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22169 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22170 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22171 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22172 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22173 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22174 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22175 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22176 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22177 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22178 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22179 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22180 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22181 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22182 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22183 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22184 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22185 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22186 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22187 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22188 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22189 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22190 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22191 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22192 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22193 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22194 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22195 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22196 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22197 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22198 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22199 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22200 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22201 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22202 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22203 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22204 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22205 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22206 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22207 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22208 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22209 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22210 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22211 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22212 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22213 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22214 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22215 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22216 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22217 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22218 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22219 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22220 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22221 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22222 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22223 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22224 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22225 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22226 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22227 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22228 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22229 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22230 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22231 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22232 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22233 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22234 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22235 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22236 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22237 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22238 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22239 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22240 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22241 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22242 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22243 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22244 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22245 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22246 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22247 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22248 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22249 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22250
22251 LTCC='$LTCC'
22252 LTCFLAGS='$LTCFLAGS'
22253 compiler='$compiler_DEFAULT'
22254
22255 # A function that is used when there is no print builtin or printf.
22256 func_fallback_echo ()
22257 {
22258 eval 'cat <<_LTECHO_EOF
22259 \$1
22260 _LTECHO_EOF'
22261 }
22262
22263 # Quote evaled strings.
22264 for var in SHELL \
22265 ECHO \
22266 PATH_SEPARATOR \
22267 SED \
22268 GREP \
22269 EGREP \
22270 FGREP \
22271 LD \
22272 NM \
22273 LN_S \
22274 lt_SP2NL \
22275 lt_NL2SP \
22276 reload_flag \
22277 FILECMD \
22278 OBJDUMP \
22279 deplibs_check_method \
22280 file_magic_cmd \
22281 file_magic_glob \
22282 want_nocaseglob \
22283 DLLTOOL \
22284 sharedlib_from_linklib_cmd \
22285 AR \
22286 archiver_list_spec \
22287 STRIP \
22288 RANLIB \
22289 CC \
22290 CFLAGS \
22291 compiler \
22292 lt_cv_sys_global_symbol_pipe \
22293 lt_cv_sys_global_symbol_to_cdecl \
22294 lt_cv_sys_global_symbol_to_import \
22295 lt_cv_sys_global_symbol_to_c_name_address \
22296 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22297 lt_cv_nm_interface \
22298 nm_file_list_spec \
22299 lt_cv_truncate_bin \
22300 lt_prog_compiler_no_builtin_flag \
22301 lt_prog_compiler_pic \
22302 lt_prog_compiler_wl \
22303 lt_prog_compiler_static \
22304 lt_cv_prog_compiler_c_o \
22305 need_locks \
22306 MANIFEST_TOOL \
22307 DSYMUTIL \
22308 NMEDIT \
22309 LIPO \
22310 OTOOL \
22311 OTOOL64 \
22312 shrext_cmds \
22313 export_dynamic_flag_spec \
22314 whole_archive_flag_spec \
22315 compiler_needs_object \
22316 with_gnu_ld \
22317 allow_undefined_flag \
22318 no_undefined_flag \
22319 hardcode_libdir_flag_spec \
22320 hardcode_libdir_separator \
22321 exclude_expsyms \
22322 include_expsyms \
22323 file_list_spec \
22324 variables_saved_for_relink \
22325 libname_spec \
22326 library_names_spec \
22327 soname_spec \
22328 install_override_mode \
22329 finish_eval \
22330 old_striplib \
22331 striplib \
22332 compiler_lib_search_dirs \
22333 predep_objects \
22334 postdep_objects \
22335 predeps \
22336 postdeps \
22337 compiler_lib_search_path \
22338 LD_CXX \
22339 reload_flag_CXX \
22340 compiler_CXX \
22341 lt_prog_compiler_no_builtin_flag_CXX \
22342 lt_prog_compiler_pic_CXX \
22343 lt_prog_compiler_wl_CXX \
22344 lt_prog_compiler_static_CXX \
22345 lt_cv_prog_compiler_c_o_CXX \
22346 export_dynamic_flag_spec_CXX \
22347 whole_archive_flag_spec_CXX \
22348 compiler_needs_object_CXX \
22349 with_gnu_ld_CXX \
22350 allow_undefined_flag_CXX \
22351 no_undefined_flag_CXX \
22352 hardcode_libdir_flag_spec_CXX \
22353 hardcode_libdir_separator_CXX \
22354 exclude_expsyms_CXX \
22355 include_expsyms_CXX \
22356 file_list_spec_CXX \
22357 compiler_lib_search_dirs_CXX \
22358 predep_objects_CXX \
22359 postdep_objects_CXX \
22360 predeps_CXX \
22361 postdeps_CXX \
22362 compiler_lib_search_path_CXX; do
22363 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22364 *[\\\\\\\`\\"\\\$]*)
22365 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22366 ;;
22367 *)
22368 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22369 ;;
22370 esac
22371 done
22372
22373 # Double-quote double-evaled strings.
22374 for var in reload_cmds \
22375 old_postinstall_cmds \
22376 old_postuninstall_cmds \
22377 old_archive_cmds \
22378 extract_expsyms_cmds \
22379 old_archive_from_new_cmds \
22380 old_archive_from_expsyms_cmds \
22381 archive_cmds \
22382 archive_expsym_cmds \
22383 module_cmds \
22384 module_expsym_cmds \
22385 export_symbols_cmds \
22386 prelink_cmds \
22387 postlink_cmds \
22388 postinstall_cmds \
22389 postuninstall_cmds \
22390 finish_cmds \
22391 sys_lib_search_path_spec \
22392 configure_time_dlsearch_path \
22393 configure_time_lt_sys_library_path \
22394 reload_cmds_CXX \
22395 old_archive_cmds_CXX \
22396 old_archive_from_new_cmds_CXX \
22397 old_archive_from_expsyms_cmds_CXX \
22398 archive_cmds_CXX \
22399 archive_expsym_cmds_CXX \
22400 module_cmds_CXX \
22401 module_expsym_cmds_CXX \
22402 export_symbols_cmds_CXX \
22403 prelink_cmds_CXX \
22404 postlink_cmds_CXX; do
22405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22406 *[\\\\\\\`\\"\\\$]*)
22407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22408 ;;
22409 *)
22410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22411 ;;
22412 esac
22413 done
22414
22415 ac_aux_dir='$ac_aux_dir'
22416
22417 # See if we are running on zsh, and set the options that allow our
22418 # commands through without removal of \ escapes INIT.
22419 if test -n "\${ZSH_VERSION+set}"; then
22420 setopt NO_GLOB_SUBST
22421 fi
22422
22423
22424 PACKAGE='$PACKAGE'
22425 VERSION='$VERSION'
22426 RM='$RM'
22427 ofile='$ofile'
22428
22429
22430
22431
22432
22433
22434 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
22435 pkgconfig_prefix='$prefix'
22436 pkgconfig_execprefix='$exec_prefix'
22437 pkgconfig_bindir='$bindir'
22438 pkgconfig_libdir='$libdir'
22439 pkgconfig_includedir='$includedir'
22440 pkgconfig_datarootdir='$datarootdir'
22441 pkgconfig_datadir='$datadir'
22442 pkgconfig_sysconfdir='$sysconfdir'
22443 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
22444 pkgconfig_package='$PACKAGE_NAME'
22445 pkgconfig_libname='$ax_create_pkgconfig_libname'
22446 pkgconfig_description='$ax_create_pkgconfig_description'
22447 pkgconfig_version='$ax_create_pkgconfig_version'
22448 pkgconfig_requires='$ax_create_pkgconfig_requires'
22449 pkgconfig_libs='$ax_create_pkgconfig_libs'
22450 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
22451 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
22452 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
22453 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
22454
22455
22456 _ACEOF
22457
22458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22459
22460 # Handling of arguments.
22461 for ac_config_target in $ac_config_targets
22462 do
22463 case $ac_config_target in
22464 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22465 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22466 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
22467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22468
22469 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22470 esac
22471 done
22472
22473
22474 # If the user did not use the arguments to specify the items to instantiate,
22475 # then the envvar interface is used. Set only those that are not.
22476 # We use the long form for the default assignment because of an extremely
22477 # bizarre bug on SunOS 4.1.3.
22478 if $ac_need_defaults; then
22479 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22480 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22481 fi
22482
22483 # Have a temporary directory for convenience. Make it in the build tree
22484 # simply because there is no reason against having it here, and in addition,
22485 # creating and moving files from /tmp can sometimes cause problems.
22486 # Hook for its removal unless debugging.
22487 # Note that there is a small window in which the directory will not be cleaned:
22488 # after its creation but before its name has been assigned to '$tmp'.
22489 $debug ||
22490 {
22491 tmp= ac_tmp=
22492 trap 'exit_status=$?
22493 : "${ac_tmp:=$tmp}"
22494 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22495 ' 0
22496 trap 'as_fn_exit 1' 1 2 13 15
22497 }
22498 # Create a (secure) tmp directory for tmp files.
22499
22500 {
22501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22502 test -d "$tmp"
22503 } ||
22504 {
22505 tmp=./conf$$-$RANDOM
22506 (umask 077 && mkdir "$tmp")
22507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22508 ac_tmp=$tmp
22509
22510 # Set up the scripts for CONFIG_FILES section.
22511 # No need to generate them if there are no CONFIG_FILES.
22512 # This happens for instance with './config.status config.h'.
22513 if test -n "$CONFIG_FILES"; then
22514
22515
22516 ac_cr=`echo X | tr X '\015'`
22517 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22518 # But we know of no other shell where ac_cr would be empty at this
22519 # point, so we can use a bashism as a fallback.
22520 if test "x$ac_cr" = x; then
22521 eval ac_cr=\$\'\\r\'
22522 fi
22523 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22524 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22525 ac_cs_awk_cr='\\r'
22526 else
22527 ac_cs_awk_cr=$ac_cr
22528 fi
22529
22530 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22531 _ACEOF
22532
22533
22534 {
22535 echo "cat >conf$$subs.awk <<_ACEOF" &&
22536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22537 echo "_ACEOF"
22538 } >conf$$subs.sh ||
22539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22541 ac_delim='%!_!# '
22542 for ac_last_try in false false false false false :; do
22543 . ./conf$$subs.sh ||
22544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22545
22546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22547 if test $ac_delim_n = $ac_delim_num; then
22548 break
22549 elif $ac_last_try; then
22550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22551 else
22552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22553 fi
22554 done
22555 rm -f conf$$subs.sh
22556
22557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22558 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22559 _ACEOF
22560 sed -n '
22561 h
22562 s/^/S["/; s/!.*/"]=/
22563 p
22564 g
22565 s/^[^!]*!//
22566 :repl
22567 t repl
22568 s/'"$ac_delim"'$//
22569 t delim
22570 :nl
22571 h
22572 s/\(.\{148\}\)..*/\1/
22573 t more1
22574 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22575 p
22576 n
22577 b repl
22578 :more1
22579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22580 p
22581 g
22582 s/.\{148\}//
22583 t nl
22584 :delim
22585 h
22586 s/\(.\{148\}\)..*/\1/
22587 t more2
22588 s/["\\]/\\&/g; s/^/"/; s/$/"/
22589 p
22590 b
22591 :more2
22592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22593 p
22594 g
22595 s/.\{148\}//
22596 t delim
22597 ' <conf$$subs.awk | sed '
22598 /^[^""]/{
22599 N
22600 s/\n//
22601 }
22602 ' >>$CONFIG_STATUS || ac_write_fail=1
22603 rm -f conf$$subs.awk
22604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22605 _ACAWK
22606 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22607 for (key in S) S_is_set[key] = 1
22608 FS = ""
22609
22610 }
22611 {
22612 line = $ 0
22613 nfields = split(line, field, "@")
22614 substed = 0
22615 len = length(field[1])
22616 for (i = 2; i < nfields; i++) {
22617 key = field[i]
22618 keylen = length(key)
22619 if (S_is_set[key]) {
22620 value = S[key]
22621 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22622 len += length(value) + length(field[++i])
22623 substed = 1
22624 } else
22625 len += 1 + keylen
22626 }
22627
22628 print line
22629 }
22630
22631 _ACAWK
22632 _ACEOF
22633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22634 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22635 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22636 else
22637 cat
22638 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22639 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22640 _ACEOF
22641
22642 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22643 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22644 # trailing colons and then remove the whole line if VPATH becomes empty
22645 # (actually we leave an empty line to preserve line numbers).
22646 if test "x$srcdir" = x.; then
22647 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22648 h
22649 s///
22650 s/^/:/
22651 s/[ ]*$/:/
22652 s/:\$(srcdir):/:/g
22653 s/:\${srcdir}:/:/g
22654 s/:@srcdir@:/:/g
22655 s/^:*//
22656 s/:*$//
22657 x
22658 s/\(=[ ]*\).*/\1/
22659 G
22660 s/\n//
22661 s/^[^=]*=[ ]*$//
22662 }'
22663 fi
22664
22665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22666 fi # test -n "$CONFIG_FILES"
22667
22668
22669 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
22670 shift
22671 for ac_tag
22672 do
22673 case $ac_tag in
22674 :[FHLC]) ac_mode=$ac_tag; continue;;
22675 esac
22676 case $ac_mode$ac_tag in
22677 :[FHL]*:*);;
22678 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22679 :[FH]-) ac_tag=-:-;;
22680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22681 esac
22682 ac_save_IFS=$IFS
22683 IFS=:
22684 set x $ac_tag
22685 IFS=$ac_save_IFS
22686 shift
22687 ac_file=$1
22688 shift
22689
22690 case $ac_mode in
22691 :L) ac_source=$1;;
22692 :[FH])
22693 ac_file_inputs=
22694 for ac_f
22695 do
22696 case $ac_f in
22697 -) ac_f="$ac_tmp/stdin";;
22698 *) # Look for the file first in the build tree, then in the source tree
22699 # (if the path is not absolute). The absolute path cannot be DOS-style,
22700 # because $ac_f cannot contain ':'.
22701 test -f "$ac_f" ||
22702 case $ac_f in
22703 [\\/$]*) false;;
22704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22705 esac ||
22706 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22707 esac
22708 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22709 as_fn_append ac_file_inputs " '$ac_f'"
22710 done
22711
22712 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22713 # use $as_me), people would be surprised to read:
22714 # /* config.h. Generated by config.status. */
22715 configure_input='Generated from '`
22716 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22717 `' by configure.'
22718 if test x"$ac_file" != x-; then
22719 configure_input="$ac_file. $configure_input"
22720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22721 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22722 fi
22723 # Neutralize special characters interpreted by sed in replacement strings.
22724 case $configure_input in #(
22725 *\&* | *\|* | *\\* )
22726 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22727 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22728 *) ac_sed_conf_input=$configure_input;;
22729 esac
22730
22731 case $ac_tag in
22732 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22734 esac
22735 ;;
22736 esac
22737
22738 ac_dir=`$as_dirname -- "$ac_file" ||
22739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740 X"$ac_file" : 'X\(//\)[^/]' \| \
22741 X"$ac_file" : 'X\(//\)$' \| \
22742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22743 printf "%s\n" X"$ac_file" |
22744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22745 s//\1/
22746 q
22747 }
22748 /^X\(\/\/\)[^/].*/{
22749 s//\1/
22750 q
22751 }
22752 /^X\(\/\/\)$/{
22753 s//\1/
22754 q
22755 }
22756 /^X\(\/\).*/{
22757 s//\1/
22758 q
22759 }
22760 s/.*/./; q'`
22761 as_dir="$ac_dir"; as_fn_mkdir_p
22762 ac_builddir=.
22763
22764 case "$ac_dir" in
22765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22766 *)
22767 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22768 # A ".." for each directory in $ac_dir_suffix.
22769 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22770 case $ac_top_builddir_sub in
22771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22773 esac ;;
22774 esac
22775 ac_abs_top_builddir=$ac_pwd
22776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22777 # for backward compatibility:
22778 ac_top_builddir=$ac_top_build_prefix
22779
22780 case $srcdir in
22781 .) # We are building in place.
22782 ac_srcdir=.
22783 ac_top_srcdir=$ac_top_builddir_sub
22784 ac_abs_top_srcdir=$ac_pwd ;;
22785 [\\/]* | ?:[\\/]* ) # Absolute name.
22786 ac_srcdir=$srcdir$ac_dir_suffix;
22787 ac_top_srcdir=$srcdir
22788 ac_abs_top_srcdir=$srcdir ;;
22789 *) # Relative name.
22790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22791 ac_top_srcdir=$ac_top_build_prefix$srcdir
22792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22793 esac
22794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22795
22796
22797 case $ac_mode in
22798 :F)
22799 #
22800 # CONFIG_FILE
22801 #
22802
22803 case $INSTALL in
22804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22806 esac
22807 ac_MKDIR_P=$MKDIR_P
22808 case $MKDIR_P in
22809 [\\/$]* | ?:[\\/]* ) ;;
22810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22811 esac
22812 _ACEOF
22813
22814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22815 # If the template does not know about datarootdir, expand it.
22816 # FIXME: This hack should be removed a few years after 2.60.
22817 ac_datarootdir_hack=; ac_datarootdir_seen=
22818 ac_sed_dataroot='
22819 /datarootdir/ {
22820 p
22821 q
22822 }
22823 /@datadir@/p
22824 /@docdir@/p
22825 /@infodir@/p
22826 /@localedir@/p
22827 /@mandir@/p'
22828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22829 *datarootdir*) ac_datarootdir_seen=yes;;
22830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22832 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22833 _ACEOF
22834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22835 ac_datarootdir_hack='
22836 s&@datadir@&$datadir&g
22837 s&@docdir@&$docdir&g
22838 s&@infodir@&$infodir&g
22839 s&@localedir@&$localedir&g
22840 s&@mandir@&$mandir&g
22841 s&\\\${datarootdir}&$datarootdir&g' ;;
22842 esac
22843 _ACEOF
22844
22845 # Neutralize VPATH when '$srcdir' = '.'.
22846 # Shell code in configure.ac might set extrasub.
22847 # FIXME: do we really want to maintain this feature?
22848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22849 ac_sed_extra="$ac_vpsub
22850 $extrasub
22851 _ACEOF
22852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22853 :t
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22855 s|@configure_input@|$ac_sed_conf_input|;t t
22856 s&@top_builddir@&$ac_top_builddir_sub&;t t
22857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22858 s&@srcdir@&$ac_srcdir&;t t
22859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22860 s&@top_srcdir@&$ac_top_srcdir&;t t
22861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22862 s&@builddir@&$ac_builddir&;t t
22863 s&@abs_builddir@&$ac_abs_builddir&;t t
22864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22865 s&@INSTALL@&$ac_INSTALL&;t t
22866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22867 $ac_datarootdir_hack
22868 "
22869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22871
22872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22875 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22877 which seems to be undefined. Please make sure it is defined" >&5
22878 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22879 which seems to be undefined. Please make sure it is defined" >&2;}
22880
22881 rm -f "$ac_tmp/stdin"
22882 case $ac_file in
22883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22885 esac \
22886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22887 ;;
22888
22889
22890 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22891 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22892 ;;
22893 esac
22894
22895
22896 case $ac_file$ac_mode in
22897 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22898 # Older Autoconf quotes --file arguments for eval, but not when files
22899 # are listed without --file. Let's play safe and only enable the eval
22900 # if we detect the quoting.
22901 # TODO: see whether this extra hack can be removed once we start
22902 # requiring Autoconf 2.70 or later.
22903 case $CONFIG_FILES in #(
22904 *\'*) :
22905 eval set x "$CONFIG_FILES" ;; #(
22906 *) :
22907 set x $CONFIG_FILES ;; #(
22908 *) :
22909 ;;
22910 esac
22911 shift
22912 # Used to flag and report bootstrapping failures.
22913 am_rc=0
22914 for am_mf
22915 do
22916 # Strip MF so we end up with the name of the file.
22917 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22918 # Check whether this is an Automake generated Makefile which includes
22919 # dependency-tracking related rules and includes.
22920 # Grep'ing the whole file directly is not great: AIX grep has a line
22921 # limit of 2048, but all sed's we know have understand at least 4000.
22922 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22923 || continue
22924 am_dirpart=`$as_dirname -- "$am_mf" ||
22925 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22926 X"$am_mf" : 'X\(//\)[^/]' \| \
22927 X"$am_mf" : 'X\(//\)$' \| \
22928 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22929 printf "%s\n" X"$am_mf" |
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22931 s//\1/
22932 q
22933 }
22934 /^X\(\/\/\)[^/].*/{
22935 s//\1/
22936 q
22937 }
22938 /^X\(\/\/\)$/{
22939 s//\1/
22940 q
22941 }
22942 /^X\(\/\).*/{
22943 s//\1/
22944 q
22945 }
22946 s/.*/./; q'`
22947 am_filepart=`$as_basename -- "$am_mf" ||
22948 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22949 X"$am_mf" : 'X\(//\)$' \| \
22950 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22951 printf "%s\n" X/"$am_mf" |
22952 sed '/^.*\/\([^/][^/]*\)\/*$/{
22953 s//\1/
22954 q
22955 }
22956 /^X\/\(\/\/\)$/{
22957 s//\1/
22958 q
22959 }
22960 /^X\/\(\/\).*/{
22961 s//\1/
22962 q
22963 }
22964 s/.*/./; q'`
22965 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22966 && sed -e '/# am--include-marker/d' "$am_filepart" \
22967 | $MAKE -f - am--depfiles" >&5
22968 (cd "$am_dirpart" \
22969 && sed -e '/# am--include-marker/d' "$am_filepart" \
22970 | $MAKE -f - am--depfiles) >&5 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } || am_rc=$?
22974 done
22975 if test $am_rc -ne 0; then
22976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22977 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22978 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22979 for automatic dependency tracking. If GNU make was not used, consider
22980 re-running the configure script with MAKE=\"gmake\" (or whatever is
22981 necessary). You can also try re-running configure with the
22982 '--disable-dependency-tracking' option to at least be able to build
22983 the package (albeit without support for automatic dependency tracking).
22984 See 'config.log' for more details" "$LINENO" 5; }
22985 fi
22986 { am_dirpart=; unset am_dirpart;}
22987 { am_filepart=; unset am_filepart;}
22988 { am_mf=; unset am_mf;}
22989 { am_rc=; unset am_rc;}
22990 rm -f conftest-deps.mk
22991 }
22992 ;;
22993 "libtool":C)
22994
22995 # See if we are running on zsh, and set the options that allow our
22996 # commands through without removal of \ escapes.
22997 if test -n "${ZSH_VERSION+set}"; then
22998 setopt NO_GLOB_SUBST
22999 fi
23000
23001 cfgfile=${ofile}T
23002 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23003 $RM "$cfgfile"
23004
23005 cat <<_LT_EOF >> "$cfgfile"
23006 #! $SHELL
23007 # Generated automatically by $as_me ($PACKAGE) $VERSION
23008 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23009
23010 # Provide generalized library-building support services.
23011 # Written by Gordon Matzigkeit, 1996
23012
23013 # Copyright (C) 2024 Free Software Foundation, Inc.
23014 # This is free software; see the source for copying conditions. There is NO
23015 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23016
23017 # GNU Libtool is free software; you can redistribute it and/or modify
23018 # it under the terms of the GNU General Public License as published by
23019 # the Free Software Foundation; either version 2 of the License, or
23020 # (at your option) any later version.
23021 #
23022 # As a special exception to the GNU General Public License, if you
23023 # distribute this file as part of a program or library that is built
23024 # using GNU Libtool, you may include this file under the same
23025 # distribution terms that you use for the rest of that program.
23026 #
23027 # GNU Libtool is distributed in the hope that it will be useful, but
23028 # WITHOUT ANY WARRANTY; without even the implied warranty of
23029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23030 # GNU General Public License for more details.
23031 #
23032 # You should have received a copy of the GNU General Public License
23033 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23034
23035
23036 # The names of the tagged configurations supported by this script.
23037 available_tags='CXX '
23038
23039 # Configured defaults for sys_lib_dlsearch_path munging.
23040 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23041
23042 # ### BEGIN LIBTOOL CONFIG
23043
23044 # Which release of libtool.m4 was used?
23045 macro_version=$macro_version
23046 macro_revision=$macro_revision
23047
23048 # Whether or not to build shared libraries.
23049 build_libtool_libs=$enable_shared
23050
23051 # Whether or not to build static libraries.
23052 build_old_libs=$enable_static
23053
23054 # What type of objects to build.
23055 pic_mode=$pic_mode
23056
23057 # Whether or not to optimize for fast installation.
23058 fast_install=$enable_fast_install
23059
23060 # Shared archive member basename,for filename based shared library versioning on AIX.
23061 shared_archive_member_spec=$shared_archive_member_spec
23062
23063 # Shell to use when invoking shell scripts.
23064 SHELL=$lt_SHELL
23065
23066 # An echo program that protects backslashes.
23067 ECHO=$lt_ECHO
23068
23069 # The PATH separator for the build system.
23070 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23071
23072 # The host system.
23073 host_alias=$host_alias
23074 host=$host
23075 host_os=$host_os
23076
23077 # The build system.
23078 build_alias=$build_alias
23079 build=$build
23080 build_os=$build_os
23081
23082 # A sed program that does not truncate output.
23083 SED=$lt_SED
23084
23085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23086 Xsed="\$SED -e 1s/^X//"
23087
23088 # A grep program that handles long lines.
23089 GREP=$lt_GREP
23090
23091 # An ERE matcher.
23092 EGREP=$lt_EGREP
23093
23094 # A literal string matcher.
23095 FGREP=$lt_FGREP
23096
23097 # A BSD- or MS-compatible name lister.
23098 NM=$lt_NM
23099
23100 # Whether we need soft or hard links.
23101 LN_S=$lt_LN_S
23102
23103 # What is the maximum length of a command?
23104 max_cmd_len=$max_cmd_len
23105
23106 # Object file suffix (normally "o").
23107 objext=$ac_objext
23108
23109 # Executable file suffix (normally "").
23110 exeext=$exeext
23111
23112 # whether the shell understands "unset".
23113 lt_unset=$lt_unset
23114
23115 # turn spaces into newlines.
23116 SP2NL=$lt_lt_SP2NL
23117
23118 # turn newlines into spaces.
23119 NL2SP=$lt_lt_NL2SP
23120
23121 # convert \$build file names to \$host format.
23122 to_host_file_cmd=$lt_cv_to_host_file_cmd
23123
23124 # convert \$build files to toolchain format.
23125 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23126
23127 # A file(cmd) program that detects file types.
23128 FILECMD=$lt_FILECMD
23129
23130 # An object symbol dumper.
23131 OBJDUMP=$lt_OBJDUMP
23132
23133 # Method to check whether dependent libraries are shared objects.
23134 deplibs_check_method=$lt_deplibs_check_method
23135
23136 # Command to use when deplibs_check_method = "file_magic".
23137 file_magic_cmd=$lt_file_magic_cmd
23138
23139 # How to find potential files when deplibs_check_method = "file_magic".
23140 file_magic_glob=$lt_file_magic_glob
23141
23142 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23143 want_nocaseglob=$lt_want_nocaseglob
23144
23145 # DLL creation program.
23146 DLLTOOL=$lt_DLLTOOL
23147
23148 # Command to associate shared and link libraries.
23149 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23150
23151 # The archiver.
23152 AR=$lt_AR
23153
23154 # Flags to create an archive (by configure).
23155 lt_ar_flags=$lt_ar_flags
23156
23157 # Flags to create an archive.
23158 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23159
23160 # How to feed a file listing to the archiver.
23161 archiver_list_spec=$lt_archiver_list_spec
23162
23163 # A symbol stripping program.
23164 STRIP=$lt_STRIP
23165
23166 # Commands used to install an old-style archive.
23167 RANLIB=$lt_RANLIB
23168 old_postinstall_cmds=$lt_old_postinstall_cmds
23169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23170
23171 # Whether to use a lock for old archive extraction.
23172 lock_old_archive_extraction=$lock_old_archive_extraction
23173
23174 # A C compiler.
23175 LTCC=$lt_CC
23176
23177 # LTCC compiler flags.
23178 LTCFLAGS=$lt_CFLAGS
23179
23180 # Take the output of nm and produce a listing of raw symbols and C names.
23181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23182
23183 # Transform the output of nm in a proper C declaration.
23184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23185
23186 # Transform the output of nm into a list of symbols to manually relocate.
23187 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23188
23189 # Transform the output of nm in a C name address pair.
23190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23191
23192 # Transform the output of nm in a C name address pair when lib prefix is needed.
23193 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23194
23195 # The name lister interface.
23196 nm_interface=$lt_lt_cv_nm_interface
23197
23198 # Specify filename containing input files for \$NM.
23199 nm_file_list_spec=$lt_nm_file_list_spec
23200
23201 # The root where to search for dependent libraries,and where our libraries should be installed.
23202 lt_sysroot=$lt_sysroot
23203
23204 # Command to truncate a binary pipe.
23205 lt_truncate_bin=$lt_lt_cv_truncate_bin
23206
23207 # The name of the directory that contains temporary libtool files.
23208 objdir=$objdir
23209
23210 # Used to examine libraries when file_magic_cmd begins with "file".
23211 MAGIC_CMD=$MAGIC_CMD
23212
23213 # Must we lock files when doing compilation?
23214 need_locks=$lt_need_locks
23215
23216 # Manifest tool.
23217 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23218
23219 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23220 DSYMUTIL=$lt_DSYMUTIL
23221
23222 # Tool to change global to local symbols on Mac OS X.
23223 NMEDIT=$lt_NMEDIT
23224
23225 # Tool to manipulate fat objects and archives on Mac OS X.
23226 LIPO=$lt_LIPO
23227
23228 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23229 OTOOL=$lt_OTOOL
23230
23231 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23232 OTOOL64=$lt_OTOOL64
23233
23234 # Old archive suffix (normally "a").
23235 libext=$libext
23236
23237 # Shared library suffix (normally ".so").
23238 shrext_cmds=$lt_shrext_cmds
23239
23240 # The commands to extract the exported symbol list from a shared archive.
23241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23242
23243 # Variables whose values should be saved in libtool wrapper scripts and
23244 # restored at link time.
23245 variables_saved_for_relink=$lt_variables_saved_for_relink
23246
23247 # Do we need the "lib" prefix for modules?
23248 need_lib_prefix=$need_lib_prefix
23249
23250 # Do we need a version for libraries?
23251 need_version=$need_version
23252
23253 # Library versioning type.
23254 version_type=$version_type
23255
23256 # Shared library runtime path variable.
23257 runpath_var=$runpath_var
23258
23259 # Shared library path variable.
23260 shlibpath_var=$shlibpath_var
23261
23262 # Is shlibpath searched before the hard-coded library search path?
23263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23264
23265 # Format of library name prefix.
23266 libname_spec=$lt_libname_spec
23267
23268 # List of archive names. First name is the real one, the rest are links.
23269 # The last name is the one that the linker finds with -lNAME
23270 library_names_spec=$lt_library_names_spec
23271
23272 # The coded name of the library, if different from the real name.
23273 soname_spec=$lt_soname_spec
23274
23275 # Permission mode override for installation of shared libraries.
23276 install_override_mode=$lt_install_override_mode
23277
23278 # Command to use after installation of a shared archive.
23279 postinstall_cmds=$lt_postinstall_cmds
23280
23281 # Command to use after uninstallation of a shared archive.
23282 postuninstall_cmds=$lt_postuninstall_cmds
23283
23284 # Commands used to finish a libtool library installation in a directory.
23285 finish_cmds=$lt_finish_cmds
23286
23287 # As "finish_cmds", except a single script fragment to be evaled but
23288 # not shown.
23289 finish_eval=$lt_finish_eval
23290
23291 # Whether we should hardcode library paths into libraries.
23292 hardcode_into_libs=$hardcode_into_libs
23293
23294 # Compile-time system search path for libraries.
23295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23296
23297 # Detected run-time system search path for libraries.
23298 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23299
23300 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23301 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23302
23303 # Whether dlopen is supported.
23304 dlopen_support=$enable_dlopen
23305
23306 # Whether dlopen of programs is supported.
23307 dlopen_self=$enable_dlopen_self
23308
23309 # Whether dlopen of statically linked programs is supported.
23310 dlopen_self_static=$enable_dlopen_self_static
23311
23312 # Commands to strip libraries.
23313 old_striplib=$lt_old_striplib
23314 striplib=$lt_striplib
23315
23316
23317 # The linker used to build libraries.
23318 LD=$lt_LD
23319
23320 # How to create reloadable object files.
23321 reload_flag=$lt_reload_flag
23322 reload_cmds=$lt_reload_cmds
23323
23324 # Commands used to build an old-style archive.
23325 old_archive_cmds=$lt_old_archive_cmds
23326
23327 # A language specific compiler.
23328 CC=$lt_compiler
23329
23330 # Is the compiler the GNU compiler?
23331 with_gcc=$GCC
23332
23333 # Compiler flag to turn off builtin functions.
23334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23335
23336 # Additional compiler flags for building library objects.
23337 pic_flag=$lt_lt_prog_compiler_pic
23338
23339 # How to pass a linker flag through the compiler.
23340 wl=$lt_lt_prog_compiler_wl
23341
23342 # Compiler flag to prevent dynamic linking.
23343 link_static_flag=$lt_lt_prog_compiler_static
23344
23345 # Does compiler simultaneously support -c and -o options?
23346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23347
23348 # Whether or not to add -lc for building shared libraries.
23349 build_libtool_need_lc=$archive_cmds_need_lc
23350
23351 # Whether or not to disallow shared libs when runtime libs are static.
23352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23353
23354 # Compiler flag to allow reflexive dlopens.
23355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23356
23357 # Compiler flag to generate shared objects directly from archives.
23358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23359
23360 # Whether the compiler copes with passing no objects directly.
23361 compiler_needs_object=$lt_compiler_needs_object
23362
23363 # Create an old-style archive from a shared archive.
23364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23365
23366 # Create a temporary old-style archive to link instead of a shared archive.
23367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23368
23369 # Commands used to build a shared archive.
23370 archive_cmds=$lt_archive_cmds
23371 archive_expsym_cmds=$lt_archive_expsym_cmds
23372
23373 # Commands used to build a loadable module if different from building
23374 # a shared archive.
23375 module_cmds=$lt_module_cmds
23376 module_expsym_cmds=$lt_module_expsym_cmds
23377
23378 # Whether we are building with GNU ld or not.
23379 with_gnu_ld=$lt_with_gnu_ld
23380
23381 # Flag that allows shared libraries with undefined symbols to be built.
23382 allow_undefined_flag=$lt_allow_undefined_flag
23383
23384 # Flag that enforces no undefined symbols.
23385 no_undefined_flag=$lt_no_undefined_flag
23386
23387 # Flag to hardcode \$libdir into a binary during linking.
23388 # This must work even if \$libdir does not exist
23389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23390
23391 # Whether we need a single "-rpath" flag with a separated argument.
23392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23393
23394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23395 # DIR into the resulting binary.
23396 hardcode_direct=$hardcode_direct
23397
23398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23399 # DIR into the resulting binary and the resulting library dependency is
23400 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23401 # library is relocated.
23402 hardcode_direct_absolute=$hardcode_direct_absolute
23403
23404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23405 # into the resulting binary.
23406 hardcode_minus_L=$hardcode_minus_L
23407
23408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23409 # into the resulting binary.
23410 hardcode_shlibpath_var=$hardcode_shlibpath_var
23411
23412 # Set to "yes" if building a shared library automatically hardcodes DIR
23413 # into the library and all subsequent libraries and executables linked
23414 # against it.
23415 hardcode_automatic=$hardcode_automatic
23416
23417 # Set to yes if linker adds runtime paths of dependent libraries
23418 # to runtime path list.
23419 inherit_rpath=$inherit_rpath
23420
23421 # Whether libtool must link a program against all its dependency libraries.
23422 link_all_deplibs=$link_all_deplibs
23423
23424 # Set to "yes" if exported symbols are required.
23425 always_export_symbols=$always_export_symbols
23426
23427 # The commands to list exported symbols.
23428 export_symbols_cmds=$lt_export_symbols_cmds
23429
23430 # Symbols that should not be listed in the preloaded symbols.
23431 exclude_expsyms=$lt_exclude_expsyms
23432
23433 # Symbols that must always be exported.
23434 include_expsyms=$lt_include_expsyms
23435
23436 # Commands necessary for linking programs (against libraries) with templates.
23437 prelink_cmds=$lt_prelink_cmds
23438
23439 # Commands necessary for finishing linking programs.
23440 postlink_cmds=$lt_postlink_cmds
23441
23442 # Specify filename containing input files.
23443 file_list_spec=$lt_file_list_spec
23444
23445 # How to hardcode a shared library path into an executable.
23446 hardcode_action=$hardcode_action
23447
23448 # The directories searched by this compiler when creating a shared library.
23449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23450
23451 # Dependencies to place before and after the objects being linked to
23452 # create a shared library.
23453 predep_objects=$lt_predep_objects
23454 postdep_objects=$lt_postdep_objects
23455 predeps=$lt_predeps
23456 postdeps=$lt_postdeps
23457
23458 # The library search path used internally by the compiler when linking
23459 # a shared library.
23460 compiler_lib_search_path=$lt_compiler_lib_search_path
23461
23462 # ### END LIBTOOL CONFIG
23463
23464 _LT_EOF
23465
23466 cat <<'_LT_EOF' >> "$cfgfile"
23467
23468 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23469
23470 # func_munge_path_list VARIABLE PATH
23471 # -----------------------------------
23472 # VARIABLE is name of variable containing _space_ separated list of
23473 # directories to be munged by the contents of PATH, which is string
23474 # having a format:
23475 # "DIR[:DIR]:"
23476 # string "DIR[ DIR]" will be prepended to VARIABLE
23477 # ":DIR[:DIR]"
23478 # string "DIR[ DIR]" will be appended to VARIABLE
23479 # "DIRP[:DIRP]::[DIRA:]DIRA"
23480 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23481 # "DIRA[ DIRA]" will be appended to VARIABLE
23482 # "DIR[:DIR]"
23483 # VARIABLE will be replaced by "DIR[ DIR]"
23484 func_munge_path_list ()
23485 {
23486 case x$2 in
23487 x)
23488 ;;
23489 *:)
23490 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23491 ;;
23492 x:*)
23493 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23494 ;;
23495 *::*)
23496 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23497 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23498 ;;
23499 *)
23500 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23501 ;;
23502 esac
23503 }
23504
23505
23506 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23507 func_cc_basename ()
23508 {
23509 for cc_temp in $*""; do
23510 case $cc_temp in
23511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23513 \-*) ;;
23514 *) break;;
23515 esac
23516 done
23517 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23518 }
23519
23520
23521 # ### END FUNCTIONS SHARED WITH CONFIGURE
23522
23523 _LT_EOF
23524
23525 case $host_os in
23526 aix3*)
23527 cat <<\_LT_EOF >> "$cfgfile"
23528 # AIX sometimes has problems with the GCC collect2 program. For some
23529 # reason, if we set the COLLECT_NAMES environment variable, the problems
23530 # vanish in a puff of smoke.
23531 if test set != "${COLLECT_NAMES+set}"; then
23532 COLLECT_NAMES=
23533 export COLLECT_NAMES
23534 fi
23535 _LT_EOF
23536 ;;
23537 esac
23538
23539
23540
23541 ltmain=$ac_aux_dir/ltmain.sh
23542
23543
23544 # We use sed instead of cat because bash on DJGPP gets confused if
23545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23546 # text mode, it properly converts lines to CR/LF. This bash problem
23547 # is reportedly fixed, but why not run on old versions too?
23548 $SED '$q' "$ltmain" >> "$cfgfile" \
23549 || (rm -f "$cfgfile"; exit 1)
23550
23551 mv -f "$cfgfile" "$ofile" ||
23552 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23553 chmod +x "$ofile"
23554
23555
23556 cat <<_LT_EOF >> "$ofile"
23557
23558 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23559
23560 # The linker used to build libraries.
23561 LD=$lt_LD_CXX
23562
23563 # How to create reloadable object files.
23564 reload_flag=$lt_reload_flag_CXX
23565 reload_cmds=$lt_reload_cmds_CXX
23566
23567 # Commands used to build an old-style archive.
23568 old_archive_cmds=$lt_old_archive_cmds_CXX
23569
23570 # A language specific compiler.
23571 CC=$lt_compiler_CXX
23572
23573 # Is the compiler the GNU compiler?
23574 with_gcc=$GCC_CXX
23575
23576 # Compiler flag to turn off builtin functions.
23577 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23578
23579 # Additional compiler flags for building library objects.
23580 pic_flag=$lt_lt_prog_compiler_pic_CXX
23581
23582 # How to pass a linker flag through the compiler.
23583 wl=$lt_lt_prog_compiler_wl_CXX
23584
23585 # Compiler flag to prevent dynamic linking.
23586 link_static_flag=$lt_lt_prog_compiler_static_CXX
23587
23588 # Does compiler simultaneously support -c and -o options?
23589 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23590
23591 # Whether or not to add -lc for building shared libraries.
23592 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23593
23594 # Whether or not to disallow shared libs when runtime libs are static.
23595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23596
23597 # Compiler flag to allow reflexive dlopens.
23598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23599
23600 # Compiler flag to generate shared objects directly from archives.
23601 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23602
23603 # Whether the compiler copes with passing no objects directly.
23604 compiler_needs_object=$lt_compiler_needs_object_CXX
23605
23606 # Create an old-style archive from a shared archive.
23607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23608
23609 # Create a temporary old-style archive to link instead of a shared archive.
23610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23611
23612 # Commands used to build a shared archive.
23613 archive_cmds=$lt_archive_cmds_CXX
23614 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23615
23616 # Commands used to build a loadable module if different from building
23617 # a shared archive.
23618 module_cmds=$lt_module_cmds_CXX
23619 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23620
23621 # Whether we are building with GNU ld or not.
23622 with_gnu_ld=$lt_with_gnu_ld_CXX
23623
23624 # Flag that allows shared libraries with undefined symbols to be built.
23625 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23626
23627 # Flag that enforces no undefined symbols.
23628 no_undefined_flag=$lt_no_undefined_flag_CXX
23629
23630 # Flag to hardcode \$libdir into a binary during linking.
23631 # This must work even if \$libdir does not exist
23632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23633
23634 # Whether we need a single "-rpath" flag with a separated argument.
23635 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23636
23637 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23638 # DIR into the resulting binary.
23639 hardcode_direct=$hardcode_direct_CXX
23640
23641 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23642 # DIR into the resulting binary and the resulting library dependency is
23643 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23644 # library is relocated.
23645 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23646
23647 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23648 # into the resulting binary.
23649 hardcode_minus_L=$hardcode_minus_L_CXX
23650
23651 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23652 # into the resulting binary.
23653 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23654
23655 # Set to "yes" if building a shared library automatically hardcodes DIR
23656 # into the library and all subsequent libraries and executables linked
23657 # against it.
23658 hardcode_automatic=$hardcode_automatic_CXX
23659
23660 # Set to yes if linker adds runtime paths of dependent libraries
23661 # to runtime path list.
23662 inherit_rpath=$inherit_rpath_CXX
23663
23664 # Whether libtool must link a program against all its dependency libraries.
23665 link_all_deplibs=$link_all_deplibs_CXX
23666
23667 # Set to "yes" if exported symbols are required.
23668 always_export_symbols=$always_export_symbols_CXX
23669
23670 # The commands to list exported symbols.
23671 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23672
23673 # Symbols that should not be listed in the preloaded symbols.
23674 exclude_expsyms=$lt_exclude_expsyms_CXX
23675
23676 # Symbols that must always be exported.
23677 include_expsyms=$lt_include_expsyms_CXX
23678
23679 # Commands necessary for linking programs (against libraries) with templates.
23680 prelink_cmds=$lt_prelink_cmds_CXX
23681
23682 # Commands necessary for finishing linking programs.
23683 postlink_cmds=$lt_postlink_cmds_CXX
23684
23685 # Specify filename containing input files.
23686 file_list_spec=$lt_file_list_spec_CXX
23687
23688 # How to hardcode a shared library path into an executable.
23689 hardcode_action=$hardcode_action_CXX
23690
23691 # The directories searched by this compiler when creating a shared library.
23692 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23693
23694 # Dependencies to place before and after the objects being linked to
23695 # create a shared library.
23696 predep_objects=$lt_predep_objects_CXX
23697 postdep_objects=$lt_postdep_objects_CXX
23698 predeps=$lt_predeps_CXX
23699 postdeps=$lt_postdeps_CXX
23700
23701 # The library search path used internally by the compiler when linking
23702 # a shared library.
23703 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23704
23705 # ### END LIBTOOL TAG CONFIG: CXX
23706 _LT_EOF
23707
23708 ;;
23709 "$ax_create_pkgconfig_generate":C)
23710 pkgconfig_generate="$ax_create_pkgconfig_generate"
23711 if test ! -f "$pkgconfig_generate.in"
23712 then generate="true"
23713 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
23714 then generate="true"
23715 else generate="false";
23716 fi
23717 if $generate ; then
23718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
23719 printf "%s\n" "$as_me: creating $pkgconfig_generate.in" >&6;}
23720 cat > $pkgconfig_generate.in <<AXEOF
23721 # generated by configure / remove this line to disable regeneration
23722 prefix=@prefix@
23723 exec_prefix=@exec_prefix@
23724 bindir=@bindir@
23725 libdir=@libdir@
23726 datarootdir=@datarootdir@
23727 datadir=@datadir@
23728 sysconfdir=@sysconfdir@
23729 includedir=@includedir@
23730 package=@PACKAGE@
23731 suffix=@suffix@
23732
23733 Name: @PACKAGE_NAME@
23734 Description: @PACKAGE_DESCRIPTION@
23735 Version: @PACKAGE_VERSION@
23736 Requires: @PACKAGE_REQUIRES@
23737 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
23738 Cflags: -I\${includedir} @CPPFLAGS@
23739 AXEOF
23740 fi # DONE generate $pkgconfig_generate.in
23741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
23742 printf "%s\n" "$as_me: creating $pkgconfig_generate" >&6;}
23743 cat >conftest.sed <<AXEOF
23744 s|@prefix@|${pkgconfig_prefix}|
23745 s|@exec_prefix@|${pkgconfig_execprefix}|
23746 s|@bindir@|${pkgconfig_bindir}|
23747 s|@libdir@|${pkgconfig_libdir}|
23748 s|@datarootdir@|${pkgconfig_datarootdir}|
23749 s|@datadir@|${pkgconfig_datadir}|
23750 s|@sysconfdir@|${pkgconfig_sysconfdir}|
23751 s|@includedir@|${pkgconfig_includedir}|
23752 s|@suffix@|${pkgconfig_suffix}|
23753 s|@PACKAGE@|${pkgconfig_package}|
23754 s|@PACKAGE_NAME@|${pkgconfig_libname}|
23755 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
23756 s|@PACKAGE_VERSION@|${pkgconfig_version}|
23757 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
23758 s|@LIBS@|${pkgconfig_libs}|
23759 s|@LDFLAGS@|${pkgconfig_ldflags}|
23760 s|@CPPFLAGS@|${pkgconfig_cppflags}|
23761 AXEOF
23762 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
23763 if test ! -s $pkgconfig_generate ; then
23764 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
23765 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
23766 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
23767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
23768 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
23769 cat >conftest.sed <<AXEOF
23770 s|@prefix@|${pkgconfig_prefix}|
23771 s|@exec_prefix@|${pkgconfig_execprefix}|
23772 s|@bindir@|${pkgconfig_bindir}|
23773 s|@libdir@|${pkgconfig_src_libdir}|
23774 s|@datarootdir@|${pkgconfig_datarootdir}|
23775 s|@datadir@|${pkgconfig_datadir}|
23776 s|@sysconfdir@|${pkgconfig_sysconfdir}|
23777 s|@includedir@|${pkgconfig_src_headers}|
23778 s|@suffix@|${pkgconfig_suffix}|
23779 s|@PACKAGE@|${pkgconfig_package}|
23780 s|@PACKAGE_NAME@|${pkgconfig_libname}|
23781 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
23782 s|@PACKAGE_VERSION@|${pkgconfig_version}|
23783 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
23784 s|@LIBS@|${pkgconfig_libs}|
23785 s|@LDFLAGS@|${pkgconfig_ldflags}|
23786 s|@CPPFLAGS@|${pkgconfig_cppflags}|
23787 AXEOF
23788 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
23789 if test ! -s $pkgconfig_uninstalled ; then
23790 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
23791 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
23792 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
23793 if test ".$pkgconfig_requires_add" != "." ; then
23794 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
23795 else pkgconfig_requires_add=":" ; fi
23796 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
23797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
23798 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
23799 cat >conftest.sed <<AXEOF
23800 s|@prefix@|\"${pkgconfig_prefix}\"|
23801 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
23802 s|@bindir@|\"${pkgconfig_bindir}\"|
23803 s|@libdir@|\"${pkgconfig_src_libdir}\"|
23804 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
23805 s|@datadir@|\"${pkgconfig_datadir}\"|
23806 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
23807 s|@includedir@|\"${pkgconfig_src_headers}\"|
23808 s|@suffix@|\"${pkgconfig_suffix}\"|
23809 s|@PACKAGE@|\"${pkgconfig_package}\"|
23810 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
23811 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
23812 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
23813 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
23814 s|@LIBS@|\"${pkgconfig_libs}\"|
23815 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
23816 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
23817 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
23818 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
23819 s>Version: *>\\;\\; --modversion|--version) echo >
23820 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
23821 s>Libs: *>\\;\\; --libs) echo >
23822 s>Cflags: *>\\;\\; --cflags) echo >
23823 /--libs)/a\\
23824 $pkgconfig_requires_add
23825 /--cflags)/a\\
23826 $pkgconfig_requires_add\\
23827 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
23828 ;; --uninstalled) exit 0 \\
23829 ;; *) ;; esac done
23830 AXEOF
23831 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
23832 if test ! -s $pkgconfig_uninstalled ; then
23833 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
23834 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
23835 ;;
23836
23837 esac
23838 done # for ac_tag
23839
23840
23841 as_fn_exit 0
23842 _ACEOF
23843 ac_clean_files=$ac_clean_files_save
23844
23845 test $ac_write_fail = 0 ||
23846 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23847
23848
23849 # configure is writing to config.log, and then calls config.status.
23850 # config.status does its own redirection, appending to config.log.
23851 # Unfortunately, on DOS this fails, as config.log is still kept open
23852 # by configure, so config.status won't be able to write to it; its
23853 # output is simply discarded. So we exec the FD to /dev/null,
23854 # effectively closing config.log, so it can be properly (re)opened and
23855 # appended to by config.status. When coming back to configure, we
23856 # need to make the FD available again.
23857 if test "$no_create" != yes; then
23858 ac_cs_success=:
23859 ac_config_status_args=
23860 test "$silent" = yes &&
23861 ac_config_status_args="$ac_config_status_args --quiet"
23862 exec 5>/dev/null
23863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23864 exec 5>>config.log
23865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23866 # would make configure fail if this is the last instruction.
23867 $ac_cs_success || as_fn_exit 1
23868 fi
23869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23871 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23872 fi
23873
23874