Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libcdr 0.1.9.
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='libcdr'
613 PACKAGE_TARNAME='libcdr'
614 PACKAGE_VERSION='0.1.9'
615 PACKAGE_STRING='libcdr 0.1.9'
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 WITH_LIBCDR_DOCS_FALSE
656 WITH_LIBCDR_DOCS_TRUE
657 DOXYGEN
658 BUILD_TESTS_FALSE
659 BUILD_TESTS_TRUE
660 CPPUNIT_LIBS
661 CPPUNIT_CFLAGS
662 DEBUG_CXXFLAGS
663 WINDRES
664 HAVE_VISIBILITY_FALSE
665 HAVE_VISIBILITY_TRUE
666 PLATFORM_WIN32_FALSE
667 PLATFORM_WIN32_TRUE
668 CMX2XHTML_WIN32_RESOURCE
669 CMX2TEXT_WIN32_RESOURCE
670 CMX2RAW_WIN32_RESOURCE
671 CDR2XHTML_WIN32_RESOURCE
672 CDR2TEXT_WIN32_RESOURCE
673 CDR2RAW_WIN32_RESOURCE
674 LIBCDR_WIN32_RESOURCE
675 OS_WIN32_FALSE
676 OS_WIN32_TRUE
677 LT_AGE
678 LT_REVISION
679 LT_CURRENT
680 CDR_VERSION
681 CDR_MICRO_VERSION
682 CDR_MINOR_VERSION
683 CDR_MAJOR_VERSION
684 HAVE_CXX17
685 ICU_LIBS
686 ICU_CFLAGS
687 ZLIB_LIBS
688 ZLIB_CFLAGS
689 LCMS_LIBS
690 LCMS2_LIBS
691 LCMS2_CFLAGS
692 REVENGE_GENERATORS_LIBS
693 REVENGE_GENERATORS_CFLAGS
694 REVENGE_STREAM_LIBS
695 REVENGE_STREAM_CFLAGS
696 BUILD_FUZZERS_FALSE
697 BUILD_FUZZERS_TRUE
698 BUILD_TOOLS_FALSE
699 BUILD_TOOLS_TRUE
700 REVENGE_LIBS
701 REVENGE_CFLAGS
702 PKG_CONFIG_LIBDIR
703 PKG_CONFIG_PATH
704 PKG_CONFIG
705 HAVE_CXX11
706 CXXCPP
707 LT_SYS_LIBRARY_PATH
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 MANIFEST_TOOL
714 RANLIB
715 FILECMD
716 NM
717 ac_ct_DUMPBIN
718 DUMPBIN
719 LD
720 FGREP
721 EGREP
722 GREP
723 SED
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 LIBTOOL
733 OBJDUMP
734 DLLTOOL
735 AS
736 LN_S
737 am__fastdepCXX_FALSE
738 am__fastdepCXX_TRUE
739 CXXDEPMODE
740 ac_ct_CXX
741 CXXFLAGS
742 CXX
743 CPP
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 ac_ct_AR
761 AR
762 am__xargs_n
763 am__rm_f_notfound
764 AM_BACKSLASH
765 AM_DEFAULT_VERBOSITY
766 AM_DEFAULT_V
767 AM_V
768 CSCOPE
769 ETAGS
770 CTAGS
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 runstatedir
814 localstatedir
815 sharedstatedir
816 sysconfdir
817 datadir
818 datarootdir
819 libexecdir
820 sbindir
821 bindir
822 program_transform_name
823 prefix
824 exec_prefix
825 PACKAGE_URL
826 PACKAGE_BUGREPORT
827 PACKAGE_STRING
828 PACKAGE_VERSION
829 PACKAGE_TARNAME
830 PACKAGE_NAME
831 PATH_SEPARATOR
832 SHELL
833 am__quote'
834 ac_subst_files=''
835 ac_user_opts='
836 enable_option_checking
837 enable_silent_rules
838 enable_dependency_tracking
839 enable_static
840 enable_pic
841 with_pic
842 enable_shared
843 enable_fast_install
844 enable_aix_soname
845 with_aix_soname
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
849 enable_tools
850 enable_fuzzers
851 enable_werror
852 enable_weffc
853 enable_wparanoic
854 enable_debug
855 enable_tests
856 with_docs
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 CXX
868 CXXFLAGS
869 CCC
870 LT_SYS_LIBRARY_PATH
871 CXXCPP
872 PKG_CONFIG
873 PKG_CONFIG_PATH
874 PKG_CONFIG_LIBDIR
875 REVENGE_CFLAGS
876 REVENGE_LIBS
877 REVENGE_STREAM_CFLAGS
878 REVENGE_STREAM_LIBS
879 REVENGE_GENERATORS_CFLAGS
880 REVENGE_GENERATORS_LIBS
881 LCMS2_CFLAGS
882 LCMS2_LIBS
883 ZLIB_CFLAGS
884 ZLIB_LIBS
885 ICU_CFLAGS
886 ICU_LIBS
887 CPPUNIT_CFLAGS
888 CPPUNIT_LIBS'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 runstatedir='${localstatedir}/run'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: '$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: '$ac_useropt'"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1054
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1059
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1089
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1163
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -runstatedir | --runstatedir | --runstatedi | --runstated \
1179 | --runstate | --runstat | --runsta | --runst | --runs \
1180 | --run | --ru | --r)
1181 ac_prev=runstatedir ;;
1182 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1183 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1184 | --run=* | --ru=* | --r=*)
1185 runstatedir=$ac_optarg ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: '$ac_useropt'"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: '$ac_useropt'"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: '$ac_option'
1283 Try '$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir runstatedir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: '$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 printf "%s\n" X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1401 fi
1402 else
1403 ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 'configure' configures libcdr 0.1.9 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print 'checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for '--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or '..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, 'make install' will install all the files in
1464 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than '$ac_default_prefix' using '--prefix',
1466 for instance '--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/libcdr]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of libcdr 0.1.9:";;
1509 esac
1510 cat <<\_ACEOF
1511
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --enable-dependency-tracking
1519 do not reject slow dependency extractors
1520 --disable-dependency-tracking
1521 speeds up one-time build
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --enable-aix-soname=aix|svr4|both
1529 shared library versioning (aka "SONAME") variant to
1530 provide on AIX, [default=aix].
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --disable-tools Build conversion tools
1533 --enable-fuzzers Build fuzzer(s)
1534 --enable-werror Treat all warnings as errors, useful for development
1535 --disable-weffc Disable -Weffc++ warnings, useful when using an old
1536 version of gcc or of boost
1537 --enable-wparanoic Enable a lot of warnings...
1538 --enable-debug Turn on debugging
1539 --enable-tests Build and run unit tests
1540
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1546 compiler's sysroot if not specified).
1547 --without-docs Do not build documentation
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 LT_SYS_LIBRARY_PATH
1561 User-defined run-time library search path.
1562 CXXCPP C++ preprocessor
1563 PKG_CONFIG path to pkg-config utility
1564 PKG_CONFIG_PATH
1565 directories to add to pkg-config's search path
1566 PKG_CONFIG_LIBDIR
1567 path overriding pkg-config's built-in search path
1568 REVENGE_CFLAGS
1569 C compiler flags for REVENGE, overriding pkg-config
1570 REVENGE_LIBS
1571 linker flags for REVENGE, overriding pkg-config
1572 REVENGE_STREAM_CFLAGS
1573 C compiler flags for REVENGE_STREAM, overriding pkg-config
1574 REVENGE_STREAM_LIBS
1575 linker flags for REVENGE_STREAM, overriding pkg-config
1576 REVENGE_GENERATORS_CFLAGS
1577 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1578 REVENGE_GENERATORS_LIBS
1579 linker flags for REVENGE_GENERATORS, overriding pkg-config
1580 LCMS2_CFLAGS
1581 C compiler flags for LCMS2, overriding pkg-config
1582 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
1583 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1584 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1585 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1586 ICU_LIBS linker flags for ICU, overriding pkg-config
1587 CPPUNIT_CFLAGS
1588 C compiler flags for CPPUNIT, overriding pkg-config
1589 CPPUNIT_LIBS
1590 linker flags for CPPUNIT, overriding pkg-config
1591
1592 Use these variables to override the choices made by 'configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to the package provider.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for configure.gnu first; this name is used for a wrapper for
1642 # Metaconfig's "Configure" on case-insensitive file systems.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 libcdr configure 0.1.9
1660 generated by GNU Autoconf 2.72
1661
1662 Copyright (C) 2023 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext
1699 then :
1700 ac_retval=0
1701 else case e in #(
1702 e) printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1 ;;
1706 esac
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_compile
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 printf "%s\n" "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } > conftest.i && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }
1738 then :
1739 ac_retval=0
1740 else case e in #(
1741 e) printf "%s\n" "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1 ;;
1745 esac
1746 fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest.beam
1759 if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext
1778 then :
1779 ac_retval=0
1780 else case e in #(
1781 e) printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1 ;;
1785 esac
1786 fi
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_cxx_try_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 printf "%s\n" "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }
1821 then :
1822 ac_retval=0
1823 else case e in #(
1824 e) printf "%s\n" "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1 ;;
1828 esac
1829 fi
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 printf %s "checking for $2... " >&6; }
1849 if eval test \${$3+y}
1850 then :
1851 printf %s "(cached) " >&6
1852 else case e in #(
1853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $4
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"
1859 then :
1860 eval "$3=yes"
1861 else case e in #(
1862 e) eval "$3=no" ;;
1863 esac
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1866 esac
1867 fi
1868 eval ac_res=\$$3
1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 printf "%s\n" "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 printf %s "checking for $2... " >&6; }
1883 if eval test \${$3+y}
1884 then :
1885 printf %s "(cached) " >&6
1886 else case e in #(
1887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1892
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (void); below. */
1895
1896 #include <limits.h>
1897 #undef $2
1898
1899 /* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1902 #ifdef __cplusplus
1903 extern "C"
1904 #endif
1905 char $2 (void);
1906 /* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909 #if defined __stub_$2 || defined __stub___$2
1910 choke me
1911 #endif
1912
1913 int
1914 main (void)
1915 {
1916 return $2 ();
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_link "$LINENO"
1922 then :
1923 eval "$3=yes"
1924 else case e in #(
1925 e) eval "$3=no" ;;
1926 esac
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1929 conftest$ac_exeext conftest.$ac_ext ;;
1930 esac
1931 fi
1932 eval ac_res=\$$3
1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 printf "%s\n" "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_cpp LINENO
1940 # ------------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_cpp ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } > conftest.i && {
1961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 }
1964 then :
1965 ac_retval=0
1966 else case e in #(
1967 e) printf "%s\n" "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1 ;;
1971 esac
1972 fi
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1975
1976 } # ac_fn_cxx_try_cpp
1977
1978 # ac_fn_cxx_try_link LINENO
1979 # -------------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_link ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 printf "%s\n" "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest$ac_exeext && {
2004 test "$cross_compiling" = yes ||
2005 test -x conftest$ac_exeext
2006 }
2007 then :
2008 ac_retval=0
2009 else case e in #(
2010 e) printf "%s\n" "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1 ;;
2014 esac
2015 fi
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2023
2024 } # ac_fn_cxx_try_link
2025
2026 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2027 # ---------------------------------------------------------
2028 # Tests whether HEADER exists and can be compiled using the include files in
2029 # INCLUDES, setting the cache variable VAR accordingly.
2030 ac_fn_cxx_check_header_compile ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 printf %s "checking for $2... " >&6; }
2035 if eval test \${$3+y}
2036 then :
2037 printf %s "(cached) " >&6
2038 else case e in #(
2039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_cxx_try_compile "$LINENO"
2045 then :
2046 eval "$3=yes"
2047 else case e in #(
2048 e) eval "$3=no" ;;
2049 esac
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2052 esac
2053 fi
2054 eval ac_res=\$$3
2055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 printf "%s\n" "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_cxx_check_header_compile
2060 ac_configure_args_raw=
2061 for ac_arg
2062 do
2063 case $ac_arg in
2064 *\'*)
2065 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 esac
2067 as_fn_append ac_configure_args_raw " '$ac_arg'"
2068 done
2069
2070 case $ac_configure_args_raw in
2071 *$as_nl*)
2072 ac_safe_unquote= ;;
2073 *)
2074 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2075 ac_unsafe_a="$ac_unsafe_z#~"
2076 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2077 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2078 esac
2079
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2083
2084 It was created by libcdr $as_me 0.1.9, which was
2085 generated by GNU Autoconf 2.72. Invocation command line was
2086
2087 $ $0$ac_configure_args_raw
2088
2089 _ACEOF
2090 exec 5>>config.log
2091 {
2092 cat <<_ASUNAME
2093 ## --------- ##
2094 ## Platform. ##
2095 ## --------- ##
2096
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2105
2106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2113
2114 _ASUNAME
2115
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 case $as_dir in #(((
2121 '') as_dir=./ ;;
2122 */) ;;
2123 *) as_dir=$as_dir/ ;;
2124 esac
2125 printf "%s\n" "PATH: $as_dir"
2126 done
2127 IFS=$as_save_IFS
2128
2129 } >&5
2130
2131 cat >&5 <<_ACEOF
2132
2133
2134 ## ----------- ##
2135 ## Core tests. ##
2136 ## ----------- ##
2137
2138 _ACEOF
2139
2140
2141 # Keep a trace of the command line.
2142 # Strip out --no-create and --no-recursion so they do not pile up.
2143 # Strip out --silent because we don't want to record it for future runs.
2144 # Also quote any args containing shell meta-characters.
2145 # Make two passes to allow for proper duplicate-argument suppression.
2146 ac_configure_args=
2147 ac_configure_args0=
2148 ac_configure_args1=
2149 ac_must_keep_next=false
2150 for ac_pass in 1 2
2151 do
2152 for ac_arg
2153 do
2154 case $ac_arg in
2155 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157 | -silent | --silent | --silen | --sile | --sil)
2158 continue ;;
2159 *\'*)
2160 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 esac
2162 case $ac_pass in
2163 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 2)
2165 as_fn_append ac_configure_args1 " '$ac_arg'"
2166 if test $ac_must_keep_next = true; then
2167 ac_must_keep_next=false # Got value, back to normal.
2168 else
2169 case $ac_arg in
2170 *=* | --config-cache | -C | -disable-* | --disable-* \
2171 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173 | -with-* | --with-* | -without-* | --without-* | --x)
2174 case "$ac_configure_args0 " in
2175 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176 esac
2177 ;;
2178 -* ) ac_must_keep_next=true ;;
2179 esac
2180 fi
2181 as_fn_append ac_configure_args " '$ac_arg'"
2182 ;;
2183 esac
2184 done
2185 done
2186 { ac_configure_args0=; unset ac_configure_args0;}
2187 { ac_configure_args1=; unset ac_configure_args1;}
2188
2189 # When interrupted or exit'd, cleanup temporary files, and complete
2190 # config.log. We remove comments because anyway the quotes in there
2191 # would cause problems or look ugly.
2192 # WARNING: Use '\'' to represent an apostrophe within the trap.
2193 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194 trap 'exit_status=$?
2195 # Sanitize IFS.
2196 IFS=" "" $as_nl"
2197 # Save into config.log some information that might help in debugging.
2198 {
2199 echo
2200
2201 printf "%s\n" "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2204 echo
2205 # The following way of writing the cache mishandles newlines in values,
2206 (
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in #(
2210 *${as_nl}*)
2211 case $ac_var in #(
2212 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214 esac
2215 case $ac_var in #(
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218 *) { eval $ac_var=; unset $ac_var;} ;;
2219 esac ;;
2220 esac
2221 done
2222 (set) 2>&1 |
2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
2225 sed -n \
2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 ;; #(
2229 *)
2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 ;;
2232 esac |
2233 sort
2234 )
2235 echo
2236
2237 printf "%s\n" "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2240 echo
2241 for ac_var in $ac_subst_vars
2242 do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 printf "%s\n" "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2250
2251 if test -n "$ac_subst_files"; then
2252 printf "%s\n" "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2255 echo
2256 for ac_var in $ac_subst_files
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 printf "%s\n" "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265 fi
2266
2267 if test -s confdefs.h; then
2268 printf "%s\n" "## ----------- ##
2269 ## confdefs.h. ##
2270 ## ----------- ##"
2271 echo
2272 cat confdefs.h
2273 echo
2274 fi
2275 test "$ac_signal" != 0 &&
2276 printf "%s\n" "$as_me: caught signal $ac_signal"
2277 printf "%s\n" "$as_me: exit $exit_status"
2278 } >&5
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281 exit $exit_status
2282 ' 0
2283 for ac_signal in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2287
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2290
2291 printf "%s\n" "/* confdefs.h */" > confdefs.h
2292
2293 # Predefined preprocessor variables.
2294
2295 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2296
2297 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2298
2299 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2300
2301 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2302
2303 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2304
2305 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2306
2307
2308 # Let the site file select an alternate cache file if it wants to.
2309 # Prefer an explicitly selected file to automatically selected ones.
2310 if test -n "$CONFIG_SITE"; then
2311 ac_site_files="$CONFIG_SITE"
2312 elif test "x$prefix" != xNONE; then
2313 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2314 else
2315 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2316 fi
2317
2318 for ac_site_file in $ac_site_files
2319 do
2320 case $ac_site_file in #(
2321 */*) :
2322 ;; #(
2323 *) :
2324 ac_site_file=./$ac_site_file ;;
2325 esac
2326 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2328 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2329 sed 's/^/| /' "$ac_site_file" >&5
2330 . "$ac_site_file" \
2331 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2332 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2333 as_fn_error $? "failed to load site script $ac_site_file
2334 See 'config.log' for more details" "$LINENO" 5; }
2335 fi
2336 done
2337
2338 if test -r "$cache_file"; then
2339 # Some versions of bash will fail to source /dev/null (special files
2340 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2341 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2343 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2344 case $cache_file in
2345 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2346 *) . "./$cache_file";;
2347 esac
2348 fi
2349 else
2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2351 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2352 >$cache_file
2353 fi
2354
2355 # Test code for whether the C compiler supports C89 (global declarations)
2356 ac_c_conftest_c89_globals='
2357 /* Does the compiler advertise C89 conformance?
2358 Do not test the value of __STDC__, because some compilers set it to 0
2359 while being otherwise adequately conformant. */
2360 #if !defined __STDC__
2361 # error "Compiler does not advertise C89 conformance"
2362 #endif
2363
2364 #include <stddef.h>
2365 #include <stdarg.h>
2366 struct stat;
2367 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2368 struct buf { int x; };
2369 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2370 static char *e (char **p, int i)
2371 {
2372 return p[i];
2373 }
2374 static char *f (char * (*g) (char **, int), char **p, ...)
2375 {
2376 char *s;
2377 va_list v;
2378 va_start (v,p);
2379 s = g (p, va_arg (v,int));
2380 va_end (v);
2381 return s;
2382 }
2383
2384 /* C89 style stringification. */
2385 #define noexpand_stringify(a) #a
2386 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2387
2388 /* C89 style token pasting. Exercises some of the corner cases that
2389 e.g. old MSVC gets wrong, but not very hard. */
2390 #define noexpand_concat(a,b) a##b
2391 #define expand_concat(a,b) noexpand_concat(a,b)
2392 extern int vA;
2393 extern int vbee;
2394 #define aye A
2395 #define bee B
2396 int *pvA = &expand_concat(v,aye);
2397 int *pvbee = &noexpand_concat(v,bee);
2398
2399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2400 function prototypes and stuff, but not \xHH hex character constants.
2401 These do not provoke an error unfortunately, instead are silently treated
2402 as an "x". The following induces an error, until -std is added to get
2403 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2404 array size at least. It is necessary to write \x00 == 0 to get something
2405 that is true only with -std. */
2406 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2407
2408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2409 inside strings and character constants. */
2410 #define FOO(x) '\''x'\''
2411 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2412
2413 int test (int i, double x);
2414 struct s1 {int (*f) (int a);};
2415 struct s2 {int (*f) (double a);};
2416 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2417 int, int);'
2418
2419 # Test code for whether the C compiler supports C89 (body of main).
2420 ac_c_conftest_c89_main='
2421 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2422 '
2423
2424 # Test code for whether the C compiler supports C99 (global declarations)
2425 ac_c_conftest_c99_globals='
2426 /* Does the compiler advertise C99 conformance? */
2427 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2428 # error "Compiler does not advertise C99 conformance"
2429 #endif
2430
2431 // See if C++-style comments work.
2432
2433 #include <stdbool.h>
2434 extern int puts (const char *);
2435 extern int printf (const char *, ...);
2436 extern int dprintf (int, const char *, ...);
2437 extern void *malloc (size_t);
2438 extern void free (void *);
2439
2440 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2441 // dprintf is used instead of fprintf to avoid needing to declare
2442 // FILE and stderr.
2443 #define debug(...) dprintf (2, __VA_ARGS__)
2444 #define showlist(...) puts (#__VA_ARGS__)
2445 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2446 static void
2447 test_varargs_macros (void)
2448 {
2449 int x = 1234;
2450 int y = 5678;
2451 debug ("Flag");
2452 debug ("X = %d\n", x);
2453 showlist (The first, second, and third items.);
2454 report (x>y, "x is %d but y is %d", x, y);
2455 }
2456
2457 // Check long long types.
2458 #define BIG64 18446744073709551615ull
2459 #define BIG32 4294967295ul
2460 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2461 #if !BIG_OK
2462 #error "your preprocessor is broken"
2463 #endif
2464 #if BIG_OK
2465 #else
2466 #error "your preprocessor is broken"
2467 #endif
2468 static long long int bignum = -9223372036854775807LL;
2469 static unsigned long long int ubignum = BIG64;
2470
2471 struct incomplete_array
2472 {
2473 int datasize;
2474 double data[];
2475 };
2476
2477 struct named_init {
2478 int number;
2479 const wchar_t *name;
2480 double average;
2481 };
2482
2483 typedef const char *ccp;
2484
2485 static inline int
2486 test_restrict (ccp restrict text)
2487 {
2488 // Iterate through items via the restricted pointer.
2489 // Also check for declarations in for loops.
2490 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2491 continue;
2492 return 0;
2493 }
2494
2495 // Check varargs and va_copy.
2496 static bool
2497 test_varargs (const char *format, ...)
2498 {
2499 va_list args;
2500 va_start (args, format);
2501 va_list args_copy;
2502 va_copy (args_copy, args);
2503
2504 const char *str = "";
2505 int number = 0;
2506 float fnumber = 0;
2507
2508 while (*format)
2509 {
2510 switch (*format++)
2511 {
2512 case '\''s'\'': // string
2513 str = va_arg (args_copy, const char *);
2514 break;
2515 case '\''d'\'': // int
2516 number = va_arg (args_copy, int);
2517 break;
2518 case '\''f'\'': // float
2519 fnumber = va_arg (args_copy, double);
2520 break;
2521 default:
2522 break;
2523 }
2524 }
2525 va_end (args_copy);
2526 va_end (args);
2527
2528 return *str && number && fnumber;
2529 }
2530 '
2531
2532 # Test code for whether the C compiler supports C99 (body of main).
2533 ac_c_conftest_c99_main='
2534 // Check bool.
2535 _Bool success = false;
2536 success |= (argc != 0);
2537
2538 // Check restrict.
2539 if (test_restrict ("String literal") == 0)
2540 success = true;
2541 char *restrict newvar = "Another string";
2542
2543 // Check varargs.
2544 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2545 test_varargs_macros ();
2546
2547 // Check flexible array members.
2548 struct incomplete_array *ia =
2549 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2550 ia->datasize = 10;
2551 for (int i = 0; i < ia->datasize; ++i)
2552 ia->data[i] = i * 1.234;
2553 // Work around memory leak warnings.
2554 free (ia);
2555
2556 // Check named initializers.
2557 struct named_init ni = {
2558 .number = 34,
2559 .name = L"Test wide string",
2560 .average = 543.34343,
2561 };
2562
2563 ni.number = 58;
2564
2565 int dynamic_array[ni.number];
2566 dynamic_array[0] = argv[0][0];
2567 dynamic_array[ni.number - 1] = 543;
2568
2569 // work around unused variable warnings
2570 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2571 || dynamic_array[ni.number - 1] != 543);
2572 '
2573
2574 # Test code for whether the C compiler supports C11 (global declarations)
2575 ac_c_conftest_c11_globals='
2576 /* Does the compiler advertise C11 conformance? */
2577 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2578 # error "Compiler does not advertise C11 conformance"
2579 #endif
2580
2581 // Check _Alignas.
2582 char _Alignas (double) aligned_as_double;
2583 char _Alignas (0) no_special_alignment;
2584 extern char aligned_as_int;
2585 char _Alignas (0) _Alignas (int) aligned_as_int;
2586
2587 // Check _Alignof.
2588 enum
2589 {
2590 int_alignment = _Alignof (int),
2591 int_array_alignment = _Alignof (int[100]),
2592 char_alignment = _Alignof (char)
2593 };
2594 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2595
2596 // Check _Noreturn.
2597 int _Noreturn does_not_return (void) { for (;;) continue; }
2598
2599 // Check _Static_assert.
2600 struct test_static_assert
2601 {
2602 int x;
2603 _Static_assert (sizeof (int) <= sizeof (long int),
2604 "_Static_assert does not work in struct");
2605 long int y;
2606 };
2607
2608 // Check UTF-8 literals.
2609 #define u8 syntax error!
2610 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2611
2612 // Check duplicate typedefs.
2613 typedef long *long_ptr;
2614 typedef long int *long_ptr;
2615 typedef long_ptr long_ptr;
2616
2617 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2618 struct anonymous
2619 {
2620 union {
2621 struct { int i; int j; };
2622 struct { int k; long int l; } w;
2623 };
2624 int m;
2625 } v1;
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (body of main).
2629 ac_c_conftest_c11_main='
2630 _Static_assert ((offsetof (struct anonymous, i)
2631 == offsetof (struct anonymous, w.k)),
2632 "Anonymous union alignment botch");
2633 v1.i = 2;
2634 v1.w.k = 5;
2635 ok |= v1.i != 5;
2636 '
2637
2638 # Test code for whether the C compiler supports C11 (complete).
2639 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2640 ${ac_c_conftest_c99_globals}
2641 ${ac_c_conftest_c11_globals}
2642
2643 int
2644 main (int argc, char **argv)
2645 {
2646 int ok = 0;
2647 ${ac_c_conftest_c89_main}
2648 ${ac_c_conftest_c99_main}
2649 ${ac_c_conftest_c11_main}
2650 return ok;
2651 }
2652 "
2653
2654 # Test code for whether the C compiler supports C99 (complete).
2655 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2656 ${ac_c_conftest_c99_globals}
2657
2658 int
2659 main (int argc, char **argv)
2660 {
2661 int ok = 0;
2662 ${ac_c_conftest_c89_main}
2663 ${ac_c_conftest_c99_main}
2664 return ok;
2665 }
2666 "
2667
2668 # Test code for whether the C compiler supports C89 (complete).
2669 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2670
2671 int
2672 main (int argc, char **argv)
2673 {
2674 int ok = 0;
2675 ${ac_c_conftest_c89_main}
2676 return ok;
2677 }
2678 "
2679
2680 # Test code for whether the C++ compiler supports C++98 (global declarations)
2681 ac_cxx_conftest_cxx98_globals='
2682 // Does the compiler advertise C++98 conformance?
2683 #if !defined __cplusplus || __cplusplus < 199711L
2684 # error "Compiler does not advertise C++98 conformance"
2685 #endif
2686
2687 // These inclusions are to reject old compilers that
2688 // lack the unsuffixed header files.
2689 #include <cstdlib>
2690 #include <exception>
2691
2692 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2693 extern void assert (int);
2694 namespace std {
2695 extern int strcmp (const char *, const char *);
2696 }
2697
2698 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2699 using std::exception;
2700 using std::strcmp;
2701
2702 namespace {
2703
2704 void test_exception_syntax()
2705 {
2706 try {
2707 throw "test";
2708 } catch (const char *s) {
2709 // Extra parentheses suppress a warning when building autoconf itself,
2710 // due to lint rules shared with more typical C programs.
2711 assert (!(strcmp) (s, "test"));
2712 }
2713 }
2714
2715 template <typename T> struct test_template
2716 {
2717 T const val;
2718 explicit test_template(T t) : val(t) {}
2719 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2720 };
2721
2722 } // anonymous namespace
2723 '
2724
2725 # Test code for whether the C++ compiler supports C++98 (body of main)
2726 ac_cxx_conftest_cxx98_main='
2727 assert (argc);
2728 assert (! argv[0]);
2729 {
2730 test_exception_syntax ();
2731 test_template<double> tt (2.0);
2732 assert (tt.add (4) == 6.0);
2733 assert (true && !false);
2734 }
2735 '
2736
2737 # Test code for whether the C++ compiler supports C++11 (global declarations)
2738 ac_cxx_conftest_cxx11_globals='
2739 // Does the compiler advertise C++ 2011 conformance?
2740 #if !defined __cplusplus || __cplusplus < 201103L
2741 # error "Compiler does not advertise C++11 conformance"
2742 #endif
2743
2744 namespace cxx11test
2745 {
2746 constexpr int get_val() { return 20; }
2747
2748 struct testinit
2749 {
2750 int i;
2751 double d;
2752 };
2753
2754 class delegate
2755 {
2756 public:
2757 delegate(int n) : n(n) {}
2758 delegate(): delegate(2354) {}
2759
2760 virtual int getval() { return this->n; };
2761 protected:
2762 int n;
2763 };
2764
2765 class overridden : public delegate
2766 {
2767 public:
2768 overridden(int n): delegate(n) {}
2769 virtual int getval() override final { return this->n * 2; }
2770 };
2771
2772 class nocopy
2773 {
2774 public:
2775 nocopy(int i): i(i) {}
2776 nocopy() = default;
2777 nocopy(const nocopy&) = delete;
2778 nocopy & operator=(const nocopy&) = delete;
2779 private:
2780 int i;
2781 };
2782
2783 // for testing lambda expressions
2784 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2785 {
2786 return f(v);
2787 }
2788
2789 // for testing variadic templates and trailing return types
2790 template <typename V> auto sum(V first) -> V
2791 {
2792 return first;
2793 }
2794 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2795 {
2796 return first + sum(rest...);
2797 }
2798 }
2799 '
2800
2801 # Test code for whether the C++ compiler supports C++11 (body of main)
2802 ac_cxx_conftest_cxx11_main='
2803 {
2804 // Test auto and decltype
2805 auto a1 = 6538;
2806 auto a2 = 48573953.4;
2807 auto a3 = "String literal";
2808
2809 int total = 0;
2810 for (auto i = a3; *i; ++i) { total += *i; }
2811
2812 decltype(a2) a4 = 34895.034;
2813 }
2814 {
2815 // Test constexpr
2816 short sa[cxx11test::get_val()] = { 0 };
2817 }
2818 {
2819 // Test initializer lists
2820 cxx11test::testinit il = { 4323, 435234.23544 };
2821 }
2822 {
2823 // Test range-based for
2824 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2825 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2826 for (auto &x : array) { x += 23; }
2827 }
2828 {
2829 // Test lambda expressions
2830 using cxx11test::eval;
2831 assert (eval ([](int x) { return x*2; }, 21) == 42);
2832 double d = 2.0;
2833 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2834 assert (d == 5.0);
2835 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2836 assert (d == 5.0);
2837 }
2838 {
2839 // Test use of variadic templates
2840 using cxx11test::sum;
2841 auto a = sum(1);
2842 auto b = sum(1, 2);
2843 auto c = sum(1.0, 2.0, 3.0);
2844 }
2845 {
2846 // Test constructor delegation
2847 cxx11test::delegate d1;
2848 cxx11test::delegate d2();
2849 cxx11test::delegate d3(45);
2850 }
2851 {
2852 // Test override and final
2853 cxx11test::overridden o1(55464);
2854 }
2855 {
2856 // Test nullptr
2857 char *c = nullptr;
2858 }
2859 {
2860 // Test template brackets
2861 test_template<::test_template<int>> v(test_template<int>(12));
2862 }
2863 {
2864 // Unicode literals
2865 char const *utf8 = u8"UTF-8 string \u2500";
2866 char16_t const *utf16 = u"UTF-8 string \u2500";
2867 char32_t const *utf32 = U"UTF-32 string \u2500";
2868 }
2869 '
2870
2871 # Test code for whether the C compiler supports C++11 (complete).
2872 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2873 ${ac_cxx_conftest_cxx11_globals}
2874
2875 int
2876 main (int argc, char **argv)
2877 {
2878 int ok = 0;
2879 ${ac_cxx_conftest_cxx98_main}
2880 ${ac_cxx_conftest_cxx11_main}
2881 return ok;
2882 }
2883 "
2884
2885 # Test code for whether the C compiler supports C++98 (complete).
2886 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2887 int
2888 main (int argc, char **argv)
2889 {
2890 int ok = 0;
2891 ${ac_cxx_conftest_cxx98_main}
2892 return ok;
2893 }
2894 "
2895
2896 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2897 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2898 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2899 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2900 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2901 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2902 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2903 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2904 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2905
2906 # Auxiliary files required by this configure script.
2907 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2908
2909 # Locations in which to look for auxiliary files.
2910 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2911
2912 # Search for a directory containing all of the required auxiliary files,
2913 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2914 # If we don't find one directory that contains all the files we need,
2915 # we report the set of missing files from the *first* directory in
2916 # $ac_aux_dir_candidates and give up.
2917 ac_missing_aux_files=""
2918 ac_first_candidate=:
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 as_found=false
2922 for as_dir in $ac_aux_dir_candidates
2923 do
2924 IFS=$as_save_IFS
2925 case $as_dir in #(((
2926 '') as_dir=./ ;;
2927 */) ;;
2928 *) as_dir=$as_dir/ ;;
2929 esac
2930 as_found=:
2931
2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2933 ac_aux_dir_found=yes
2934 ac_install_sh=
2935 for ac_aux in $ac_aux_files
2936 do
2937 # As a special case, if "install-sh" is required, that requirement
2938 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2939 # and $ac_install_sh is set appropriately for whichever one is found.
2940 if test x"$ac_aux" = x"install-sh"
2941 then
2942 if test -f "${as_dir}install-sh"; then
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2944 ac_install_sh="${as_dir}install-sh -c"
2945 elif test -f "${as_dir}install.sh"; then
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2947 ac_install_sh="${as_dir}install.sh -c"
2948 elif test -f "${as_dir}shtool"; then
2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2950 ac_install_sh="${as_dir}shtool install -c"
2951 else
2952 ac_aux_dir_found=no
2953 if $ac_first_candidate; then
2954 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2955 else
2956 break
2957 fi
2958 fi
2959 else
2960 if test -f "${as_dir}${ac_aux}"; then
2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2962 else
2963 ac_aux_dir_found=no
2964 if $ac_first_candidate; then
2965 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2966 else
2967 break
2968 fi
2969 fi
2970 fi
2971 done
2972 if test "$ac_aux_dir_found" = yes; then
2973 ac_aux_dir="$as_dir"
2974 break
2975 fi
2976 ac_first_candidate=false
2977
2978 as_found=false
2979 done
2980 IFS=$as_save_IFS
2981 if $as_found
2982 then :
2983
2984 else case e in #(
2985 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2986 esac
2987 fi
2988
2989
2990 # These three variables are undocumented and unsupported,
2991 # and are intended to be withdrawn in a future Autoconf release.
2992 # They can cause serious problems if a builder's source tree is in a directory
2993 # whose full name contains unusual characters.
2994 if test -f "${ac_aux_dir}config.guess"; then
2995 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2996 fi
2997 if test -f "${ac_aux_dir}config.sub"; then
2998 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2999 fi
3000 if test -f "$ac_aux_dir/configure"; then
3001 ac_configure="$SHELL ${ac_aux_dir}configure"
3002 fi
3003
3004 # Check that the precious variables saved in the cache have kept the same
3005 # value.
3006 ac_cache_corrupted=false
3007 for ac_var in $ac_precious_vars; do
3008 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3009 eval ac_new_set=\$ac_env_${ac_var}_set
3010 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3011 eval ac_new_val=\$ac_env_${ac_var}_value
3012 case $ac_old_set,$ac_new_set in
3013 set,)
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3015 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3017 ,set)
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3019 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3020 ac_cache_corrupted=: ;;
3021 ,);;
3022 *)
3023 if test "x$ac_old_val" != "x$ac_new_val"; then
3024 # differences in whitespace do not lead to failure.
3025 ac_old_val_w=`echo x $ac_old_val`
3026 ac_new_val_w=`echo x $ac_new_val`
3027 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3029 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3030 ac_cache_corrupted=:
3031 else
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3033 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3034 eval $ac_var=\$ac_old_val
3035 fi
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3037 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3039 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3040 fi;;
3041 esac
3042 # Pass precious variables to config.status.
3043 if test "$ac_new_set" = set; then
3044 case $ac_new_val in
3045 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3046 *) ac_arg=$ac_var=$ac_new_val ;;
3047 esac
3048 case " $ac_configure_args " in
3049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3050 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3051 esac
3052 fi
3053 done
3054 if $ac_cache_corrupted; then
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3056 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3058 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3059 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3060 and start over" "$LINENO" 5
3061 fi
3062 ## -------------------- ##
3063 ## Main body of script. ##
3064 ## -------------------- ##
3065
3066 ac_ext=c
3067 ac_cpp='$CPP $CPPFLAGS'
3068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071
3072
3073
3074 ac_config_headers="$ac_config_headers config.h"
3075
3076 am__api_version='1.17'
3077
3078
3079
3080 # Find a good install program. We prefer a C program (faster),
3081 # so one script is as good as another. But avoid the broken or
3082 # incompatible versions:
3083 # SysV /etc/install, /usr/sbin/install
3084 # SunOS /usr/etc/install
3085 # IRIX /sbin/install
3086 # AIX /bin/install
3087 # AmigaOS /C/install, which installs bootblocks on floppy discs
3088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3091 # OS/2's system install, which has a completely different semantic
3092 # ./install, which can be erroneously created by make from ./install.sh.
3093 # Reject install programs that cannot install multiple files.
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3095 printf %s "checking for a BSD-compatible install... " >&6; }
3096 if test -z "$INSTALL"; then
3097 if test ${ac_cv_path_install+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else case e in #(
3101 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 case $as_dir in #(((
3106 '') as_dir=./ ;;
3107 */) ;;
3108 *) as_dir=$as_dir/ ;;
3109 esac
3110 # Account for fact that we put trailing slashes in our PATH walk.
3111 case $as_dir in #((
3112 ./ | /[cC]/* | \
3113 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3114 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3115 /usr/ucb/* ) ;;
3116 *)
3117 # OSF1 and SCO ODT 3.0 have their own names for install.
3118 # Don't use installbsd from OSF since it installs stuff as root
3119 # by default.
3120 for ac_prog in ginstall scoinst install; do
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3123 if test $ac_prog = install &&
3124 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125 # AIX install. It has an incompatible calling convention.
3126 :
3127 elif test $ac_prog = install &&
3128 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3129 # program-specific install script used by HP pwplus--don't use.
3130 :
3131 else
3132 rm -rf conftest.one conftest.two conftest.dir
3133 echo one > conftest.one
3134 echo two > conftest.two
3135 mkdir conftest.dir
3136 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3137 test -s conftest.one && test -s conftest.two &&
3138 test -s conftest.dir/conftest.one &&
3139 test -s conftest.dir/conftest.two
3140 then
3141 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3142 break 3
3143 fi
3144 fi
3145 fi
3146 done
3147 done
3148 ;;
3149 esac
3150
3151 done
3152 IFS=$as_save_IFS
3153
3154 rm -rf conftest.one conftest.two conftest.dir
3155 ;;
3156 esac
3157 fi
3158 if test ${ac_cv_path_install+y}; then
3159 INSTALL=$ac_cv_path_install
3160 else
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for INSTALL within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 INSTALL=$ac_install_sh
3166 fi
3167 fi
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3169 printf "%s\n" "$INSTALL" >&6; }
3170
3171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3172 # It thinks the first close brace ends the variable substitution.
3173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174
3175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176
3177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3180 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3181 if test ${am_cv_sleep_fractional_seconds+y}
3182 then :
3183 printf %s "(cached) " >&6
3184 else case e in #(
3185 e) if sleep 0.001 2>/dev/null
3186 then :
3187 am_cv_sleep_fractional_seconds=yes
3188 else case e in #(
3189 e) am_cv_sleep_fractional_seconds=no ;;
3190 esac
3191 fi
3192 ;;
3193 esac
3194 fi
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3196 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3197
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3199 printf %s "checking filesystem timestamp resolution... " >&6; }
3200 if test ${am_cv_filesystem_timestamp_resolution+y}
3201 then :
3202 printf %s "(cached) " >&6
3203 else case e in #(
3204 e) # Default to the worst case.
3205 am_cv_filesystem_timestamp_resolution=2
3206
3207 # Only try to go finer than 1 sec if sleep can do it.
3208 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3209 # - 1 sec is not much of a win compared to 2 sec, and
3210 # - it takes 2 seconds to perform the test whether 1 sec works.
3211 #
3212 # Instead, just use the default 2s on platforms that have 1s resolution,
3213 # accept the extra 1s delay when using $sleep in the Automake tests, in
3214 # exchange for not incurring the 2s delay for running the test for all
3215 # packages.
3216 #
3217 am_try_resolutions=
3218 if test "$am_cv_sleep_fractional_seconds" = yes; then
3219 # Even a millisecond often causes a bunch of false positives,
3220 # so just try a hundredth of a second. The time saved between .001 and
3221 # .01 is not terribly consequential.
3222 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3223 fi
3224
3225 # In order to catch current-generation FAT out, we must *modify* files
3226 # that already exist; the *creation* timestamp is finer. Use names
3227 # that make ls -t sort them differently when they have equal
3228 # timestamps than when they have distinct timestamps, keeping
3229 # in mind that ls -t prints the *newest* file first.
3230 rm -f conftest.ts?
3231 : > conftest.ts1
3232 : > conftest.ts2
3233 : > conftest.ts3
3234
3235 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3236 # clobber the current shell's arguments. (Outer-level square brackets
3237 # are removed by m4; they're present so that m4 does not expand
3238 # <dollar><star>; be careful, easy to get confused.)
3239 if (
3240 set X `ls -t conftest.ts[12]` &&
3241 {
3242 test "$*" != "X conftest.ts1 conftest.ts2" ||
3243 test "$*" != "X conftest.ts2 conftest.ts1";
3244 }
3245 ); then :; else
3246 # If neither matched, then we have a broken ls. This can happen
3247 # if, for instance, CONFIG_SHELL is bash and it inherits a
3248 # broken ls alias from the environment. This has actually
3249 # happened. Such a system could not be considered "sane".
3250 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3252 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3253 as_fn_error $? "ls -t produces unexpected output.
3254 Make sure there is not a broken ls alias in your environment.
3255 See 'config.log' for more details" "$LINENO" 5; }
3256 fi
3257
3258 for am_try_res in $am_try_resolutions; do
3259 # Any one fine-grained sleep might happen to cross the boundary
3260 # between two values of a coarser actual resolution, but if we do
3261 # two fine-grained sleeps in a row, at least one of them will fall
3262 # entirely within a coarse interval.
3263 echo alpha > conftest.ts1
3264 sleep $am_try_res
3265 echo beta > conftest.ts2
3266 sleep $am_try_res
3267 echo gamma > conftest.ts3
3268
3269 # We assume that 'ls -t' will make use of high-resolution
3270 # timestamps if the operating system supports them at all.
3271 if (set X `ls -t conftest.ts?` &&
3272 test "$2" = conftest.ts3 &&
3273 test "$3" = conftest.ts2 &&
3274 test "$4" = conftest.ts1); then
3275 #
3276 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3277 # because we don't need to test make.
3278 make_ok=true
3279 if test $am_try_res != 1; then
3280 # But if we've succeeded so far with a subsecond resolution, we
3281 # have one more thing to check: make. It can happen that
3282 # everything else supports the subsecond mtimes, but make doesn't;
3283 # notably on macOS, which ships make 3.81 from 2006 (the last one
3284 # released under GPLv2). https://bugs.gnu.org/68808
3285 #
3286 # We test $MAKE if it is defined in the environment, else "make".
3287 # It might get overridden later, but our hope is that in practice
3288 # it does not matter: it is the system "make" which is (by far)
3289 # the most likely to be broken, whereas if the user overrides it,
3290 # probably they did so with a better, or at least not worse, make.
3291 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3292 #
3293 # Create a Makefile (real tab character here):
3294 rm -f conftest.mk
3295 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3296 echo ' touch conftest.ts2' >>conftest.mk
3297 #
3298 # Now, running
3299 # touch conftest.ts1; touch conftest.ts2; make
3300 # should touch ts1 because ts2 is newer. This could happen by luck,
3301 # but most often, it will fail if make's support is insufficient. So
3302 # test for several consecutive successes.
3303 #
3304 # (We reuse conftest.ts[12] because we still want to modify existing
3305 # files, not create new ones, per above.)
3306 n=0
3307 make=${MAKE-make}
3308 until test $n -eq 3; do
3309 echo one > conftest.ts1
3310 sleep $am_try_res
3311 echo two > conftest.ts2 # ts2 should now be newer than ts1
3312 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3313 make_ok=false
3314 break # out of $n loop
3315 fi
3316 n=`expr $n + 1`
3317 done
3318 fi
3319 #
3320 if $make_ok; then
3321 # Everything we know to check worked out, so call this resolution good.
3322 am_cv_filesystem_timestamp_resolution=$am_try_res
3323 break # out of $am_try_res loop
3324 fi
3325 # Otherwise, we'll go on to check the next resolution.
3326 fi
3327 done
3328 rm -f conftest.ts?
3329 # (end _am_filesystem_timestamp_resolution)
3330 ;;
3331 esac
3332 fi
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3334 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3335
3336 # This check should not be cached, as it may vary across builds of
3337 # different projects.
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3339 printf %s "checking whether build environment is sane... " >&6; }
3340 # Reject unsafe characters in $srcdir or the absolute working directory
3341 # name. Accept space and tab only in the latter.
3342 am_lf='
3343 '
3344 case `pwd` in
3345 *[\\\"\#\$\&\'\`$am_lf]*)
3346 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3347 esac
3348 case $srcdir in
3349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3350 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3351 esac
3352
3353 # Do 'set' in a subshell so we don't clobber the current shell's
3354 # arguments. Must try -L first in case configure is actually a
3355 # symlink; some systems play weird games with the mod time of symlinks
3356 # (eg FreeBSD returns the mod time of the symlink's containing
3357 # directory).
3358 am_build_env_is_sane=no
3359 am_has_slept=no
3360 rm -f conftest.file
3361 for am_try in 1 2; do
3362 echo "timestamp, slept: $am_has_slept" > conftest.file
3363 if (
3364 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3365 if test "$*" = "X"; then
3366 # -L didn't work.
3367 set X `ls -t "$srcdir/configure" conftest.file`
3368 fi
3369 test "$2" = conftest.file
3370 ); then
3371 am_build_env_is_sane=yes
3372 break
3373 fi
3374 # Just in case.
3375 sleep "$am_cv_filesystem_timestamp_resolution"
3376 am_has_slept=yes
3377 done
3378
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3380 printf "%s\n" "$am_build_env_is_sane" >&6; }
3381 if test "$am_build_env_is_sane" = no; then
3382 as_fn_error $? "newly created file is older than distributed files!
3383 Check your system clock" "$LINENO" 5
3384 fi
3385
3386 # If we didn't sleep, we still need to ensure time stamps of config.status and
3387 # generated files are strictly newer.
3388 am_sleep_pid=
3389 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3390 then :
3391
3392 else case e in #(
3393 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3394 am_sleep_pid=$!
3395 ;;
3396 esac
3397 fi
3398
3399 rm -f conftest.file
3400
3401 test "$program_prefix" != NONE &&
3402 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3403 # Use a double $ so make ignores it.
3404 test "$program_suffix" != NONE &&
3405 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3406 # Double any \ or $.
3407 # By default was 's,x,x', remove it if useless.
3408 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3409 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3410
3411
3412 # Expand $ac_aux_dir to an absolute path.
3413 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3414
3415
3416 if test x"${MISSING+set}" != xset; then
3417 MISSING="\${SHELL} '$am_aux_dir/missing'"
3418 fi
3419 # Use eval to expand $SHELL
3420 if eval "$MISSING --is-lightweight"; then
3421 am_missing_run="$MISSING "
3422 else
3423 am_missing_run=
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3425 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3426 fi
3427
3428 if test x"${install_sh+set}" != xset; then
3429 case $am_aux_dir in
3430 *\ * | *\ *)
3431 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3432 *)
3433 install_sh="\${SHELL} $am_aux_dir/install-sh"
3434 esac
3435 fi
3436
3437 # Installed binaries are usually stripped using 'strip' when the user
3438 # run "make install-strip". However 'strip' might not be the right
3439 # tool to use in cross-compilation environments, therefore Automake
3440 # will honor the 'STRIP' environment variable to overrule this program.
3441 if test "$cross_compiling" != no; then
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}strip; ac_word=$2
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 printf %s "checking for $ac_word... " >&6; }
3447 if test ${ac_cv_prog_STRIP+y}
3448 then :
3449 printf %s "(cached) " >&6
3450 else case e in #(
3451 e) if test -n "$STRIP"; then
3452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457 IFS=$as_save_IFS
3458 case $as_dir in #(((
3459 '') as_dir=./ ;;
3460 */) ;;
3461 *) as_dir=$as_dir/ ;;
3462 esac
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi ;;
3474 esac
3475 fi
3476 STRIP=$ac_cv_prog_STRIP
3477 if test -n "$STRIP"; then
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3479 printf "%s\n" "$STRIP" >&6; }
3480 else
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 printf "%s\n" "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$ac_cv_prog_STRIP"; then
3488 ac_ct_STRIP=$STRIP
3489 # Extract the first word of "strip", so it can be a program name with args.
3490 set dummy strip; ac_word=$2
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 printf %s "checking for $ac_word... " >&6; }
3493 if test ${ac_cv_prog_ac_ct_STRIP+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else case e in #(
3497 e) if test -n "$ac_ct_STRIP"; then
3498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 case $as_dir in #(((
3505 '') as_dir=./ ;;
3506 */) ;;
3507 *) as_dir=$as_dir/ ;;
3508 esac
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_STRIP="strip"
3512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi ;;
3520 esac
3521 fi
3522 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3523 if test -n "$ac_ct_STRIP"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3525 printf "%s\n" "$ac_ct_STRIP" >&6; }
3526 else
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3529 fi
3530
3531 if test "x$ac_ct_STRIP" = x; then
3532 STRIP=":"
3533 else
3534 case $cross_compiling:$ac_tool_warned in
3535 yes:)
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned=yes ;;
3539 esac
3540 STRIP=$ac_ct_STRIP
3541 fi
3542 else
3543 STRIP="$ac_cv_prog_STRIP"
3544 fi
3545
3546 fi
3547 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3548
3549
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3551 printf %s "checking for a race-free mkdir -p... " >&6; }
3552 if test -z "$MKDIR_P"; then
3553 if test ${ac_cv_path_mkdir+y}
3554 then :
3555 printf %s "(cached) " >&6
3556 else case e in #(
3557 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3559 do
3560 IFS=$as_save_IFS
3561 case $as_dir in #(((
3562 '') as_dir=./ ;;
3563 */) ;;
3564 *) as_dir=$as_dir/ ;;
3565 esac
3566 for ac_prog in mkdir gmkdir; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3569 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3570 'mkdir ('*'coreutils) '* | \
3571 *'BusyBox '* | \
3572 'mkdir (fileutils) '4.1*)
3573 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3574 break 3;;
3575 esac
3576 done
3577 done
3578 done
3579 IFS=$as_save_IFS
3580 ;;
3581 esac
3582 fi
3583
3584 test -d ./--version && rmdir ./--version
3585 if test ${ac_cv_path_mkdir+y}; then
3586 MKDIR_P="$ac_cv_path_mkdir -p"
3587 else
3588 # As a last resort, use plain mkdir -p,
3589 # in the hope it doesn't have the bugs of ancient mkdir.
3590 MKDIR_P='mkdir -p'
3591 fi
3592 fi
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3594 printf "%s\n" "$MKDIR_P" >&6; }
3595
3596 for ac_prog in gawk mawk nawk awk
3597 do
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 printf %s "checking for $ac_word... " >&6; }
3602 if test ${ac_cv_prog_AWK+y}
3603 then :
3604 printf %s "(cached) " >&6
3605 else case e in #(
3606 e) if test -n "$AWK"; then
3607 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 case $as_dir in #(((
3614 '') as_dir=./ ;;
3615 */) ;;
3616 *) as_dir=$as_dir/ ;;
3617 esac
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_AWK="$ac_prog"
3621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624 done
3625 done
3626 IFS=$as_save_IFS
3627
3628 fi ;;
3629 esac
3630 fi
3631 AWK=$ac_cv_prog_AWK
3632 if test -n "$AWK"; then
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3634 printf "%s\n" "$AWK" >&6; }
3635 else
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3638 fi
3639
3640
3641 test -n "$AWK" && break
3642 done
3643
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3645 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3646 set x ${MAKE-make}
3647 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3648 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3649 then :
3650 printf %s "(cached) " >&6
3651 else case e in #(
3652 e) cat >conftest.make <<\_ACEOF
3653 SHELL = /bin/sh
3654 all:
3655 @echo '@@@%%%=$(MAKE)=@@@%%%'
3656 _ACEOF
3657 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3659 *@@@%%%=?*=@@@%%%*)
3660 eval ac_cv_prog_make_${ac_make}_set=yes;;
3661 *)
3662 eval ac_cv_prog_make_${ac_make}_set=no;;
3663 esac
3664 rm -f conftest.make ;;
3665 esac
3666 fi
3667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669 printf "%s\n" "yes" >&6; }
3670 SET_MAKE=
3671 else
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 printf "%s\n" "no" >&6; }
3674 SET_MAKE="MAKE=${MAKE-make}"
3675 fi
3676
3677 rm -rf .tst 2>/dev/null
3678 mkdir .tst 2>/dev/null
3679 if test -d .tst; then
3680 am__leading_dot=.
3681 else
3682 am__leading_dot=_
3683 fi
3684 rmdir .tst 2>/dev/null
3685
3686 AM_DEFAULT_VERBOSITY=1
3687 # Check whether --enable-silent-rules was given.
3688 if test ${enable_silent_rules+y}
3689 then :
3690 enableval=$enable_silent_rules;
3691 fi
3692
3693 am_make=${MAKE-make}
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3695 printf %s "checking whether $am_make supports nested variables... " >&6; }
3696 if test ${am_cv_make_support_nested_variables+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else case e in #(
3700 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3701 BAR0=false
3702 BAR1=true
3703 V=1
3704 am__doit:
3705 @$(TRUE)
3706 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3707 am_cv_make_support_nested_variables=yes
3708 else
3709 am_cv_make_support_nested_variables=no
3710 fi ;;
3711 esac
3712 fi
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3715 AM_BACKSLASH='\'
3716
3717 am__rm_f_notfound=
3718 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3719 then :
3720
3721 else case e in #(
3722 e) am__rm_f_notfound='""' ;;
3723 esac
3724 fi
3725
3726
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3728 printf %s "checking xargs -n works... " >&6; }
3729 if test ${am_cv_xargs_n_works+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else case e in #(
3733 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3734 3"
3735 then :
3736 am_cv_xargs_n_works=yes
3737 else case e in #(
3738 e) am_cv_xargs_n_works=no ;;
3739 esac
3740 fi ;;
3741 esac
3742 fi
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3744 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3745 if test "$am_cv_xargs_n_works" = yes
3746 then :
3747 am__xargs_n='xargs -n'
3748 else case e in #(
3749 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3750 ;;
3751 esac
3752 fi
3753
3754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3756 # is not polluted with repeated "-I."
3757 am__isrc=' -I$(srcdir)'
3758 # test to see if srcdir already configured
3759 if test -f $srcdir/config.status; then
3760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3761 fi
3762 fi
3763
3764 # test whether we have cygpath
3765 if test -z "$CYGPATH_W"; then
3766 if (cygpath --version) >/dev/null 2>/dev/null; then
3767 CYGPATH_W='cygpath -w'
3768 else
3769 CYGPATH_W=echo
3770 fi
3771 fi
3772
3773
3774 # Define the identity of the package.
3775 PACKAGE='libcdr'
3776 VERSION='0.1.9'
3777
3778
3779 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3780
3781
3782 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3783
3784 # Some tools Automake needs.
3785
3786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3787
3788
3789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3790
3791
3792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3793
3794
3795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3796
3797
3798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3799
3800 # For better backward compatibility. To be removed once Automake 1.9.x
3801 # dies out for good. For more background, see:
3802 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3803 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3804 mkdir_p='$(MKDIR_P)'
3805
3806 # We need awk for the "check" target (and possibly the TAP driver). The
3807 # system "awk" is bad on some platforms.
3808 # Always define AMTAR for backward compatibility. Yes, it's still used
3809 # in the wild :-( We should find a proper way to deprecate it ...
3810 AMTAR='$${TAR-tar}'
3811
3812
3813 # We'll loop over all known methods to create a tar archive until one works.
3814 _am_tools='gnutar pax cpio none'
3815
3816 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3817
3818
3819
3820
3821
3822 # Variables for tags utilities; see am/tags.am
3823 if test -z "$CTAGS"; then
3824 CTAGS=ctags
3825 fi
3826
3827 if test -z "$ETAGS"; then
3828 ETAGS=etags
3829 fi
3830
3831 if test -z "$CSCOPE"; then
3832 CSCOPE=cscope
3833 fi
3834
3835
3836
3837
3838
3839
3840
3841
3842 AM_DEFAULT_VERBOSITY=0
3843 ac_ext=cpp
3844 ac_cpp='$CXXCPP $CPPFLAGS'
3845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3848
3849
3850 # ===========================
3851 # Find required base packages
3852 # ===========================
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862 DEPDIR="${am__leading_dot}deps"
3863
3864 ac_config_commands="$ac_config_commands depfiles"
3865
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3867 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3868 cat > confinc.mk << 'END'
3869 am__doit:
3870 @echo this is the am__doit target >confinc.out
3871 .PHONY: am__doit
3872 END
3873 am__include="#"
3874 am__quote=
3875 # BSD make does it like this.
3876 echo '.include "confinc.mk" # ignored' > confmf.BSD
3877 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3878 echo 'include confinc.mk # ignored' > confmf.GNU
3879 _am_result=no
3880 for s in GNU BSD; do
3881 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3882 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }
3886 case $?:`cat confinc.out 2>/dev/null` in #(
3887 '0:this is the am__doit target') :
3888 case $s in #(
3889 BSD) :
3890 am__include='.include' am__quote='"' ;; #(
3891 *) :
3892 am__include='include' am__quote='' ;;
3893 esac ;; #(
3894 *) :
3895 ;;
3896 esac
3897 if test "$am__include" != "#"; then
3898 _am_result="yes ($s style)"
3899 break
3900 fi
3901 done
3902 rm -f confinc.* confmf.*
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3904 printf "%s\n" "${_am_result}" >&6; }
3905
3906 # Check whether --enable-dependency-tracking was given.
3907 if test ${enable_dependency_tracking+y}
3908 then :
3909 enableval=$enable_dependency_tracking;
3910 fi
3911
3912 if test "x$enable_dependency_tracking" != xno; then
3913 am_depcomp="$ac_aux_dir/depcomp"
3914 AMDEPBACKSLASH='\'
3915 am__nodep='_no'
3916 fi
3917 if test "x$enable_dependency_tracking" != xno; then
3918 AMDEP_TRUE=
3919 AMDEP_FALSE='#'
3920 else
3921 AMDEP_TRUE='#'
3922 AMDEP_FALSE=
3923 fi
3924
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else case e in #(
3940 e) if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi ;;
3963 esac
3964 fi
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 printf "%s\n" "$CC" >&6; }
3969 else
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 fi
3973
3974
3975 fi
3976 if test -z "$ac_cv_prog_CC"; then
3977 ac_ct_CC=$CC
3978 # Extract the first word of "gcc", so it can be a program name with args.
3979 set dummy gcc; ac_word=$2
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 printf %s "checking for $ac_word... " >&6; }
3982 if test ${ac_cv_prog_ac_ct_CC+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else case e in #(
3986 e) if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_ac_ct_CC="gcc"
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi ;;
4009 esac
4010 fi
4011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4012 if test -n "$ac_ct_CC"; then
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4014 printf "%s\n" "$ac_ct_CC" >&6; }
4015 else
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 printf "%s\n" "no" >&6; }
4018 fi
4019
4020 if test "x$ac_ct_CC" = x; then
4021 CC=""
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029 CC=$ac_ct_CC
4030 fi
4031 else
4032 CC="$ac_cv_prog_CC"
4033 fi
4034
4035 if test -z "$CC"; then
4036 if test -n "$ac_tool_prefix"; then
4037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4038 set dummy ${ac_tool_prefix}cc; ac_word=$2
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 printf %s "checking for $ac_word... " >&6; }
4041 if test ${ac_cv_prog_CC+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else case e in #(
4045 e) if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 case $as_dir in #(((
4053 '') as_dir=./ ;;
4054 */) ;;
4055 *) as_dir=$as_dir/ ;;
4056 esac
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_CC="${ac_tool_prefix}cc"
4060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 fi ;;
4068 esac
4069 fi
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 printf "%s\n" "$CC" >&6; }
4074 else
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 printf "%s\n" "no" >&6; }
4077 fi
4078
4079
4080 fi
4081 fi
4082 if test -z "$CC"; then
4083 # Extract the first word of "cc", so it can be a program name with args.
4084 set dummy cc; ac_word=$2
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 printf %s "checking for $ac_word... " >&6; }
4087 if test ${ac_cv_prog_CC+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 ac_prog_rejected=no
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 case $as_dir in #(((
4100 '') as_dir=./ ;;
4101 */) ;;
4102 *) as_dir=$as_dir/ ;;
4103 esac
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4106 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4107 ac_prog_rejected=yes
4108 continue
4109 fi
4110 ac_cv_prog_CC="cc"
4111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4112 break 2
4113 fi
4114 done
4115 done
4116 IFS=$as_save_IFS
4117
4118 if test $ac_prog_rejected = yes; then
4119 # We found a bogon in the path, so make sure we never use it.
4120 set dummy $ac_cv_prog_CC
4121 shift
4122 if test $# != 0; then
4123 # We chose a different compiler from the bogus one.
4124 # However, it has the same basename, so the bogon will be chosen
4125 # first if we set CC to just the basename; use the full file name.
4126 shift
4127 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4128 fi
4129 fi
4130 fi ;;
4131 esac
4132 fi
4133 CC=$ac_cv_prog_CC
4134 if test -n "$CC"; then
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136 printf "%s\n" "$CC" >&6; }
4137 else
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 printf "%s\n" "no" >&6; }
4140 fi
4141
4142
4143 fi
4144 if test -z "$CC"; then
4145 if test -n "$ac_tool_prefix"; then
4146 for ac_prog in cl.exe
4147 do
4148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 printf %s "checking for $ac_word... " >&6; }
4152 if test ${ac_cv_prog_CC+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else case e in #(
4156 e) if test -n "$CC"; then
4157 ac_cv_prog_CC="$CC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 case $as_dir in #(((
4164 '') as_dir=./ ;;
4165 */) ;;
4166 *) as_dir=$as_dir/ ;;
4167 esac
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174 done
4175 done
4176 IFS=$as_save_IFS
4177
4178 fi ;;
4179 esac
4180 fi
4181 CC=$ac_cv_prog_CC
4182 if test -n "$CC"; then
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184 printf "%s\n" "$CC" >&6; }
4185 else
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 printf "%s\n" "no" >&6; }
4188 fi
4189
4190
4191 test -n "$CC" && break
4192 done
4193 fi
4194 if test -z "$CC"; then
4195 ac_ct_CC=$CC
4196 for ac_prog in cl.exe
4197 do
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 printf %s "checking for $ac_word... " >&6; }
4202 if test ${ac_cv_prog_ac_ct_CC+y}
4203 then :
4204 printf %s "(cached) " >&6
4205 else case e in #(
4206 e) if test -n "$ac_ct_CC"; then
4207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 case $as_dir in #(((
4214 '') as_dir=./ ;;
4215 */) ;;
4216 *) as_dir=$as_dir/ ;;
4217 esac
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_CC="$ac_prog"
4221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi ;;
4229 esac
4230 fi
4231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232 if test -n "$ac_ct_CC"; then
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234 printf "%s\n" "$ac_ct_CC" >&6; }
4235 else
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 printf "%s\n" "no" >&6; }
4238 fi
4239
4240
4241 test -n "$ac_ct_CC" && break
4242 done
4243
4244 if test "x$ac_ct_CC" = x; then
4245 CC=""
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248 yes:)
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253 CC=$ac_ct_CC
4254 fi
4255 fi
4256
4257 fi
4258 if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}clang; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else case e in #(
4268 e) if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_CC="${ac_tool_prefix}clang"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi ;;
4291 esac
4292 fi
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 printf "%s\n" "$CC" >&6; }
4297 else
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 printf "%s\n" "no" >&6; }
4300 fi
4301
4302
4303 fi
4304 if test -z "$ac_cv_prog_CC"; then
4305 ac_ct_CC=$CC
4306 # Extract the first word of "clang", so it can be a program name with args.
4307 set dummy clang; ac_word=$2
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 printf %s "checking for $ac_word... " >&6; }
4310 if test ${ac_cv_prog_ac_ct_CC+y}
4311 then :
4312 printf %s "(cached) " >&6
4313 else case e in #(
4314 e) if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 case $as_dir in #(((
4322 '') as_dir=./ ;;
4323 */) ;;
4324 *) as_dir=$as_dir/ ;;
4325 esac
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_ac_ct_CC="clang"
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 fi ;;
4337 esac
4338 fi
4339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340 if test -n "$ac_ct_CC"; then
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4342 printf "%s\n" "$ac_ct_CC" >&6; }
4343 else
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 printf "%s\n" "no" >&6; }
4346 fi
4347
4348 if test "x$ac_ct_CC" = x; then
4349 CC=""
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352 yes:)
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4356 esac
4357 CC=$ac_ct_CC
4358 fi
4359 else
4360 CC="$ac_cv_prog_CC"
4361 fi
4362
4363 fi
4364
4365
4366 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4367 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4368 as_fn_error $? "no acceptable C compiler found in \$PATH
4369 See 'config.log' for more details" "$LINENO" 5; }
4370
4371 # Provide some information about the compiler.
4372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4373 set X $ac_compile
4374 ac_compiler=$2
4375 for ac_option in --version -v -V -qversion -version; do
4376 { { ac_try="$ac_compiler $ac_option >&5"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 printf "%s\n" "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4384 ac_status=$?
4385 if test -s conftest.err; then
4386 sed '10a\
4387 ... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
4390 fi
4391 rm -f conftest.er1 conftest.err
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 done
4395
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main (void)
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 ac_clean_files_save=$ac_clean_files
4408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4409 # Try to create an executable without -o first, disregard a.out.
4410 # It will help us diagnose broken compilers, and finding out an intuition
4411 # of exeext.
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4413 printf %s "checking whether the C compiler works... " >&6; }
4414 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4415
4416 # The possible output files:
4417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4418
4419 ac_rmfiles=
4420 for ac_file in $ac_files
4421 do
4422 case $ac_file in
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4425 esac
4426 done
4427 rm -f $ac_rmfiles
4428
4429 if { { ac_try="$ac_link_default"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 printf "%s\n" "$ac_try_echo"; } >&5
4436 (eval "$ac_link_default") 2>&5
4437 ac_status=$?
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440 then :
4441 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4442 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4443 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4444 # so that the user can short-circuit this test for compilers unknown to
4445 # Autoconf.
4446 for ac_file in $ac_files ''
4447 do
4448 test -f "$ac_file" || continue
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4451 ;;
4452 [ab].out )
4453 # We found the default executable, but exeext='' is most
4454 # certainly right.
4455 break;;
4456 *.* )
4457 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4458 then :; else
4459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4460 fi
4461 # We set ac_cv_exeext here because the later test for it is not
4462 # safe: cross compilers may not add the suffix if given an '-o'
4463 # argument, so we may need to know it at that point already.
4464 # Even if this section looks crufty: it has the advantage of
4465 # actually working.
4466 break;;
4467 * )
4468 break;;
4469 esac
4470 done
4471 test "$ac_cv_exeext" = no && ac_cv_exeext=
4472
4473 else case e in #(
4474 e) ac_file='' ;;
4475 esac
4476 fi
4477 if test -z "$ac_file"
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 printf "%s\n" "no" >&6; }
4481 printf "%s\n" "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4485 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4486 as_fn_error 77 "C compiler cannot create executables
4487 See 'config.log' for more details" "$LINENO" 5; }
4488 else case e in #(
4489 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 printf "%s\n" "yes" >&6; } ;;
4491 esac
4492 fi
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4494 printf %s "checking for C compiler default output file name... " >&6; }
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4496 printf "%s\n" "$ac_file" >&6; }
4497 ac_exeext=$ac_cv_exeext
4498
4499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4500 ac_clean_files=$ac_clean_files_save
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502 printf %s "checking for suffix of executables... " >&6; }
4503 if { { ac_try="$ac_link"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 printf "%s\n" "$ac_try_echo"; } >&5
4510 (eval "$ac_link") 2>&5
4511 ac_status=$?
4512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 then :
4515 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4516 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4517 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4518 # 'rm'.
4519 for ac_file in conftest.exe conftest conftest.*; do
4520 test -f "$ac_file" || continue
4521 case $ac_file in
4522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 break;;
4525 * ) break;;
4526 esac
4527 done
4528 else case e in #(
4529 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4530 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4532 See 'config.log' for more details" "$LINENO" 5; } ;;
4533 esac
4534 fi
4535 rm -f conftest conftest$ac_cv_exeext
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4537 printf "%s\n" "$ac_cv_exeext" >&6; }
4538
4539 rm -f conftest.$ac_ext
4540 EXEEXT=$ac_cv_exeext
4541 ac_exeext=$EXEEXT
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdio.h>
4545 int
4546 main (void)
4547 {
4548 FILE *f = fopen ("conftest.out", "w");
4549 if (!f)
4550 return 1;
4551 return ferror (f) || fclose (f) != 0;
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 ac_clean_files="$ac_clean_files conftest.out"
4558 # Check that the compiler produces executables we can run. If not, either
4559 # the compiler is broken, or we cross compile.
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561 printf %s "checking whether we are cross compiling... " >&6; }
4562 if test "$cross_compiling" != yes; then
4563 { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 printf "%s\n" "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }
4574 if { ac_try='./conftest$ac_cv_exeext'
4575 { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 printf "%s\n" "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; }; then
4585 cross_compiling=no
4586 else
4587 if test "$cross_compiling" = maybe; then
4588 cross_compiling=yes
4589 else
4590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4591 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4592 as_fn_error 77 "cannot run C compiled programs.
4593 If you meant to cross compile, use '--host'.
4594 See 'config.log' for more details" "$LINENO" 5; }
4595 fi
4596 fi
4597 fi
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599 printf "%s\n" "$cross_compiling" >&6; }
4600
4601 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4602 conftest.o conftest.obj conftest.out
4603 ac_clean_files=$ac_clean_files_save
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4605 printf %s "checking for suffix of object files... " >&6; }
4606 if test ${ac_cv_objext+y}
4607 then :
4608 printf %s "(cached) " >&6
4609 else case e in #(
4610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612
4613 int
4614 main (void)
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.o conftest.obj
4622 if { { ac_try="$ac_compile"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 printf "%s\n" "$ac_try_echo"; } >&5
4629 (eval "$ac_compile") 2>&5
4630 ac_status=$?
4631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 then :
4634 for ac_file in conftest.o conftest.obj conftest.*; do
4635 test -f "$ac_file" || continue;
4636 case $ac_file in
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4639 break;;
4640 esac
4641 done
4642 else case e in #(
4643 e) printf "%s\n" "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4647 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot compute suffix of object files: cannot compile
4649 See 'config.log' for more details" "$LINENO" 5; } ;;
4650 esac
4651 fi
4652 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4653 esac
4654 fi
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4656 printf "%s\n" "$ac_cv_objext" >&6; }
4657 OBJEXT=$ac_cv_objext
4658 ac_objext=$OBJEXT
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4660 printf %s "checking whether the compiler supports GNU C... " >&6; }
4661 if test ${ac_cv_c_compiler_gnu+y}
4662 then :
4663 printf %s "(cached) " >&6
4664 else case e in #(
4665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 int
4669 main (void)
4670 {
4671 #ifndef __GNUC__
4672 choke me
4673 #endif
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"
4680 then :
4681 ac_compiler_gnu=yes
4682 else case e in #(
4683 e) ac_compiler_gnu=no ;;
4684 esac
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4687 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4688 ;;
4689 esac
4690 fi
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4692 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695 if test $ac_compiler_gnu = yes; then
4696 GCC=yes
4697 else
4698 GCC=
4699 fi
4700 ac_test_CFLAGS=${CFLAGS+y}
4701 ac_save_CFLAGS=$CFLAGS
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4703 printf %s "checking whether $CC accepts -g... " >&6; }
4704 if test ${ac_cv_prog_cc_g+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main (void)
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"
4724 then :
4725 ac_cv_prog_cc_g=yes
4726 else case e in #(
4727 e) CFLAGS=""
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"
4740 then :
4741
4742 else case e in #(
4743 e) ac_c_werror_flag=$ac_save_c_werror_flag
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main (void)
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"
4757 then :
4758 ac_cv_prog_cc_g=yes
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4761 esac
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4764 esac
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4767 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4768 esac
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4771 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4772 if test $ac_test_CFLAGS; then
4773 CFLAGS=$ac_save_CFLAGS
4774 elif test $ac_cv_prog_cc_g = yes; then
4775 if test "$GCC" = yes; then
4776 CFLAGS="-g -O2"
4777 else
4778 CFLAGS="-g"
4779 fi
4780 else
4781 if test "$GCC" = yes; then
4782 CFLAGS="-O2"
4783 else
4784 CFLAGS=
4785 fi
4786 fi
4787 ac_prog_cc_stdc=no
4788 if test x$ac_prog_cc_stdc = xno
4789 then :
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4791 printf %s "checking for $CC option to enable C11 features... " >&6; }
4792 if test ${ac_cv_prog_cc_c11+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else case e in #(
4796 e) ac_cv_prog_cc_c11=no
4797 ac_save_CC=$CC
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 $ac_c_conftest_c11_program
4801 _ACEOF
4802 for ac_arg in '' -std=gnu11
4803 do
4804 CC="$ac_save_CC $ac_arg"
4805 if ac_fn_c_try_compile "$LINENO"
4806 then :
4807 ac_cv_prog_cc_c11=$ac_arg
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.beam
4810 test "x$ac_cv_prog_cc_c11" != "xno" && break
4811 done
4812 rm -f conftest.$ac_ext
4813 CC=$ac_save_CC ;;
4814 esac
4815 fi
4816
4817 if test "x$ac_cv_prog_cc_c11" = xno
4818 then :
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4820 printf "%s\n" "unsupported" >&6; }
4821 else case e in #(
4822 e) if test "x$ac_cv_prog_cc_c11" = x
4823 then :
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4825 printf "%s\n" "none needed" >&6; }
4826 else case e in #(
4827 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4828 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4829 CC="$CC $ac_cv_prog_cc_c11" ;;
4830 esac
4831 fi
4832 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4833 ac_prog_cc_stdc=c11 ;;
4834 esac
4835 fi
4836 fi
4837 if test x$ac_prog_cc_stdc = xno
4838 then :
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4840 printf %s "checking for $CC option to enable C99 features... " >&6; }
4841 if test ${ac_cv_prog_cc_c99+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else case e in #(
4845 e) ac_cv_prog_cc_c99=no
4846 ac_save_CC=$CC
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 $ac_c_conftest_c99_program
4850 _ACEOF
4851 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4852 do
4853 CC="$ac_save_CC $ac_arg"
4854 if ac_fn_c_try_compile "$LINENO"
4855 then :
4856 ac_cv_prog_cc_c99=$ac_arg
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.beam
4859 test "x$ac_cv_prog_cc_c99" != "xno" && break
4860 done
4861 rm -f conftest.$ac_ext
4862 CC=$ac_save_CC ;;
4863 esac
4864 fi
4865
4866 if test "x$ac_cv_prog_cc_c99" = xno
4867 then :
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4869 printf "%s\n" "unsupported" >&6; }
4870 else case e in #(
4871 e) if test "x$ac_cv_prog_cc_c99" = x
4872 then :
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4874 printf "%s\n" "none needed" >&6; }
4875 else case e in #(
4876 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4877 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4878 CC="$CC $ac_cv_prog_cc_c99" ;;
4879 esac
4880 fi
4881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4882 ac_prog_cc_stdc=c99 ;;
4883 esac
4884 fi
4885 fi
4886 if test x$ac_prog_cc_stdc = xno
4887 then :
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4889 printf %s "checking for $CC option to enable C89 features... " >&6; }
4890 if test ${ac_cv_prog_cc_c89+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else case e in #(
4894 e) ac_cv_prog_cc_c89=no
4895 ac_save_CC=$CC
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 $ac_c_conftest_c89_program
4899 _ACEOF
4900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4901 do
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905 ac_cv_prog_cc_c89=$ac_arg
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam
4908 test "x$ac_cv_prog_cc_c89" != "xno" && break
4909 done
4910 rm -f conftest.$ac_ext
4911 CC=$ac_save_CC ;;
4912 esac
4913 fi
4914
4915 if test "x$ac_cv_prog_cc_c89" = xno
4916 then :
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918 printf "%s\n" "unsupported" >&6; }
4919 else case e in #(
4920 e) if test "x$ac_cv_prog_cc_c89" = x
4921 then :
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4923 printf "%s\n" "none needed" >&6; }
4924 else case e in #(
4925 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4926 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4927 CC="$CC $ac_cv_prog_cc_c89" ;;
4928 esac
4929 fi
4930 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4931 ac_prog_cc_stdc=c89 ;;
4932 esac
4933 fi
4934 fi
4935
4936 ac_ext=c
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941
4942
4943 ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4949 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4950 if test ${am_cv_prog_cc_c_o+y}
4951 then :
4952 printf %s "(cached) " >&6
4953 else case e in #(
4954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956
4957 int
4958 main (void)
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 # Make sure it works both with $CC and with simple cc.
4966 # Following AC_PROG_CC_C_O, we do the test twice because some
4967 # compilers refuse to overwrite an existing .o file with -o,
4968 # though they will create one.
4969 am_cv_prog_cc_c_o=yes
4970 for am_i in 1 2; do
4971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } \
4976 && test -f conftest2.$ac_objext; then
4977 : OK
4978 else
4979 am_cv_prog_cc_c_o=no
4980 break
4981 fi
4982 done
4983 rm -f core conftest*
4984 unset am_i ;;
4985 esac
4986 fi
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4988 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4989 if test "$am_cv_prog_cc_c_o" != yes; then
4990 # Losing compiler, so override with the script.
4991 # FIXME: It is wrong to rewrite CC.
4992 # But if we don't then we get into trouble of one sort or another.
4993 # A longer-term fix would be to have automake use am__CC in this case,
4994 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4995 CC="$am_aux_dir/compile $CC"
4996 fi
4997 ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002
5003
5004 depcc="$CC" am_compiler_list=
5005
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5007 printf %s "checking dependency style of $depcc... " >&6; }
5008 if test ${am_cv_CC_dependencies_compiler_type+y}
5009 then :
5010 printf %s "(cached) " >&6
5011 else case e in #(
5012 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5013 # We make a subdir and do the tests there. Otherwise we can end up
5014 # making bogus files that we don't know about and never remove. For
5015 # instance it was reported that on HP-UX the gcc test will end up
5016 # making a dummy file named 'D' -- because '-MD' means "put the output
5017 # in D".
5018 rm -rf conftest.dir
5019 mkdir conftest.dir
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5023 cd conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5029 # directory.
5030 mkdir sub
5031
5032 am_cv_CC_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035 fi
5036 am__universal=false
5037 case " $depcc " in #(
5038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5039 esac
5040
5041 for depmode in $am_compiler_list; do
5042 # Setup a source with many dependencies, because some compilers
5043 # like to wrap large dependency lists on column 80 (with \), and
5044 # we should not choose a depcomp mode which is confused by this.
5045 #
5046 # We need to recreate these files for each test, as the compiler may
5047 # overwrite some of them when testing with obscure command lines.
5048 # This happens at least with the AIX C compiler.
5049 : > sub/conftest.c
5050 for i in 1 2 3 4 5 6; do
5051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5052 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5053 # Solaris 10 /bin/sh.
5054 echo '/* dummy */' > sub/conftst$i.h
5055 done
5056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5057
5058 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5059 # mode. It turns out that the SunPro C++ compiler does not properly
5060 # handle '-M -o', and we need to detect this. Also, some Intel
5061 # versions had trouble with output in subdirs.
5062 am__obj=sub/conftest.${OBJEXT-o}
5063 am__minus_obj="-o $am__obj"
5064 case $depmode in
5065 gcc)
5066 # This depmode causes a compiler race in universal mode.
5067 test "$am__universal" = false || continue
5068 ;;
5069 nosideeffect)
5070 # After this tag, mechanisms are not by side-effect, so they'll
5071 # only be used when explicitly requested.
5072 if test "x$enable_dependency_tracking" = xyes; then
5073 continue
5074 else
5075 break
5076 fi
5077 ;;
5078 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5079 # This compiler won't grok '-c -o', but also, the minuso test has
5080 # not run yet. These depmodes are late enough in the game, and
5081 # so weak that their functioning should not be impacted.
5082 am__obj=conftest.${OBJEXT-o}
5083 am__minus_obj=
5084 ;;
5085 none) break ;;
5086 esac
5087 if depmode=$depmode \
5088 source=sub/conftest.c object=$am__obj \
5089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5091 >/dev/null 2>conftest.err &&
5092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5096 # icc doesn't choke on unknown options, it will just issue warnings
5097 # or remarks (even with -Werror). So we grep stderr for any message
5098 # that says an option was ignored or not supported.
5099 # When given -MP, icc 7.0 and 7.1 complain thus:
5100 # icc: Command line warning: ignoring option '-M'; no argument required
5101 # The diagnosis changed in icc 8.0:
5102 # icc: Command line remark: option '-MP' not supported
5103 if (grep 'ignoring option' conftest.err ||
5104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5105 am_cv_CC_dependencies_compiler_type=$depmode
5106 break
5107 fi
5108 fi
5109 done
5110
5111 cd ..
5112 rm -rf conftest.dir
5113 else
5114 am_cv_CC_dependencies_compiler_type=none
5115 fi
5116 ;;
5117 esac
5118 fi
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123 if
5124 test "x$enable_dependency_tracking" != xno \
5125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5126 am__fastdepCC_TRUE=
5127 am__fastdepCC_FALSE='#'
5128 else
5129 am__fastdepCC_TRUE='#'
5130 am__fastdepCC_FALSE=
5131 fi
5132
5133
5134
5135
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in ar lib "link -lib"
5138 do
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 printf %s "checking for $ac_word... " >&6; }
5143 if test ${ac_cv_prog_AR+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else case e in #(
5147 e) if test -n "$AR"; then
5148 ac_cv_prog_AR="$AR" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 case $as_dir in #(((
5155 '') as_dir=./ ;;
5156 */) ;;
5157 *) as_dir=$as_dir/ ;;
5158 esac
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi ;;
5170 esac
5171 fi
5172 AR=$ac_cv_prog_AR
5173 if test -n "$AR"; then
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5175 printf "%s\n" "$AR" >&6; }
5176 else
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 printf "%s\n" "no" >&6; }
5179 fi
5180
5181
5182 test -n "$AR" && break
5183 done
5184 fi
5185 if test -z "$AR"; then
5186 ac_ct_AR=$AR
5187 for ac_prog in ar lib "link -lib"
5188 do
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 printf %s "checking for $ac_word... " >&6; }
5193 if test ${ac_cv_prog_ac_ct_AR+y}
5194 then :
5195 printf %s "(cached) " >&6
5196 else case e in #(
5197 e) if test -n "$ac_ct_AR"; then
5198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 case $as_dir in #(((
5205 '') as_dir=./ ;;
5206 */) ;;
5207 *) as_dir=$as_dir/ ;;
5208 esac
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_AR="$ac_prog"
5212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi ;;
5220 esac
5221 fi
5222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5223 if test -n "$ac_ct_AR"; then
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5225 printf "%s\n" "$ac_ct_AR" >&6; }
5226 else
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 printf "%s\n" "no" >&6; }
5229 fi
5230
5231
5232 test -n "$ac_ct_AR" && break
5233 done
5234
5235 if test "x$ac_ct_AR" = x; then
5236 AR="false"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244 AR=$ac_ct_AR
5245 fi
5246 fi
5247
5248 : ${AR=ar}
5249 : ${ARFLAGS=cr}
5250
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5252 printf %s "checking the archiver ($AR) interface... " >&6; }
5253 if test ${am_cv_ar_interface+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else case e in #(
5257 e) ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
5263 am_cv_ar_interface=ar
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int some_variable = 0;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"
5269 then :
5270 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5272 (eval $am_ar_try) 2>&5
5273 ac_status=$?
5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5275 test $ac_status = 0; }
5276 if test "$ac_status" -eq 0; then
5277 am_cv_ar_interface=ar
5278 else
5279 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5281 (eval $am_ar_try) 2>&5
5282 ac_status=$?
5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }
5285 if test "$ac_status" -eq 0; then
5286 am_cv_ar_interface=lib
5287 else
5288 am_cv_ar_interface=unknown
5289 fi
5290 fi
5291 rm -f conftest.lib libconftest.a
5292
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 ac_ext=cpp
5296 ac_cpp='$CXXCPP $CPPFLAGS'
5297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5300 ;;
5301 esac
5302 fi
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5304 printf "%s\n" "$am_cv_ar_interface" >&6; }
5305
5306 case $am_cv_ar_interface in
5307 ar)
5308 ;;
5309 lib)
5310 # Microsoft lib, so override with the ar-lib wrapper script.
5311 # FIXME: It is wrong to rewrite AR.
5312 # But if we don't then we get into trouble of one sort or another.
5313 # A longer-term fix would be to have automake use am__AR in this case,
5314 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5315 # similar.
5316 AR="$am_aux_dir/ar-lib $AR"
5317 ;;
5318 unknown)
5319 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5320 ;;
5321 esac
5322
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328 if test -n "$ac_tool_prefix"; then
5329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 printf %s "checking for $ac_word... " >&6; }
5333 if test ${ac_cv_prog_CC+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else case e in #(
5337 e) if test -n "$CC"; then
5338 ac_cv_prog_CC="$CC" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343 IFS=$as_save_IFS
5344 case $as_dir in #(((
5345 '') as_dir=./ ;;
5346 */) ;;
5347 *) as_dir=$as_dir/ ;;
5348 esac
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi ;;
5360 esac
5361 fi
5362 CC=$ac_cv_prog_CC
5363 if test -n "$CC"; then
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5365 printf "%s\n" "$CC" >&6; }
5366 else
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 printf "%s\n" "no" >&6; }
5369 fi
5370
5371
5372 fi
5373 if test -z "$ac_cv_prog_CC"; then
5374 ac_ct_CC=$CC
5375 # Extract the first word of "gcc", so it can be a program name with args.
5376 set dummy gcc; ac_word=$2
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 printf %s "checking for $ac_word... " >&6; }
5379 if test ${ac_cv_prog_ac_ct_CC+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else case e in #(
5383 e) if test -n "$ac_ct_CC"; then
5384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389 IFS=$as_save_IFS
5390 case $as_dir in #(((
5391 '') as_dir=./ ;;
5392 */) ;;
5393 *) as_dir=$as_dir/ ;;
5394 esac
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_CC="gcc"
5398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401 done
5402 done
5403 IFS=$as_save_IFS
5404
5405 fi ;;
5406 esac
5407 fi
5408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5409 if test -n "$ac_ct_CC"; then
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5411 printf "%s\n" "$ac_ct_CC" >&6; }
5412 else
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 printf "%s\n" "no" >&6; }
5415 fi
5416
5417 if test "x$ac_ct_CC" = x; then
5418 CC=""
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 CC=$ac_ct_CC
5427 fi
5428 else
5429 CC="$ac_cv_prog_CC"
5430 fi
5431
5432 if test -z "$CC"; then
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}cc; ac_word=$2
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 printf %s "checking for $ac_word... " >&6; }
5438 if test ${ac_cv_prog_CC+y}
5439 then :
5440 printf %s "(cached) " >&6
5441 else case e in #(
5442 e) if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448 IFS=$as_save_IFS
5449 case $as_dir in #(((
5450 '') as_dir=./ ;;
5451 */) ;;
5452 *) as_dir=$as_dir/ ;;
5453 esac
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5456 ac_cv_prog_CC="${ac_tool_prefix}cc"
5457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460 done
5461 done
5462 IFS=$as_save_IFS
5463
5464 fi ;;
5465 esac
5466 fi
5467 CC=$ac_cv_prog_CC
5468 if test -n "$CC"; then
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5470 printf "%s\n" "$CC" >&6; }
5471 else
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 printf "%s\n" "no" >&6; }
5474 fi
5475
5476
5477 fi
5478 fi
5479 if test -z "$CC"; then
5480 # Extract the first word of "cc", so it can be a program name with args.
5481 set dummy cc; ac_word=$2
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 printf %s "checking for $ac_word... " >&6; }
5484 if test ${ac_cv_prog_CC+y}
5485 then :
5486 printf %s "(cached) " >&6
5487 else case e in #(
5488 e) if test -n "$CC"; then
5489 ac_cv_prog_CC="$CC" # Let the user override the test.
5490 else
5491 ac_prog_rejected=no
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 case $as_dir in #(((
5497 '') as_dir=./ ;;
5498 */) ;;
5499 *) as_dir=$as_dir/ ;;
5500 esac
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5503 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5504 ac_prog_rejected=yes
5505 continue
5506 fi
5507 ac_cv_prog_CC="cc"
5508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 if test $ac_prog_rejected = yes; then
5516 # We found a bogon in the path, so make sure we never use it.
5517 set dummy $ac_cv_prog_CC
5518 shift
5519 if test $# != 0; then
5520 # We chose a different compiler from the bogus one.
5521 # However, it has the same basename, so the bogon will be chosen
5522 # first if we set CC to just the basename; use the full file name.
5523 shift
5524 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5525 fi
5526 fi
5527 fi ;;
5528 esac
5529 fi
5530 CC=$ac_cv_prog_CC
5531 if test -n "$CC"; then
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5533 printf "%s\n" "$CC" >&6; }
5534 else
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 printf "%s\n" "no" >&6; }
5537 fi
5538
5539
5540 fi
5541 if test -z "$CC"; then
5542 if test -n "$ac_tool_prefix"; then
5543 for ac_prog in cl.exe
5544 do
5545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 printf %s "checking for $ac_word... " >&6; }
5549 if test ${ac_cv_prog_CC+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else case e in #(
5553 e) if test -n "$CC"; then
5554 ac_cv_prog_CC="$CC" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 case $as_dir in #(((
5561 '') as_dir=./ ;;
5562 */) ;;
5563 *) as_dir=$as_dir/ ;;
5564 esac
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 fi ;;
5576 esac
5577 fi
5578 CC=$ac_cv_prog_CC
5579 if test -n "$CC"; then
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5581 printf "%s\n" "$CC" >&6; }
5582 else
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 printf "%s\n" "no" >&6; }
5585 fi
5586
5587
5588 test -n "$CC" && break
5589 done
5590 fi
5591 if test -z "$CC"; then
5592 ac_ct_CC=$CC
5593 for ac_prog in cl.exe
5594 do
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 printf %s "checking for $ac_word... " >&6; }
5599 if test ${ac_cv_prog_ac_ct_CC+y}
5600 then :
5601 printf %s "(cached) " >&6
5602 else case e in #(
5603 e) if test -n "$ac_ct_CC"; then
5604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 case $as_dir in #(((
5611 '') as_dir=./ ;;
5612 */) ;;
5613 *) as_dir=$as_dir/ ;;
5614 esac
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_ac_ct_CC="$ac_prog"
5618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621 done
5622 done
5623 IFS=$as_save_IFS
5624
5625 fi ;;
5626 esac
5627 fi
5628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5629 if test -n "$ac_ct_CC"; then
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5631 printf "%s\n" "$ac_ct_CC" >&6; }
5632 else
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 printf "%s\n" "no" >&6; }
5635 fi
5636
5637
5638 test -n "$ac_ct_CC" && break
5639 done
5640
5641 if test "x$ac_ct_CC" = x; then
5642 CC=""
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650 CC=$ac_ct_CC
5651 fi
5652 fi
5653
5654 fi
5655 if test -z "$CC"; then
5656 if test -n "$ac_tool_prefix"; then
5657 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5658 set dummy ${ac_tool_prefix}clang; ac_word=$2
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 printf %s "checking for $ac_word... " >&6; }
5661 if test ${ac_cv_prog_CC+y}
5662 then :
5663 printf %s "(cached) " >&6
5664 else case e in #(
5665 e) if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 case $as_dir in #(((
5673 '') as_dir=./ ;;
5674 */) ;;
5675 *) as_dir=$as_dir/ ;;
5676 esac
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_CC="${ac_tool_prefix}clang"
5680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi ;;
5688 esac
5689 fi
5690 CC=$ac_cv_prog_CC
5691 if test -n "$CC"; then
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5693 printf "%s\n" "$CC" >&6; }
5694 else
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 printf "%s\n" "no" >&6; }
5697 fi
5698
5699
5700 fi
5701 if test -z "$ac_cv_prog_CC"; then
5702 ac_ct_CC=$CC
5703 # Extract the first word of "clang", so it can be a program name with args.
5704 set dummy clang; ac_word=$2
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 printf %s "checking for $ac_word... " >&6; }
5707 if test ${ac_cv_prog_ac_ct_CC+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) if test -n "$ac_ct_CC"; then
5712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717 IFS=$as_save_IFS
5718 case $as_dir in #(((
5719 '') as_dir=./ ;;
5720 */) ;;
5721 *) as_dir=$as_dir/ ;;
5722 esac
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_ac_ct_CC="clang"
5726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi ;;
5734 esac
5735 fi
5736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5737 if test -n "$ac_ct_CC"; then
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5739 printf "%s\n" "$ac_ct_CC" >&6; }
5740 else
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 printf "%s\n" "no" >&6; }
5743 fi
5744
5745 if test "x$ac_ct_CC" = x; then
5746 CC=""
5747 else
5748 case $cross_compiling:$ac_tool_warned in
5749 yes:)
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752 ac_tool_warned=yes ;;
5753 esac
5754 CC=$ac_ct_CC
5755 fi
5756 else
5757 CC="$ac_cv_prog_CC"
5758 fi
5759
5760 fi
5761
5762
5763 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5764 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5765 as_fn_error $? "no acceptable C compiler found in \$PATH
5766 See 'config.log' for more details" "$LINENO" 5; }
5767
5768 # Provide some information about the compiler.
5769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5770 set X $ac_compile
5771 ac_compiler=$2
5772 for ac_option in --version -v -V -qversion -version; do
5773 { { ac_try="$ac_compiler $ac_option >&5"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 printf "%s\n" "$ac_try_echo"; } >&5
5780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5781 ac_status=$?
5782 if test -s conftest.err; then
5783 sed '10a\
5784 ... rest of stderr output deleted ...
5785 10q' conftest.err >conftest.er1
5786 cat conftest.er1 >&5
5787 fi
5788 rm -f conftest.er1 conftest.err
5789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; }
5791 done
5792
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5794 printf %s "checking whether the compiler supports GNU C... " >&6; }
5795 if test ${ac_cv_c_compiler_gnu+y}
5796 then :
5797 printf %s "(cached) " >&6
5798 else case e in #(
5799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 int
5803 main (void)
5804 {
5805 #ifndef __GNUC__
5806 choke me
5807 #endif
5808
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"
5814 then :
5815 ac_compiler_gnu=yes
5816 else case e in #(
5817 e) ac_compiler_gnu=no ;;
5818 esac
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5822 ;;
5823 esac
5824 fi
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
5829 if test $ac_compiler_gnu = yes; then
5830 GCC=yes
5831 else
5832 GCC=
5833 fi
5834 ac_test_CFLAGS=${CFLAGS+y}
5835 ac_save_CFLAGS=$CFLAGS
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5837 printf %s "checking whether $CC accepts -g... " >&6; }
5838 if test ${ac_cv_prog_cc_g+y}
5839 then :
5840 printf %s "(cached) " >&6
5841 else case e in #(
5842 e) ac_save_c_werror_flag=$ac_c_werror_flag
5843 ac_c_werror_flag=yes
5844 ac_cv_prog_cc_g=no
5845 CFLAGS="-g"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848
5849 int
5850 main (void)
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"
5858 then :
5859 ac_cv_prog_cc_g=yes
5860 else case e in #(
5861 e) CFLAGS=""
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864
5865 int
5866 main (void)
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"
5874 then :
5875
5876 else case e in #(
5877 e) ac_c_werror_flag=$ac_save_c_werror_flag
5878 CFLAGS="-g"
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881
5882 int
5883 main (void)
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_compile "$LINENO"
5891 then :
5892 ac_cv_prog_cc_g=yes
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5895 esac
5896 fi
5897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5898 esac
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5901 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5902 esac
5903 fi
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5905 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5906 if test $ac_test_CFLAGS; then
5907 CFLAGS=$ac_save_CFLAGS
5908 elif test $ac_cv_prog_cc_g = yes; then
5909 if test "$GCC" = yes; then
5910 CFLAGS="-g -O2"
5911 else
5912 CFLAGS="-g"
5913 fi
5914 else
5915 if test "$GCC" = yes; then
5916 CFLAGS="-O2"
5917 else
5918 CFLAGS=
5919 fi
5920 fi
5921 ac_prog_cc_stdc=no
5922 if test x$ac_prog_cc_stdc = xno
5923 then :
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5925 printf %s "checking for $CC option to enable C11 features... " >&6; }
5926 if test ${ac_cv_prog_cc_c11+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else case e in #(
5930 e) ac_cv_prog_cc_c11=no
5931 ac_save_CC=$CC
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 $ac_c_conftest_c11_program
5935 _ACEOF
5936 for ac_arg in '' -std=gnu11
5937 do
5938 CC="$ac_save_CC $ac_arg"
5939 if ac_fn_c_try_compile "$LINENO"
5940 then :
5941 ac_cv_prog_cc_c11=$ac_arg
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.beam
5944 test "x$ac_cv_prog_cc_c11" != "xno" && break
5945 done
5946 rm -f conftest.$ac_ext
5947 CC=$ac_save_CC ;;
5948 esac
5949 fi
5950
5951 if test "x$ac_cv_prog_cc_c11" = xno
5952 then :
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5954 printf "%s\n" "unsupported" >&6; }
5955 else case e in #(
5956 e) if test "x$ac_cv_prog_cc_c11" = x
5957 then :
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5959 printf "%s\n" "none needed" >&6; }
5960 else case e in #(
5961 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5962 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5963 CC="$CC $ac_cv_prog_cc_c11" ;;
5964 esac
5965 fi
5966 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5967 ac_prog_cc_stdc=c11 ;;
5968 esac
5969 fi
5970 fi
5971 if test x$ac_prog_cc_stdc = xno
5972 then :
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5974 printf %s "checking for $CC option to enable C99 features... " >&6; }
5975 if test ${ac_cv_prog_cc_c99+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else case e in #(
5979 e) ac_cv_prog_cc_c99=no
5980 ac_save_CC=$CC
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 $ac_c_conftest_c99_program
5984 _ACEOF
5985 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5986 do
5987 CC="$ac_save_CC $ac_arg"
5988 if ac_fn_c_try_compile "$LINENO"
5989 then :
5990 ac_cv_prog_cc_c99=$ac_arg
5991 fi
5992 rm -f core conftest.err conftest.$ac_objext conftest.beam
5993 test "x$ac_cv_prog_cc_c99" != "xno" && break
5994 done
5995 rm -f conftest.$ac_ext
5996 CC=$ac_save_CC ;;
5997 esac
5998 fi
5999
6000 if test "x$ac_cv_prog_cc_c99" = xno
6001 then :
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6003 printf "%s\n" "unsupported" >&6; }
6004 else case e in #(
6005 e) if test "x$ac_cv_prog_cc_c99" = x
6006 then :
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6008 printf "%s\n" "none needed" >&6; }
6009 else case e in #(
6010 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6011 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6012 CC="$CC $ac_cv_prog_cc_c99" ;;
6013 esac
6014 fi
6015 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6016 ac_prog_cc_stdc=c99 ;;
6017 esac
6018 fi
6019 fi
6020 if test x$ac_prog_cc_stdc = xno
6021 then :
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6023 printf %s "checking for $CC option to enable C89 features... " >&6; }
6024 if test ${ac_cv_prog_cc_c89+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else case e in #(
6028 e) ac_cv_prog_cc_c89=no
6029 ac_save_CC=$CC
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 $ac_c_conftest_c89_program
6033 _ACEOF
6034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6035 do
6036 CC="$ac_save_CC $ac_arg"
6037 if ac_fn_c_try_compile "$LINENO"
6038 then :
6039 ac_cv_prog_cc_c89=$ac_arg
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.beam
6042 test "x$ac_cv_prog_cc_c89" != "xno" && break
6043 done
6044 rm -f conftest.$ac_ext
6045 CC=$ac_save_CC ;;
6046 esac
6047 fi
6048
6049 if test "x$ac_cv_prog_cc_c89" = xno
6050 then :
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6052 printf "%s\n" "unsupported" >&6; }
6053 else case e in #(
6054 e) if test "x$ac_cv_prog_cc_c89" = x
6055 then :
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6057 printf "%s\n" "none needed" >&6; }
6058 else case e in #(
6059 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6060 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6061 CC="$CC $ac_cv_prog_cc_c89" ;;
6062 esac
6063 fi
6064 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6065 ac_prog_cc_stdc=c89 ;;
6066 esac
6067 fi
6068 fi
6069
6070 ac_ext=cpp
6071 ac_cpp='$CXXCPP $CPPFLAGS'
6072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6075
6076
6077 ac_ext=c
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6083 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6084 if test ${am_cv_prog_cc_c_o+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else case e in #(
6088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090
6091 int
6092 main (void)
6093 {
6094
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 # Make sure it works both with $CC and with simple cc.
6100 # Following AC_PROG_CC_C_O, we do the test twice because some
6101 # compilers refuse to overwrite an existing .o file with -o,
6102 # though they will create one.
6103 am_cv_prog_cc_c_o=yes
6104 for am_i in 1 2; do
6105 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6106 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } \
6110 && test -f conftest2.$ac_objext; then
6111 : OK
6112 else
6113 am_cv_prog_cc_c_o=no
6114 break
6115 fi
6116 done
6117 rm -f core conftest*
6118 unset am_i ;;
6119 esac
6120 fi
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6122 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6123 if test "$am_cv_prog_cc_c_o" != yes; then
6124 # Losing compiler, so override with the script.
6125 # FIXME: It is wrong to rewrite CC.
6126 # But if we don't then we get into trouble of one sort or another.
6127 # A longer-term fix would be to have automake use am__CC in this case,
6128 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6129 CC="$am_aux_dir/compile $CC"
6130 fi
6131 ac_ext=cpp
6132 ac_cpp='$CXXCPP $CPPFLAGS'
6133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6136
6137
6138 depcc="$CC" am_compiler_list=
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6141 printf %s "checking dependency style of $depcc... " >&6; }
6142 if test ${am_cv_CC_dependencies_compiler_type+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else case e in #(
6146 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6147 # We make a subdir and do the tests there. Otherwise we can end up
6148 # making bogus files that we don't know about and never remove. For
6149 # instance it was reported that on HP-UX the gcc test will end up
6150 # making a dummy file named 'D' -- because '-MD' means "put the output
6151 # in D".
6152 rm -rf conftest.dir
6153 mkdir conftest.dir
6154 # Copy depcomp to subdir because otherwise we won't find it if we're
6155 # using a relative directory.
6156 cp "$am_depcomp" conftest.dir
6157 cd conftest.dir
6158 # We will build objects and dependencies in a subdirectory because
6159 # it helps to detect inapplicable dependency modes. For instance
6160 # both Tru64's cc and ICC support -MD to output dependencies as a
6161 # side effect of compilation, but ICC will put the dependencies in
6162 # the current directory while Tru64 will put them in the object
6163 # directory.
6164 mkdir sub
6165
6166 am_cv_CC_dependencies_compiler_type=none
6167 if test "$am_compiler_list" = ""; then
6168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6169 fi
6170 am__universal=false
6171 case " $depcc " in #(
6172 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6173 esac
6174
6175 for depmode in $am_compiler_list; do
6176 # Setup a source with many dependencies, because some compilers
6177 # like to wrap large dependency lists on column 80 (with \), and
6178 # we should not choose a depcomp mode which is confused by this.
6179 #
6180 # We need to recreate these files for each test, as the compiler may
6181 # overwrite some of them when testing with obscure command lines.
6182 # This happens at least with the AIX C compiler.
6183 : > sub/conftest.c
6184 for i in 1 2 3 4 5 6; do
6185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6186 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6187 # Solaris 10 /bin/sh.
6188 echo '/* dummy */' > sub/conftst$i.h
6189 done
6190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6191
6192 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6193 # mode. It turns out that the SunPro C++ compiler does not properly
6194 # handle '-M -o', and we need to detect this. Also, some Intel
6195 # versions had trouble with output in subdirs.
6196 am__obj=sub/conftest.${OBJEXT-o}
6197 am__minus_obj="-o $am__obj"
6198 case $depmode in
6199 gcc)
6200 # This depmode causes a compiler race in universal mode.
6201 test "$am__universal" = false || continue
6202 ;;
6203 nosideeffect)
6204 # After this tag, mechanisms are not by side-effect, so they'll
6205 # only be used when explicitly requested.
6206 if test "x$enable_dependency_tracking" = xyes; then
6207 continue
6208 else
6209 break
6210 fi
6211 ;;
6212 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6213 # This compiler won't grok '-c -o', but also, the minuso test has
6214 # not run yet. These depmodes are late enough in the game, and
6215 # so weak that their functioning should not be impacted.
6216 am__obj=conftest.${OBJEXT-o}
6217 am__minus_obj=
6218 ;;
6219 none) break ;;
6220 esac
6221 if depmode=$depmode \
6222 source=sub/conftest.c object=$am__obj \
6223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6225 >/dev/null 2>conftest.err &&
6226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6230 # icc doesn't choke on unknown options, it will just issue warnings
6231 # or remarks (even with -Werror). So we grep stderr for any message
6232 # that says an option was ignored or not supported.
6233 # When given -MP, icc 7.0 and 7.1 complain thus:
6234 # icc: Command line warning: ignoring option '-M'; no argument required
6235 # The diagnosis changed in icc 8.0:
6236 # icc: Command line remark: option '-MP' not supported
6237 if (grep 'ignoring option' conftest.err ||
6238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6239 am_cv_CC_dependencies_compiler_type=$depmode
6240 break
6241 fi
6242 fi
6243 done
6244
6245 cd ..
6246 rm -rf conftest.dir
6247 else
6248 am_cv_CC_dependencies_compiler_type=none
6249 fi
6250 ;;
6251 esac
6252 fi
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6254 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6256
6257 if
6258 test "x$enable_dependency_tracking" != xno \
6259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6260 am__fastdepCC_TRUE=
6261 am__fastdepCC_FALSE='#'
6262 else
6263 am__fastdepCC_TRUE='#'
6264 am__fastdepCC_FALSE=
6265 fi
6266
6267
6268 ac_ext=c
6269 ac_cpp='$CPP $CPPFLAGS'
6270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6274 printf %s "checking how to run the C preprocessor... " >&6; }
6275 # On Suns, sometimes $CPP names a directory.
6276 if test -n "$CPP" && test -d "$CPP"; then
6277 CPP=
6278 fi
6279 if test -z "$CPP"; then
6280 if test ${ac_cv_prog_CPP+y}
6281 then :
6282 printf %s "(cached) " >&6
6283 else case e in #(
6284 e) # Double quotes because $CC needs to be expanded
6285 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6286 do
6287 ac_preproc_ok=false
6288 for ac_c_preproc_warn_flag in '' yes
6289 do
6290 # Use a header file that comes with gcc, so configuring glibc
6291 # with a fresh cross-compiler works.
6292 # On the NeXT, cc -E runs the code through the compiler's parser,
6293 # not just through cpp. "Syntax error" is here to catch this case.
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #include <limits.h>
6297 Syntax error
6298 _ACEOF
6299 if ac_fn_c_try_cpp "$LINENO"
6300 then :
6301
6302 else case e in #(
6303 e) # Broken: fails on valid input.
6304 continue ;;
6305 esac
6306 fi
6307 rm -f conftest.err conftest.i conftest.$ac_ext
6308
6309 # OK, works on sane cases. Now check whether nonexistent headers
6310 # can be detected and how.
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <ac_nonexistent.h>
6314 _ACEOF
6315 if ac_fn_c_try_cpp "$LINENO"
6316 then :
6317 # Broken: success on invalid input.
6318 continue
6319 else case e in #(
6320 e) # Passes both tests.
6321 ac_preproc_ok=:
6322 break ;;
6323 esac
6324 fi
6325 rm -f conftest.err conftest.i conftest.$ac_ext
6326
6327 done
6328 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6329 rm -f conftest.i conftest.err conftest.$ac_ext
6330 if $ac_preproc_ok
6331 then :
6332 break
6333 fi
6334
6335 done
6336 ac_cv_prog_CPP=$CPP
6337 ;;
6338 esac
6339 fi
6340 CPP=$ac_cv_prog_CPP
6341 else
6342 ac_cv_prog_CPP=$CPP
6343 fi
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6345 printf "%s\n" "$CPP" >&6; }
6346 ac_preproc_ok=false
6347 for ac_c_preproc_warn_flag in '' yes
6348 do
6349 # Use a header file that comes with gcc, so configuring glibc
6350 # with a fresh cross-compiler works.
6351 # On the NeXT, cc -E runs the code through the compiler's parser,
6352 # not just through cpp. "Syntax error" is here to catch this case.
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 #include <limits.h>
6356 Syntax error
6357 _ACEOF
6358 if ac_fn_c_try_cpp "$LINENO"
6359 then :
6360
6361 else case e in #(
6362 e) # Broken: fails on valid input.
6363 continue ;;
6364 esac
6365 fi
6366 rm -f conftest.err conftest.i conftest.$ac_ext
6367
6368 # OK, works on sane cases. Now check whether nonexistent headers
6369 # can be detected and how.
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 #include <ac_nonexistent.h>
6373 _ACEOF
6374 if ac_fn_c_try_cpp "$LINENO"
6375 then :
6376 # Broken: success on invalid input.
6377 continue
6378 else case e in #(
6379 e) # Passes both tests.
6380 ac_preproc_ok=:
6381 break ;;
6382 esac
6383 fi
6384 rm -f conftest.err conftest.i conftest.$ac_ext
6385
6386 done
6387 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6388 rm -f conftest.i conftest.err conftest.$ac_ext
6389 if $ac_preproc_ok
6390 then :
6391
6392 else case e in #(
6393 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6395 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6396 See 'config.log' for more details" "$LINENO" 5; } ;;
6397 esac
6398 fi
6399
6400 ac_ext=cpp
6401 ac_cpp='$CXXCPP $CPPFLAGS'
6402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6405
6406
6407
6408
6409
6410
6411
6412 ac_ext=cpp
6413 ac_cpp='$CXXCPP $CPPFLAGS'
6414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6417 if test -z "$CXX"; then
6418 if test -n "$CCC"; then
6419 CXX=$CCC
6420 else
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6423 do
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 printf %s "checking for $ac_word... " >&6; }
6428 if test ${ac_cv_prog_CXX+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else case e in #(
6432 e) if test -n "$CXX"; then
6433 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438 IFS=$as_save_IFS
6439 case $as_dir in #(((
6440 '') as_dir=./ ;;
6441 */) ;;
6442 *) as_dir=$as_dir/ ;;
6443 esac
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi ;;
6455 esac
6456 fi
6457 CXX=$ac_cv_prog_CXX
6458 if test -n "$CXX"; then
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6460 printf "%s\n" "$CXX" >&6; }
6461 else
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 printf "%s\n" "no" >&6; }
6464 fi
6465
6466
6467 test -n "$CXX" && break
6468 done
6469 fi
6470 if test -z "$CXX"; then
6471 ac_ct_CXX=$CXX
6472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6473 do
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 printf %s "checking for $ac_word... " >&6; }
6478 if test ${ac_cv_prog_ac_ct_CXX+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else case e in #(
6482 e) if test -n "$ac_ct_CXX"; then
6483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_ac_ct_CXX="$ac_prog"
6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi ;;
6505 esac
6506 fi
6507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6508 if test -n "$ac_ct_CXX"; then
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6510 printf "%s\n" "$ac_ct_CXX" >&6; }
6511 else
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 printf "%s\n" "no" >&6; }
6514 fi
6515
6516
6517 test -n "$ac_ct_CXX" && break
6518 done
6519
6520 if test "x$ac_ct_CXX" = x; then
6521 CXX="g++"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529 CXX=$ac_ct_CXX
6530 fi
6531 fi
6532
6533 fi
6534 fi
6535 # Provide some information about the compiler.
6536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6537 set X $ac_compile
6538 ac_compiler=$2
6539 for ac_option in --version -v -V -qversion; do
6540 { { ac_try="$ac_compiler $ac_option >&5"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6546 printf "%s\n" "$ac_try_echo"; } >&5
6547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6548 ac_status=$?
6549 if test -s conftest.err; then
6550 sed '10a\
6551 ... rest of stderr output deleted ...
6552 10q' conftest.err >conftest.er1
6553 cat conftest.er1 >&5
6554 fi
6555 rm -f conftest.er1 conftest.err
6556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557 test $ac_status = 0; }
6558 done
6559
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6561 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6562 if test ${ac_cv_cxx_compiler_gnu+y}
6563 then :
6564 printf %s "(cached) " >&6
6565 else case e in #(
6566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568
6569 int
6570 main (void)
6571 {
6572 #ifndef __GNUC__
6573 choke me
6574 #endif
6575
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 if ac_fn_cxx_try_compile "$LINENO"
6581 then :
6582 ac_compiler_gnu=yes
6583 else case e in #(
6584 e) ac_compiler_gnu=no ;;
6585 esac
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6588 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6589 ;;
6590 esac
6591 fi
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6593 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6595
6596 if test $ac_compiler_gnu = yes; then
6597 GXX=yes
6598 else
6599 GXX=
6600 fi
6601 ac_test_CXXFLAGS=${CXXFLAGS+y}
6602 ac_save_CXXFLAGS=$CXXFLAGS
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6604 printf %s "checking whether $CXX accepts -g... " >&6; }
6605 if test ${ac_cv_prog_cxx_g+y}
6606 then :
6607 printf %s "(cached) " >&6
6608 else case e in #(
6609 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6610 ac_cxx_werror_flag=yes
6611 ac_cv_prog_cxx_g=no
6612 CXXFLAGS="-g"
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615
6616 int
6617 main (void)
6618 {
6619
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_cxx_try_compile "$LINENO"
6625 then :
6626 ac_cv_prog_cxx_g=yes
6627 else case e in #(
6628 e) CXXFLAGS=""
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632 int
6633 main (void)
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_cxx_try_compile "$LINENO"
6641 then :
6642
6643 else case e in #(
6644 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6645 CXXFLAGS="-g"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648
6649 int
6650 main (void)
6651 {
6652
6653 ;
6654 return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_cxx_try_compile "$LINENO"
6658 then :
6659 ac_cv_prog_cxx_g=yes
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6662 esac
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6665 esac
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6669 esac
6670 fi
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6672 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6673 if test $ac_test_CXXFLAGS; then
6674 CXXFLAGS=$ac_save_CXXFLAGS
6675 elif test $ac_cv_prog_cxx_g = yes; then
6676 if test "$GXX" = yes; then
6677 CXXFLAGS="-g -O2"
6678 else
6679 CXXFLAGS="-g"
6680 fi
6681 else
6682 if test "$GXX" = yes; then
6683 CXXFLAGS="-O2"
6684 else
6685 CXXFLAGS=
6686 fi
6687 fi
6688 ac_prog_cxx_stdcxx=no
6689 if test x$ac_prog_cxx_stdcxx = xno
6690 then :
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6692 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6693 if test ${ac_cv_prog_cxx_cxx11+y}
6694 then :
6695 printf %s "(cached) " >&6
6696 else case e in #(
6697 e) ac_cv_prog_cxx_cxx11=no
6698 ac_save_CXX=$CXX
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 $ac_cxx_conftest_cxx11_program
6702 _ACEOF
6703 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6704 do
6705 CXX="$ac_save_CXX $ac_arg"
6706 if ac_fn_cxx_try_compile "$LINENO"
6707 then :
6708 ac_cv_prog_cxx_cxx11=$ac_arg
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.beam
6711 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6712 done
6713 rm -f conftest.$ac_ext
6714 CXX=$ac_save_CXX ;;
6715 esac
6716 fi
6717
6718 if test "x$ac_cv_prog_cxx_cxx11" = xno
6719 then :
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6721 printf "%s\n" "unsupported" >&6; }
6722 else case e in #(
6723 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6724 then :
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6726 printf "%s\n" "none needed" >&6; }
6727 else case e in #(
6728 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6729 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6730 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6731 esac
6732 fi
6733 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6734 ac_prog_cxx_stdcxx=cxx11 ;;
6735 esac
6736 fi
6737 fi
6738 if test x$ac_prog_cxx_stdcxx = xno
6739 then :
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6741 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6742 if test ${ac_cv_prog_cxx_cxx98+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else case e in #(
6746 e) ac_cv_prog_cxx_cxx98=no
6747 ac_save_CXX=$CXX
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 $ac_cxx_conftest_cxx98_program
6751 _ACEOF
6752 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6753 do
6754 CXX="$ac_save_CXX $ac_arg"
6755 if ac_fn_cxx_try_compile "$LINENO"
6756 then :
6757 ac_cv_prog_cxx_cxx98=$ac_arg
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext conftest.beam
6760 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6761 done
6762 rm -f conftest.$ac_ext
6763 CXX=$ac_save_CXX ;;
6764 esac
6765 fi
6766
6767 if test "x$ac_cv_prog_cxx_cxx98" = xno
6768 then :
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6770 printf "%s\n" "unsupported" >&6; }
6771 else case e in #(
6772 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6773 then :
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6775 printf "%s\n" "none needed" >&6; }
6776 else case e in #(
6777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6778 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6779 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6780 esac
6781 fi
6782 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6783 ac_prog_cxx_stdcxx=cxx98 ;;
6784 esac
6785 fi
6786 fi
6787
6788 ac_ext=cpp
6789 ac_cpp='$CXXCPP $CPPFLAGS'
6790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6793
6794 depcc="$CXX" am_compiler_list=
6795
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6797 printf %s "checking dependency style of $depcc... " >&6; }
6798 if test ${am_cv_CXX_dependencies_compiler_type+y}
6799 then :
6800 printf %s "(cached) " >&6
6801 else case e in #(
6802 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6803 # We make a subdir and do the tests there. Otherwise we can end up
6804 # making bogus files that we don't know about and never remove. For
6805 # instance it was reported that on HP-UX the gcc test will end up
6806 # making a dummy file named 'D' -- because '-MD' means "put the output
6807 # in D".
6808 rm -rf conftest.dir
6809 mkdir conftest.dir
6810 # Copy depcomp to subdir because otherwise we won't find it if we're
6811 # using a relative directory.
6812 cp "$am_depcomp" conftest.dir
6813 cd conftest.dir
6814 # We will build objects and dependencies in a subdirectory because
6815 # it helps to detect inapplicable dependency modes. For instance
6816 # both Tru64's cc and ICC support -MD to output dependencies as a
6817 # side effect of compilation, but ICC will put the dependencies in
6818 # the current directory while Tru64 will put them in the object
6819 # directory.
6820 mkdir sub
6821
6822 am_cv_CXX_dependencies_compiler_type=none
6823 if test "$am_compiler_list" = ""; then
6824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6825 fi
6826 am__universal=false
6827 case " $depcc " in #(
6828 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6829 esac
6830
6831 for depmode in $am_compiler_list; do
6832 # Setup a source with many dependencies, because some compilers
6833 # like to wrap large dependency lists on column 80 (with \), and
6834 # we should not choose a depcomp mode which is confused by this.
6835 #
6836 # We need to recreate these files for each test, as the compiler may
6837 # overwrite some of them when testing with obscure command lines.
6838 # This happens at least with the AIX C compiler.
6839 : > sub/conftest.c
6840 for i in 1 2 3 4 5 6; do
6841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6842 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6843 # Solaris 10 /bin/sh.
6844 echo '/* dummy */' > sub/conftst$i.h
6845 done
6846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6847
6848 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6849 # mode. It turns out that the SunPro C++ compiler does not properly
6850 # handle '-M -o', and we need to detect this. Also, some Intel
6851 # versions had trouble with output in subdirs.
6852 am__obj=sub/conftest.${OBJEXT-o}
6853 am__minus_obj="-o $am__obj"
6854 case $depmode in
6855 gcc)
6856 # This depmode causes a compiler race in universal mode.
6857 test "$am__universal" = false || continue
6858 ;;
6859 nosideeffect)
6860 # After this tag, mechanisms are not by side-effect, so they'll
6861 # only be used when explicitly requested.
6862 if test "x$enable_dependency_tracking" = xyes; then
6863 continue
6864 else
6865 break
6866 fi
6867 ;;
6868 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6869 # This compiler won't grok '-c -o', but also, the minuso test has
6870 # not run yet. These depmodes are late enough in the game, and
6871 # so weak that their functioning should not be impacted.
6872 am__obj=conftest.${OBJEXT-o}
6873 am__minus_obj=
6874 ;;
6875 none) break ;;
6876 esac
6877 if depmode=$depmode \
6878 source=sub/conftest.c object=$am__obj \
6879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6880 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6881 >/dev/null 2>conftest.err &&
6882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6884 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6886 # icc doesn't choke on unknown options, it will just issue warnings
6887 # or remarks (even with -Werror). So we grep stderr for any message
6888 # that says an option was ignored or not supported.
6889 # When given -MP, icc 7.0 and 7.1 complain thus:
6890 # icc: Command line warning: ignoring option '-M'; no argument required
6891 # The diagnosis changed in icc 8.0:
6892 # icc: Command line remark: option '-MP' not supported
6893 if (grep 'ignoring option' conftest.err ||
6894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6895 am_cv_CXX_dependencies_compiler_type=$depmode
6896 break
6897 fi
6898 fi
6899 done
6900
6901 cd ..
6902 rm -rf conftest.dir
6903 else
6904 am_cv_CXX_dependencies_compiler_type=none
6905 fi
6906 ;;
6907 esac
6908 fi
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6910 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6912
6913 if
6914 test "x$enable_dependency_tracking" != xno \
6915 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6916 am__fastdepCXX_TRUE=
6917 am__fastdepCXX_FALSE='#'
6918 else
6919 am__fastdepCXX_TRUE='#'
6920 am__fastdepCXX_FALSE=
6921 fi
6922
6923
6924
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6926 printf %s "checking whether ln -s works... " >&6; }
6927 LN_S=$as_ln_s
6928 if test "$LN_S" = "ln -s"; then
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6930 printf "%s\n" "yes" >&6; }
6931 else
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6933 printf "%s\n" "no, using $LN_S" >&6; }
6934 fi
6935
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6937 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6938 set x ${MAKE-make}
6939 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6940 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else case e in #(
6944 e) cat >conftest.make <<\_ACEOF
6945 SHELL = /bin/sh
6946 all:
6947 @echo '@@@%%%=$(MAKE)=@@@%%%'
6948 _ACEOF
6949 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6951 *@@@%%%=?*=@@@%%%*)
6952 eval ac_cv_prog_make_${ac_make}_set=yes;;
6953 *)
6954 eval ac_cv_prog_make_${ac_make}_set=no;;
6955 esac
6956 rm -f conftest.make ;;
6957 esac
6958 fi
6959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6961 printf "%s\n" "yes" >&6; }
6962 SET_MAKE=
6963 else
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 printf "%s\n" "no" >&6; }
6966 SET_MAKE="MAKE=${MAKE-make}"
6967 fi
6968
6969 case `pwd` in
6970 *\ * | *\ *)
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6972 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6973 esac
6974
6975
6976
6977 macro_version='2.5.4'
6978 macro_revision='2.5.4'
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 ltmain=$ac_aux_dir/ltmain.sh
6994
6995
6996
6997 # Make sure we can run config.sub.
6998 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6999 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7000
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7002 printf %s "checking build system type... " >&6; }
7003 if test ${ac_cv_build+y}
7004 then :
7005 printf %s "(cached) " >&6
7006 else case e in #(
7007 e) ac_build_alias=$build_alias
7008 test "x$ac_build_alias" = x &&
7009 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7010 test "x$ac_build_alias" = x &&
7011 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7012 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7013 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7014 ;;
7015 esac
7016 fi
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7018 printf "%s\n" "$ac_cv_build" >&6; }
7019 case $ac_cv_build in
7020 *-*-*) ;;
7021 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7022 esac
7023 build=$ac_cv_build
7024 ac_save_IFS=$IFS; IFS='-'
7025 set x $ac_cv_build
7026 shift
7027 build_cpu=$1
7028 build_vendor=$2
7029 shift; shift
7030 # Remember, the first character of IFS is used to create $*,
7031 # except with old shells:
7032 build_os=$*
7033 IFS=$ac_save_IFS
7034 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7035
7036
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7038 printf %s "checking host system type... " >&6; }
7039 if test ${ac_cv_host+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) if test "x$host_alias" = x; then
7044 ac_cv_host=$ac_cv_build
7045 else
7046 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7047 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7048 fi
7049 ;;
7050 esac
7051 fi
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7053 printf "%s\n" "$ac_cv_host" >&6; }
7054 case $ac_cv_host in
7055 *-*-*) ;;
7056 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7057 esac
7058 host=$ac_cv_host
7059 ac_save_IFS=$IFS; IFS='-'
7060 set x $ac_cv_host
7061 shift
7062 host_cpu=$1
7063 host_vendor=$2
7064 shift; shift
7065 # Remember, the first character of IFS is used to create $*,
7066 # except with old shells:
7067 host_os=$*
7068 IFS=$ac_save_IFS
7069 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7070
7071
7072 # Backslashify metacharacters that are still active within
7073 # double-quoted strings.
7074 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7075
7076 # Same as above, but do not quote variable references.
7077 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7078
7079 # Sed substitution to delay expansion of an escaped shell variable in a
7080 # double_quote_subst'ed string.
7081 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7082
7083 # Sed substitution to delay expansion of an escaped single quote.
7084 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7085
7086 # Sed substitution to avoid accidental globbing in evaled expressions
7087 no_glob_subst='s/\*/\\\*/g'
7088
7089 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7090 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7091 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7092
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7094 printf %s "checking how to print strings... " >&6; }
7095 # Test print first, because it will be a builtin if present.
7096 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7097 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7098 ECHO='print -r --'
7099 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7100 ECHO='printf %s\n'
7101 else
7102 # Use this function as a fallback that always works.
7103 func_fallback_echo ()
7104 {
7105 eval 'cat <<_LTECHO_EOF
7106 $1
7107 _LTECHO_EOF'
7108 }
7109 ECHO='func_fallback_echo'
7110 fi
7111
7112 # func_echo_all arg...
7113 # Invoke $ECHO with all args, space-separated.
7114 func_echo_all ()
7115 {
7116 $ECHO ""
7117 }
7118
7119 case $ECHO in
7120 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7121 printf "%s\n" "printf" >&6; } ;;
7122 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7123 printf "%s\n" "print -r" >&6; } ;;
7124 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7125 printf "%s\n" "cat" >&6; } ;;
7126 esac
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7142 printf %s "checking for a sed that does not truncate output... " >&6; }
7143 if test ${ac_cv_path_SED+y}
7144 then :
7145 printf %s "(cached) " >&6
7146 else case e in #(
7147 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7148 for ac_i in 1 2 3 4 5 6 7; do
7149 ac_script="$ac_script$as_nl$ac_script"
7150 done
7151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7152 { ac_script=; unset ac_script;}
7153 if test -z "$SED"; then
7154 ac_path_SED_found=false
7155 # Loop through the user's path and test for each of PROGNAME-LIST
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 case $as_dir in #(((
7161 '') as_dir=./ ;;
7162 */) ;;
7163 *) as_dir=$as_dir/ ;;
7164 esac
7165 for ac_prog in sed gsed
7166 do
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7169 as_fn_executable_p "$ac_path_SED" || continue
7170 # Check for GNU ac_path_SED and select it if it is found.
7171 # Check for GNU $ac_path_SED
7172 case `"$ac_path_SED" --version 2>&1` in #(
7173 *GNU*)
7174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7175 #(
7176 *)
7177 ac_count=0
7178 printf %s 0123456789 >"conftest.in"
7179 while :
7180 do
7181 cat "conftest.in" "conftest.in" >"conftest.tmp"
7182 mv "conftest.tmp" "conftest.in"
7183 cp "conftest.in" "conftest.nl"
7184 printf "%s\n" '' >> "conftest.nl"
7185 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7187 as_fn_arith $ac_count + 1 && ac_count=$as_val
7188 if test $ac_count -gt ${ac_path_SED_max-0}; then
7189 # Best one so far, save it but keep looking for a better one
7190 ac_cv_path_SED="$ac_path_SED"
7191 ac_path_SED_max=$ac_count
7192 fi
7193 # 10*(2^10) chars as input seems more than enough
7194 test $ac_count -gt 10 && break
7195 done
7196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7197 esac
7198
7199 $ac_path_SED_found && break 3
7200 done
7201 done
7202 done
7203 IFS=$as_save_IFS
7204 if test -z "$ac_cv_path_SED"; then
7205 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7206 fi
7207 else
7208 ac_cv_path_SED=$SED
7209 fi
7210 ;;
7211 esac
7212 fi
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7214 printf "%s\n" "$ac_cv_path_SED" >&6; }
7215 SED="$ac_cv_path_SED"
7216 rm -f conftest.sed
7217
7218 test -z "$SED" && SED=sed
7219 Xsed="$SED -e 1s/^X//"
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7232 printf %s "checking for grep that handles long lines and -e... " >&6; }
7233 if test ${ac_cv_path_GREP+y}
7234 then :
7235 printf %s "(cached) " >&6
7236 else case e in #(
7237 e) if test -z "$GREP"; then
7238 ac_path_GREP_found=false
7239 # Loop through the user's path and test for each of PROGNAME-LIST
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7242 do
7243 IFS=$as_save_IFS
7244 case $as_dir in #(((
7245 '') as_dir=./ ;;
7246 */) ;;
7247 *) as_dir=$as_dir/ ;;
7248 esac
7249 for ac_prog in grep ggrep
7250 do
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7253 as_fn_executable_p "$ac_path_GREP" || continue
7254 # Check for GNU ac_path_GREP and select it if it is found.
7255 # Check for GNU $ac_path_GREP
7256 case `"$ac_path_GREP" --version 2>&1` in #(
7257 *GNU*)
7258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7259 #(
7260 *)
7261 ac_count=0
7262 printf %s 0123456789 >"conftest.in"
7263 while :
7264 do
7265 cat "conftest.in" "conftest.in" >"conftest.tmp"
7266 mv "conftest.tmp" "conftest.in"
7267 cp "conftest.in" "conftest.nl"
7268 printf "%s\n" 'GREP' >> "conftest.nl"
7269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7271 as_fn_arith $ac_count + 1 && ac_count=$as_val
7272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7273 # Best one so far, save it but keep looking for a better one
7274 ac_cv_path_GREP="$ac_path_GREP"
7275 ac_path_GREP_max=$ac_count
7276 fi
7277 # 10*(2^10) chars as input seems more than enough
7278 test $ac_count -gt 10 && break
7279 done
7280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7281 esac
7282
7283 $ac_path_GREP_found && break 3
7284 done
7285 done
7286 done
7287 IFS=$as_save_IFS
7288 if test -z "$ac_cv_path_GREP"; then
7289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7290 fi
7291 else
7292 ac_cv_path_GREP=$GREP
7293 fi
7294 ;;
7295 esac
7296 fi
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7298 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7299 GREP="$ac_cv_path_GREP"
7300
7301
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7303 printf %s "checking for egrep... " >&6; }
7304 if test ${ac_cv_path_EGREP+y}
7305 then :
7306 printf %s "(cached) " >&6
7307 else case e in #(
7308 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7309 then ac_cv_path_EGREP="$GREP -E"
7310 else
7311 if test -z "$EGREP"; then
7312 ac_path_EGREP_found=false
7313 # Loop through the user's path and test for each of PROGNAME-LIST
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7316 do
7317 IFS=$as_save_IFS
7318 case $as_dir in #(((
7319 '') as_dir=./ ;;
7320 */) ;;
7321 *) as_dir=$as_dir/ ;;
7322 esac
7323 for ac_prog in egrep
7324 do
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7327 as_fn_executable_p "$ac_path_EGREP" || continue
7328 # Check for GNU ac_path_EGREP and select it if it is found.
7329 # Check for GNU $ac_path_EGREP
7330 case `"$ac_path_EGREP" --version 2>&1` in #(
7331 *GNU*)
7332 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7333 #(
7334 *)
7335 ac_count=0
7336 printf %s 0123456789 >"conftest.in"
7337 while :
7338 do
7339 cat "conftest.in" "conftest.in" >"conftest.tmp"
7340 mv "conftest.tmp" "conftest.in"
7341 cp "conftest.in" "conftest.nl"
7342 printf "%s\n" 'EGREP' >> "conftest.nl"
7343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7345 as_fn_arith $ac_count + 1 && ac_count=$as_val
7346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7347 # Best one so far, save it but keep looking for a better one
7348 ac_cv_path_EGREP="$ac_path_EGREP"
7349 ac_path_EGREP_max=$ac_count
7350 fi
7351 # 10*(2^10) chars as input seems more than enough
7352 test $ac_count -gt 10 && break
7353 done
7354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7355 esac
7356
7357 $ac_path_EGREP_found && break 3
7358 done
7359 done
7360 done
7361 IFS=$as_save_IFS
7362 if test -z "$ac_cv_path_EGREP"; then
7363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7364 fi
7365 else
7366 ac_cv_path_EGREP=$EGREP
7367 fi
7368
7369 fi ;;
7370 esac
7371 fi
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7373 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7374 EGREP="$ac_cv_path_EGREP"
7375
7376 EGREP_TRADITIONAL=$EGREP
7377 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7378
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7380 printf %s "checking for fgrep... " >&6; }
7381 if test ${ac_cv_path_FGREP+y}
7382 then :
7383 printf %s "(cached) " >&6
7384 else case e in #(
7385 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7386 then ac_cv_path_FGREP="$GREP -F"
7387 else
7388 if test -z "$FGREP"; then
7389 ac_path_FGREP_found=false
7390 # Loop through the user's path and test for each of PROGNAME-LIST
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7393 do
7394 IFS=$as_save_IFS
7395 case $as_dir in #(((
7396 '') as_dir=./ ;;
7397 */) ;;
7398 *) as_dir=$as_dir/ ;;
7399 esac
7400 for ac_prog in fgrep
7401 do
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7404 as_fn_executable_p "$ac_path_FGREP" || continue
7405 # Check for GNU ac_path_FGREP and select it if it is found.
7406 # Check for GNU $ac_path_FGREP
7407 case `"$ac_path_FGREP" --version 2>&1` in #(
7408 *GNU*)
7409 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7410 #(
7411 *)
7412 ac_count=0
7413 printf %s 0123456789 >"conftest.in"
7414 while :
7415 do
7416 cat "conftest.in" "conftest.in" >"conftest.tmp"
7417 mv "conftest.tmp" "conftest.in"
7418 cp "conftest.in" "conftest.nl"
7419 printf "%s\n" 'FGREP' >> "conftest.nl"
7420 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7422 as_fn_arith $ac_count + 1 && ac_count=$as_val
7423 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7424 # Best one so far, save it but keep looking for a better one
7425 ac_cv_path_FGREP="$ac_path_FGREP"
7426 ac_path_FGREP_max=$ac_count
7427 fi
7428 # 10*(2^10) chars as input seems more than enough
7429 test $ac_count -gt 10 && break
7430 done
7431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7432 esac
7433
7434 $ac_path_FGREP_found && break 3
7435 done
7436 done
7437 done
7438 IFS=$as_save_IFS
7439 if test -z "$ac_cv_path_FGREP"; then
7440 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7441 fi
7442 else
7443 ac_cv_path_FGREP=$FGREP
7444 fi
7445
7446 fi ;;
7447 esac
7448 fi
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7450 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7451 FGREP="$ac_cv_path_FGREP"
7452
7453
7454 test -z "$GREP" && GREP=grep
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 # Check whether --with-gnu-ld was given.
7475 if test ${with_gnu_ld+y}
7476 then :
7477 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7478 else case e in #(
7479 e) with_gnu_ld=no ;;
7480 esac
7481 fi
7482
7483 ac_prog=ld
7484 if test yes = "$GCC"; then
7485 # Check if gcc -print-prog-name=ld gives a path.
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7487 printf %s "checking for ld used by $CC... " >&6; }
7488 case $host in
7489 *-*-mingw* | *-*-windows*)
7490 # gcc leaves a trailing carriage return, which upsets mingw
7491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7492 *)
7493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7494 esac
7495 case $ac_prog in
7496 # Accept absolute paths.
7497 [\\/]* | ?:[\\/]*)
7498 re_direlt='/[^/][^/]*/\.\./'
7499 # Canonicalize the pathname of ld
7500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7503 done
7504 test -z "$LD" && LD=$ac_prog
7505 ;;
7506 "")
7507 # If it fails, then pretend we aren't using GCC.
7508 ac_prog=ld
7509 ;;
7510 *)
7511 # If it is relative, then search for the first ld in PATH.
7512 with_gnu_ld=unknown
7513 ;;
7514 esac
7515 elif test yes = "$with_gnu_ld"; then
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7517 printf %s "checking for GNU ld... " >&6; }
7518 else
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7520 printf %s "checking for non-GNU ld... " >&6; }
7521 fi
7522 if test ${lt_cv_path_LD+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else case e in #(
7526 e) if test -z "$LD"; then
7527 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7528 for ac_dir in $PATH; do
7529 IFS=$lt_save_ifs
7530 test -z "$ac_dir" && ac_dir=.
7531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7532 lt_cv_path_LD=$ac_dir/$ac_prog
7533 # Check to see if the program is GNU ld. I'd rather use --version,
7534 # but apparently some variants of GNU ld only accept -v.
7535 # Break only if it was the GNU/non-GNU ld that we prefer.
7536 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7537 *GNU* | *'with BFD'*)
7538 test no != "$with_gnu_ld" && break
7539 ;;
7540 *)
7541 test yes != "$with_gnu_ld" && break
7542 ;;
7543 esac
7544 fi
7545 done
7546 IFS=$lt_save_ifs
7547 else
7548 lt_cv_path_LD=$LD # Let the user override the test with a path.
7549 fi ;;
7550 esac
7551 fi
7552
7553 LD=$lt_cv_path_LD
7554 if test -n "$LD"; then
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7556 printf "%s\n" "$LD" >&6; }
7557 else
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 printf "%s\n" "no" >&6; }
7560 fi
7561 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7563 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7564 if test ${lt_cv_prog_gnu_ld+y}
7565 then :
7566 printf %s "(cached) " >&6
7567 else case e in #(
7568 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7569 case `$LD -v 2>&1 </dev/null` in
7570 *GNU* | *'with BFD'*)
7571 lt_cv_prog_gnu_ld=yes
7572 ;;
7573 *)
7574 lt_cv_prog_gnu_ld=no
7575 ;;
7576 esac ;;
7577 esac
7578 fi
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7580 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7581 with_gnu_ld=$lt_cv_prog_gnu_ld
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7592 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7593 if test ${lt_cv_path_NM+y}
7594 then :
7595 printf %s "(cached) " >&6
7596 else case e in #(
7597 e) if test -n "$NM"; then
7598 # Let the user override the test.
7599 lt_cv_path_NM=$NM
7600 else
7601 lt_nm_to_check=${ac_tool_prefix}nm
7602 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7603 lt_nm_to_check="$lt_nm_to_check nm"
7604 fi
7605 for lt_tmp_nm in $lt_nm_to_check; do
7606 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7607 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7608 IFS=$lt_save_ifs
7609 test -z "$ac_dir" && ac_dir=.
7610 tmp_nm=$ac_dir/$lt_tmp_nm
7611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7612 # Check to see if the nm accepts a BSD-compat flag.
7613 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7614 # nm: unknown option "B" ignored
7615 # Tru64's nm complains that /dev/null is an invalid object file
7616 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7617 case $build_os in
7618 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7619 *) lt_bad_file=/dev/null ;;
7620 esac
7621 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7622 *$lt_bad_file* | *'Invalid file or object type'*)
7623 lt_cv_path_NM="$tmp_nm -B"
7624 break 2
7625 ;;
7626 *)
7627 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7628 */dev/null*)
7629 lt_cv_path_NM="$tmp_nm -p"
7630 break 2
7631 ;;
7632 *)
7633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7634 continue # so that we can try to find one that supports BSD flags
7635 ;;
7636 esac
7637 ;;
7638 esac
7639 fi
7640 done
7641 IFS=$lt_save_ifs
7642 done
7643 : ${lt_cv_path_NM=no}
7644 fi ;;
7645 esac
7646 fi
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7648 printf "%s\n" "$lt_cv_path_NM" >&6; }
7649 if test no != "$lt_cv_path_NM"; then
7650 NM=$lt_cv_path_NM
7651 else
7652 # Didn't find any BSD compatible name lister, look for dumpbin.
7653 if test -n "$DUMPBIN"; then :
7654 # Let the user override the test.
7655 else
7656 if test -n "$ac_tool_prefix"; then
7657 for ac_prog in dumpbin "link -dump"
7658 do
7659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 printf %s "checking for $ac_word... " >&6; }
7663 if test ${ac_cv_prog_DUMPBIN+y}
7664 then :
7665 printf %s "(cached) " >&6
7666 else case e in #(
7667 e) if test -n "$DUMPBIN"; then
7668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673 IFS=$as_save_IFS
7674 case $as_dir in #(((
7675 '') as_dir=./ ;;
7676 */) ;;
7677 *) as_dir=$as_dir/ ;;
7678 esac
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689 fi ;;
7690 esac
7691 fi
7692 DUMPBIN=$ac_cv_prog_DUMPBIN
7693 if test -n "$DUMPBIN"; then
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7695 printf "%s\n" "$DUMPBIN" >&6; }
7696 else
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 printf "%s\n" "no" >&6; }
7699 fi
7700
7701
7702 test -n "$DUMPBIN" && break
7703 done
7704 fi
7705 if test -z "$DUMPBIN"; then
7706 ac_ct_DUMPBIN=$DUMPBIN
7707 for ac_prog in dumpbin "link -dump"
7708 do
7709 # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 printf %s "checking for $ac_word... " >&6; }
7713 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else case e in #(
7717 e) if test -n "$ac_ct_DUMPBIN"; then
7718 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 case $as_dir in #(((
7725 '') as_dir=./ ;;
7726 */) ;;
7727 *) as_dir=$as_dir/ ;;
7728 esac
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi ;;
7740 esac
7741 fi
7742 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7743 if test -n "$ac_ct_DUMPBIN"; then
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7745 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7746 else
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 printf "%s\n" "no" >&6; }
7749 fi
7750
7751
7752 test -n "$ac_ct_DUMPBIN" && break
7753 done
7754
7755 if test "x$ac_ct_DUMPBIN" = x; then
7756 DUMPBIN=":"
7757 else
7758 case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764 DUMPBIN=$ac_ct_DUMPBIN
7765 fi
7766 fi
7767
7768 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7769 *COFF*)
7770 DUMPBIN="$DUMPBIN -symbols -headers"
7771 ;;
7772 *)
7773 DUMPBIN=:
7774 ;;
7775 esac
7776 fi
7777
7778 if test : != "$DUMPBIN"; then
7779 NM=$DUMPBIN
7780 fi
7781 fi
7782 test -z "$NM" && NM=nm
7783
7784
7785
7786
7787
7788
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7790 printf %s "checking the name lister ($NM) interface... " >&6; }
7791 if test ${lt_cv_nm_interface+y}
7792 then :
7793 printf %s "(cached) " >&6
7794 else case e in #(
7795 e) lt_cv_nm_interface="BSD nm"
7796 echo "int some_variable = 0;" > conftest.$ac_ext
7797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7798 (eval "$ac_compile" 2>conftest.err)
7799 cat conftest.err >&5
7800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7802 cat conftest.err >&5
7803 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7804 cat conftest.out >&5
7805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7806 lt_cv_nm_interface="MS dumpbin"
7807 fi
7808 rm -f conftest* ;;
7809 esac
7810 fi
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7812 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7813
7814 # find the maximum length of command line arguments
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7816 printf %s "checking the maximum length of command line arguments... " >&6; }
7817 if test ${lt_cv_sys_max_cmd_len+y}
7818 then :
7819 printf %s "(cached) " >&6
7820 else case e in #(
7821 e) i=0
7822 teststring=ABCD
7823
7824 case $build_os in
7825 msdosdjgpp*)
7826 # On DJGPP, this test can blow up pretty badly due to problems in libc
7827 # (any single argument exceeding 2000 bytes causes a buffer overrun
7828 # during glob expansion). Even if it were fixed, the result of this
7829 # check would be larger than it should be.
7830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7831 ;;
7832
7833 gnu* | ironclad*)
7834 # Under GNU Hurd and Ironclad, this test is not required because there
7835 # is no limit to the length of command line arguments.
7836 # Libtool will interpret -1 as no limit whatsoever
7837 lt_cv_sys_max_cmd_len=-1;
7838 ;;
7839
7840 cygwin* | mingw* | windows* | cegcc*)
7841 # On Win9x/ME, this test blows up -- it succeeds, but takes
7842 # about 5 minutes as the teststring grows exponentially.
7843 # Worse, since 9x/ME are not pre-emptively multitasking,
7844 # you end up with a "frozen" computer, even though with patience
7845 # the test eventually succeeds (with a max line length of 256k).
7846 # Instead, let's just punt: use the minimum linelength reported by
7847 # all of the supported platforms: 8192 (on NT/2K/XP).
7848 lt_cv_sys_max_cmd_len=8192;
7849 ;;
7850
7851 mint*)
7852 # On MiNT this can take a long time and run out of memory.
7853 lt_cv_sys_max_cmd_len=8192;
7854 ;;
7855
7856 amigaos*)
7857 # On AmigaOS with pdksh, this test takes hours, literally.
7858 # So we just punt and use a minimum line length of 8192.
7859 lt_cv_sys_max_cmd_len=8192;
7860 ;;
7861
7862 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7863 # This has been around since 386BSD, at least. Likely further.
7864 if test -x /sbin/sysctl; then
7865 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7866 elif test -x /usr/sbin/sysctl; then
7867 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7868 else
7869 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7870 fi
7871 # And add a safety zone
7872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7874 ;;
7875
7876 interix*)
7877 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7878 lt_cv_sys_max_cmd_len=196608
7879 ;;
7880
7881 os2*)
7882 # The test takes a long time on OS/2.
7883 lt_cv_sys_max_cmd_len=8192
7884 ;;
7885
7886 osf*)
7887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7889 # nice to cause kernel panics so lets avoid the loop below.
7890 # First set a reasonable default.
7891 lt_cv_sys_max_cmd_len=16384
7892 #
7893 if test -x /sbin/sysconfig; then
7894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7896 esac
7897 fi
7898 ;;
7899 sco3.2v5*)
7900 lt_cv_sys_max_cmd_len=102400
7901 ;;
7902 sysv5* | sco5v6* | sysv4.2uw2*)
7903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7904 if test -n "$kargmax"; then
7905 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7906 else
7907 lt_cv_sys_max_cmd_len=32768
7908 fi
7909 ;;
7910 *)
7911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7912 if test -n "$lt_cv_sys_max_cmd_len" && \
7913 test undefined != "$lt_cv_sys_max_cmd_len"; then
7914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7916 else
7917 # Make teststring a little bigger before we do anything with it.
7918 # a 1K string should be a reasonable start.
7919 for i in 1 2 3 4 5 6 7 8; do
7920 teststring=$teststring$teststring
7921 done
7922 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7923 # If test is not a shell built-in, we'll probably end up computing a
7924 # maximum length that is only half of the actual maximum length, but
7925 # we can't tell.
7926 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7927 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7928 test 17 != "$i" # 1/2 MB should be enough
7929 do
7930 i=`expr $i + 1`
7931 teststring=$teststring$teststring
7932 done
7933 # Only check the string length outside the loop.
7934 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7935 teststring=
7936 # Add a significant safety factor because C++ compilers can tack on
7937 # massive amounts of additional arguments before passing them to the
7938 # linker. It appears as though 1/2 is a usable value.
7939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7940 fi
7941 ;;
7942 esac
7943 ;;
7944 esac
7945 fi
7946
7947 if test -n "$lt_cv_sys_max_cmd_len"; then
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7949 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7950 else
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7952 printf "%s\n" "none" >&6; }
7953 fi
7954 max_cmd_len=$lt_cv_sys_max_cmd_len
7955
7956
7957
7958
7959
7960
7961 : ${CP="cp -f"}
7962 : ${MV="mv -f"}
7963 : ${RM="rm -f"}
7964
7965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7966 lt_unset=unset
7967 else
7968 lt_unset=false
7969 fi
7970
7971
7972
7973
7974
7975 # test EBCDIC or ASCII
7976 case `echo X|tr X '\101'` in
7977 A) # ASCII based system
7978 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7979 lt_SP2NL='tr \040 \012'
7980 lt_NL2SP='tr \015\012 \040\040'
7981 ;;
7982 *) # EBCDIC based system
7983 lt_SP2NL='tr \100 \n'
7984 lt_NL2SP='tr \r\n \100\100'
7985 ;;
7986 esac
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7997 printf %s "checking how to convert $build file names to $host format... " >&6; }
7998 if test ${lt_cv_to_host_file_cmd+y}
7999 then :
8000 printf %s "(cached) " >&6
8001 else case e in #(
8002 e) case $host in
8003 *-*-mingw* )
8004 case $build in
8005 *-*-mingw* | *-*-windows* ) # actually msys
8006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8007 ;;
8008 *-*-cygwin* )
8009 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8010 ;;
8011 * ) # otherwise, assume *nix
8012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8013 ;;
8014 esac
8015 ;;
8016 *-*-cygwin* )
8017 case $build in
8018 *-*-mingw* | *-*-windows* ) # actually msys
8019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8020 ;;
8021 *-*-cygwin* )
8022 lt_cv_to_host_file_cmd=func_convert_file_noop
8023 ;;
8024 * ) # otherwise, assume *nix
8025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8026 ;;
8027 esac
8028 ;;
8029 * ) # unhandled hosts (and "normal" native builds)
8030 lt_cv_to_host_file_cmd=func_convert_file_noop
8031 ;;
8032 esac
8033 ;;
8034 esac
8035 fi
8036
8037 to_host_file_cmd=$lt_cv_to_host_file_cmd
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8039 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8040
8041
8042
8043
8044
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8046 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8047 if test ${lt_cv_to_tool_file_cmd+y}
8048 then :
8049 printf %s "(cached) " >&6
8050 else case e in #(
8051 e) #assume ordinary cross tools, or native build.
8052 lt_cv_to_tool_file_cmd=func_convert_file_noop
8053 case $host in
8054 *-*-mingw* | *-*-windows* )
8055 case $build in
8056 *-*-mingw* | *-*-windows* ) # actually msys
8057 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8058 ;;
8059 esac
8060 ;;
8061 esac
8062 ;;
8063 esac
8064 fi
8065
8066 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8068 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8069
8070
8071
8072
8073
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8075 printf %s "checking for $LD option to reload object files... " >&6; }
8076 if test ${lt_cv_ld_reload_flag+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else case e in #(
8080 e) lt_cv_ld_reload_flag='-r' ;;
8081 esac
8082 fi
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8084 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8085 reload_flag=$lt_cv_ld_reload_flag
8086 case $reload_flag in
8087 "" | " "*) ;;
8088 *) reload_flag=" $reload_flag" ;;
8089 esac
8090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8091 case $host_os in
8092 cygwin* | mingw* | windows* | pw32* | cegcc*)
8093 if test yes != "$GCC"; then
8094 reload_cmds=false
8095 fi
8096 ;;
8097 darwin*)
8098 if test yes = "$GCC"; then
8099 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8100 else
8101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8102 fi
8103 ;;
8104 esac
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114 # Extract the first word of "file", so it can be a program name with args.
8115 set dummy file; ac_word=$2
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 printf %s "checking for $ac_word... " >&6; }
8118 if test ${ac_cv_prog_FILECMD+y}
8119 then :
8120 printf %s "(cached) " >&6
8121 else case e in #(
8122 e) if test -n "$FILECMD"; then
8123 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 case $as_dir in #(((
8130 '') as_dir=./ ;;
8131 */) ;;
8132 *) as_dir=$as_dir/ ;;
8133 esac
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_FILECMD="file"
8137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8145 fi ;;
8146 esac
8147 fi
8148 FILECMD=$ac_cv_prog_FILECMD
8149 if test -n "$FILECMD"; then
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8151 printf "%s\n" "$FILECMD" >&6; }
8152 else
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 printf "%s\n" "no" >&6; }
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 printf %s "checking for $ac_word... " >&6; }
8169 if test ${ac_cv_prog_OBJDUMP+y}
8170 then :
8171 printf %s "(cached) " >&6
8172 else case e in #(
8173 e) if test -n "$OBJDUMP"; then
8174 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179 IFS=$as_save_IFS
8180 case $as_dir in #(((
8181 '') as_dir=./ ;;
8182 */) ;;
8183 *) as_dir=$as_dir/ ;;
8184 esac
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi ;;
8196 esac
8197 fi
8198 OBJDUMP=$ac_cv_prog_OBJDUMP
8199 if test -n "$OBJDUMP"; then
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8201 printf "%s\n" "$OBJDUMP" >&6; }
8202 else
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 printf "%s\n" "no" >&6; }
8205 fi
8206
8207
8208 fi
8209 if test -z "$ac_cv_prog_OBJDUMP"; then
8210 ac_ct_OBJDUMP=$OBJDUMP
8211 # Extract the first word of "objdump", so it can be a program name with args.
8212 set dummy objdump; ac_word=$2
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 printf %s "checking for $ac_word... " >&6; }
8215 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e) if test -n "$ac_ct_OBJDUMP"; then
8220 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225 IFS=$as_save_IFS
8226 case $as_dir in #(((
8227 '') as_dir=./ ;;
8228 */) ;;
8229 *) as_dir=$as_dir/ ;;
8230 esac
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi ;;
8242 esac
8243 fi
8244 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8245 if test -n "$ac_ct_OBJDUMP"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8247 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 fi
8252
8253 if test "x$ac_ct_OBJDUMP" = x; then
8254 OBJDUMP="false"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262 OBJDUMP=$ac_ct_OBJDUMP
8263 fi
8264 else
8265 OBJDUMP="$ac_cv_prog_OBJDUMP"
8266 fi
8267
8268 test -z "$OBJDUMP" && OBJDUMP=objdump
8269
8270
8271
8272
8273
8274
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8276 printf %s "checking how to recognize dependent libraries... " >&6; }
8277 if test ${lt_cv_deplibs_check_method+y}
8278 then :
8279 printf %s "(cached) " >&6
8280 else case e in #(
8281 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8282 lt_cv_file_magic_test_file=
8283 lt_cv_deplibs_check_method='unknown'
8284 # Need to set the preceding variable on all platforms that support
8285 # interlibrary dependencies.
8286 # 'none' -- dependencies not supported.
8287 # 'unknown' -- same as none, but documents that we really don't know.
8288 # 'pass_all' -- all dependencies passed with no checks.
8289 # 'file_magic [[regex]]' -- check by looking for files in library path
8290 # that responds to the $file_magic_cmd with a given extended regex.
8291 # If you have 'file' or equivalent on your system and you're not sure
8292 # whether 'pass_all' will *always* work, you probably want this one.
8293
8294 case $host_os in
8295 aix[4-9]*)
8296 lt_cv_deplibs_check_method=pass_all
8297 ;;
8298
8299 beos*)
8300 lt_cv_deplibs_check_method=pass_all
8301 ;;
8302
8303 bsdi[45]*)
8304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8305 lt_cv_file_magic_cmd='$FILECMD -L'
8306 lt_cv_file_magic_test_file=/shlib/libc.so
8307 ;;
8308
8309 cygwin*)
8310 # func_win32_libid is a shell function defined in ltmain.sh
8311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8312 lt_cv_file_magic_cmd='func_win32_libid'
8313 ;;
8314
8315 mingw* | windows* | pw32*)
8316 # Base MSYS/MinGW do not provide the 'file' command needed by
8317 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8318 # unless we find 'file', for example because we are cross-compiling.
8319 if ( file / ) >/dev/null 2>&1; then
8320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8321 lt_cv_file_magic_cmd='func_win32_libid'
8322 else
8323 # Keep this pattern in sync with the one in func_win32_libid.
8324 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8325 lt_cv_file_magic_cmd='$OBJDUMP -f'
8326 fi
8327 ;;
8328
8329 cegcc*)
8330 # use the weaker test based on 'objdump'. See mingw*.
8331 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8332 lt_cv_file_magic_cmd='$OBJDUMP -f'
8333 ;;
8334
8335 darwin* | rhapsody*)
8336 lt_cv_deplibs_check_method=pass_all
8337 ;;
8338
8339 freebsd* | dragonfly* | midnightbsd*)
8340 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8341 case $host_cpu in
8342 i*86 )
8343 # Not sure whether the presence of OpenBSD here was a mistake.
8344 # Let's accept both of them until this is cleared up.
8345 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8346 lt_cv_file_magic_cmd=$FILECMD
8347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8348 ;;
8349 esac
8350 else
8351 lt_cv_deplibs_check_method=pass_all
8352 fi
8353 ;;
8354
8355 haiku*)
8356 lt_cv_deplibs_check_method=pass_all
8357 ;;
8358
8359 hpux10.20* | hpux11*)
8360 lt_cv_file_magic_cmd=$FILECMD
8361 case $host_cpu in
8362 ia64*)
8363 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8364 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8365 ;;
8366 hppa*64*)
8367 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]'
8368 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8369 ;;
8370 *)
8371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8372 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8373 ;;
8374 esac
8375 ;;
8376
8377 interix[3-9]*)
8378 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8380 ;;
8381
8382 irix5* | irix6* | nonstopux*)
8383 case $LD in
8384 *-32|*"-32 ") libmagic=32-bit;;
8385 *-n32|*"-n32 ") libmagic=N32;;
8386 *-64|*"-64 ") libmagic=64-bit;;
8387 *) libmagic=never-match;;
8388 esac
8389 lt_cv_deplibs_check_method=pass_all
8390 ;;
8391
8392 # This must be glibc/ELF.
8393 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8394 lt_cv_deplibs_check_method=pass_all
8395 ;;
8396
8397 *-mlibc)
8398 lt_cv_deplibs_check_method=pass_all
8399 ;;
8400
8401 netbsd* | netbsdelf*-gnu)
8402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8404 else
8405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8406 fi
8407 ;;
8408
8409 newos6*)
8410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8411 lt_cv_file_magic_cmd=$FILECMD
8412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8413 ;;
8414
8415 *nto* | *qnx*)
8416 lt_cv_deplibs_check_method=pass_all
8417 ;;
8418
8419 openbsd*)
8420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8422 else
8423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8424 fi
8425 ;;
8426
8427 osf3* | osf4* | osf5*)
8428 lt_cv_deplibs_check_method=pass_all
8429 ;;
8430
8431 rdos*)
8432 lt_cv_deplibs_check_method=pass_all
8433 ;;
8434
8435 serenity*)
8436 lt_cv_deplibs_check_method=pass_all
8437 ;;
8438
8439 solaris*)
8440 lt_cv_deplibs_check_method=pass_all
8441 ;;
8442
8443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8444 lt_cv_deplibs_check_method=pass_all
8445 ;;
8446
8447 sysv4 | sysv4.3*)
8448 case $host_vendor in
8449 motorola)
8450 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]'
8451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8452 ;;
8453 ncr)
8454 lt_cv_deplibs_check_method=pass_all
8455 ;;
8456 sequent)
8457 lt_cv_file_magic_cmd='/bin/file'
8458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8459 ;;
8460 sni)
8461 lt_cv_file_magic_cmd='/bin/file'
8462 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8463 lt_cv_file_magic_test_file=/lib/libc.so
8464 ;;
8465 siemens)
8466 lt_cv_deplibs_check_method=pass_all
8467 ;;
8468 pc)
8469 lt_cv_deplibs_check_method=pass_all
8470 ;;
8471 esac
8472 ;;
8473
8474 tpf*)
8475 lt_cv_deplibs_check_method=pass_all
8476 ;;
8477 os2*)
8478 lt_cv_deplibs_check_method=pass_all
8479 ;;
8480 esac
8481 ;;
8482 esac
8483 fi
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8485 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8486
8487 file_magic_glob=
8488 want_nocaseglob=no
8489 if test "$build" = "$host"; then
8490 case $host_os in
8491 mingw* | windows* | pw32*)
8492 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8493 want_nocaseglob=yes
8494 else
8495 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8496 fi
8497 ;;
8498 esac
8499 fi
8500
8501 file_magic_cmd=$lt_cv_file_magic_cmd
8502 deplibs_check_method=$lt_cv_deplibs_check_method
8503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 printf %s "checking for $ac_word... " >&6; }
8531 if test ${ac_cv_prog_DLLTOOL+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) if test -n "$DLLTOOL"; then
8536 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 case $as_dir in #(((
8543 '') as_dir=./ ;;
8544 */) ;;
8545 *) as_dir=$as_dir/ ;;
8546 esac
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 fi ;;
8558 esac
8559 fi
8560 DLLTOOL=$ac_cv_prog_DLLTOOL
8561 if test -n "$DLLTOOL"; then
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8563 printf "%s\n" "$DLLTOOL" >&6; }
8564 else
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 printf "%s\n" "no" >&6; }
8567 fi
8568
8569
8570 fi
8571 if test -z "$ac_cv_prog_DLLTOOL"; then
8572 ac_ct_DLLTOOL=$DLLTOOL
8573 # Extract the first word of "dlltool", so it can be a program name with args.
8574 set dummy dlltool; ac_word=$2
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 printf %s "checking for $ac_word... " >&6; }
8577 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else case e in #(
8581 e) if test -n "$ac_ct_DLLTOOL"; then
8582 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi ;;
8604 esac
8605 fi
8606 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8607 if test -n "$ac_ct_DLLTOOL"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8609 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8610 else
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 printf "%s\n" "no" >&6; }
8613 fi
8614
8615 if test "x$ac_ct_DLLTOOL" = x; then
8616 DLLTOOL="false"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 DLLTOOL=$ac_ct_DLLTOOL
8625 fi
8626 else
8627 DLLTOOL="$ac_cv_prog_DLLTOOL"
8628 fi
8629
8630 test -z "$DLLTOOL" && DLLTOOL=dlltool
8631
8632
8633
8634
8635
8636
8637
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8639 printf %s "checking how to associate runtime and link libraries... " >&6; }
8640 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else case e in #(
8644 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8645
8646 case $host_os in
8647 cygwin* | mingw* | windows* | pw32* | cegcc*)
8648 # two different shell functions defined in ltmain.sh;
8649 # decide which one to use based on capabilities of $DLLTOOL
8650 case `$DLLTOOL --help 2>&1` in
8651 *--identify-strict*)
8652 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8653 ;;
8654 *)
8655 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8656 ;;
8657 esac
8658 ;;
8659 *)
8660 # fallback: assume linklib IS sharedlib
8661 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8662 ;;
8663 esac
8664 ;;
8665 esac
8666 fi
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8668 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8669 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8670 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8671
8672
8673
8674
8675
8676
8677
8678
8679 if test -n "$ac_tool_prefix"; then
8680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 printf %s "checking for $ac_word... " >&6; }
8684 if test ${ac_cv_prog_RANLIB+y}
8685 then :
8686 printf %s "(cached) " >&6
8687 else case e in #(
8688 e) if test -n "$RANLIB"; then
8689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694 IFS=$as_save_IFS
8695 case $as_dir in #(((
8696 '') as_dir=./ ;;
8697 */) ;;
8698 *) as_dir=$as_dir/ ;;
8699 esac
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706 done
8707 done
8708 IFS=$as_save_IFS
8709
8710 fi ;;
8711 esac
8712 fi
8713 RANLIB=$ac_cv_prog_RANLIB
8714 if test -n "$RANLIB"; then
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8716 printf "%s\n" "$RANLIB" >&6; }
8717 else
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 printf "%s\n" "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 if test -z "$ac_cv_prog_RANLIB"; then
8725 ac_ct_RANLIB=$RANLIB
8726 # Extract the first word of "ranlib", so it can be a program name with args.
8727 set dummy ranlib; ac_word=$2
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 printf %s "checking for $ac_word... " >&6; }
8730 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) if test -n "$ac_ct_RANLIB"; then
8735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740 IFS=$as_save_IFS
8741 case $as_dir in #(((
8742 '') as_dir=./ ;;
8743 */) ;;
8744 *) as_dir=$as_dir/ ;;
8745 esac
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_ac_ct_RANLIB="ranlib"
8749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756 fi ;;
8757 esac
8758 fi
8759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8760 if test -n "$ac_ct_RANLIB"; then
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8762 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8763 else
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 printf "%s\n" "no" >&6; }
8766 fi
8767
8768 if test "x$ac_ct_RANLIB" = x; then
8769 RANLIB=":"
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772 yes:)
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8776 esac
8777 RANLIB=$ac_ct_RANLIB
8778 fi
8779 else
8780 RANLIB="$ac_cv_prog_RANLIB"
8781 fi
8782
8783 if test -n "$ac_tool_prefix"; then
8784 for ac_prog in ar
8785 do
8786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 printf %s "checking for $ac_word... " >&6; }
8790 if test ${ac_cv_prog_AR+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e) if test -n "$AR"; then
8795 ac_cv_prog_AR="$AR" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800 IFS=$as_save_IFS
8801 case $as_dir in #(((
8802 '') as_dir=./ ;;
8803 */) ;;
8804 *) as_dir=$as_dir/ ;;
8805 esac
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812 done
8813 done
8814 IFS=$as_save_IFS
8815
8816 fi ;;
8817 esac
8818 fi
8819 AR=$ac_cv_prog_AR
8820 if test -n "$AR"; then
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8822 printf "%s\n" "$AR" >&6; }
8823 else
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 printf "%s\n" "no" >&6; }
8826 fi
8827
8828
8829 test -n "$AR" && break
8830 done
8831 fi
8832 if test -z "$AR"; then
8833 ac_ct_AR=$AR
8834 for ac_prog in ar
8835 do
8836 # Extract the first word of "$ac_prog", so it can be a program name with args.
8837 set dummy $ac_prog; ac_word=$2
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 printf %s "checking for $ac_word... " >&6; }
8840 if test ${ac_cv_prog_ac_ct_AR+y}
8841 then :
8842 printf %s "(cached) " >&6
8843 else case e in #(
8844 e) if test -n "$ac_ct_AR"; then
8845 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850 IFS=$as_save_IFS
8851 case $as_dir in #(((
8852 '') as_dir=./ ;;
8853 */) ;;
8854 *) as_dir=$as_dir/ ;;
8855 esac
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_ac_ct_AR="$ac_prog"
8859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8860 break 2
8861 fi
8862 done
8863 done
8864 IFS=$as_save_IFS
8865
8866 fi ;;
8867 esac
8868 fi
8869 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8870 if test -n "$ac_ct_AR"; then
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8872 printf "%s\n" "$ac_ct_AR" >&6; }
8873 else
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 printf "%s\n" "no" >&6; }
8876 fi
8877
8878
8879 test -n "$ac_ct_AR" && break
8880 done
8881
8882 if test "x$ac_ct_AR" = x; then
8883 AR="false"
8884 else
8885 case $cross_compiling:$ac_tool_warned in
8886 yes:)
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8889 ac_tool_warned=yes ;;
8890 esac
8891 AR=$ac_ct_AR
8892 fi
8893 fi
8894
8895 : ${AR=ar}
8896
8897
8898
8899
8900
8901
8902 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8903 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8904 # higher priority because that's what people were doing historically (setting
8905 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8906 # variable obsoleted/removed.
8907
8908 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8909 lt_ar_flags=$AR_FLAGS
8910
8911
8912
8913
8914
8915
8916 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8917 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8918
8919
8920
8921
8922
8923
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8925 printf %s "checking for archiver @FILE support... " >&6; }
8926 if test ${lt_cv_ar_at_file+y}
8927 then :
8928 printf %s "(cached) " >&6
8929 else case e in #(
8930 e) lt_cv_ar_at_file=no
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933
8934 int
8935 main (void)
8936 {
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_cxx_try_compile "$LINENO"
8943 then :
8944 echo conftest.$ac_objext > conftest.lst
8945 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8947 (eval $lt_ar_try) 2>&5
8948 ac_status=$?
8949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8950 test $ac_status = 0; }
8951 if test 0 -eq "$ac_status"; then
8952 # Ensure the archiver fails upon bogus file names.
8953 rm -f conftest.$ac_objext libconftest.a
8954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8955 (eval $lt_ar_try) 2>&5
8956 ac_status=$?
8957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8958 test $ac_status = 0; }
8959 if test 0 -ne "$ac_status"; then
8960 lt_cv_ar_at_file=@
8961 fi
8962 fi
8963 rm -f conftest.* libconftest.a
8964
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8967 ;;
8968 esac
8969 fi
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8971 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8972
8973 if test no = "$lt_cv_ar_at_file"; then
8974 archiver_list_spec=
8975 else
8976 archiver_list_spec=$lt_cv_ar_at_file
8977 fi
8978
8979
8980
8981
8982
8983
8984
8985 if test -n "$ac_tool_prefix"; then
8986 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8987 set dummy ${ac_tool_prefix}strip; ac_word=$2
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 printf %s "checking for $ac_word... " >&6; }
8990 if test ${ac_cv_prog_STRIP+y}
8991 then :
8992 printf %s "(cached) " >&6
8993 else case e in #(
8994 e) if test -n "$STRIP"; then
8995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000 IFS=$as_save_IFS
9001 case $as_dir in #(((
9002 '') as_dir=./ ;;
9003 */) ;;
9004 *) as_dir=$as_dir/ ;;
9005 esac
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9010 break 2
9011 fi
9012 done
9013 done
9014 IFS=$as_save_IFS
9015
9016 fi ;;
9017 esac
9018 fi
9019 STRIP=$ac_cv_prog_STRIP
9020 if test -n "$STRIP"; then
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9022 printf "%s\n" "$STRIP" >&6; }
9023 else
9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 printf "%s\n" "no" >&6; }
9026 fi
9027
9028
9029 fi
9030 if test -z "$ac_cv_prog_STRIP"; then
9031 ac_ct_STRIP=$STRIP
9032 # Extract the first word of "strip", so it can be a program name with args.
9033 set dummy strip; ac_word=$2
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 printf %s "checking for $ac_word... " >&6; }
9036 if test ${ac_cv_prog_ac_ct_STRIP+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else case e in #(
9040 e) if test -n "$ac_ct_STRIP"; then
9041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9042 else
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9045 do
9046 IFS=$as_save_IFS
9047 case $as_dir in #(((
9048 '') as_dir=./ ;;
9049 */) ;;
9050 *) as_dir=$as_dir/ ;;
9051 esac
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9054 ac_cv_prog_ac_ct_STRIP="strip"
9055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058 done
9059 done
9060 IFS=$as_save_IFS
9061
9062 fi ;;
9063 esac
9064 fi
9065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9066 if test -n "$ac_ct_STRIP"; then
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9068 printf "%s\n" "$ac_ct_STRIP" >&6; }
9069 else
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 printf "%s\n" "no" >&6; }
9072 fi
9073
9074 if test "x$ac_ct_STRIP" = x; then
9075 STRIP=":"
9076 else
9077 case $cross_compiling:$ac_tool_warned in
9078 yes:)
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9081 ac_tool_warned=yes ;;
9082 esac
9083 STRIP=$ac_ct_STRIP
9084 fi
9085 else
9086 STRIP="$ac_cv_prog_STRIP"
9087 fi
9088
9089 test -z "$STRIP" && STRIP=:
9090
9091
9092
9093
9094
9095
9096
9097 test -z "$RANLIB" && RANLIB=:
9098
9099
9100
9101
9102
9103
9104 # Determine commands to create old-style static archives.
9105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9106 old_postinstall_cmds='chmod 644 $oldlib'
9107 old_postuninstall_cmds=
9108
9109 if test -n "$RANLIB"; then
9110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9112 fi
9113
9114 case $host_os in
9115 darwin*)
9116 lock_old_archive_extraction=yes ;;
9117 *)
9118 lock_old_archive_extraction=no ;;
9119 esac
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159 # If no C compiler was specified, use CC.
9160 LTCC=${LTCC-"$CC"}
9161
9162 # If no C compiler flags were specified, use CFLAGS.
9163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9164
9165 # Allow CC to be a program name with arguments.
9166 compiler=$CC
9167
9168
9169 # Check for command to grab the raw symbol name followed by C symbol from nm.
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9171 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9172 if test ${lt_cv_sys_global_symbol_pipe+y}
9173 then :
9174 printf %s "(cached) " >&6
9175 else case e in #(
9176 e)
9177 # These are sane defaults that work on at least a few old systems.
9178 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9179
9180 # Character class describing NM global symbol codes.
9181 symcode='[BCDEGRST]'
9182
9183 # Regexp to match symbols that can be accessed directly from C.
9184 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9185
9186 # Define system-specific variables.
9187 case $host_os in
9188 aix*)
9189 symcode='[BCDT]'
9190 ;;
9191 cygwin* | mingw* | windows* | pw32* | cegcc*)
9192 symcode='[ABCDGISTW]'
9193 ;;
9194 hpux*)
9195 if test ia64 = "$host_cpu"; then
9196 symcode='[ABCDEGRST]'
9197 fi
9198 ;;
9199 irix* | nonstopux*)
9200 symcode='[BCDEGRST]'
9201 ;;
9202 osf*)
9203 symcode='[BCDEGQRST]'
9204 ;;
9205 solaris*)
9206 symcode='[BCDRT]'
9207 ;;
9208 sco3.2v5*)
9209 symcode='[DT]'
9210 ;;
9211 sysv4.2uw2*)
9212 symcode='[DT]'
9213 ;;
9214 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9215 symcode='[ABDT]'
9216 ;;
9217 sysv4)
9218 symcode='[DFNSTU]'
9219 ;;
9220 esac
9221
9222 # If we're using GNU nm, then use its standard symbol codes.
9223 case `$NM -V 2>&1` in
9224 *GNU* | *'with BFD'*)
9225 symcode='[ABCDGIRSTW]' ;;
9226 esac
9227
9228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9229 # Gets list of data symbols to import.
9230 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9231 # Adjust the below global symbol transforms to fixup imported variables.
9232 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9233 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9234 lt_c_name_lib_hook="\
9235 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9236 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9237 else
9238 # Disable hooks by default.
9239 lt_cv_sys_global_symbol_to_import=
9240 lt_cdecl_hook=
9241 lt_c_name_hook=
9242 lt_c_name_lib_hook=
9243 fi
9244
9245 # Transform an extracted symbol line into a proper C declaration.
9246 # Some systems (esp. on ia64) link data and code symbols differently,
9247 # so use this general approach.
9248 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9249 $lt_cdecl_hook\
9250 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9251 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9252
9253 # Transform an extracted symbol line into symbol name and symbol address
9254 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9255 $lt_c_name_hook\
9256 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9257 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9258
9259 # Transform an extracted symbol line into symbol name with lib prefix and
9260 # symbol address.
9261 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9262 $lt_c_name_lib_hook\
9263 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9264 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9265 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9266
9267 # Handle CRLF in mingw tool chain
9268 opt_cr=
9269 case $build_os in
9270 mingw* | windows*)
9271 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9272 ;;
9273 esac
9274
9275 # Try without a prefix underscore, then with it.
9276 for ac_symprfx in "" "_"; do
9277
9278 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9279 symxfrm="\\1 $ac_symprfx\\2 \\2"
9280
9281 # Write the raw and C identifiers.
9282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9283 # Fake it for dumpbin and say T for any non-static function,
9284 # D for any global variable and I for any imported variable.
9285 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9286 # which start with @ or ?.
9287 lt_cv_sys_global_symbol_pipe="$AWK '"\
9288 " {last_section=section; section=\$ 3};"\
9289 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9290 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9291 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9292 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9293 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9294 " \$ 0!~/External *\|/{next};"\
9295 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9296 " {if(hide[section]) next};"\
9297 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9298 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9299 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9300 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9301 " ' prfx=^$ac_symprfx"
9302 else
9303 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9304 fi
9305 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9306
9307 # Check to see that the pipe works correctly.
9308 pipe_works=no
9309
9310 rm -f conftest*
9311 cat > conftest.$ac_ext <<_LT_EOF
9312 #ifdef __cplusplus
9313 extern "C" {
9314 #endif
9315 char nm_test_var;
9316 void nm_test_func(void);
9317 void nm_test_func(void){}
9318 #ifdef __cplusplus
9319 }
9320 #endif
9321 int main(void){nm_test_var='a';nm_test_func();return(0);}
9322 _LT_EOF
9323
9324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9325 (eval $ac_compile) 2>&5
9326 ac_status=$?
9327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9328 test $ac_status = 0; }; then
9329 # Now try to grab the symbols.
9330 nlist=conftest.nm
9331 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9332 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9333 # Try sorting and uniquifying the output.
9334 if sort "$nlist" | uniq > "$nlist"T; then
9335 mv -f "$nlist"T "$nlist"
9336 else
9337 rm -f "$nlist"T
9338 fi
9339
9340 # Make sure that we snagged all the symbols we need.
9341 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9342 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9343 cat <<_LT_EOF > conftest.$ac_ext
9344 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9345 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9346 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9347 relocations are performed -- see ld's documentation on pseudo-relocs. */
9348 # define LT_DLSYM_CONST
9349 #elif defined __osf__
9350 /* This system does not cope well with relocations in const data. */
9351 # define LT_DLSYM_CONST
9352 #else
9353 # define LT_DLSYM_CONST const
9354 #endif
9355
9356 #ifdef __cplusplus
9357 extern "C" {
9358 #endif
9359
9360 _LT_EOF
9361 # Now generate the symbol file.
9362 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9363
9364 cat <<_LT_EOF >> conftest.$ac_ext
9365
9366 /* The mapping between symbol names and symbols. */
9367 LT_DLSYM_CONST struct {
9368 const char *name;
9369 void *address;
9370 }
9371 lt__PROGRAM__LTX_preloaded_symbols[] =
9372 {
9373 { "@PROGRAM@", (void *) 0 },
9374 _LT_EOF
9375 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9376 cat <<\_LT_EOF >> conftest.$ac_ext
9377 {0, (void *) 0}
9378 };
9379
9380 /* This works around a problem in FreeBSD linker */
9381 #ifdef FREEBSD_WORKAROUND
9382 static const void *lt_preloaded_setup() {
9383 return lt__PROGRAM__LTX_preloaded_symbols;
9384 }
9385 #endif
9386
9387 #ifdef __cplusplus
9388 }
9389 #endif
9390 _LT_EOF
9391 # Now try linking the two files.
9392 mv conftest.$ac_objext conftstm.$ac_objext
9393 lt_globsym_save_LIBS=$LIBS
9394 lt_globsym_save_CFLAGS=$CFLAGS
9395 LIBS=conftstm.$ac_objext
9396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9398 (eval $ac_link) 2>&5
9399 ac_status=$?
9400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9401 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9402 pipe_works=yes
9403 fi
9404 LIBS=$lt_globsym_save_LIBS
9405 CFLAGS=$lt_globsym_save_CFLAGS
9406 else
9407 echo "cannot find nm_test_func in $nlist" >&5
9408 fi
9409 else
9410 echo "cannot find nm_test_var in $nlist" >&5
9411 fi
9412 else
9413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9414 fi
9415 else
9416 echo "$progname: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 fi
9419 rm -rf conftest* conftst*
9420
9421 # Do not use the global_symbol_pipe unless it works.
9422 if test yes = "$pipe_works"; then
9423 break
9424 else
9425 lt_cv_sys_global_symbol_pipe=
9426 fi
9427 done
9428 ;;
9429 esac
9430 fi
9431
9432 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9433 lt_cv_sys_global_symbol_to_cdecl=
9434 fi
9435 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9437 printf "%s\n" "failed" >&6; }
9438 else
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9440 printf "%s\n" "ok" >&6; }
9441 fi
9442
9443 # Response file support.
9444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9445 nm_file_list_spec='@'
9446 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9447 nm_file_list_spec='@'
9448 fi
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9487 printf %s "checking for sysroot... " >&6; }
9488
9489 # Check whether --with-sysroot was given.
9490 if test ${with_sysroot+y}
9491 then :
9492 withval=$with_sysroot;
9493 else case e in #(
9494 e) with_sysroot=no ;;
9495 esac
9496 fi
9497
9498
9499 lt_sysroot=
9500 case $with_sysroot in #(
9501 yes)
9502 if test yes = "$GCC"; then
9503 # Trim trailing / since we'll always append absolute paths and we want
9504 # to avoid //, if only for less confusing output for the user.
9505 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9506 fi
9507 ;; #(
9508 /*)
9509 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9510 ;; #(
9511 no|'')
9512 ;; #(
9513 *)
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9515 printf "%s\n" "$with_sysroot" >&6; }
9516 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9517 ;;
9518 esac
9519
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9521 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9522
9523
9524
9525
9526
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9528 printf %s "checking for a working dd... " >&6; }
9529 if test ${ac_cv_path_lt_DD+y}
9530 then :
9531 printf %s "(cached) " >&6
9532 else case e in #(
9533 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9534 cat conftest.i conftest.i >conftest2.i
9535 : ${lt_DD:=$DD}
9536 if test -z "$lt_DD"; then
9537 ac_path_lt_DD_found=false
9538 # Loop through the user's path and test for each of PROGNAME-LIST
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542 IFS=$as_save_IFS
9543 case $as_dir in #(((
9544 '') as_dir=./ ;;
9545 */) ;;
9546 *) as_dir=$as_dir/ ;;
9547 esac
9548 for ac_prog in dd
9549 do
9550 for ac_exec_ext in '' $ac_executable_extensions; do
9551 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9552 as_fn_executable_p "$ac_path_lt_DD" || continue
9553 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9554 cmp -s conftest.i conftest.out \
9555 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9556 fi
9557 $ac_path_lt_DD_found && break 3
9558 done
9559 done
9560 done
9561 IFS=$as_save_IFS
9562 if test -z "$ac_cv_path_lt_DD"; then
9563 :
9564 fi
9565 else
9566 ac_cv_path_lt_DD=$lt_DD
9567 fi
9568
9569 rm -f conftest.i conftest2.i conftest.out ;;
9570 esac
9571 fi
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9573 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9574
9575
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9577 printf %s "checking how to truncate binary pipes... " >&6; }
9578 if test ${lt_cv_truncate_bin+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else case e in #(
9582 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9583 cat conftest.i conftest.i >conftest2.i
9584 lt_cv_truncate_bin=
9585 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9586 cmp -s conftest.i conftest.out \
9587 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9588 fi
9589 rm -f conftest.i conftest2.i conftest.out
9590 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9591 esac
9592 fi
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9594 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9595
9596
9597
9598
9599
9600
9601
9602 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9603 func_cc_basename ()
9604 {
9605 for cc_temp in $*""; do
9606 case $cc_temp in
9607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9609 \-*) ;;
9610 *) break;;
9611 esac
9612 done
9613 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9614 }
9615
9616 # Check whether --enable-libtool-lock was given.
9617 if test ${enable_libtool_lock+y}
9618 then :
9619 enableval=$enable_libtool_lock;
9620 fi
9621
9622 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9623
9624 # Some flags need to be propagated to the compiler or linker for good
9625 # libtool support.
9626 case $host in
9627 ia64-*-hpux*)
9628 # Find out what ABI is being produced by ac_compile, and set mode
9629 # options accordingly.
9630 echo 'int i;' > conftest.$ac_ext
9631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9632 (eval $ac_compile) 2>&5
9633 ac_status=$?
9634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9635 test $ac_status = 0; }; then
9636 case `$FILECMD conftest.$ac_objext` in
9637 *ELF-32*)
9638 HPUX_IA64_MODE=32
9639 ;;
9640 *ELF-64*)
9641 HPUX_IA64_MODE=64
9642 ;;
9643 esac
9644 fi
9645 rm -rf conftest*
9646 ;;
9647 *-*-irix6*)
9648 # Find out what ABI is being produced by ac_compile, and set linker
9649 # options accordingly.
9650 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9652 (eval $ac_compile) 2>&5
9653 ac_status=$?
9654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9655 test $ac_status = 0; }; then
9656 if test yes = "$lt_cv_prog_gnu_ld"; then
9657 case `$FILECMD conftest.$ac_objext` in
9658 *32-bit*)
9659 LD="${LD-ld} -melf32bsmip"
9660 ;;
9661 *N32*)
9662 LD="${LD-ld} -melf32bmipn32"
9663 ;;
9664 *64-bit*)
9665 LD="${LD-ld} -melf64bmip"
9666 ;;
9667 esac
9668 else
9669 case `$FILECMD conftest.$ac_objext` in
9670 *32-bit*)
9671 LD="${LD-ld} -32"
9672 ;;
9673 *N32*)
9674 LD="${LD-ld} -n32"
9675 ;;
9676 *64-bit*)
9677 LD="${LD-ld} -64"
9678 ;;
9679 esac
9680 fi
9681 fi
9682 rm -rf conftest*
9683 ;;
9684
9685 mips64*-*linux*)
9686 # Find out what ABI is being produced by ac_compile, and set linker
9687 # options accordingly.
9688 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9690 (eval $ac_compile) 2>&5
9691 ac_status=$?
9692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693 test $ac_status = 0; }; then
9694 emul=elf
9695 case `$FILECMD conftest.$ac_objext` in
9696 *32-bit*)
9697 emul="${emul}32"
9698 ;;
9699 *64-bit*)
9700 emul="${emul}64"
9701 ;;
9702 esac
9703 case `$FILECMD conftest.$ac_objext` in
9704 *MSB*)
9705 emul="${emul}btsmip"
9706 ;;
9707 *LSB*)
9708 emul="${emul}ltsmip"
9709 ;;
9710 esac
9711 case `$FILECMD conftest.$ac_objext` in
9712 *N32*)
9713 emul="${emul}n32"
9714 ;;
9715 esac
9716 LD="${LD-ld} -m $emul"
9717 fi
9718 rm -rf conftest*
9719 ;;
9720
9721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9722 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9723 # Find out what ABI is being produced by ac_compile, and set linker
9724 # options accordingly. Note that the listed cases only cover the
9725 # situations where additional linker options are needed (such as when
9726 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9727 # vice versa); the common cases where no linker options are needed do
9728 # not appear in the list.
9729 echo 'int i;' > conftest.$ac_ext
9730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9731 (eval $ac_compile) 2>&5
9732 ac_status=$?
9733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9734 test $ac_status = 0; }; then
9735 case `$FILECMD conftest.o` in
9736 *32-bit*)
9737 case $host in
9738 x86_64-*kfreebsd*-gnu)
9739 LD="${LD-ld} -m elf_i386_fbsd"
9740 ;;
9741 x86_64-*linux*|x86_64-gnu*)
9742 case `$FILECMD conftest.o` in
9743 *x86-64*)
9744 LD="${LD-ld} -m elf32_x86_64"
9745 ;;
9746 *)
9747 LD="${LD-ld} -m elf_i386"
9748 ;;
9749 esac
9750 ;;
9751 powerpc64le-*linux*)
9752 LD="${LD-ld} -m elf32lppclinux"
9753 ;;
9754 powerpc64-*linux*)
9755 LD="${LD-ld} -m elf32ppclinux"
9756 ;;
9757 s390x-*linux*)
9758 LD="${LD-ld} -m elf_s390"
9759 ;;
9760 sparc64-*linux*)
9761 LD="${LD-ld} -m elf32_sparc"
9762 ;;
9763 esac
9764 ;;
9765 *64-bit*)
9766 case $host in
9767 x86_64-*kfreebsd*-gnu)
9768 LD="${LD-ld} -m elf_x86_64_fbsd"
9769 ;;
9770 x86_64-*linux*|x86_64-gnu*)
9771 LD="${LD-ld} -m elf_x86_64"
9772 ;;
9773 powerpcle-*linux*)
9774 LD="${LD-ld} -m elf64lppc"
9775 ;;
9776 powerpc-*linux*)
9777 LD="${LD-ld} -m elf64ppc"
9778 ;;
9779 s390*-*linux*|s390*-*tpf*)
9780 LD="${LD-ld} -m elf64_s390"
9781 ;;
9782 sparc*-*linux*)
9783 LD="${LD-ld} -m elf64_sparc"
9784 ;;
9785 esac
9786 ;;
9787 esac
9788 fi
9789 rm -rf conftest*
9790 ;;
9791
9792 *-*-sco3.2v5*)
9793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9794 SAVE_CFLAGS=$CFLAGS
9795 CFLAGS="$CFLAGS -belf"
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9797 printf %s "checking whether the C compiler needs -belf... " >&6; }
9798 if test ${lt_cv_cc_needs_belf+y}
9799 then :
9800 printf %s "(cached) " >&6
9801 else case e in #(
9802 e) ac_ext=c
9803 ac_cpp='$CPP $CPPFLAGS'
9804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9807
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810
9811 int
9812 main (void)
9813 {
9814
9815 ;
9816 return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"
9820 then :
9821 lt_cv_cc_needs_belf=yes
9822 else case e in #(
9823 e) lt_cv_cc_needs_belf=no ;;
9824 esac
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9827 conftest$ac_exeext conftest.$ac_ext
9828 ac_ext=c
9829 ac_cpp='$CPP $CPPFLAGS'
9830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9833 ;;
9834 esac
9835 fi
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9837 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9838 if test yes != "$lt_cv_cc_needs_belf"; then
9839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9840 CFLAGS=$SAVE_CFLAGS
9841 fi
9842 ;;
9843 *-*solaris*)
9844 # Find out what ABI is being produced by ac_compile, and set linker
9845 # options accordingly.
9846 echo 'int i;' > conftest.$ac_ext
9847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9848 (eval $ac_compile) 2>&5
9849 ac_status=$?
9850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851 test $ac_status = 0; }; then
9852 case `$FILECMD conftest.o` in
9853 *64-bit*)
9854 case $lt_cv_prog_gnu_ld in
9855 yes*)
9856 case $host in
9857 i?86-*-solaris*|x86_64-*-solaris*)
9858 LD="${LD-ld} -m elf_x86_64"
9859 ;;
9860 sparc*-*-solaris*)
9861 LD="${LD-ld} -m elf64_sparc"
9862 ;;
9863 esac
9864 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9865 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9866 LD=${LD-ld}_sol2
9867 fi
9868 ;;
9869 *)
9870 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9871 LD="${LD-ld} -64"
9872 fi
9873 ;;
9874 esac
9875 ;;
9876 esac
9877 fi
9878 rm -rf conftest*
9879 ;;
9880 esac
9881
9882 need_locks=$enable_libtool_lock
9883
9884 if test -n "$ac_tool_prefix"; then
9885 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9886 set dummy ${ac_tool_prefix}mt; ac_word=$2
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9888 printf %s "checking for $ac_word... " >&6; }
9889 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9890 then :
9891 printf %s "(cached) " >&6
9892 else case e in #(
9893 e) if test -n "$MANIFEST_TOOL"; then
9894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899 IFS=$as_save_IFS
9900 case $as_dir in #(((
9901 '') as_dir=./ ;;
9902 */) ;;
9903 *) as_dir=$as_dir/ ;;
9904 esac
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9907 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9909 break 2
9910 fi
9911 done
9912 done
9913 IFS=$as_save_IFS
9914
9915 fi ;;
9916 esac
9917 fi
9918 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9919 if test -n "$MANIFEST_TOOL"; then
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9921 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9922 else
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 printf "%s\n" "no" >&6; }
9925 fi
9926
9927
9928 fi
9929 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9930 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9931 # Extract the first word of "mt", so it can be a program name with args.
9932 set dummy mt; ac_word=$2
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 printf %s "checking for $ac_word... " >&6; }
9935 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9936 then :
9937 printf %s "(cached) " >&6
9938 else case e in #(
9939 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9940 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9944 do
9945 IFS=$as_save_IFS
9946 case $as_dir in #(((
9947 '') as_dir=./ ;;
9948 */) ;;
9949 *) as_dir=$as_dir/ ;;
9950 esac
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9953 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9955 break 2
9956 fi
9957 done
9958 done
9959 IFS=$as_save_IFS
9960
9961 fi ;;
9962 esac
9963 fi
9964 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9965 if test -n "$ac_ct_MANIFEST_TOOL"; then
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9967 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9968 else
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 printf "%s\n" "no" >&6; }
9971 fi
9972
9973 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9974 MANIFEST_TOOL=":"
9975 else
9976 case $cross_compiling:$ac_tool_warned in
9977 yes:)
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980 ac_tool_warned=yes ;;
9981 esac
9982 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9983 fi
9984 else
9985 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9986 fi
9987
9988 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9990 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9991 if test ${lt_cv_path_manifest_tool+y}
9992 then :
9993 printf %s "(cached) " >&6
9994 else case e in #(
9995 e) lt_cv_path_manifest_tool=no
9996 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9997 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9998 cat conftest.err >&5
9999 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10000 lt_cv_path_manifest_tool=yes
10001 fi
10002 rm -f conftest* ;;
10003 esac
10004 fi
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10006 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10007 if test yes != "$lt_cv_path_manifest_tool"; then
10008 MANIFEST_TOOL=:
10009 fi
10010
10011
10012
10013
10014
10015
10016 case $host_os in
10017 rhapsody* | darwin*)
10018 if test -n "$ac_tool_prefix"; then
10019 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 printf %s "checking for $ac_word... " >&6; }
10023 if test ${ac_cv_prog_DSYMUTIL+y}
10024 then :
10025 printf %s "(cached) " >&6
10026 else case e in #(
10027 e) if test -n "$DSYMUTIL"; then
10028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033 IFS=$as_save_IFS
10034 case $as_dir in #(((
10035 '') as_dir=./ ;;
10036 */) ;;
10037 *) as_dir=$as_dir/ ;;
10038 esac
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045 done
10046 done
10047 IFS=$as_save_IFS
10048
10049 fi ;;
10050 esac
10051 fi
10052 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10053 if test -n "$DSYMUTIL"; then
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10055 printf "%s\n" "$DSYMUTIL" >&6; }
10056 else
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 printf "%s\n" "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_DSYMUTIL"; then
10064 ac_ct_DSYMUTIL=$DSYMUTIL
10065 # Extract the first word of "dsymutil", so it can be a program name with args.
10066 set dummy dsymutil; ac_word=$2
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 printf %s "checking for $ac_word... " >&6; }
10069 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else case e in #(
10073 e) if test -n "$ac_ct_DSYMUTIL"; then
10074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079 IFS=$as_save_IFS
10080 case $as_dir in #(((
10081 '') as_dir=./ ;;
10082 */) ;;
10083 *) as_dir=$as_dir/ ;;
10084 esac
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10087 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10089 break 2
10090 fi
10091 done
10092 done
10093 IFS=$as_save_IFS
10094
10095 fi ;;
10096 esac
10097 fi
10098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10099 if test -n "$ac_ct_DSYMUTIL"; then
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10101 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10102 else
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 printf "%s\n" "no" >&6; }
10105 fi
10106
10107 if test "x$ac_ct_DSYMUTIL" = x; then
10108 DSYMUTIL=":"
10109 else
10110 case $cross_compiling:$ac_tool_warned in
10111 yes:)
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10114 ac_tool_warned=yes ;;
10115 esac
10116 DSYMUTIL=$ac_ct_DSYMUTIL
10117 fi
10118 else
10119 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10120 fi
10121
10122 if test -n "$ac_tool_prefix"; then
10123 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10124 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 printf %s "checking for $ac_word... " >&6; }
10127 if test ${ac_cv_prog_NMEDIT+y}
10128 then :
10129 printf %s "(cached) " >&6
10130 else case e in #(
10131 e) if test -n "$NMEDIT"; then
10132 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137 IFS=$as_save_IFS
10138 case $as_dir in #(((
10139 '') as_dir=./ ;;
10140 */) ;;
10141 *) as_dir=$as_dir/ ;;
10142 esac
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10145 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149 done
10150 done
10151 IFS=$as_save_IFS
10152
10153 fi ;;
10154 esac
10155 fi
10156 NMEDIT=$ac_cv_prog_NMEDIT
10157 if test -n "$NMEDIT"; then
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10159 printf "%s\n" "$NMEDIT" >&6; }
10160 else
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 printf "%s\n" "no" >&6; }
10163 fi
10164
10165
10166 fi
10167 if test -z "$ac_cv_prog_NMEDIT"; then
10168 ac_ct_NMEDIT=$NMEDIT
10169 # Extract the first word of "nmedit", so it can be a program name with args.
10170 set dummy nmedit; ac_word=$2
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 printf %s "checking for $ac_word... " >&6; }
10173 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10174 then :
10175 printf %s "(cached) " >&6
10176 else case e in #(
10177 e) if test -n "$ac_ct_NMEDIT"; then
10178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183 IFS=$as_save_IFS
10184 case $as_dir in #(((
10185 '') as_dir=./ ;;
10186 */) ;;
10187 *) as_dir=$as_dir/ ;;
10188 esac
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195 done
10196 done
10197 IFS=$as_save_IFS
10198
10199 fi ;;
10200 esac
10201 fi
10202 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10203 if test -n "$ac_ct_NMEDIT"; then
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10205 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10206 else
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 printf "%s\n" "no" >&6; }
10209 fi
10210
10211 if test "x$ac_ct_NMEDIT" = x; then
10212 NMEDIT=":"
10213 else
10214 case $cross_compiling:$ac_tool_warned in
10215 yes:)
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10218 ac_tool_warned=yes ;;
10219 esac
10220 NMEDIT=$ac_ct_NMEDIT
10221 fi
10222 else
10223 NMEDIT="$ac_cv_prog_NMEDIT"
10224 fi
10225
10226 if test -n "$ac_tool_prefix"; then
10227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 printf %s "checking for $ac_word... " >&6; }
10231 if test ${ac_cv_prog_LIPO+y}
10232 then :
10233 printf %s "(cached) " >&6
10234 else case e in #(
10235 e) if test -n "$LIPO"; then
10236 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10237 else
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241 IFS=$as_save_IFS
10242 case $as_dir in #(((
10243 '') as_dir=./ ;;
10244 */) ;;
10245 *) as_dir=$as_dir/ ;;
10246 esac
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10249 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10251 break 2
10252 fi
10253 done
10254 done
10255 IFS=$as_save_IFS
10256
10257 fi ;;
10258 esac
10259 fi
10260 LIPO=$ac_cv_prog_LIPO
10261 if test -n "$LIPO"; then
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10263 printf "%s\n" "$LIPO" >&6; }
10264 else
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 printf "%s\n" "no" >&6; }
10267 fi
10268
10269
10270 fi
10271 if test -z "$ac_cv_prog_LIPO"; then
10272 ac_ct_LIPO=$LIPO
10273 # Extract the first word of "lipo", so it can be a program name with args.
10274 set dummy lipo; ac_word=$2
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 printf %s "checking for $ac_word... " >&6; }
10277 if test ${ac_cv_prog_ac_ct_LIPO+y}
10278 then :
10279 printf %s "(cached) " >&6
10280 else case e in #(
10281 e) if test -n "$ac_ct_LIPO"; then
10282 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10283 else
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10286 do
10287 IFS=$as_save_IFS
10288 case $as_dir in #(((
10289 '') as_dir=./ ;;
10290 */) ;;
10291 *) as_dir=$as_dir/ ;;
10292 esac
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10295 ac_cv_prog_ac_ct_LIPO="lipo"
10296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299 done
10300 done
10301 IFS=$as_save_IFS
10302
10303 fi ;;
10304 esac
10305 fi
10306 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10307 if test -n "$ac_ct_LIPO"; then
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10309 printf "%s\n" "$ac_ct_LIPO" >&6; }
10310 else
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 printf "%s\n" "no" >&6; }
10313 fi
10314
10315 if test "x$ac_ct_LIPO" = x; then
10316 LIPO=":"
10317 else
10318 case $cross_compiling:$ac_tool_warned in
10319 yes:)
10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10322 ac_tool_warned=yes ;;
10323 esac
10324 LIPO=$ac_ct_LIPO
10325 fi
10326 else
10327 LIPO="$ac_cv_prog_LIPO"
10328 fi
10329
10330 if test -n "$ac_tool_prefix"; then
10331 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10332 set dummy ${ac_tool_prefix}otool; ac_word=$2
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 printf %s "checking for $ac_word... " >&6; }
10335 if test ${ac_cv_prog_OTOOL+y}
10336 then :
10337 printf %s "(cached) " >&6
10338 else case e in #(
10339 e) if test -n "$OTOOL"; then
10340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345 IFS=$as_save_IFS
10346 case $as_dir in #(((
10347 '') as_dir=./ ;;
10348 */) ;;
10349 *) as_dir=$as_dir/ ;;
10350 esac
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10355 break 2
10356 fi
10357 done
10358 done
10359 IFS=$as_save_IFS
10360
10361 fi ;;
10362 esac
10363 fi
10364 OTOOL=$ac_cv_prog_OTOOL
10365 if test -n "$OTOOL"; then
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10367 printf "%s\n" "$OTOOL" >&6; }
10368 else
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 printf "%s\n" "no" >&6; }
10371 fi
10372
10373
10374 fi
10375 if test -z "$ac_cv_prog_OTOOL"; then
10376 ac_ct_OTOOL=$OTOOL
10377 # Extract the first word of "otool", so it can be a program name with args.
10378 set dummy otool; ac_word=$2
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 printf %s "checking for $ac_word... " >&6; }
10381 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10382 then :
10383 printf %s "(cached) " >&6
10384 else case e in #(
10385 e) if test -n "$ac_ct_OTOOL"; then
10386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391 IFS=$as_save_IFS
10392 case $as_dir in #(((
10393 '') as_dir=./ ;;
10394 */) ;;
10395 *) as_dir=$as_dir/ ;;
10396 esac
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_ac_ct_OTOOL="otool"
10400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10401 break 2
10402 fi
10403 done
10404 done
10405 IFS=$as_save_IFS
10406
10407 fi ;;
10408 esac
10409 fi
10410 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10411 if test -n "$ac_ct_OTOOL"; then
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10413 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10414 else
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 printf "%s\n" "no" >&6; }
10417 fi
10418
10419 if test "x$ac_ct_OTOOL" = x; then
10420 OTOOL=":"
10421 else
10422 case $cross_compiling:$ac_tool_warned in
10423 yes:)
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10426 ac_tool_warned=yes ;;
10427 esac
10428 OTOOL=$ac_ct_OTOOL
10429 fi
10430 else
10431 OTOOL="$ac_cv_prog_OTOOL"
10432 fi
10433
10434 if test -n "$ac_tool_prefix"; then
10435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10436 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 printf %s "checking for $ac_word... " >&6; }
10439 if test ${ac_cv_prog_OTOOL64+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else case e in #(
10443 e) if test -n "$OTOOL64"; then
10444 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10445 else
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10448 do
10449 IFS=$as_save_IFS
10450 case $as_dir in #(((
10451 '') as_dir=./ ;;
10452 */) ;;
10453 *) as_dir=$as_dir/ ;;
10454 esac
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10457 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10459 break 2
10460 fi
10461 done
10462 done
10463 IFS=$as_save_IFS
10464
10465 fi ;;
10466 esac
10467 fi
10468 OTOOL64=$ac_cv_prog_OTOOL64
10469 if test -n "$OTOOL64"; then
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10471 printf "%s\n" "$OTOOL64" >&6; }
10472 else
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 printf "%s\n" "no" >&6; }
10475 fi
10476
10477
10478 fi
10479 if test -z "$ac_cv_prog_OTOOL64"; then
10480 ac_ct_OTOOL64=$OTOOL64
10481 # Extract the first word of "otool64", so it can be a program name with args.
10482 set dummy otool64; ac_word=$2
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 printf %s "checking for $ac_word... " >&6; }
10485 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10486 then :
10487 printf %s "(cached) " >&6
10488 else case e in #(
10489 e) if test -n "$ac_ct_OTOOL64"; then
10490 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10491 else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10494 do
10495 IFS=$as_save_IFS
10496 case $as_dir in #(((
10497 '') as_dir=./ ;;
10498 */) ;;
10499 *) as_dir=$as_dir/ ;;
10500 esac
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_ac_ct_OTOOL64="otool64"
10504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507 done
10508 done
10509 IFS=$as_save_IFS
10510
10511 fi ;;
10512 esac
10513 fi
10514 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10515 if test -n "$ac_ct_OTOOL64"; then
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10517 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10518 else
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 printf "%s\n" "no" >&6; }
10521 fi
10522
10523 if test "x$ac_ct_OTOOL64" = x; then
10524 OTOOL64=":"
10525 else
10526 case $cross_compiling:$ac_tool_warned in
10527 yes:)
10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10530 ac_tool_warned=yes ;;
10531 esac
10532 OTOOL64=$ac_ct_OTOOL64
10533 fi
10534 else
10535 OTOOL64="$ac_cv_prog_OTOOL64"
10536 fi
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10565 printf %s "checking for -single_module linker flag... " >&6; }
10566 if test ${lt_cv_apple_cc_single_mod+y}
10567 then :
10568 printf %s "(cached) " >&6
10569 else case e in #(
10570 e) lt_cv_apple_cc_single_mod=no
10571 if test -z "$LT_MULTI_MODULE"; then
10572 # By default we will add the -single_module flag. You can override
10573 # by either setting the environment variable LT_MULTI_MODULE
10574 # non-empty at configure time, or by adding -multi_module to the
10575 # link flags.
10576 rm -rf libconftest.dylib*
10577 echo "int foo(void){return 1;}" > conftest.c
10578 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10579 -dynamiclib -Wl,-single_module conftest.c" >&5
10580 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10581 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10582 _lt_result=$?
10583 # If there is a non-empty error log, and "single_module"
10584 # appears in it, assume the flag caused a linker warning
10585 if test -s conftest.err && $GREP single_module conftest.err; then
10586 cat conftest.err >&5
10587 # Otherwise, if the output was created with a 0 exit code from
10588 # the compiler, it worked.
10589 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10590 lt_cv_apple_cc_single_mod=yes
10591 else
10592 cat conftest.err >&5
10593 fi
10594 rm -rf libconftest.dylib*
10595 rm -f conftest.*
10596 fi ;;
10597 esac
10598 fi
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10600 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10601
10602 # Feature test to disable chained fixups since it is not
10603 # compatible with '-undefined dynamic_lookup'
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10605 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10606 if test ${lt_cv_support_no_fixup_chains+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else case e in #(
10610 e) save_LDFLAGS=$LDFLAGS
10611 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614
10615 int
10616 main (void)
10617 {
10618
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"
10624 then :
10625 lt_cv_support_no_fixup_chains=yes
10626 else case e in #(
10627 e) lt_cv_support_no_fixup_chains=no
10628 ;;
10629 esac
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10632 conftest$ac_exeext conftest.$ac_ext
10633 LDFLAGS=$save_LDFLAGS
10634
10635 ;;
10636 esac
10637 fi
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10639 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10640
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10642 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10643 if test ${lt_cv_ld_exported_symbols_list+y}
10644 then :
10645 printf %s "(cached) " >&6
10646 else case e in #(
10647 e) lt_cv_ld_exported_symbols_list=no
10648 save_LDFLAGS=$LDFLAGS
10649 echo "_main" > conftest.sym
10650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653
10654 int
10655 main (void)
10656 {
10657
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_link "$LINENO"
10663 then :
10664 lt_cv_ld_exported_symbols_list=yes
10665 else case e in #(
10666 e) lt_cv_ld_exported_symbols_list=no ;;
10667 esac
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LDFLAGS=$save_LDFLAGS
10672 ;;
10673 esac
10674 fi
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10676 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10677
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10679 printf %s "checking for -force_load linker flag... " >&6; }
10680 if test ${lt_cv_ld_force_load+y}
10681 then :
10682 printf %s "(cached) " >&6
10683 else case e in #(
10684 e) lt_cv_ld_force_load=no
10685 cat > conftest.c << _LT_EOF
10686 int forced_loaded() { return 2;}
10687 _LT_EOF
10688 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10689 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10690 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10691 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10692 echo "$RANLIB libconftest.a" >&5
10693 $RANLIB libconftest.a 2>&5
10694 cat > conftest.c << _LT_EOF
10695 int main(void) { return 0;}
10696 _LT_EOF
10697 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10698 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10699 _lt_result=$?
10700 if test -s conftest.err && $GREP force_load conftest.err; then
10701 cat conftest.err >&5
10702 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10703 lt_cv_ld_force_load=yes
10704 else
10705 cat conftest.err >&5
10706 fi
10707 rm -f conftest.err libconftest.a conftest conftest.c
10708 rm -rf conftest.dSYM
10709 ;;
10710 esac
10711 fi
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10713 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10714 case $host_os in
10715 rhapsody* | darwin1.[012])
10716 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10717 darwin1.*)
10718 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10719 darwin*)
10720 case $MACOSX_DEPLOYMENT_TARGET,$host in
10721 10.[012],*|,*powerpc*-darwin[5-8]*)
10722 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10723 *)
10724 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10725 if test yes = "$lt_cv_support_no_fixup_chains"; then
10726 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10727 fi
10728 ;;
10729 esac
10730 ;;
10731 esac
10732 if test yes = "$lt_cv_apple_cc_single_mod"; then
10733 _lt_dar_single_mod='$single_module'
10734 fi
10735 _lt_dar_needs_single_mod=no
10736 case $host_os in
10737 rhapsody* | darwin1.*)
10738 _lt_dar_needs_single_mod=yes ;;
10739 darwin*)
10740 # When targeting Mac OS X 10.4 (darwin 8) or later,
10741 # -single_module is the default and -multi_module is unsupported.
10742 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10743 # target any OS version that needs -single_module.
10744 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10745 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10746 _lt_dar_needs_single_mod=yes ;;
10747 esac
10748 ;;
10749 esac
10750 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10751 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10752 else
10753 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10754 fi
10755 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10756 _lt_dsymutil='~$DSYMUTIL $lib || :'
10757 else
10758 _lt_dsymutil=
10759 fi
10760 ;;
10761 esac
10762
10763 # func_munge_path_list VARIABLE PATH
10764 # -----------------------------------
10765 # VARIABLE is name of variable containing _space_ separated list of
10766 # directories to be munged by the contents of PATH, which is string
10767 # having a format:
10768 # "DIR[:DIR]:"
10769 # string "DIR[ DIR]" will be prepended to VARIABLE
10770 # ":DIR[:DIR]"
10771 # string "DIR[ DIR]" will be appended to VARIABLE
10772 # "DIRP[:DIRP]::[DIRA:]DIRA"
10773 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10774 # "DIRA[ DIRA]" will be appended to VARIABLE
10775 # "DIR[:DIR]"
10776 # VARIABLE will be replaced by "DIR[ DIR]"
10777 func_munge_path_list ()
10778 {
10779 case x$2 in
10780 x)
10781 ;;
10782 *:)
10783 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10784 ;;
10785 x:*)
10786 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10787 ;;
10788 *::*)
10789 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10790 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10791 ;;
10792 *)
10793 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10794 ;;
10795 esac
10796 }
10797
10798 ac_header= ac_cache=
10799 for ac_item in $ac_header_c_list
10800 do
10801 if test $ac_cache; then
10802 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10803 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10804 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10805 fi
10806 ac_header= ac_cache=
10807 elif test $ac_header; then
10808 ac_cache=$ac_item
10809 else
10810 ac_header=$ac_item
10811 fi
10812 done
10813
10814
10815
10816
10817
10818
10819
10820
10821 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10822 then :
10823
10824 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10825
10826 fi
10827 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10828 "
10829 if test "x$ac_cv_header_dlfcn_h" = xyes
10830 then :
10831 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10832
10833 fi
10834
10835
10836
10837 func_stripname_cnf ()
10838 {
10839 case $2 in
10840 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10841 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10842 esac
10843 } # func_stripname_cnf
10844
10845
10846
10847
10848
10849 # Set options
10850 enable_win32_dll=yes
10851
10852 case $host in
10853 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10854 if test -n "$ac_tool_prefix"; then
10855 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10856 set dummy ${ac_tool_prefix}as; ac_word=$2
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 printf %s "checking for $ac_word... " >&6; }
10859 if test ${ac_cv_prog_AS+y}
10860 then :
10861 printf %s "(cached) " >&6
10862 else case e in #(
10863 e) if test -n "$AS"; then
10864 ac_cv_prog_AS="$AS" # Let the user override the test.
10865 else
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10868 do
10869 IFS=$as_save_IFS
10870 case $as_dir in #(((
10871 '') as_dir=./ ;;
10872 */) ;;
10873 *) as_dir=$as_dir/ ;;
10874 esac
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_AS="${ac_tool_prefix}as"
10878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881 done
10882 done
10883 IFS=$as_save_IFS
10884
10885 fi ;;
10886 esac
10887 fi
10888 AS=$ac_cv_prog_AS
10889 if test -n "$AS"; then
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10891 printf "%s\n" "$AS" >&6; }
10892 else
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 printf "%s\n" "no" >&6; }
10895 fi
10896
10897
10898 fi
10899 if test -z "$ac_cv_prog_AS"; then
10900 ac_ct_AS=$AS
10901 # Extract the first word of "as", so it can be a program name with args.
10902 set dummy as; ac_word=$2
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 printf %s "checking for $ac_word... " >&6; }
10905 if test ${ac_cv_prog_ac_ct_AS+y}
10906 then :
10907 printf %s "(cached) " >&6
10908 else case e in #(
10909 e) if test -n "$ac_ct_AS"; then
10910 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10911 else
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915 IFS=$as_save_IFS
10916 case $as_dir in #(((
10917 '') as_dir=./ ;;
10918 */) ;;
10919 *) as_dir=$as_dir/ ;;
10920 esac
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_ac_ct_AS="as"
10924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927 done
10928 done
10929 IFS=$as_save_IFS
10930
10931 fi ;;
10932 esac
10933 fi
10934 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10935 if test -n "$ac_ct_AS"; then
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10937 printf "%s\n" "$ac_ct_AS" >&6; }
10938 else
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940 printf "%s\n" "no" >&6; }
10941 fi
10942
10943 if test "x$ac_ct_AS" = x; then
10944 AS="false"
10945 else
10946 case $cross_compiling:$ac_tool_warned in
10947 yes:)
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10949 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10950 ac_tool_warned=yes ;;
10951 esac
10952 AS=$ac_ct_AS
10953 fi
10954 else
10955 AS="$ac_cv_prog_AS"
10956 fi
10957
10958 if test -n "$ac_tool_prefix"; then
10959 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10960 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 printf %s "checking for $ac_word... " >&6; }
10963 if test ${ac_cv_prog_DLLTOOL+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else case e in #(
10967 e) if test -n "$DLLTOOL"; then
10968 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10969 else
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973 IFS=$as_save_IFS
10974 case $as_dir in #(((
10975 '') as_dir=./ ;;
10976 */) ;;
10977 *) as_dir=$as_dir/ ;;
10978 esac
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985 done
10986 done
10987 IFS=$as_save_IFS
10988
10989 fi ;;
10990 esac
10991 fi
10992 DLLTOOL=$ac_cv_prog_DLLTOOL
10993 if test -n "$DLLTOOL"; then
10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10995 printf "%s\n" "$DLLTOOL" >&6; }
10996 else
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 printf "%s\n" "no" >&6; }
10999 fi
11000
11001
11002 fi
11003 if test -z "$ac_cv_prog_DLLTOOL"; then
11004 ac_ct_DLLTOOL=$DLLTOOL
11005 # Extract the first word of "dlltool", so it can be a program name with args.
11006 set dummy dlltool; ac_word=$2
11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 printf %s "checking for $ac_word... " >&6; }
11009 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11010 then :
11011 printf %s "(cached) " >&6
11012 else case e in #(
11013 e) if test -n "$ac_ct_DLLTOOL"; then
11014 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11015 else
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11018 do
11019 IFS=$as_save_IFS
11020 case $as_dir in #(((
11021 '') as_dir=./ ;;
11022 */) ;;
11023 *) as_dir=$as_dir/ ;;
11024 esac
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11027 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11029 break 2
11030 fi
11031 done
11032 done
11033 IFS=$as_save_IFS
11034
11035 fi ;;
11036 esac
11037 fi
11038 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11039 if test -n "$ac_ct_DLLTOOL"; then
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11041 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11042 else
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 printf "%s\n" "no" >&6; }
11045 fi
11046
11047 if test "x$ac_ct_DLLTOOL" = x; then
11048 DLLTOOL="false"
11049 else
11050 case $cross_compiling:$ac_tool_warned in
11051 yes:)
11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11054 ac_tool_warned=yes ;;
11055 esac
11056 DLLTOOL=$ac_ct_DLLTOOL
11057 fi
11058 else
11059 DLLTOOL="$ac_cv_prog_DLLTOOL"
11060 fi
11061
11062 if test -n "$ac_tool_prefix"; then
11063 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11064 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 printf %s "checking for $ac_word... " >&6; }
11067 if test ${ac_cv_prog_OBJDUMP+y}
11068 then :
11069 printf %s "(cached) " >&6
11070 else case e in #(
11071 e) if test -n "$OBJDUMP"; then
11072 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11073 else
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077 IFS=$as_save_IFS
11078 case $as_dir in #(((
11079 '') as_dir=./ ;;
11080 */) ;;
11081 *) as_dir=$as_dir/ ;;
11082 esac
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089 done
11090 done
11091 IFS=$as_save_IFS
11092
11093 fi ;;
11094 esac
11095 fi
11096 OBJDUMP=$ac_cv_prog_OBJDUMP
11097 if test -n "$OBJDUMP"; then
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11099 printf "%s\n" "$OBJDUMP" >&6; }
11100 else
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 printf "%s\n" "no" >&6; }
11103 fi
11104
11105
11106 fi
11107 if test -z "$ac_cv_prog_OBJDUMP"; then
11108 ac_ct_OBJDUMP=$OBJDUMP
11109 # Extract the first word of "objdump", so it can be a program name with args.
11110 set dummy objdump; ac_word=$2
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 printf %s "checking for $ac_word... " >&6; }
11113 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11114 then :
11115 printf %s "(cached) " >&6
11116 else case e in #(
11117 e) if test -n "$ac_ct_OBJDUMP"; then
11118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11119 else
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11122 do
11123 IFS=$as_save_IFS
11124 case $as_dir in #(((
11125 '') as_dir=./ ;;
11126 */) ;;
11127 *) as_dir=$as_dir/ ;;
11128 esac
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11131 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11133 break 2
11134 fi
11135 done
11136 done
11137 IFS=$as_save_IFS
11138
11139 fi ;;
11140 esac
11141 fi
11142 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11143 if test -n "$ac_ct_OBJDUMP"; then
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11145 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11146 else
11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 printf "%s\n" "no" >&6; }
11149 fi
11150
11151 if test "x$ac_ct_OBJDUMP" = x; then
11152 OBJDUMP="false"
11153 else
11154 case $cross_compiling:$ac_tool_warned in
11155 yes:)
11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11158 ac_tool_warned=yes ;;
11159 esac
11160 OBJDUMP=$ac_ct_OBJDUMP
11161 fi
11162 else
11163 OBJDUMP="$ac_cv_prog_OBJDUMP"
11164 fi
11165
11166 ;;
11167 esac
11168
11169 test -z "$AS" && AS=as
11170
11171
11172
11173
11174
11175 test -z "$DLLTOOL" && DLLTOOL=dlltool
11176
11177
11178
11179
11180
11181 test -z "$OBJDUMP" && OBJDUMP=objdump
11182
11183
11184
11185
11186 # Check whether --enable-static was given.
11187 if test ${enable_static+y}
11188 then :
11189 enableval=$enable_static; p=${PACKAGE-default}
11190 case $enableval in
11191 yes) enable_static=yes ;;
11192 no) enable_static=no ;;
11193 *)
11194 enable_static=no
11195 # Look at the argument we got. We use all the common list separators.
11196 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11197 for pkg in $enableval; do
11198 IFS=$lt_save_ifs
11199 if test "X$pkg" = "X$p"; then
11200 enable_static=yes
11201 fi
11202 done
11203 IFS=$lt_save_ifs
11204 ;;
11205 esac
11206 else case e in #(
11207 e) enable_static=no ;;
11208 esac
11209 fi
11210
11211
11212
11213
11214
11215
11216
11217 # Check whether --enable-pic was given.
11218 if test ${enable_pic+y}
11219 then :
11220 enableval=$enable_pic; lt_p=${PACKAGE-default}
11221 case $enableval in
11222 yes|no) pic_mode=$enableval ;;
11223 *)
11224 pic_mode=default
11225 # Look at the argument we got. We use all the common list separators.
11226 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11227 for lt_pkg in $enableval; do
11228 IFS=$lt_save_ifs
11229 if test "X$lt_pkg" = "X$lt_p"; then
11230 pic_mode=yes
11231 fi
11232 done
11233 IFS=$lt_save_ifs
11234 ;;
11235 esac
11236 else case e in #(
11237 e) # Check whether --with-pic was given.
11238 if test ${with_pic+y}
11239 then :
11240 withval=$with_pic; lt_p=${PACKAGE-default}
11241 case $withval in
11242 yes|no) pic_mode=$withval ;;
11243 *)
11244 pic_mode=default
11245 # Look at the argument we got. We use all the common list separators.
11246 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11247 for lt_pkg in $withval; do
11248 IFS=$lt_save_ifs
11249 if test "X$lt_pkg" = "X$lt_p"; then
11250 pic_mode=yes
11251 fi
11252 done
11253 IFS=$lt_save_ifs
11254 ;;
11255 esac
11256 else case e in #(
11257 e) pic_mode=yes ;;
11258 esac
11259 fi
11260
11261 ;;
11262 esac
11263 fi
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 enable_dlopen=no
11274
11275
11276
11277 # Check whether --enable-shared was given.
11278 if test ${enable_shared+y}
11279 then :
11280 enableval=$enable_shared; p=${PACKAGE-default}
11281 case $enableval in
11282 yes) enable_shared=yes ;;
11283 no) enable_shared=no ;;
11284 *)
11285 enable_shared=no
11286 # Look at the argument we got. We use all the common list separators.
11287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11288 for pkg in $enableval; do
11289 IFS=$lt_save_ifs
11290 if test "X$pkg" = "X$p"; then
11291 enable_shared=yes
11292 fi
11293 done
11294 IFS=$lt_save_ifs
11295 ;;
11296 esac
11297 else case e in #(
11298 e) enable_shared=yes ;;
11299 esac
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 # Check whether --enable-fast-install was given.
11313 if test ${enable_fast_install+y}
11314 then :
11315 enableval=$enable_fast_install; p=${PACKAGE-default}
11316 case $enableval in
11317 yes) enable_fast_install=yes ;;
11318 no) enable_fast_install=no ;;
11319 *)
11320 enable_fast_install=no
11321 # Look at the argument we got. We use all the common list separators.
11322 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11323 for pkg in $enableval; do
11324 IFS=$lt_save_ifs
11325 if test "X$pkg" = "X$p"; then
11326 enable_fast_install=yes
11327 fi
11328 done
11329 IFS=$lt_save_ifs
11330 ;;
11331 esac
11332 else case e in #(
11333 e) enable_fast_install=yes ;;
11334 esac
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343
11344 shared_archive_member_spec=
11345 case $host,$enable_shared in
11346 power*-*-aix[5-9]*,yes)
11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11348 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11349 # Check whether --enable-aix-soname was given.
11350 if test ${enable_aix_soname+y}
11351 then :
11352 enableval=$enable_aix_soname; case $enableval in
11353 aix|svr4|both)
11354 ;;
11355 *)
11356 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11357 ;;
11358 esac
11359 lt_cv_with_aix_soname=$enable_aix_soname
11360 else case e in #(
11361 e) # Check whether --with-aix-soname was given.
11362 if test ${with_aix_soname+y}
11363 then :
11364 withval=$with_aix_soname; case $withval in
11365 aix|svr4|both)
11366 ;;
11367 *)
11368 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11369 ;;
11370 esac
11371 lt_cv_with_aix_soname=$with_aix_soname
11372 else case e in #(
11373 e) if test ${lt_cv_with_aix_soname+y}
11374 then :
11375 printf %s "(cached) " >&6
11376 else case e in #(
11377 e) lt_cv_with_aix_soname=aix ;;
11378 esac
11379 fi
11380 ;;
11381 esac
11382 fi
11383
11384 enable_aix_soname=$lt_cv_with_aix_soname ;;
11385 esac
11386 fi
11387
11388 with_aix_soname=$enable_aix_soname
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11390 printf "%s\n" "$with_aix_soname" >&6; }
11391 if test aix != "$with_aix_soname"; then
11392 # For the AIX way of multilib, we name the shared archive member
11393 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11394 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11395 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11396 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11397 if test 64 = "${OBJECT_MODE-32}"; then
11398 shared_archive_member_spec=shr_64
11399 else
11400 shared_archive_member_spec=shr
11401 fi
11402 fi
11403 ;;
11404 *)
11405 with_aix_soname=aix
11406 ;;
11407 esac
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 # This can be used to rebuild libtool when needed
11419 LIBTOOL_DEPS=$ltmain
11420
11421 # Always use our own libtool.
11422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 test -z "$LN_S" && LN_S="ln -s"
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468 if test -n "${ZSH_VERSION+set}"; then
11469 setopt NO_GLOB_SUBST
11470 fi
11471
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11473 printf %s "checking for objdir... " >&6; }
11474 if test ${lt_cv_objdir+y}
11475 then :
11476 printf %s "(cached) " >&6
11477 else case e in #(
11478 e) rm -f .libs 2>/dev/null
11479 mkdir .libs 2>/dev/null
11480 if test -d .libs; then
11481 lt_cv_objdir=.libs
11482 else
11483 # MS-DOS does not allow filenames that begin with a dot.
11484 lt_cv_objdir=_libs
11485 fi
11486 rmdir .libs 2>/dev/null ;;
11487 esac
11488 fi
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11490 printf "%s\n" "$lt_cv_objdir" >&6; }
11491 objdir=$lt_cv_objdir
11492
11493
11494
11495
11496
11497 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11498
11499
11500
11501
11502 case $host_os in
11503 aix3*)
11504 # AIX sometimes has problems with the GCC collect2 program. For some
11505 # reason, if we set the COLLECT_NAMES environment variable, the problems
11506 # vanish in a puff of smoke.
11507 if test set != "${COLLECT_NAMES+set}"; then
11508 COLLECT_NAMES=
11509 export COLLECT_NAMES
11510 fi
11511 ;;
11512 esac
11513
11514 # Global variables:
11515 ofile=libtool
11516 can_build_shared=yes
11517
11518 # All known linkers require a '.a' archive for static linking (except MSVC and
11519 # ICC, which need '.lib').
11520 libext=a
11521
11522 with_gnu_ld=$lt_cv_prog_gnu_ld
11523
11524 old_CC=$CC
11525 old_CFLAGS=$CFLAGS
11526
11527 # Set sane defaults for various variables
11528 test -z "$CC" && CC=cc
11529 test -z "$LTCC" && LTCC=$CC
11530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11531 test -z "$LD" && LD=ld
11532 test -z "$ac_objext" && ac_objext=o
11533
11534 func_cc_basename $compiler
11535 cc_basename=$func_cc_basename_result
11536
11537
11538 # Only perform the check for file, if the check method requires it
11539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11540 case $deplibs_check_method in
11541 file_magic*)
11542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11544 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11545 if test ${lt_cv_path_MAGIC_CMD+y}
11546 then :
11547 printf %s "(cached) " >&6
11548 else case e in #(
11549 e) case $MAGIC_CMD in
11550 [\\/*] | ?:[\\/]*)
11551 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11552 ;;
11553 *)
11554 lt_save_MAGIC_CMD=$MAGIC_CMD
11555 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11557 for ac_dir in $ac_dummy; do
11558 IFS=$lt_save_ifs
11559 test -z "$ac_dir" && ac_dir=.
11560 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11561 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11562 if test -n "$file_magic_test_file"; then
11563 case $deplibs_check_method in
11564 "file_magic "*)
11565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11566 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11568 $EGREP "$file_magic_regex" > /dev/null; then
11569 :
11570 else
11571 cat <<_LT_EOF 1>&2
11572
11573 *** Warning: the command libtool uses to detect shared libraries,
11574 *** $file_magic_cmd, produces output that libtool cannot recognize.
11575 *** The result is that libtool may fail to recognize shared libraries
11576 *** as such. This will affect the creation of libtool libraries that
11577 *** depend on shared libraries, but programs linked with such libtool
11578 *** libraries will work regardless of this problem. Nevertheless, you
11579 *** may want to report the problem to your system manager and/or to
11580 *** [email protected]
11581
11582 _LT_EOF
11583 fi ;;
11584 esac
11585 fi
11586 break
11587 fi
11588 done
11589 IFS=$lt_save_ifs
11590 MAGIC_CMD=$lt_save_MAGIC_CMD
11591 ;;
11592 esac ;;
11593 esac
11594 fi
11595
11596 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11597 if test -n "$MAGIC_CMD"; then
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11599 printf "%s\n" "$MAGIC_CMD" >&6; }
11600 else
11601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 printf "%s\n" "no" >&6; }
11603 fi
11604
11605
11606
11607
11608
11609 if test -z "$lt_cv_path_MAGIC_CMD"; then
11610 if test -n "$ac_tool_prefix"; then
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11612 printf %s "checking for file... " >&6; }
11613 if test ${lt_cv_path_MAGIC_CMD+y}
11614 then :
11615 printf %s "(cached) " >&6
11616 else case e in #(
11617 e) case $MAGIC_CMD in
11618 [\\/*] | ?:[\\/]*)
11619 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11620 ;;
11621 *)
11622 lt_save_MAGIC_CMD=$MAGIC_CMD
11623 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11625 for ac_dir in $ac_dummy; do
11626 IFS=$lt_save_ifs
11627 test -z "$ac_dir" && ac_dir=.
11628 if test -f "$ac_dir/file"; then
11629 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11630 if test -n "$file_magic_test_file"; then
11631 case $deplibs_check_method in
11632 "file_magic "*)
11633 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11634 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11636 $EGREP "$file_magic_regex" > /dev/null; then
11637 :
11638 else
11639 cat <<_LT_EOF 1>&2
11640
11641 *** Warning: the command libtool uses to detect shared libraries,
11642 *** $file_magic_cmd, produces output that libtool cannot recognize.
11643 *** The result is that libtool may fail to recognize shared libraries
11644 *** as such. This will affect the creation of libtool libraries that
11645 *** depend on shared libraries, but programs linked with such libtool
11646 *** libraries will work regardless of this problem. Nevertheless, you
11647 *** may want to report the problem to your system manager and/or to
11648 *** [email protected]
11649
11650 _LT_EOF
11651 fi ;;
11652 esac
11653 fi
11654 break
11655 fi
11656 done
11657 IFS=$lt_save_ifs
11658 MAGIC_CMD=$lt_save_MAGIC_CMD
11659 ;;
11660 esac ;;
11661 esac
11662 fi
11663
11664 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11665 if test -n "$MAGIC_CMD"; then
11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11667 printf "%s\n" "$MAGIC_CMD" >&6; }
11668 else
11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 printf "%s\n" "no" >&6; }
11671 fi
11672
11673
11674 else
11675 MAGIC_CMD=:
11676 fi
11677 fi
11678
11679 fi
11680 ;;
11681 esac
11682
11683 # Use C for the default configuration in the libtool script
11684
11685 lt_save_CC=$CC
11686 ac_ext=c
11687 ac_cpp='$CPP $CPPFLAGS'
11688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692
11693 # Source file extension for C test sources.
11694 ac_ext=c
11695
11696 # Object file extension for compiled C test sources.
11697 objext=o
11698 objext=$objext
11699
11700 # Code to be used in simple compile tests
11701 lt_simple_compile_test_code="int some_variable = 0;"
11702
11703 # Code to be used in simple link tests
11704 lt_simple_link_test_code='int main(void){return(0);}'
11705
11706
11707
11708
11709
11710
11711
11712 # If no C compiler was specified, use CC.
11713 LTCC=${LTCC-"$CC"}
11714
11715 # If no C compiler flags were specified, use CFLAGS.
11716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11717
11718 # Allow CC to be a program name with arguments.
11719 compiler=$CC
11720
11721 # Save the default compiler, since it gets overwritten when the other
11722 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11723 compiler_DEFAULT=$CC
11724
11725 # save warnings/boilerplate of simple test code
11726 ac_outfile=conftest.$ac_objext
11727 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11728 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11729 _lt_compiler_boilerplate=`cat conftest.err`
11730 $RM conftest*
11731
11732 ac_outfile=conftest.$ac_objext
11733 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11734 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11735 _lt_linker_boilerplate=`cat conftest.err`
11736 $RM -r conftest*
11737
11738
11739 ## CAVEAT EMPTOR:
11740 ## There is no encapsulation within the following macros, do not change
11741 ## the running order or otherwise move them around unless you know exactly
11742 ## what you are doing...
11743 if test -n "$compiler"; then
11744
11745 lt_prog_compiler_no_builtin_flag=
11746
11747 if test yes = "$GCC"; then
11748 case $cc_basename in
11749 nvcc*)
11750 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11751 *)
11752 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11753 esac
11754
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11756 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11757 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11758 then :
11759 printf %s "(cached) " >&6
11760 else case e in #(
11761 e) lt_cv_prog_compiler_rtti_exceptions=no
11762 ac_outfile=conftest.$ac_objext
11763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11764 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11765 # Insert the option either (1) after the last *FLAGS variable, or
11766 # (2) before a word containing "conftest.", or (3) at the end.
11767 # Note that $ac_compile itself does not contain backslashes and begins
11768 # with a dollar sign (not a hyphen), so the echo should work correctly.
11769 # The option is referenced via a variable to avoid confusing sed.
11770 lt_compile=`echo "$ac_compile" | $SED \
11771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11773 -e 's:$: $lt_compiler_flag:'`
11774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11775 (eval "$lt_compile" 2>conftest.err)
11776 ac_status=$?
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 if (exit $ac_status) && test -s "$ac_outfile"; then
11780 # The compiler can only warn and ignore the option if not recognized
11781 # So say no if there are warnings other than the usual output.
11782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11785 lt_cv_prog_compiler_rtti_exceptions=yes
11786 fi
11787 fi
11788 $RM conftest*
11789 ;;
11790 esac
11791 fi
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11793 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11794
11795 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11796 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11797 else
11798 :
11799 fi
11800
11801 fi
11802
11803
11804
11805
11806
11807
11808 lt_prog_compiler_wl=
11809 lt_prog_compiler_pic=
11810 lt_prog_compiler_static=
11811
11812
11813 if test yes = "$GCC"; then
11814 lt_prog_compiler_wl='-Wl,'
11815 lt_prog_compiler_static='-static'
11816
11817 case $host_os in
11818 aix*)
11819 # All AIX code is PIC.
11820 if test ia64 = "$host_cpu"; then
11821 # AIX 5 now supports IA64 processor
11822 lt_prog_compiler_static='-Bstatic'
11823 fi
11824 lt_prog_compiler_pic='-fPIC'
11825 ;;
11826
11827 amigaos*)
11828 case $host_cpu in
11829 powerpc)
11830 # see comment about AmigaOS4 .so support
11831 lt_prog_compiler_pic='-fPIC'
11832 ;;
11833 m68k)
11834 # FIXME: we need at least 68020 code to build shared libraries, but
11835 # adding the '-m68020' flag to GCC prevents building anything better,
11836 # like '-m68040'.
11837 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11838 ;;
11839 esac
11840 ;;
11841
11842 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11843 # PIC is the default for these OSes.
11844 ;;
11845
11846 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11847 # This hack is so that the source file can tell whether it is being
11848 # built for inclusion in a dll (and should export symbols for example).
11849 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11850 # (--disable-auto-import) libraries
11851 lt_prog_compiler_pic='-DDLL_EXPORT'
11852 case $host_os in
11853 os2*)
11854 lt_prog_compiler_static='$wl-static'
11855 ;;
11856 esac
11857 ;;
11858
11859 darwin* | rhapsody*)
11860 # PIC is the default on this platform
11861 # Common symbols not allowed in MH_DYLIB files
11862 lt_prog_compiler_pic='-fno-common'
11863 ;;
11864
11865 haiku*)
11866 # PIC is the default for Haiku.
11867 # The "-static" flag exists, but is broken.
11868 lt_prog_compiler_static=
11869 ;;
11870
11871 hpux*)
11872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11874 # sets the default TLS model and affects inlining.
11875 case $host_cpu in
11876 hppa*64*)
11877 # +Z the default
11878 ;;
11879 *)
11880 lt_prog_compiler_pic='-fPIC'
11881 ;;
11882 esac
11883 ;;
11884
11885 interix[3-9]*)
11886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11887 # Instead, we relocate shared libraries at runtime.
11888 ;;
11889
11890 msdosdjgpp*)
11891 # Just because we use GCC doesn't mean we suddenly get shared libraries
11892 # on systems that don't support them.
11893 lt_prog_compiler_can_build_shared=no
11894 enable_shared=no
11895 ;;
11896
11897 *nto* | *qnx*)
11898 # QNX uses GNU C++, but need to define -shared option too, otherwise
11899 # it will coredump.
11900 lt_prog_compiler_pic='-fPIC -shared'
11901 ;;
11902
11903 sysv4*MP*)
11904 if test -d /usr/nec; then
11905 lt_prog_compiler_pic=-Kconform_pic
11906 fi
11907 ;;
11908
11909 *)
11910 lt_prog_compiler_pic='-fPIC'
11911 ;;
11912 esac
11913
11914 case $cc_basename in
11915 nvcc*) # Cuda Compiler Driver 2.2
11916 lt_prog_compiler_wl='-Xlinker '
11917 if test -n "$lt_prog_compiler_pic"; then
11918 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11919 fi
11920 ;;
11921 esac
11922 else
11923 # PORTME Check for flag to pass linker flags through the system compiler.
11924 case $host_os in
11925 aix*)
11926 lt_prog_compiler_wl='-Wl,'
11927 if test ia64 = "$host_cpu"; then
11928 # AIX 5 now supports IA64 processor
11929 lt_prog_compiler_static='-Bstatic'
11930 else
11931 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11932 fi
11933 ;;
11934
11935 darwin* | rhapsody*)
11936 # PIC is the default on this platform
11937 # Common symbols not allowed in MH_DYLIB files
11938 lt_prog_compiler_pic='-fno-common'
11939 case $cc_basename in
11940 nagfor*)
11941 # NAG Fortran compiler
11942 lt_prog_compiler_wl='-Wl,-Wl,,'
11943 lt_prog_compiler_pic='-PIC'
11944 lt_prog_compiler_static='-Bstatic'
11945 ;;
11946 esac
11947 ;;
11948
11949 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11950 # This hack is so that the source file can tell whether it is being
11951 # built for inclusion in a dll (and should export symbols for example).
11952 lt_prog_compiler_pic='-DDLL_EXPORT'
11953 case $host_os in
11954 os2*)
11955 lt_prog_compiler_static='$wl-static'
11956 ;;
11957 esac
11958 ;;
11959
11960 hpux9* | hpux10* | hpux11*)
11961 lt_prog_compiler_wl='-Wl,'
11962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11963 # not for PA HP-UX.
11964 case $host_cpu in
11965 hppa*64*|ia64*)
11966 # +Z the default
11967 ;;
11968 *)
11969 lt_prog_compiler_pic='+Z'
11970 ;;
11971 esac
11972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11973 lt_prog_compiler_static='$wl-a ${wl}archive'
11974 ;;
11975
11976 irix5* | irix6* | nonstopux*)
11977 lt_prog_compiler_wl='-Wl,'
11978 # PIC (with -KPIC) is the default.
11979 lt_prog_compiler_static='-non_shared'
11980 ;;
11981
11982 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11983 case $cc_basename in
11984 # old Intel for x86_64, which still supported -KPIC.
11985 ecc*)
11986 lt_prog_compiler_wl='-Wl,'
11987 lt_prog_compiler_pic='-KPIC'
11988 lt_prog_compiler_static='-static'
11989 ;;
11990 *flang* | ftn | f18* | f95*)
11991 # Flang compiler.
11992 lt_prog_compiler_wl='-Wl,'
11993 lt_prog_compiler_pic='-fPIC'
11994 lt_prog_compiler_static='-static'
11995 ;;
11996 # flang / f18. f95 an alias for gfortran or flang on Debian
11997 flang* | f18* | f95*)
11998 lt_prog_compiler_wl='-Wl,'
11999 lt_prog_compiler_pic='-fPIC'
12000 lt_prog_compiler_static='-static'
12001 ;;
12002 # icc used to be incompatible with GCC.
12003 # ICC 10 doesn't accept -KPIC any more.
12004 icc* | ifort*)
12005 lt_prog_compiler_wl='-Wl,'
12006 lt_prog_compiler_pic='-fPIC'
12007 lt_prog_compiler_static='-static'
12008 ;;
12009 # Lahey Fortran 8.1.
12010 lf95*)
12011 lt_prog_compiler_wl='-Wl,'
12012 lt_prog_compiler_pic='--shared'
12013 lt_prog_compiler_static='--static'
12014 ;;
12015 nagfor*)
12016 # NAG Fortran compiler
12017 lt_prog_compiler_wl='-Wl,-Wl,,'
12018 lt_prog_compiler_pic='-PIC'
12019 lt_prog_compiler_static='-Bstatic'
12020 ;;
12021 tcc*)
12022 # Fabrice Bellard et al's Tiny C Compiler
12023 lt_prog_compiler_wl='-Wl,'
12024 lt_prog_compiler_pic='-fPIC'
12025 lt_prog_compiler_static='-static'
12026 ;;
12027 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12028 # Portland Group compilers (*not* the Pentium gcc compiler,
12029 # which looks to be a dead project)
12030 lt_prog_compiler_wl='-Wl,'
12031 lt_prog_compiler_pic='-fpic'
12032 lt_prog_compiler_static='-Bstatic'
12033 ;;
12034 ccc*)
12035 lt_prog_compiler_wl='-Wl,'
12036 # All Alpha code is PIC.
12037 lt_prog_compiler_static='-non_shared'
12038 ;;
12039 xl* | bgxl* | bgf* | mpixl*)
12040 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12041 lt_prog_compiler_wl='-Wl,'
12042 lt_prog_compiler_pic='-qpic'
12043 lt_prog_compiler_static='-qstaticlink'
12044 ;;
12045 *)
12046 case `$CC -V 2>&1 | $SED 5q` in
12047 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12048 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12049 lt_prog_compiler_pic='-KPIC'
12050 lt_prog_compiler_static='-Bstatic'
12051 lt_prog_compiler_wl=''
12052 ;;
12053 *Sun\ F* | *Sun*Fortran*)
12054 lt_prog_compiler_pic='-KPIC'
12055 lt_prog_compiler_static='-Bstatic'
12056 lt_prog_compiler_wl='-Qoption ld '
12057 ;;
12058 *Sun\ C*)
12059 # Sun C 5.9
12060 lt_prog_compiler_pic='-KPIC'
12061 lt_prog_compiler_static='-Bstatic'
12062 lt_prog_compiler_wl='-Wl,'
12063 ;;
12064 *Intel*\ [CF]*Compiler*)
12065 lt_prog_compiler_wl='-Wl,'
12066 lt_prog_compiler_pic='-fPIC'
12067 lt_prog_compiler_static='-static'
12068 ;;
12069 *Portland\ Group*)
12070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_pic='-fpic'
12072 lt_prog_compiler_static='-Bstatic'
12073 ;;
12074 esac
12075 ;;
12076 esac
12077 ;;
12078
12079 newsos6)
12080 lt_prog_compiler_pic='-KPIC'
12081 lt_prog_compiler_static='-Bstatic'
12082 ;;
12083
12084 *-mlibc)
12085 lt_prog_compiler_wl='-Wl,'
12086 lt_prog_compiler_pic='-fPIC'
12087 lt_prog_compiler_static='-static'
12088 ;;
12089
12090 *nto* | *qnx*)
12091 # QNX uses GNU C++, but need to define -shared option too, otherwise
12092 # it will coredump.
12093 lt_prog_compiler_pic='-fPIC -shared'
12094 ;;
12095
12096 osf3* | osf4* | osf5*)
12097 lt_prog_compiler_wl='-Wl,'
12098 # All OSF/1 code is PIC.
12099 lt_prog_compiler_static='-non_shared'
12100 ;;
12101
12102 rdos*)
12103 lt_prog_compiler_static='-non_shared'
12104 ;;
12105
12106 serenity*)
12107 ;;
12108
12109 solaris*)
12110 lt_prog_compiler_pic='-KPIC'
12111 lt_prog_compiler_static='-Bstatic'
12112 case $cc_basename in
12113 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12114 lt_prog_compiler_wl='-Qoption ld ';;
12115 *)
12116 lt_prog_compiler_wl='-Wl,';;
12117 esac
12118 ;;
12119
12120 sunos4*)
12121 lt_prog_compiler_wl='-Qoption ld '
12122 lt_prog_compiler_pic='-PIC'
12123 lt_prog_compiler_static='-Bstatic'
12124 ;;
12125
12126 sysv4 | sysv4.2uw2* | sysv4.3*)
12127 lt_prog_compiler_wl='-Wl,'
12128 lt_prog_compiler_pic='-KPIC'
12129 lt_prog_compiler_static='-Bstatic'
12130 ;;
12131
12132 sysv4*MP*)
12133 if test -d /usr/nec; then
12134 lt_prog_compiler_pic='-Kconform_pic'
12135 lt_prog_compiler_static='-Bstatic'
12136 fi
12137 ;;
12138
12139 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12140 lt_prog_compiler_wl='-Wl,'
12141 lt_prog_compiler_pic='-KPIC'
12142 lt_prog_compiler_static='-Bstatic'
12143 ;;
12144
12145 unicos*)
12146 lt_prog_compiler_wl='-Wl,'
12147 lt_prog_compiler_can_build_shared=no
12148 ;;
12149
12150 uts4*)
12151 lt_prog_compiler_pic='-pic'
12152 lt_prog_compiler_static='-Bstatic'
12153 ;;
12154
12155 *)
12156 lt_prog_compiler_can_build_shared=no
12157 ;;
12158 esac
12159 fi
12160
12161 case $host_os in
12162 # For platforms that do not support PIC, -DPIC is meaningless:
12163 *djgpp*)
12164 lt_prog_compiler_pic=
12165 ;;
12166 *)
12167 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12168 ;;
12169 esac
12170
12171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12172 printf %s "checking for $compiler option to produce PIC... " >&6; }
12173 if test ${lt_cv_prog_compiler_pic+y}
12174 then :
12175 printf %s "(cached) " >&6
12176 else case e in #(
12177 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12178 esac
12179 fi
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12181 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12182 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12183
12184 #
12185 # Check to make sure the PIC flag actually works.
12186 #
12187 if test -n "$lt_prog_compiler_pic"; then
12188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12189 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12190 if test ${lt_cv_prog_compiler_pic_works+y}
12191 then :
12192 printf %s "(cached) " >&6
12193 else case e in #(
12194 e) lt_cv_prog_compiler_pic_works=no
12195 ac_outfile=conftest.$ac_objext
12196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12197 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12198 # Insert the option either (1) after the last *FLAGS variable, or
12199 # (2) before a word containing "conftest.", or (3) at the end.
12200 # Note that $ac_compile itself does not contain backslashes and begins
12201 # with a dollar sign (not a hyphen), so the echo should work correctly.
12202 # The option is referenced via a variable to avoid confusing sed.
12203 lt_compile=`echo "$ac_compile" | $SED \
12204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12206 -e 's:$: $lt_compiler_flag:'`
12207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12208 (eval "$lt_compile" 2>conftest.err)
12209 ac_status=$?
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 if (exit $ac_status) && test -s "$ac_outfile"; then
12213 # The compiler can only warn and ignore the option if not recognized
12214 # So say no if there are warnings other than the usual output.
12215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12218 lt_cv_prog_compiler_pic_works=yes
12219 fi
12220 fi
12221 $RM conftest*
12222 ;;
12223 esac
12224 fi
12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12226 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12227
12228 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12229 case $lt_prog_compiler_pic in
12230 "" | " "*) ;;
12231 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12232 esac
12233 else
12234 lt_prog_compiler_pic=
12235 lt_prog_compiler_can_build_shared=no
12236 fi
12237
12238 fi
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250 #
12251 # Check to make sure the static flag actually works.
12252 #
12253 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12255 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12256 if test ${lt_cv_prog_compiler_static_works+y}
12257 then :
12258 printf %s "(cached) " >&6
12259 else case e in #(
12260 e) lt_cv_prog_compiler_static_works=no
12261 save_LDFLAGS=$LDFLAGS
12262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12265 # The linker can only warn and ignore the option if not recognized
12266 # So say no if there are warnings
12267 if test -s conftest.err; then
12268 # Append any errors to the config.log.
12269 cat conftest.err 1>&5
12270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12272 if diff conftest.exp conftest.er2 >/dev/null; then
12273 lt_cv_prog_compiler_static_works=yes
12274 fi
12275 else
12276 lt_cv_prog_compiler_static_works=yes
12277 fi
12278 fi
12279 $RM -r conftest*
12280 LDFLAGS=$save_LDFLAGS
12281 ;;
12282 esac
12283 fi
12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12285 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12286
12287 if test yes = "$lt_cv_prog_compiler_static_works"; then
12288 :
12289 else
12290 lt_prog_compiler_static=
12291 fi
12292
12293
12294
12295
12296
12297
12298
12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12300 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12301 if test ${lt_cv_prog_compiler_c_o+y}
12302 then :
12303 printf %s "(cached) " >&6
12304 else case e in #(
12305 e) lt_cv_prog_compiler_c_o=no
12306 $RM -r conftest 2>/dev/null
12307 mkdir conftest
12308 cd conftest
12309 mkdir out
12310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12311
12312 lt_compiler_flag="-o out/conftest2.$ac_objext"
12313 # Insert the option either (1) after the last *FLAGS variable, or
12314 # (2) before a word containing "conftest.", or (3) at the end.
12315 # Note that $ac_compile itself does not contain backslashes and begins
12316 # with a dollar sign (not a hyphen), so the echo should work correctly.
12317 lt_compile=`echo "$ac_compile" | $SED \
12318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12320 -e 's:$: $lt_compiler_flag:'`
12321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12322 (eval "$lt_compile" 2>out/conftest.err)
12323 ac_status=$?
12324 cat out/conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12327 then
12328 # The compiler can only warn and ignore the option if not recognized
12329 # So say no if there are warnings
12330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12333 lt_cv_prog_compiler_c_o=yes
12334 fi
12335 fi
12336 chmod u+w . 2>&5
12337 $RM conftest*
12338 # SGI C++ compiler will create directory out/ii_files/ for
12339 # template instantiation
12340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12341 $RM out/* && rmdir out
12342 cd ..
12343 $RM -r conftest
12344 $RM conftest*
12345 ;;
12346 esac
12347 fi
12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12349 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12350
12351
12352
12353
12354
12355
12356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12357 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12358 if test ${lt_cv_prog_compiler_c_o+y}
12359 then :
12360 printf %s "(cached) " >&6
12361 else case e in #(
12362 e) lt_cv_prog_compiler_c_o=no
12363 $RM -r conftest 2>/dev/null
12364 mkdir conftest
12365 cd conftest
12366 mkdir out
12367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12368
12369 lt_compiler_flag="-o out/conftest2.$ac_objext"
12370 # Insert the option either (1) after the last *FLAGS variable, or
12371 # (2) before a word containing "conftest.", or (3) at the end.
12372 # Note that $ac_compile itself does not contain backslashes and begins
12373 # with a dollar sign (not a hyphen), so the echo should work correctly.
12374 lt_compile=`echo "$ac_compile" | $SED \
12375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377 -e 's:$: $lt_compiler_flag:'`
12378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12379 (eval "$lt_compile" 2>out/conftest.err)
12380 ac_status=$?
12381 cat out/conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12384 then
12385 # The compiler can only warn and ignore the option if not recognized
12386 # So say no if there are warnings
12387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12390 lt_cv_prog_compiler_c_o=yes
12391 fi
12392 fi
12393 chmod u+w . 2>&5
12394 $RM conftest*
12395 # SGI C++ compiler will create directory out/ii_files/ for
12396 # template instantiation
12397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12398 $RM out/* && rmdir out
12399 cd ..
12400 $RM -r conftest
12401 $RM conftest*
12402 ;;
12403 esac
12404 fi
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12406 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12407
12408
12409
12410
12411 hard_links=nottested
12412 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12413 # do not overwrite the value of need_locks provided by the user
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12415 printf %s "checking if we can lock with hard links... " >&6; }
12416 hard_links=yes
12417 $RM conftest*
12418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12419 touch conftest.a
12420 ln conftest.a conftest.b 2>&5 || hard_links=no
12421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12423 printf "%s\n" "$hard_links" >&6; }
12424 if test no = "$hard_links"; then
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12426 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12427 need_locks=warn
12428 fi
12429 else
12430 need_locks=no
12431 fi
12432
12433
12434
12435
12436
12437
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12439 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12440
12441 runpath_var=
12442 allow_undefined_flag=
12443 always_export_symbols=no
12444 archive_cmds=
12445 archive_expsym_cmds=
12446 compiler_needs_object=no
12447 enable_shared_with_static_runtimes=no
12448 export_dynamic_flag_spec=
12449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12450 hardcode_automatic=no
12451 hardcode_direct=no
12452 hardcode_direct_absolute=no
12453 hardcode_libdir_flag_spec=
12454 hardcode_libdir_separator=
12455 hardcode_minus_L=no
12456 hardcode_shlibpath_var=unsupported
12457 inherit_rpath=no
12458 link_all_deplibs=unknown
12459 module_cmds=
12460 module_expsym_cmds=
12461 old_archive_from_new_cmds=
12462 old_archive_from_expsyms_cmds=
12463 thread_safe_flag_spec=
12464 whole_archive_flag_spec=
12465 # include_expsyms should be a list of space-separated symbols to be *always*
12466 # included in the symbol list
12467 include_expsyms=
12468 # exclude_expsyms can be an extended regexp of symbols to exclude
12469 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12470 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12471 # as well as any symbol that contains 'd'.
12472 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12474 # platforms (ab)use it in PIC code, but their linkers get confused if
12475 # the symbol is explicitly referenced. Since portable code cannot
12476 # rely on this symbol name, it's probably fine to never include it in
12477 # preloaded symbol tables.
12478 # Exclude shared library initialization/finalization symbols.
12479 extract_expsyms_cmds=
12480
12481 case $host_os in
12482 cygwin* | mingw* | windows* | pw32* | cegcc*)
12483 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12484 # When not using gcc, we currently assume that we are using
12485 # Microsoft Visual C++ or Intel C++ Compiler.
12486 if test yes != "$GCC"; then
12487 with_gnu_ld=no
12488 fi
12489 ;;
12490 interix*)
12491 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12492 with_gnu_ld=yes
12493 ;;
12494 linux* | k*bsd*-gnu | gnu*)
12495 link_all_deplibs=no
12496 ;;
12497 esac
12498
12499 ld_shlibs=yes
12500
12501 # On some targets, GNU ld is compatible enough with the native linker
12502 # that we're better off using the native interface for both.
12503 lt_use_gnu_ld_interface=no
12504 if test yes = "$with_gnu_ld"; then
12505 case $host_os in
12506 aix*)
12507 # The AIX port of GNU ld has always aspired to compatibility
12508 # with the native linker. However, as the warning in the GNU ld
12509 # block says, versions before 2.19.5* couldn't really create working
12510 # shared libraries, regardless of the interface used.
12511 case `$LD -v 2>&1` in
12512 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12513 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12514 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12515 *)
12516 lt_use_gnu_ld_interface=yes
12517 ;;
12518 esac
12519 ;;
12520 *)
12521 lt_use_gnu_ld_interface=yes
12522 ;;
12523 esac
12524 fi
12525
12526 if test yes = "$lt_use_gnu_ld_interface"; then
12527 # If archive_cmds runs LD, not CC, wlarc should be empty
12528 wlarc='$wl'
12529
12530 # Set some defaults for GNU ld with shared library support. These
12531 # are reset later if shared libraries are not supported. Putting them
12532 # here allows them to be overridden if necessary.
12533 runpath_var=LD_RUN_PATH
12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12535 export_dynamic_flag_spec='$wl--export-dynamic'
12536 # ancient GNU ld didn't support --whole-archive et. al.
12537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12538 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12539 else
12540 whole_archive_flag_spec=
12541 fi
12542 supports_anon_versioning=no
12543 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12544 *GNU\ gold*) supports_anon_versioning=yes ;;
12545 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12546 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12547 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12548 *\ 2.11.*) ;; # other 2.11 versions
12549 *) supports_anon_versioning=yes ;;
12550 esac
12551
12552 # See if GNU ld supports shared libraries.
12553 case $host_os in
12554 aix[3-9]*)
12555 # On AIX/PPC, the GNU linker is very broken
12556 if test ia64 != "$host_cpu"; then
12557 ld_shlibs=no
12558 cat <<_LT_EOF 1>&2
12559
12560 *** Warning: the GNU linker, at least up to release 2.19, is reported
12561 *** to be unable to reliably create shared libraries on AIX.
12562 *** Therefore, libtool is disabling shared libraries support. If you
12563 *** really care for shared libraries, you may want to install binutils
12564 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12565 *** You will then need to restart the configuration process.
12566
12567 _LT_EOF
12568 fi
12569 ;;
12570
12571 amigaos*)
12572 case $host_cpu in
12573 powerpc)
12574 # see comment about AmigaOS4 .so support
12575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12576 archive_expsym_cmds=''
12577 ;;
12578 m68k)
12579 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)'
12580 hardcode_libdir_flag_spec='-L$libdir'
12581 hardcode_minus_L=yes
12582 ;;
12583 esac
12584 ;;
12585
12586 beos*)
12587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12588 allow_undefined_flag=unsupported
12589 # Joseph Beckenbach <[email protected]> says some releases of gcc
12590 # support --undefined. This deserves some investigation. FIXME
12591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12592 else
12593 ld_shlibs=no
12594 fi
12595 ;;
12596
12597 cygwin* | mingw* | windows* | pw32* | cegcc*)
12598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12599 # as there is no search path for DLLs.
12600 hardcode_libdir_flag_spec='-L$libdir'
12601 export_dynamic_flag_spec='$wl--export-all-symbols'
12602 allow_undefined_flag=unsupported
12603 always_export_symbols=no
12604 enable_shared_with_static_runtimes=yes
12605 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'
12606 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12607 file_list_spec='@'
12608
12609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12611 # If the export-symbols file already is a .def file, use it as
12612 # is; otherwise, prepend EXPORTS...
12613 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12614 cp $export_symbols $output_objdir/$soname.def;
12615 else
12616 echo EXPORTS > $output_objdir/$soname.def;
12617 cat $export_symbols >> $output_objdir/$soname.def;
12618 fi~
12619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12620 else
12621 ld_shlibs=no
12622 fi
12623 ;;
12624
12625 haiku*)
12626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12627 link_all_deplibs=no
12628 ;;
12629
12630 os2*)
12631 hardcode_libdir_flag_spec='-L$libdir'
12632 hardcode_minus_L=yes
12633 allow_undefined_flag=unsupported
12634 shrext_cmds=.dll
12635 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12636 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12637 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12638 $ECHO EXPORTS >> $output_objdir/$libname.def~
12639 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12640 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12641 emximp -o $lib $output_objdir/$libname.def'
12642 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12643 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12644 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12645 $ECHO EXPORTS >> $output_objdir/$libname.def~
12646 prefix_cmds="$SED"~
12647 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12648 prefix_cmds="$prefix_cmds -e 1d";
12649 fi~
12650 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12651 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12653 emximp -o $lib $output_objdir/$libname.def'
12654 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12655 enable_shared_with_static_runtimes=yes
12656 file_list_spec='@'
12657 ;;
12658
12659 interix[3-9]*)
12660 hardcode_direct=no
12661 hardcode_shlibpath_var=no
12662 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12663 export_dynamic_flag_spec='$wl-E'
12664 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12665 # Instead, shared libraries are loaded at an image base (0x10000000 by
12666 # default) and relocated if they conflict, which is a slow very memory
12667 # consuming and fragmenting process. To avoid this, we pick a random,
12668 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12669 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12671 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'
12672 ;;
12673
12674 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12675 tmp_diet=no
12676 if test linux-dietlibc = "$host_os"; then
12677 case $cc_basename in
12678 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12679 esac
12680 fi
12681 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12682 && test no = "$tmp_diet"
12683 then
12684 tmp_addflag=' $pic_flag'
12685 tmp_sharedflag='-shared'
12686 case $cc_basename,$host_cpu in
12687 pgcc*) # Portland Group C compiler
12688 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'
12689 tmp_addflag=' $pic_flag'
12690 ;;
12691 pgf77* | pgf90* | pgf95* | pgfortran*)
12692 # Portland Group f77 and f90 compilers
12693 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'
12694 tmp_addflag=' $pic_flag -Mnomain' ;;
12695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12696 tmp_addflag=' -i_dynamic' ;;
12697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12698 tmp_addflag=' -i_dynamic -nofor_main' ;;
12699 ifc* | ifort*) # Intel Fortran compiler
12700 tmp_addflag=' -nofor_main' ;;
12701 lf95*) # Lahey Fortran 8.1
12702 whole_archive_flag_spec=
12703 tmp_sharedflag='--shared' ;;
12704 nagfor*) # NAGFOR 5.3
12705 tmp_sharedflag='-Wl,-shared' ;;
12706 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12707 tmp_sharedflag='-qmkshrobj'
12708 tmp_addflag= ;;
12709 nvcc*) # Cuda Compiler Driver 2.2
12710 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'
12711 compiler_needs_object=yes
12712 ;;
12713 esac
12714 case `$CC -V 2>&1 | $SED 5q` in
12715 *Sun\ C*) # Sun C 5.9
12716 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'
12717 compiler_needs_object=yes
12718 tmp_sharedflag='-G' ;;
12719 *Sun\ F*) # Sun Fortran 8.3
12720 tmp_sharedflag='-G' ;;
12721 esac
12722 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12723
12724 if test yes = "$supports_anon_versioning"; then
12725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12726 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12727 echo "local: *; };" >> $output_objdir/$libname.ver~
12728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12729 fi
12730
12731 case $cc_basename in
12732 tcc*)
12733 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12734 export_dynamic_flag_spec='-rdynamic'
12735 ;;
12736 xlf* | bgf* | bgxlf* | mpixlf*)
12737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12739 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12740 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12741 if test yes = "$supports_anon_versioning"; then
12742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12743 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12744 echo "local: *; };" >> $output_objdir/$libname.ver~
12745 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12746 fi
12747 ;;
12748 esac
12749 else
12750 ld_shlibs=no
12751 fi
12752 ;;
12753
12754 *-mlibc)
12755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12756 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12757 ;;
12758
12759 netbsd* | netbsdelf*-gnu)
12760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12762 wlarc=
12763 else
12764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12765 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12766 fi
12767 ;;
12768
12769 solaris*)
12770 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12771 ld_shlibs=no
12772 cat <<_LT_EOF 1>&2
12773
12774 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12775 *** create shared libraries on Solaris systems. Therefore, libtool
12776 *** is disabling shared libraries support. We urge you to upgrade GNU
12777 *** binutils to release 2.9.1 or newer. Another option is to modify
12778 *** your PATH or compiler configuration so that the native linker is
12779 *** used, and then restart.
12780
12781 _LT_EOF
12782 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12784 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12785 else
12786 ld_shlibs=no
12787 fi
12788 ;;
12789
12790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12791 case `$LD -v 2>&1` in
12792 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12793 ld_shlibs=no
12794 cat <<_LT_EOF 1>&2
12795
12796 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12797 *** reliably create shared libraries on SCO systems. Therefore, libtool
12798 *** is disabling shared libraries support. We urge you to upgrade GNU
12799 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12800 *** your PATH or compiler configuration so that the native linker is
12801 *** used, and then restart.
12802
12803 _LT_EOF
12804 ;;
12805 *)
12806 # For security reasons, it is highly recommended that you always
12807 # use absolute paths for naming shared libraries, and exclude the
12808 # DT_RUNPATH tag from executables and libraries. But doing so
12809 # requires that you compile everything twice, which is a pain.
12810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12811 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12814 else
12815 ld_shlibs=no
12816 fi
12817 ;;
12818 esac
12819 ;;
12820
12821 sunos4*)
12822 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12823 wlarc=
12824 hardcode_direct=yes
12825 hardcode_shlibpath_var=no
12826 ;;
12827
12828 *)
12829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12831 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12832 else
12833 ld_shlibs=no
12834 fi
12835 ;;
12836 esac
12837
12838 if test no = "$ld_shlibs"; then
12839 runpath_var=
12840 hardcode_libdir_flag_spec=
12841 export_dynamic_flag_spec=
12842 whole_archive_flag_spec=
12843 fi
12844 else
12845 # PORTME fill in a description of your system's linker (not GNU ld)
12846 case $host_os in
12847 aix3*)
12848 allow_undefined_flag=unsupported
12849 always_export_symbols=yes
12850 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'
12851 # Note: this linker hardcodes the directories in LIBPATH if there
12852 # are no directories specified by -L.
12853 hardcode_minus_L=yes
12854 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12855 # Neither direct hardcoding nor static linking is supported with a
12856 # broken collect2.
12857 hardcode_direct=unsupported
12858 fi
12859 ;;
12860
12861 aix[4-9]*)
12862 if test ia64 = "$host_cpu"; then
12863 # On IA64, the linker does run time linking by default, so we don't
12864 # have to do anything special.
12865 aix_use_runtimelinking=no
12866 exp_sym_flag='-Bexport'
12867 no_entry_flag=
12868 else
12869 # If we're using GNU nm, then we don't want the "-C" option.
12870 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12871 # Without the "-l" option, or with the "-B" option, AIX nm treats
12872 # weak defined symbols like other global defined symbols, whereas
12873 # GNU nm marks them as "W".
12874 # While the 'weak' keyword is ignored in the Export File, we need
12875 # it in the Import File for the 'aix-soname' feature, so we have
12876 # to replace the "-B" option with "-P" for AIX nm.
12877 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12878 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'
12879 else
12880 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'
12881 fi
12882 aix_use_runtimelinking=no
12883
12884 # Test if we are trying to use run time linking or normal
12885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12886 # have runtime linking enabled, and use it for executables.
12887 # For shared libraries, we enable/disable runtime linking
12888 # depending on the kind of the shared library created -
12889 # when "with_aix_soname,aix_use_runtimelinking" is:
12890 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12891 # "aix,yes" lib.so shared, rtl:yes, for executables
12892 # lib.a static archive
12893 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12894 # lib.a(lib.so.V) shared, rtl:no, for executables
12895 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12896 # lib.a(lib.so.V) shared, rtl:no
12897 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12898 # lib.a static archive
12899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12900 for ld_flag in $LDFLAGS; do
12901 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12902 aix_use_runtimelinking=yes
12903 break
12904 fi
12905 done
12906 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12907 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12908 # so we don't have lib.a shared libs to link our executables.
12909 # We have to force runtime linking in this case.
12910 aix_use_runtimelinking=yes
12911 LDFLAGS="$LDFLAGS -Wl,-brtl"
12912 fi
12913 ;;
12914 esac
12915
12916 exp_sym_flag='-bexport'
12917 no_entry_flag='-bnoentry'
12918 fi
12919
12920 # When large executables or shared objects are built, AIX ld can
12921 # have problems creating the table of contents. If linking a library
12922 # or program results in "error TOC overflow" add -mminimal-toc to
12923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12925
12926 archive_cmds=''
12927 hardcode_direct=yes
12928 hardcode_direct_absolute=yes
12929 hardcode_libdir_separator=':'
12930 link_all_deplibs=yes
12931 file_list_spec='$wl-f,'
12932 case $with_aix_soname,$aix_use_runtimelinking in
12933 aix,*) ;; # traditional, no import file
12934 svr4,* | *,yes) # use import file
12935 # The Import File defines what to hardcode.
12936 hardcode_direct=no
12937 hardcode_direct_absolute=no
12938 ;;
12939 esac
12940
12941 if test yes = "$GCC"; then
12942 case $host_os in aix4.[012]|aix4.[012].*)
12943 # We only want to do this on AIX 4.2 and lower, the check
12944 # below for broken collect2 doesn't work under 4.3+
12945 collect2name=`$CC -print-prog-name=collect2`
12946 if test -f "$collect2name" &&
12947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12948 then
12949 # We have reworked collect2
12950 :
12951 else
12952 # We have old collect2
12953 hardcode_direct=unsupported
12954 # It fails to find uninstalled libraries when the uninstalled
12955 # path is not listed in the libpath. Setting hardcode_minus_L
12956 # to unsupported forces relinking
12957 hardcode_minus_L=yes
12958 hardcode_libdir_flag_spec='-L$libdir'
12959 hardcode_libdir_separator=
12960 fi
12961 ;;
12962 esac
12963 shared_flag='-shared'
12964 if test yes = "$aix_use_runtimelinking"; then
12965 shared_flag="$shared_flag "'$wl-G'
12966 fi
12967 # Need to ensure runtime linking is disabled for the traditional
12968 # shared library, or the linker may eventually find shared libraries
12969 # /with/ Import File - we do not want to mix them.
12970 shared_flag_aix='-shared'
12971 shared_flag_svr4='-shared $wl-G'
12972 else
12973 # not using gcc
12974 if test ia64 = "$host_cpu"; then
12975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12976 # chokes on -Wl,-G. The following line is correct:
12977 shared_flag='-G'
12978 else
12979 if test yes = "$aix_use_runtimelinking"; then
12980 shared_flag='$wl-G'
12981 else
12982 shared_flag='$wl-bM:SRE'
12983 fi
12984 shared_flag_aix='$wl-bM:SRE'
12985 shared_flag_svr4='$wl-G'
12986 fi
12987 fi
12988
12989 export_dynamic_flag_spec='$wl-bexpall'
12990 # It seems that -bexpall does not export symbols beginning with
12991 # underscore (_), so it is better to generate a list of symbols to export.
12992 always_export_symbols=yes
12993 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12994 # Warning - without using the other runtime loading flags (-brtl),
12995 # -berok will link without error, but may produce a broken library.
12996 allow_undefined_flag='-berok'
12997 # Determine the default libpath from the value encoded in an
12998 # empty executable.
12999 if test set = "${lt_cv_aix_libpath+set}"; then
13000 aix_libpath=$lt_cv_aix_libpath
13001 else
13002 if test ${lt_cv_aix_libpath_+y}
13003 then :
13004 printf %s "(cached) " >&6
13005 else case e in #(
13006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008
13009 int
13010 main (void)
13011 {
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"
13018 then :
13019
13020 lt_aix_libpath_sed='
13021 /Import File Strings/,/^$/ {
13022 /^0/ {
13023 s/^0 *\([^ ]*\) *$/\1/
13024 p
13025 }
13026 }'
13027 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028 # Check for a 64-bit object if we didn't find anything.
13029 if test -z "$lt_cv_aix_libpath_"; then
13030 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031 fi
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13034 conftest$ac_exeext conftest.$ac_ext
13035 if test -z "$lt_cv_aix_libpath_"; then
13036 lt_cv_aix_libpath_=/usr/lib:/lib
13037 fi
13038 ;;
13039 esac
13040 fi
13041
13042 aix_libpath=$lt_cv_aix_libpath_
13043 fi
13044
13045 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13046 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
13047 else
13048 if test ia64 = "$host_cpu"; then
13049 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13050 allow_undefined_flag="-z nodefs"
13051 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"
13052 else
13053 # Determine the default libpath from the value encoded in an
13054 # empty executable.
13055 if test set = "${lt_cv_aix_libpath+set}"; then
13056 aix_libpath=$lt_cv_aix_libpath
13057 else
13058 if test ${lt_cv_aix_libpath_+y}
13059 then :
13060 printf %s "(cached) " >&6
13061 else case e in #(
13062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 int
13066 main (void)
13067 {
13068
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_link "$LINENO"
13074 then :
13075
13076 lt_aix_libpath_sed='
13077 /Import File Strings/,/^$/ {
13078 /^0/ {
13079 s/^0 *\([^ ]*\) *$/\1/
13080 p
13081 }
13082 }'
13083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 # Check for a 64-bit object if we didn't find anything.
13085 if test -z "$lt_cv_aix_libpath_"; then
13086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 fi
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13090 conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$lt_cv_aix_libpath_"; then
13092 lt_cv_aix_libpath_=/usr/lib:/lib
13093 fi
13094 ;;
13095 esac
13096 fi
13097
13098 aix_libpath=$lt_cv_aix_libpath_
13099 fi
13100
13101 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13102 # Warning - without using the other run time loading flags,
13103 # -berok will link without error, but may produce a broken library.
13104 no_undefined_flag=' $wl-bernotok'
13105 allow_undefined_flag=' $wl-berok'
13106 if test yes = "$with_gnu_ld"; then
13107 # We only use this code for GNU lds that support --whole-archive.
13108 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13109 else
13110 # Exported symbols can be pulled into shared objects from archives
13111 whole_archive_flag_spec='$convenience'
13112 fi
13113 archive_cmds_need_lc=yes
13114 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13115 # -brtl affects multiple linker settings, -berok does not and is overridden later
13116 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13117 if test svr4 != "$with_aix_soname"; then
13118 # This is similar to how AIX traditionally builds its shared libraries.
13119 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'
13120 fi
13121 if test aix != "$with_aix_soname"; then
13122 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'
13123 else
13124 # used by -dlpreopen to get the symbols
13125 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13126 fi
13127 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13128 fi
13129 fi
13130 ;;
13131
13132 amigaos*)
13133 case $host_cpu in
13134 powerpc)
13135 # see comment about AmigaOS4 .so support
13136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13137 archive_expsym_cmds=''
13138 ;;
13139 m68k)
13140 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)'
13141 hardcode_libdir_flag_spec='-L$libdir'
13142 hardcode_minus_L=yes
13143 ;;
13144 esac
13145 ;;
13146
13147 bsdi[45]*)
13148 export_dynamic_flag_spec=-rdynamic
13149 ;;
13150
13151 cygwin* | mingw* | windows* | pw32* | cegcc*)
13152 # When not using gcc, we currently assume that we are using
13153 # Microsoft Visual C++ or Intel C++ Compiler.
13154 # hardcode_libdir_flag_spec is actually meaningless, as there is
13155 # no search path for DLLs.
13156 case $cc_basename in
13157 cl* | icl*)
13158 # Native MSVC or ICC
13159 hardcode_libdir_flag_spec=' '
13160 allow_undefined_flag=unsupported
13161 always_export_symbols=yes
13162 file_list_spec='@'
13163 # Tell ltmain to make .lib files, not .a files.
13164 libext=lib
13165 # Tell ltmain to make .dll files, not .so files.
13166 shrext_cmds=.dll
13167 # FIXME: Setting linknames here is a bad hack.
13168 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13169 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13170 cp "$export_symbols" "$output_objdir/$soname.def";
13171 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13172 else
13173 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13174 fi~
13175 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13176 linknames='
13177 # The linker will not automatically build a static lib if we build a DLL.
13178 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13179 enable_shared_with_static_runtimes=yes
13180 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13182 # Don't use ranlib
13183 old_postinstall_cmds='chmod 644 $oldlib'
13184 postlink_cmds='lt_outputfile="@OUTPUT@"~
13185 lt_tool_outputfile="@TOOL_OUTPUT@"~
13186 case $lt_outputfile in
13187 *.exe|*.EXE) ;;
13188 *)
13189 lt_outputfile=$lt_outputfile.exe
13190 lt_tool_outputfile=$lt_tool_outputfile.exe
13191 ;;
13192 esac~
13193 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13195 $RM "$lt_outputfile.manifest";
13196 fi'
13197 ;;
13198 *)
13199 # Assume MSVC and ICC wrapper
13200 hardcode_libdir_flag_spec=' '
13201 allow_undefined_flag=unsupported
13202 # Tell ltmain to make .lib files, not .a files.
13203 libext=lib
13204 # Tell ltmain to make .dll files, not .so files.
13205 shrext_cmds=.dll
13206 # FIXME: Setting linknames here is a bad hack.
13207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13208 # The linker will automatically build a .lib file if we build a DLL.
13209 old_archive_from_new_cmds='true'
13210 # FIXME: Should let the user specify the lib program.
13211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13212 enable_shared_with_static_runtimes=yes
13213 ;;
13214 esac
13215 ;;
13216
13217 darwin* | rhapsody*)
13218
13219
13220 archive_cmds_need_lc=no
13221 hardcode_direct=no
13222 hardcode_automatic=yes
13223 hardcode_shlibpath_var=unsupported
13224 if test yes = "$lt_cv_ld_force_load"; then
13225 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\"`'
13226
13227 else
13228 whole_archive_flag_spec=''
13229 fi
13230 link_all_deplibs=yes
13231 allow_undefined_flag=$_lt_dar_allow_undefined
13232 case $cc_basename in
13233 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13234 *) _lt_dar_can_shared=$GCC ;;
13235 esac
13236 if test yes = "$_lt_dar_can_shared"; then
13237 output_verbose_link_cmd=func_echo_all
13238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13240 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"
13241 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"
13242
13243 else
13244 ld_shlibs=no
13245 fi
13246
13247 ;;
13248
13249 dgux*)
13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_libdir_flag_spec='-L$libdir'
13252 hardcode_shlibpath_var=no
13253 ;;
13254
13255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13256 # support. Future versions do this automatically, but an explicit c++rt0.o
13257 # does not break anything, and helps significantly (at the cost of a little
13258 # extra space).
13259 freebsd2.2*)
13260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13261 hardcode_libdir_flag_spec='-R$libdir'
13262 hardcode_direct=yes
13263 hardcode_shlibpath_var=no
13264 ;;
13265
13266 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13267 freebsd2.*)
13268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13269 hardcode_direct=yes
13270 hardcode_minus_L=yes
13271 hardcode_shlibpath_var=no
13272 ;;
13273
13274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13275 freebsd* | dragonfly* | midnightbsd*)
13276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13277 hardcode_libdir_flag_spec='-R$libdir'
13278 hardcode_direct=yes
13279 hardcode_shlibpath_var=no
13280 ;;
13281
13282 hpux9*)
13283 if test yes = "$GCC"; then
13284 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'
13285 else
13286 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'
13287 fi
13288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13289 hardcode_libdir_separator=:
13290 hardcode_direct=yes
13291
13292 # hardcode_minus_L: Not really in the search PATH,
13293 # but as the default location of the library.
13294 hardcode_minus_L=yes
13295 export_dynamic_flag_spec='$wl-E'
13296 ;;
13297
13298 hpux10*)
13299 if test yes,no = "$GCC,$with_gnu_ld"; then
13300 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13301 else
13302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13303 fi
13304 if test no = "$with_gnu_ld"; then
13305 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13306 hardcode_libdir_separator=:
13307 hardcode_direct=yes
13308 hardcode_direct_absolute=yes
13309 export_dynamic_flag_spec='$wl-E'
13310 # hardcode_minus_L: Not really in the search PATH,
13311 # but as the default location of the library.
13312 hardcode_minus_L=yes
13313 fi
13314 ;;
13315
13316 hpux11*)
13317 if test yes,no = "$GCC,$with_gnu_ld"; then
13318 case $host_cpu in
13319 hppa*64*)
13320 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 ;;
13322 ia64*)
13323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13324 ;;
13325 *)
13326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13327 ;;
13328 esac
13329 else
13330 case $host_cpu in
13331 hppa*64*)
13332 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 ;;
13334 ia64*)
13335 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13336 ;;
13337 *)
13338
13339 # Older versions of the 11.00 compiler do not understand -b yet
13340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13342 printf %s "checking if $CC understands -b... " >&6; }
13343 if test ${lt_cv_prog_compiler__b+y}
13344 then :
13345 printf %s "(cached) " >&6
13346 else case e in #(
13347 e) lt_cv_prog_compiler__b=no
13348 save_LDFLAGS=$LDFLAGS
13349 LDFLAGS="$LDFLAGS -b"
13350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13352 # The linker can only warn and ignore the option if not recognized
13353 # So say no if there are warnings
13354 if test -s conftest.err; then
13355 # Append any errors to the config.log.
13356 cat conftest.err 1>&5
13357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13359 if diff conftest.exp conftest.er2 >/dev/null; then
13360 lt_cv_prog_compiler__b=yes
13361 fi
13362 else
13363 lt_cv_prog_compiler__b=yes
13364 fi
13365 fi
13366 $RM -r conftest*
13367 LDFLAGS=$save_LDFLAGS
13368 ;;
13369 esac
13370 fi
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13372 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13373
13374 if test yes = "$lt_cv_prog_compiler__b"; then
13375 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13376 else
13377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13378 fi
13379
13380 ;;
13381 esac
13382 fi
13383 if test no = "$with_gnu_ld"; then
13384 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13385 hardcode_libdir_separator=:
13386
13387 case $host_cpu in
13388 hppa*64*|ia64*)
13389 hardcode_direct=no
13390 hardcode_shlibpath_var=no
13391 ;;
13392 *)
13393 hardcode_direct=yes
13394 hardcode_direct_absolute=yes
13395 export_dynamic_flag_spec='$wl-E'
13396
13397 # hardcode_minus_L: Not really in the search PATH,
13398 # but as the default location of the library.
13399 hardcode_minus_L=yes
13400 ;;
13401 esac
13402 fi
13403 ;;
13404
13405 irix5* | irix6* | nonstopux*)
13406 if test yes = "$GCC"; then
13407 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'
13408 # Try to use the -exported_symbol ld option, if it does not
13409 # work, assume that -exports_file does not work either and
13410 # implicitly export all symbols.
13411 # This should be the same for all languages, so no per-tag cache variable.
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13413 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13414 if test ${lt_cv_irix_exported_symbol+y}
13415 then :
13416 printf %s "(cached) " >&6
13417 else case e in #(
13418 e) save_LDFLAGS=$LDFLAGS
13419 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 int foo (void) { return 0; }
13423 _ACEOF
13424 if ac_fn_c_try_link "$LINENO"
13425 then :
13426 lt_cv_irix_exported_symbol=yes
13427 else case e in #(
13428 e) lt_cv_irix_exported_symbol=no ;;
13429 esac
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13432 conftest$ac_exeext conftest.$ac_ext
13433 LDFLAGS=$save_LDFLAGS ;;
13434 esac
13435 fi
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13437 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13438 if test yes = "$lt_cv_irix_exported_symbol"; then
13439 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'
13440 fi
13441 link_all_deplibs=no
13442 else
13443 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'
13444 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'
13445 fi
13446 archive_cmds_need_lc='no'
13447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448 hardcode_libdir_separator=:
13449 inherit_rpath=yes
13450 link_all_deplibs=yes
13451 ;;
13452
13453 linux*)
13454 case $cc_basename in
13455 tcc*)
13456 # Fabrice Bellard et al's Tiny C Compiler
13457 ld_shlibs=yes
13458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13460 ;;
13461 esac
13462 ;;
13463
13464 *-mlibc)
13465 ;;
13466
13467 netbsd* | netbsdelf*-gnu)
13468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13470 else
13471 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13472 fi
13473 hardcode_libdir_flag_spec='-R$libdir'
13474 hardcode_direct=yes
13475 hardcode_shlibpath_var=no
13476 ;;
13477
13478 newsos6)
13479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct=yes
13481 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13482 hardcode_libdir_separator=:
13483 hardcode_shlibpath_var=no
13484 ;;
13485
13486 *nto* | *qnx*)
13487 ;;
13488
13489 openbsd*)
13490 if test -f /usr/libexec/ld.so; then
13491 hardcode_direct=yes
13492 hardcode_shlibpath_var=no
13493 hardcode_direct_absolute=yes
13494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13497 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13498 export_dynamic_flag_spec='$wl-E'
13499 else
13500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13501 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13502 fi
13503 else
13504 ld_shlibs=no
13505 fi
13506 ;;
13507
13508 os2*)
13509 hardcode_libdir_flag_spec='-L$libdir'
13510 hardcode_minus_L=yes
13511 allow_undefined_flag=unsupported
13512 shrext_cmds=.dll
13513 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13514 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13515 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13516 $ECHO EXPORTS >> $output_objdir/$libname.def~
13517 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13518 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13519 emximp -o $lib $output_objdir/$libname.def'
13520 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13521 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13522 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13523 $ECHO EXPORTS >> $output_objdir/$libname.def~
13524 prefix_cmds="$SED"~
13525 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13526 prefix_cmds="$prefix_cmds -e 1d";
13527 fi~
13528 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13529 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13530 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13531 emximp -o $lib $output_objdir/$libname.def'
13532 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13533 enable_shared_with_static_runtimes=yes
13534 file_list_spec='@'
13535 ;;
13536
13537 osf3*)
13538 if test yes = "$GCC"; then
13539 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13540 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'
13541 else
13542 allow_undefined_flag=' -expect_unresolved \*'
13543 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'
13544 fi
13545 archive_cmds_need_lc='no'
13546 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13547 hardcode_libdir_separator=:
13548 ;;
13549
13550 osf4* | osf5*) # as osf3* with the addition of -msym flag
13551 if test yes = "$GCC"; then
13552 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13553 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'
13554 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13555 else
13556 allow_undefined_flag=' -expect_unresolved \*'
13557 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'
13558 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~
13559 $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'
13560
13561 # Both c and cxx compiler support -rpath directly
13562 hardcode_libdir_flag_spec='-rpath $libdir'
13563 fi
13564 archive_cmds_need_lc='no'
13565 hardcode_libdir_separator=:
13566 ;;
13567
13568 serenity*)
13569 ;;
13570
13571 solaris*)
13572 no_undefined_flag=' -z defs'
13573 if test yes = "$GCC"; then
13574 wlarc='$wl'
13575 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13577 $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'
13578 else
13579 case `$CC -V 2>&1` in
13580 *"Compilers 5.0"*)
13581 wlarc=''
13582 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13584 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13585 ;;
13586 *)
13587 wlarc='$wl'
13588 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13590 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13591 ;;
13592 esac
13593 fi
13594 hardcode_libdir_flag_spec='-R$libdir'
13595 hardcode_shlibpath_var=no
13596 case $host_os in
13597 solaris2.[0-5] | solaris2.[0-5].*) ;;
13598 *)
13599 # The compiler driver will combine and reorder linker options,
13600 # but understands '-z linker_flag'. GCC discards it without '$wl',
13601 # but is careful enough not to reorder.
13602 # Supported since Solaris 2.6 (maybe 2.5.1?)
13603 if test yes = "$GCC"; then
13604 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13605 else
13606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13607 fi
13608 ;;
13609 esac
13610 link_all_deplibs=yes
13611 ;;
13612
13613 sunos4*)
13614 if test sequent = "$host_vendor"; then
13615 # Use $CC to link under sequent, because it throws in some extra .o
13616 # files that make .init and .fini sections work.
13617 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13618 else
13619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13620 fi
13621 hardcode_libdir_flag_spec='-L$libdir'
13622 hardcode_direct=yes
13623 hardcode_minus_L=yes
13624 hardcode_shlibpath_var=no
13625 ;;
13626
13627 sysv4)
13628 case $host_vendor in
13629 sni)
13630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13631 hardcode_direct=yes # is this really true???
13632 ;;
13633 siemens)
13634 ## LD is ld it makes a PLAMLIB
13635 ## CC just makes a GrossModule.
13636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13637 reload_cmds='$CC -r -o $output$reload_objs'
13638 hardcode_direct=no
13639 ;;
13640 motorola)
13641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13643 ;;
13644 esac
13645 runpath_var='LD_RUN_PATH'
13646 hardcode_shlibpath_var=no
13647 ;;
13648
13649 sysv4.3*)
13650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13651 hardcode_shlibpath_var=no
13652 export_dynamic_flag_spec='-Bexport'
13653 ;;
13654
13655 sysv4*MP*)
13656 if test -d /usr/nec; then
13657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13658 hardcode_shlibpath_var=no
13659 runpath_var=LD_RUN_PATH
13660 hardcode_runpath_var=yes
13661 ld_shlibs=yes
13662 fi
13663 ;;
13664
13665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13666 no_undefined_flag='$wl-z,text'
13667 archive_cmds_need_lc=no
13668 hardcode_shlibpath_var=no
13669 runpath_var='LD_RUN_PATH'
13670
13671 if test yes = "$GCC"; then
13672 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 else
13675 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 fi
13678 ;;
13679
13680 sysv5* | sco3.2v5* | sco5v6*)
13681 # Note: We CANNOT use -z defs as we might desire, because we do not
13682 # link with -lc, and that would cause any symbols used from libc to
13683 # always be unresolved, which means just about no library would
13684 # ever link correctly. If we're not using GNU ld we use -z text
13685 # though, which does catch some bad symbols but isn't as heavy-handed
13686 # as -z defs.
13687 no_undefined_flag='$wl-z,text'
13688 allow_undefined_flag='$wl-z,nodefs'
13689 archive_cmds_need_lc=no
13690 hardcode_shlibpath_var=no
13691 hardcode_libdir_flag_spec='$wl-R,$libdir'
13692 hardcode_libdir_separator=':'
13693 link_all_deplibs=yes
13694 export_dynamic_flag_spec='$wl-Bexport'
13695 runpath_var='LD_RUN_PATH'
13696
13697 if test yes = "$GCC"; then
13698 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13700 else
13701 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13702 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 fi
13704 ;;
13705
13706 uts4*)
13707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 hardcode_libdir_flag_spec='-L$libdir'
13709 hardcode_shlibpath_var=no
13710 ;;
13711
13712 *)
13713 ld_shlibs=no
13714 ;;
13715 esac
13716
13717 if test sni = "$host_vendor"; then
13718 case $host in
13719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13720 export_dynamic_flag_spec='$wl-Blargedynsym'
13721 ;;
13722 esac
13723 fi
13724 fi
13725
13726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13727 printf "%s\n" "$ld_shlibs" >&6; }
13728 test no = "$ld_shlibs" && can_build_shared=no
13729
13730 with_gnu_ld=$with_gnu_ld
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746 #
13747 # Do we need to explicitly link libc?
13748 #
13749 case "x$archive_cmds_need_lc" in
13750 x|xyes)
13751 # Assume -lc should be added
13752 archive_cmds_need_lc=yes
13753
13754 if test yes,yes = "$GCC,$enable_shared"; then
13755 case $archive_cmds in
13756 *'~'*)
13757 # FIXME: we may have to deal with multi-command sequences.
13758 ;;
13759 '$CC '*)
13760 # Test whether the compiler implicitly links with -lc since on some
13761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13762 # to ld, don't add -lc before -lgcc.
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13764 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13765 if test ${lt_cv_archive_cmds_need_lc+y}
13766 then :
13767 printf %s "(cached) " >&6
13768 else case e in #(
13769 e) $RM conftest*
13770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13771
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13773 (eval $ac_compile) 2>&5
13774 ac_status=$?
13775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; } 2>conftest.err; then
13777 soname=conftest
13778 lib=conftest
13779 libobjs=conftest.$ac_objext
13780 deplibs=
13781 wl=$lt_prog_compiler_wl
13782 pic_flag=$lt_prog_compiler_pic
13783 compiler_flags=-v
13784 linker_flags=-v
13785 verstring=
13786 output_objdir=.
13787 libname=conftest
13788 lt_save_allow_undefined_flag=$allow_undefined_flag
13789 allow_undefined_flag=
13790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13791 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13792 ac_status=$?
13793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13794 test $ac_status = 0; }
13795 then
13796 lt_cv_archive_cmds_need_lc=no
13797 else
13798 lt_cv_archive_cmds_need_lc=yes
13799 fi
13800 allow_undefined_flag=$lt_save_allow_undefined_flag
13801 else
13802 cat conftest.err 1>&5
13803 fi
13804 $RM conftest*
13805 ;;
13806 esac
13807 fi
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13809 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13810 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13811 ;;
13812 esac
13813 fi
13814 ;;
13815 esac
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13969 printf %s "checking dynamic linker characteristics... " >&6; }
13970
13971 if test yes = "$GCC"; then
13972 case $host_os in
13973 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13974 *) lt_awk_arg='/^libraries:/' ;;
13975 esac
13976 case $host_os in
13977 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13978 *) lt_sed_strip_eq='s|=/|/|g' ;;
13979 esac
13980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13981 case $lt_search_path_spec in
13982 *\;*)
13983 # if the path contains ";" then we assume it to be the separator
13984 # otherwise default to the standard path separator (i.e. ":") - it is
13985 # assumed that no part of a normal pathname contains ";" but that should
13986 # okay in the real world where ";" in dirpaths is itself problematic.
13987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13988 ;;
13989 *)
13990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13991 ;;
13992 esac
13993 # Ok, now we have the path, separated by spaces, we can step through it
13994 # and add multilib dir if necessary...
13995 lt_tmp_lt_search_path_spec=
13996 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13997 # ...but if some path component already ends with the multilib dir we assume
13998 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13999 case "$lt_multi_os_dir; $lt_search_path_spec " in
14000 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14001 lt_multi_os_dir=
14002 ;;
14003 esac
14004 for lt_sys_path in $lt_search_path_spec; do
14005 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14007 elif test -n "$lt_multi_os_dir"; then
14008 test -d "$lt_sys_path" && \
14009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14010 fi
14011 done
14012 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14013 BEGIN {RS = " "; FS = "/|\n";} {
14014 lt_foo = "";
14015 lt_count = 0;
14016 for (lt_i = NF; lt_i > 0; lt_i--) {
14017 if ($lt_i != "" && $lt_i != ".") {
14018 if ($lt_i == "..") {
14019 lt_count++;
14020 } else {
14021 if (lt_count == 0) {
14022 lt_foo = "/" $lt_i lt_foo;
14023 } else {
14024 lt_count--;
14025 }
14026 }
14027 }
14028 }
14029 if (lt_foo != "") { lt_freq[lt_foo]++; }
14030 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14031 }'`
14032 # AWK program above erroneously prepends '/' to C:/dos/paths
14033 # for these hosts.
14034 case $host_os in
14035 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14036 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14037 esac
14038 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14039 else
14040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14041 fi
14042 library_names_spec=
14043 libname_spec='lib$name'
14044 soname_spec=
14045 shrext_cmds=.so
14046 postinstall_cmds=
14047 postuninstall_cmds=
14048 finish_cmds=
14049 finish_eval=
14050 shlibpath_var=
14051 shlibpath_overrides_runpath=unknown
14052 version_type=none
14053 dynamic_linker="$host_os ld.so"
14054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14055 need_lib_prefix=unknown
14056 hardcode_into_libs=no
14057
14058 # when you set need_version to no, make sure it does not cause -set_version
14059 # flags to be left without arguments
14060 need_version=unknown
14061
14062
14063
14064 case $host_os in
14065 aix3*)
14066 version_type=linux # correct to gnu/linux during the next big refactor
14067 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14068 shlibpath_var=LIBPATH
14069
14070 # AIX 3 has no versioning support, so we append a major version to the name.
14071 soname_spec='$libname$release$shared_ext$major'
14072 ;;
14073
14074 aix[4-9]*)
14075 version_type=linux # correct to gnu/linux during the next big refactor
14076 need_lib_prefix=no
14077 need_version=no
14078 hardcode_into_libs=yes
14079 if test ia64 = "$host_cpu"; then
14080 # AIX 5 supports IA64
14081 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 else
14084 # With GCC up to 2.95.x, collect2 would create an import file
14085 # for dependence libraries. The import file would start with
14086 # the line '#! .'. This would cause the generated library to
14087 # depend on '.', always an invalid library. This was fixed in
14088 # development snapshots of GCC prior to 3.0.
14089 case $host_os in
14090 aix4 | aix4.[01] | aix4.[01].*)
14091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14092 echo ' yes '
14093 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14094 :
14095 else
14096 can_build_shared=no
14097 fi
14098 ;;
14099 esac
14100 # Using Import Files as archive members, it is possible to support
14101 # filename-based versioning of shared library archives on AIX. While
14102 # this would work for both with and without runtime linking, it will
14103 # prevent static linking of such archives. So we do filename-based
14104 # shared library versioning with .so extension only, which is used
14105 # when both runtime linking and shared linking is enabled.
14106 # Unfortunately, runtime linking may impact performance, so we do
14107 # not want this to be the default eventually. Also, we use the
14108 # versioned .so libs for executables only if there is the -brtl
14109 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14110 # To allow for filename-based versioning support, we need to create
14111 # libNAME.so.V as an archive file, containing:
14112 # *) an Import File, referring to the versioned filename of the
14113 # archive as well as the shared archive member, telling the
14114 # bitwidth (32 or 64) of that shared object, and providing the
14115 # list of exported symbols of that shared object, eventually
14116 # decorated with the 'weak' keyword
14117 # *) the shared object with the F_LOADONLY flag set, to really avoid
14118 # it being seen by the linker.
14119 # At run time we better use the real file rather than another symlink,
14120 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14121
14122 case $with_aix_soname,$aix_use_runtimelinking in
14123 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14124 # soname into executable. Probably we can add versioning support to
14125 # collect2, so additional links can be useful in future.
14126 aix,yes) # traditional libtool
14127 dynamic_linker='AIX unversionable lib.so'
14128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14129 # instead of lib<name>.a to let people know that these are not
14130 # typical AIX shared libraries.
14131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14132 ;;
14133 aix,no) # traditional AIX only
14134 dynamic_linker='AIX lib.a(lib.so.V)'
14135 # We preserve .a as extension for shared libraries through AIX4.2
14136 # and later when we are not doing run time linking.
14137 library_names_spec='$libname$release.a $libname.a'
14138 soname_spec='$libname$release$shared_ext$major'
14139 ;;
14140 svr4,*) # full svr4 only
14141 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14142 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14143 # We do not specify a path in Import Files, so LIBPATH fires.
14144 shlibpath_overrides_runpath=yes
14145 ;;
14146 *,yes) # both, prefer svr4
14147 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14148 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14149 # unpreferred sharedlib libNAME.a needs extra handling
14150 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"'
14151 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"'
14152 # We do not specify a path in Import Files, so LIBPATH fires.
14153 shlibpath_overrides_runpath=yes
14154 ;;
14155 *,no) # both, prefer aix
14156 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14157 library_names_spec='$libname$release.a $libname.a'
14158 soname_spec='$libname$release$shared_ext$major'
14159 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14160 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)'
14161 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"'
14162 ;;
14163 esac
14164 shlibpath_var=LIBPATH
14165 fi
14166 ;;
14167
14168 amigaos*)
14169 case $host_cpu in
14170 powerpc)
14171 # Since July 2007 AmigaOS4 officially supports .so libraries.
14172 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14174 ;;
14175 m68k)
14176 library_names_spec='$libname.ixlibrary $libname.a'
14177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14178 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'
14179 ;;
14180 esac
14181 ;;
14182
14183 beos*)
14184 library_names_spec='$libname$shared_ext'
14185 dynamic_linker="$host_os ld.so"
14186 shlibpath_var=LIBRARY_PATH
14187 ;;
14188
14189 bsdi[45]*)
14190 version_type=linux # correct to gnu/linux during the next big refactor
14191 need_version=no
14192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14193 soname_spec='$libname$release$shared_ext$major'
14194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14198 # the default ld.so.conf also contains /usr/contrib/lib and
14199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14200 # libtool to hard-code these into programs
14201 ;;
14202
14203 cygwin* | mingw* | windows* | pw32* | cegcc*)
14204 version_type=windows
14205 shrext_cmds=.dll
14206 need_version=no
14207 need_lib_prefix=no
14208
14209 case $GCC,$cc_basename in
14210 yes,*)
14211 # gcc
14212 library_names_spec='$libname.dll.a'
14213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14214 # If user builds GCC with multilib enabled,
14215 # it should just install on $(libdir)
14216 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14217 if test xyes = x"$multilib"; then
14218 postinstall_cmds='base_file=`basename \$file`~
14219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14220 dldir=$destdir/`dirname \$dlpath`~
14221 $install_prog $dir/$dlname $destdir/$dlname~
14222 chmod a+x $destdir/$dlname~
14223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14224 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14225 fi'
14226 else
14227 postinstall_cmds='base_file=`basename \$file`~
14228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14229 dldir=$destdir/`dirname \$dlpath`~
14230 test -d \$dldir || mkdir -p \$dldir~
14231 $install_prog $dir/$dlname \$dldir/$dlname~
14232 chmod a+x \$dldir/$dlname~
14233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14235 fi'
14236 fi
14237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14238 dlpath=$dir/\$dldll~
14239 $RM \$dlpath'
14240 shlibpath_overrides_runpath=yes
14241
14242 case $host_os in
14243 cygwin*)
14244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14245 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14246
14247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14248 ;;
14249 mingw* | windows* | cegcc*)
14250 # MinGW DLLs use traditional 'lib' prefix
14251 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14252 ;;
14253 pw32*)
14254 # pw32 DLLs use 'pw' prefix rather than 'lib'
14255 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14256 ;;
14257 esac
14258 dynamic_linker='Win32 ld.exe'
14259 ;;
14260
14261 *,cl* | *,icl*)
14262 # Native MSVC or ICC
14263 libname_spec='$name'
14264 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14265 library_names_spec='$libname.dll.lib'
14266
14267 case $build_os in
14268 mingw* | windows*)
14269 sys_lib_search_path_spec=
14270 lt_save_ifs=$IFS
14271 IFS=';'
14272 for lt_path in $LIB
14273 do
14274 IFS=$lt_save_ifs
14275 # Let DOS variable expansion print the short 8.3 style file name.
14276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14278 done
14279 IFS=$lt_save_ifs
14280 # Convert to MSYS style.
14281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14282 ;;
14283 cygwin*)
14284 # Convert to unix form, then to dos form, then back to unix form
14285 # but this time dos style (no spaces!) so that the unix form looks
14286 # like /cygdrive/c/PROGRA~1:/cygdr...
14287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14290 ;;
14291 *)
14292 sys_lib_search_path_spec=$LIB
14293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14294 # It is most probably a Windows format PATH.
14295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14296 else
14297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14298 fi
14299 # FIXME: find the short name or the path components, as spaces are
14300 # common. (e.g. "Program Files" -> "PROGRA~1")
14301 ;;
14302 esac
14303
14304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14305 postinstall_cmds='base_file=`basename \$file`~
14306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14307 dldir=$destdir/`dirname \$dlpath`~
14308 test -d \$dldir || mkdir -p \$dldir~
14309 $install_prog $dir/$dlname \$dldir/$dlname'
14310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14311 dlpath=$dir/\$dldll~
14312 $RM \$dlpath'
14313 shlibpath_overrides_runpath=yes
14314 dynamic_linker='Win32 link.exe'
14315 ;;
14316
14317 *)
14318 # Assume MSVC and ICC wrapper
14319 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14320 dynamic_linker='Win32 ld.exe'
14321 ;;
14322 esac
14323 # FIXME: first we should search . and the directory the executable is in
14324 shlibpath_var=PATH
14325 ;;
14326
14327 darwin* | rhapsody*)
14328 dynamic_linker="$host_os dyld"
14329 version_type=darwin
14330 need_lib_prefix=no
14331 need_version=no
14332 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14333 soname_spec='$libname$release$major$shared_ext'
14334 shlibpath_overrides_runpath=yes
14335 shlibpath_var=DYLD_LIBRARY_PATH
14336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14337
14338 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14340 ;;
14341
14342 dgux*)
14343 version_type=linux # correct to gnu/linux during the next big refactor
14344 need_lib_prefix=no
14345 need_version=no
14346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14347 soname_spec='$libname$release$shared_ext$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 ;;
14350
14351 freebsd* | dragonfly* | midnightbsd*)
14352 # DragonFly does not have aout. When/if they implement a new
14353 # versioning mechanism, adjust this.
14354 if test -x /usr/bin/objformat; then
14355 objformat=`/usr/bin/objformat`
14356 else
14357 case $host_os in
14358 freebsd[23].*) objformat=aout ;;
14359 *) objformat=elf ;;
14360 esac
14361 fi
14362 version_type=freebsd-$objformat
14363 case $version_type in
14364 freebsd-elf*)
14365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366 soname_spec='$libname$release$shared_ext$major'
14367 need_version=no
14368 need_lib_prefix=no
14369 ;;
14370 freebsd-*)
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14372 need_version=yes
14373 ;;
14374 esac
14375 case $host_cpu in
14376 powerpc64)
14377 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14378 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 int test_pointer_size[sizeof (void *) - 5];
14382
14383 _ACEOF
14384 if ac_fn_c_try_compile "$LINENO"
14385 then :
14386 shlibpath_var=LD_LIBRARY_PATH
14387 else case e in #(
14388 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14389 esac
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14392 ;;
14393 *)
14394 shlibpath_var=LD_LIBRARY_PATH
14395 ;;
14396 esac
14397 case $host_os in
14398 freebsd2.*)
14399 shlibpath_overrides_runpath=yes
14400 ;;
14401 freebsd3.[01]* | freebsdelf3.[01]*)
14402 shlibpath_overrides_runpath=yes
14403 hardcode_into_libs=yes
14404 ;;
14405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14407 shlibpath_overrides_runpath=no
14408 hardcode_into_libs=yes
14409 ;;
14410 *) # from 4.6 on, and DragonFly
14411 shlibpath_overrides_runpath=yes
14412 hardcode_into_libs=yes
14413 ;;
14414 esac
14415 ;;
14416
14417 haiku*)
14418 version_type=linux # correct to gnu/linux during the next big refactor
14419 need_lib_prefix=no
14420 need_version=no
14421 dynamic_linker="$host_os runtime_loader"
14422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14423 soname_spec='$libname$release$shared_ext$major'
14424 shlibpath_var=LIBRARY_PATH
14425 shlibpath_overrides_runpath=no
14426 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14427 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14428 hardcode_into_libs=no
14429 ;;
14430
14431 hpux9* | hpux10* | hpux11*)
14432 # Give a soname corresponding to the major version so that dld.sl refuses to
14433 # link against other versions.
14434 version_type=sunos
14435 need_lib_prefix=no
14436 need_version=no
14437 case $host_cpu in
14438 ia64*)
14439 shrext_cmds='.so'
14440 hardcode_into_libs=yes
14441 dynamic_linker="$host_os dld.so"
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14445 soname_spec='$libname$release$shared_ext$major'
14446 if test 32 = "$HPUX_IA64_MODE"; then
14447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14448 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14449 else
14450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14451 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14452 fi
14453 ;;
14454 hppa*64*)
14455 shrext_cmds='.sl'
14456 hardcode_into_libs=yes
14457 dynamic_linker="$host_os dld.sl"
14458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14461 soname_spec='$libname$release$shared_ext$major'
14462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14464 ;;
14465 *)
14466 shrext_cmds='.sl'
14467 dynamic_linker="$host_os dld.sl"
14468 shlibpath_var=SHLIB_PATH
14469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14471 soname_spec='$libname$release$shared_ext$major'
14472 ;;
14473 esac
14474 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14475 postinstall_cmds='chmod 555 $lib'
14476 # or fails outright, so override atomically:
14477 install_override_mode=555
14478 ;;
14479
14480 interix[3-9]*)
14481 version_type=linux # correct to gnu/linux during the next big refactor
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14485 soname_spec='$libname$release$shared_ext$major'
14486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=no
14489 hardcode_into_libs=yes
14490 ;;
14491
14492 irix5* | irix6* | nonstopux*)
14493 case $host_os in
14494 nonstopux*) version_type=nonstopux ;;
14495 *)
14496 if test yes = "$lt_cv_prog_gnu_ld"; then
14497 version_type=linux # correct to gnu/linux during the next big refactor
14498 else
14499 version_type=irix
14500 fi ;;
14501 esac
14502 need_lib_prefix=no
14503 need_version=no
14504 soname_spec='$libname$release$shared_ext$major'
14505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14506 case $host_os in
14507 irix5* | nonstopux*)
14508 libsuff= shlibsuff=
14509 ;;
14510 *)
14511 case $LD in # libtool.m4 will add one of these switches to LD
14512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14513 libsuff= shlibsuff= libmagic=32-bit;;
14514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14515 libsuff=32 shlibsuff=N32 libmagic=N32;;
14516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14518 *) libsuff= shlibsuff= libmagic=never-match;;
14519 esac
14520 ;;
14521 esac
14522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14523 shlibpath_overrides_runpath=no
14524 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14525 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14526 hardcode_into_libs=yes
14527 ;;
14528
14529 # No shared lib support for Linux oldld, aout, or coff.
14530 linux*oldld* | linux*aout* | linux*coff*)
14531 dynamic_linker=no
14532 ;;
14533
14534 linux*android*)
14535 version_type=none # Android doesn't support versioned libraries.
14536 need_lib_prefix=no
14537 need_version=no
14538 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14539 soname_spec='$libname$release$shared_ext'
14540 finish_cmds=
14541 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=yes
14543
14544 # This implies no fast_install, which is unacceptable.
14545 # Some rework will be needed to allow for fast_install
14546 # before this can be enabled.
14547 hardcode_into_libs=yes
14548
14549 dynamic_linker='Android linker'
14550 # -rpath works at least for libraries that are not overridden by
14551 # libraries installed in system locations.
14552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14553 ;;
14554
14555 # This must be glibc/ELF.
14556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14557 version_type=linux # correct to gnu/linux during the next big refactor
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14561 soname_spec='$libname$release$shared_ext$major'
14562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath=no
14565
14566 # Some binutils ld are patched to set DT_RUNPATH
14567 if test ${lt_cv_shlibpath_overrides_runpath+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else case e in #(
14571 e) lt_cv_shlibpath_overrides_runpath=no
14572 save_LDFLAGS=$LDFLAGS
14573 save_libdir=$libdir
14574 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14575 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578
14579 int
14580 main (void)
14581 {
14582
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"
14588 then :
14589 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14590 then :
14591 lt_cv_shlibpath_overrides_runpath=yes
14592 fi
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14595 conftest$ac_exeext conftest.$ac_ext
14596 LDFLAGS=$save_LDFLAGS
14597 libdir=$save_libdir
14598 ;;
14599 esac
14600 fi
14601
14602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14603
14604 # This implies no fast_install, which is unacceptable.
14605 # Some rework will be needed to allow for fast_install
14606 # before this can be enabled.
14607 hardcode_into_libs=yes
14608
14609 # Ideally, we could use ldconfig to report *all* directories which are
14610 # searched for libraries, however this is still not possible. Aside from not
14611 # being certain /sbin/ldconfig is available, command
14612 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14613 # even though it is searched at run-time. Try to do the best guess by
14614 # appending ld.so.conf contents (and includes) to the search path.
14615 if test -f /etc/ld.so.conf; then
14616 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' ' '`
14617 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14618 fi
14619
14620 # We used to test for /lib/ld.so.1 and disable shared libraries on
14621 # powerpc, because MkLinux only supported shared libraries with the
14622 # GNU dynamic linker. Since this was broken with cross compilers,
14623 # most powerpc-linux boxes support dynamic linking these days and
14624 # people can always --disable-shared, the test was removed, and we
14625 # assume the GNU/Linux dynamic linker is in use.
14626 dynamic_linker='GNU/Linux ld.so'
14627 ;;
14628
14629 netbsdelf*-gnu)
14630 version_type=linux
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14634 soname_spec='$libname$release$shared_ext$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=no
14637 hardcode_into_libs=yes
14638 dynamic_linker='NetBSD ld.elf_so'
14639 ;;
14640
14641 netbsdelf*-gnu)
14642 version_type=linux
14643 need_lib_prefix=no
14644 need_version=no
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=no
14649 hardcode_into_libs=yes
14650 dynamic_linker='NetBSD ld.elf_so'
14651 ;;
14652
14653 netbsd*)
14654 version_type=sunos
14655 need_lib_prefix=no
14656 need_version=no
14657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14658 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14660 dynamic_linker='NetBSD (a.out) ld.so'
14661 else
14662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14663 soname_spec='$libname$release$shared_ext$major'
14664 dynamic_linker='NetBSD ld.elf_so'
14665 fi
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14668 hardcode_into_libs=yes
14669 ;;
14670
14671 *-mlibc)
14672 version_type=linux # correct to gnu/linux during the next big refactor
14673 need_lib_prefix=no
14674 need_version=no
14675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14676 soname_spec='$libname$release$shared_ext$major'
14677 dynamic_linker='mlibc ld.so'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=no
14680 hardcode_into_libs=yes
14681 ;;
14682
14683 newsos6)
14684 version_type=linux # correct to gnu/linux during the next big refactor
14685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14688 ;;
14689
14690 *nto* | *qnx*)
14691 version_type=qnx
14692 need_lib_prefix=no
14693 need_version=no
14694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14695 soname_spec='$libname$release$shared_ext$major'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14698 hardcode_into_libs=yes
14699 dynamic_linker='ldqnx.so'
14700 ;;
14701
14702 openbsd*)
14703 version_type=sunos
14704 sys_lib_dlsearch_path_spec=/usr/lib
14705 need_lib_prefix=no
14706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14707 need_version=no
14708 else
14709 need_version=yes
14710 fi
14711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14713 shlibpath_var=LD_LIBRARY_PATH
14714 shlibpath_overrides_runpath=yes
14715 ;;
14716
14717 os2*)
14718 libname_spec='$name'
14719 version_type=windows
14720 shrext_cmds=.dll
14721 need_version=no
14722 need_lib_prefix=no
14723 # OS/2 can only load a DLL with a base name of 8 characters or less.
14724 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14725 v=$($ECHO $release$versuffix | tr -d .-);
14726 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14727 $ECHO $n$v`$shared_ext'
14728 library_names_spec='${libname}_dll.$libext'
14729 dynamic_linker='OS/2 ld.exe'
14730 shlibpath_var=BEGINLIBPATH
14731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14733 postinstall_cmds='base_file=`basename \$file`~
14734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14735 dldir=$destdir/`dirname \$dlpath`~
14736 test -d \$dldir || mkdir -p \$dldir~
14737 $install_prog $dir/$dlname \$dldir/$dlname~
14738 chmod a+x \$dldir/$dlname~
14739 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14740 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14741 fi'
14742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14743 dlpath=$dir/\$dldll~
14744 $RM \$dlpath'
14745 ;;
14746
14747 osf3* | osf4* | osf5*)
14748 version_type=osf
14749 need_lib_prefix=no
14750 need_version=no
14751 soname_spec='$libname$release$shared_ext$major'
14752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14756 ;;
14757
14758 rdos*)
14759 dynamic_linker=no
14760 ;;
14761
14762 serenity*)
14763 version_type=linux # correct to gnu/linux during the next big refactor
14764 need_lib_prefix=no
14765 need_version=no
14766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14767 soname_spec='$libname$release$shared_ext$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=no
14770 dynamic_linker='SerenityOS LibELF'
14771 ;;
14772
14773 solaris*)
14774 version_type=linux # correct to gnu/linux during the next big refactor
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14778 soname_spec='$libname$release$shared_ext$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=yes
14781 hardcode_into_libs=yes
14782 # ldd complains unless libraries are executable
14783 postinstall_cmds='chmod +x $lib'
14784 ;;
14785
14786 sunos4*)
14787 version_type=sunos
14788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=yes
14792 if test yes = "$with_gnu_ld"; then
14793 need_lib_prefix=no
14794 fi
14795 need_version=yes
14796 ;;
14797
14798 sysv4 | sysv4.3*)
14799 version_type=linux # correct to gnu/linux during the next big refactor
14800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14801 soname_spec='$libname$release$shared_ext$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 case $host_vendor in
14804 sni)
14805 shlibpath_overrides_runpath=no
14806 need_lib_prefix=no
14807 runpath_var=LD_RUN_PATH
14808 ;;
14809 siemens)
14810 need_lib_prefix=no
14811 ;;
14812 motorola)
14813 need_lib_prefix=no
14814 need_version=no
14815 shlibpath_overrides_runpath=no
14816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14817 ;;
14818 esac
14819 ;;
14820
14821 sysv4*MP*)
14822 if test -d /usr/nec; then
14823 version_type=linux # correct to gnu/linux during the next big refactor
14824 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14825 soname_spec='$libname$shared_ext.$major'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 fi
14828 ;;
14829
14830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14831 version_type=sco
14832 need_lib_prefix=no
14833 need_version=no
14834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14835 soname_spec='$libname$release$shared_ext$major'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes
14838 hardcode_into_libs=yes
14839 if test yes = "$with_gnu_ld"; then
14840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14841 else
14842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14843 case $host_os in
14844 sco3.2v5*)
14845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14846 ;;
14847 esac
14848 fi
14849 sys_lib_dlsearch_path_spec='/usr/lib'
14850 ;;
14851
14852 tpf*)
14853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14854 version_type=linux # correct to gnu/linux during the next big refactor
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14861 ;;
14862
14863 uts4*)
14864 version_type=linux # correct to gnu/linux during the next big refactor
14865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14866 soname_spec='$libname$release$shared_ext$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 ;;
14869
14870 emscripten*)
14871 version_type=none
14872 need_lib_prefix=no
14873 need_version=no
14874 library_names_spec='$libname$release$shared_ext'
14875 soname_spec='$libname$release$shared_ext'
14876 finish_cmds=
14877 dynamic_linker="Emscripten linker"
14878 lt_prog_compiler_wl=
14879 lt_prog_compiler_pic=
14880 lt_prog_compiler_static=
14881
14882
14883 if test yes = "$GCC"; then
14884 lt_prog_compiler_wl='-Wl,'
14885 lt_prog_compiler_static='-static'
14886
14887 case $host_os in
14888 aix*)
14889 # All AIX code is PIC.
14890 if test ia64 = "$host_cpu"; then
14891 # AIX 5 now supports IA64 processor
14892 lt_prog_compiler_static='-Bstatic'
14893 fi
14894 lt_prog_compiler_pic='-fPIC'
14895 ;;
14896
14897 amigaos*)
14898 case $host_cpu in
14899 powerpc)
14900 # see comment about AmigaOS4 .so support
14901 lt_prog_compiler_pic='-fPIC'
14902 ;;
14903 m68k)
14904 # FIXME: we need at least 68020 code to build shared libraries, but
14905 # adding the '-m68020' flag to GCC prevents building anything better,
14906 # like '-m68040'.
14907 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14908 ;;
14909 esac
14910 ;;
14911
14912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14913 # PIC is the default for these OSes.
14914 ;;
14915
14916 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14917 # This hack is so that the source file can tell whether it is being
14918 # built for inclusion in a dll (and should export symbols for example).
14919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14920 # (--disable-auto-import) libraries
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14922 case $host_os in
14923 os2*)
14924 lt_prog_compiler_static='$wl-static'
14925 ;;
14926 esac
14927 ;;
14928
14929 darwin* | rhapsody*)
14930 # PIC is the default on this platform
14931 # Common symbols not allowed in MH_DYLIB files
14932 lt_prog_compiler_pic='-fno-common'
14933 ;;
14934
14935 haiku*)
14936 # PIC is the default for Haiku.
14937 # The "-static" flag exists, but is broken.
14938 lt_prog_compiler_static=
14939 ;;
14940
14941 hpux*)
14942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14944 # sets the default TLS model and affects inlining.
14945 case $host_cpu in
14946 hppa*64*)
14947 # +Z the default
14948 ;;
14949 *)
14950 lt_prog_compiler_pic='-fPIC'
14951 ;;
14952 esac
14953 ;;
14954
14955 interix[3-9]*)
14956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14957 # Instead, we relocate shared libraries at runtime.
14958 ;;
14959
14960 msdosdjgpp*)
14961 # Just because we use GCC doesn't mean we suddenly get shared libraries
14962 # on systems that don't support them.
14963 lt_prog_compiler_can_build_shared=no
14964 enable_shared=no
14965 ;;
14966
14967 *nto* | *qnx*)
14968 # QNX uses GNU C++, but need to define -shared option too, otherwise
14969 # it will coredump.
14970 lt_prog_compiler_pic='-fPIC -shared'
14971 ;;
14972
14973 sysv4*MP*)
14974 if test -d /usr/nec; then
14975 lt_prog_compiler_pic=-Kconform_pic
14976 fi
14977 ;;
14978
14979 *)
14980 lt_prog_compiler_pic='-fPIC'
14981 ;;
14982 esac
14983
14984 case $cc_basename in
14985 nvcc*) # Cuda Compiler Driver 2.2
14986 lt_prog_compiler_wl='-Xlinker '
14987 if test -n "$lt_prog_compiler_pic"; then
14988 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14989 fi
14990 ;;
14991 esac
14992 else
14993 # PORTME Check for flag to pass linker flags through the system compiler.
14994 case $host_os in
14995 aix*)
14996 lt_prog_compiler_wl='-Wl,'
14997 if test ia64 = "$host_cpu"; then
14998 # AIX 5 now supports IA64 processor
14999 lt_prog_compiler_static='-Bstatic'
15000 else
15001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15002 fi
15003 ;;
15004
15005 darwin* | rhapsody*)
15006 # PIC is the default on this platform
15007 # Common symbols not allowed in MH_DYLIB files
15008 lt_prog_compiler_pic='-fno-common'
15009 case $cc_basename in
15010 nagfor*)
15011 # NAG Fortran compiler
15012 lt_prog_compiler_wl='-Wl,-Wl,,'
15013 lt_prog_compiler_pic='-PIC'
15014 lt_prog_compiler_static='-Bstatic'
15015 ;;
15016 esac
15017 ;;
15018
15019 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15020 # This hack is so that the source file can tell whether it is being
15021 # built for inclusion in a dll (and should export symbols for example).
15022 lt_prog_compiler_pic='-DDLL_EXPORT'
15023 case $host_os in
15024 os2*)
15025 lt_prog_compiler_static='$wl-static'
15026 ;;
15027 esac
15028 ;;
15029
15030 hpux9* | hpux10* | hpux11*)
15031 lt_prog_compiler_wl='-Wl,'
15032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15033 # not for PA HP-UX.
15034 case $host_cpu in
15035 hppa*64*|ia64*)
15036 # +Z the default
15037 ;;
15038 *)
15039 lt_prog_compiler_pic='+Z'
15040 ;;
15041 esac
15042 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15043 lt_prog_compiler_static='$wl-a ${wl}archive'
15044 ;;
15045
15046 irix5* | irix6* | nonstopux*)
15047 lt_prog_compiler_wl='-Wl,'
15048 # PIC (with -KPIC) is the default.
15049 lt_prog_compiler_static='-non_shared'
15050 ;;
15051
15052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15053 case $cc_basename in
15054 # old Intel for x86_64, which still supported -KPIC.
15055 ecc*)
15056 lt_prog_compiler_wl='-Wl,'
15057 lt_prog_compiler_pic='-KPIC'
15058 lt_prog_compiler_static='-static'
15059 ;;
15060 *flang* | ftn | f18* | f95*)
15061 # Flang compiler.
15062 lt_prog_compiler_wl='-Wl,'
15063 lt_prog_compiler_pic='-fPIC'
15064 lt_prog_compiler_static='-static'
15065 ;;
15066 # flang / f18. f95 an alias for gfortran or flang on Debian
15067 flang* | f18* | f95*)
15068 lt_prog_compiler_wl='-Wl,'
15069 lt_prog_compiler_pic='-fPIC'
15070 lt_prog_compiler_static='-static'
15071 ;;
15072 # icc used to be incompatible with GCC.
15073 # ICC 10 doesn't accept -KPIC any more.
15074 icc* | ifort*)
15075 lt_prog_compiler_wl='-Wl,'
15076 lt_prog_compiler_pic='-fPIC'
15077 lt_prog_compiler_static='-static'
15078 ;;
15079 # Lahey Fortran 8.1.
15080 lf95*)
15081 lt_prog_compiler_wl='-Wl,'
15082 lt_prog_compiler_pic='--shared'
15083 lt_prog_compiler_static='--static'
15084 ;;
15085 nagfor*)
15086 # NAG Fortran compiler
15087 lt_prog_compiler_wl='-Wl,-Wl,,'
15088 lt_prog_compiler_pic='-PIC'
15089 lt_prog_compiler_static='-Bstatic'
15090 ;;
15091 tcc*)
15092 # Fabrice Bellard et al's Tiny C Compiler
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_pic='-fPIC'
15095 lt_prog_compiler_static='-static'
15096 ;;
15097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15098 # Portland Group compilers (*not* the Pentium gcc compiler,
15099 # which looks to be a dead project)
15100 lt_prog_compiler_wl='-Wl,'
15101 lt_prog_compiler_pic='-fpic'
15102 lt_prog_compiler_static='-Bstatic'
15103 ;;
15104 ccc*)
15105 lt_prog_compiler_wl='-Wl,'
15106 # All Alpha code is PIC.
15107 lt_prog_compiler_static='-non_shared'
15108 ;;
15109 xl* | bgxl* | bgf* | mpixl*)
15110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15111 lt_prog_compiler_wl='-Wl,'
15112 lt_prog_compiler_pic='-qpic'
15113 lt_prog_compiler_static='-qstaticlink'
15114 ;;
15115 *)
15116 case `$CC -V 2>&1 | $SED 5q` in
15117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15119 lt_prog_compiler_pic='-KPIC'
15120 lt_prog_compiler_static='-Bstatic'
15121 lt_prog_compiler_wl=''
15122 ;;
15123 *Sun\ F* | *Sun*Fortran*)
15124 lt_prog_compiler_pic='-KPIC'
15125 lt_prog_compiler_static='-Bstatic'
15126 lt_prog_compiler_wl='-Qoption ld '
15127 ;;
15128 *Sun\ C*)
15129 # Sun C 5.9
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-Bstatic'
15132 lt_prog_compiler_wl='-Wl,'
15133 ;;
15134 *Intel*\ [CF]*Compiler*)
15135 lt_prog_compiler_wl='-Wl,'
15136 lt_prog_compiler_pic='-fPIC'
15137 lt_prog_compiler_static='-static'
15138 ;;
15139 *Portland\ Group*)
15140 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_pic='-fpic'
15142 lt_prog_compiler_static='-Bstatic'
15143 ;;
15144 esac
15145 ;;
15146 esac
15147 ;;
15148
15149 newsos6)
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 ;;
15153
15154 *-mlibc)
15155 lt_prog_compiler_wl='-Wl,'
15156 lt_prog_compiler_pic='-fPIC'
15157 lt_prog_compiler_static='-static'
15158 ;;
15159
15160 *nto* | *qnx*)
15161 # QNX uses GNU C++, but need to define -shared option too, otherwise
15162 # it will coredump.
15163 lt_prog_compiler_pic='-fPIC -shared'
15164 ;;
15165
15166 osf3* | osf4* | osf5*)
15167 lt_prog_compiler_wl='-Wl,'
15168 # All OSF/1 code is PIC.
15169 lt_prog_compiler_static='-non_shared'
15170 ;;
15171
15172 rdos*)
15173 lt_prog_compiler_static='-non_shared'
15174 ;;
15175
15176 serenity*)
15177 ;;
15178
15179 solaris*)
15180 lt_prog_compiler_pic='-KPIC'
15181 lt_prog_compiler_static='-Bstatic'
15182 case $cc_basename in
15183 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15184 lt_prog_compiler_wl='-Qoption ld ';;
15185 *)
15186 lt_prog_compiler_wl='-Wl,';;
15187 esac
15188 ;;
15189
15190 sunos4*)
15191 lt_prog_compiler_wl='-Qoption ld '
15192 lt_prog_compiler_pic='-PIC'
15193 lt_prog_compiler_static='-Bstatic'
15194 ;;
15195
15196 sysv4 | sysv4.2uw2* | sysv4.3*)
15197 lt_prog_compiler_wl='-Wl,'
15198 lt_prog_compiler_pic='-KPIC'
15199 lt_prog_compiler_static='-Bstatic'
15200 ;;
15201
15202 sysv4*MP*)
15203 if test -d /usr/nec; then
15204 lt_prog_compiler_pic='-Kconform_pic'
15205 lt_prog_compiler_static='-Bstatic'
15206 fi
15207 ;;
15208
15209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15210 lt_prog_compiler_wl='-Wl,'
15211 lt_prog_compiler_pic='-KPIC'
15212 lt_prog_compiler_static='-Bstatic'
15213 ;;
15214
15215 unicos*)
15216 lt_prog_compiler_wl='-Wl,'
15217 lt_prog_compiler_can_build_shared=no
15218 ;;
15219
15220 uts4*)
15221 lt_prog_compiler_pic='-pic'
15222 lt_prog_compiler_static='-Bstatic'
15223 ;;
15224
15225 *)
15226 lt_prog_compiler_can_build_shared=no
15227 ;;
15228 esac
15229 fi
15230
15231 case $host_os in
15232 # For platforms that do not support PIC, -DPIC is meaningless:
15233 *djgpp*)
15234 lt_prog_compiler_pic=
15235 ;;
15236 *)
15237 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15238 ;;
15239 esac
15240
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15242 printf %s "checking for $compiler option to produce PIC... " >&6; }
15243 if test ${lt_cv_prog_compiler_pic+y}
15244 then :
15245 printf %s "(cached) " >&6
15246 else case e in #(
15247 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15248 esac
15249 fi
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15251 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15253
15254 #
15255 # Check to make sure the PIC flag actually works.
15256 #
15257 if test -n "$lt_prog_compiler_pic"; then
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15259 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15260 if test ${lt_cv_prog_compiler_pic_works+y}
15261 then :
15262 printf %s "(cached) " >&6
15263 else case e in #(
15264 e) lt_cv_prog_compiler_pic_works=no
15265 ac_outfile=conftest.$ac_objext
15266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15268 # Insert the option either (1) after the last *FLAGS variable, or
15269 # (2) before a word containing "conftest.", or (3) at the end.
15270 # Note that $ac_compile itself does not contain backslashes and begins
15271 # with a dollar sign (not a hyphen), so the echo should work correctly.
15272 # The option is referenced via a variable to avoid confusing sed.
15273 lt_compile=`echo "$ac_compile" | $SED \
15274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15276 -e 's:$: $lt_compiler_flag:'`
15277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15278 (eval "$lt_compile" 2>conftest.err)
15279 ac_status=$?
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 if (exit $ac_status) && test -s "$ac_outfile"; then
15283 # The compiler can only warn and ignore the option if not recognized
15284 # So say no if there are warnings other than the usual output.
15285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15288 lt_cv_prog_compiler_pic_works=yes
15289 fi
15290 fi
15291 $RM conftest*
15292 ;;
15293 esac
15294 fi
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15296 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15297
15298 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15299 case $lt_prog_compiler_pic in
15300 "" | " "*) ;;
15301 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15302 esac
15303 else
15304 lt_prog_compiler_pic=
15305 lt_prog_compiler_can_build_shared=no
15306 fi
15307
15308 fi
15309
15310
15311
15312
15313
15314 #
15315 # Check to make sure the static flag actually works.
15316 #
15317 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15319 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15320 if test ${lt_cv_prog_compiler_static_works+y}
15321 then :
15322 printf %s "(cached) " >&6
15323 else case e in #(
15324 e) lt_cv_prog_compiler_static_works=no
15325 save_LDFLAGS=$LDFLAGS
15326 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15327 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15329 # The linker can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
15331 if test -s conftest.err; then
15332 # Append any errors to the config.log.
15333 cat conftest.err 1>&5
15334 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15336 if diff conftest.exp conftest.er2 >/dev/null; then
15337 lt_cv_prog_compiler_static_works=yes
15338 fi
15339 else
15340 lt_cv_prog_compiler_static_works=yes
15341 fi
15342 fi
15343 $RM -r conftest*
15344 LDFLAGS=$save_LDFLAGS
15345 ;;
15346 esac
15347 fi
15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15349 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15350
15351 if test yes = "$lt_cv_prog_compiler_static_works"; then
15352 :
15353 else
15354 lt_prog_compiler_static=
15355 fi
15356
15357
15358
15359 ='-fPIC'
15360 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15361 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'
15362 archive_cmds_need_lc=no
15363 no_undefined_flag=
15364 ;;
15365
15366 *)
15367 dynamic_linker=no
15368 ;;
15369 esac
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15371 printf "%s\n" "$dynamic_linker" >&6; }
15372 test no = "$dynamic_linker" && can_build_shared=no
15373
15374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15375 if test yes = "$GCC"; then
15376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15377 fi
15378
15379 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15380 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15381 fi
15382
15383 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15384 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15385 fi
15386
15387 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15388 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15389
15390 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15391 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15392
15393 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15394 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15493 printf %s "checking how to hardcode library paths into programs... " >&6; }
15494 hardcode_action=
15495 if test -n "$hardcode_libdir_flag_spec" ||
15496 test -n "$runpath_var" ||
15497 test yes = "$hardcode_automatic"; then
15498
15499 # We can hardcode non-existent directories.
15500 if test no != "$hardcode_direct" &&
15501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15502 # have to relink, otherwise we might link with an installed library
15503 # when we should be linking with a yet-to-be-installed one
15504 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15505 test no != "$hardcode_minus_L"; then
15506 # Linking always hardcodes the temporary library directory.
15507 hardcode_action=relink
15508 else
15509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15510 hardcode_action=immediate
15511 fi
15512 else
15513 # We cannot hardcode anything, or else we can only hardcode existing
15514 # directories.
15515 hardcode_action=unsupported
15516 fi
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15518 printf "%s\n" "$hardcode_action" >&6; }
15519
15520 if test relink = "$hardcode_action" ||
15521 test yes = "$inherit_rpath"; then
15522 # Fast installation is not supported
15523 enable_fast_install=no
15524 elif test yes = "$shlibpath_overrides_runpath" ||
15525 test no = "$enable_shared"; then
15526 # Fast installation is not necessary
15527 enable_fast_install=needless
15528 fi
15529
15530
15531
15532
15533
15534
15535 if test yes != "$enable_dlopen"; then
15536 enable_dlopen=unknown
15537 enable_dlopen_self=unknown
15538 enable_dlopen_self_static=unknown
15539 else
15540 lt_cv_dlopen=no
15541 lt_cv_dlopen_libs=
15542
15543 case $host_os in
15544 beos*)
15545 lt_cv_dlopen=load_add_on
15546 lt_cv_dlopen_libs=
15547 lt_cv_dlopen_self=yes
15548 ;;
15549
15550 mingw* | windows* | pw32* | cegcc*)
15551 lt_cv_dlopen=LoadLibrary
15552 lt_cv_dlopen_libs=
15553 ;;
15554
15555 cygwin*)
15556 lt_cv_dlopen=dlopen
15557 lt_cv_dlopen_libs=
15558 ;;
15559
15560 darwin*)
15561 # if libdl is installed we need to link against it
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15563 printf %s "checking for dlopen in -ldl... " >&6; }
15564 if test ${ac_cv_lib_dl_dlopen+y}
15565 then :
15566 printf %s "(cached) " >&6
15567 else case e in #(
15568 e) ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-ldl $LIBS"
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply.
15576 The 'extern "C"' is for builds by C++ compilers;
15577 although this is not generally supported in C code supporting it here
15578 has little cost and some practical benefit (sr 110532). */
15579 #ifdef __cplusplus
15580 extern "C"
15581 #endif
15582 char dlopen (void);
15583 int
15584 main (void)
15585 {
15586 return dlopen ();
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"
15592 then :
15593 ac_cv_lib_dl_dlopen=yes
15594 else case e in #(
15595 e) ac_cv_lib_dl_dlopen=no ;;
15596 esac
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS ;;
15601 esac
15602 fi
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15604 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15605 if test "x$ac_cv_lib_dl_dlopen" = xyes
15606 then :
15607 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15608 else case e in #(
15609 e)
15610 lt_cv_dlopen=dyld
15611 lt_cv_dlopen_libs=
15612 lt_cv_dlopen_self=yes
15613 ;;
15614 esac
15615 fi
15616
15617 ;;
15618
15619 tpf*)
15620 # Don't try to run any link tests for TPF. We know it's impossible
15621 # because TPF is a cross-compiler, and we know how we open DSOs.
15622 lt_cv_dlopen=dlopen
15623 lt_cv_dlopen_libs=
15624 lt_cv_dlopen_self=no
15625 ;;
15626
15627 *)
15628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15629 if test "x$ac_cv_func_shl_load" = xyes
15630 then :
15631 lt_cv_dlopen=shl_load
15632 else case e in #(
15633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15634 printf %s "checking for shl_load in -ldld... " >&6; }
15635 if test ${ac_cv_lib_dld_shl_load+y}
15636 then :
15637 printf %s "(cached) " >&6
15638 else case e in #(
15639 e) ac_check_lib_save_LIBS=$LIBS
15640 LIBS="-ldld $LIBS"
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643
15644 /* Override any GCC internal prototype to avoid an error.
15645 Use char because int might match the return type of a GCC
15646 builtin and then its argument prototype would still apply.
15647 The 'extern "C"' is for builds by C++ compilers;
15648 although this is not generally supported in C code supporting it here
15649 has little cost and some practical benefit (sr 110532). */
15650 #ifdef __cplusplus
15651 extern "C"
15652 #endif
15653 char shl_load (void);
15654 int
15655 main (void)
15656 {
15657 return shl_load ();
15658 ;
15659 return 0;
15660 }
15661 _ACEOF
15662 if ac_fn_c_try_link "$LINENO"
15663 then :
15664 ac_cv_lib_dld_shl_load=yes
15665 else case e in #(
15666 e) ac_cv_lib_dld_shl_load=no ;;
15667 esac
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS ;;
15672 esac
15673 fi
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15675 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15676 if test "x$ac_cv_lib_dld_shl_load" = xyes
15677 then :
15678 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15679 else case e in #(
15680 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15681 if test "x$ac_cv_func_dlopen" = xyes
15682 then :
15683 lt_cv_dlopen=dlopen
15684 else case e in #(
15685 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15686 printf %s "checking for dlopen in -ldl... " >&6; }
15687 if test ${ac_cv_lib_dl_dlopen+y}
15688 then :
15689 printf %s "(cached) " >&6
15690 else case e in #(
15691 e) ac_check_lib_save_LIBS=$LIBS
15692 LIBS="-ldl $LIBS"
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695
15696 /* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply.
15699 The 'extern "C"' is for builds by C++ compilers;
15700 although this is not generally supported in C code supporting it here
15701 has little cost and some practical benefit (sr 110532). */
15702 #ifdef __cplusplus
15703 extern "C"
15704 #endif
15705 char dlopen (void);
15706 int
15707 main (void)
15708 {
15709 return dlopen ();
15710 ;
15711 return 0;
15712 }
15713 _ACEOF
15714 if ac_fn_c_try_link "$LINENO"
15715 then :
15716 ac_cv_lib_dl_dlopen=yes
15717 else case e in #(
15718 e) ac_cv_lib_dl_dlopen=no ;;
15719 esac
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS ;;
15724 esac
15725 fi
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15727 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15728 if test "x$ac_cv_lib_dl_dlopen" = xyes
15729 then :
15730 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15731 else case e in #(
15732 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15733 printf %s "checking for dlopen in -lsvld... " >&6; }
15734 if test ${ac_cv_lib_svld_dlopen+y}
15735 then :
15736 printf %s "(cached) " >&6
15737 else case e in #(
15738 e) ac_check_lib_save_LIBS=$LIBS
15739 LIBS="-lsvld $LIBS"
15740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15742
15743 /* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply.
15746 The 'extern "C"' is for builds by C++ compilers;
15747 although this is not generally supported in C code supporting it here
15748 has little cost and some practical benefit (sr 110532). */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char dlopen (void);
15753 int
15754 main (void)
15755 {
15756 return dlopen ();
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_link "$LINENO"
15762 then :
15763 ac_cv_lib_svld_dlopen=yes
15764 else case e in #(
15765 e) ac_cv_lib_svld_dlopen=no ;;
15766 esac
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15769 conftest$ac_exeext conftest.$ac_ext
15770 LIBS=$ac_check_lib_save_LIBS ;;
15771 esac
15772 fi
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15774 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15775 if test "x$ac_cv_lib_svld_dlopen" = xyes
15776 then :
15777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15778 else case e in #(
15779 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15780 printf %s "checking for dld_link in -ldld... " >&6; }
15781 if test ${ac_cv_lib_dld_dld_link+y}
15782 then :
15783 printf %s "(cached) " >&6
15784 else case e in #(
15785 e) ac_check_lib_save_LIBS=$LIBS
15786 LIBS="-ldld $LIBS"
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789
15790 /* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply.
15793 The 'extern "C"' is for builds by C++ compilers;
15794 although this is not generally supported in C code supporting it here
15795 has little cost and some practical benefit (sr 110532). */
15796 #ifdef __cplusplus
15797 extern "C"
15798 #endif
15799 char dld_link (void);
15800 int
15801 main (void)
15802 {
15803 return dld_link ();
15804 ;
15805 return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"
15809 then :
15810 ac_cv_lib_dld_dld_link=yes
15811 else case e in #(
15812 e) ac_cv_lib_dld_dld_link=no ;;
15813 esac
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15816 conftest$ac_exeext conftest.$ac_ext
15817 LIBS=$ac_check_lib_save_LIBS ;;
15818 esac
15819 fi
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15821 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15822 if test "x$ac_cv_lib_dld_dld_link" = xyes
15823 then :
15824 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15825 fi
15826
15827 ;;
15828 esac
15829 fi
15830
15831 ;;
15832 esac
15833 fi
15834
15835 ;;
15836 esac
15837 fi
15838
15839 ;;
15840 esac
15841 fi
15842
15843 ;;
15844 esac
15845 fi
15846
15847 ;;
15848 esac
15849
15850 if test no = "$lt_cv_dlopen"; then
15851 enable_dlopen=no
15852 else
15853 enable_dlopen=yes
15854 fi
15855
15856 case $lt_cv_dlopen in
15857 dlopen)
15858 save_CPPFLAGS=$CPPFLAGS
15859 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15860
15861 save_LDFLAGS=$LDFLAGS
15862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15863
15864 save_LIBS=$LIBS
15865 LIBS="$lt_cv_dlopen_libs $LIBS"
15866
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15868 printf %s "checking whether a program can dlopen itself... " >&6; }
15869 if test ${lt_cv_dlopen_self+y}
15870 then :
15871 printf %s "(cached) " >&6
15872 else case e in #(
15873 e) if test yes = "$cross_compiling"; then :
15874 lt_cv_dlopen_self=cross
15875 else
15876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15877 lt_status=$lt_dlunknown
15878 cat > conftest.$ac_ext <<_LT_EOF
15879 #line $LINENO "configure"
15880 #include "confdefs.h"
15881
15882 #if HAVE_DLFCN_H
15883 #include <dlfcn.h>
15884 #endif
15885
15886 #include <stdio.h>
15887
15888 #ifdef RTLD_GLOBAL
15889 # define LT_DLGLOBAL RTLD_GLOBAL
15890 #else
15891 # ifdef DL_GLOBAL
15892 # define LT_DLGLOBAL DL_GLOBAL
15893 # else
15894 # define LT_DLGLOBAL 0
15895 # endif
15896 #endif
15897
15898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15899 find out it does not work in some platform. */
15900 #ifndef LT_DLLAZY_OR_NOW
15901 # ifdef RTLD_LAZY
15902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15903 # else
15904 # ifdef DL_LAZY
15905 # define LT_DLLAZY_OR_NOW DL_LAZY
15906 # else
15907 # ifdef RTLD_NOW
15908 # define LT_DLLAZY_OR_NOW RTLD_NOW
15909 # else
15910 # ifdef DL_NOW
15911 # define LT_DLLAZY_OR_NOW DL_NOW
15912 # else
15913 # define LT_DLLAZY_OR_NOW 0
15914 # endif
15915 # endif
15916 # endif
15917 # endif
15918 #endif
15919
15920 /* When -fvisibility=hidden is used, assume the code has been annotated
15921 correspondingly for the symbols needed. */
15922 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15923 int fnord (void) __attribute__((visibility("default")));
15924 #endif
15925
15926 int fnord (void) { return 42; }
15927 int main (void)
15928 {
15929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15930 int status = $lt_dlunknown;
15931
15932 if (self)
15933 {
15934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15935 else
15936 {
15937 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15938 else puts (dlerror ());
15939 }
15940 /* dlclose (self); */
15941 }
15942 else
15943 puts (dlerror ());
15944
15945 return status;
15946 }
15947 _LT_EOF
15948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15949 (eval $ac_link) 2>&5
15950 ac_status=$?
15951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15952 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15953 (./conftest; exit; ) >&5 2>/dev/null
15954 lt_status=$?
15955 case x$lt_status in
15956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15958 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15959 esac
15960 else :
15961 # compilation failed
15962 lt_cv_dlopen_self=no
15963 fi
15964 fi
15965 rm -fr conftest*
15966
15967 ;;
15968 esac
15969 fi
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15971 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15972
15973 if test yes = "$lt_cv_dlopen_self"; then
15974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15976 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15977 if test ${lt_cv_dlopen_self_static+y}
15978 then :
15979 printf %s "(cached) " >&6
15980 else case e in #(
15981 e) if test yes = "$cross_compiling"; then :
15982 lt_cv_dlopen_self_static=cross
15983 else
15984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15985 lt_status=$lt_dlunknown
15986 cat > conftest.$ac_ext <<_LT_EOF
15987 #line $LINENO "configure"
15988 #include "confdefs.h"
15989
15990 #if HAVE_DLFCN_H
15991 #include <dlfcn.h>
15992 #endif
15993
15994 #include <stdio.h>
15995
15996 #ifdef RTLD_GLOBAL
15997 # define LT_DLGLOBAL RTLD_GLOBAL
15998 #else
15999 # ifdef DL_GLOBAL
16000 # define LT_DLGLOBAL DL_GLOBAL
16001 # else
16002 # define LT_DLGLOBAL 0
16003 # endif
16004 #endif
16005
16006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16007 find out it does not work in some platform. */
16008 #ifndef LT_DLLAZY_OR_NOW
16009 # ifdef RTLD_LAZY
16010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16011 # else
16012 # ifdef DL_LAZY
16013 # define LT_DLLAZY_OR_NOW DL_LAZY
16014 # else
16015 # ifdef RTLD_NOW
16016 # define LT_DLLAZY_OR_NOW RTLD_NOW
16017 # else
16018 # ifdef DL_NOW
16019 # define LT_DLLAZY_OR_NOW DL_NOW
16020 # else
16021 # define LT_DLLAZY_OR_NOW 0
16022 # endif
16023 # endif
16024 # endif
16025 # endif
16026 #endif
16027
16028 /* When -fvisibility=hidden is used, assume the code has been annotated
16029 correspondingly for the symbols needed. */
16030 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16031 int fnord (void) __attribute__((visibility("default")));
16032 #endif
16033
16034 int fnord (void) { return 42; }
16035 int main (void)
16036 {
16037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16038 int status = $lt_dlunknown;
16039
16040 if (self)
16041 {
16042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16043 else
16044 {
16045 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16046 else puts (dlerror ());
16047 }
16048 /* dlclose (self); */
16049 }
16050 else
16051 puts (dlerror ());
16052
16053 return status;
16054 }
16055 _LT_EOF
16056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16057 (eval $ac_link) 2>&5
16058 ac_status=$?
16059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16061 (./conftest; exit; ) >&5 2>/dev/null
16062 lt_status=$?
16063 case x$lt_status in
16064 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16065 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16066 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16067 esac
16068 else :
16069 # compilation failed
16070 lt_cv_dlopen_self_static=no
16071 fi
16072 fi
16073 rm -fr conftest*
16074
16075 ;;
16076 esac
16077 fi
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16079 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16080 fi
16081
16082 CPPFLAGS=$save_CPPFLAGS
16083 LDFLAGS=$save_LDFLAGS
16084 LIBS=$save_LIBS
16085 ;;
16086 esac
16087
16088 case $lt_cv_dlopen_self in
16089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16090 *) enable_dlopen_self=unknown ;;
16091 esac
16092
16093 case $lt_cv_dlopen_self_static in
16094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16095 *) enable_dlopen_self_static=unknown ;;
16096 esac
16097 fi
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115 striplib=
16116 old_striplib=
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16118 printf %s "checking whether stripping libraries is possible... " >&6; }
16119 if test -z "$STRIP"; then
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121 printf "%s\n" "no" >&6; }
16122 else
16123 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16124 old_striplib="$STRIP --strip-debug"
16125 striplib="$STRIP --strip-unneeded"
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16127 printf "%s\n" "yes" >&6; }
16128 else
16129 case $host_os in
16130 darwin*)
16131 # FIXME - insert some real tests, host_os isn't really good enough
16132 striplib="$STRIP -x"
16133 old_striplib="$STRIP -S"
16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16135 printf "%s\n" "yes" >&6; }
16136 ;;
16137 freebsd*)
16138 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16139 old_striplib="$STRIP --strip-debug"
16140 striplib="$STRIP --strip-unneeded"
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 printf "%s\n" "yes" >&6; }
16143 else
16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 printf "%s\n" "no" >&6; }
16146 fi
16147 ;;
16148 *)
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 printf "%s\n" "no" >&6; }
16151 ;;
16152 esac
16153 fi
16154 fi
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167 # Report what library types will actually be built
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16169 printf %s "checking if libtool supports shared libraries... " >&6; }
16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16171 printf "%s\n" "$can_build_shared" >&6; }
16172
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16174 printf %s "checking whether to build shared libraries... " >&6; }
16175 test no = "$can_build_shared" && enable_shared=no
16176
16177 # On AIX, shared libraries and static libraries use the same namespace, and
16178 # are all built from PIC.
16179 case $host_os in
16180 aix3*)
16181 test yes = "$enable_shared" && enable_static=no
16182 if test -n "$RANLIB"; then
16183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16184 postinstall_cmds='$RANLIB $lib'
16185 fi
16186 ;;
16187
16188 aix[4-9]*)
16189 if test ia64 != "$host_cpu"; then
16190 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16191 yes,aix,yes) ;; # shared object as lib.so file only
16192 yes,svr4,*) ;; # shared object as lib.so archive member only
16193 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16194 esac
16195 fi
16196 ;;
16197 esac
16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16199 printf "%s\n" "$enable_shared" >&6; }
16200
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16202 printf %s "checking whether to build static libraries... " >&6; }
16203 # Make sure either enable_shared or enable_static is yes.
16204 test yes = "$enable_shared" || enable_static=yes
16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16206 printf "%s\n" "$enable_static" >&6; }
16207
16208
16209
16210
16211 fi
16212 ac_ext=cpp
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16217
16218 CC=$lt_save_CC
16219
16220 if test -n "$CXX" && ( test no != "$CXX" &&
16221 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16222 (test g++ != "$CXX"))); then
16223 ac_ext=cpp
16224 ac_cpp='$CXXCPP $CPPFLAGS'
16225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16229 printf %s "checking how to run the C++ preprocessor... " >&6; }
16230 if test -z "$CXXCPP"; then
16231 if test ${ac_cv_prog_CXXCPP+y}
16232 then :
16233 printf %s "(cached) " >&6
16234 else case e in #(
16235 e) # Double quotes because $CXX needs to be expanded
16236 for CXXCPP in "$CXX -E" cpp /lib/cpp
16237 do
16238 ac_preproc_ok=false
16239 for ac_cxx_preproc_warn_flag in '' yes
16240 do
16241 # Use a header file that comes with gcc, so configuring glibc
16242 # with a fresh cross-compiler works.
16243 # On the NeXT, cc -E runs the code through the compiler's parser,
16244 # not just through cpp. "Syntax error" is here to catch this case.
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #include <limits.h>
16248 Syntax error
16249 _ACEOF
16250 if ac_fn_cxx_try_cpp "$LINENO"
16251 then :
16252
16253 else case e in #(
16254 e) # Broken: fails on valid input.
16255 continue ;;
16256 esac
16257 fi
16258 rm -f conftest.err conftest.i conftest.$ac_ext
16259
16260 # OK, works on sane cases. Now check whether nonexistent headers
16261 # can be detected and how.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <ac_nonexistent.h>
16265 _ACEOF
16266 if ac_fn_cxx_try_cpp "$LINENO"
16267 then :
16268 # Broken: success on invalid input.
16269 continue
16270 else case e in #(
16271 e) # Passes both tests.
16272 ac_preproc_ok=:
16273 break ;;
16274 esac
16275 fi
16276 rm -f conftest.err conftest.i conftest.$ac_ext
16277
16278 done
16279 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16280 rm -f conftest.i conftest.err conftest.$ac_ext
16281 if $ac_preproc_ok
16282 then :
16283 break
16284 fi
16285
16286 done
16287 ac_cv_prog_CXXCPP=$CXXCPP
16288 ;;
16289 esac
16290 fi
16291 CXXCPP=$ac_cv_prog_CXXCPP
16292 else
16293 ac_cv_prog_CXXCPP=$CXXCPP
16294 fi
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16296 printf "%s\n" "$CXXCPP" >&6; }
16297 ac_preproc_ok=false
16298 for ac_cxx_preproc_warn_flag in '' yes
16299 do
16300 # Use a header file that comes with gcc, so configuring glibc
16301 # with a fresh cross-compiler works.
16302 # On the NeXT, cc -E runs the code through the compiler's parser,
16303 # not just through cpp. "Syntax error" is here to catch this case.
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <limits.h>
16307 Syntax error
16308 _ACEOF
16309 if ac_fn_cxx_try_cpp "$LINENO"
16310 then :
16311
16312 else case e in #(
16313 e) # Broken: fails on valid input.
16314 continue ;;
16315 esac
16316 fi
16317 rm -f conftest.err conftest.i conftest.$ac_ext
16318
16319 # OK, works on sane cases. Now check whether nonexistent headers
16320 # can be detected and how.
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 #include <ac_nonexistent.h>
16324 _ACEOF
16325 if ac_fn_cxx_try_cpp "$LINENO"
16326 then :
16327 # Broken: success on invalid input.
16328 continue
16329 else case e in #(
16330 e) # Passes both tests.
16331 ac_preproc_ok=:
16332 break ;;
16333 esac
16334 fi
16335 rm -f conftest.err conftest.i conftest.$ac_ext
16336
16337 done
16338 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16339 rm -f conftest.i conftest.err conftest.$ac_ext
16340 if $ac_preproc_ok
16341 then :
16342
16343 else case e in #(
16344 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16346 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16347 See 'config.log' for more details" "$LINENO" 5; } ;;
16348 esac
16349 fi
16350
16351 ac_ext=cpp
16352 ac_cpp='$CXXCPP $CPPFLAGS'
16353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16356
16357 else
16358 _lt_caught_CXX_error=yes
16359 fi
16360
16361 ac_ext=cpp
16362 ac_cpp='$CXXCPP $CPPFLAGS'
16363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16366
16367 archive_cmds_need_lc_CXX=no
16368 allow_undefined_flag_CXX=
16369 always_export_symbols_CXX=no
16370 archive_expsym_cmds_CXX=
16371 compiler_needs_object_CXX=no
16372 export_dynamic_flag_spec_CXX=
16373 hardcode_direct_CXX=no
16374 hardcode_direct_absolute_CXX=no
16375 hardcode_libdir_flag_spec_CXX=
16376 hardcode_libdir_separator_CXX=
16377 hardcode_minus_L_CXX=no
16378 hardcode_shlibpath_var_CXX=unsupported
16379 hardcode_automatic_CXX=no
16380 inherit_rpath_CXX=no
16381 module_cmds_CXX=
16382 module_expsym_cmds_CXX=
16383 link_all_deplibs_CXX=unknown
16384 old_archive_cmds_CXX=$old_archive_cmds
16385 reload_flag_CXX=$reload_flag
16386 reload_cmds_CXX=$reload_cmds
16387 no_undefined_flag_CXX=
16388 whole_archive_flag_spec_CXX=
16389 enable_shared_with_static_runtimes_CXX=no
16390
16391 # Source file extension for C++ test sources.
16392 ac_ext=cpp
16393
16394 # Object file extension for compiled C++ test sources.
16395 objext=o
16396 objext_CXX=$objext
16397
16398 # No sense in running all these tests if we already determined that
16399 # the CXX compiler isn't working. Some variables (like enable_shared)
16400 # are currently assumed to apply to all compilers on this platform,
16401 # and will be corrupted by setting them based on a non-working compiler.
16402 if test yes != "$_lt_caught_CXX_error"; then
16403 # Code to be used in simple compile tests
16404 lt_simple_compile_test_code="int some_variable = 0;"
16405
16406 # Code to be used in simple link tests
16407 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16408
16409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16410
16411
16412
16413
16414
16415
16416 # If no C compiler was specified, use CC.
16417 LTCC=${LTCC-"$CC"}
16418
16419 # If no C compiler flags were specified, use CFLAGS.
16420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16421
16422 # Allow CC to be a program name with arguments.
16423 compiler=$CC
16424
16425
16426 # save warnings/boilerplate of simple test code
16427 ac_outfile=conftest.$ac_objext
16428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16430 _lt_compiler_boilerplate=`cat conftest.err`
16431 $RM conftest*
16432
16433 ac_outfile=conftest.$ac_objext
16434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16436 _lt_linker_boilerplate=`cat conftest.err`
16437 $RM -r conftest*
16438
16439
16440 # Allow CC to be a program name with arguments.
16441 lt_save_CC=$CC
16442 lt_save_CFLAGS=$CFLAGS
16443 lt_save_LD=$LD
16444 lt_save_GCC=$GCC
16445 GCC=$GXX
16446 lt_save_with_gnu_ld=$with_gnu_ld
16447 lt_save_path_LD=$lt_cv_path_LD
16448 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16449 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16450 else
16451 $as_unset lt_cv_prog_gnu_ld
16452 fi
16453 if test -n "${lt_cv_path_LDCXX+set}"; then
16454 lt_cv_path_LD=$lt_cv_path_LDCXX
16455 else
16456 $as_unset lt_cv_path_LD
16457 fi
16458 test -z "${LDCXX+set}" || LD=$LDCXX
16459 CC=${CXX-"c++"}
16460 CFLAGS=$CXXFLAGS
16461 compiler=$CC
16462 compiler_CXX=$CC
16463 func_cc_basename $compiler
16464 cc_basename=$func_cc_basename_result
16465
16466
16467 if test -n "$compiler"; then
16468 # We don't want -fno-exception when compiling C++ code, so set the
16469 # no_builtin_flag separately
16470 if test yes = "$GXX"; then
16471 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16472 else
16473 lt_prog_compiler_no_builtin_flag_CXX=
16474 fi
16475
16476 if test yes = "$GXX"; then
16477 # Set up default GNU C++ configuration
16478
16479
16480
16481 # Check whether --with-gnu-ld was given.
16482 if test ${with_gnu_ld+y}
16483 then :
16484 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16485 else case e in #(
16486 e) with_gnu_ld=no ;;
16487 esac
16488 fi
16489
16490 ac_prog=ld
16491 if test yes = "$GCC"; then
16492 # Check if gcc -print-prog-name=ld gives a path.
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16494 printf %s "checking for ld used by $CC... " >&6; }
16495 case $host in
16496 *-*-mingw* | *-*-windows*)
16497 # gcc leaves a trailing carriage return, which upsets mingw
16498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16499 *)
16500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16501 esac
16502 case $ac_prog in
16503 # Accept absolute paths.
16504 [\\/]* | ?:[\\/]*)
16505 re_direlt='/[^/][^/]*/\.\./'
16506 # Canonicalize the pathname of ld
16507 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16508 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16509 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16510 done
16511 test -z "$LD" && LD=$ac_prog
16512 ;;
16513 "")
16514 # If it fails, then pretend we aren't using GCC.
16515 ac_prog=ld
16516 ;;
16517 *)
16518 # If it is relative, then search for the first ld in PATH.
16519 with_gnu_ld=unknown
16520 ;;
16521 esac
16522 elif test yes = "$with_gnu_ld"; then
16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16524 printf %s "checking for GNU ld... " >&6; }
16525 else
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16527 printf %s "checking for non-GNU ld... " >&6; }
16528 fi
16529 if test ${lt_cv_path_LD+y}
16530 then :
16531 printf %s "(cached) " >&6
16532 else case e in #(
16533 e) if test -z "$LD"; then
16534 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16535 for ac_dir in $PATH; do
16536 IFS=$lt_save_ifs
16537 test -z "$ac_dir" && ac_dir=.
16538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16539 lt_cv_path_LD=$ac_dir/$ac_prog
16540 # Check to see if the program is GNU ld. I'd rather use --version,
16541 # but apparently some variants of GNU ld only accept -v.
16542 # Break only if it was the GNU/non-GNU ld that we prefer.
16543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16544 *GNU* | *'with BFD'*)
16545 test no != "$with_gnu_ld" && break
16546 ;;
16547 *)
16548 test yes != "$with_gnu_ld" && break
16549 ;;
16550 esac
16551 fi
16552 done
16553 IFS=$lt_save_ifs
16554 else
16555 lt_cv_path_LD=$LD # Let the user override the test with a path.
16556 fi ;;
16557 esac
16558 fi
16559
16560 LD=$lt_cv_path_LD
16561 if test -n "$LD"; then
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16563 printf "%s\n" "$LD" >&6; }
16564 else
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16566 printf "%s\n" "no" >&6; }
16567 fi
16568 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16570 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16571 if test ${lt_cv_prog_gnu_ld+y}
16572 then :
16573 printf %s "(cached) " >&6
16574 else case e in #(
16575 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16576 case `$LD -v 2>&1 </dev/null` in
16577 *GNU* | *'with BFD'*)
16578 lt_cv_prog_gnu_ld=yes
16579 ;;
16580 *)
16581 lt_cv_prog_gnu_ld=no
16582 ;;
16583 esac ;;
16584 esac
16585 fi
16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16587 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16588 with_gnu_ld=$lt_cv_prog_gnu_ld
16589
16590
16591
16592
16593
16594
16595
16596 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16597 # archiving commands below assume that GNU ld is being used.
16598 if test yes = "$with_gnu_ld"; then
16599 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16600 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'
16601
16602 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16603 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16604
16605 # If archive_cmds runs LD, not CC, wlarc should be empty
16606 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16607 # investigate it a little bit more. (MM)
16608 wlarc='$wl'
16609
16610 # ancient GNU ld didn't support --whole-archive et. al.
16611 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16612 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16613 else
16614 whole_archive_flag_spec_CXX=
16615 fi
16616 else
16617 with_gnu_ld=no
16618 wlarc=
16619
16620 # A generic and very simple default shared library creation
16621 # command for GNU C++ for the case where it uses the native
16622 # linker, instead of GNU ld. If possible, this setting should
16623 # overridden to take advantage of the native linker features on
16624 # the platform it is being used on.
16625 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16626 fi
16627
16628 # Commands to make compiler produce verbose output that lists
16629 # what "hidden" libraries, object files and flags are used when
16630 # linking a shared library.
16631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16632
16633 else
16634 GXX=no
16635 with_gnu_ld=no
16636 wlarc=
16637 fi
16638
16639 # PORTME: fill in a description of your system's C++ link characteristics
16640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16641 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16642 ld_shlibs_CXX=yes
16643 case $host_os in
16644 aix3*)
16645 # FIXME: insert proper C++ library support
16646 ld_shlibs_CXX=no
16647 ;;
16648 aix[4-9]*)
16649 if test ia64 = "$host_cpu"; then
16650 # On IA64, the linker does run time linking by default, so we don't
16651 # have to do anything special.
16652 aix_use_runtimelinking=no
16653 exp_sym_flag='-Bexport'
16654 no_entry_flag=
16655 else
16656 aix_use_runtimelinking=no
16657
16658 # Test if we are trying to use run time linking or normal
16659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16660 # have runtime linking enabled, and use it for executables.
16661 # For shared libraries, we enable/disable runtime linking
16662 # depending on the kind of the shared library created -
16663 # when "with_aix_soname,aix_use_runtimelinking" is:
16664 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16665 # "aix,yes" lib.so shared, rtl:yes, for executables
16666 # lib.a static archive
16667 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16668 # lib.a(lib.so.V) shared, rtl:no, for executables
16669 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16670 # lib.a(lib.so.V) shared, rtl:no
16671 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16672 # lib.a static archive
16673 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16674 for ld_flag in $LDFLAGS; do
16675 case $ld_flag in
16676 *-brtl*)
16677 aix_use_runtimelinking=yes
16678 break
16679 ;;
16680 esac
16681 done
16682 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16683 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16684 # so we don't have lib.a shared libs to link our executables.
16685 # We have to force runtime linking in this case.
16686 aix_use_runtimelinking=yes
16687 LDFLAGS="$LDFLAGS -Wl,-brtl"
16688 fi
16689 ;;
16690 esac
16691
16692 exp_sym_flag='-bexport'
16693 no_entry_flag='-bnoentry'
16694 fi
16695
16696 # When large executables or shared objects are built, AIX ld can
16697 # have problems creating the table of contents. If linking a library
16698 # or program results in "error TOC overflow" add -mminimal-toc to
16699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16701
16702 archive_cmds_CXX=''
16703 hardcode_direct_CXX=yes
16704 hardcode_direct_absolute_CXX=yes
16705 hardcode_libdir_separator_CXX=':'
16706 link_all_deplibs_CXX=yes
16707 file_list_spec_CXX='$wl-f,'
16708 case $with_aix_soname,$aix_use_runtimelinking in
16709 aix,*) ;; # no import file
16710 svr4,* | *,yes) # use import file
16711 # The Import File defines what to hardcode.
16712 hardcode_direct_CXX=no
16713 hardcode_direct_absolute_CXX=no
16714 ;;
16715 esac
16716
16717 if test yes = "$GXX"; then
16718 case $host_os in aix4.[012]|aix4.[012].*)
16719 # We only want to do this on AIX 4.2 and lower, the check
16720 # below for broken collect2 doesn't work under 4.3+
16721 collect2name=`$CC -print-prog-name=collect2`
16722 if test -f "$collect2name" &&
16723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16724 then
16725 # We have reworked collect2
16726 :
16727 else
16728 # We have old collect2
16729 hardcode_direct_CXX=unsupported
16730 # It fails to find uninstalled libraries when the uninstalled
16731 # path is not listed in the libpath. Setting hardcode_minus_L
16732 # to unsupported forces relinking
16733 hardcode_minus_L_CXX=yes
16734 hardcode_libdir_flag_spec_CXX='-L$libdir'
16735 hardcode_libdir_separator_CXX=
16736 fi
16737 esac
16738 shared_flag='-shared'
16739 if test yes = "$aix_use_runtimelinking"; then
16740 shared_flag=$shared_flag' $wl-G'
16741 fi
16742 # Need to ensure runtime linking is disabled for the traditional
16743 # shared library, or the linker may eventually find shared libraries
16744 # /with/ Import File - we do not want to mix them.
16745 shared_flag_aix='-shared'
16746 shared_flag_svr4='-shared $wl-G'
16747 else
16748 # not using gcc
16749 if test ia64 = "$host_cpu"; then
16750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16751 # chokes on -Wl,-G. The following line is correct:
16752 shared_flag='-G'
16753 else
16754 if test yes = "$aix_use_runtimelinking"; then
16755 shared_flag='$wl-G'
16756 else
16757 shared_flag='$wl-bM:SRE'
16758 fi
16759 shared_flag_aix='$wl-bM:SRE'
16760 shared_flag_svr4='$wl-G'
16761 fi
16762 fi
16763
16764 export_dynamic_flag_spec_CXX='$wl-bexpall'
16765 # It seems that -bexpall does not export symbols beginning with
16766 # underscore (_), so it is better to generate a list of symbols to
16767 # export.
16768 always_export_symbols_CXX=yes
16769 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16770 # Warning - without using the other runtime loading flags (-brtl),
16771 # -berok will link without error, but may produce a broken library.
16772 # The "-G" linker flag allows undefined symbols.
16773 no_undefined_flag_CXX='-bernotok'
16774 # Determine the default libpath from the value encoded in an empty
16775 # executable.
16776 if test set = "${lt_cv_aix_libpath+set}"; then
16777 aix_libpath=$lt_cv_aix_libpath
16778 else
16779 if test ${lt_cv_aix_libpath__CXX+y}
16780 then :
16781 printf %s "(cached) " >&6
16782 else case e in #(
16783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785
16786 int
16787 main (void)
16788 {
16789
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_cxx_try_link "$LINENO"
16795 then :
16796
16797 lt_aix_libpath_sed='
16798 /Import File Strings/,/^$/ {
16799 /^0/ {
16800 s/^0 *\([^ ]*\) *$/\1/
16801 p
16802 }
16803 }'
16804 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16805 # Check for a 64-bit object if we didn't find anything.
16806 if test -z "$lt_cv_aix_libpath__CXX"; then
16807 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16808 fi
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16811 conftest$ac_exeext conftest.$ac_ext
16812 if test -z "$lt_cv_aix_libpath__CXX"; then
16813 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16814 fi
16815 ;;
16816 esac
16817 fi
16818
16819 aix_libpath=$lt_cv_aix_libpath__CXX
16820 fi
16821
16822 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16823
16824 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
16825 else
16826 if test ia64 = "$host_cpu"; then
16827 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16828 allow_undefined_flag_CXX="-z nodefs"
16829 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"
16830 else
16831 # Determine the default libpath from the value encoded in an
16832 # empty executable.
16833 if test set = "${lt_cv_aix_libpath+set}"; then
16834 aix_libpath=$lt_cv_aix_libpath
16835 else
16836 if test ${lt_cv_aix_libpath__CXX+y}
16837 then :
16838 printf %s "(cached) " >&6
16839 else case e in #(
16840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842
16843 int
16844 main (void)
16845 {
16846
16847 ;
16848 return 0;
16849 }
16850 _ACEOF
16851 if ac_fn_cxx_try_link "$LINENO"
16852 then :
16853
16854 lt_aix_libpath_sed='
16855 /Import File Strings/,/^$/ {
16856 /^0/ {
16857 s/^0 *\([^ ]*\) *$/\1/
16858 p
16859 }
16860 }'
16861 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16862 # Check for a 64-bit object if we didn't find anything.
16863 if test -z "$lt_cv_aix_libpath__CXX"; then
16864 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16865 fi
16866 fi
16867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16868 conftest$ac_exeext conftest.$ac_ext
16869 if test -z "$lt_cv_aix_libpath__CXX"; then
16870 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16871 fi
16872 ;;
16873 esac
16874 fi
16875
16876 aix_libpath=$lt_cv_aix_libpath__CXX
16877 fi
16878
16879 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16880 # Warning - without using the other run time loading flags,
16881 # -berok will link without error, but may produce a broken library.
16882 no_undefined_flag_CXX=' $wl-bernotok'
16883 allow_undefined_flag_CXX=' $wl-berok'
16884 if test yes = "$with_gnu_ld"; then
16885 # We only use this code for GNU lds that support --whole-archive.
16886 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16887 else
16888 # Exported symbols can be pulled into shared objects from archives
16889 whole_archive_flag_spec_CXX='$convenience'
16890 fi
16891 archive_cmds_need_lc_CXX=yes
16892 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16893 # -brtl affects multiple linker settings, -berok does not and is overridden later
16894 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16895 if test svr4 != "$with_aix_soname"; then
16896 # This is similar to how AIX traditionally builds its shared
16897 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16898 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'
16899 fi
16900 if test aix != "$with_aix_soname"; then
16901 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'
16902 else
16903 # used by -dlpreopen to get the symbols
16904 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16905 fi
16906 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16907 fi
16908 fi
16909 ;;
16910
16911 beos*)
16912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16913 allow_undefined_flag_CXX=unsupported
16914 # Joseph Beckenbach <[email protected]> says some releases of gcc
16915 # support --undefined. This deserves some investigation. FIXME
16916 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16917 else
16918 ld_shlibs_CXX=no
16919 fi
16920 ;;
16921
16922 chorus*)
16923 case $cc_basename in
16924 *)
16925 # FIXME: insert proper C++ library support
16926 ld_shlibs_CXX=no
16927 ;;
16928 esac
16929 ;;
16930
16931 cygwin* | mingw* | windows* | pw32* | cegcc*)
16932 case $GXX,$cc_basename in
16933 ,cl* | no,cl* | ,icl* | no,icl*)
16934 # Native MSVC or ICC
16935 # hardcode_libdir_flag_spec is actually meaningless, as there is
16936 # no search path for DLLs.
16937 hardcode_libdir_flag_spec_CXX=' '
16938 allow_undefined_flag_CXX=unsupported
16939 always_export_symbols_CXX=yes
16940 file_list_spec_CXX='@'
16941 # Tell ltmain to make .lib files, not .a files.
16942 libext=lib
16943 # Tell ltmain to make .dll files, not .so files.
16944 shrext_cmds=.dll
16945 # FIXME: Setting linknames here is a bad hack.
16946 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16947 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16948 cp "$export_symbols" "$output_objdir/$soname.def";
16949 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16950 else
16951 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16952 fi~
16953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16954 linknames='
16955 # The linker will not automatically build a static lib if we build a DLL.
16956 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16957 enable_shared_with_static_runtimes_CXX=yes
16958 # Don't use ranlib
16959 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16960 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16961 lt_tool_outputfile="@TOOL_OUTPUT@"~
16962 case $lt_outputfile in
16963 *.exe|*.EXE) ;;
16964 *)
16965 lt_outputfile=$lt_outputfile.exe
16966 lt_tool_outputfile=$lt_tool_outputfile.exe
16967 ;;
16968 esac~
16969 func_to_tool_file "$lt_outputfile"~
16970 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16971 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16972 $RM "$lt_outputfile.manifest";
16973 fi'
16974 ;;
16975 *)
16976 # g++
16977 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16978 # as there is no search path for DLLs.
16979 hardcode_libdir_flag_spec_CXX='-L$libdir'
16980 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16981 allow_undefined_flag_CXX=unsupported
16982 always_export_symbols_CXX=no
16983 enable_shared_with_static_runtimes_CXX=yes
16984 file_list_spec_CXX='@'
16985
16986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16987 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'
16988 # If the export-symbols file already is a .def file, use it as
16989 # is; otherwise, prepend EXPORTS...
16990 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16991 cp $export_symbols $output_objdir/$soname.def;
16992 else
16993 echo EXPORTS > $output_objdir/$soname.def;
16994 cat $export_symbols >> $output_objdir/$soname.def;
16995 fi~
16996 $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'
16997 else
16998 ld_shlibs_CXX=no
16999 fi
17000 ;;
17001 esac
17002 ;;
17003 darwin* | rhapsody*)
17004
17005
17006 archive_cmds_need_lc_CXX=no
17007 hardcode_direct_CXX=no
17008 hardcode_automatic_CXX=yes
17009 hardcode_shlibpath_var_CXX=unsupported
17010 if test yes = "$lt_cv_ld_force_load"; then
17011 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\"`'
17012
17013 else
17014 whole_archive_flag_spec_CXX=''
17015 fi
17016 link_all_deplibs_CXX=yes
17017 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17018 case $cc_basename in
17019 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17020 *) _lt_dar_can_shared=$GCC ;;
17021 esac
17022 if test yes = "$_lt_dar_can_shared"; then
17023 output_verbose_link_cmd=func_echo_all
17024 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"
17025 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17026 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"
17027 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"
17028 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17029 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"
17030 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"
17031 fi
17032
17033 else
17034 ld_shlibs_CXX=no
17035 fi
17036
17037 ;;
17038
17039 os2*)
17040 hardcode_libdir_flag_spec_CXX='-L$libdir'
17041 hardcode_minus_L_CXX=yes
17042 allow_undefined_flag_CXX=unsupported
17043 shrext_cmds=.dll
17044 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17045 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17046 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17047 $ECHO EXPORTS >> $output_objdir/$libname.def~
17048 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17049 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17050 emximp -o $lib $output_objdir/$libname.def'
17051 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17052 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17053 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17054 $ECHO EXPORTS >> $output_objdir/$libname.def~
17055 prefix_cmds="$SED"~
17056 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17057 prefix_cmds="$prefix_cmds -e 1d";
17058 fi~
17059 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17060 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17061 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17062 emximp -o $lib $output_objdir/$libname.def'
17063 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17064 enable_shared_with_static_runtimes_CXX=yes
17065 file_list_spec_CXX='@'
17066 ;;
17067
17068 dgux*)
17069 case $cc_basename in
17070 ec++*)
17071 # FIXME: insert proper C++ library support
17072 ld_shlibs_CXX=no
17073 ;;
17074 ghcx*)
17075 # Green Hills C++ Compiler
17076 # FIXME: insert proper C++ library support
17077 ld_shlibs_CXX=no
17078 ;;
17079 *)
17080 # FIXME: insert proper C++ library support
17081 ld_shlibs_CXX=no
17082 ;;
17083 esac
17084 ;;
17085
17086 freebsd2.*)
17087 # C++ shared libraries reported to be fairly broken before
17088 # switch to ELF
17089 ld_shlibs_CXX=no
17090 ;;
17091
17092 freebsd-elf*)
17093 archive_cmds_need_lc_CXX=no
17094 ;;
17095
17096 freebsd* | dragonfly* | midnightbsd*)
17097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17098 # conventions
17099 ld_shlibs_CXX=yes
17100 ;;
17101
17102 haiku*)
17103 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17104 link_all_deplibs_CXX=no
17105 ;;
17106
17107 hpux9*)
17108 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17109 hardcode_libdir_separator_CXX=:
17110 export_dynamic_flag_spec_CXX='$wl-E'
17111 hardcode_direct_CXX=yes
17112 hardcode_minus_L_CXX=yes # Not in the search PATH,
17113 # but as the default
17114 # location of the library.
17115
17116 case $cc_basename in
17117 CC*)
17118 # FIXME: insert proper C++ library support
17119 ld_shlibs_CXX=no
17120 ;;
17121 aCC*)
17122 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'
17123 # Commands to make compiler produce verbose output that lists
17124 # what "hidden" libraries, object files and flags are used when
17125 # linking a shared library.
17126 #
17127 # There doesn't appear to be a way to prevent this compiler from
17128 # explicitly linking system object files so we need to strip them
17129 # from the output so that they don't get included in the library
17130 # dependencies.
17131 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"'
17132 ;;
17133 *)
17134 if test yes = "$GXX"; then
17135 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'
17136 else
17137 # FIXME: insert proper C++ library support
17138 ld_shlibs_CXX=no
17139 fi
17140 ;;
17141 esac
17142 ;;
17143
17144 hpux10*|hpux11*)
17145 if test no = "$with_gnu_ld"; then
17146 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17147 hardcode_libdir_separator_CXX=:
17148
17149 case $host_cpu in
17150 hppa*64*|ia64*)
17151 ;;
17152 *)
17153 export_dynamic_flag_spec_CXX='$wl-E'
17154 ;;
17155 esac
17156 fi
17157 case $host_cpu in
17158 hppa*64*|ia64*)
17159 hardcode_direct_CXX=no
17160 hardcode_shlibpath_var_CXX=no
17161 ;;
17162 *)
17163 hardcode_direct_CXX=yes
17164 hardcode_direct_absolute_CXX=yes
17165 hardcode_minus_L_CXX=yes # Not in the search PATH,
17166 # but as the default
17167 # location of the library.
17168 ;;
17169 esac
17170
17171 case $cc_basename in
17172 CC*)
17173 # FIXME: insert proper C++ library support
17174 ld_shlibs_CXX=no
17175 ;;
17176 aCC*)
17177 case $host_cpu in
17178 hppa*64*)
17179 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17180 ;;
17181 ia64*)
17182 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17183 ;;
17184 *)
17185 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17186 ;;
17187 esac
17188 # Commands to make compiler produce verbose output that lists
17189 # what "hidden" libraries, object files and flags are used when
17190 # linking a shared library.
17191 #
17192 # There doesn't appear to be a way to prevent this compiler from
17193 # explicitly linking system object files so we need to strip them
17194 # from the output so that they don't get included in the library
17195 # dependencies.
17196 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"'
17197 ;;
17198 *)
17199 if test yes = "$GXX"; then
17200 if test no = "$with_gnu_ld"; then
17201 case $host_cpu in
17202 hppa*64*)
17203 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17204 ;;
17205 ia64*)
17206 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17207 ;;
17208 *)
17209 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'
17210 ;;
17211 esac
17212 fi
17213 else
17214 # FIXME: insert proper C++ library support
17215 ld_shlibs_CXX=no
17216 fi
17217 ;;
17218 esac
17219 ;;
17220
17221 interix[3-9]*)
17222 hardcode_direct_CXX=no
17223 hardcode_shlibpath_var_CXX=no
17224 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17225 export_dynamic_flag_spec_CXX='$wl-E'
17226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17227 # Instead, shared libraries are loaded at an image base (0x10000000 by
17228 # default) and relocated if they conflict, which is a slow very memory
17229 # consuming and fragmenting process. To avoid this, we pick a random,
17230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17232 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'
17233 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'
17234 ;;
17235 irix5* | irix6*)
17236 case $cc_basename in
17237 CC*)
17238 # SGI C++
17239 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'
17240
17241 # Archives containing C++ object files must be created using
17242 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17243 # necessary to make sure instantiated templates are included
17244 # in the archive.
17245 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17246 ;;
17247 *)
17248 if test yes = "$GXX"; then
17249 if test no = "$with_gnu_ld"; then
17250 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'
17251 else
17252 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'
17253 fi
17254 fi
17255 link_all_deplibs_CXX=yes
17256 ;;
17257 esac
17258 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17259 hardcode_libdir_separator_CXX=:
17260 inherit_rpath_CXX=yes
17261 ;;
17262
17263 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17264 case $cc_basename in
17265 KCC*)
17266 # Kuck and Associates, Inc. (KAI) C++ Compiler
17267
17268 # KCC will only create a shared library if the output file
17269 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17270 # to its proper name (with version) after linking.
17271 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'
17272 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'
17273 # Commands to make compiler produce verbose output that lists
17274 # what "hidden" libraries, object files and flags are used when
17275 # linking a shared library.
17276 #
17277 # There doesn't appear to be a way to prevent this compiler from
17278 # explicitly linking system object files so we need to strip them
17279 # from the output so that they don't get included in the library
17280 # dependencies.
17281 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"'
17282
17283 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17284 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17285
17286 # Archives containing C++ object files must be created using
17287 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17288 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17289 ;;
17290 icpc* | ecpc* )
17291 # Intel C++
17292 with_gnu_ld=yes
17293 # version 8.0 and above of icpc choke on multiply defined symbols
17294 # if we add $predep_objects and $postdep_objects, however 7.1 and
17295 # earlier do not add the objects themselves.
17296 case `$CC -V 2>&1` in
17297 *"Version 7."*)
17298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17299 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'
17300 ;;
17301 *) # Version 8.0 or newer
17302 tmp_idyn=
17303 case $host_cpu in
17304 ia64*) tmp_idyn=' -i_dynamic';;
17305 esac
17306 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17307 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'
17308 ;;
17309 esac
17310 archive_cmds_need_lc_CXX=no
17311 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17312 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17313 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17314 ;;
17315 pgCC* | pgcpp*)
17316 # Portland Group C++ compiler
17317 case `$CC -V` in
17318 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17319 prelink_cmds_CXX='tpldir=Template.dir~
17320 rm -rf $tpldir~
17321 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17322 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17323 old_archive_cmds_CXX='tpldir=Template.dir~
17324 rm -rf $tpldir~
17325 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17326 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17327 $RANLIB $oldlib'
17328 archive_cmds_CXX='tpldir=Template.dir~
17329 rm -rf $tpldir~
17330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17331 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17332 archive_expsym_cmds_CXX='tpldir=Template.dir~
17333 rm -rf $tpldir~
17334 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17335 $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'
17336 ;;
17337 *) # Version 6 and above use weak symbols
17338 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17339 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'
17340 ;;
17341 esac
17342
17343 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17344 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17345 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'
17346 ;;
17347 cxx*)
17348 # Compaq C++
17349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17350 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'
17351
17352 runpath_var=LD_RUN_PATH
17353 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17354 hardcode_libdir_separator_CXX=:
17355
17356 # Commands to make compiler produce verbose output that lists
17357 # what "hidden" libraries, object files and flags are used when
17358 # linking a shared library.
17359 #
17360 # There doesn't appear to be a way to prevent this compiler from
17361 # explicitly linking system object files so we need to strip them
17362 # from the output so that they don't get included in the library
17363 # dependencies.
17364 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'
17365 ;;
17366 xl* | mpixl* | bgxl*)
17367 # IBM XL 8.0 on PPC, with GNU ld
17368 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17369 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17370 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17371 if test yes = "$supports_anon_versioning"; then
17372 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17373 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17374 echo "local: *; };" >> $output_objdir/$libname.ver~
17375 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17376 fi
17377 ;;
17378 *)
17379 case `$CC -V 2>&1 | $SED 5q` in
17380 *Sun\ C*)
17381 # Sun C++ 5.9
17382 no_undefined_flag_CXX=' -zdefs'
17383 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17384 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'
17385 hardcode_libdir_flag_spec_CXX='-R$libdir'
17386 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'
17387 compiler_needs_object_CXX=yes
17388
17389 # Not sure whether something based on
17390 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17391 # would be better.
17392 output_verbose_link_cmd='func_echo_all'
17393
17394 # Archives containing C++ object files must be created using
17395 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17396 # necessary to make sure instantiated templates are included
17397 # in the archive.
17398 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17399 ;;
17400 esac
17401 ;;
17402 esac
17403 ;;
17404
17405 lynxos*)
17406 # FIXME: insert proper C++ library support
17407 ld_shlibs_CXX=no
17408 ;;
17409
17410 m88k*)
17411 # FIXME: insert proper C++ library support
17412 ld_shlibs_CXX=no
17413 ;;
17414
17415 mvs*)
17416 case $cc_basename in
17417 cxx*)
17418 # FIXME: insert proper C++ library support
17419 ld_shlibs_CXX=no
17420 ;;
17421 *)
17422 # FIXME: insert proper C++ library support
17423 ld_shlibs_CXX=no
17424 ;;
17425 esac
17426 ;;
17427
17428 *-mlibc)
17429 ld_shlibs_CXX=yes
17430 ;;
17431
17432 netbsd*)
17433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17434 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17435 wlarc=
17436 hardcode_libdir_flag_spec_CXX='-R$libdir'
17437 hardcode_direct_CXX=yes
17438 hardcode_shlibpath_var_CXX=no
17439 fi
17440 # Workaround some broken pre-1.5 toolchains
17441 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17442 ;;
17443
17444 *nto* | *qnx*)
17445 ld_shlibs_CXX=yes
17446 ;;
17447
17448 openbsd*)
17449 if test -f /usr/libexec/ld.so; then
17450 hardcode_direct_CXX=yes
17451 hardcode_shlibpath_var_CXX=no
17452 hardcode_direct_absolute_CXX=yes
17453 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17454 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17456 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17457 export_dynamic_flag_spec_CXX='$wl-E'
17458 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17459 fi
17460 output_verbose_link_cmd=func_echo_all
17461 else
17462 ld_shlibs_CXX=no
17463 fi
17464 ;;
17465
17466 osf3* | osf4* | osf5*)
17467 case $cc_basename in
17468 KCC*)
17469 # Kuck and Associates, Inc. (KAI) C++ Compiler
17470
17471 # KCC will only create a shared library if the output file
17472 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17473 # to its proper name (with version) after linking.
17474 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'
17475
17476 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17477 hardcode_libdir_separator_CXX=:
17478
17479 # Archives containing C++ object files must be created using
17480 # the KAI C++ compiler.
17481 case $host in
17482 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17483 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17484 esac
17485 ;;
17486 RCC*)
17487 # Rational C++ 2.4.1
17488 # FIXME: insert proper C++ library support
17489 ld_shlibs_CXX=no
17490 ;;
17491 cxx*)
17492 case $host in
17493 osf3*)
17494 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17495 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'
17496 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17497 ;;
17498 *)
17499 allow_undefined_flag_CXX=' -expect_unresolved \*'
17500 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'
17501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17502 echo "-hidden">> $lib.exp~
17503 $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~
17504 $RM $lib.exp'
17505 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17506 ;;
17507 esac
17508
17509 hardcode_libdir_separator_CXX=:
17510
17511 # Commands to make compiler produce verbose output that lists
17512 # what "hidden" libraries, object files and flags are used when
17513 # linking a shared library.
17514 #
17515 # There doesn't appear to be a way to prevent this compiler from
17516 # explicitly linking system object files so we need to strip them
17517 # from the output so that they don't get included in the library
17518 # dependencies.
17519 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"'
17520 ;;
17521 *)
17522 if test yes,no = "$GXX,$with_gnu_ld"; then
17523 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17524 case $host in
17525 osf3*)
17526 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'
17527 ;;
17528 *)
17529 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'
17530 ;;
17531 esac
17532
17533 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17534 hardcode_libdir_separator_CXX=:
17535
17536 # Commands to make compiler produce verbose output that lists
17537 # what "hidden" libraries, object files and flags are used when
17538 # linking a shared library.
17539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17540
17541 else
17542 # FIXME: insert proper C++ library support
17543 ld_shlibs_CXX=no
17544 fi
17545 ;;
17546 esac
17547 ;;
17548
17549 psos*)
17550 # FIXME: insert proper C++ library support
17551 ld_shlibs_CXX=no
17552 ;;
17553
17554 serenity*)
17555 ;;
17556
17557 sunos4*)
17558 case $cc_basename in
17559 CC*)
17560 # Sun C++ 4.x
17561 # FIXME: insert proper C++ library support
17562 ld_shlibs_CXX=no
17563 ;;
17564 lcc*)
17565 # Lucid
17566 # FIXME: insert proper C++ library support
17567 ld_shlibs_CXX=no
17568 ;;
17569 *)
17570 # FIXME: insert proper C++ library support
17571 ld_shlibs_CXX=no
17572 ;;
17573 esac
17574 ;;
17575
17576 solaris*)
17577 case $cc_basename in
17578 CC* | sunCC*)
17579 # Sun C++ 4.2, 5.x and Centerline C++
17580 archive_cmds_need_lc_CXX=yes
17581 no_undefined_flag_CXX=' -zdefs'
17582 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17584 $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'
17585
17586 hardcode_libdir_flag_spec_CXX='-R$libdir'
17587 hardcode_shlibpath_var_CXX=no
17588 case $host_os in
17589 solaris2.[0-5] | solaris2.[0-5].*) ;;
17590 *)
17591 # The compiler driver will combine and reorder linker options,
17592 # but understands '-z linker_flag'.
17593 # Supported since Solaris 2.6 (maybe 2.5.1?)
17594 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17595 ;;
17596 esac
17597 link_all_deplibs_CXX=yes
17598
17599 output_verbose_link_cmd='func_echo_all'
17600
17601 # Archives containing C++ object files must be created using
17602 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17603 # necessary to make sure instantiated templates are included
17604 # in the archive.
17605 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17606 ;;
17607 gcx*)
17608 # Green Hills C++ Compiler
17609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17610
17611 # The C++ compiler must be used to create the archive.
17612 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17613 ;;
17614 *)
17615 # GNU C++ compiler with Solaris linker
17616 if test yes,no = "$GXX,$with_gnu_ld"; then
17617 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17618 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17619 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17621 $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'
17622
17623 # Commands to make compiler produce verbose output that lists
17624 # what "hidden" libraries, object files and flags are used when
17625 # linking a shared library.
17626 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17627 else
17628 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17629 # platform.
17630 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17631 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17632 $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'
17633
17634 # Commands to make compiler produce verbose output that lists
17635 # what "hidden" libraries, object files and flags are used when
17636 # linking a shared library.
17637 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17638 fi
17639
17640 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17641 case $host_os in
17642 solaris2.[0-5] | solaris2.[0-5].*) ;;
17643 *)
17644 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17645 ;;
17646 esac
17647 fi
17648 ;;
17649 esac
17650 ;;
17651
17652 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17653 no_undefined_flag_CXX='$wl-z,text'
17654 archive_cmds_need_lc_CXX=no
17655 hardcode_shlibpath_var_CXX=no
17656 runpath_var='LD_RUN_PATH'
17657
17658 case $cc_basename in
17659 CC*)
17660 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17662 ;;
17663 *)
17664 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17666 ;;
17667 esac
17668 ;;
17669
17670 sysv5* | sco3.2v5* | sco5v6*)
17671 # Note: We CANNOT use -z defs as we might desire, because we do not
17672 # link with -lc, and that would cause any symbols used from libc to
17673 # always be unresolved, which means just about no library would
17674 # ever link correctly. If we're not using GNU ld we use -z text
17675 # though, which does catch some bad symbols but isn't as heavy-handed
17676 # as -z defs.
17677 no_undefined_flag_CXX='$wl-z,text'
17678 allow_undefined_flag_CXX='$wl-z,nodefs'
17679 archive_cmds_need_lc_CXX=no
17680 hardcode_shlibpath_var_CXX=no
17681 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17682 hardcode_libdir_separator_CXX=':'
17683 link_all_deplibs_CXX=yes
17684 export_dynamic_flag_spec_CXX='$wl-Bexport'
17685 runpath_var='LD_RUN_PATH'
17686
17687 case $cc_basename in
17688 CC*)
17689 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17690 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17692 '"$old_archive_cmds_CXX"
17693 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17694 '"$reload_cmds_CXX"
17695 ;;
17696 *)
17697 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17698 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17699 ;;
17700 esac
17701 ;;
17702
17703 tandem*)
17704 case $cc_basename in
17705 NCC*)
17706 # NonStop-UX NCC 3.20
17707 # FIXME: insert proper C++ library support
17708 ld_shlibs_CXX=no
17709 ;;
17710 *)
17711 # FIXME: insert proper C++ library support
17712 ld_shlibs_CXX=no
17713 ;;
17714 esac
17715 ;;
17716
17717 vxworks*)
17718 # FIXME: insert proper C++ library support
17719 ld_shlibs_CXX=no
17720 ;;
17721
17722 *)
17723 # FIXME: insert proper C++ library support
17724 ld_shlibs_CXX=no
17725 ;;
17726 esac
17727
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17729 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17730 test no = "$ld_shlibs_CXX" && can_build_shared=no
17731
17732 GCC_CXX=$GXX
17733 LD_CXX=$LD
17734
17735 ## CAVEAT EMPTOR:
17736 ## There is no encapsulation within the following macros, do not change
17737 ## the running order or otherwise move them around unless you know exactly
17738 ## what you are doing...
17739 # Dependencies to place before and after the object being linked:
17740 predep_objects_CXX=
17741 postdep_objects_CXX=
17742 predeps_CXX=
17743 postdeps_CXX=
17744 compiler_lib_search_path_CXX=
17745
17746 cat > conftest.$ac_ext <<_LT_EOF
17747 class Foo
17748 {
17749 public:
17750 Foo (void) { a = 0; }
17751 private:
17752 int a;
17753 };
17754 _LT_EOF
17755
17756
17757 _lt_libdeps_save_CFLAGS=$CFLAGS
17758 case "$CC $CFLAGS " in #(
17759 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17760 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17761 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17762 esac
17763
17764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17765 (eval $ac_compile) 2>&5
17766 ac_status=$?
17767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; }; then
17769 # Parse the compiler output and extract the necessary
17770 # objects, libraries and library flags.
17771
17772 # Sentinel used to keep track of whether or not we are before
17773 # the conftest object file.
17774 pre_test_object_deps_done=no
17775
17776 for p in `eval "$output_verbose_link_cmd"`; do
17777 case $prev$p in
17778
17779 -L* | -R* | -l*)
17780 # Some compilers place space between "-{L,R,l}" and the path.
17781 # Remove the space.
17782 if test x-L = x"$p" ||
17783 test x-R = x"$p" ||
17784 test x-l = x"$p"; then
17785 prev=$p
17786 continue
17787 fi
17788
17789 # Expand the sysroot to ease extracting the directories later.
17790 if test -z "$prev"; then
17791 case $p in
17792 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17793 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17794 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17795 esac
17796 fi
17797 case $p in
17798 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17799 esac
17800 if test no = "$pre_test_object_deps_done"; then
17801 case $prev in
17802 -L | -R)
17803 # Internal compiler library paths should come after those
17804 # provided the user. The postdeps already come after the
17805 # user supplied libs so there is no need to process them.
17806 if test -z "$compiler_lib_search_path_CXX"; then
17807 compiler_lib_search_path_CXX=$prev$p
17808 else
17809 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17810 fi
17811 ;;
17812 # The "-l" case would never come before the object being
17813 # linked, so don't bother handling this case.
17814 esac
17815 else
17816 if test -z "$postdeps_CXX"; then
17817 postdeps_CXX=$prev$p
17818 else
17819 postdeps_CXX="${postdeps_CXX} $prev$p"
17820 fi
17821 fi
17822 prev=
17823 ;;
17824
17825 *.lto.$objext) ;; # Ignore GCC LTO objects
17826 *.$objext)
17827 # This assumes that the test object file only shows up
17828 # once in the compiler output.
17829 if test "$p" = "conftest.$objext"; then
17830 pre_test_object_deps_done=yes
17831 continue
17832 fi
17833
17834 if test no = "$pre_test_object_deps_done"; then
17835 if test -z "$predep_objects_CXX"; then
17836 predep_objects_CXX=$p
17837 else
17838 predep_objects_CXX="$predep_objects_CXX $p"
17839 fi
17840 else
17841 if test -z "$postdep_objects_CXX"; then
17842 postdep_objects_CXX=$p
17843 else
17844 postdep_objects_CXX="$postdep_objects_CXX $p"
17845 fi
17846 fi
17847 ;;
17848
17849 *) ;; # Ignore the rest.
17850
17851 esac
17852 done
17853
17854 # Clean up.
17855 rm -f a.out a.exe
17856 else
17857 echo "libtool.m4: error: problem compiling CXX test program"
17858 fi
17859
17860 $RM -f confest.$objext
17861 CFLAGS=$_lt_libdeps_save_CFLAGS
17862
17863 # PORTME: override above test on systems where it is broken
17864 case $host_os in
17865 interix[3-9]*)
17866 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17867 # hack all around it, let's just trust "g++" to DTRT.
17868 predep_objects_CXX=
17869 postdep_objects_CXX=
17870 postdeps_CXX=
17871 ;;
17872 esac
17873
17874
17875 case " $postdeps_CXX " in
17876 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17877 esac
17878 compiler_lib_search_dirs_CXX=
17879 if test -n "${compiler_lib_search_path_CXX}"; then
17880 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17881 fi
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913 lt_prog_compiler_wl_CXX=
17914 lt_prog_compiler_pic_CXX=
17915 lt_prog_compiler_static_CXX=
17916
17917
17918 # C++ specific cases for pic, static, wl, etc.
17919 if test yes = "$GXX"; then
17920 lt_prog_compiler_wl_CXX='-Wl,'
17921 lt_prog_compiler_static_CXX='-static'
17922
17923 case $host_os in
17924 aix*)
17925 # All AIX code is PIC.
17926 if test ia64 = "$host_cpu"; then
17927 # AIX 5 now supports IA64 processor
17928 lt_prog_compiler_static_CXX='-Bstatic'
17929 fi
17930 lt_prog_compiler_pic_CXX='-fPIC'
17931 ;;
17932
17933 amigaos*)
17934 case $host_cpu in
17935 powerpc)
17936 # see comment about AmigaOS4 .so support
17937 lt_prog_compiler_pic_CXX='-fPIC'
17938 ;;
17939 m68k)
17940 # FIXME: we need at least 68020 code to build shared libraries, but
17941 # adding the '-m68020' flag to GCC prevents building anything better,
17942 # like '-m68040'.
17943 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17944 ;;
17945 esac
17946 ;;
17947
17948 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17949 # PIC is the default for these OSes.
17950 ;;
17951 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17952 # This hack is so that the source file can tell whether it is being
17953 # built for inclusion in a dll (and should export symbols for example).
17954 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17955 # (--disable-auto-import) libraries
17956 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17957 case $host_os in
17958 os2*)
17959 lt_prog_compiler_static_CXX='$wl-static'
17960 ;;
17961 esac
17962 ;;
17963 darwin* | rhapsody*)
17964 # PIC is the default on this platform
17965 # Common symbols not allowed in MH_DYLIB files
17966 lt_prog_compiler_pic_CXX='-fno-common'
17967 ;;
17968 *djgpp*)
17969 # DJGPP does not support shared libraries at all
17970 lt_prog_compiler_pic_CXX=
17971 ;;
17972 haiku*)
17973 # PIC is the default for Haiku.
17974 # The "-static" flag exists, but is broken.
17975 lt_prog_compiler_static_CXX=
17976 ;;
17977 interix[3-9]*)
17978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17979 # Instead, we relocate shared libraries at runtime.
17980 ;;
17981 sysv4*MP*)
17982 if test -d /usr/nec; then
17983 lt_prog_compiler_pic_CXX=-Kconform_pic
17984 fi
17985 ;;
17986 hpux*)
17987 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17988 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17989 # sets the default TLS model and affects inlining.
17990 case $host_cpu in
17991 hppa*64*)
17992 ;;
17993 *)
17994 lt_prog_compiler_pic_CXX='-fPIC'
17995 ;;
17996 esac
17997 ;;
17998 *qnx* | *nto*)
17999 # QNX uses GNU C++, but need to define -shared option too, otherwise
18000 # it will coredump.
18001 lt_prog_compiler_pic_CXX='-fPIC -shared'
18002 ;;
18003 *)
18004 lt_prog_compiler_pic_CXX='-fPIC'
18005 ;;
18006 esac
18007 else
18008 case $host_os in
18009 aix[4-9]*)
18010 # All AIX code is PIC.
18011 if test ia64 = "$host_cpu"; then
18012 # AIX 5 now supports IA64 processor
18013 lt_prog_compiler_static_CXX='-Bstatic'
18014 else
18015 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18016 fi
18017 ;;
18018 chorus*)
18019 case $cc_basename in
18020 cxch68*)
18021 # Green Hills C++ Compiler
18022 # _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"
18023 ;;
18024 esac
18025 ;;
18026 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18027 # This hack is so that the source file can tell whether it is being
18028 # built for inclusion in a dll (and should export symbols for example).
18029 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18030 ;;
18031 dgux*)
18032 case $cc_basename in
18033 ec++*)
18034 lt_prog_compiler_pic_CXX='-KPIC'
18035 ;;
18036 ghcx*)
18037 # Green Hills C++ Compiler
18038 lt_prog_compiler_pic_CXX='-pic'
18039 ;;
18040 *)
18041 ;;
18042 esac
18043 ;;
18044 freebsd* | dragonfly* | midnightbsd*)
18045 # FreeBSD uses GNU C++
18046 ;;
18047 hpux9* | hpux10* | hpux11*)
18048 case $cc_basename in
18049 CC*)
18050 lt_prog_compiler_wl_CXX='-Wl,'
18051 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18052 if test ia64 != "$host_cpu"; then
18053 lt_prog_compiler_pic_CXX='+Z'
18054 fi
18055 ;;
18056 aCC*)
18057 lt_prog_compiler_wl_CXX='-Wl,'
18058 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18059 case $host_cpu in
18060 hppa*64*|ia64*)
18061 # +Z the default
18062 ;;
18063 *)
18064 lt_prog_compiler_pic_CXX='+Z'
18065 ;;
18066 esac
18067 ;;
18068 *)
18069 ;;
18070 esac
18071 ;;
18072 interix*)
18073 # This is c89, which is MS Visual C++ (no shared libs)
18074 # Anyone wants to do a port?
18075 ;;
18076 irix5* | irix6* | nonstopux*)
18077 case $cc_basename in
18078 CC*)
18079 lt_prog_compiler_wl_CXX='-Wl,'
18080 lt_prog_compiler_static_CXX='-non_shared'
18081 # CC pic flag -KPIC is the default.
18082 ;;
18083 *)
18084 ;;
18085 esac
18086 ;;
18087 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18088 case $cc_basename in
18089 KCC*)
18090 # KAI C++ Compiler
18091 lt_prog_compiler_wl_CXX='--backend -Wl,'
18092 lt_prog_compiler_pic_CXX='-fPIC'
18093 ;;
18094 ecpc* )
18095 # old Intel C++ for x86_64, which still supported -KPIC.
18096 lt_prog_compiler_wl_CXX='-Wl,'
18097 lt_prog_compiler_pic_CXX='-KPIC'
18098 lt_prog_compiler_static_CXX='-static'
18099 ;;
18100 icpc* )
18101 # Intel C++, used to be incompatible with GCC.
18102 # ICC 10 doesn't accept -KPIC any more.
18103 lt_prog_compiler_wl_CXX='-Wl,'
18104 lt_prog_compiler_pic_CXX='-fPIC'
18105 lt_prog_compiler_static_CXX='-static'
18106 ;;
18107 pgCC* | pgcpp*)
18108 # Portland Group C++ compiler
18109 lt_prog_compiler_wl_CXX='-Wl,'
18110 lt_prog_compiler_pic_CXX='-fpic'
18111 lt_prog_compiler_static_CXX='-Bstatic'
18112 ;;
18113 cxx*)
18114 # Compaq C++
18115 # Make sure the PIC flag is empty. It appears that all Alpha
18116 # Linux and Compaq Tru64 Unix objects are PIC.
18117 lt_prog_compiler_pic_CXX=
18118 lt_prog_compiler_static_CXX='-non_shared'
18119 ;;
18120 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18121 # IBM XL 8.0, 9.0 on PPC and BlueGene
18122 lt_prog_compiler_wl_CXX='-Wl,'
18123 lt_prog_compiler_pic_CXX='-qpic'
18124 lt_prog_compiler_static_CXX='-qstaticlink'
18125 ;;
18126 *)
18127 case `$CC -V 2>&1 | $SED 5q` in
18128 *Sun\ C*)
18129 # Sun C++ 5.9
18130 lt_prog_compiler_pic_CXX='-KPIC'
18131 lt_prog_compiler_static_CXX='-Bstatic'
18132 lt_prog_compiler_wl_CXX='-Qoption ld '
18133 ;;
18134 esac
18135 ;;
18136 esac
18137 ;;
18138 lynxos*)
18139 ;;
18140 m88k*)
18141 ;;
18142 mvs*)
18143 case $cc_basename in
18144 cxx*)
18145 lt_prog_compiler_pic_CXX='-W c,exportall'
18146 ;;
18147 *)
18148 ;;
18149 esac
18150 ;;
18151 netbsd* | netbsdelf*-gnu)
18152 ;;
18153 *-mlibc)
18154 ;;
18155 *qnx* | *nto*)
18156 # QNX uses GNU C++, but need to define -shared option too, otherwise
18157 # it will coredump.
18158 lt_prog_compiler_pic_CXX='-fPIC -shared'
18159 ;;
18160 osf3* | osf4* | osf5*)
18161 case $cc_basename in
18162 KCC*)
18163 lt_prog_compiler_wl_CXX='--backend -Wl,'
18164 ;;
18165 RCC*)
18166 # Rational C++ 2.4.1
18167 lt_prog_compiler_pic_CXX='-pic'
18168 ;;
18169 cxx*)
18170 # Digital/Compaq C++
18171 lt_prog_compiler_wl_CXX='-Wl,'
18172 # Make sure the PIC flag is empty. It appears that all Alpha
18173 # Linux and Compaq Tru64 Unix objects are PIC.
18174 lt_prog_compiler_pic_CXX=
18175 lt_prog_compiler_static_CXX='-non_shared'
18176 ;;
18177 *)
18178 ;;
18179 esac
18180 ;;
18181 psos*)
18182 ;;
18183 serenity*)
18184 ;;
18185 solaris*)
18186 case $cc_basename in
18187 CC* | sunCC*)
18188 # Sun C++ 4.2, 5.x and Centerline C++
18189 lt_prog_compiler_pic_CXX='-KPIC'
18190 lt_prog_compiler_static_CXX='-Bstatic'
18191 lt_prog_compiler_wl_CXX='-Qoption ld '
18192 ;;
18193 gcx*)
18194 # Green Hills C++ Compiler
18195 lt_prog_compiler_pic_CXX='-PIC'
18196 ;;
18197 *)
18198 ;;
18199 esac
18200 ;;
18201 sunos4*)
18202 case $cc_basename in
18203 CC*)
18204 # Sun C++ 4.x
18205 lt_prog_compiler_pic_CXX='-pic'
18206 lt_prog_compiler_static_CXX='-Bstatic'
18207 ;;
18208 lcc*)
18209 # Lucid
18210 lt_prog_compiler_pic_CXX='-pic'
18211 ;;
18212 *)
18213 ;;
18214 esac
18215 ;;
18216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18217 case $cc_basename in
18218 CC*)
18219 lt_prog_compiler_wl_CXX='-Wl,'
18220 lt_prog_compiler_pic_CXX='-KPIC'
18221 lt_prog_compiler_static_CXX='-Bstatic'
18222 ;;
18223 esac
18224 ;;
18225 tandem*)
18226 case $cc_basename in
18227 NCC*)
18228 # NonStop-UX NCC 3.20
18229 lt_prog_compiler_pic_CXX='-KPIC'
18230 ;;
18231 *)
18232 ;;
18233 esac
18234 ;;
18235 vxworks*)
18236 ;;
18237 *)
18238 lt_prog_compiler_can_build_shared_CXX=no
18239 ;;
18240 esac
18241 fi
18242
18243 case $host_os in
18244 # For platforms that do not support PIC, -DPIC is meaningless:
18245 *djgpp*)
18246 lt_prog_compiler_pic_CXX=
18247 ;;
18248 *)
18249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18250 ;;
18251 esac
18252
18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18254 printf %s "checking for $compiler option to produce PIC... " >&6; }
18255 if test ${lt_cv_prog_compiler_pic_CXX+y}
18256 then :
18257 printf %s "(cached) " >&6
18258 else case e in #(
18259 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18260 esac
18261 fi
18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18263 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18264 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18265
18266 #
18267 # Check to make sure the PIC flag actually works.
18268 #
18269 if test -n "$lt_prog_compiler_pic_CXX"; then
18270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18271 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18272 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18273 then :
18274 printf %s "(cached) " >&6
18275 else case e in #(
18276 e) lt_cv_prog_compiler_pic_works_CXX=no
18277 ac_outfile=conftest.$ac_objext
18278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18279 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18280 # Insert the option either (1) after the last *FLAGS variable, or
18281 # (2) before a word containing "conftest.", or (3) at the end.
18282 # Note that $ac_compile itself does not contain backslashes and begins
18283 # with a dollar sign (not a hyphen), so the echo should work correctly.
18284 # The option is referenced via a variable to avoid confusing sed.
18285 lt_compile=`echo "$ac_compile" | $SED \
18286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18288 -e 's:$: $lt_compiler_flag:'`
18289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18290 (eval "$lt_compile" 2>conftest.err)
18291 ac_status=$?
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 if (exit $ac_status) && test -s "$ac_outfile"; then
18295 # The compiler can only warn and ignore the option if not recognized
18296 # So say no if there are warnings other than the usual output.
18297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18300 lt_cv_prog_compiler_pic_works_CXX=yes
18301 fi
18302 fi
18303 $RM conftest*
18304 ;;
18305 esac
18306 fi
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18308 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18309
18310 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18311 case $lt_prog_compiler_pic_CXX in
18312 "" | " "*) ;;
18313 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18314 esac
18315 else
18316 lt_prog_compiler_pic_CXX=
18317 lt_prog_compiler_can_build_shared_CXX=no
18318 fi
18319
18320 fi
18321
18322
18323
18324
18325
18326 #
18327 # Check to make sure the static flag actually works.
18328 #
18329 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18331 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18332 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18333 then :
18334 printf %s "(cached) " >&6
18335 else case e in #(
18336 e) lt_cv_prog_compiler_static_works_CXX=no
18337 save_LDFLAGS=$LDFLAGS
18338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18341 # The linker can only warn and ignore the option if not recognized
18342 # So say no if there are warnings
18343 if test -s conftest.err; then
18344 # Append any errors to the config.log.
18345 cat conftest.err 1>&5
18346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18348 if diff conftest.exp conftest.er2 >/dev/null; then
18349 lt_cv_prog_compiler_static_works_CXX=yes
18350 fi
18351 else
18352 lt_cv_prog_compiler_static_works_CXX=yes
18353 fi
18354 fi
18355 $RM -r conftest*
18356 LDFLAGS=$save_LDFLAGS
18357 ;;
18358 esac
18359 fi
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18361 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18362
18363 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18364 :
18365 else
18366 lt_prog_compiler_static_CXX=
18367 fi
18368
18369
18370
18371
18372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18373 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18374 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18375 then :
18376 printf %s "(cached) " >&6
18377 else case e in #(
18378 e) lt_cv_prog_compiler_c_o_CXX=no
18379 $RM -r conftest 2>/dev/null
18380 mkdir conftest
18381 cd conftest
18382 mkdir out
18383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18384
18385 lt_compiler_flag="-o out/conftest2.$ac_objext"
18386 # Insert the option either (1) after the last *FLAGS variable, or
18387 # (2) before a word containing "conftest.", or (3) at the end.
18388 # Note that $ac_compile itself does not contain backslashes and begins
18389 # with a dollar sign (not a hyphen), so the echo should work correctly.
18390 lt_compile=`echo "$ac_compile" | $SED \
18391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18393 -e 's:$: $lt_compiler_flag:'`
18394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18395 (eval "$lt_compile" 2>out/conftest.err)
18396 ac_status=$?
18397 cat out/conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18400 then
18401 # The compiler can only warn and ignore the option if not recognized
18402 # So say no if there are warnings
18403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18406 lt_cv_prog_compiler_c_o_CXX=yes
18407 fi
18408 fi
18409 chmod u+w . 2>&5
18410 $RM conftest*
18411 # SGI C++ compiler will create directory out/ii_files/ for
18412 # template instantiation
18413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18414 $RM out/* && rmdir out
18415 cd ..
18416 $RM -r conftest
18417 $RM conftest*
18418 ;;
18419 esac
18420 fi
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18422 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18423
18424
18425
18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18427 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18428 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18429 then :
18430 printf %s "(cached) " >&6
18431 else case e in #(
18432 e) lt_cv_prog_compiler_c_o_CXX=no
18433 $RM -r conftest 2>/dev/null
18434 mkdir conftest
18435 cd conftest
18436 mkdir out
18437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18438
18439 lt_compiler_flag="-o out/conftest2.$ac_objext"
18440 # Insert the option either (1) after the last *FLAGS variable, or
18441 # (2) before a word containing "conftest.", or (3) at the end.
18442 # Note that $ac_compile itself does not contain backslashes and begins
18443 # with a dollar sign (not a hyphen), so the echo should work correctly.
18444 lt_compile=`echo "$ac_compile" | $SED \
18445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18447 -e 's:$: $lt_compiler_flag:'`
18448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18449 (eval "$lt_compile" 2>out/conftest.err)
18450 ac_status=$?
18451 cat out/conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18454 then
18455 # The compiler can only warn and ignore the option if not recognized
18456 # So say no if there are warnings
18457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18460 lt_cv_prog_compiler_c_o_CXX=yes
18461 fi
18462 fi
18463 chmod u+w . 2>&5
18464 $RM conftest*
18465 # SGI C++ compiler will create directory out/ii_files/ for
18466 # template instantiation
18467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18468 $RM out/* && rmdir out
18469 cd ..
18470 $RM -r conftest
18471 $RM conftest*
18472 ;;
18473 esac
18474 fi
18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18476 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18477
18478
18479
18480
18481 hard_links=nottested
18482 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18483 # do not overwrite the value of need_locks provided by the user
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18485 printf %s "checking if we can lock with hard links... " >&6; }
18486 hard_links=yes
18487 $RM conftest*
18488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18489 touch conftest.a
18490 ln conftest.a conftest.b 2>&5 || hard_links=no
18491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18493 printf "%s\n" "$hard_links" >&6; }
18494 if test no = "$hard_links"; then
18495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18496 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18497 need_locks=warn
18498 fi
18499 else
18500 need_locks=no
18501 fi
18502
18503
18504
18505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18506 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18507
18508 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18509 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18510 case $host_os in
18511 aix[4-9]*)
18512 # If we're using GNU nm, then we don't want the "-C" option.
18513 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18514 # Without the "-l" option, or with the "-B" option, AIX nm treats
18515 # weak defined symbols like other global defined symbols, whereas
18516 # GNU nm marks them as "W".
18517 # While the 'weak' keyword is ignored in the Export File, we need
18518 # it in the Import File for the 'aix-soname' feature, so we have
18519 # to replace the "-B" option with "-P" for AIX nm.
18520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18521 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'
18522 else
18523 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'
18524 fi
18525 ;;
18526 pw32*)
18527 export_symbols_cmds_CXX=$ltdll_cmds
18528 ;;
18529 cygwin* | mingw* | windows* | cegcc*)
18530 case $cc_basename in
18531 cl* | icl*)
18532 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18533 ;;
18534 *)
18535 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'
18536 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18537 ;;
18538 esac
18539 ;;
18540 linux* | k*bsd*-gnu | gnu*)
18541 link_all_deplibs_CXX=no
18542 ;;
18543 *)
18544 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18545 ;;
18546 esac
18547
18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18549 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18550 test no = "$ld_shlibs_CXX" && can_build_shared=no
18551
18552 with_gnu_ld_CXX=$with_gnu_ld
18553
18554
18555
18556
18557
18558
18559 #
18560 # Do we need to explicitly link libc?
18561 #
18562 case "x$archive_cmds_need_lc_CXX" in
18563 x|xyes)
18564 # Assume -lc should be added
18565 archive_cmds_need_lc_CXX=yes
18566
18567 if test yes,yes = "$GCC,$enable_shared"; then
18568 case $archive_cmds_CXX in
18569 *'~'*)
18570 # FIXME: we may have to deal with multi-command sequences.
18571 ;;
18572 '$CC '*)
18573 # Test whether the compiler implicitly links with -lc since on some
18574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18575 # to ld, don't add -lc before -lgcc.
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18577 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18578 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18579 then :
18580 printf %s "(cached) " >&6
18581 else case e in #(
18582 e) $RM conftest*
18583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18584
18585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18586 (eval $ac_compile) 2>&5
18587 ac_status=$?
18588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18589 test $ac_status = 0; } 2>conftest.err; then
18590 soname=conftest
18591 lib=conftest
18592 libobjs=conftest.$ac_objext
18593 deplibs=
18594 wl=$lt_prog_compiler_wl_CXX
18595 pic_flag=$lt_prog_compiler_pic_CXX
18596 compiler_flags=-v
18597 linker_flags=-v
18598 verstring=
18599 output_objdir=.
18600 libname=conftest
18601 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18602 allow_undefined_flag_CXX=
18603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18604 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18605 ac_status=$?
18606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18607 test $ac_status = 0; }
18608 then
18609 lt_cv_archive_cmds_need_lc_CXX=no
18610 else
18611 lt_cv_archive_cmds_need_lc_CXX=yes
18612 fi
18613 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18614 else
18615 cat conftest.err 1>&5
18616 fi
18617 $RM conftest*
18618 ;;
18619 esac
18620 fi
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18622 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18623 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18624 ;;
18625 esac
18626 fi
18627 ;;
18628 esac
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18692 printf %s "checking dynamic linker characteristics... " >&6; }
18693
18694 library_names_spec=
18695 libname_spec='lib$name'
18696 soname_spec=
18697 shrext_cmds=.so
18698 postinstall_cmds=
18699 postuninstall_cmds=
18700 finish_cmds=
18701 finish_eval=
18702 shlibpath_var=
18703 shlibpath_overrides_runpath=unknown
18704 version_type=none
18705 dynamic_linker="$host_os ld.so"
18706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18707 need_lib_prefix=unknown
18708 hardcode_into_libs=no
18709
18710 # when you set need_version to no, make sure it does not cause -set_version
18711 # flags to be left without arguments
18712 need_version=unknown
18713
18714
18715
18716 case $host_os in
18717 aix3*)
18718 version_type=linux # correct to gnu/linux during the next big refactor
18719 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18720 shlibpath_var=LIBPATH
18721
18722 # AIX 3 has no versioning support, so we append a major version to the name.
18723 soname_spec='$libname$release$shared_ext$major'
18724 ;;
18725
18726 aix[4-9]*)
18727 version_type=linux # correct to gnu/linux during the next big refactor
18728 need_lib_prefix=no
18729 need_version=no
18730 hardcode_into_libs=yes
18731 if test ia64 = "$host_cpu"; then
18732 # AIX 5 supports IA64
18733 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18734 shlibpath_var=LD_LIBRARY_PATH
18735 else
18736 # With GCC up to 2.95.x, collect2 would create an import file
18737 # for dependence libraries. The import file would start with
18738 # the line '#! .'. This would cause the generated library to
18739 # depend on '.', always an invalid library. This was fixed in
18740 # development snapshots of GCC prior to 3.0.
18741 case $host_os in
18742 aix4 | aix4.[01] | aix4.[01].*)
18743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18744 echo ' yes '
18745 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18746 :
18747 else
18748 can_build_shared=no
18749 fi
18750 ;;
18751 esac
18752 # Using Import Files as archive members, it is possible to support
18753 # filename-based versioning of shared library archives on AIX. While
18754 # this would work for both with and without runtime linking, it will
18755 # prevent static linking of such archives. So we do filename-based
18756 # shared library versioning with .so extension only, which is used
18757 # when both runtime linking and shared linking is enabled.
18758 # Unfortunately, runtime linking may impact performance, so we do
18759 # not want this to be the default eventually. Also, we use the
18760 # versioned .so libs for executables only if there is the -brtl
18761 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18762 # To allow for filename-based versioning support, we need to create
18763 # libNAME.so.V as an archive file, containing:
18764 # *) an Import File, referring to the versioned filename of the
18765 # archive as well as the shared archive member, telling the
18766 # bitwidth (32 or 64) of that shared object, and providing the
18767 # list of exported symbols of that shared object, eventually
18768 # decorated with the 'weak' keyword
18769 # *) the shared object with the F_LOADONLY flag set, to really avoid
18770 # it being seen by the linker.
18771 # At run time we better use the real file rather than another symlink,
18772 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18773
18774 case $with_aix_soname,$aix_use_runtimelinking in
18775 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18776 # soname into executable. Probably we can add versioning support to
18777 # collect2, so additional links can be useful in future.
18778 aix,yes) # traditional libtool
18779 dynamic_linker='AIX unversionable lib.so'
18780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18781 # instead of lib<name>.a to let people know that these are not
18782 # typical AIX shared libraries.
18783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18784 ;;
18785 aix,no) # traditional AIX only
18786 dynamic_linker='AIX lib.a(lib.so.V)'
18787 # We preserve .a as extension for shared libraries through AIX4.2
18788 # and later when we are not doing run time linking.
18789 library_names_spec='$libname$release.a $libname.a'
18790 soname_spec='$libname$release$shared_ext$major'
18791 ;;
18792 svr4,*) # full svr4 only
18793 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18794 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18795 # We do not specify a path in Import Files, so LIBPATH fires.
18796 shlibpath_overrides_runpath=yes
18797 ;;
18798 *,yes) # both, prefer svr4
18799 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18800 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18801 # unpreferred sharedlib libNAME.a needs extra handling
18802 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"'
18803 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"'
18804 # We do not specify a path in Import Files, so LIBPATH fires.
18805 shlibpath_overrides_runpath=yes
18806 ;;
18807 *,no) # both, prefer aix
18808 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18809 library_names_spec='$libname$release.a $libname.a'
18810 soname_spec='$libname$release$shared_ext$major'
18811 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18812 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)'
18813 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"'
18814 ;;
18815 esac
18816 shlibpath_var=LIBPATH
18817 fi
18818 ;;
18819
18820 amigaos*)
18821 case $host_cpu in
18822 powerpc)
18823 # Since July 2007 AmigaOS4 officially supports .so libraries.
18824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18826 ;;
18827 m68k)
18828 library_names_spec='$libname.ixlibrary $libname.a'
18829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18830 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'
18831 ;;
18832 esac
18833 ;;
18834
18835 beos*)
18836 library_names_spec='$libname$shared_ext'
18837 dynamic_linker="$host_os ld.so"
18838 shlibpath_var=LIBRARY_PATH
18839 ;;
18840
18841 bsdi[45]*)
18842 version_type=linux # correct to gnu/linux during the next big refactor
18843 need_version=no
18844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18845 soname_spec='$libname$release$shared_ext$major'
18846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18847 shlibpath_var=LD_LIBRARY_PATH
18848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18850 # the default ld.so.conf also contains /usr/contrib/lib and
18851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18852 # libtool to hard-code these into programs
18853 ;;
18854
18855 cygwin* | mingw* | windows* | pw32* | cegcc*)
18856 version_type=windows
18857 shrext_cmds=.dll
18858 need_version=no
18859 need_lib_prefix=no
18860
18861 case $GCC,$cc_basename in
18862 yes,*)
18863 # gcc
18864 library_names_spec='$libname.dll.a'
18865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18866 # If user builds GCC with multilib enabled,
18867 # it should just install on $(libdir)
18868 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18869 if test xyes = x"$multilib"; then
18870 postinstall_cmds='base_file=`basename \$file`~
18871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18872 dldir=$destdir/`dirname \$dlpath`~
18873 $install_prog $dir/$dlname $destdir/$dlname~
18874 chmod a+x $destdir/$dlname~
18875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18876 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18877 fi'
18878 else
18879 postinstall_cmds='base_file=`basename \$file`~
18880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18881 dldir=$destdir/`dirname \$dlpath`~
18882 test -d \$dldir || mkdir -p \$dldir~
18883 $install_prog $dir/$dlname \$dldir/$dlname~
18884 chmod a+x \$dldir/$dlname~
18885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18887 fi'
18888 fi
18889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18890 dlpath=$dir/\$dldll~
18891 $RM \$dlpath'
18892 shlibpath_overrides_runpath=yes
18893
18894 case $host_os in
18895 cygwin*)
18896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18897 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18898
18899 ;;
18900 mingw* | windows* | cegcc*)
18901 # MinGW DLLs use traditional 'lib' prefix
18902 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18903 ;;
18904 pw32*)
18905 # pw32 DLLs use 'pw' prefix rather than 'lib'
18906 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18907 ;;
18908 esac
18909 dynamic_linker='Win32 ld.exe'
18910 ;;
18911
18912 *,cl* | *,icl*)
18913 # Native MSVC or ICC
18914 libname_spec='$name'
18915 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18916 library_names_spec='$libname.dll.lib'
18917
18918 case $build_os in
18919 mingw* | windows*)
18920 sys_lib_search_path_spec=
18921 lt_save_ifs=$IFS
18922 IFS=';'
18923 for lt_path in $LIB
18924 do
18925 IFS=$lt_save_ifs
18926 # Let DOS variable expansion print the short 8.3 style file name.
18927 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18928 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18929 done
18930 IFS=$lt_save_ifs
18931 # Convert to MSYS style.
18932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18933 ;;
18934 cygwin*)
18935 # Convert to unix form, then to dos form, then back to unix form
18936 # but this time dos style (no spaces!) so that the unix form looks
18937 # like /cygdrive/c/PROGRA~1:/cygdr...
18938 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18939 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18940 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18941 ;;
18942 *)
18943 sys_lib_search_path_spec=$LIB
18944 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18945 # It is most probably a Windows format PATH.
18946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18947 else
18948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18949 fi
18950 # FIXME: find the short name or the path components, as spaces are
18951 # common. (e.g. "Program Files" -> "PROGRA~1")
18952 ;;
18953 esac
18954
18955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18956 postinstall_cmds='base_file=`basename \$file`~
18957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18958 dldir=$destdir/`dirname \$dlpath`~
18959 test -d \$dldir || mkdir -p \$dldir~
18960 $install_prog $dir/$dlname \$dldir/$dlname'
18961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18962 dlpath=$dir/\$dldll~
18963 $RM \$dlpath'
18964 shlibpath_overrides_runpath=yes
18965 dynamic_linker='Win32 link.exe'
18966 ;;
18967
18968 *)
18969 # Assume MSVC and ICC wrapper
18970 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18971 dynamic_linker='Win32 ld.exe'
18972 ;;
18973 esac
18974 # FIXME: first we should search . and the directory the executable is in
18975 shlibpath_var=PATH
18976 ;;
18977
18978 darwin* | rhapsody*)
18979 dynamic_linker="$host_os dyld"
18980 version_type=darwin
18981 need_lib_prefix=no
18982 need_version=no
18983 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18984 soname_spec='$libname$release$major$shared_ext'
18985 shlibpath_overrides_runpath=yes
18986 shlibpath_var=DYLD_LIBRARY_PATH
18987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18988
18989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18990 ;;
18991
18992 dgux*)
18993 version_type=linux # correct to gnu/linux during the next big refactor
18994 need_lib_prefix=no
18995 need_version=no
18996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18997 soname_spec='$libname$release$shared_ext$major'
18998 shlibpath_var=LD_LIBRARY_PATH
18999 ;;
19000
19001 freebsd* | dragonfly* | midnightbsd*)
19002 # DragonFly does not have aout. When/if they implement a new
19003 # versioning mechanism, adjust this.
19004 if test -x /usr/bin/objformat; then
19005 objformat=`/usr/bin/objformat`
19006 else
19007 case $host_os in
19008 freebsd[23].*) objformat=aout ;;
19009 *) objformat=elf ;;
19010 esac
19011 fi
19012 version_type=freebsd-$objformat
19013 case $version_type in
19014 freebsd-elf*)
19015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19016 soname_spec='$libname$release$shared_ext$major'
19017 need_version=no
19018 need_lib_prefix=no
19019 ;;
19020 freebsd-*)
19021 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19022 need_version=yes
19023 ;;
19024 esac
19025 case $host_cpu in
19026 powerpc64)
19027 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19028 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19031 int test_pointer_size[sizeof (void *) - 5];
19032
19033 _ACEOF
19034 if ac_fn_cxx_try_compile "$LINENO"
19035 then :
19036 shlibpath_var=LD_LIBRARY_PATH
19037 else case e in #(
19038 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19039 esac
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19042 ;;
19043 *)
19044 shlibpath_var=LD_LIBRARY_PATH
19045 ;;
19046 esac
19047 case $host_os in
19048 freebsd2.*)
19049 shlibpath_overrides_runpath=yes
19050 ;;
19051 freebsd3.[01]* | freebsdelf3.[01]*)
19052 shlibpath_overrides_runpath=yes
19053 hardcode_into_libs=yes
19054 ;;
19055 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19056 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19057 shlibpath_overrides_runpath=no
19058 hardcode_into_libs=yes
19059 ;;
19060 *) # from 4.6 on, and DragonFly
19061 shlibpath_overrides_runpath=yes
19062 hardcode_into_libs=yes
19063 ;;
19064 esac
19065 ;;
19066
19067 haiku*)
19068 version_type=linux # correct to gnu/linux during the next big refactor
19069 need_lib_prefix=no
19070 need_version=no
19071 dynamic_linker="$host_os runtime_loader"
19072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19073 soname_spec='$libname$release$shared_ext$major'
19074 shlibpath_var=LIBRARY_PATH
19075 shlibpath_overrides_runpath=no
19076 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19077 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19078 hardcode_into_libs=no
19079 ;;
19080
19081 hpux9* | hpux10* | hpux11*)
19082 # Give a soname corresponding to the major version so that dld.sl refuses to
19083 # link against other versions.
19084 version_type=sunos
19085 need_lib_prefix=no
19086 need_version=no
19087 case $host_cpu in
19088 ia64*)
19089 shrext_cmds='.so'
19090 hardcode_into_libs=yes
19091 dynamic_linker="$host_os dld.so"
19092 shlibpath_var=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19095 soname_spec='$libname$release$shared_ext$major'
19096 if test 32 = "$HPUX_IA64_MODE"; then
19097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19098 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19099 else
19100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19101 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19102 fi
19103 ;;
19104 hppa*64*)
19105 shrext_cmds='.sl'
19106 hardcode_into_libs=yes
19107 dynamic_linker="$host_os dld.sl"
19108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19111 soname_spec='$libname$release$shared_ext$major'
19112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19114 ;;
19115 *)
19116 shrext_cmds='.sl'
19117 dynamic_linker="$host_os dld.sl"
19118 shlibpath_var=SHLIB_PATH
19119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19121 soname_spec='$libname$release$shared_ext$major'
19122 ;;
19123 esac
19124 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19125 postinstall_cmds='chmod 555 $lib'
19126 # or fails outright, so override atomically:
19127 install_override_mode=555
19128 ;;
19129
19130 interix[3-9]*)
19131 version_type=linux # correct to gnu/linux during the next big refactor
19132 need_lib_prefix=no
19133 need_version=no
19134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19135 soname_spec='$libname$release$shared_ext$major'
19136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 shlibpath_overrides_runpath=no
19139 hardcode_into_libs=yes
19140 ;;
19141
19142 irix5* | irix6* | nonstopux*)
19143 case $host_os in
19144 nonstopux*) version_type=nonstopux ;;
19145 *)
19146 if test yes = "$lt_cv_prog_gnu_ld"; then
19147 version_type=linux # correct to gnu/linux during the next big refactor
19148 else
19149 version_type=irix
19150 fi ;;
19151 esac
19152 need_lib_prefix=no
19153 need_version=no
19154 soname_spec='$libname$release$shared_ext$major'
19155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19156 case $host_os in
19157 irix5* | nonstopux*)
19158 libsuff= shlibsuff=
19159 ;;
19160 *)
19161 case $LD in # libtool.m4 will add one of these switches to LD
19162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19163 libsuff= shlibsuff= libmagic=32-bit;;
19164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19165 libsuff=32 shlibsuff=N32 libmagic=N32;;
19166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19168 *) libsuff= shlibsuff= libmagic=never-match;;
19169 esac
19170 ;;
19171 esac
19172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19173 shlibpath_overrides_runpath=no
19174 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19175 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19176 hardcode_into_libs=yes
19177 ;;
19178
19179 # No shared lib support for Linux oldld, aout, or coff.
19180 linux*oldld* | linux*aout* | linux*coff*)
19181 dynamic_linker=no
19182 ;;
19183
19184 linux*android*)
19185 version_type=none # Android doesn't support versioned libraries.
19186 need_lib_prefix=no
19187 need_version=no
19188 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19189 soname_spec='$libname$release$shared_ext'
19190 finish_cmds=
19191 shlibpath_var=LD_LIBRARY_PATH
19192 shlibpath_overrides_runpath=yes
19193
19194 # This implies no fast_install, which is unacceptable.
19195 # Some rework will be needed to allow for fast_install
19196 # before this can be enabled.
19197 hardcode_into_libs=yes
19198
19199 dynamic_linker='Android linker'
19200 # -rpath works at least for libraries that are not overridden by
19201 # libraries installed in system locations.
19202 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19203 ;;
19204
19205 # This must be glibc/ELF.
19206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19207 version_type=linux # correct to gnu/linux during the next big refactor
19208 need_lib_prefix=no
19209 need_version=no
19210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19211 soname_spec='$libname$release$shared_ext$major'
19212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=no
19215
19216 # Some binutils ld are patched to set DT_RUNPATH
19217 if test ${lt_cv_shlibpath_overrides_runpath+y}
19218 then :
19219 printf %s "(cached) " >&6
19220 else case e in #(
19221 e) lt_cv_shlibpath_overrides_runpath=no
19222 save_LDFLAGS=$LDFLAGS
19223 save_libdir=$libdir
19224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228
19229 int
19230 main (void)
19231 {
19232
19233 ;
19234 return 0;
19235 }
19236 _ACEOF
19237 if ac_fn_cxx_try_link "$LINENO"
19238 then :
19239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19240 then :
19241 lt_cv_shlibpath_overrides_runpath=yes
19242 fi
19243 fi
19244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19245 conftest$ac_exeext conftest.$ac_ext
19246 LDFLAGS=$save_LDFLAGS
19247 libdir=$save_libdir
19248 ;;
19249 esac
19250 fi
19251
19252 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19253
19254 # This implies no fast_install, which is unacceptable.
19255 # Some rework will be needed to allow for fast_install
19256 # before this can be enabled.
19257 hardcode_into_libs=yes
19258
19259 # Ideally, we could use ldconfig to report *all* directories which are
19260 # searched for libraries, however this is still not possible. Aside from not
19261 # being certain /sbin/ldconfig is available, command
19262 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19263 # even though it is searched at run-time. Try to do the best guess by
19264 # appending ld.so.conf contents (and includes) to the search path.
19265 if test -f /etc/ld.so.conf; then
19266 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' ' '`
19267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19268 fi
19269
19270 # We used to test for /lib/ld.so.1 and disable shared libraries on
19271 # powerpc, because MkLinux only supported shared libraries with the
19272 # GNU dynamic linker. Since this was broken with cross compilers,
19273 # most powerpc-linux boxes support dynamic linking these days and
19274 # people can always --disable-shared, the test was removed, and we
19275 # assume the GNU/Linux dynamic linker is in use.
19276 dynamic_linker='GNU/Linux ld.so'
19277 ;;
19278
19279 netbsdelf*-gnu)
19280 version_type=linux
19281 need_lib_prefix=no
19282 need_version=no
19283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19284 soname_spec='$libname$release$shared_ext$major'
19285 shlibpath_var=LD_LIBRARY_PATH
19286 shlibpath_overrides_runpath=no
19287 hardcode_into_libs=yes
19288 dynamic_linker='NetBSD ld.elf_so'
19289 ;;
19290
19291 netbsdelf*-gnu)
19292 version_type=linux
19293 need_lib_prefix=no
19294 need_version=no
19295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19296 soname_spec='${libname}${release}${shared_ext}$major'
19297 shlibpath_var=LD_LIBRARY_PATH
19298 shlibpath_overrides_runpath=no
19299 hardcode_into_libs=yes
19300 dynamic_linker='NetBSD ld.elf_so'
19301 ;;
19302
19303 netbsd*)
19304 version_type=sunos
19305 need_lib_prefix=no
19306 need_version=no
19307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19308 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19310 dynamic_linker='NetBSD (a.out) ld.so'
19311 else
19312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19313 soname_spec='$libname$release$shared_ext$major'
19314 dynamic_linker='NetBSD ld.elf_so'
19315 fi
19316 shlibpath_var=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath=yes
19318 hardcode_into_libs=yes
19319 ;;
19320
19321 *-mlibc)
19322 version_type=linux # correct to gnu/linux during the next big refactor
19323 need_lib_prefix=no
19324 need_version=no
19325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19326 soname_spec='$libname$release$shared_ext$major'
19327 dynamic_linker='mlibc ld.so'
19328 shlibpath_var=LD_LIBRARY_PATH
19329 shlibpath_overrides_runpath=no
19330 hardcode_into_libs=yes
19331 ;;
19332
19333 newsos6)
19334 version_type=linux # correct to gnu/linux during the next big refactor
19335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19336 shlibpath_var=LD_LIBRARY_PATH
19337 shlibpath_overrides_runpath=yes
19338 ;;
19339
19340 *nto* | *qnx*)
19341 version_type=qnx
19342 need_lib_prefix=no
19343 need_version=no
19344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19345 soname_spec='$libname$release$shared_ext$major'
19346 shlibpath_var=LD_LIBRARY_PATH
19347 shlibpath_overrides_runpath=no
19348 hardcode_into_libs=yes
19349 dynamic_linker='ldqnx.so'
19350 ;;
19351
19352 openbsd*)
19353 version_type=sunos
19354 sys_lib_dlsearch_path_spec=/usr/lib
19355 need_lib_prefix=no
19356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19357 need_version=no
19358 else
19359 need_version=yes
19360 fi
19361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19363 shlibpath_var=LD_LIBRARY_PATH
19364 shlibpath_overrides_runpath=yes
19365 ;;
19366
19367 os2*)
19368 libname_spec='$name'
19369 version_type=windows
19370 shrext_cmds=.dll
19371 need_version=no
19372 need_lib_prefix=no
19373 # OS/2 can only load a DLL with a base name of 8 characters or less.
19374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19375 v=$($ECHO $release$versuffix | tr -d .-);
19376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19377 $ECHO $n$v`$shared_ext'
19378 library_names_spec='${libname}_dll.$libext'
19379 dynamic_linker='OS/2 ld.exe'
19380 shlibpath_var=BEGINLIBPATH
19381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19383 postinstall_cmds='base_file=`basename \$file`~
19384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19385 dldir=$destdir/`dirname \$dlpath`~
19386 test -d \$dldir || mkdir -p \$dldir~
19387 $install_prog $dir/$dlname \$dldir/$dlname~
19388 chmod a+x \$dldir/$dlname~
19389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19391 fi'
19392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19393 dlpath=$dir/\$dldll~
19394 $RM \$dlpath'
19395 ;;
19396
19397 osf3* | osf4* | osf5*)
19398 version_type=osf
19399 need_lib_prefix=no
19400 need_version=no
19401 soname_spec='$libname$release$shared_ext$major'
19402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19403 shlibpath_var=LD_LIBRARY_PATH
19404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19406 ;;
19407
19408 rdos*)
19409 dynamic_linker=no
19410 ;;
19411
19412 serenity*)
19413 version_type=linux # correct to gnu/linux during the next big refactor
19414 need_lib_prefix=no
19415 need_version=no
19416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19417 soname_spec='$libname$release$shared_ext$major'
19418 shlibpath_var=LD_LIBRARY_PATH
19419 shlibpath_overrides_runpath=no
19420 dynamic_linker='SerenityOS LibELF'
19421 ;;
19422
19423 solaris*)
19424 version_type=linux # correct to gnu/linux during the next big refactor
19425 need_lib_prefix=no
19426 need_version=no
19427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19428 soname_spec='$libname$release$shared_ext$major'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 shlibpath_overrides_runpath=yes
19431 hardcode_into_libs=yes
19432 # ldd complains unless libraries are executable
19433 postinstall_cmds='chmod +x $lib'
19434 ;;
19435
19436 sunos4*)
19437 version_type=sunos
19438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19440 shlibpath_var=LD_LIBRARY_PATH
19441 shlibpath_overrides_runpath=yes
19442 if test yes = "$with_gnu_ld"; then
19443 need_lib_prefix=no
19444 fi
19445 need_version=yes
19446 ;;
19447
19448 sysv4 | sysv4.3*)
19449 version_type=linux # correct to gnu/linux during the next big refactor
19450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19451 soname_spec='$libname$release$shared_ext$major'
19452 shlibpath_var=LD_LIBRARY_PATH
19453 case $host_vendor in
19454 sni)
19455 shlibpath_overrides_runpath=no
19456 need_lib_prefix=no
19457 runpath_var=LD_RUN_PATH
19458 ;;
19459 siemens)
19460 need_lib_prefix=no
19461 ;;
19462 motorola)
19463 need_lib_prefix=no
19464 need_version=no
19465 shlibpath_overrides_runpath=no
19466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19467 ;;
19468 esac
19469 ;;
19470
19471 sysv4*MP*)
19472 if test -d /usr/nec; then
19473 version_type=linux # correct to gnu/linux during the next big refactor
19474 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19475 soname_spec='$libname$shared_ext.$major'
19476 shlibpath_var=LD_LIBRARY_PATH
19477 fi
19478 ;;
19479
19480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19481 version_type=sco
19482 need_lib_prefix=no
19483 need_version=no
19484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19485 soname_spec='$libname$release$shared_ext$major'
19486 shlibpath_var=LD_LIBRARY_PATH
19487 shlibpath_overrides_runpath=yes
19488 hardcode_into_libs=yes
19489 if test yes = "$with_gnu_ld"; then
19490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19491 else
19492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19493 case $host_os in
19494 sco3.2v5*)
19495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19496 ;;
19497 esac
19498 fi
19499 sys_lib_dlsearch_path_spec='/usr/lib'
19500 ;;
19501
19502 tpf*)
19503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19504 version_type=linux # correct to gnu/linux during the next big refactor
19505 need_lib_prefix=no
19506 need_version=no
19507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19508 shlibpath_var=LD_LIBRARY_PATH
19509 shlibpath_overrides_runpath=no
19510 hardcode_into_libs=yes
19511 ;;
19512
19513 uts4*)
19514 version_type=linux # correct to gnu/linux during the next big refactor
19515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19516 soname_spec='$libname$release$shared_ext$major'
19517 shlibpath_var=LD_LIBRARY_PATH
19518 ;;
19519
19520 emscripten*)
19521 version_type=none
19522 need_lib_prefix=no
19523 need_version=no
19524 library_names_spec='$libname$release$shared_ext'
19525 soname_spec='$libname$release$shared_ext'
19526 finish_cmds=
19527 dynamic_linker="Emscripten linker"
19528 lt_prog_compiler_wl_CXX=
19529 lt_prog_compiler_pic_CXX=
19530 lt_prog_compiler_static_CXX=
19531
19532
19533 # C++ specific cases for pic, static, wl, etc.
19534 if test yes = "$GXX"; then
19535 lt_prog_compiler_wl_CXX='-Wl,'
19536 lt_prog_compiler_static_CXX='-static'
19537
19538 case $host_os in
19539 aix*)
19540 # All AIX code is PIC.
19541 if test ia64 = "$host_cpu"; then
19542 # AIX 5 now supports IA64 processor
19543 lt_prog_compiler_static_CXX='-Bstatic'
19544 fi
19545 lt_prog_compiler_pic_CXX='-fPIC'
19546 ;;
19547
19548 amigaos*)
19549 case $host_cpu in
19550 powerpc)
19551 # see comment about AmigaOS4 .so support
19552 lt_prog_compiler_pic_CXX='-fPIC'
19553 ;;
19554 m68k)
19555 # FIXME: we need at least 68020 code to build shared libraries, but
19556 # adding the '-m68020' flag to GCC prevents building anything better,
19557 # like '-m68040'.
19558 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19559 ;;
19560 esac
19561 ;;
19562
19563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19564 # PIC is the default for these OSes.
19565 ;;
19566 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19567 # This hack is so that the source file can tell whether it is being
19568 # built for inclusion in a dll (and should export symbols for example).
19569 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19570 # (--disable-auto-import) libraries
19571 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19572 case $host_os in
19573 os2*)
19574 lt_prog_compiler_static_CXX='$wl-static'
19575 ;;
19576 esac
19577 ;;
19578 darwin* | rhapsody*)
19579 # PIC is the default on this platform
19580 # Common symbols not allowed in MH_DYLIB files
19581 lt_prog_compiler_pic_CXX='-fno-common'
19582 ;;
19583 *djgpp*)
19584 # DJGPP does not support shared libraries at all
19585 lt_prog_compiler_pic_CXX=
19586 ;;
19587 haiku*)
19588 # PIC is the default for Haiku.
19589 # The "-static" flag exists, but is broken.
19590 lt_prog_compiler_static_CXX=
19591 ;;
19592 interix[3-9]*)
19593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19594 # Instead, we relocate shared libraries at runtime.
19595 ;;
19596 sysv4*MP*)
19597 if test -d /usr/nec; then
19598 lt_prog_compiler_pic_CXX=-Kconform_pic
19599 fi
19600 ;;
19601 hpux*)
19602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19604 # sets the default TLS model and affects inlining.
19605 case $host_cpu in
19606 hppa*64*)
19607 ;;
19608 *)
19609 lt_prog_compiler_pic_CXX='-fPIC'
19610 ;;
19611 esac
19612 ;;
19613 *qnx* | *nto*)
19614 # QNX uses GNU C++, but need to define -shared option too, otherwise
19615 # it will coredump.
19616 lt_prog_compiler_pic_CXX='-fPIC -shared'
19617 ;;
19618 *)
19619 lt_prog_compiler_pic_CXX='-fPIC'
19620 ;;
19621 esac
19622 else
19623 case $host_os in
19624 aix[4-9]*)
19625 # All AIX code is PIC.
19626 if test ia64 = "$host_cpu"; then
19627 # AIX 5 now supports IA64 processor
19628 lt_prog_compiler_static_CXX='-Bstatic'
19629 else
19630 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19631 fi
19632 ;;
19633 chorus*)
19634 case $cc_basename in
19635 cxch68*)
19636 # Green Hills C++ Compiler
19637 # _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"
19638 ;;
19639 esac
19640 ;;
19641 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19642 # This hack is so that the source file can tell whether it is being
19643 # built for inclusion in a dll (and should export symbols for example).
19644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19645 ;;
19646 dgux*)
19647 case $cc_basename in
19648 ec++*)
19649 lt_prog_compiler_pic_CXX='-KPIC'
19650 ;;
19651 ghcx*)
19652 # Green Hills C++ Compiler
19653 lt_prog_compiler_pic_CXX='-pic'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
19659 freebsd* | dragonfly* | midnightbsd*)
19660 # FreeBSD uses GNU C++
19661 ;;
19662 hpux9* | hpux10* | hpux11*)
19663 case $cc_basename in
19664 CC*)
19665 lt_prog_compiler_wl_CXX='-Wl,'
19666 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19667 if test ia64 != "$host_cpu"; then
19668 lt_prog_compiler_pic_CXX='+Z'
19669 fi
19670 ;;
19671 aCC*)
19672 lt_prog_compiler_wl_CXX='-Wl,'
19673 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19674 case $host_cpu in
19675 hppa*64*|ia64*)
19676 # +Z the default
19677 ;;
19678 *)
19679 lt_prog_compiler_pic_CXX='+Z'
19680 ;;
19681 esac
19682 ;;
19683 *)
19684 ;;
19685 esac
19686 ;;
19687 interix*)
19688 # This is c89, which is MS Visual C++ (no shared libs)
19689 # Anyone wants to do a port?
19690 ;;
19691 irix5* | irix6* | nonstopux*)
19692 case $cc_basename in
19693 CC*)
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_static_CXX='-non_shared'
19696 # CC pic flag -KPIC is the default.
19697 ;;
19698 *)
19699 ;;
19700 esac
19701 ;;
19702 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19703 case $cc_basename in
19704 KCC*)
19705 # KAI C++ Compiler
19706 lt_prog_compiler_wl_CXX='--backend -Wl,'
19707 lt_prog_compiler_pic_CXX='-fPIC'
19708 ;;
19709 ecpc* )
19710 # old Intel C++ for x86_64, which still supported -KPIC.
19711 lt_prog_compiler_wl_CXX='-Wl,'
19712 lt_prog_compiler_pic_CXX='-KPIC'
19713 lt_prog_compiler_static_CXX='-static'
19714 ;;
19715 icpc* )
19716 # Intel C++, used to be incompatible with GCC.
19717 # ICC 10 doesn't accept -KPIC any more.
19718 lt_prog_compiler_wl_CXX='-Wl,'
19719 lt_prog_compiler_pic_CXX='-fPIC'
19720 lt_prog_compiler_static_CXX='-static'
19721 ;;
19722 pgCC* | pgcpp*)
19723 # Portland Group C++ compiler
19724 lt_prog_compiler_wl_CXX='-Wl,'
19725 lt_prog_compiler_pic_CXX='-fpic'
19726 lt_prog_compiler_static_CXX='-Bstatic'
19727 ;;
19728 cxx*)
19729 # Compaq C++
19730 # Make sure the PIC flag is empty. It appears that all Alpha
19731 # Linux and Compaq Tru64 Unix objects are PIC.
19732 lt_prog_compiler_pic_CXX=
19733 lt_prog_compiler_static_CXX='-non_shared'
19734 ;;
19735 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19736 # IBM XL 8.0, 9.0 on PPC and BlueGene
19737 lt_prog_compiler_wl_CXX='-Wl,'
19738 lt_prog_compiler_pic_CXX='-qpic'
19739 lt_prog_compiler_static_CXX='-qstaticlink'
19740 ;;
19741 *)
19742 case `$CC -V 2>&1 | $SED 5q` in
19743 *Sun\ C*)
19744 # Sun C++ 5.9
19745 lt_prog_compiler_pic_CXX='-KPIC'
19746 lt_prog_compiler_static_CXX='-Bstatic'
19747 lt_prog_compiler_wl_CXX='-Qoption ld '
19748 ;;
19749 esac
19750 ;;
19751 esac
19752 ;;
19753 lynxos*)
19754 ;;
19755 m88k*)
19756 ;;
19757 mvs*)
19758 case $cc_basename in
19759 cxx*)
19760 lt_prog_compiler_pic_CXX='-W c,exportall'
19761 ;;
19762 *)
19763 ;;
19764 esac
19765 ;;
19766 netbsd* | netbsdelf*-gnu)
19767 ;;
19768 *-mlibc)
19769 ;;
19770 *qnx* | *nto*)
19771 # QNX uses GNU C++, but need to define -shared option too, otherwise
19772 # it will coredump.
19773 lt_prog_compiler_pic_CXX='-fPIC -shared'
19774 ;;
19775 osf3* | osf4* | osf5*)
19776 case $cc_basename in
19777 KCC*)
19778 lt_prog_compiler_wl_CXX='--backend -Wl,'
19779 ;;
19780 RCC*)
19781 # Rational C++ 2.4.1
19782 lt_prog_compiler_pic_CXX='-pic'
19783 ;;
19784 cxx*)
19785 # Digital/Compaq C++
19786 lt_prog_compiler_wl_CXX='-Wl,'
19787 # Make sure the PIC flag is empty. It appears that all Alpha
19788 # Linux and Compaq Tru64 Unix objects are PIC.
19789 lt_prog_compiler_pic_CXX=
19790 lt_prog_compiler_static_CXX='-non_shared'
19791 ;;
19792 *)
19793 ;;
19794 esac
19795 ;;
19796 psos*)
19797 ;;
19798 serenity*)
19799 ;;
19800 solaris*)
19801 case $cc_basename in
19802 CC* | sunCC*)
19803 # Sun C++ 4.2, 5.x and Centerline C++
19804 lt_prog_compiler_pic_CXX='-KPIC'
19805 lt_prog_compiler_static_CXX='-Bstatic'
19806 lt_prog_compiler_wl_CXX='-Qoption ld '
19807 ;;
19808 gcx*)
19809 # Green Hills C++ Compiler
19810 lt_prog_compiler_pic_CXX='-PIC'
19811 ;;
19812 *)
19813 ;;
19814 esac
19815 ;;
19816 sunos4*)
19817 case $cc_basename in
19818 CC*)
19819 # Sun C++ 4.x
19820 lt_prog_compiler_pic_CXX='-pic'
19821 lt_prog_compiler_static_CXX='-Bstatic'
19822 ;;
19823 lcc*)
19824 # Lucid
19825 lt_prog_compiler_pic_CXX='-pic'
19826 ;;
19827 *)
19828 ;;
19829 esac
19830 ;;
19831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19832 case $cc_basename in
19833 CC*)
19834 lt_prog_compiler_wl_CXX='-Wl,'
19835 lt_prog_compiler_pic_CXX='-KPIC'
19836 lt_prog_compiler_static_CXX='-Bstatic'
19837 ;;
19838 esac
19839 ;;
19840 tandem*)
19841 case $cc_basename in
19842 NCC*)
19843 # NonStop-UX NCC 3.20
19844 lt_prog_compiler_pic_CXX='-KPIC'
19845 ;;
19846 *)
19847 ;;
19848 esac
19849 ;;
19850 vxworks*)
19851 ;;
19852 *)
19853 lt_prog_compiler_can_build_shared_CXX=no
19854 ;;
19855 esac
19856 fi
19857
19858 case $host_os in
19859 # For platforms that do not support PIC, -DPIC is meaningless:
19860 *djgpp*)
19861 lt_prog_compiler_pic_CXX=
19862 ;;
19863 *)
19864 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19865 ;;
19866 esac
19867
19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19869 printf %s "checking for $compiler option to produce PIC... " >&6; }
19870 if test ${lt_cv_prog_compiler_pic_CXX+y}
19871 then :
19872 printf %s "(cached) " >&6
19873 else case e in #(
19874 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19875 esac
19876 fi
19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19878 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19879 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19880
19881 #
19882 # Check to make sure the PIC flag actually works.
19883 #
19884 if test -n "$lt_prog_compiler_pic_CXX"; then
19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19886 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19887 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19888 then :
19889 printf %s "(cached) " >&6
19890 else case e in #(
19891 e) lt_cv_prog_compiler_pic_works_CXX=no
19892 ac_outfile=conftest.$ac_objext
19893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19894 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19895 # Insert the option either (1) after the last *FLAGS variable, or
19896 # (2) before a word containing "conftest.", or (3) at the end.
19897 # Note that $ac_compile itself does not contain backslashes and begins
19898 # with a dollar sign (not a hyphen), so the echo should work correctly.
19899 # The option is referenced via a variable to avoid confusing sed.
19900 lt_compile=`echo "$ac_compile" | $SED \
19901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19903 -e 's:$: $lt_compiler_flag:'`
19904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19905 (eval "$lt_compile" 2>conftest.err)
19906 ac_status=$?
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 if (exit $ac_status) && test -s "$ac_outfile"; then
19910 # The compiler can only warn and ignore the option if not recognized
19911 # So say no if there are warnings other than the usual output.
19912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19915 lt_cv_prog_compiler_pic_works_CXX=yes
19916 fi
19917 fi
19918 $RM conftest*
19919 ;;
19920 esac
19921 fi
19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19923 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19924
19925 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19926 case $lt_prog_compiler_pic_CXX in
19927 "" | " "*) ;;
19928 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19929 esac
19930 else
19931 lt_prog_compiler_pic_CXX=
19932 lt_prog_compiler_can_build_shared_CXX=no
19933 fi
19934
19935 fi
19936
19937
19938
19939
19940
19941 #
19942 # Check to make sure the static flag actually works.
19943 #
19944 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19946 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19947 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19948 then :
19949 printf %s "(cached) " >&6
19950 else case e in #(
19951 e) lt_cv_prog_compiler_static_works_CXX=no
19952 save_LDFLAGS=$LDFLAGS
19953 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19954 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19956 # The linker can only warn and ignore the option if not recognized
19957 # So say no if there are warnings
19958 if test -s conftest.err; then
19959 # Append any errors to the config.log.
19960 cat conftest.err 1>&5
19961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19963 if diff conftest.exp conftest.er2 >/dev/null; then
19964 lt_cv_prog_compiler_static_works_CXX=yes
19965 fi
19966 else
19967 lt_cv_prog_compiler_static_works_CXX=yes
19968 fi
19969 fi
19970 $RM -r conftest*
19971 LDFLAGS=$save_LDFLAGS
19972 ;;
19973 esac
19974 fi
19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19976 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19977
19978 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19979 :
19980 else
19981 lt_prog_compiler_static_CXX=
19982 fi
19983
19984
19985
19986 ='-fPIC'
19987 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19988 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'
19989 archive_cmds_need_lc_CXX=no
19990 no_undefined_flag_CXX=
19991 ;;
19992
19993 *)
19994 dynamic_linker=no
19995 ;;
19996 esac
19997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19998 printf "%s\n" "$dynamic_linker" >&6; }
19999 test no = "$dynamic_linker" && can_build_shared=no
20000
20001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20002 if test yes = "$GCC"; then
20003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20004 fi
20005
20006 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20007 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20008 fi
20009
20010 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20011 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20012 fi
20013
20014 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20015 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20016
20017 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20018 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20019
20020 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20021 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20063 printf %s "checking how to hardcode library paths into programs... " >&6; }
20064 hardcode_action_CXX=
20065 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20066 test -n "$runpath_var_CXX" ||
20067 test yes = "$hardcode_automatic_CXX"; then
20068
20069 # We can hardcode non-existent directories.
20070 if test no != "$hardcode_direct_CXX" &&
20071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20072 # have to relink, otherwise we might link with an installed library
20073 # when we should be linking with a yet-to-be-installed one
20074 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20075 test no != "$hardcode_minus_L_CXX"; then
20076 # Linking always hardcodes the temporary library directory.
20077 hardcode_action_CXX=relink
20078 else
20079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20080 hardcode_action_CXX=immediate
20081 fi
20082 else
20083 # We cannot hardcode anything, or else we can only hardcode existing
20084 # directories.
20085 hardcode_action_CXX=unsupported
20086 fi
20087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20088 printf "%s\n" "$hardcode_action_CXX" >&6; }
20089
20090 if test relink = "$hardcode_action_CXX" ||
20091 test yes = "$inherit_rpath_CXX"; then
20092 # Fast installation is not supported
20093 enable_fast_install=no
20094 elif test yes = "$shlibpath_overrides_runpath" ||
20095 test no = "$enable_shared"; then
20096 # Fast installation is not necessary
20097 enable_fast_install=needless
20098 fi
20099
20100
20101
20102
20103
20104
20105
20106 fi # test -n "$compiler"
20107
20108 CC=$lt_save_CC
20109 CFLAGS=$lt_save_CFLAGS
20110 LDCXX=$LD
20111 LD=$lt_save_LD
20112 GCC=$lt_save_GCC
20113 with_gnu_ld=$lt_save_with_gnu_ld
20114 lt_cv_path_LDCXX=$lt_cv_path_LD
20115 lt_cv_path_LD=$lt_save_path_LD
20116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20118 fi # test yes != "$_lt_caught_CXX_error"
20119
20120 ac_ext=cpp
20121 ac_cpp='$CXXCPP $CPPFLAGS'
20122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140 ac_config_commands="$ac_config_commands libtool"
20141
20142
20143
20144
20145 # Only expand once:
20146
20147
20148
20149
20150 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
20151 ac_ext=cpp
20152 ac_cpp='$CXXCPP $CPPFLAGS'
20153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20156 ac_success=no
20157
20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20159 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
20160 if test ${ax_cv_cxx_compile_cxx11+y}
20161 then :
20162 printf %s "(cached) " >&6
20163 else case e in #(
20164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20166
20167
20168 // If the compiler admits that it is not ready for C++11, why torture it?
20169 // Hopefully, this will speed up the test.
20170
20171 #ifndef __cplusplus
20172
20173 #error "This is not a C++ compiler"
20174
20175 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
20176 // only set it correctly if /Zc:__cplusplus is specified as well as a
20177 // /std:c++NN switch:
20178 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
20179 #elif __cplusplus < 201103L && !defined _MSC_VER
20180
20181 #error "This is not a C++11 compiler"
20182
20183 #else
20184
20185 namespace cxx11
20186 {
20187
20188 namespace test_static_assert
20189 {
20190
20191 template <typename T>
20192 struct check
20193 {
20194 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20195 };
20196
20197 }
20198
20199 namespace test_final_override
20200 {
20201
20202 struct Base
20203 {
20204 virtual ~Base() {}
20205 virtual void f() {}
20206 };
20207
20208 struct Derived : public Base
20209 {
20210 virtual ~Derived() override {}
20211 virtual void f() override {}
20212 };
20213
20214 }
20215
20216 namespace test_double_right_angle_brackets
20217 {
20218
20219 template < typename T >
20220 struct check {};
20221
20222 typedef check<void> single_type;
20223 typedef check<check<void>> double_type;
20224 typedef check<check<check<void>>> triple_type;
20225 typedef check<check<check<check<void>>>> quadruple_type;
20226
20227 }
20228
20229 namespace test_decltype
20230 {
20231
20232 int
20233 f()
20234 {
20235 int a = 1;
20236 decltype(a) b = 2;
20237 return a + b;
20238 }
20239
20240 }
20241
20242 namespace test_type_deduction
20243 {
20244
20245 template < typename T1, typename T2 >
20246 struct is_same
20247 {
20248 static const bool value = false;
20249 };
20250
20251 template < typename T >
20252 struct is_same<T, T>
20253 {
20254 static const bool value = true;
20255 };
20256
20257 template < typename T1, typename T2 >
20258 auto
20259 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20260 {
20261 return a1 + a2;
20262 }
20263
20264 int
20265 test(const int c, volatile int v)
20266 {
20267 static_assert(is_same<int, decltype(0)>::value == true, "");
20268 static_assert(is_same<int, decltype(c)>::value == false, "");
20269 static_assert(is_same<int, decltype(v)>::value == false, "");
20270 auto ac = c;
20271 auto av = v;
20272 auto sumi = ac + av + 'x';
20273 auto sumf = ac + av + 1.0;
20274 static_assert(is_same<int, decltype(ac)>::value == true, "");
20275 static_assert(is_same<int, decltype(av)>::value == true, "");
20276 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20277 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20278 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20279 return (sumf > 0.0) ? sumi : add(c, v);
20280 }
20281
20282 }
20283
20284 namespace test_noexcept
20285 {
20286
20287 int f() { return 0; }
20288 int g() noexcept { return 0; }
20289
20290 static_assert(noexcept(f()) == false, "");
20291 static_assert(noexcept(g()) == true, "");
20292
20293 }
20294
20295 namespace test_constexpr
20296 {
20297
20298 template < typename CharT >
20299 unsigned long constexpr
20300 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20301 {
20302 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20303 }
20304
20305 template < typename CharT >
20306 unsigned long constexpr
20307 strlen_c(const CharT *const s) noexcept
20308 {
20309 return strlen_c_r(s, 0UL);
20310 }
20311
20312 static_assert(strlen_c("") == 0UL, "");
20313 static_assert(strlen_c("1") == 1UL, "");
20314 static_assert(strlen_c("example") == 7UL, "");
20315 static_assert(strlen_c("another\0example") == 7UL, "");
20316
20317 }
20318
20319 namespace test_rvalue_references
20320 {
20321
20322 template < int N >
20323 struct answer
20324 {
20325 static constexpr int value = N;
20326 };
20327
20328 answer<1> f(int&) { return answer<1>(); }
20329 answer<2> f(const int&) { return answer<2>(); }
20330 answer<3> f(int&&) { return answer<3>(); }
20331
20332 void
20333 test()
20334 {
20335 int i = 0;
20336 const int c = 0;
20337 static_assert(decltype(f(i))::value == 1, "");
20338 static_assert(decltype(f(c))::value == 2, "");
20339 static_assert(decltype(f(0))::value == 3, "");
20340 }
20341
20342 }
20343
20344 namespace test_uniform_initialization
20345 {
20346
20347 struct test
20348 {
20349 static const int zero {};
20350 static const int one {1};
20351 };
20352
20353 static_assert(test::zero == 0, "");
20354 static_assert(test::one == 1, "");
20355
20356 }
20357
20358 namespace test_lambdas
20359 {
20360
20361 void
20362 test1()
20363 {
20364 auto lambda1 = [](){};
20365 auto lambda2 = lambda1;
20366 lambda1();
20367 lambda2();
20368 }
20369
20370 int
20371 test2()
20372 {
20373 auto a = [](int i, int j){ return i + j; }(1, 2);
20374 auto b = []() -> int { return '0'; }();
20375 auto c = [=](){ return a + b; }();
20376 auto d = [&](){ return c; }();
20377 auto e = [a, &b](int x) mutable {
20378 const auto identity = [](int y){ return y; };
20379 for (auto i = 0; i < a; ++i)
20380 a += b--;
20381 return x + identity(a + b);
20382 }(0);
20383 return a + b + c + d + e;
20384 }
20385
20386 int
20387 test3()
20388 {
20389 const auto nullary = [](){ return 0; };
20390 const auto unary = [](int x){ return x; };
20391 using nullary_t = decltype(nullary);
20392 using unary_t = decltype(unary);
20393 const auto higher1st = [](nullary_t f){ return f(); };
20394 const auto higher2nd = [unary](nullary_t f1){
20395 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20396 };
20397 return higher1st(nullary) + higher2nd(nullary)(unary);
20398 }
20399
20400 }
20401
20402 namespace test_variadic_templates
20403 {
20404
20405 template <int...>
20406 struct sum;
20407
20408 template <int N0, int... N1toN>
20409 struct sum<N0, N1toN...>
20410 {
20411 static constexpr auto value = N0 + sum<N1toN...>::value;
20412 };
20413
20414 template <>
20415 struct sum<>
20416 {
20417 static constexpr auto value = 0;
20418 };
20419
20420 static_assert(sum<>::value == 0, "");
20421 static_assert(sum<1>::value == 1, "");
20422 static_assert(sum<23>::value == 23, "");
20423 static_assert(sum<1, 2>::value == 3, "");
20424 static_assert(sum<5, 5, 11>::value == 21, "");
20425 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20426
20427 }
20428
20429 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20430 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20431 // because of this.
20432 namespace test_template_alias_sfinae
20433 {
20434
20435 struct foo {};
20436
20437 template<typename T>
20438 using member = typename T::member_type;
20439
20440 template<typename T>
20441 void func(...) {}
20442
20443 template<typename T>
20444 void func(member<T>*) {}
20445
20446 void test();
20447
20448 void test() { func<foo>(0); }
20449
20450 }
20451
20452 } // namespace cxx11
20453
20454 #endif // __cplusplus >= 201103L
20455
20456
20457
20458 _ACEOF
20459 if ac_fn_cxx_try_compile "$LINENO"
20460 then :
20461 ax_cv_cxx_compile_cxx11=yes
20462 else case e in #(
20463 e) ax_cv_cxx_compile_cxx11=no ;;
20464 esac
20465 fi
20466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20467 esac
20468 fi
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20470 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
20471 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20472 ac_success=yes
20473 fi
20474
20475 if test x$ac_success = xno; then
20476 for alternative in ${ax_cxx_compile_alternatives}; do
20477 switch="-std=gnu++${alternative}"
20478 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20480 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20481 if eval test \${$cachevar+y}
20482 then :
20483 printf %s "(cached) " >&6
20484 else case e in #(
20485 e) ac_save_CXX="$CXX"
20486 CXX="$CXX $switch"
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20489
20490
20491 // If the compiler admits that it is not ready for C++11, why torture it?
20492 // Hopefully, this will speed up the test.
20493
20494 #ifndef __cplusplus
20495
20496 #error "This is not a C++ compiler"
20497
20498 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
20499 // only set it correctly if /Zc:__cplusplus is specified as well as a
20500 // /std:c++NN switch:
20501 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
20502 #elif __cplusplus < 201103L && !defined _MSC_VER
20503
20504 #error "This is not a C++11 compiler"
20505
20506 #else
20507
20508 namespace cxx11
20509 {
20510
20511 namespace test_static_assert
20512 {
20513
20514 template <typename T>
20515 struct check
20516 {
20517 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20518 };
20519
20520 }
20521
20522 namespace test_final_override
20523 {
20524
20525 struct Base
20526 {
20527 virtual ~Base() {}
20528 virtual void f() {}
20529 };
20530
20531 struct Derived : public Base
20532 {
20533 virtual ~Derived() override {}
20534 virtual void f() override {}
20535 };
20536
20537 }
20538
20539 namespace test_double_right_angle_brackets
20540 {
20541
20542 template < typename T >
20543 struct check {};
20544
20545 typedef check<void> single_type;
20546 typedef check<check<void>> double_type;
20547 typedef check<check<check<void>>> triple_type;
20548 typedef check<check<check<check<void>>>> quadruple_type;
20549
20550 }
20551
20552 namespace test_decltype
20553 {
20554
20555 int
20556 f()
20557 {
20558 int a = 1;
20559 decltype(a) b = 2;
20560 return a + b;
20561 }
20562
20563 }
20564
20565 namespace test_type_deduction
20566 {
20567
20568 template < typename T1, typename T2 >
20569 struct is_same
20570 {
20571 static const bool value = false;
20572 };
20573
20574 template < typename T >
20575 struct is_same<T, T>
20576 {
20577 static const bool value = true;
20578 };
20579
20580 template < typename T1, typename T2 >
20581 auto
20582 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20583 {
20584 return a1 + a2;
20585 }
20586
20587 int
20588 test(const int c, volatile int v)
20589 {
20590 static_assert(is_same<int, decltype(0)>::value == true, "");
20591 static_assert(is_same<int, decltype(c)>::value == false, "");
20592 static_assert(is_same<int, decltype(v)>::value == false, "");
20593 auto ac = c;
20594 auto av = v;
20595 auto sumi = ac + av + 'x';
20596 auto sumf = ac + av + 1.0;
20597 static_assert(is_same<int, decltype(ac)>::value == true, "");
20598 static_assert(is_same<int, decltype(av)>::value == true, "");
20599 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20600 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20601 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20602 return (sumf > 0.0) ? sumi : add(c, v);
20603 }
20604
20605 }
20606
20607 namespace test_noexcept
20608 {
20609
20610 int f() { return 0; }
20611 int g() noexcept { return 0; }
20612
20613 static_assert(noexcept(f()) == false, "");
20614 static_assert(noexcept(g()) == true, "");
20615
20616 }
20617
20618 namespace test_constexpr
20619 {
20620
20621 template < typename CharT >
20622 unsigned long constexpr
20623 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20624 {
20625 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20626 }
20627
20628 template < typename CharT >
20629 unsigned long constexpr
20630 strlen_c(const CharT *const s) noexcept
20631 {
20632 return strlen_c_r(s, 0UL);
20633 }
20634
20635 static_assert(strlen_c("") == 0UL, "");
20636 static_assert(strlen_c("1") == 1UL, "");
20637 static_assert(strlen_c("example") == 7UL, "");
20638 static_assert(strlen_c("another\0example") == 7UL, "");
20639
20640 }
20641
20642 namespace test_rvalue_references
20643 {
20644
20645 template < int N >
20646 struct answer
20647 {
20648 static constexpr int value = N;
20649 };
20650
20651 answer<1> f(int&) { return answer<1>(); }
20652 answer<2> f(const int&) { return answer<2>(); }
20653 answer<3> f(int&&) { return answer<3>(); }
20654
20655 void
20656 test()
20657 {
20658 int i = 0;
20659 const int c = 0;
20660 static_assert(decltype(f(i))::value == 1, "");
20661 static_assert(decltype(f(c))::value == 2, "");
20662 static_assert(decltype(f(0))::value == 3, "");
20663 }
20664
20665 }
20666
20667 namespace test_uniform_initialization
20668 {
20669
20670 struct test
20671 {
20672 static const int zero {};
20673 static const int one {1};
20674 };
20675
20676 static_assert(test::zero == 0, "");
20677 static_assert(test::one == 1, "");
20678
20679 }
20680
20681 namespace test_lambdas
20682 {
20683
20684 void
20685 test1()
20686 {
20687 auto lambda1 = [](){};
20688 auto lambda2 = lambda1;
20689 lambda1();
20690 lambda2();
20691 }
20692
20693 int
20694 test2()
20695 {
20696 auto a = [](int i, int j){ return i + j; }(1, 2);
20697 auto b = []() -> int { return '0'; }();
20698 auto c = [=](){ return a + b; }();
20699 auto d = [&](){ return c; }();
20700 auto e = [a, &b](int x) mutable {
20701 const auto identity = [](int y){ return y; };
20702 for (auto i = 0; i < a; ++i)
20703 a += b--;
20704 return x + identity(a + b);
20705 }(0);
20706 return a + b + c + d + e;
20707 }
20708
20709 int
20710 test3()
20711 {
20712 const auto nullary = [](){ return 0; };
20713 const auto unary = [](int x){ return x; };
20714 using nullary_t = decltype(nullary);
20715 using unary_t = decltype(unary);
20716 const auto higher1st = [](nullary_t f){ return f(); };
20717 const auto higher2nd = [unary](nullary_t f1){
20718 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20719 };
20720 return higher1st(nullary) + higher2nd(nullary)(unary);
20721 }
20722
20723 }
20724
20725 namespace test_variadic_templates
20726 {
20727
20728 template <int...>
20729 struct sum;
20730
20731 template <int N0, int... N1toN>
20732 struct sum<N0, N1toN...>
20733 {
20734 static constexpr auto value = N0 + sum<N1toN...>::value;
20735 };
20736
20737 template <>
20738 struct sum<>
20739 {
20740 static constexpr auto value = 0;
20741 };
20742
20743 static_assert(sum<>::value == 0, "");
20744 static_assert(sum<1>::value == 1, "");
20745 static_assert(sum<23>::value == 23, "");
20746 static_assert(sum<1, 2>::value == 3, "");
20747 static_assert(sum<5, 5, 11>::value == 21, "");
20748 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20749
20750 }
20751
20752 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20753 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20754 // because of this.
20755 namespace test_template_alias_sfinae
20756 {
20757
20758 struct foo {};
20759
20760 template<typename T>
20761 using member = typename T::member_type;
20762
20763 template<typename T>
20764 void func(...) {}
20765
20766 template<typename T>
20767 void func(member<T>*) {}
20768
20769 void test();
20770
20771 void test() { func<foo>(0); }
20772
20773 }
20774
20775 } // namespace cxx11
20776
20777 #endif // __cplusplus >= 201103L
20778
20779
20780
20781 _ACEOF
20782 if ac_fn_cxx_try_compile "$LINENO"
20783 then :
20784 eval $cachevar=yes
20785 else case e in #(
20786 e) eval $cachevar=no ;;
20787 esac
20788 fi
20789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20790 CXX="$ac_save_CXX" ;;
20791 esac
20792 fi
20793 eval ac_res=\$$cachevar
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20795 printf "%s\n" "$ac_res" >&6; }
20796 if eval test x\$$cachevar = xyes; then
20797 CXX="$CXX $switch"
20798 if test -n "$CXXCPP" ; then
20799 CXXCPP="$CXXCPP $switch"
20800 fi
20801 ac_success=yes
20802 break
20803 fi
20804 done
20805 fi
20806
20807 if test x$ac_success = xno; then
20808 for alternative in ${ax_cxx_compile_alternatives}; do
20809 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
20810 if test x"$switch" = xMSVC; then
20811 switch=-std:c++${alternative}
20812 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_${switch}_MSVC" | sed "$as_sed_sh"`
20813 else
20814 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20815 fi
20816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20817 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20818 if eval test \${$cachevar+y}
20819 then :
20820 printf %s "(cached) " >&6
20821 else case e in #(
20822 e) ac_save_CXX="$CXX"
20823 CXX="$CXX $switch"
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826
20827
20828 // If the compiler admits that it is not ready for C++11, why torture it?
20829 // Hopefully, this will speed up the test.
20830
20831 #ifndef __cplusplus
20832
20833 #error "This is not a C++ compiler"
20834
20835 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
20836 // only set it correctly if /Zc:__cplusplus is specified as well as a
20837 // /std:c++NN switch:
20838 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
20839 #elif __cplusplus < 201103L && !defined _MSC_VER
20840
20841 #error "This is not a C++11 compiler"
20842
20843 #else
20844
20845 namespace cxx11
20846 {
20847
20848 namespace test_static_assert
20849 {
20850
20851 template <typename T>
20852 struct check
20853 {
20854 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20855 };
20856
20857 }
20858
20859 namespace test_final_override
20860 {
20861
20862 struct Base
20863 {
20864 virtual ~Base() {}
20865 virtual void f() {}
20866 };
20867
20868 struct Derived : public Base
20869 {
20870 virtual ~Derived() override {}
20871 virtual void f() override {}
20872 };
20873
20874 }
20875
20876 namespace test_double_right_angle_brackets
20877 {
20878
20879 template < typename T >
20880 struct check {};
20881
20882 typedef check<void> single_type;
20883 typedef check<check<void>> double_type;
20884 typedef check<check<check<void>>> triple_type;
20885 typedef check<check<check<check<void>>>> quadruple_type;
20886
20887 }
20888
20889 namespace test_decltype
20890 {
20891
20892 int
20893 f()
20894 {
20895 int a = 1;
20896 decltype(a) b = 2;
20897 return a + b;
20898 }
20899
20900 }
20901
20902 namespace test_type_deduction
20903 {
20904
20905 template < typename T1, typename T2 >
20906 struct is_same
20907 {
20908 static const bool value = false;
20909 };
20910
20911 template < typename T >
20912 struct is_same<T, T>
20913 {
20914 static const bool value = true;
20915 };
20916
20917 template < typename T1, typename T2 >
20918 auto
20919 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20920 {
20921 return a1 + a2;
20922 }
20923
20924 int
20925 test(const int c, volatile int v)
20926 {
20927 static_assert(is_same<int, decltype(0)>::value == true, "");
20928 static_assert(is_same<int, decltype(c)>::value == false, "");
20929 static_assert(is_same<int, decltype(v)>::value == false, "");
20930 auto ac = c;
20931 auto av = v;
20932 auto sumi = ac + av + 'x';
20933 auto sumf = ac + av + 1.0;
20934 static_assert(is_same<int, decltype(ac)>::value == true, "");
20935 static_assert(is_same<int, decltype(av)>::value == true, "");
20936 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20937 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20938 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20939 return (sumf > 0.0) ? sumi : add(c, v);
20940 }
20941
20942 }
20943
20944 namespace test_noexcept
20945 {
20946
20947 int f() { return 0; }
20948 int g() noexcept { return 0; }
20949
20950 static_assert(noexcept(f()) == false, "");
20951 static_assert(noexcept(g()) == true, "");
20952
20953 }
20954
20955 namespace test_constexpr
20956 {
20957
20958 template < typename CharT >
20959 unsigned long constexpr
20960 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20961 {
20962 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20963 }
20964
20965 template < typename CharT >
20966 unsigned long constexpr
20967 strlen_c(const CharT *const s) noexcept
20968 {
20969 return strlen_c_r(s, 0UL);
20970 }
20971
20972 static_assert(strlen_c("") == 0UL, "");
20973 static_assert(strlen_c("1") == 1UL, "");
20974 static_assert(strlen_c("example") == 7UL, "");
20975 static_assert(strlen_c("another\0example") == 7UL, "");
20976
20977 }
20978
20979 namespace test_rvalue_references
20980 {
20981
20982 template < int N >
20983 struct answer
20984 {
20985 static constexpr int value = N;
20986 };
20987
20988 answer<1> f(int&) { return answer<1>(); }
20989 answer<2> f(const int&) { return answer<2>(); }
20990 answer<3> f(int&&) { return answer<3>(); }
20991
20992 void
20993 test()
20994 {
20995 int i = 0;
20996 const int c = 0;
20997 static_assert(decltype(f(i))::value == 1, "");
20998 static_assert(decltype(f(c))::value == 2, "");
20999 static_assert(decltype(f(0))::value == 3, "");
21000 }
21001
21002 }
21003
21004 namespace test_uniform_initialization
21005 {
21006
21007 struct test
21008 {
21009 static const int zero {};
21010 static const int one {1};
21011 };
21012
21013 static_assert(test::zero == 0, "");
21014 static_assert(test::one == 1, "");
21015
21016 }
21017
21018 namespace test_lambdas
21019 {
21020
21021 void
21022 test1()
21023 {
21024 auto lambda1 = [](){};
21025 auto lambda2 = lambda1;
21026 lambda1();
21027 lambda2();
21028 }
21029
21030 int
21031 test2()
21032 {
21033 auto a = [](int i, int j){ return i + j; }(1, 2);
21034 auto b = []() -> int { return '0'; }();
21035 auto c = [=](){ return a + b; }();
21036 auto d = [&](){ return c; }();
21037 auto e = [a, &b](int x) mutable {
21038 const auto identity = [](int y){ return y; };
21039 for (auto i = 0; i < a; ++i)
21040 a += b--;
21041 return x + identity(a + b);
21042 }(0);
21043 return a + b + c + d + e;
21044 }
21045
21046 int
21047 test3()
21048 {
21049 const auto nullary = [](){ return 0; };
21050 const auto unary = [](int x){ return x; };
21051 using nullary_t = decltype(nullary);
21052 using unary_t = decltype(unary);
21053 const auto higher1st = [](nullary_t f){ return f(); };
21054 const auto higher2nd = [unary](nullary_t f1){
21055 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
21056 };
21057 return higher1st(nullary) + higher2nd(nullary)(unary);
21058 }
21059
21060 }
21061
21062 namespace test_variadic_templates
21063 {
21064
21065 template <int...>
21066 struct sum;
21067
21068 template <int N0, int... N1toN>
21069 struct sum<N0, N1toN...>
21070 {
21071 static constexpr auto value = N0 + sum<N1toN...>::value;
21072 };
21073
21074 template <>
21075 struct sum<>
21076 {
21077 static constexpr auto value = 0;
21078 };
21079
21080 static_assert(sum<>::value == 0, "");
21081 static_assert(sum<1>::value == 1, "");
21082 static_assert(sum<23>::value == 23, "");
21083 static_assert(sum<1, 2>::value == 3, "");
21084 static_assert(sum<5, 5, 11>::value == 21, "");
21085 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
21086
21087 }
21088
21089 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
21090 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
21091 // because of this.
21092 namespace test_template_alias_sfinae
21093 {
21094
21095 struct foo {};
21096
21097 template<typename T>
21098 using member = typename T::member_type;
21099
21100 template<typename T>
21101 void func(...) {}
21102
21103 template<typename T>
21104 void func(member<T>*) {}
21105
21106 void test();
21107
21108 void test() { func<foo>(0); }
21109
21110 }
21111
21112 } // namespace cxx11
21113
21114 #endif // __cplusplus >= 201103L
21115
21116
21117
21118 _ACEOF
21119 if ac_fn_cxx_try_compile "$LINENO"
21120 then :
21121 eval $cachevar=yes
21122 else case e in #(
21123 e) eval $cachevar=no ;;
21124 esac
21125 fi
21126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21127 CXX="$ac_save_CXX" ;;
21128 esac
21129 fi
21130 eval ac_res=\$$cachevar
21131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21132 printf "%s\n" "$ac_res" >&6; }
21133 if eval test x\$$cachevar = xyes; then
21134 CXX="$CXX $switch"
21135 if test -n "$CXXCPP" ; then
21136 CXXCPP="$CXXCPP $switch"
21137 fi
21138 ac_success=yes
21139 break
21140 fi
21141 done
21142 if test x$ac_success = xyes; then
21143 break
21144 fi
21145 done
21146 fi
21147 ac_ext=cpp
21148 ac_cpp='$CXXCPP $CPPFLAGS'
21149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21152
21153 if test x$ax_cxx_compile_cxx11_required = xtrue; then
21154 if test x$ac_success = xno; then
21155 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
21156 fi
21157 fi
21158 if test x$ac_success = xno; then
21159 HAVE_CXX11=0
21160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
21161 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
21162 else
21163 HAVE_CXX11=1
21164
21165 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
21166
21167 fi
21168
21169
21170
21171
21172
21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
21174 printf %s "checking for __attribute__((format))... " >&6; }
21175 if test ${ax_cv_have_func_attribute_format+y}
21176 then :
21177 printf %s "(cached) " >&6
21178 else case e in #(
21179 e)
21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181 /* end confdefs.h. */
21182
21183
21184 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
21185
21186 int
21187 main (void)
21188 {
21189
21190 ;
21191 return 0;
21192 }
21193
21194 _ACEOF
21195 if ac_fn_cxx_try_link "$LINENO"
21196 then :
21197 if grep -- -Wattributes conftest.err
21198 then :
21199 ax_cv_have_func_attribute_format=no
21200 else case e in #(
21201 e) ax_cv_have_func_attribute_format=yes ;;
21202 esac
21203 fi
21204 else case e in #(
21205 e) ax_cv_have_func_attribute_format=no ;;
21206 esac
21207 fi
21208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21209 conftest$ac_exeext conftest.$ac_ext
21210 ;;
21211 esac
21212 fi
21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
21214 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
21215
21216 if test yes = $ax_cv_have_func_attribute_format
21217 then :
21218
21219 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
21220
21221 fi
21222
21223
21224
21225
21226
21227
21228
21229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
21230 printf %s "checking for __attribute__((fallthrough))... " >&6; }
21231 if test ${ax_cv_have_gcc_attribute_falltrough+y}
21232 then :
21233 printf %s "(cached) " >&6
21234 else case e in #(
21235 e)
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238
21239 void foo(int &i)
21240 {
21241 switch (i)
21242 {
21243 case 0:
21244 i += 1;
21245 __attribute__((fallthrough));
21246 default:
21247 i += 1;
21248 }
21249 }
21250
21251 int
21252 main (void)
21253 {
21254
21255 ;
21256 return 0;
21257 }
21258
21259 _ACEOF
21260 if ac_fn_cxx_try_link "$LINENO"
21261 then :
21262 if test -s conftest.err
21263 then :
21264 ax_cv_have_gcc_attribute_falltrough=no
21265 else case e in #(
21266 e) ax_cv_have_gcc_attribute_falltrough=yes ;;
21267 esac
21268 fi
21269 else case e in #(
21270 e) ax_cv_have_gcc_attribute_falltrough=no ;;
21271 esac
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21274 conftest$ac_exeext conftest.$ac_ext
21275 ;;
21276 esac
21277 fi
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gcc_attribute_falltrough" >&5
21279 printf "%s\n" "$ax_cv_have_gcc_attribute_falltrough" >&6; }
21280
21281 if test yes = $ax_cv_have_gcc_attribute_falltrough
21282 then :
21283
21284 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
21285
21286 fi
21287
21288
21289
21290
21291
21292
21293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for [[clang:fallthrough]]" >&5
21294 printf %s "checking for [[clang:fallthrough]]... " >&6; }
21295 if test ${ax_cv_have_clang_attribute_falltrough+y}
21296 then :
21297 printf %s "(cached) " >&6
21298 else case e in #(
21299 e)
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302
21303 void foo(int &i)
21304 {
21305 switch (i)
21306 {
21307 case 0:
21308 i += 1;
21309 [[clang:fallthrough]];
21310 default:
21311 i += 1;
21312 }
21313 }
21314
21315 int
21316 main (void)
21317 {
21318
21319 ;
21320 return 0;
21321 }
21322
21323 _ACEOF
21324 if ac_fn_cxx_try_link "$LINENO"
21325 then :
21326 if test -s conftest.err
21327 then :
21328 ax_cv_have_clang_attribute_falltrough=no
21329 else case e in #(
21330 e) ax_cv_have_clang_attribute_falltrough=yes ;;
21331 esac
21332 fi
21333 else case e in #(
21334 e) ax_cv_have_clang_attribute_falltrough=no ;;
21335 esac
21336 fi
21337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21338 conftest$ac_exeext conftest.$ac_ext
21339 ;;
21340 esac
21341 fi
21342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_clang_attribute_falltrough" >&5
21343 printf "%s\n" "$ax_cv_have_clang_attribute_falltrough" >&6; }
21344
21345 if test yes = $ax_cv_have_clang_attribute_falltrough
21346 then :
21347
21348 printf "%s\n" "#define HAVE_CLANG_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
21349
21350 fi
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21364 if test -n "$ac_tool_prefix"; then
21365 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21366 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21368 printf %s "checking for $ac_word... " >&6; }
21369 if test ${ac_cv_path_PKG_CONFIG+y}
21370 then :
21371 printf %s "(cached) " >&6
21372 else case e in #(
21373 e) case $PKG_CONFIG in
21374 [\\/]* | ?:[\\/]*)
21375 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21376 ;;
21377 *)
21378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21379 for as_dir in $PATH
21380 do
21381 IFS=$as_save_IFS
21382 case $as_dir in #(((
21383 '') as_dir=./ ;;
21384 */) ;;
21385 *) as_dir=$as_dir/ ;;
21386 esac
21387 for ac_exec_ext in '' $ac_executable_extensions; do
21388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21389 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21391 break 2
21392 fi
21393 done
21394 done
21395 IFS=$as_save_IFS
21396
21397 ;;
21398 esac ;;
21399 esac
21400 fi
21401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21402 if test -n "$PKG_CONFIG"; then
21403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21404 printf "%s\n" "$PKG_CONFIG" >&6; }
21405 else
21406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21407 printf "%s\n" "no" >&6; }
21408 fi
21409
21410
21411 fi
21412 if test -z "$ac_cv_path_PKG_CONFIG"; then
21413 ac_pt_PKG_CONFIG=$PKG_CONFIG
21414 # Extract the first word of "pkg-config", so it can be a program name with args.
21415 set dummy pkg-config; ac_word=$2
21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21417 printf %s "checking for $ac_word... " >&6; }
21418 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21419 then :
21420 printf %s "(cached) " >&6
21421 else case e in #(
21422 e) case $ac_pt_PKG_CONFIG in
21423 [\\/]* | ?:[\\/]*)
21424 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21425 ;;
21426 *)
21427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21428 for as_dir in $PATH
21429 do
21430 IFS=$as_save_IFS
21431 case $as_dir in #(((
21432 '') as_dir=./ ;;
21433 */) ;;
21434 *) as_dir=$as_dir/ ;;
21435 esac
21436 for ac_exec_ext in '' $ac_executable_extensions; do
21437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21438 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21440 break 2
21441 fi
21442 done
21443 done
21444 IFS=$as_save_IFS
21445
21446 ;;
21447 esac ;;
21448 esac
21449 fi
21450 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21451 if test -n "$ac_pt_PKG_CONFIG"; then
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21453 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21454 else
21455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456 printf "%s\n" "no" >&6; }
21457 fi
21458
21459 if test "x$ac_pt_PKG_CONFIG" = x; then
21460 PKG_CONFIG=""
21461 else
21462 case $cross_compiling:$ac_tool_warned in
21463 yes:)
21464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21466 ac_tool_warned=yes ;;
21467 esac
21468 PKG_CONFIG=$ac_pt_PKG_CONFIG
21469 fi
21470 else
21471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21472 fi
21473
21474 fi
21475 if test -n "$PKG_CONFIG"; then
21476 _pkg_min_version=0.20
21477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21478 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21479 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21481 printf "%s\n" "yes" >&6; }
21482 else
21483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 printf "%s\n" "no" >&6; }
21485 PKG_CONFIG=""
21486 fi
21487 fi
21488
21489 # ===============
21490 # Find librevenge
21491 # ===============
21492
21493 pkg_failed=no
21494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-0.0 >= 0.0.1" >&5
21495 printf %s "checking for librevenge-0.0 >= 0.0.1... " >&6; }
21496
21497 if test -n "$REVENGE_CFLAGS"; then
21498 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
21499 elif test -n "$PKG_CONFIG"; then
21500 if test -n "$PKG_CONFIG" && \
21501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0 >= 0.0.1\""; } >&5
21502 ($PKG_CONFIG --exists --print-errors "librevenge-0.0 >= 0.0.1") 2>&5
21503 ac_status=$?
21504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21505 test $ac_status = 0; }; then
21506 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "librevenge-0.0 >= 0.0.1" 2>/dev/null`
21507 test "x$?" != "x0" && pkg_failed=yes
21508 else
21509 pkg_failed=yes
21510 fi
21511 else
21512 pkg_failed=untried
21513 fi
21514 if test -n "$REVENGE_LIBS"; then
21515 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
21516 elif test -n "$PKG_CONFIG"; then
21517 if test -n "$PKG_CONFIG" && \
21518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0 >= 0.0.1\""; } >&5
21519 ($PKG_CONFIG --exists --print-errors "librevenge-0.0 >= 0.0.1") 2>&5
21520 ac_status=$?
21521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522 test $ac_status = 0; }; then
21523 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "librevenge-0.0 >= 0.0.1" 2>/dev/null`
21524 test "x$?" != "x0" && pkg_failed=yes
21525 else
21526 pkg_failed=yes
21527 fi
21528 else
21529 pkg_failed=untried
21530 fi
21531
21532
21533
21534 if test $pkg_failed = yes; then
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 printf "%s\n" "no" >&6; }
21537
21538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21539 _pkg_short_errors_supported=yes
21540 else
21541 _pkg_short_errors_supported=no
21542 fi
21543 if test $_pkg_short_errors_supported = yes; then
21544 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-0.0 >= 0.0.1" 2>&1`
21545 else
21546 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-0.0 >= 0.0.1" 2>&1`
21547 fi
21548 # Put the nasty error message in config.log where it belongs
21549 echo "$REVENGE_PKG_ERRORS" >&5
21550
21551 as_fn_error $? "Package requirements (librevenge-0.0 >= 0.0.1) were not met:
21552
21553 $REVENGE_PKG_ERRORS
21554
21555 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21556 installed software in a non-standard prefix.
21557
21558 Alternatively, you may set the environment variables REVENGE_CFLAGS
21559 and REVENGE_LIBS to avoid the need to call pkg-config.
21560 See the pkg-config man page for more details." "$LINENO" 5
21561 elif test $pkg_failed = untried; then
21562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21563 printf "%s\n" "no" >&6; }
21564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21565 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21566 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21567 is in your PATH or set the PKG_CONFIG environment variable to the full
21568 path to pkg-config.
21569
21570 Alternatively, you may set the environment variables REVENGE_CFLAGS
21571 and REVENGE_LIBS to avoid the need to call pkg-config.
21572 See the pkg-config man page for more details.
21573
21574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21575 See 'config.log' for more details" "$LINENO" 5; }
21576 else
21577 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
21578 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
21579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21580 printf "%s\n" "yes" >&6; }
21581
21582 fi
21583
21584
21585
21586
21587 # =====
21588 # Tools
21589 # =====
21590 # Check whether --enable-tools was given.
21591 if test ${enable_tools+y}
21592 then :
21593 enableval=$enable_tools; enable_tools="$enableval"
21594 else case e in #(
21595 e) enable_tools=yes
21596 ;;
21597 esac
21598 fi
21599
21600 if test "x$enable_tools" = "xyes"; then
21601 BUILD_TOOLS_TRUE=
21602 BUILD_TOOLS_FALSE='#'
21603 else
21604 BUILD_TOOLS_TRUE='#'
21605 BUILD_TOOLS_FALSE=
21606 fi
21607
21608 if test "x$enable_tools" = "xyes"
21609 then :
21610 need_stream=yes; need_generators=yes
21611 fi
21612
21613 # =======
21614 # Fuzzers
21615 # =======
21616 # Check whether --enable-fuzzers was given.
21617 if test ${enable_fuzzers+y}
21618 then :
21619 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
21620 else case e in #(
21621 e) enable_fuzzers=no
21622 ;;
21623 esac
21624 fi
21625
21626 if test "x$enable_fuzzers" = "xyes"; then
21627 BUILD_FUZZERS_TRUE=
21628 BUILD_FUZZERS_FALSE='#'
21629 else
21630 BUILD_FUZZERS_TRUE='#'
21631 BUILD_FUZZERS_FALSE=
21632 fi
21633
21634 if test "x$enable_fuzzers" = "xyes"
21635 then :
21636 need_stream=yes; need_generators=yes
21637 fi
21638
21639 if test "x$need_stream" = "xyes"
21640 then :
21641
21642
21643 pkg_failed=no
21644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-stream-0.0" >&5
21645 printf %s "checking for librevenge-stream-0.0... " >&6; }
21646
21647 if test -n "$REVENGE_STREAM_CFLAGS"; then
21648 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
21649 elif test -n "$PKG_CONFIG"; then
21650 if test -n "$PKG_CONFIG" && \
21651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
21652 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
21653 ac_status=$?
21654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21655 test $ac_status = 0; }; then
21656 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags "librevenge-stream-0.0" 2>/dev/null`
21657 test "x$?" != "x0" && pkg_failed=yes
21658 else
21659 pkg_failed=yes
21660 fi
21661 else
21662 pkg_failed=untried
21663 fi
21664 if test -n "$REVENGE_STREAM_LIBS"; then
21665 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
21666 elif test -n "$PKG_CONFIG"; then
21667 if test -n "$PKG_CONFIG" && \
21668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
21669 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
21670 ac_status=$?
21671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21672 test $ac_status = 0; }; then
21673 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs "librevenge-stream-0.0" 2>/dev/null`
21674 test "x$?" != "x0" && pkg_failed=yes
21675 else
21676 pkg_failed=yes
21677 fi
21678 else
21679 pkg_failed=untried
21680 fi
21681
21682
21683
21684 if test $pkg_failed = yes; then
21685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 printf "%s\n" "no" >&6; }
21687
21688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21689 _pkg_short_errors_supported=yes
21690 else
21691 _pkg_short_errors_supported=no
21692 fi
21693 if test $_pkg_short_errors_supported = yes; then
21694 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
21695 else
21696 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
21697 fi
21698 # Put the nasty error message in config.log where it belongs
21699 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
21700
21701 as_fn_error $? "Package requirements (librevenge-stream-0.0) were not met:
21702
21703 $REVENGE_STREAM_PKG_ERRORS
21704
21705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21706 installed software in a non-standard prefix.
21707
21708 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21709 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21710 See the pkg-config man page for more details." "$LINENO" 5
21711 elif test $pkg_failed = untried; then
21712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 printf "%s\n" "no" >&6; }
21714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21715 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21716 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21717 is in your PATH or set the PKG_CONFIG environment variable to the full
21718 path to pkg-config.
21719
21720 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21721 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21722 See the pkg-config man page for more details.
21723
21724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21725 See 'config.log' for more details" "$LINENO" 5; }
21726 else
21727 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
21728 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
21729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21730 printf "%s\n" "yes" >&6; }
21731
21732 fi
21733
21734 fi
21735
21736
21737
21738 if test "x$need_generators" = "xyes"
21739 then :
21740
21741
21742 pkg_failed=no
21743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-generators-0.0" >&5
21744 printf %s "checking for librevenge-generators-0.0... " >&6; }
21745
21746 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
21747 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
21748 elif test -n "$PKG_CONFIG"; then
21749 if test -n "$PKG_CONFIG" && \
21750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
21751 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
21752 ac_status=$?
21753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21754 test $ac_status = 0; }; then
21755 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags "librevenge-generators-0.0" 2>/dev/null`
21756 test "x$?" != "x0" && pkg_failed=yes
21757 else
21758 pkg_failed=yes
21759 fi
21760 else
21761 pkg_failed=untried
21762 fi
21763 if test -n "$REVENGE_GENERATORS_LIBS"; then
21764 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
21765 elif test -n "$PKG_CONFIG"; then
21766 if test -n "$PKG_CONFIG" && \
21767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
21768 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
21769 ac_status=$?
21770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21771 test $ac_status = 0; }; then
21772 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs "librevenge-generators-0.0" 2>/dev/null`
21773 test "x$?" != "x0" && pkg_failed=yes
21774 else
21775 pkg_failed=yes
21776 fi
21777 else
21778 pkg_failed=untried
21779 fi
21780
21781
21782
21783 if test $pkg_failed = yes; then
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21785 printf "%s\n" "no" >&6; }
21786
21787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21788 _pkg_short_errors_supported=yes
21789 else
21790 _pkg_short_errors_supported=no
21791 fi
21792 if test $_pkg_short_errors_supported = yes; then
21793 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
21794 else
21795 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
21796 fi
21797 # Put the nasty error message in config.log where it belongs
21798 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
21799
21800 as_fn_error $? "Package requirements (librevenge-generators-0.0) were not met:
21801
21802 $REVENGE_GENERATORS_PKG_ERRORS
21803
21804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21805 installed software in a non-standard prefix.
21806
21807 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21808 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21809 See the pkg-config man page for more details." "$LINENO" 5
21810 elif test $pkg_failed = untried; then
21811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21812 printf "%s\n" "no" >&6; }
21813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21814 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21815 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21816 is in your PATH or set the PKG_CONFIG environment variable to the full
21817 path to pkg-config.
21818
21819 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21820 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21821 See the pkg-config man page for more details.
21822
21823 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21824 See 'config.log' for more details" "$LINENO" 5; }
21825 else
21826 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
21827 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
21828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21829 printf "%s\n" "yes" >&6; }
21830
21831 fi
21832
21833 fi
21834
21835
21836
21837 # ==========
21838 # Find lcms2
21839 # ==========
21840
21841 pkg_failed=no
21842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcms2" >&5
21843 printf %s "checking for lcms2... " >&6; }
21844
21845 if test -n "$LCMS2_CFLAGS"; then
21846 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
21847 elif test -n "$PKG_CONFIG"; then
21848 if test -n "$PKG_CONFIG" && \
21849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
21850 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
21851 ac_status=$?
21852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21853 test $ac_status = 0; }; then
21854 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
21855 test "x$?" != "x0" && pkg_failed=yes
21856 else
21857 pkg_failed=yes
21858 fi
21859 else
21860 pkg_failed=untried
21861 fi
21862 if test -n "$LCMS2_LIBS"; then
21863 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
21864 elif test -n "$PKG_CONFIG"; then
21865 if test -n "$PKG_CONFIG" && \
21866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
21867 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
21868 ac_status=$?
21869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21870 test $ac_status = 0; }; then
21871 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
21872 test "x$?" != "x0" && pkg_failed=yes
21873 else
21874 pkg_failed=yes
21875 fi
21876 else
21877 pkg_failed=untried
21878 fi
21879
21880
21881
21882 if test $pkg_failed = yes; then
21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 printf "%s\n" "no" >&6; }
21885
21886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21887 _pkg_short_errors_supported=yes
21888 else
21889 _pkg_short_errors_supported=no
21890 fi
21891 if test $_pkg_short_errors_supported = yes; then
21892 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
21893 else
21894 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
21895 fi
21896 # Put the nasty error message in config.log where it belongs
21897 echo "$LCMS2_PKG_ERRORS" >&5
21898
21899 as_fn_error $? "Package requirements (lcms2) were not met:
21900
21901 $LCMS2_PKG_ERRORS
21902
21903 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21904 installed software in a non-standard prefix.
21905
21906 Alternatively, you may set the environment variables LCMS2_CFLAGS
21907 and LCMS2_LIBS to avoid the need to call pkg-config.
21908 See the pkg-config man page for more details." "$LINENO" 5
21909 elif test $pkg_failed = untried; then
21910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 printf "%s\n" "no" >&6; }
21912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21914 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21915 is in your PATH or set the PKG_CONFIG environment variable to the full
21916 path to pkg-config.
21917
21918 Alternatively, you may set the environment variables LCMS2_CFLAGS
21919 and LCMS2_LIBS to avoid the need to call pkg-config.
21920 See the pkg-config man page for more details.
21921
21922 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21923 See 'config.log' for more details" "$LINENO" 5; }
21924 else
21925 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
21926 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
21927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21928 printf "%s\n" "yes" >&6; }
21929
21930 fi
21931
21932
21933
21934 # =========
21935 # Find zlib
21936 # =========
21937
21938 pkg_failed=no
21939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
21940 printf %s "checking for zlib... " >&6; }
21941
21942 if test -n "$ZLIB_CFLAGS"; then
21943 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
21944 elif test -n "$PKG_CONFIG"; then
21945 if test -n "$PKG_CONFIG" && \
21946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
21947 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
21948 ac_status=$?
21949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21950 test $ac_status = 0; }; then
21951 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
21952 test "x$?" != "x0" && pkg_failed=yes
21953 else
21954 pkg_failed=yes
21955 fi
21956 else
21957 pkg_failed=untried
21958 fi
21959 if test -n "$ZLIB_LIBS"; then
21960 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
21961 elif test -n "$PKG_CONFIG"; then
21962 if test -n "$PKG_CONFIG" && \
21963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
21964 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
21965 ac_status=$?
21966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967 test $ac_status = 0; }; then
21968 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
21969 test "x$?" != "x0" && pkg_failed=yes
21970 else
21971 pkg_failed=yes
21972 fi
21973 else
21974 pkg_failed=untried
21975 fi
21976
21977
21978
21979 if test $pkg_failed = yes; then
21980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 printf "%s\n" "no" >&6; }
21982
21983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21984 _pkg_short_errors_supported=yes
21985 else
21986 _pkg_short_errors_supported=no
21987 fi
21988 if test $_pkg_short_errors_supported = yes; then
21989 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
21990 else
21991 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
21992 fi
21993 # Put the nasty error message in config.log where it belongs
21994 echo "$ZLIB_PKG_ERRORS" >&5
21995
21996 as_fn_error $? "Package requirements (zlib) were not met:
21997
21998 $ZLIB_PKG_ERRORS
21999
22000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22001 installed software in a non-standard prefix.
22002
22003 Alternatively, you may set the environment variables ZLIB_CFLAGS
22004 and ZLIB_LIBS to avoid the need to call pkg-config.
22005 See the pkg-config man page for more details." "$LINENO" 5
22006 elif test $pkg_failed = untried; then
22007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22008 printf "%s\n" "no" >&6; }
22009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22010 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22011 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22012 is in your PATH or set the PKG_CONFIG environment variable to the full
22013 path to pkg-config.
22014
22015 Alternatively, you may set the environment variables ZLIB_CFLAGS
22016 and ZLIB_LIBS to avoid the need to call pkg-config.
22017 See the pkg-config man page for more details.
22018
22019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22020 See 'config.log' for more details" "$LINENO" 5; }
22021 else
22022 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
22023 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
22024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 printf "%s\n" "yes" >&6; }
22026
22027 fi
22028
22029
22030
22031 # ========
22032 # Find icu
22033 # ========
22034
22035 pkg_failed=no
22036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-i18n >= 75 icu-uc >= 75" >&5
22037 printf %s "checking for icu-i18n >= 75 icu-uc >= 75... " >&6; }
22038
22039 if test -n "$ICU_CFLAGS"; then
22040 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
22041 elif test -n "$PKG_CONFIG"; then
22042 if test -n "$PKG_CONFIG" && \
22043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 75 icu-uc >= 75\""; } >&5
22044 ($PKG_CONFIG --exists --print-errors "icu-i18n >= 75 icu-uc >= 75") 2>&5
22045 ac_status=$?
22046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; then
22048 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n >= 75 icu-uc >= 75" 2>/dev/null`
22049 test "x$?" != "x0" && pkg_failed=yes
22050 else
22051 pkg_failed=yes
22052 fi
22053 else
22054 pkg_failed=untried
22055 fi
22056 if test -n "$ICU_LIBS"; then
22057 pkg_cv_ICU_LIBS="$ICU_LIBS"
22058 elif test -n "$PKG_CONFIG"; then
22059 if test -n "$PKG_CONFIG" && \
22060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n >= 75 icu-uc >= 75\""; } >&5
22061 ($PKG_CONFIG --exists --print-errors "icu-i18n >= 75 icu-uc >= 75") 2>&5
22062 ac_status=$?
22063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064 test $ac_status = 0; }; then
22065 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n >= 75 icu-uc >= 75" 2>/dev/null`
22066 test "x$?" != "x0" && pkg_failed=yes
22067 else
22068 pkg_failed=yes
22069 fi
22070 else
22071 pkg_failed=untried
22072 fi
22073
22074
22075
22076 if test $pkg_failed = yes; then
22077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22078 printf "%s\n" "no" >&6; }
22079
22080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22081 _pkg_short_errors_supported=yes
22082 else
22083 _pkg_short_errors_supported=no
22084 fi
22085 if test $_pkg_short_errors_supported = yes; then
22086 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n >= 75 icu-uc >= 75" 2>&1`
22087 else
22088 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n >= 75 icu-uc >= 75" 2>&1`
22089 fi
22090 # Put the nasty error message in config.log where it belongs
22091 echo "$ICU_PKG_ERRORS" >&5
22092
22093
22094 pkg_failed=no
22095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-i18n" >&5
22096 printf %s "checking for icu-i18n... " >&6; }
22097
22098 if test -n "$ICU_CFLAGS"; then
22099 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
22100 elif test -n "$PKG_CONFIG"; then
22101 if test -n "$PKG_CONFIG" && \
22102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
22103 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
22104 ac_status=$?
22105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22106 test $ac_status = 0; }; then
22107 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
22108 test "x$?" != "x0" && pkg_failed=yes
22109 else
22110 pkg_failed=yes
22111 fi
22112 else
22113 pkg_failed=untried
22114 fi
22115 if test -n "$ICU_LIBS"; then
22116 pkg_cv_ICU_LIBS="$ICU_LIBS"
22117 elif test -n "$PKG_CONFIG"; then
22118 if test -n "$PKG_CONFIG" && \
22119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
22120 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
22121 ac_status=$?
22122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22123 test $ac_status = 0; }; then
22124 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
22125 test "x$?" != "x0" && pkg_failed=yes
22126 else
22127 pkg_failed=yes
22128 fi
22129 else
22130 pkg_failed=untried
22131 fi
22132
22133
22134
22135 if test $pkg_failed = yes; then
22136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22137 printf "%s\n" "no" >&6; }
22138
22139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22140 _pkg_short_errors_supported=yes
22141 else
22142 _pkg_short_errors_supported=no
22143 fi
22144 if test $_pkg_short_errors_supported = yes; then
22145 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
22146 else
22147 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
22148 fi
22149 # Put the nasty error message in config.log where it belongs
22150 echo "$ICU_PKG_ERRORS" >&5
22151
22152 as_fn_error $? "Package requirements (icu-i18n) were not met:
22153
22154 $ICU_PKG_ERRORS
22155
22156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22157 installed software in a non-standard prefix.
22158
22159 Alternatively, you may set the environment variables ICU_CFLAGS
22160 and ICU_LIBS to avoid the need to call pkg-config.
22161 See the pkg-config man page for more details." "$LINENO" 5
22162 elif test $pkg_failed = untried; then
22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22164 printf "%s\n" "no" >&6; }
22165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22166 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22167 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22168 is in your PATH or set the PKG_CONFIG environment variable to the full
22169 path to pkg-config.
22170
22171 Alternatively, you may set the environment variables ICU_CFLAGS
22172 and ICU_LIBS to avoid the need to call pkg-config.
22173 See the pkg-config man page for more details.
22174
22175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22176 See 'config.log' for more details" "$LINENO" 5; }
22177 else
22178 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
22179 ICU_LIBS=$pkg_cv_ICU_LIBS
22180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22181 printf "%s\n" "yes" >&6; }
22182
22183 fi
22184
22185 elif test $pkg_failed = untried; then
22186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22187 printf "%s\n" "no" >&6; }
22188
22189 pkg_failed=no
22190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-i18n" >&5
22191 printf %s "checking for icu-i18n... " >&6; }
22192
22193 if test -n "$ICU_CFLAGS"; then
22194 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
22195 elif test -n "$PKG_CONFIG"; then
22196 if test -n "$PKG_CONFIG" && \
22197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
22198 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
22199 ac_status=$?
22200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22201 test $ac_status = 0; }; then
22202 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
22203 test "x$?" != "x0" && pkg_failed=yes
22204 else
22205 pkg_failed=yes
22206 fi
22207 else
22208 pkg_failed=untried
22209 fi
22210 if test -n "$ICU_LIBS"; then
22211 pkg_cv_ICU_LIBS="$ICU_LIBS"
22212 elif test -n "$PKG_CONFIG"; then
22213 if test -n "$PKG_CONFIG" && \
22214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
22215 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
22216 ac_status=$?
22217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22218 test $ac_status = 0; }; then
22219 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
22220 test "x$?" != "x0" && pkg_failed=yes
22221 else
22222 pkg_failed=yes
22223 fi
22224 else
22225 pkg_failed=untried
22226 fi
22227
22228
22229
22230 if test $pkg_failed = yes; then
22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22232 printf "%s\n" "no" >&6; }
22233
22234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22235 _pkg_short_errors_supported=yes
22236 else
22237 _pkg_short_errors_supported=no
22238 fi
22239 if test $_pkg_short_errors_supported = yes; then
22240 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
22241 else
22242 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
22243 fi
22244 # Put the nasty error message in config.log where it belongs
22245 echo "$ICU_PKG_ERRORS" >&5
22246
22247 as_fn_error $? "Package requirements (icu-i18n) were not met:
22248
22249 $ICU_PKG_ERRORS
22250
22251 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22252 installed software in a non-standard prefix.
22253
22254 Alternatively, you may set the environment variables ICU_CFLAGS
22255 and ICU_LIBS to avoid the need to call pkg-config.
22256 See the pkg-config man page for more details." "$LINENO" 5
22257 elif test $pkg_failed = untried; then
22258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 printf "%s\n" "no" >&6; }
22260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22262 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22263 is in your PATH or set the PKG_CONFIG environment variable to the full
22264 path to pkg-config.
22265
22266 Alternatively, you may set the environment variables ICU_CFLAGS
22267 and ICU_LIBS to avoid the need to call pkg-config.
22268 See the pkg-config man page for more details.
22269
22270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22271 See 'config.log' for more details" "$LINENO" 5; }
22272 else
22273 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
22274 ICU_LIBS=$pkg_cv_ICU_LIBS
22275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22276 printf "%s\n" "yes" >&6; }
22277
22278 fi
22279
22280 else
22281 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
22282 ICU_LIBS=$pkg_cv_ICU_LIBS
22283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22284 printf "%s\n" "yes" >&6; }
22285 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
22286 ac_ext=cpp
22287 ac_cpp='$CXXCPP $CPPFLAGS'
22288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22291 ac_success=no
22292
22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
22294 printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
22295 if test ${ax_cv_cxx_compile_cxx17+y}
22296 then :
22297 printf %s "(cached) " >&6
22298 else case e in #(
22299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22301
22302
22303 // If the compiler admits that it is not ready for C++11, why torture it?
22304 // Hopefully, this will speed up the test.
22305
22306 #ifndef __cplusplus
22307
22308 #error "This is not a C++ compiler"
22309
22310 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
22311 // only set it correctly if /Zc:__cplusplus is specified as well as a
22312 // /std:c++NN switch:
22313 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
22314 #elif __cplusplus < 201103L && !defined _MSC_VER
22315
22316 #error "This is not a C++11 compiler"
22317
22318 #else
22319
22320 namespace cxx11
22321 {
22322
22323 namespace test_static_assert
22324 {
22325
22326 template <typename T>
22327 struct check
22328 {
22329 static_assert(sizeof(int) <= sizeof(T), "not big enough");
22330 };
22331
22332 }
22333
22334 namespace test_final_override
22335 {
22336
22337 struct Base
22338 {
22339 virtual ~Base() {}
22340 virtual void f() {}
22341 };
22342
22343 struct Derived : public Base
22344 {
22345 virtual ~Derived() override {}
22346 virtual void f() override {}
22347 };
22348
22349 }
22350
22351 namespace test_double_right_angle_brackets
22352 {
22353
22354 template < typename T >
22355 struct check {};
22356
22357 typedef check<void> single_type;
22358 typedef check<check<void>> double_type;
22359 typedef check<check<check<void>>> triple_type;
22360 typedef check<check<check<check<void>>>> quadruple_type;
22361
22362 }
22363
22364 namespace test_decltype
22365 {
22366
22367 int
22368 f()
22369 {
22370 int a = 1;
22371 decltype(a) b = 2;
22372 return a + b;
22373 }
22374
22375 }
22376
22377 namespace test_type_deduction
22378 {
22379
22380 template < typename T1, typename T2 >
22381 struct is_same
22382 {
22383 static const bool value = false;
22384 };
22385
22386 template < typename T >
22387 struct is_same<T, T>
22388 {
22389 static const bool value = true;
22390 };
22391
22392 template < typename T1, typename T2 >
22393 auto
22394 add(T1 a1, T2 a2) -> decltype(a1 + a2)
22395 {
22396 return a1 + a2;
22397 }
22398
22399 int
22400 test(const int c, volatile int v)
22401 {
22402 static_assert(is_same<int, decltype(0)>::value == true, "");
22403 static_assert(is_same<int, decltype(c)>::value == false, "");
22404 static_assert(is_same<int, decltype(v)>::value == false, "");
22405 auto ac = c;
22406 auto av = v;
22407 auto sumi = ac + av + 'x';
22408 auto sumf = ac + av + 1.0;
22409 static_assert(is_same<int, decltype(ac)>::value == true, "");
22410 static_assert(is_same<int, decltype(av)>::value == true, "");
22411 static_assert(is_same<int, decltype(sumi)>::value == true, "");
22412 static_assert(is_same<int, decltype(sumf)>::value == false, "");
22413 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
22414 return (sumf > 0.0) ? sumi : add(c, v);
22415 }
22416
22417 }
22418
22419 namespace test_noexcept
22420 {
22421
22422 int f() { return 0; }
22423 int g() noexcept { return 0; }
22424
22425 static_assert(noexcept(f()) == false, "");
22426 static_assert(noexcept(g()) == true, "");
22427
22428 }
22429
22430 namespace test_constexpr
22431 {
22432
22433 template < typename CharT >
22434 unsigned long constexpr
22435 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
22436 {
22437 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
22438 }
22439
22440 template < typename CharT >
22441 unsigned long constexpr
22442 strlen_c(const CharT *const s) noexcept
22443 {
22444 return strlen_c_r(s, 0UL);
22445 }
22446
22447 static_assert(strlen_c("") == 0UL, "");
22448 static_assert(strlen_c("1") == 1UL, "");
22449 static_assert(strlen_c("example") == 7UL, "");
22450 static_assert(strlen_c("another\0example") == 7UL, "");
22451
22452 }
22453
22454 namespace test_rvalue_references
22455 {
22456
22457 template < int N >
22458 struct answer
22459 {
22460 static constexpr int value = N;
22461 };
22462
22463 answer<1> f(int&) { return answer<1>(); }
22464 answer<2> f(const int&) { return answer<2>(); }
22465 answer<3> f(int&&) { return answer<3>(); }
22466
22467 void
22468 test()
22469 {
22470 int i = 0;
22471 const int c = 0;
22472 static_assert(decltype(f(i))::value == 1, "");
22473 static_assert(decltype(f(c))::value == 2, "");
22474 static_assert(decltype(f(0))::value == 3, "");
22475 }
22476
22477 }
22478
22479 namespace test_uniform_initialization
22480 {
22481
22482 struct test
22483 {
22484 static const int zero {};
22485 static const int one {1};
22486 };
22487
22488 static_assert(test::zero == 0, "");
22489 static_assert(test::one == 1, "");
22490
22491 }
22492
22493 namespace test_lambdas
22494 {
22495
22496 void
22497 test1()
22498 {
22499 auto lambda1 = [](){};
22500 auto lambda2 = lambda1;
22501 lambda1();
22502 lambda2();
22503 }
22504
22505 int
22506 test2()
22507 {
22508 auto a = [](int i, int j){ return i + j; }(1, 2);
22509 auto b = []() -> int { return '0'; }();
22510 auto c = [=](){ return a + b; }();
22511 auto d = [&](){ return c; }();
22512 auto e = [a, &b](int x) mutable {
22513 const auto identity = [](int y){ return y; };
22514 for (auto i = 0; i < a; ++i)
22515 a += b--;
22516 return x + identity(a + b);
22517 }(0);
22518 return a + b + c + d + e;
22519 }
22520
22521 int
22522 test3()
22523 {
22524 const auto nullary = [](){ return 0; };
22525 const auto unary = [](int x){ return x; };
22526 using nullary_t = decltype(nullary);
22527 using unary_t = decltype(unary);
22528 const auto higher1st = [](nullary_t f){ return f(); };
22529 const auto higher2nd = [unary](nullary_t f1){
22530 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
22531 };
22532 return higher1st(nullary) + higher2nd(nullary)(unary);
22533 }
22534
22535 }
22536
22537 namespace test_variadic_templates
22538 {
22539
22540 template <int...>
22541 struct sum;
22542
22543 template <int N0, int... N1toN>
22544 struct sum<N0, N1toN...>
22545 {
22546 static constexpr auto value = N0 + sum<N1toN...>::value;
22547 };
22548
22549 template <>
22550 struct sum<>
22551 {
22552 static constexpr auto value = 0;
22553 };
22554
22555 static_assert(sum<>::value == 0, "");
22556 static_assert(sum<1>::value == 1, "");
22557 static_assert(sum<23>::value == 23, "");
22558 static_assert(sum<1, 2>::value == 3, "");
22559 static_assert(sum<5, 5, 11>::value == 21, "");
22560 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
22561
22562 }
22563
22564 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
22565 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
22566 // because of this.
22567 namespace test_template_alias_sfinae
22568 {
22569
22570 struct foo {};
22571
22572 template<typename T>
22573 using member = typename T::member_type;
22574
22575 template<typename T>
22576 void func(...) {}
22577
22578 template<typename T>
22579 void func(member<T>*) {}
22580
22581 void test();
22582
22583 void test() { func<foo>(0); }
22584
22585 }
22586
22587 } // namespace cxx11
22588
22589 #endif // __cplusplus >= 201103L
22590
22591
22592
22593
22594 // If the compiler admits that it is not ready for C++14, why torture it?
22595 // Hopefully, this will speed up the test.
22596
22597 #ifndef __cplusplus
22598
22599 #error "This is not a C++ compiler"
22600
22601 #elif __cplusplus < 201402L && !defined _MSC_VER
22602
22603 #error "This is not a C++14 compiler"
22604
22605 #else
22606
22607 namespace cxx14
22608 {
22609
22610 namespace test_polymorphic_lambdas
22611 {
22612
22613 int
22614 test()
22615 {
22616 const auto lambda = [](auto&&... args){
22617 const auto istiny = [](auto x){
22618 return (sizeof(x) == 1UL) ? 1 : 0;
22619 };
22620 const int aretiny[] = { istiny(args)... };
22621 return aretiny[0];
22622 };
22623 return lambda(1, 1L, 1.0f, '1');
22624 }
22625
22626 }
22627
22628 namespace test_binary_literals
22629 {
22630
22631 constexpr auto ivii = 0b0000000000101010;
22632 static_assert(ivii == 42, "wrong value");
22633
22634 }
22635
22636 namespace test_generalized_constexpr
22637 {
22638
22639 template < typename CharT >
22640 constexpr unsigned long
22641 strlen_c(const CharT *const s) noexcept
22642 {
22643 auto length = 0UL;
22644 for (auto p = s; *p; ++p)
22645 ++length;
22646 return length;
22647 }
22648
22649 static_assert(strlen_c("") == 0UL, "");
22650 static_assert(strlen_c("x") == 1UL, "");
22651 static_assert(strlen_c("test") == 4UL, "");
22652 static_assert(strlen_c("another\0test") == 7UL, "");
22653
22654 }
22655
22656 namespace test_lambda_init_capture
22657 {
22658
22659 int
22660 test()
22661 {
22662 auto x = 0;
22663 const auto lambda1 = [a = x](int b){ return a + b; };
22664 const auto lambda2 = [a = lambda1(x)](){ return a; };
22665 return lambda2();
22666 }
22667
22668 }
22669
22670 namespace test_digit_separators
22671 {
22672
22673 constexpr auto ten_million = 100'000'000;
22674 static_assert(ten_million == 100000000, "");
22675
22676 }
22677
22678 namespace test_return_type_deduction
22679 {
22680
22681 auto f(int& x) { return x; }
22682 decltype(auto) g(int& x) { return x; }
22683
22684 template < typename T1, typename T2 >
22685 struct is_same
22686 {
22687 static constexpr auto value = false;
22688 };
22689
22690 template < typename T >
22691 struct is_same<T, T>
22692 {
22693 static constexpr auto value = true;
22694 };
22695
22696 int
22697 test()
22698 {
22699 auto x = 0;
22700 static_assert(is_same<int, decltype(f(x))>::value, "");
22701 static_assert(is_same<int&, decltype(g(x))>::value, "");
22702 return x;
22703 }
22704
22705 }
22706
22707 } // namespace cxx14
22708
22709 #endif // __cplusplus >= 201402L
22710
22711
22712
22713
22714 // If the compiler admits that it is not ready for C++17, why torture it?
22715 // Hopefully, this will speed up the test.
22716
22717 #ifndef __cplusplus
22718
22719 #error "This is not a C++ compiler"
22720
22721 #elif __cplusplus < 201703L && !defined _MSC_VER
22722
22723 #error "This is not a C++17 compiler"
22724
22725 #else
22726
22727 #include <initializer_list>
22728 #include <utility>
22729 #include <type_traits>
22730
22731 namespace cxx17
22732 {
22733
22734 namespace test_constexpr_lambdas
22735 {
22736
22737 constexpr int foo = [](){return 42;}();
22738
22739 }
22740
22741 namespace test::nested_namespace::definitions
22742 {
22743
22744 }
22745
22746 namespace test_fold_expression
22747 {
22748
22749 template<typename... Args>
22750 int multiply(Args... args)
22751 {
22752 return (args * ... * 1);
22753 }
22754
22755 template<typename... Args>
22756 bool all(Args... args)
22757 {
22758 return (args && ...);
22759 }
22760
22761 }
22762
22763 namespace test_extended_static_assert
22764 {
22765
22766 static_assert (true);
22767
22768 }
22769
22770 namespace test_auto_brace_init_list
22771 {
22772
22773 auto foo = {5};
22774 auto bar {5};
22775
22776 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
22777 static_assert(std::is_same<int, decltype(bar)>::value);
22778 }
22779
22780 namespace test_typename_in_template_template_parameter
22781 {
22782
22783 template<template<typename> typename X> struct D;
22784
22785 }
22786
22787 namespace test_fallthrough_nodiscard_maybe_unused_attributes
22788 {
22789
22790 int f1()
22791 {
22792 return 42;
22793 }
22794
22795 [[nodiscard]] int f2()
22796 {
22797 [[maybe_unused]] auto unused = f1();
22798
22799 switch (f1())
22800 {
22801 case 17:
22802 f1();
22803 [[fallthrough]];
22804 case 42:
22805 f1();
22806 }
22807 return f1();
22808 }
22809
22810 }
22811
22812 namespace test_extended_aggregate_initialization
22813 {
22814
22815 struct base1
22816 {
22817 int b1, b2 = 42;
22818 };
22819
22820 struct base2
22821 {
22822 base2() {
22823 b3 = 42;
22824 }
22825 int b3;
22826 };
22827
22828 struct derived : base1, base2
22829 {
22830 int d;
22831 };
22832
22833 derived d1 {{1, 2}, {}, 4}; // full initialization
22834 derived d2 {{}, {}, 4}; // value-initialized bases
22835
22836 }
22837
22838 namespace test_general_range_based_for_loop
22839 {
22840
22841 struct iter
22842 {
22843 int i;
22844
22845 int& operator* ()
22846 {
22847 return i;
22848 }
22849
22850 const int& operator* () const
22851 {
22852 return i;
22853 }
22854
22855 iter& operator++()
22856 {
22857 ++i;
22858 return *this;
22859 }
22860 };
22861
22862 struct sentinel
22863 {
22864 int i;
22865 };
22866
22867 bool operator== (const iter& i, const sentinel& s)
22868 {
22869 return i.i == s.i;
22870 }
22871
22872 bool operator!= (const iter& i, const sentinel& s)
22873 {
22874 return !(i == s);
22875 }
22876
22877 struct range
22878 {
22879 iter begin() const
22880 {
22881 return {0};
22882 }
22883
22884 sentinel end() const
22885 {
22886 return {5};
22887 }
22888 };
22889
22890 void f()
22891 {
22892 range r {};
22893
22894 for (auto i : r)
22895 {
22896 [[maybe_unused]] auto v = i;
22897 }
22898 }
22899
22900 }
22901
22902 namespace test_lambda_capture_asterisk_this_by_value
22903 {
22904
22905 struct t
22906 {
22907 int i;
22908 int foo()
22909 {
22910 return [*this]()
22911 {
22912 return i;
22913 }();
22914 }
22915 };
22916
22917 }
22918
22919 namespace test_enum_class_construction
22920 {
22921
22922 enum class byte : unsigned char
22923 {};
22924
22925 byte foo {42};
22926
22927 }
22928
22929 namespace test_constexpr_if
22930 {
22931
22932 template <bool cond>
22933 int f ()
22934 {
22935 if constexpr(cond)
22936 {
22937 return 13;
22938 }
22939 else
22940 {
22941 return 42;
22942 }
22943 }
22944
22945 }
22946
22947 namespace test_selection_statement_with_initializer
22948 {
22949
22950 int f()
22951 {
22952 return 13;
22953 }
22954
22955 int f2()
22956 {
22957 if (auto i = f(); i > 0)
22958 {
22959 return 3;
22960 }
22961
22962 switch (auto i = f(); i + 4)
22963 {
22964 case 17:
22965 return 2;
22966
22967 default:
22968 return 1;
22969 }
22970 }
22971
22972 }
22973
22974 namespace test_template_argument_deduction_for_class_templates
22975 {
22976
22977 template <typename T1, typename T2>
22978 struct pair
22979 {
22980 pair (T1 p1, T2 p2)
22981 : m1 {p1},
22982 m2 {p2}
22983 {}
22984
22985 T1 m1;
22986 T2 m2;
22987 };
22988
22989 void f()
22990 {
22991 [[maybe_unused]] auto p = pair{13, 42u};
22992 }
22993
22994 }
22995
22996 namespace test_non_type_auto_template_parameters
22997 {
22998
22999 template <auto n>
23000 struct B
23001 {};
23002
23003 B<5> b1;
23004 B<'a'> b2;
23005
23006 }
23007
23008 namespace test_structured_bindings
23009 {
23010
23011 int arr[2] = { 1, 2 };
23012 std::pair<int, int> pr = { 1, 2 };
23013
23014 auto f1() -> int(&)[2]
23015 {
23016 return arr;
23017 }
23018
23019 auto f2() -> std::pair<int, int>&
23020 {
23021 return pr;
23022 }
23023
23024 struct S
23025 {
23026 int x1 : 2;
23027 volatile double y1;
23028 };
23029
23030 S f3()
23031 {
23032 return {};
23033 }
23034
23035 auto [ x1, y1 ] = f1();
23036 auto& [ xr1, yr1 ] = f1();
23037 auto [ x2, y2 ] = f2();
23038 auto& [ xr2, yr2 ] = f2();
23039 const auto [ x3, y3 ] = f3();
23040
23041 }
23042
23043 namespace test_exception_spec_type_system
23044 {
23045
23046 struct Good {};
23047 struct Bad {};
23048
23049 void g1() noexcept;
23050 void g2();
23051
23052 template<typename T>
23053 Bad
23054 f(T*, T*);
23055
23056 template<typename T1, typename T2>
23057 Good
23058 f(T1*, T2*);
23059
23060 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
23061
23062 }
23063
23064 namespace test_inline_variables
23065 {
23066
23067 template<class T> void f(T)
23068 {}
23069
23070 template<class T> inline T g(T)
23071 {
23072 return T{};
23073 }
23074
23075 template<> inline void f<>(int)
23076 {}
23077
23078 template<> int g<>(int)
23079 {
23080 return 5;
23081 }
23082
23083 }
23084
23085 } // namespace cxx17
23086
23087 #endif // __cplusplus < 201703L && !defined _MSC_VER
23088
23089
23090
23091 _ACEOF
23092 if ac_fn_cxx_try_compile "$LINENO"
23093 then :
23094 ax_cv_cxx_compile_cxx17=yes
23095 else case e in #(
23096 e) ax_cv_cxx_compile_cxx17=no ;;
23097 esac
23098 fi
23099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23100 esac
23101 fi
23102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
23103 printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
23104 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
23105 ac_success=yes
23106 fi
23107
23108 if test x$ac_success = xno; then
23109 for alternative in ${ax_cxx_compile_alternatives}; do
23110 switch="-std=gnu++${alternative}"
23111 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
23112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
23113 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
23114 if eval test \${$cachevar+y}
23115 then :
23116 printf %s "(cached) " >&6
23117 else case e in #(
23118 e) ac_save_CXX="$CXX"
23119 CXX="$CXX $switch"
23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121 /* end confdefs.h. */
23122
23123
23124 // If the compiler admits that it is not ready for C++11, why torture it?
23125 // Hopefully, this will speed up the test.
23126
23127 #ifndef __cplusplus
23128
23129 #error "This is not a C++ compiler"
23130
23131 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
23132 // only set it correctly if /Zc:__cplusplus is specified as well as a
23133 // /std:c++NN switch:
23134 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
23135 #elif __cplusplus < 201103L && !defined _MSC_VER
23136
23137 #error "This is not a C++11 compiler"
23138
23139 #else
23140
23141 namespace cxx11
23142 {
23143
23144 namespace test_static_assert
23145 {
23146
23147 template <typename T>
23148 struct check
23149 {
23150 static_assert(sizeof(int) <= sizeof(T), "not big enough");
23151 };
23152
23153 }
23154
23155 namespace test_final_override
23156 {
23157
23158 struct Base
23159 {
23160 virtual ~Base() {}
23161 virtual void f() {}
23162 };
23163
23164 struct Derived : public Base
23165 {
23166 virtual ~Derived() override {}
23167 virtual void f() override {}
23168 };
23169
23170 }
23171
23172 namespace test_double_right_angle_brackets
23173 {
23174
23175 template < typename T >
23176 struct check {};
23177
23178 typedef check<void> single_type;
23179 typedef check<check<void>> double_type;
23180 typedef check<check<check<void>>> triple_type;
23181 typedef check<check<check<check<void>>>> quadruple_type;
23182
23183 }
23184
23185 namespace test_decltype
23186 {
23187
23188 int
23189 f()
23190 {
23191 int a = 1;
23192 decltype(a) b = 2;
23193 return a + b;
23194 }
23195
23196 }
23197
23198 namespace test_type_deduction
23199 {
23200
23201 template < typename T1, typename T2 >
23202 struct is_same
23203 {
23204 static const bool value = false;
23205 };
23206
23207 template < typename T >
23208 struct is_same<T, T>
23209 {
23210 static const bool value = true;
23211 };
23212
23213 template < typename T1, typename T2 >
23214 auto
23215 add(T1 a1, T2 a2) -> decltype(a1 + a2)
23216 {
23217 return a1 + a2;
23218 }
23219
23220 int
23221 test(const int c, volatile int v)
23222 {
23223 static_assert(is_same<int, decltype(0)>::value == true, "");
23224 static_assert(is_same<int, decltype(c)>::value == false, "");
23225 static_assert(is_same<int, decltype(v)>::value == false, "");
23226 auto ac = c;
23227 auto av = v;
23228 auto sumi = ac + av + 'x';
23229 auto sumf = ac + av + 1.0;
23230 static_assert(is_same<int, decltype(ac)>::value == true, "");
23231 static_assert(is_same<int, decltype(av)>::value == true, "");
23232 static_assert(is_same<int, decltype(sumi)>::value == true, "");
23233 static_assert(is_same<int, decltype(sumf)>::value == false, "");
23234 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
23235 return (sumf > 0.0) ? sumi : add(c, v);
23236 }
23237
23238 }
23239
23240 namespace test_noexcept
23241 {
23242
23243 int f() { return 0; }
23244 int g() noexcept { return 0; }
23245
23246 static_assert(noexcept(f()) == false, "");
23247 static_assert(noexcept(g()) == true, "");
23248
23249 }
23250
23251 namespace test_constexpr
23252 {
23253
23254 template < typename CharT >
23255 unsigned long constexpr
23256 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
23257 {
23258 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
23259 }
23260
23261 template < typename CharT >
23262 unsigned long constexpr
23263 strlen_c(const CharT *const s) noexcept
23264 {
23265 return strlen_c_r(s, 0UL);
23266 }
23267
23268 static_assert(strlen_c("") == 0UL, "");
23269 static_assert(strlen_c("1") == 1UL, "");
23270 static_assert(strlen_c("example") == 7UL, "");
23271 static_assert(strlen_c("another\0example") == 7UL, "");
23272
23273 }
23274
23275 namespace test_rvalue_references
23276 {
23277
23278 template < int N >
23279 struct answer
23280 {
23281 static constexpr int value = N;
23282 };
23283
23284 answer<1> f(int&) { return answer<1>(); }
23285 answer<2> f(const int&) { return answer<2>(); }
23286 answer<3> f(int&&) { return answer<3>(); }
23287
23288 void
23289 test()
23290 {
23291 int i = 0;
23292 const int c = 0;
23293 static_assert(decltype(f(i))::value == 1, "");
23294 static_assert(decltype(f(c))::value == 2, "");
23295 static_assert(decltype(f(0))::value == 3, "");
23296 }
23297
23298 }
23299
23300 namespace test_uniform_initialization
23301 {
23302
23303 struct test
23304 {
23305 static const int zero {};
23306 static const int one {1};
23307 };
23308
23309 static_assert(test::zero == 0, "");
23310 static_assert(test::one == 1, "");
23311
23312 }
23313
23314 namespace test_lambdas
23315 {
23316
23317 void
23318 test1()
23319 {
23320 auto lambda1 = [](){};
23321 auto lambda2 = lambda1;
23322 lambda1();
23323 lambda2();
23324 }
23325
23326 int
23327 test2()
23328 {
23329 auto a = [](int i, int j){ return i + j; }(1, 2);
23330 auto b = []() -> int { return '0'; }();
23331 auto c = [=](){ return a + b; }();
23332 auto d = [&](){ return c; }();
23333 auto e = [a, &b](int x) mutable {
23334 const auto identity = [](int y){ return y; };
23335 for (auto i = 0; i < a; ++i)
23336 a += b--;
23337 return x + identity(a + b);
23338 }(0);
23339 return a + b + c + d + e;
23340 }
23341
23342 int
23343 test3()
23344 {
23345 const auto nullary = [](){ return 0; };
23346 const auto unary = [](int x){ return x; };
23347 using nullary_t = decltype(nullary);
23348 using unary_t = decltype(unary);
23349 const auto higher1st = [](nullary_t f){ return f(); };
23350 const auto higher2nd = [unary](nullary_t f1){
23351 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
23352 };
23353 return higher1st(nullary) + higher2nd(nullary)(unary);
23354 }
23355
23356 }
23357
23358 namespace test_variadic_templates
23359 {
23360
23361 template <int...>
23362 struct sum;
23363
23364 template <int N0, int... N1toN>
23365 struct sum<N0, N1toN...>
23366 {
23367 static constexpr auto value = N0 + sum<N1toN...>::value;
23368 };
23369
23370 template <>
23371 struct sum<>
23372 {
23373 static constexpr auto value = 0;
23374 };
23375
23376 static_assert(sum<>::value == 0, "");
23377 static_assert(sum<1>::value == 1, "");
23378 static_assert(sum<23>::value == 23, "");
23379 static_assert(sum<1, 2>::value == 3, "");
23380 static_assert(sum<5, 5, 11>::value == 21, "");
23381 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
23382
23383 }
23384
23385 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
23386 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
23387 // because of this.
23388 namespace test_template_alias_sfinae
23389 {
23390
23391 struct foo {};
23392
23393 template<typename T>
23394 using member = typename T::member_type;
23395
23396 template<typename T>
23397 void func(...) {}
23398
23399 template<typename T>
23400 void func(member<T>*) {}
23401
23402 void test();
23403
23404 void test() { func<foo>(0); }
23405
23406 }
23407
23408 } // namespace cxx11
23409
23410 #endif // __cplusplus >= 201103L
23411
23412
23413
23414
23415 // If the compiler admits that it is not ready for C++14, why torture it?
23416 // Hopefully, this will speed up the test.
23417
23418 #ifndef __cplusplus
23419
23420 #error "This is not a C++ compiler"
23421
23422 #elif __cplusplus < 201402L && !defined _MSC_VER
23423
23424 #error "This is not a C++14 compiler"
23425
23426 #else
23427
23428 namespace cxx14
23429 {
23430
23431 namespace test_polymorphic_lambdas
23432 {
23433
23434 int
23435 test()
23436 {
23437 const auto lambda = [](auto&&... args){
23438 const auto istiny = [](auto x){
23439 return (sizeof(x) == 1UL) ? 1 : 0;
23440 };
23441 const int aretiny[] = { istiny(args)... };
23442 return aretiny[0];
23443 };
23444 return lambda(1, 1L, 1.0f, '1');
23445 }
23446
23447 }
23448
23449 namespace test_binary_literals
23450 {
23451
23452 constexpr auto ivii = 0b0000000000101010;
23453 static_assert(ivii == 42, "wrong value");
23454
23455 }
23456
23457 namespace test_generalized_constexpr
23458 {
23459
23460 template < typename CharT >
23461 constexpr unsigned long
23462 strlen_c(const CharT *const s) noexcept
23463 {
23464 auto length = 0UL;
23465 for (auto p = s; *p; ++p)
23466 ++length;
23467 return length;
23468 }
23469
23470 static_assert(strlen_c("") == 0UL, "");
23471 static_assert(strlen_c("x") == 1UL, "");
23472 static_assert(strlen_c("test") == 4UL, "");
23473 static_assert(strlen_c("another\0test") == 7UL, "");
23474
23475 }
23476
23477 namespace test_lambda_init_capture
23478 {
23479
23480 int
23481 test()
23482 {
23483 auto x = 0;
23484 const auto lambda1 = [a = x](int b){ return a + b; };
23485 const auto lambda2 = [a = lambda1(x)](){ return a; };
23486 return lambda2();
23487 }
23488
23489 }
23490
23491 namespace test_digit_separators
23492 {
23493
23494 constexpr auto ten_million = 100'000'000;
23495 static_assert(ten_million == 100000000, "");
23496
23497 }
23498
23499 namespace test_return_type_deduction
23500 {
23501
23502 auto f(int& x) { return x; }
23503 decltype(auto) g(int& x) { return x; }
23504
23505 template < typename T1, typename T2 >
23506 struct is_same
23507 {
23508 static constexpr auto value = false;
23509 };
23510
23511 template < typename T >
23512 struct is_same<T, T>
23513 {
23514 static constexpr auto value = true;
23515 };
23516
23517 int
23518 test()
23519 {
23520 auto x = 0;
23521 static_assert(is_same<int, decltype(f(x))>::value, "");
23522 static_assert(is_same<int&, decltype(g(x))>::value, "");
23523 return x;
23524 }
23525
23526 }
23527
23528 } // namespace cxx14
23529
23530 #endif // __cplusplus >= 201402L
23531
23532
23533
23534
23535 // If the compiler admits that it is not ready for C++17, why torture it?
23536 // Hopefully, this will speed up the test.
23537
23538 #ifndef __cplusplus
23539
23540 #error "This is not a C++ compiler"
23541
23542 #elif __cplusplus < 201703L && !defined _MSC_VER
23543
23544 #error "This is not a C++17 compiler"
23545
23546 #else
23547
23548 #include <initializer_list>
23549 #include <utility>
23550 #include <type_traits>
23551
23552 namespace cxx17
23553 {
23554
23555 namespace test_constexpr_lambdas
23556 {
23557
23558 constexpr int foo = [](){return 42;}();
23559
23560 }
23561
23562 namespace test::nested_namespace::definitions
23563 {
23564
23565 }
23566
23567 namespace test_fold_expression
23568 {
23569
23570 template<typename... Args>
23571 int multiply(Args... args)
23572 {
23573 return (args * ... * 1);
23574 }
23575
23576 template<typename... Args>
23577 bool all(Args... args)
23578 {
23579 return (args && ...);
23580 }
23581
23582 }
23583
23584 namespace test_extended_static_assert
23585 {
23586
23587 static_assert (true);
23588
23589 }
23590
23591 namespace test_auto_brace_init_list
23592 {
23593
23594 auto foo = {5};
23595 auto bar {5};
23596
23597 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
23598 static_assert(std::is_same<int, decltype(bar)>::value);
23599 }
23600
23601 namespace test_typename_in_template_template_parameter
23602 {
23603
23604 template<template<typename> typename X> struct D;
23605
23606 }
23607
23608 namespace test_fallthrough_nodiscard_maybe_unused_attributes
23609 {
23610
23611 int f1()
23612 {
23613 return 42;
23614 }
23615
23616 [[nodiscard]] int f2()
23617 {
23618 [[maybe_unused]] auto unused = f1();
23619
23620 switch (f1())
23621 {
23622 case 17:
23623 f1();
23624 [[fallthrough]];
23625 case 42:
23626 f1();
23627 }
23628 return f1();
23629 }
23630
23631 }
23632
23633 namespace test_extended_aggregate_initialization
23634 {
23635
23636 struct base1
23637 {
23638 int b1, b2 = 42;
23639 };
23640
23641 struct base2
23642 {
23643 base2() {
23644 b3 = 42;
23645 }
23646 int b3;
23647 };
23648
23649 struct derived : base1, base2
23650 {
23651 int d;
23652 };
23653
23654 derived d1 {{1, 2}, {}, 4}; // full initialization
23655 derived d2 {{}, {}, 4}; // value-initialized bases
23656
23657 }
23658
23659 namespace test_general_range_based_for_loop
23660 {
23661
23662 struct iter
23663 {
23664 int i;
23665
23666 int& operator* ()
23667 {
23668 return i;
23669 }
23670
23671 const int& operator* () const
23672 {
23673 return i;
23674 }
23675
23676 iter& operator++()
23677 {
23678 ++i;
23679 return *this;
23680 }
23681 };
23682
23683 struct sentinel
23684 {
23685 int i;
23686 };
23687
23688 bool operator== (const iter& i, const sentinel& s)
23689 {
23690 return i.i == s.i;
23691 }
23692
23693 bool operator!= (const iter& i, const sentinel& s)
23694 {
23695 return !(i == s);
23696 }
23697
23698 struct range
23699 {
23700 iter begin() const
23701 {
23702 return {0};
23703 }
23704
23705 sentinel end() const
23706 {
23707 return {5};
23708 }
23709 };
23710
23711 void f()
23712 {
23713 range r {};
23714
23715 for (auto i : r)
23716 {
23717 [[maybe_unused]] auto v = i;
23718 }
23719 }
23720
23721 }
23722
23723 namespace test_lambda_capture_asterisk_this_by_value
23724 {
23725
23726 struct t
23727 {
23728 int i;
23729 int foo()
23730 {
23731 return [*this]()
23732 {
23733 return i;
23734 }();
23735 }
23736 };
23737
23738 }
23739
23740 namespace test_enum_class_construction
23741 {
23742
23743 enum class byte : unsigned char
23744 {};
23745
23746 byte foo {42};
23747
23748 }
23749
23750 namespace test_constexpr_if
23751 {
23752
23753 template <bool cond>
23754 int f ()
23755 {
23756 if constexpr(cond)
23757 {
23758 return 13;
23759 }
23760 else
23761 {
23762 return 42;
23763 }
23764 }
23765
23766 }
23767
23768 namespace test_selection_statement_with_initializer
23769 {
23770
23771 int f()
23772 {
23773 return 13;
23774 }
23775
23776 int f2()
23777 {
23778 if (auto i = f(); i > 0)
23779 {
23780 return 3;
23781 }
23782
23783 switch (auto i = f(); i + 4)
23784 {
23785 case 17:
23786 return 2;
23787
23788 default:
23789 return 1;
23790 }
23791 }
23792
23793 }
23794
23795 namespace test_template_argument_deduction_for_class_templates
23796 {
23797
23798 template <typename T1, typename T2>
23799 struct pair
23800 {
23801 pair (T1 p1, T2 p2)
23802 : m1 {p1},
23803 m2 {p2}
23804 {}
23805
23806 T1 m1;
23807 T2 m2;
23808 };
23809
23810 void f()
23811 {
23812 [[maybe_unused]] auto p = pair{13, 42u};
23813 }
23814
23815 }
23816
23817 namespace test_non_type_auto_template_parameters
23818 {
23819
23820 template <auto n>
23821 struct B
23822 {};
23823
23824 B<5> b1;
23825 B<'a'> b2;
23826
23827 }
23828
23829 namespace test_structured_bindings
23830 {
23831
23832 int arr[2] = { 1, 2 };
23833 std::pair<int, int> pr = { 1, 2 };
23834
23835 auto f1() -> int(&)[2]
23836 {
23837 return arr;
23838 }
23839
23840 auto f2() -> std::pair<int, int>&
23841 {
23842 return pr;
23843 }
23844
23845 struct S
23846 {
23847 int x1 : 2;
23848 volatile double y1;
23849 };
23850
23851 S f3()
23852 {
23853 return {};
23854 }
23855
23856 auto [ x1, y1 ] = f1();
23857 auto& [ xr1, yr1 ] = f1();
23858 auto [ x2, y2 ] = f2();
23859 auto& [ xr2, yr2 ] = f2();
23860 const auto [ x3, y3 ] = f3();
23861
23862 }
23863
23864 namespace test_exception_spec_type_system
23865 {
23866
23867 struct Good {};
23868 struct Bad {};
23869
23870 void g1() noexcept;
23871 void g2();
23872
23873 template<typename T>
23874 Bad
23875 f(T*, T*);
23876
23877 template<typename T1, typename T2>
23878 Good
23879 f(T1*, T2*);
23880
23881 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
23882
23883 }
23884
23885 namespace test_inline_variables
23886 {
23887
23888 template<class T> void f(T)
23889 {}
23890
23891 template<class T> inline T g(T)
23892 {
23893 return T{};
23894 }
23895
23896 template<> inline void f<>(int)
23897 {}
23898
23899 template<> int g<>(int)
23900 {
23901 return 5;
23902 }
23903
23904 }
23905
23906 } // namespace cxx17
23907
23908 #endif // __cplusplus < 201703L && !defined _MSC_VER
23909
23910
23911
23912 _ACEOF
23913 if ac_fn_cxx_try_compile "$LINENO"
23914 then :
23915 eval $cachevar=yes
23916 else case e in #(
23917 e) eval $cachevar=no ;;
23918 esac
23919 fi
23920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23921 CXX="$ac_save_CXX" ;;
23922 esac
23923 fi
23924 eval ac_res=\$$cachevar
23925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23926 printf "%s\n" "$ac_res" >&6; }
23927 if eval test x\$$cachevar = xyes; then
23928 CXX="$CXX $switch"
23929 if test -n "$CXXCPP" ; then
23930 CXXCPP="$CXXCPP $switch"
23931 fi
23932 ac_success=yes
23933 break
23934 fi
23935 done
23936 fi
23937
23938 if test x$ac_success = xno; then
23939 for alternative in ${ax_cxx_compile_alternatives}; do
23940 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
23941 if test x"$switch" = xMSVC; then
23942 switch=-std:c++${alternative}
23943 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | sed "$as_sed_sh"`
23944 else
23945 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
23946 fi
23947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
23948 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
23949 if eval test \${$cachevar+y}
23950 then :
23951 printf %s "(cached) " >&6
23952 else case e in #(
23953 e) ac_save_CXX="$CXX"
23954 CXX="$CXX $switch"
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h. */
23957
23958
23959 // If the compiler admits that it is not ready for C++11, why torture it?
23960 // Hopefully, this will speed up the test.
23961
23962 #ifndef __cplusplus
23963
23964 #error "This is not a C++ compiler"
23965
23966 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
23967 // only set it correctly if /Zc:__cplusplus is specified as well as a
23968 // /std:c++NN switch:
23969 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
23970 #elif __cplusplus < 201103L && !defined _MSC_VER
23971
23972 #error "This is not a C++11 compiler"
23973
23974 #else
23975
23976 namespace cxx11
23977 {
23978
23979 namespace test_static_assert
23980 {
23981
23982 template <typename T>
23983 struct check
23984 {
23985 static_assert(sizeof(int) <= sizeof(T), "not big enough");
23986 };
23987
23988 }
23989
23990 namespace test_final_override
23991 {
23992
23993 struct Base
23994 {
23995 virtual ~Base() {}
23996 virtual void f() {}
23997 };
23998
23999 struct Derived : public Base
24000 {
24001 virtual ~Derived() override {}
24002 virtual void f() override {}
24003 };
24004
24005 }
24006
24007 namespace test_double_right_angle_brackets
24008 {
24009
24010 template < typename T >
24011 struct check {};
24012
24013 typedef check<void> single_type;
24014 typedef check<check<void>> double_type;
24015 typedef check<check<check<void>>> triple_type;
24016 typedef check<check<check<check<void>>>> quadruple_type;
24017
24018 }
24019
24020 namespace test_decltype
24021 {
24022
24023 int
24024 f()
24025 {
24026 int a = 1;
24027 decltype(a) b = 2;
24028 return a + b;
24029 }
24030
24031 }
24032
24033 namespace test_type_deduction
24034 {
24035
24036 template < typename T1, typename T2 >
24037 struct is_same
24038 {
24039 static const bool value = false;
24040 };
24041
24042 template < typename T >
24043 struct is_same<T, T>
24044 {
24045 static const bool value = true;
24046 };
24047
24048 template < typename T1, typename T2 >
24049 auto
24050 add(T1 a1, T2 a2) -> decltype(a1 + a2)
24051 {
24052 return a1 + a2;
24053 }
24054
24055 int
24056 test(const int c, volatile int v)
24057 {
24058 static_assert(is_same<int, decltype(0)>::value == true, "");
24059 static_assert(is_same<int, decltype(c)>::value == false, "");
24060 static_assert(is_same<int, decltype(v)>::value == false, "");
24061 auto ac = c;
24062 auto av = v;
24063 auto sumi = ac + av + 'x';
24064 auto sumf = ac + av + 1.0;
24065 static_assert(is_same<int, decltype(ac)>::value == true, "");
24066 static_assert(is_same<int, decltype(av)>::value == true, "");
24067 static_assert(is_same<int, decltype(sumi)>::value == true, "");
24068 static_assert(is_same<int, decltype(sumf)>::value == false, "");
24069 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
24070 return (sumf > 0.0) ? sumi : add(c, v);
24071 }
24072
24073 }
24074
24075 namespace test_noexcept
24076 {
24077
24078 int f() { return 0; }
24079 int g() noexcept { return 0; }
24080
24081 static_assert(noexcept(f()) == false, "");
24082 static_assert(noexcept(g()) == true, "");
24083
24084 }
24085
24086 namespace test_constexpr
24087 {
24088
24089 template < typename CharT >
24090 unsigned long constexpr
24091 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
24092 {
24093 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
24094 }
24095
24096 template < typename CharT >
24097 unsigned long constexpr
24098 strlen_c(const CharT *const s) noexcept
24099 {
24100 return strlen_c_r(s, 0UL);
24101 }
24102
24103 static_assert(strlen_c("") == 0UL, "");
24104 static_assert(strlen_c("1") == 1UL, "");
24105 static_assert(strlen_c("example") == 7UL, "");
24106 static_assert(strlen_c("another\0example") == 7UL, "");
24107
24108 }
24109
24110 namespace test_rvalue_references
24111 {
24112
24113 template < int N >
24114 struct answer
24115 {
24116 static constexpr int value = N;
24117 };
24118
24119 answer<1> f(int&) { return answer<1>(); }
24120 answer<2> f(const int&) { return answer<2>(); }
24121 answer<3> f(int&&) { return answer<3>(); }
24122
24123 void
24124 test()
24125 {
24126 int i = 0;
24127 const int c = 0;
24128 static_assert(decltype(f(i))::value == 1, "");
24129 static_assert(decltype(f(c))::value == 2, "");
24130 static_assert(decltype(f(0))::value == 3, "");
24131 }
24132
24133 }
24134
24135 namespace test_uniform_initialization
24136 {
24137
24138 struct test
24139 {
24140 static const int zero {};
24141 static const int one {1};
24142 };
24143
24144 static_assert(test::zero == 0, "");
24145 static_assert(test::one == 1, "");
24146
24147 }
24148
24149 namespace test_lambdas
24150 {
24151
24152 void
24153 test1()
24154 {
24155 auto lambda1 = [](){};
24156 auto lambda2 = lambda1;
24157 lambda1();
24158 lambda2();
24159 }
24160
24161 int
24162 test2()
24163 {
24164 auto a = [](int i, int j){ return i + j; }(1, 2);
24165 auto b = []() -> int { return '0'; }();
24166 auto c = [=](){ return a + b; }();
24167 auto d = [&](){ return c; }();
24168 auto e = [a, &b](int x) mutable {
24169 const auto identity = [](int y){ return y; };
24170 for (auto i = 0; i < a; ++i)
24171 a += b--;
24172 return x + identity(a + b);
24173 }(0);
24174 return a + b + c + d + e;
24175 }
24176
24177 int
24178 test3()
24179 {
24180 const auto nullary = [](){ return 0; };
24181 const auto unary = [](int x){ return x; };
24182 using nullary_t = decltype(nullary);
24183 using unary_t = decltype(unary);
24184 const auto higher1st = [](nullary_t f){ return f(); };
24185 const auto higher2nd = [unary](nullary_t f1){
24186 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
24187 };
24188 return higher1st(nullary) + higher2nd(nullary)(unary);
24189 }
24190
24191 }
24192
24193 namespace test_variadic_templates
24194 {
24195
24196 template <int...>
24197 struct sum;
24198
24199 template <int N0, int... N1toN>
24200 struct sum<N0, N1toN...>
24201 {
24202 static constexpr auto value = N0 + sum<N1toN...>::value;
24203 };
24204
24205 template <>
24206 struct sum<>
24207 {
24208 static constexpr auto value = 0;
24209 };
24210
24211 static_assert(sum<>::value == 0, "");
24212 static_assert(sum<1>::value == 1, "");
24213 static_assert(sum<23>::value == 23, "");
24214 static_assert(sum<1, 2>::value == 3, "");
24215 static_assert(sum<5, 5, 11>::value == 21, "");
24216 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
24217
24218 }
24219
24220 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
24221 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
24222 // because of this.
24223 namespace test_template_alias_sfinae
24224 {
24225
24226 struct foo {};
24227
24228 template<typename T>
24229 using member = typename T::member_type;
24230
24231 template<typename T>
24232 void func(...) {}
24233
24234 template<typename T>
24235 void func(member<T>*) {}
24236
24237 void test();
24238
24239 void test() { func<foo>(0); }
24240
24241 }
24242
24243 } // namespace cxx11
24244
24245 #endif // __cplusplus >= 201103L
24246
24247
24248
24249
24250 // If the compiler admits that it is not ready for C++14, why torture it?
24251 // Hopefully, this will speed up the test.
24252
24253 #ifndef __cplusplus
24254
24255 #error "This is not a C++ compiler"
24256
24257 #elif __cplusplus < 201402L && !defined _MSC_VER
24258
24259 #error "This is not a C++14 compiler"
24260
24261 #else
24262
24263 namespace cxx14
24264 {
24265
24266 namespace test_polymorphic_lambdas
24267 {
24268
24269 int
24270 test()
24271 {
24272 const auto lambda = [](auto&&... args){
24273 const auto istiny = [](auto x){
24274 return (sizeof(x) == 1UL) ? 1 : 0;
24275 };
24276 const int aretiny[] = { istiny(args)... };
24277 return aretiny[0];
24278 };
24279 return lambda(1, 1L, 1.0f, '1');
24280 }
24281
24282 }
24283
24284 namespace test_binary_literals
24285 {
24286
24287 constexpr auto ivii = 0b0000000000101010;
24288 static_assert(ivii == 42, "wrong value");
24289
24290 }
24291
24292 namespace test_generalized_constexpr
24293 {
24294
24295 template < typename CharT >
24296 constexpr unsigned long
24297 strlen_c(const CharT *const s) noexcept
24298 {
24299 auto length = 0UL;
24300 for (auto p = s; *p; ++p)
24301 ++length;
24302 return length;
24303 }
24304
24305 static_assert(strlen_c("") == 0UL, "");
24306 static_assert(strlen_c("x") == 1UL, "");
24307 static_assert(strlen_c("test") == 4UL, "");
24308 static_assert(strlen_c("another\0test") == 7UL, "");
24309
24310 }
24311
24312 namespace test_lambda_init_capture
24313 {
24314
24315 int
24316 test()
24317 {
24318 auto x = 0;
24319 const auto lambda1 = [a = x](int b){ return a + b; };
24320 const auto lambda2 = [a = lambda1(x)](){ return a; };
24321 return lambda2();
24322 }
24323
24324 }
24325
24326 namespace test_digit_separators
24327 {
24328
24329 constexpr auto ten_million = 100'000'000;
24330 static_assert(ten_million == 100000000, "");
24331
24332 }
24333
24334 namespace test_return_type_deduction
24335 {
24336
24337 auto f(int& x) { return x; }
24338 decltype(auto) g(int& x) { return x; }
24339
24340 template < typename T1, typename T2 >
24341 struct is_same
24342 {
24343 static constexpr auto value = false;
24344 };
24345
24346 template < typename T >
24347 struct is_same<T, T>
24348 {
24349 static constexpr auto value = true;
24350 };
24351
24352 int
24353 test()
24354 {
24355 auto x = 0;
24356 static_assert(is_same<int, decltype(f(x))>::value, "");
24357 static_assert(is_same<int&, decltype(g(x))>::value, "");
24358 return x;
24359 }
24360
24361 }
24362
24363 } // namespace cxx14
24364
24365 #endif // __cplusplus >= 201402L
24366
24367
24368
24369
24370 // If the compiler admits that it is not ready for C++17, why torture it?
24371 // Hopefully, this will speed up the test.
24372
24373 #ifndef __cplusplus
24374
24375 #error "This is not a C++ compiler"
24376
24377 #elif __cplusplus < 201703L && !defined _MSC_VER
24378
24379 #error "This is not a C++17 compiler"
24380
24381 #else
24382
24383 #include <initializer_list>
24384 #include <utility>
24385 #include <type_traits>
24386
24387 namespace cxx17
24388 {
24389
24390 namespace test_constexpr_lambdas
24391 {
24392
24393 constexpr int foo = [](){return 42;}();
24394
24395 }
24396
24397 namespace test::nested_namespace::definitions
24398 {
24399
24400 }
24401
24402 namespace test_fold_expression
24403 {
24404
24405 template<typename... Args>
24406 int multiply(Args... args)
24407 {
24408 return (args * ... * 1);
24409 }
24410
24411 template<typename... Args>
24412 bool all(Args... args)
24413 {
24414 return (args && ...);
24415 }
24416
24417 }
24418
24419 namespace test_extended_static_assert
24420 {
24421
24422 static_assert (true);
24423
24424 }
24425
24426 namespace test_auto_brace_init_list
24427 {
24428
24429 auto foo = {5};
24430 auto bar {5};
24431
24432 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
24433 static_assert(std::is_same<int, decltype(bar)>::value);
24434 }
24435
24436 namespace test_typename_in_template_template_parameter
24437 {
24438
24439 template<template<typename> typename X> struct D;
24440
24441 }
24442
24443 namespace test_fallthrough_nodiscard_maybe_unused_attributes
24444 {
24445
24446 int f1()
24447 {
24448 return 42;
24449 }
24450
24451 [[nodiscard]] int f2()
24452 {
24453 [[maybe_unused]] auto unused = f1();
24454
24455 switch (f1())
24456 {
24457 case 17:
24458 f1();
24459 [[fallthrough]];
24460 case 42:
24461 f1();
24462 }
24463 return f1();
24464 }
24465
24466 }
24467
24468 namespace test_extended_aggregate_initialization
24469 {
24470
24471 struct base1
24472 {
24473 int b1, b2 = 42;
24474 };
24475
24476 struct base2
24477 {
24478 base2() {
24479 b3 = 42;
24480 }
24481 int b3;
24482 };
24483
24484 struct derived : base1, base2
24485 {
24486 int d;
24487 };
24488
24489 derived d1 {{1, 2}, {}, 4}; // full initialization
24490 derived d2 {{}, {}, 4}; // value-initialized bases
24491
24492 }
24493
24494 namespace test_general_range_based_for_loop
24495 {
24496
24497 struct iter
24498 {
24499 int i;
24500
24501 int& operator* ()
24502 {
24503 return i;
24504 }
24505
24506 const int& operator* () const
24507 {
24508 return i;
24509 }
24510
24511 iter& operator++()
24512 {
24513 ++i;
24514 return *this;
24515 }
24516 };
24517
24518 struct sentinel
24519 {
24520 int i;
24521 };
24522
24523 bool operator== (const iter& i, const sentinel& s)
24524 {
24525 return i.i == s.i;
24526 }
24527
24528 bool operator!= (const iter& i, const sentinel& s)
24529 {
24530 return !(i == s);
24531 }
24532
24533 struct range
24534 {
24535 iter begin() const
24536 {
24537 return {0};
24538 }
24539
24540 sentinel end() const
24541 {
24542 return {5};
24543 }
24544 };
24545
24546 void f()
24547 {
24548 range r {};
24549
24550 for (auto i : r)
24551 {
24552 [[maybe_unused]] auto v = i;
24553 }
24554 }
24555
24556 }
24557
24558 namespace test_lambda_capture_asterisk_this_by_value
24559 {
24560
24561 struct t
24562 {
24563 int i;
24564 int foo()
24565 {
24566 return [*this]()
24567 {
24568 return i;
24569 }();
24570 }
24571 };
24572
24573 }
24574
24575 namespace test_enum_class_construction
24576 {
24577
24578 enum class byte : unsigned char
24579 {};
24580
24581 byte foo {42};
24582
24583 }
24584
24585 namespace test_constexpr_if
24586 {
24587
24588 template <bool cond>
24589 int f ()
24590 {
24591 if constexpr(cond)
24592 {
24593 return 13;
24594 }
24595 else
24596 {
24597 return 42;
24598 }
24599 }
24600
24601 }
24602
24603 namespace test_selection_statement_with_initializer
24604 {
24605
24606 int f()
24607 {
24608 return 13;
24609 }
24610
24611 int f2()
24612 {
24613 if (auto i = f(); i > 0)
24614 {
24615 return 3;
24616 }
24617
24618 switch (auto i = f(); i + 4)
24619 {
24620 case 17:
24621 return 2;
24622
24623 default:
24624 return 1;
24625 }
24626 }
24627
24628 }
24629
24630 namespace test_template_argument_deduction_for_class_templates
24631 {
24632
24633 template <typename T1, typename T2>
24634 struct pair
24635 {
24636 pair (T1 p1, T2 p2)
24637 : m1 {p1},
24638 m2 {p2}
24639 {}
24640
24641 T1 m1;
24642 T2 m2;
24643 };
24644
24645 void f()
24646 {
24647 [[maybe_unused]] auto p = pair{13, 42u};
24648 }
24649
24650 }
24651
24652 namespace test_non_type_auto_template_parameters
24653 {
24654
24655 template <auto n>
24656 struct B
24657 {};
24658
24659 B<5> b1;
24660 B<'a'> b2;
24661
24662 }
24663
24664 namespace test_structured_bindings
24665 {
24666
24667 int arr[2] = { 1, 2 };
24668 std::pair<int, int> pr = { 1, 2 };
24669
24670 auto f1() -> int(&)[2]
24671 {
24672 return arr;
24673 }
24674
24675 auto f2() -> std::pair<int, int>&
24676 {
24677 return pr;
24678 }
24679
24680 struct S
24681 {
24682 int x1 : 2;
24683 volatile double y1;
24684 };
24685
24686 S f3()
24687 {
24688 return {};
24689 }
24690
24691 auto [ x1, y1 ] = f1();
24692 auto& [ xr1, yr1 ] = f1();
24693 auto [ x2, y2 ] = f2();
24694 auto& [ xr2, yr2 ] = f2();
24695 const auto [ x3, y3 ] = f3();
24696
24697 }
24698
24699 namespace test_exception_spec_type_system
24700 {
24701
24702 struct Good {};
24703 struct Bad {};
24704
24705 void g1() noexcept;
24706 void g2();
24707
24708 template<typename T>
24709 Bad
24710 f(T*, T*);
24711
24712 template<typename T1, typename T2>
24713 Good
24714 f(T1*, T2*);
24715
24716 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
24717
24718 }
24719
24720 namespace test_inline_variables
24721 {
24722
24723 template<class T> void f(T)
24724 {}
24725
24726 template<class T> inline T g(T)
24727 {
24728 return T{};
24729 }
24730
24731 template<> inline void f<>(int)
24732 {}
24733
24734 template<> int g<>(int)
24735 {
24736 return 5;
24737 }
24738
24739 }
24740
24741 } // namespace cxx17
24742
24743 #endif // __cplusplus < 201703L && !defined _MSC_VER
24744
24745
24746
24747 _ACEOF
24748 if ac_fn_cxx_try_compile "$LINENO"
24749 then :
24750 eval $cachevar=yes
24751 else case e in #(
24752 e) eval $cachevar=no ;;
24753 esac
24754 fi
24755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24756 CXX="$ac_save_CXX" ;;
24757 esac
24758 fi
24759 eval ac_res=\$$cachevar
24760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24761 printf "%s\n" "$ac_res" >&6; }
24762 if eval test x\$$cachevar = xyes; then
24763 CXX="$CXX $switch"
24764 if test -n "$CXXCPP" ; then
24765 CXXCPP="$CXXCPP $switch"
24766 fi
24767 ac_success=yes
24768 break
24769 fi
24770 done
24771 if test x$ac_success = xyes; then
24772 break
24773 fi
24774 done
24775 fi
24776 ac_ext=cpp
24777 ac_cpp='$CXXCPP $CPPFLAGS'
24778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24781
24782 if test x$ax_cxx_compile_cxx17_required = xtrue; then
24783 if test x$ac_success = xno; then
24784 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
24785 fi
24786 fi
24787 if test x$ac_success = xno; then
24788 HAVE_CXX17=0
24789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
24790 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
24791 else
24792 HAVE_CXX17=1
24793
24794 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
24795
24796 fi
24797
24798
24799 fi
24800
24801
24802
24803
24804 # ===========================
24805 # Find required boost headers
24806 # ===========================
24807
24808 for ac_header in boost/algorithm/string.hpp boost/cstdint.hpp boost/optional.hpp boost/property_tree/json_parser.hpp boost/property_tree/ptree.hpp boost/spirit/include/qi.hpp
24809 do :
24810 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
24811 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
24812
24813 "
24814 if eval test \"x\$"$as_ac_Header"\" = x"yes"
24815 then :
24816 cat >>confdefs.h <<_ACEOF
24817 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
24818 _ACEOF
24819
24820 else case e in #(
24821 e) as_fn_error $? "Required boost headers not found. Install boost >= 1.41.0" "$LINENO" 5 ;;
24822 esac
24823 fi
24824
24825 done
24826
24827 # =================================
24828 # Libtool/Version Makefile settings
24829 # =================================
24830 CDR_MAJOR_VERSION=0
24831
24832 CDR_MINOR_VERSION=1
24833
24834 CDR_MICRO_VERSION=9
24835
24836 CDR_VERSION=0.1.9
24837
24838 # AC_SUBST(LT_RELEASE, [libcdr_version_major.libcdr_version_minor])
24839 LT_CURRENT=`expr 100 '*' 0 + 1`
24840 # For 1.0.0 comment the first line and uncomment the second
24841 LT_AGE=0
24842 # LT_AGE=libcdr_version_minor
24843
24844 LT_REVISION=9
24845
24846
24847
24848 # ==========================
24849 # Platform check for windows
24850 # ==========================
24851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
24852 printf %s "checking for native Win32... " >&6; }
24853 case $host in #(
24854 *-*-mingw*) :
24855
24856 native_win32=yes
24857 LIBCDR_WIN32_RESOURCE=libcdr-win32res.lo
24858 CDR2RAW_WIN32_RESOURCE=cdr2raw-win32res.lo
24859 CDR2TEXT_WIN32_RESOURCE=cdr2raw-win32res.lo
24860 CDR2XHTML_WIN32_RESOURCE=cdr2xhtml-win32res.lo
24861 CMX2RAW_WIN32_RESOURCE=cmx2raw-win32res.lo
24862 CMX2TEXT_WIN32_RESOURCE=cmx2raw-win32res.lo
24863 CMX2XHTML_WIN32_RESOURCE=cmx2xhtml-win32res.lo
24864 ;; #(
24865 *) :
24866
24867 native_win32=no
24868 LIBCDR_WIN32_RESOURCE=
24869 CDR2RAW_WIN32_RESOURCE=
24870 CDR2TEXT_WIN32_RESOURCE=
24871 CDR2XHTML_WIN32_RESOURCE=
24872 CMX2RAW_WIN32_RESOURCE=
24873 CMX2TEXT_WIN32_RESOURCE=
24874 CMX2XHTML_WIN32_RESOURCE=
24875
24876 ;;
24877 esac
24878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
24879 printf "%s\n" "$native_win32" >&6; }
24880 if test "x$native_win32" = "xyes"; then
24881 OS_WIN32_TRUE=
24882 OS_WIN32_FALSE='#'
24883 else
24884 OS_WIN32_TRUE='#'
24885 OS_WIN32_FALSE=
24886 fi
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
24897 printf %s "checking for Win32 platform in general... " >&6; }
24898 case $host in #(
24899 *-*-mingw*|*-*-cygwin*) :
24900 platform_win32=yes ;; #(
24901 *) :
24902 platform_win32=no
24903 ;;
24904 esac
24905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
24906 printf "%s\n" "$platform_win32" >&6; }
24907 if test "x$platform_win32" = "xyes"; then
24908 PLATFORM_WIN32_TRUE=
24909 PLATFORM_WIN32_FALSE='#'
24910 else
24911 PLATFORM_WIN32_TRUE='#'
24912 PLATFORM_WIN32_FALSE=
24913 fi
24914
24915
24916 if test $platform_win32 = yes
24917 then :
24918
24919 else case e in #(
24920 e)
24921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
24922 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
24923 saved_CXXFLAGS="$CXXFLAGS"
24924 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
24925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926 /* end confdefs.h. */
24927
24928 int
24929 main (void)
24930 {
24931
24932 ;
24933 return 0;
24934 }
24935 _ACEOF
24936 if ac_fn_cxx_try_compile "$LINENO"
24937 then :
24938 have_visibility=yes
24939 else case e in #(
24940 e) have_visibility=no ;;
24941 esac
24942 fi
24943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
24945 printf "%s\n" "$have_visibility" >&6; }
24946 CXXFLAGS="$saved_CXXFLAGS"
24947
24948
24949
24950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
24951 printf %s "checking for __attribute__((visibility))... " >&6; }
24952 if test ${ax_cv_have_func_attribute_visibility+y}
24953 then :
24954 printf %s "(cached) " >&6
24955 else case e in #(
24956 e)
24957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h. */
24959
24960
24961 int foo_def( void ) __attribute__((visibility("default")));
24962 int foo_hid( void ) __attribute__((visibility("hidden")));
24963 int foo_int( void ) __attribute__((visibility("internal")));
24964 int foo_pro( void ) __attribute__((visibility("protected")));
24965
24966 int
24967 main (void)
24968 {
24969
24970 ;
24971 return 0;
24972 }
24973
24974 _ACEOF
24975 if ac_fn_cxx_try_link "$LINENO"
24976 then :
24977 if grep -- -Wattributes conftest.err
24978 then :
24979 ax_cv_have_func_attribute_visibility=no
24980 else case e in #(
24981 e) ax_cv_have_func_attribute_visibility=yes ;;
24982 esac
24983 fi
24984 else case e in #(
24985 e) ax_cv_have_func_attribute_visibility=no ;;
24986 esac
24987 fi
24988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24989 conftest$ac_exeext conftest.$ac_ext
24990 ;;
24991 esac
24992 fi
24993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
24994 printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
24995
24996 if test yes = $ax_cv_have_func_attribute_visibility
24997 then :
24998
24999 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25000
25001 fi
25002
25003
25004
25005
25006 ;;
25007 esac
25008 fi
25009 if
25010 test x"$have_visibility" = xyes && test x"$ax_cv_have_func_attribute_visibility" = xyes; then
25011 HAVE_VISIBILITY_TRUE=
25012 HAVE_VISIBILITY_FALSE='#'
25013 else
25014 HAVE_VISIBILITY_TRUE='#'
25015 HAVE_VISIBILITY_FALSE=
25016 fi
25017
25018
25019 # ================
25020 # Check for cflags
25021 # ================
25022 # Check whether --enable-werror was given.
25023 if test ${enable_werror+y}
25024 then :
25025 enableval=$enable_werror; enable_werror="$enableval"
25026 else case e in #(
25027 e) enable_werror=no
25028 ;;
25029 esac
25030 fi
25031
25032 if test x"$enable_werror" != "xno"
25033 then :
25034
25035 CFLAGS="$CFLAGS -Werror"
25036 CXXFLAGS="$CXXFLAGS -Werror"
25037
25038 fi
25039 # Check whether --enable-weffc was given.
25040 if test ${enable_weffc+y}
25041 then :
25042 enableval=$enable_weffc; enable_weffc="$enableval"
25043 else case e in #(
25044 e) enable_weffc=yes
25045 ;;
25046 esac
25047 fi
25048
25049 # Check whether --enable-wparanoic was given.
25050 if test ${enable_wparanoic+y}
25051 then :
25052 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
25053 else case e in #(
25054 e) enable_wparanoic=no
25055 ;;
25056 esac
25057 fi
25058
25059 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
25060 # is used when compiling for Win32 with gcc.
25061 if test "x$native_win32" = "xyes"
25062 then :
25063
25064 if test -n "$ac_tool_prefix"; then
25065 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
25066 set dummy ${ac_tool_prefix}windres; ac_word=$2
25067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25068 printf %s "checking for $ac_word... " >&6; }
25069 if test ${ac_cv_prog_WINDRES+y}
25070 then :
25071 printf %s "(cached) " >&6
25072 else case e in #(
25073 e) if test -n "$WINDRES"; then
25074 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
25075 else
25076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25077 for as_dir in $PATH
25078 do
25079 IFS=$as_save_IFS
25080 case $as_dir in #(((
25081 '') as_dir=./ ;;
25082 */) ;;
25083 *) as_dir=$as_dir/ ;;
25084 esac
25085 for ac_exec_ext in '' $ac_executable_extensions; do
25086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25087 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
25088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25089 break 2
25090 fi
25091 done
25092 done
25093 IFS=$as_save_IFS
25094
25095 fi ;;
25096 esac
25097 fi
25098 WINDRES=$ac_cv_prog_WINDRES
25099 if test -n "$WINDRES"; then
25100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
25101 printf "%s\n" "$WINDRES" >&6; }
25102 else
25103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25104 printf "%s\n" "no" >&6; }
25105 fi
25106
25107
25108 fi
25109 if test -z "$ac_cv_prog_WINDRES"; then
25110 ac_ct_WINDRES=$WINDRES
25111 # Extract the first word of "windres", so it can be a program name with args.
25112 set dummy windres; ac_word=$2
25113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25114 printf %s "checking for $ac_word... " >&6; }
25115 if test ${ac_cv_prog_ac_ct_WINDRES+y}
25116 then :
25117 printf %s "(cached) " >&6
25118 else case e in #(
25119 e) if test -n "$ac_ct_WINDRES"; then
25120 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
25121 else
25122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25123 for as_dir in $PATH
25124 do
25125 IFS=$as_save_IFS
25126 case $as_dir in #(((
25127 '') as_dir=./ ;;
25128 */) ;;
25129 *) as_dir=$as_dir/ ;;
25130 esac
25131 for ac_exec_ext in '' $ac_executable_extensions; do
25132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25133 ac_cv_prog_ac_ct_WINDRES="windres"
25134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25135 break 2
25136 fi
25137 done
25138 done
25139 IFS=$as_save_IFS
25140
25141 fi ;;
25142 esac
25143 fi
25144 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
25145 if test -n "$ac_ct_WINDRES"; then
25146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
25147 printf "%s\n" "$ac_ct_WINDRES" >&6; }
25148 else
25149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 printf "%s\n" "no" >&6; }
25151 fi
25152
25153 if test "x$ac_ct_WINDRES" = x; then
25154 WINDRES=""
25155 else
25156 case $cross_compiling:$ac_tool_warned in
25157 yes:)
25158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25160 ac_tool_warned=yes ;;
25161 esac
25162 WINDRES=$ac_ct_WINDRES
25163 fi
25164 else
25165 WINDRES="$ac_cv_prog_WINDRES"
25166 fi
25167
25168 if test x"$GCC" = xyes
25169 then :
25170
25171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
25172 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
25173 if test -z "$ac_cv_prog_CC"
25174 then :
25175
25176 our_gcc="$CC"
25177
25178 else case e in #(
25179 e)
25180 our_gcc="$ac_cv_prog_CC"
25181 ;;
25182 esac
25183 fi
25184 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
25185 then :
25186
25187 msnative_struct="-mms-bitfields"
25188 CFLAGS="$CFLAGS $msnative_struct"
25189 CXXFLAGS="$CXXFLAGS $msnative_struct"
25190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
25191 printf "%s\n" "${msnative_struct}" >&6; }
25192
25193 else case e in #(
25194 e)
25195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
25196 printf "%s\n" "no way" >&6; }
25197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
25198 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
25199 ;;
25200 esac
25201 fi
25202
25203 fi
25204 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
25205 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
25206
25207 else case e in #(
25208 e)
25209 if test x"$GCC" = xyes
25210 then :
25211
25212 # Be tough with warnings and produce less careless code
25213 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
25214 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
25215 if test x"$enable_weffc" != "xno"
25216 then :
25217
25218 CXXFLAGS="$CXXFLAGS -Weffc++"
25219
25220 fi
25221 if test x"$enable_wparanoic" != "xno"
25222 then :
25223
25224 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
25225 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
25226 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
25227 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
25228 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
25229 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
25230 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
25231 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
25232 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
25233 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
25234 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
25235 CXXFLAGS="$CXXFLAGS -Wtrigraphs -Wunknown-pragmas -Wunused"
25236 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
25237 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
25238 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
25239
25240 fi
25241
25242 fi
25243 ;;
25244 esac
25245 fi
25246
25247
25248 # ============
25249 # Debug switch
25250 # ============
25251 # Check whether --enable-debug was given.
25252 if test ${enable_debug+y}
25253 then :
25254 enableval=$enable_debug; enable_debug="$enableval"
25255 else case e in #(
25256 e) enable_debug=no
25257 ;;
25258 esac
25259 fi
25260
25261 if test "x$enable_debug" = "xyes"
25262 then :
25263
25264 DEBUG_CXXFLAGS="-DDEBUG -g"
25265 CXXFLAGS="$CXXFLAGS -O0"
25266 CFLAGS="$CFLAGS -O0"
25267
25268 else case e in #(
25269 e)
25270 DEBUG_CXXFLAGS="-DNDEBUG"
25271 ;;
25272 esac
25273 fi
25274
25275
25276 # ==========
25277 # Unit tests
25278 # ==========
25279 # Check whether --enable-tests was given.
25280 if test ${enable_tests+y}
25281 then :
25282 enableval=$enable_tests; enable_tests="$enableval"
25283 else case e in #(
25284 e) enable_tests=yes
25285 ;;
25286 esac
25287 fi
25288
25289 if test "x$enable_tests" = "xyes"
25290 then :
25291
25292
25293 pkg_failed=no
25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5
25295 printf %s "checking for cppunit... " >&6; }
25296
25297 if test -n "$CPPUNIT_CFLAGS"; then
25298 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
25299 elif test -n "$PKG_CONFIG"; then
25300 if test -n "$PKG_CONFIG" && \
25301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
25302 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
25303 ac_status=$?
25304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; then
25306 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
25307 test "x$?" != "x0" && pkg_failed=yes
25308 else
25309 pkg_failed=yes
25310 fi
25311 else
25312 pkg_failed=untried
25313 fi
25314 if test -n "$CPPUNIT_LIBS"; then
25315 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
25316 elif test -n "$PKG_CONFIG"; then
25317 if test -n "$PKG_CONFIG" && \
25318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
25319 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
25320 ac_status=$?
25321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; then
25323 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
25324 test "x$?" != "x0" && pkg_failed=yes
25325 else
25326 pkg_failed=yes
25327 fi
25328 else
25329 pkg_failed=untried
25330 fi
25331
25332
25333
25334 if test $pkg_failed = yes; then
25335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25336 printf "%s\n" "no" >&6; }
25337
25338 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25339 _pkg_short_errors_supported=yes
25340 else
25341 _pkg_short_errors_supported=no
25342 fi
25343 if test $_pkg_short_errors_supported = yes; then
25344 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
25345 else
25346 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
25347 fi
25348 # Put the nasty error message in config.log where it belongs
25349 echo "$CPPUNIT_PKG_ERRORS" >&5
25350
25351 as_fn_error $? "Package requirements (cppunit) were not met:
25352
25353 $CPPUNIT_PKG_ERRORS
25354
25355 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25356 installed software in a non-standard prefix.
25357
25358 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
25359 and CPPUNIT_LIBS to avoid the need to call pkg-config.
25360 See the pkg-config man page for more details." "$LINENO" 5
25361 elif test $pkg_failed = untried; then
25362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25363 printf "%s\n" "no" >&6; }
25364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25365 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25366 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25367 is in your PATH or set the PKG_CONFIG environment variable to the full
25368 path to pkg-config.
25369
25370 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
25371 and CPPUNIT_LIBS to avoid the need to call pkg-config.
25372 See the pkg-config man page for more details.
25373
25374 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25375 See 'config.log' for more details" "$LINENO" 5; }
25376 else
25377 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
25378 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
25379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25380 printf "%s\n" "yes" >&6; }
25381
25382 fi
25383
25384 fi
25385
25386
25387 if test "x$enable_tests" = "xyes"; then
25388 BUILD_TESTS_TRUE=
25389 BUILD_TESTS_FALSE='#'
25390 else
25391 BUILD_TESTS_TRUE='#'
25392 BUILD_TESTS_FALSE=
25393 fi
25394
25395 if test "x$enable_tests" = "xyes"
25396 then :
25397 need_stream=yes
25398 fi
25399
25400 # =============
25401 # Documentation
25402 # =============
25403
25404 # Check whether --with-docs was given.
25405 if test ${with_docs+y}
25406 then :
25407 withval=$with_docs; with_docs="$withval"
25408 else case e in #(
25409 e) if test "x$native_win32" = "xyes"
25410 then :
25411 with_docs=no
25412 else case e in #(
25413 e) with_docs=yes ;;
25414 esac
25415 fi
25416 ;;
25417 esac
25418 fi
25419
25420 if test "x$with_docs" != "xno"
25421 then :
25422
25423 # Extract the first word of "doxygen", so it can be a program name with args.
25424 set dummy doxygen; ac_word=$2
25425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25426 printf %s "checking for $ac_word... " >&6; }
25427 if test ${ac_cv_path_DOXYGEN+y}
25428 then :
25429 printf %s "(cached) " >&6
25430 else case e in #(
25431 e) case $DOXYGEN in
25432 [\\/]* | ?:[\\/]*)
25433 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25434 ;;
25435 *)
25436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25437 for as_dir in $PATH
25438 do
25439 IFS=$as_save_IFS
25440 case $as_dir in #(((
25441 '') as_dir=./ ;;
25442 */) ;;
25443 *) as_dir=$as_dir/ ;;
25444 esac
25445 for ac_exec_ext in '' $ac_executable_extensions; do
25446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25447 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
25448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25449 break 2
25450 fi
25451 done
25452 done
25453 IFS=$as_save_IFS
25454
25455 ;;
25456 esac ;;
25457 esac
25458 fi
25459 DOXYGEN=$ac_cv_path_DOXYGEN
25460 if test -n "$DOXYGEN"; then
25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25462 printf "%s\n" "$DOXYGEN" >&6; }
25463 else
25464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25465 printf "%s\n" "no" >&6; }
25466 fi
25467
25468
25469 if test -z "$DOXYGEN"
25470 then :
25471
25472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
25473 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
25474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
25475 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
25476 build_docs=no
25477
25478 else case e in #(
25479 e) build_docs=yes ;;
25480 esac
25481 fi
25482
25483 else case e in #(
25484 e) build_docs=no ;;
25485 esac
25486 fi
25487 if test "x$build_docs" != "xno"; then
25488 WITH_LIBCDR_DOCS_TRUE=
25489 WITH_LIBCDR_DOCS_FALSE='#'
25490 else
25491 WITH_LIBCDR_DOCS_TRUE='#'
25492 WITH_LIBCDR_DOCS_FALSE=
25493 fi
25494
25495
25496 # =====================
25497 # Prepare all .in files
25498 # =====================
25499 ac_config_files="$ac_config_files Makefile inc/Makefile inc/libcdr/Makefile src/Makefile src/conv/Makefile src/conv/raw/Makefile src/conv/raw/cdr2raw.rc src/conv/raw/cmx2raw.rc src/conv/svg/Makefile src/conv/svg/cdr2xhtml.rc src/conv/svg/cmx2xhtml.rc src/conv/text/Makefile src/conv/text/cdr2text.rc src/conv/text/cmx2text.rc src/fuzz/Makefile src/lib/Makefile src/lib/libcdr.rc src/test/Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile libcdr-$CDR_MAJOR_VERSION.$CDR_MINOR_VERSION.pc:libcdr.pc.in libcdr.spec libcdr-zip"
25500
25501 cat >confcache <<\_ACEOF
25502 # This file is a shell script that caches the results of configure
25503 # tests run on this system so they can be shared between configure
25504 # scripts and configure runs, see configure's option --config-cache.
25505 # It is not useful on other systems. If it contains results you don't
25506 # want to keep, you may remove or edit it.
25507 #
25508 # config.status only pays attention to the cache file if you give it
25509 # the --recheck option to rerun configure.
25510 #
25511 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
25512 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
25513 # following values.
25514
25515 _ACEOF
25516
25517 # The following way of writing the cache mishandles newlines in values,
25518 # but we know of no workaround that is simple, portable, and efficient.
25519 # So, we kill variables containing newlines.
25520 # Ultrix sh set writes to stderr and can't be redirected directly,
25521 # and sets the high bit in the cache file unless we assign to the vars.
25522 (
25523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25524 eval ac_val=\$$ac_var
25525 case $ac_val in #(
25526 *${as_nl}*)
25527 case $ac_var in #(
25528 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25529 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25530 esac
25531 case $ac_var in #(
25532 _ | IFS | as_nl) ;; #(
25533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25534 *) { eval $ac_var=; unset $ac_var;} ;;
25535 esac ;;
25536 esac
25537 done
25538
25539 (set) 2>&1 |
25540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25541 *${as_nl}ac_space=\ *)
25542 # 'set' does not quote correctly, so add quotes: double-quote
25543 # substitution turns \\\\ into \\, and sed turns \\ into \.
25544 sed -n \
25545 "s/'/'\\\\''/g;
25546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25547 ;; #(
25548 *)
25549 # 'set' quotes correctly as required by POSIX, so do not add quotes.
25550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25551 ;;
25552 esac |
25553 sort
25554 ) |
25555 sed '
25556 /^ac_cv_env_/b end
25557 t clear
25558 :clear
25559 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25560 t end
25561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25562 :end' >>confcache
25563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25564 if test -w "$cache_file"; then
25565 if test "x$cache_file" != "x/dev/null"; then
25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25567 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25568 if test ! -f "$cache_file" || test -h "$cache_file"; then
25569 cat confcache >"$cache_file"
25570 else
25571 case $cache_file in #(
25572 */* | ?:*)
25573 mv -f confcache "$cache_file"$$ &&
25574 mv -f "$cache_file"$$ "$cache_file" ;; #(
25575 *)
25576 mv -f confcache "$cache_file" ;;
25577 esac
25578 fi
25579 fi
25580 else
25581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25582 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25583 fi
25584 fi
25585 rm -f confcache
25586
25587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25588 # Let make expand exec_prefix.
25589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25590
25591 DEFS=-DHAVE_CONFIG_H
25592
25593 ac_libobjs=
25594 ac_ltlibobjs=
25595 U=
25596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25597 # 1. Remove the extension, and $U if already installed.
25598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25599 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
25600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25601 # will be set to the directory where LIBOBJS objects are built.
25602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25604 done
25605 LIBOBJS=$ac_libobjs
25606
25607 LTLIBOBJS=$ac_ltlibobjs
25608
25609
25610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25611 printf %s "checking that generated files are newer than configure... " >&6; }
25612 if test -n "$am_sleep_pid"; then
25613 # Hide warnings about reused PIDs.
25614 wait $am_sleep_pid 2>/dev/null
25615 fi
25616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
25617 printf "%s\n" "done" >&6; }
25618 case $enable_silent_rules in # (((
25619 yes) AM_DEFAULT_VERBOSITY=0;;
25620 no) AM_DEFAULT_VERBOSITY=1;;
25621 esac
25622 if test $am_cv_make_support_nested_variables = yes; then
25623 AM_V='$(V)'
25624 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
25625 else
25626 AM_V=$AM_DEFAULT_VERBOSITY
25627 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
25628 fi
25629
25630 if test -n "$EXEEXT"; then
25631 am__EXEEXT_TRUE=
25632 am__EXEEXT_FALSE='#'
25633 else
25634 am__EXEEXT_TRUE='#'
25635 am__EXEEXT_FALSE=
25636 fi
25637
25638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25639 as_fn_error $? "conditional \"AMDEP\" was never defined.
25640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25641 fi
25642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25643 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25645 fi
25646 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25647 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25649 fi
25650 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25651 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25653 fi
25654 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
25655 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
25656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25657 fi
25658 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
25659 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
25660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25661 fi
25662 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
25663 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
25664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25665 fi
25666 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
25667 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
25668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25669 fi
25670 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
25671 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
25672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25673 fi
25674 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
25675 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
25676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25677 fi
25678 if test -z "${WITH_LIBCDR_DOCS_TRUE}" && test -z "${WITH_LIBCDR_DOCS_FALSE}"; then
25679 as_fn_error $? "conditional \"WITH_LIBCDR_DOCS\" was never defined.
25680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25681 fi
25682
25683 : "${CONFIG_STATUS=./config.status}"
25684 ac_write_fail=0
25685 ac_clean_files_save=$ac_clean_files
25686 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25688 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25689 as_write_fail=0
25690 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25691 #! $SHELL
25692 # Generated by $as_me.
25693 # Run this file to recreate the current configuration.
25694 # Compiler output produced by configure, useful for debugging
25695 # configure, is in config.log if it exists.
25696
25697 debug=false
25698 ac_cs_recheck=false
25699 ac_cs_silent=false
25700
25701 SHELL=\${CONFIG_SHELL-$SHELL}
25702 export SHELL
25703 _ASEOF
25704 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25705 ## -------------------- ##
25706 ## M4sh Initialization. ##
25707 ## -------------------- ##
25708
25709 # Be more Bourne compatible
25710 DUALCASE=1; export DUALCASE # for MKS sh
25711 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25712 then :
25713 emulate sh
25714 NULLCMD=:
25715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25716 # is contrary to our usage. Disable this feature.
25717 alias -g '${1+"$@"}'='"$@"'
25718 setopt NO_GLOB_SUBST
25719 else case e in #(
25720 e) case `(set -o) 2>/dev/null` in #(
25721 *posix*) :
25722 set -o posix ;; #(
25723 *) :
25724 ;;
25725 esac ;;
25726 esac
25727 fi
25728
25729
25730
25731 # Reset variables that may have inherited troublesome values from
25732 # the environment.
25733
25734 # IFS needs to be set, to space, tab, and newline, in precisely that order.
25735 # (If _AS_PATH_WALK were called with IFS unset, it would have the
25736 # side effect of setting IFS to empty, thus disabling word splitting.)
25737 # Quoting is to prevent editors from complaining about space-tab.
25738 as_nl='
25739 '
25740 export as_nl
25741 IFS=" "" $as_nl"
25742
25743 PS1='$ '
25744 PS2='> '
25745 PS4='+ '
25746
25747 # Ensure predictable behavior from utilities with locale-dependent output.
25748 LC_ALL=C
25749 export LC_ALL
25750 LANGUAGE=C
25751 export LANGUAGE
25752
25753 # We cannot yet rely on "unset" to work, but we need these variables
25754 # to be unset--not just set to an empty or harmless value--now, to
25755 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
25756 # also avoids known problems related to "unset" and subshell syntax
25757 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
25758 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
25759 do eval test \${$as_var+y} \
25760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25761 done
25762
25763 # Ensure that fds 0, 1, and 2 are open.
25764 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
25765 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
25766 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
25767
25768 # The user is always right.
25769 if ${PATH_SEPARATOR+false} :; then
25770 PATH_SEPARATOR=:
25771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25773 PATH_SEPARATOR=';'
25774 }
25775 fi
25776
25777
25778 # Find who we are. Look in the path if we contain no directory separator.
25779 as_myself=
25780 case $0 in #((
25781 *[\\/]* ) as_myself=$0 ;;
25782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783 for as_dir in $PATH
25784 do
25785 IFS=$as_save_IFS
25786 case $as_dir in #(((
25787 '') as_dir=./ ;;
25788 */) ;;
25789 *) as_dir=$as_dir/ ;;
25790 esac
25791 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
25792 done
25793 IFS=$as_save_IFS
25794
25795 ;;
25796 esac
25797 # We did not find ourselves, most probably we were run as 'sh COMMAND'
25798 # in which case we are not to be found in the path.
25799 if test "x$as_myself" = x; then
25800 as_myself=$0
25801 fi
25802 if test ! -f "$as_myself"; then
25803 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25804 exit 1
25805 fi
25806
25807
25808
25809 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25810 # ----------------------------------------
25811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25813 # script with STATUS, using 1 if that was 0.
25814 as_fn_error ()
25815 {
25816 as_status=$1; test $as_status -eq 0 && as_status=1
25817 if test "$4"; then
25818 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25820 fi
25821 printf "%s\n" "$as_me: error: $2" >&2
25822 as_fn_exit $as_status
25823 } # as_fn_error
25824
25825
25826 # as_fn_set_status STATUS
25827 # -----------------------
25828 # Set $? to STATUS, without forking.
25829 as_fn_set_status ()
25830 {
25831 return $1
25832 } # as_fn_set_status
25833
25834 # as_fn_exit STATUS
25835 # -----------------
25836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25837 as_fn_exit ()
25838 {
25839 set +e
25840 as_fn_set_status $1
25841 exit $1
25842 } # as_fn_exit
25843
25844 # as_fn_unset VAR
25845 # ---------------
25846 # Portably unset VAR.
25847 as_fn_unset ()
25848 {
25849 { eval $1=; unset $1;}
25850 }
25851 as_unset=as_fn_unset
25852
25853 # as_fn_append VAR VALUE
25854 # ----------------------
25855 # Append the text in VALUE to the end of the definition contained in VAR. Take
25856 # advantage of any shell optimizations that allow amortized linear growth over
25857 # repeated appends, instead of the typical quadratic growth present in naive
25858 # implementations.
25859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
25860 then :
25861 eval 'as_fn_append ()
25862 {
25863 eval $1+=\$2
25864 }'
25865 else case e in #(
25866 e) as_fn_append ()
25867 {
25868 eval $1=\$$1\$2
25869 } ;;
25870 esac
25871 fi # as_fn_append
25872
25873 # as_fn_arith ARG...
25874 # ------------------
25875 # Perform arithmetic evaluation on the ARGs, and store the result in the
25876 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25877 # must be portable across $(()) and expr.
25878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25879 then :
25880 eval 'as_fn_arith ()
25881 {
25882 as_val=$(( $* ))
25883 }'
25884 else case e in #(
25885 e) as_fn_arith ()
25886 {
25887 as_val=`expr "$@" || test $? -eq 1`
25888 } ;;
25889 esac
25890 fi # as_fn_arith
25891
25892
25893 if expr a : '\(a\)' >/dev/null 2>&1 &&
25894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25895 as_expr=expr
25896 else
25897 as_expr=false
25898 fi
25899
25900 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25901 as_basename=basename
25902 else
25903 as_basename=false
25904 fi
25905
25906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25907 as_dirname=dirname
25908 else
25909 as_dirname=false
25910 fi
25911
25912 as_me=`$as_basename -- "$0" ||
25913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25914 X"$0" : 'X\(//\)$' \| \
25915 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25916 printf "%s\n" X/"$0" |
25917 sed '/^.*\/\([^/][^/]*\)\/*$/{
25918 s//\1/
25919 q
25920 }
25921 /^X\/\(\/\/\)$/{
25922 s//\1/
25923 q
25924 }
25925 /^X\/\(\/\).*/{
25926 s//\1/
25927 q
25928 }
25929 s/.*/./; q'`
25930
25931 # Avoid depending upon Character Ranges.
25932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25935 as_cr_digits='0123456789'
25936 as_cr_alnum=$as_cr_Letters$as_cr_digits
25937
25938
25939 # Determine whether it's possible to make 'echo' print without a newline.
25940 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
25941 # for compatibility with existing Makefiles.
25942 ECHO_C= ECHO_N= ECHO_T=
25943 case `echo -n x` in #(((((
25944 -n*)
25945 case `echo 'xy\c'` in
25946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25947 xy) ECHO_C='\c';;
25948 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25949 ECHO_T=' ';;
25950 esac;;
25951 *)
25952 ECHO_N='-n';;
25953 esac
25954
25955 # For backward compatibility with old third-party macros, we provide
25956 # the shell variables $as_echo and $as_echo_n. New code should use
25957 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
25958 as_echo='printf %s\n'
25959 as_echo_n='printf %s'
25960
25961 rm -f conf$$ conf$$.exe conf$$.file
25962 if test -d conf$$.dir; then
25963 rm -f conf$$.dir/conf$$.file
25964 else
25965 rm -f conf$$.dir
25966 mkdir conf$$.dir 2>/dev/null
25967 fi
25968 if (echo >conf$$.file) 2>/dev/null; then
25969 if ln -s conf$$.file conf$$ 2>/dev/null; then
25970 as_ln_s='ln -s'
25971 # ... but there are two gotchas:
25972 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
25973 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
25974 # In both cases, we have to default to 'cp -pR'.
25975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25976 as_ln_s='cp -pR'
25977 elif ln conf$$.file conf$$ 2>/dev/null; then
25978 as_ln_s=ln
25979 else
25980 as_ln_s='cp -pR'
25981 fi
25982 else
25983 as_ln_s='cp -pR'
25984 fi
25985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25986 rmdir conf$$.dir 2>/dev/null
25987
25988
25989 # as_fn_mkdir_p
25990 # -------------
25991 # Create "$as_dir" as a directory, including parents if necessary.
25992 as_fn_mkdir_p ()
25993 {
25994
25995 case $as_dir in #(
25996 -*) as_dir=./$as_dir;;
25997 esac
25998 test -d "$as_dir" || eval $as_mkdir_p || {
25999 as_dirs=
26000 while :; do
26001 case $as_dir in #(
26002 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26003 *) as_qdir=$as_dir;;
26004 esac
26005 as_dirs="'$as_qdir' $as_dirs"
26006 as_dir=`$as_dirname -- "$as_dir" ||
26007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26008 X"$as_dir" : 'X\(//\)[^/]' \| \
26009 X"$as_dir" : 'X\(//\)$' \| \
26010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26011 printf "%s\n" X"$as_dir" |
26012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26013 s//\1/
26014 q
26015 }
26016 /^X\(\/\/\)[^/].*/{
26017 s//\1/
26018 q
26019 }
26020 /^X\(\/\/\)$/{
26021 s//\1/
26022 q
26023 }
26024 /^X\(\/\).*/{
26025 s//\1/
26026 q
26027 }
26028 s/.*/./; q'`
26029 test -d "$as_dir" && break
26030 done
26031 test -z "$as_dirs" || eval "mkdir $as_dirs"
26032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26033
26034
26035 } # as_fn_mkdir_p
26036 if mkdir -p . 2>/dev/null; then
26037 as_mkdir_p='mkdir -p "$as_dir"'
26038 else
26039 test -d ./-p && rmdir ./-p
26040 as_mkdir_p=false
26041 fi
26042
26043
26044 # as_fn_executable_p FILE
26045 # -----------------------
26046 # Test if FILE is an executable regular file.
26047 as_fn_executable_p ()
26048 {
26049 test -f "$1" && test -x "$1"
26050 } # as_fn_executable_p
26051 as_test_x='test -x'
26052 as_executable_p=as_fn_executable_p
26053
26054 # Sed expression to map a string onto a valid CPP name.
26055 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26056 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
26057
26058 # Sed expression to map a string onto a valid variable name.
26059 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
26060 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
26061
26062
26063 exec 6>&1
26064 ## ----------------------------------- ##
26065 ## Main body of $CONFIG_STATUS script. ##
26066 ## ----------------------------------- ##
26067 _ASEOF
26068 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26069
26070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26071 # Save the log message, to keep $0 and so on meaningful, and to
26072 # report actual input values of CONFIG_FILES etc. instead of their
26073 # values after options handling.
26074 ac_log="
26075 This file was extended by libcdr $as_me 0.1.9, which was
26076 generated by GNU Autoconf 2.72. Invocation command line was
26077
26078 CONFIG_FILES = $CONFIG_FILES
26079 CONFIG_HEADERS = $CONFIG_HEADERS
26080 CONFIG_LINKS = $CONFIG_LINKS
26081 CONFIG_COMMANDS = $CONFIG_COMMANDS
26082 $ $0 $@
26083
26084 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26085 "
26086
26087 _ACEOF
26088
26089 case $ac_config_files in *"
26090 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26091 esac
26092
26093 case $ac_config_headers in *"
26094 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26095 esac
26096
26097
26098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26099 # Files that config.status was made for.
26100 config_files="$ac_config_files"
26101 config_headers="$ac_config_headers"
26102 config_commands="$ac_config_commands"
26103
26104 _ACEOF
26105
26106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26107 ac_cs_usage="\
26108 '$as_me' instantiates files and other configuration actions
26109 from templates according to the current configuration. Unless the files
26110 and actions are specified as TAGs, all are instantiated by default.
26111
26112 Usage: $0 [OPTION]... [TAG]...
26113
26114 -h, --help print this help, then exit
26115 -V, --version print version number and configuration settings, then exit
26116 --config print configuration, then exit
26117 -q, --quiet, --silent
26118 do not print progress messages
26119 -d, --debug don't remove temporary files
26120 --recheck update $as_me by reconfiguring in the same conditions
26121 --file=FILE[:TEMPLATE]
26122 instantiate the configuration file FILE
26123 --header=FILE[:TEMPLATE]
26124 instantiate the configuration header FILE
26125
26126 Configuration files:
26127 $config_files
26128
26129 Configuration headers:
26130 $config_headers
26131
26132 Configuration commands:
26133 $config_commands
26134
26135 Report bugs to the package provider."
26136
26137 _ACEOF
26138 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
26139 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
26140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26141 ac_cs_config='$ac_cs_config_escaped'
26142 ac_cs_version="\\
26143 libcdr config.status 0.1.9
26144 configured by $0, generated by GNU Autoconf 2.72,
26145 with options \\"\$ac_cs_config\\"
26146
26147 Copyright (C) 2023 Free Software Foundation, Inc.
26148 This config.status script is free software; the Free Software Foundation
26149 gives unlimited permission to copy, distribute and modify it."
26150
26151 ac_pwd='$ac_pwd'
26152 srcdir='$srcdir'
26153 INSTALL='$INSTALL'
26154 MKDIR_P='$MKDIR_P'
26155 AWK='$AWK'
26156 test -n "\$AWK" || AWK=awk
26157 _ACEOF
26158
26159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26160 # The default lists apply if the user does not specify any file.
26161 ac_need_defaults=:
26162 while test $# != 0
26163 do
26164 case $1 in
26165 --*=?*)
26166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26168 ac_shift=:
26169 ;;
26170 --*=)
26171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26172 ac_optarg=
26173 ac_shift=:
26174 ;;
26175 *)
26176 ac_option=$1
26177 ac_optarg=$2
26178 ac_shift=shift
26179 ;;
26180 esac
26181
26182 case $ac_option in
26183 # Handling of the options.
26184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26185 ac_cs_recheck=: ;;
26186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26187 printf "%s\n" "$ac_cs_version"; exit ;;
26188 --config | --confi | --conf | --con | --co | --c )
26189 printf "%s\n" "$ac_cs_config"; exit ;;
26190 --debug | --debu | --deb | --de | --d | -d )
26191 debug=: ;;
26192 --file | --fil | --fi | --f )
26193 $ac_shift
26194 case $ac_optarg in
26195 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26196 '') as_fn_error $? "missing file argument" ;;
26197 esac
26198 as_fn_append CONFIG_FILES " '$ac_optarg'"
26199 ac_need_defaults=false;;
26200 --header | --heade | --head | --hea )
26201 $ac_shift
26202 case $ac_optarg in
26203 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26204 esac
26205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26206 ac_need_defaults=false;;
26207 --he | --h)
26208 # Conflict between --help and --header
26209 as_fn_error $? "ambiguous option: '$1'
26210 Try '$0 --help' for more information.";;
26211 --help | --hel | -h )
26212 printf "%s\n" "$ac_cs_usage"; exit ;;
26213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26215 ac_cs_silent=: ;;
26216
26217 # This is an error.
26218 -*) as_fn_error $? "unrecognized option: '$1'
26219 Try '$0 --help' for more information." ;;
26220
26221 *) as_fn_append ac_config_targets " $1"
26222 ac_need_defaults=false ;;
26223
26224 esac
26225 shift
26226 done
26227
26228 ac_configure_extra_args=
26229
26230 if $ac_cs_silent; then
26231 exec 6>/dev/null
26232 ac_configure_extra_args="$ac_configure_extra_args --silent"
26233 fi
26234
26235 _ACEOF
26236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26237 if \$ac_cs_recheck; then
26238 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26239 shift
26240 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
26241 CONFIG_SHELL='$SHELL'
26242 export CONFIG_SHELL
26243 exec "\$@"
26244 fi
26245
26246 _ACEOF
26247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26248 exec 5>>config.log
26249 {
26250 echo
26251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26252 ## Running $as_me. ##
26253 _ASBOX
26254 printf "%s\n" "$ac_log"
26255 } >&5
26256
26257 _ACEOF
26258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26259 #
26260 # INIT-COMMANDS
26261 #
26262 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
26263
26264
26265 # The HP-UX ksh and POSIX shell print the target directory to stdout
26266 # if CDPATH is set.
26267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26268
26269 sed_quote_subst='$sed_quote_subst'
26270 double_quote_subst='$double_quote_subst'
26271 delay_variable_subst='$delay_variable_subst'
26272 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26273 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26274 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26275 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26276 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26277 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26278 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26279 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26280 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26281 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26282 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26283 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26284 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26285 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26286 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26287 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26288 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26289 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26290 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26291 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26292 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26293 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26294 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26295 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26296 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26297 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26298 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26299 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26300 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26301 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26302 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26303 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26304 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26305 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26306 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26307 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26308 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26309 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
26310 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26311 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26312 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26313 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26314 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26315 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26316 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
26317 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26318 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26319 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26320 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26321 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26322 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26323 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26324 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26325 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26326 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26327 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26328 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26329 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26330 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26331 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26332 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26333 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"`'
26334 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26335 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26336 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26337 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26338 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26339 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26340 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26341 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26342 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26343 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26344 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26345 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26346 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26347 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26348 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26349 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26350 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26351 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26352 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26353 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26354 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26355 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26356 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26357 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26358 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26359 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26360 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26361 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26362 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26363 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26364 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26365 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26366 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26367 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26368 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26369 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26370 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26371 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26372 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26373 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26374 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26375 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26376 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26377 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26378 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26379 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26380 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26381 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26382 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26383 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26384 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26385 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26386 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26387 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26388 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26389 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26390 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26391 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26392 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26393 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26394 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26395 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26396 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26397 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26398 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26399 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26400 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26401 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26402 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26403 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26404 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26405 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26406 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26407 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26408 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26409 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26410 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26411 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26412 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26413 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26414 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26415 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26416 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26417 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26418 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26419 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26420 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26421 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26422 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26423 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26424 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26425 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26426 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26427 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26428 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26429 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26430 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26431 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26432 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26433 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26434 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26435 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26436 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26437 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26438 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26439 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26440 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26441 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26442 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26443 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26444 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26445 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26446 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26447 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26448 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26449 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26450 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26451 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26452 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26453 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26454 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26455 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26456 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26457 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26458 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26459 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26460 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26461 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26462 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26463 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26464
26465 LTCC='$LTCC'
26466 LTCFLAGS='$LTCFLAGS'
26467 compiler='$compiler_DEFAULT'
26468
26469 # A function that is used when there is no print builtin or printf.
26470 func_fallback_echo ()
26471 {
26472 eval 'cat <<_LTECHO_EOF
26473 \$1
26474 _LTECHO_EOF'
26475 }
26476
26477 # Quote evaled strings.
26478 for var in AS \
26479 DLLTOOL \
26480 OBJDUMP \
26481 SHELL \
26482 ECHO \
26483 PATH_SEPARATOR \
26484 SED \
26485 GREP \
26486 EGREP \
26487 FGREP \
26488 LD \
26489 NM \
26490 LN_S \
26491 lt_SP2NL \
26492 lt_NL2SP \
26493 reload_flag \
26494 FILECMD \
26495 deplibs_check_method \
26496 file_magic_cmd \
26497 file_magic_glob \
26498 want_nocaseglob \
26499 sharedlib_from_linklib_cmd \
26500 AR \
26501 archiver_list_spec \
26502 STRIP \
26503 RANLIB \
26504 CC \
26505 CFLAGS \
26506 compiler \
26507 lt_cv_sys_global_symbol_pipe \
26508 lt_cv_sys_global_symbol_to_cdecl \
26509 lt_cv_sys_global_symbol_to_import \
26510 lt_cv_sys_global_symbol_to_c_name_address \
26511 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26512 lt_cv_nm_interface \
26513 nm_file_list_spec \
26514 lt_cv_truncate_bin \
26515 lt_prog_compiler_no_builtin_flag \
26516 lt_prog_compiler_pic \
26517 lt_prog_compiler_wl \
26518 lt_prog_compiler_static \
26519 lt_cv_prog_compiler_c_o \
26520 need_locks \
26521 MANIFEST_TOOL \
26522 DSYMUTIL \
26523 NMEDIT \
26524 LIPO \
26525 OTOOL \
26526 OTOOL64 \
26527 shrext_cmds \
26528 export_dynamic_flag_spec \
26529 whole_archive_flag_spec \
26530 compiler_needs_object \
26531 with_gnu_ld \
26532 allow_undefined_flag \
26533 no_undefined_flag \
26534 hardcode_libdir_flag_spec \
26535 hardcode_libdir_separator \
26536 exclude_expsyms \
26537 include_expsyms \
26538 file_list_spec \
26539 variables_saved_for_relink \
26540 libname_spec \
26541 library_names_spec \
26542 soname_spec \
26543 install_override_mode \
26544 finish_eval \
26545 old_striplib \
26546 striplib \
26547 compiler_lib_search_dirs \
26548 predep_objects \
26549 postdep_objects \
26550 predeps \
26551 postdeps \
26552 compiler_lib_search_path \
26553 LD_CXX \
26554 reload_flag_CXX \
26555 compiler_CXX \
26556 lt_prog_compiler_no_builtin_flag_CXX \
26557 lt_prog_compiler_pic_CXX \
26558 lt_prog_compiler_wl_CXX \
26559 lt_prog_compiler_static_CXX \
26560 lt_cv_prog_compiler_c_o_CXX \
26561 export_dynamic_flag_spec_CXX \
26562 whole_archive_flag_spec_CXX \
26563 compiler_needs_object_CXX \
26564 with_gnu_ld_CXX \
26565 allow_undefined_flag_CXX \
26566 no_undefined_flag_CXX \
26567 hardcode_libdir_flag_spec_CXX \
26568 hardcode_libdir_separator_CXX \
26569 exclude_expsyms_CXX \
26570 include_expsyms_CXX \
26571 file_list_spec_CXX \
26572 compiler_lib_search_dirs_CXX \
26573 predep_objects_CXX \
26574 postdep_objects_CXX \
26575 predeps_CXX \
26576 postdeps_CXX \
26577 compiler_lib_search_path_CXX; do
26578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26579 *[\\\\\\\`\\"\\\$]*)
26580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26581 ;;
26582 *)
26583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26584 ;;
26585 esac
26586 done
26587
26588 # Double-quote double-evaled strings.
26589 for var in reload_cmds \
26590 old_postinstall_cmds \
26591 old_postuninstall_cmds \
26592 old_archive_cmds \
26593 extract_expsyms_cmds \
26594 old_archive_from_new_cmds \
26595 old_archive_from_expsyms_cmds \
26596 archive_cmds \
26597 archive_expsym_cmds \
26598 module_cmds \
26599 module_expsym_cmds \
26600 export_symbols_cmds \
26601 prelink_cmds \
26602 postlink_cmds \
26603 postinstall_cmds \
26604 postuninstall_cmds \
26605 finish_cmds \
26606 sys_lib_search_path_spec \
26607 configure_time_dlsearch_path \
26608 configure_time_lt_sys_library_path \
26609 reload_cmds_CXX \
26610 old_archive_cmds_CXX \
26611 old_archive_from_new_cmds_CXX \
26612 old_archive_from_expsyms_cmds_CXX \
26613 archive_cmds_CXX \
26614 archive_expsym_cmds_CXX \
26615 module_cmds_CXX \
26616 module_expsym_cmds_CXX \
26617 export_symbols_cmds_CXX \
26618 prelink_cmds_CXX \
26619 postlink_cmds_CXX; do
26620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26621 *[\\\\\\\`\\"\\\$]*)
26622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26623 ;;
26624 *)
26625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26626 ;;
26627 esac
26628 done
26629
26630 ac_aux_dir='$ac_aux_dir'
26631
26632 # See if we are running on zsh, and set the options that allow our
26633 # commands through without removal of \ escapes INIT.
26634 if test -n "\${ZSH_VERSION+set}"; then
26635 setopt NO_GLOB_SUBST
26636 fi
26637
26638
26639 PACKAGE='$PACKAGE'
26640 VERSION='$VERSION'
26641 RM='$RM'
26642 ofile='$ofile'
26643
26644
26645
26646
26647
26648
26649 _ACEOF
26650
26651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26652
26653 # Handling of arguments.
26654 for ac_config_target in $ac_config_targets
26655 do
26656 case $ac_config_target in
26657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26661 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
26662 "inc/libcdr/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libcdr/Makefile" ;;
26663 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26664 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
26665 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
26666 "src/conv/raw/cdr2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/cdr2raw.rc" ;;
26667 "src/conv/raw/cmx2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/cmx2raw.rc" ;;
26668 "src/conv/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/svg/Makefile" ;;
26669 "src/conv/svg/cdr2xhtml.rc") CONFIG_FILES="$CONFIG_FILES src/conv/svg/cdr2xhtml.rc" ;;
26670 "src/conv/svg/cmx2xhtml.rc") CONFIG_FILES="$CONFIG_FILES src/conv/svg/cmx2xhtml.rc" ;;
26671 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
26672 "src/conv/text/cdr2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/cdr2text.rc" ;;
26673 "src/conv/text/cmx2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/cmx2text.rc" ;;
26674 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
26675 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
26676 "src/lib/libcdr.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libcdr.rc" ;;
26677 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
26678 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
26679 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
26680 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
26681 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
26682 "libcdr-$CDR_MAJOR_VERSION.$CDR_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libcdr-$CDR_MAJOR_VERSION.$CDR_MINOR_VERSION.pc:libcdr.pc.in" ;;
26683 "libcdr.spec") CONFIG_FILES="$CONFIG_FILES libcdr.spec" ;;
26684 "libcdr-zip") CONFIG_FILES="$CONFIG_FILES libcdr-zip" ;;
26685
26686 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
26687 esac
26688 done
26689
26690
26691 # If the user did not use the arguments to specify the items to instantiate,
26692 # then the envvar interface is used. Set only those that are not.
26693 # We use the long form for the default assignment because of an extremely
26694 # bizarre bug on SunOS 4.1.3.
26695 if $ac_need_defaults; then
26696 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
26697 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
26698 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
26699 fi
26700
26701 # Have a temporary directory for convenience. Make it in the build tree
26702 # simply because there is no reason against having it here, and in addition,
26703 # creating and moving files from /tmp can sometimes cause problems.
26704 # Hook for its removal unless debugging.
26705 # Note that there is a small window in which the directory will not be cleaned:
26706 # after its creation but before its name has been assigned to '$tmp'.
26707 $debug ||
26708 {
26709 tmp= ac_tmp=
26710 trap 'exit_status=$?
26711 : "${ac_tmp:=$tmp}"
26712 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26713 ' 0
26714 trap 'as_fn_exit 1' 1 2 13 15
26715 }
26716 # Create a (secure) tmp directory for tmp files.
26717
26718 {
26719 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26720 test -d "$tmp"
26721 } ||
26722 {
26723 tmp=./conf$$-$RANDOM
26724 (umask 077 && mkdir "$tmp")
26725 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26726 ac_tmp=$tmp
26727
26728 # Set up the scripts for CONFIG_FILES section.
26729 # No need to generate them if there are no CONFIG_FILES.
26730 # This happens for instance with './config.status config.h'.
26731 if test -n "$CONFIG_FILES"; then
26732
26733
26734 ac_cr=`echo X | tr X '\015'`
26735 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26736 # But we know of no other shell where ac_cr would be empty at this
26737 # point, so we can use a bashism as a fallback.
26738 if test "x$ac_cr" = x; then
26739 eval ac_cr=\$\'\\r\'
26740 fi
26741 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26742 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26743 ac_cs_awk_cr='\\r'
26744 else
26745 ac_cs_awk_cr=$ac_cr
26746 fi
26747
26748 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26749 _ACEOF
26750
26751
26752 {
26753 echo "cat >conf$$subs.awk <<_ACEOF" &&
26754 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26755 echo "_ACEOF"
26756 } >conf$$subs.sh ||
26757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26759 ac_delim='%!_!# '
26760 for ac_last_try in false false false false false :; do
26761 . ./conf$$subs.sh ||
26762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26763
26764 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26765 if test $ac_delim_n = $ac_delim_num; then
26766 break
26767 elif $ac_last_try; then
26768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26769 else
26770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26771 fi
26772 done
26773 rm -f conf$$subs.sh
26774
26775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26776 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26777 _ACEOF
26778 sed -n '
26779 h
26780 s/^/S["/; s/!.*/"]=/
26781 p
26782 g
26783 s/^[^!]*!//
26784 :repl
26785 t repl
26786 s/'"$ac_delim"'$//
26787 t delim
26788 :nl
26789 h
26790 s/\(.\{148\}\)..*/\1/
26791 t more1
26792 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26793 p
26794 n
26795 b repl
26796 :more1
26797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26798 p
26799 g
26800 s/.\{148\}//
26801 t nl
26802 :delim
26803 h
26804 s/\(.\{148\}\)..*/\1/
26805 t more2
26806 s/["\\]/\\&/g; s/^/"/; s/$/"/
26807 p
26808 b
26809 :more2
26810 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26811 p
26812 g
26813 s/.\{148\}//
26814 t delim
26815 ' <conf$$subs.awk | sed '
26816 /^[^""]/{
26817 N
26818 s/\n//
26819 }
26820 ' >>$CONFIG_STATUS || ac_write_fail=1
26821 rm -f conf$$subs.awk
26822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26823 _ACAWK
26824 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26825 for (key in S) S_is_set[key] = 1
26826 FS = ""
26827
26828 }
26829 {
26830 line = $ 0
26831 nfields = split(line, field, "@")
26832 substed = 0
26833 len = length(field[1])
26834 for (i = 2; i < nfields; i++) {
26835 key = field[i]
26836 keylen = length(key)
26837 if (S_is_set[key]) {
26838 value = S[key]
26839 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26840 len += length(value) + length(field[++i])
26841 substed = 1
26842 } else
26843 len += 1 + keylen
26844 }
26845
26846 print line
26847 }
26848
26849 _ACAWK
26850 _ACEOF
26851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26852 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26853 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26854 else
26855 cat
26856 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26857 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26858 _ACEOF
26859
26860 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26861 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26862 # trailing colons and then remove the whole line if VPATH becomes empty
26863 # (actually we leave an empty line to preserve line numbers).
26864 if test "x$srcdir" = x.; then
26865 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26866 h
26867 s///
26868 s/^/:/
26869 s/[ ]*$/:/
26870 s/:\$(srcdir):/:/g
26871 s/:\${srcdir}:/:/g
26872 s/:@srcdir@:/:/g
26873 s/^:*//
26874 s/:*$//
26875 x
26876 s/\(=[ ]*\).*/\1/
26877 G
26878 s/\n//
26879 s/^[^=]*=[ ]*$//
26880 }'
26881 fi
26882
26883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26884 fi # test -n "$CONFIG_FILES"
26885
26886 # Set up the scripts for CONFIG_HEADERS section.
26887 # No need to generate them if there are no CONFIG_HEADERS.
26888 # This happens for instance with './config.status Makefile'.
26889 if test -n "$CONFIG_HEADERS"; then
26890 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26891 BEGIN {
26892 _ACEOF
26893
26894 # Transform confdefs.h into an awk script 'defines.awk', embedded as
26895 # here-document in config.status, that substitutes the proper values into
26896 # config.h.in to produce config.h.
26897
26898 # Create a delimiter string that does not exist in confdefs.h, to ease
26899 # handling of long lines.
26900 ac_delim='%!_!# '
26901 for ac_last_try in false false :; do
26902 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26903 if test -z "$ac_tt"; then
26904 break
26905 elif $ac_last_try; then
26906 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26907 else
26908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26909 fi
26910 done
26911
26912 # For the awk script, D is an array of macro values keyed by name,
26913 # likewise P contains macro parameters if any. Preserve backslash
26914 # newline sequences.
26915
26916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26917 sed -n '
26918 s/.\{148\}/&'"$ac_delim"'/g
26919 t rset
26920 :rset
26921 s/^[ ]*#[ ]*define[ ][ ]*/ /
26922 t def
26923 d
26924 :def
26925 s/\\$//
26926 t bsnl
26927 s/["\\]/\\&/g
26928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26929 D["\1"]=" \3"/p
26930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26931 d
26932 :bsnl
26933 s/["\\]/\\&/g
26934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26935 D["\1"]=" \3\\\\\\n"\\/p
26936 t cont
26937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26938 t cont
26939 d
26940 :cont
26941 n
26942 s/.\{148\}/&'"$ac_delim"'/g
26943 t clear
26944 :clear
26945 s/\\$//
26946 t bsnlc
26947 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26948 d
26949 :bsnlc
26950 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26951 b cont
26952 ' <confdefs.h | sed '
26953 s/'"$ac_delim"'/"\\\
26954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26955
26956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26957 for (key in D) D_is_set[key] = 1
26958 FS = ""
26959 }
26960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26961 line = \$ 0
26962 split(line, arg, " ")
26963 if (arg[1] == "#") {
26964 defundef = arg[2]
26965 mac1 = arg[3]
26966 } else {
26967 defundef = substr(arg[1], 2)
26968 mac1 = arg[2]
26969 }
26970 split(mac1, mac2, "(") #)
26971 macro = mac2[1]
26972 prefix = substr(line, 1, index(line, defundef) - 1)
26973 if (D_is_set[macro]) {
26974 # Preserve the white space surrounding the "#".
26975 print prefix "define", macro P[macro] D[macro]
26976 next
26977 } else {
26978 # Replace #undef with comments. This is necessary, for example,
26979 # in the case of _POSIX_SOURCE, which is predefined and required
26980 # on some systems where configure will not decide to define it.
26981 if (defundef == "undef") {
26982 print "/*", prefix defundef, macro, "*/"
26983 next
26984 }
26985 }
26986 }
26987 { print }
26988 _ACAWK
26989 _ACEOF
26990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26991 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26992 fi # test -n "$CONFIG_HEADERS"
26993
26994
26995 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26996 shift
26997 for ac_tag
26998 do
26999 case $ac_tag in
27000 :[FHLC]) ac_mode=$ac_tag; continue;;
27001 esac
27002 case $ac_mode$ac_tag in
27003 :[FHL]*:*);;
27004 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
27005 :[FH]-) ac_tag=-:-;;
27006 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27007 esac
27008 ac_save_IFS=$IFS
27009 IFS=:
27010 set x $ac_tag
27011 IFS=$ac_save_IFS
27012 shift
27013 ac_file=$1
27014 shift
27015
27016 case $ac_mode in
27017 :L) ac_source=$1;;
27018 :[FH])
27019 ac_file_inputs=
27020 for ac_f
27021 do
27022 case $ac_f in
27023 -) ac_f="$ac_tmp/stdin";;
27024 *) # Look for the file first in the build tree, then in the source tree
27025 # (if the path is not absolute). The absolute path cannot be DOS-style,
27026 # because $ac_f cannot contain ':'.
27027 test -f "$ac_f" ||
27028 case $ac_f in
27029 [\\/$]*) false;;
27030 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27031 esac ||
27032 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
27033 esac
27034 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27035 as_fn_append ac_file_inputs " '$ac_f'"
27036 done
27037
27038 # Let's still pretend it is 'configure' which instantiates (i.e., don't
27039 # use $as_me), people would be surprised to read:
27040 # /* config.h. Generated by config.status. */
27041 configure_input='Generated from '`
27042 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27043 `' by configure.'
27044 if test x"$ac_file" != x-; then
27045 configure_input="$ac_file. $configure_input"
27046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27047 printf "%s\n" "$as_me: creating $ac_file" >&6;}
27048 fi
27049 # Neutralize special characters interpreted by sed in replacement strings.
27050 case $configure_input in #(
27051 *\&* | *\|* | *\\* )
27052 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27053 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27054 *) ac_sed_conf_input=$configure_input;;
27055 esac
27056
27057 case $ac_tag in
27058 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27060 esac
27061 ;;
27062 esac
27063
27064 ac_dir=`$as_dirname -- "$ac_file" ||
27065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27066 X"$ac_file" : 'X\(//\)[^/]' \| \
27067 X"$ac_file" : 'X\(//\)$' \| \
27068 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27069 printf "%s\n" X"$ac_file" |
27070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27071 s//\1/
27072 q
27073 }
27074 /^X\(\/\/\)[^/].*/{
27075 s//\1/
27076 q
27077 }
27078 /^X\(\/\/\)$/{
27079 s//\1/
27080 q
27081 }
27082 /^X\(\/\).*/{
27083 s//\1/
27084 q
27085 }
27086 s/.*/./; q'`
27087 as_dir="$ac_dir"; as_fn_mkdir_p
27088 ac_builddir=.
27089
27090 case "$ac_dir" in
27091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27092 *)
27093 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
27094 # A ".." for each directory in $ac_dir_suffix.
27095 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27096 case $ac_top_builddir_sub in
27097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27099 esac ;;
27100 esac
27101 ac_abs_top_builddir=$ac_pwd
27102 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27103 # for backward compatibility:
27104 ac_top_builddir=$ac_top_build_prefix
27105
27106 case $srcdir in
27107 .) # We are building in place.
27108 ac_srcdir=.
27109 ac_top_srcdir=$ac_top_builddir_sub
27110 ac_abs_top_srcdir=$ac_pwd ;;
27111 [\\/]* | ?:[\\/]* ) # Absolute name.
27112 ac_srcdir=$srcdir$ac_dir_suffix;
27113 ac_top_srcdir=$srcdir
27114 ac_abs_top_srcdir=$srcdir ;;
27115 *) # Relative name.
27116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27117 ac_top_srcdir=$ac_top_build_prefix$srcdir
27118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27119 esac
27120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27121
27122
27123 case $ac_mode in
27124 :F)
27125 #
27126 # CONFIG_FILE
27127 #
27128
27129 case $INSTALL in
27130 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27131 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27132 esac
27133 ac_MKDIR_P=$MKDIR_P
27134 case $MKDIR_P in
27135 [\\/$]* | ?:[\\/]* ) ;;
27136 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27137 esac
27138 _ACEOF
27139
27140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27141 # If the template does not know about datarootdir, expand it.
27142 # FIXME: This hack should be removed a few years after 2.60.
27143 ac_datarootdir_hack=; ac_datarootdir_seen=
27144 ac_sed_dataroot='
27145 /datarootdir/ {
27146 p
27147 q
27148 }
27149 /@datadir@/p
27150 /@docdir@/p
27151 /@infodir@/p
27152 /@localedir@/p
27153 /@mandir@/p'
27154 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27155 *datarootdir*) ac_datarootdir_seen=yes;;
27156 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27158 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27159 _ACEOF
27160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27161 ac_datarootdir_hack='
27162 s&@datadir@&$datadir&g
27163 s&@docdir@&$docdir&g
27164 s&@infodir@&$infodir&g
27165 s&@localedir@&$localedir&g
27166 s&@mandir@&$mandir&g
27167 s&\\\${datarootdir}&$datarootdir&g' ;;
27168 esac
27169 _ACEOF
27170
27171 # Neutralize VPATH when '$srcdir' = '.'.
27172 # Shell code in configure.ac might set extrasub.
27173 # FIXME: do we really want to maintain this feature?
27174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27175 ac_sed_extra="$ac_vpsub
27176 $extrasub
27177 _ACEOF
27178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27179 :t
27180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27181 s|@configure_input@|$ac_sed_conf_input|;t t
27182 s&@top_builddir@&$ac_top_builddir_sub&;t t
27183 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27184 s&@srcdir@&$ac_srcdir&;t t
27185 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27186 s&@top_srcdir@&$ac_top_srcdir&;t t
27187 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27188 s&@builddir@&$ac_builddir&;t t
27189 s&@abs_builddir@&$ac_abs_builddir&;t t
27190 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27191 s&@INSTALL@&$ac_INSTALL&;t t
27192 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27193 $ac_datarootdir_hack
27194 "
27195 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27196 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27197
27198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27199 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27201 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
27203 which seems to be undefined. Please make sure it is defined" >&5
27204 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
27205 which seems to be undefined. Please make sure it is defined" >&2;}
27206
27207 rm -f "$ac_tmp/stdin"
27208 case $ac_file in
27209 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27210 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27211 esac \
27212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27213 ;;
27214 :H)
27215 #
27216 # CONFIG_HEADER
27217 #
27218 if test x"$ac_file" != x-; then
27219 {
27220 printf "%s\n" "/* $configure_input */" >&1 \
27221 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27222 } >"$ac_tmp/config.h" \
27223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27224 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27226 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27227 else
27228 rm -f "$ac_file"
27229 mv "$ac_tmp/config.h" "$ac_file" \
27230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27231 fi
27232 else
27233 printf "%s\n" "/* $configure_input */" >&1 \
27234 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27235 || as_fn_error $? "could not create -" "$LINENO" 5
27236 fi
27237 # Compute "$ac_file"'s index in $config_headers.
27238 _am_arg="$ac_file"
27239 _am_stamp_count=1
27240 for _am_header in $config_headers :; do
27241 case $_am_header in
27242 $_am_arg | $_am_arg:* )
27243 break ;;
27244 * )
27245 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27246 esac
27247 done
27248 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27249 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27250 X"$_am_arg" : 'X\(//\)[^/]' \| \
27251 X"$_am_arg" : 'X\(//\)$' \| \
27252 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27253 printf "%s\n" X"$_am_arg" |
27254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27255 s//\1/
27256 q
27257 }
27258 /^X\(\/\/\)[^/].*/{
27259 s//\1/
27260 q
27261 }
27262 /^X\(\/\/\)$/{
27263 s//\1/
27264 q
27265 }
27266 /^X\(\/\).*/{
27267 s//\1/
27268 q
27269 }
27270 s/.*/./; q'`/stamp-h$_am_stamp_count
27271 ;;
27272
27273 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27274 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27275 ;;
27276 esac
27277
27278
27279 case $ac_file$ac_mode in
27280 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27281 # Older Autoconf quotes --file arguments for eval, but not when files
27282 # are listed without --file. Let's play safe and only enable the eval
27283 # if we detect the quoting.
27284 # TODO: see whether this extra hack can be removed once we start
27285 # requiring Autoconf 2.70 or later.
27286 case $CONFIG_FILES in #(
27287 *\'*) :
27288 eval set x "$CONFIG_FILES" ;; #(
27289 *) :
27290 set x $CONFIG_FILES ;; #(
27291 *) :
27292 ;;
27293 esac
27294 shift
27295 # Used to flag and report bootstrapping failures.
27296 am_rc=0
27297 for am_mf
27298 do
27299 # Strip MF so we end up with the name of the file.
27300 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
27301 # Check whether this is an Automake generated Makefile which includes
27302 # dependency-tracking related rules and includes.
27303 # Grep'ing the whole file directly is not great: AIX grep has a line
27304 # limit of 2048, but all sed's we know have understand at least 4000.
27305 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
27306 || continue
27307 am_dirpart=`$as_dirname -- "$am_mf" ||
27308 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27309 X"$am_mf" : 'X\(//\)[^/]' \| \
27310 X"$am_mf" : 'X\(//\)$' \| \
27311 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27312 printf "%s\n" X"$am_mf" |
27313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27314 s//\1/
27315 q
27316 }
27317 /^X\(\/\/\)[^/].*/{
27318 s//\1/
27319 q
27320 }
27321 /^X\(\/\/\)$/{
27322 s//\1/
27323 q
27324 }
27325 /^X\(\/\).*/{
27326 s//\1/
27327 q
27328 }
27329 s/.*/./; q'`
27330 am_filepart=`$as_basename -- "$am_mf" ||
27331 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
27332 X"$am_mf" : 'X\(//\)$' \| \
27333 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27334 printf "%s\n" X/"$am_mf" |
27335 sed '/^.*\/\([^/][^/]*\)\/*$/{
27336 s//\1/
27337 q
27338 }
27339 /^X\/\(\/\/\)$/{
27340 s//\1/
27341 q
27342 }
27343 /^X\/\(\/\).*/{
27344 s//\1/
27345 q
27346 }
27347 s/.*/./; q'`
27348 { echo "$as_me:$LINENO: cd "$am_dirpart" \
27349 && sed -e '/# am--include-marker/d' "$am_filepart" \
27350 | $MAKE -f - am--depfiles" >&5
27351 (cd "$am_dirpart" \
27352 && sed -e '/# am--include-marker/d' "$am_filepart" \
27353 | $MAKE -f - am--depfiles) >&5 2>&5
27354 ac_status=$?
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } || am_rc=$?
27357 done
27358 if test $am_rc -ne 0; then
27359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27361 as_fn_error $? "Something went wrong bootstrapping makefile fragments
27362 for automatic dependency tracking. If GNU make was not used, consider
27363 re-running the configure script with MAKE=\"gmake\" (or whatever is
27364 necessary). You can also try re-running configure with the
27365 '--disable-dependency-tracking' option to at least be able to build
27366 the package (albeit without support for automatic dependency tracking).
27367 See 'config.log' for more details" "$LINENO" 5; }
27368 fi
27369 { am_dirpart=; unset am_dirpart;}
27370 { am_filepart=; unset am_filepart;}
27371 { am_mf=; unset am_mf;}
27372 { am_rc=; unset am_rc;}
27373 rm -f conftest-deps.mk
27374 }
27375 ;;
27376 "libtool":C)
27377
27378 # See if we are running on zsh, and set the options that allow our
27379 # commands through without removal of \ escapes.
27380 if test -n "${ZSH_VERSION+set}"; then
27381 setopt NO_GLOB_SUBST
27382 fi
27383
27384 cfgfile=${ofile}T
27385 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27386 $RM "$cfgfile"
27387
27388 cat <<_LT_EOF >> "$cfgfile"
27389 #! $SHELL
27390 # Generated automatically by $as_me ($PACKAGE) $VERSION
27391 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27392
27393 # Provide generalized library-building support services.
27394 # Written by Gordon Matzigkeit, 1996
27395
27396 # Copyright (C) 2024 Free Software Foundation, Inc.
27397 # This is free software; see the source for copying conditions. There is NO
27398 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27399
27400 # GNU Libtool is free software; you can redistribute it and/or modify
27401 # it under the terms of the GNU General Public License as published by
27402 # the Free Software Foundation; either version 2 of the License, or
27403 # (at your option) any later version.
27404 #
27405 # As a special exception to the GNU General Public License, if you
27406 # distribute this file as part of a program or library that is built
27407 # using GNU Libtool, you may include this file under the same
27408 # distribution terms that you use for the rest of that program.
27409 #
27410 # GNU Libtool is distributed in the hope that it will be useful, but
27411 # WITHOUT ANY WARRANTY; without even the implied warranty of
27412 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27413 # GNU General Public License for more details.
27414 #
27415 # You should have received a copy of the GNU General Public License
27416 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27417
27418
27419 # The names of the tagged configurations supported by this script.
27420 available_tags='CXX '
27421
27422 # Configured defaults for sys_lib_dlsearch_path munging.
27423 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27424
27425 # ### BEGIN LIBTOOL CONFIG
27426
27427 # Which release of libtool.m4 was used?
27428 macro_version=$macro_version
27429 macro_revision=$macro_revision
27430
27431 # Assembler program.
27432 AS=$lt_AS
27433
27434 # DLL creation program.
27435 DLLTOOL=$lt_DLLTOOL
27436
27437 # Object dumper program.
27438 OBJDUMP=$lt_OBJDUMP
27439
27440 # Whether or not to build static libraries.
27441 build_old_libs=$enable_static
27442
27443 # What type of objects to build.
27444 pic_mode=$pic_mode
27445
27446 # Whether or not to build shared libraries.
27447 build_libtool_libs=$enable_shared
27448
27449 # Whether or not to optimize for fast installation.
27450 fast_install=$enable_fast_install
27451
27452 # Shared archive member basename,for filename based shared library versioning on AIX.
27453 shared_archive_member_spec=$shared_archive_member_spec
27454
27455 # Shell to use when invoking shell scripts.
27456 SHELL=$lt_SHELL
27457
27458 # An echo program that protects backslashes.
27459 ECHO=$lt_ECHO
27460
27461 # The PATH separator for the build system.
27462 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27463
27464 # The host system.
27465 host_alias=$host_alias
27466 host=$host
27467 host_os=$host_os
27468
27469 # The build system.
27470 build_alias=$build_alias
27471 build=$build
27472 build_os=$build_os
27473
27474 # A sed program that does not truncate output.
27475 SED=$lt_SED
27476
27477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27478 Xsed="\$SED -e 1s/^X//"
27479
27480 # A grep program that handles long lines.
27481 GREP=$lt_GREP
27482
27483 # An ERE matcher.
27484 EGREP=$lt_EGREP
27485
27486 # A literal string matcher.
27487 FGREP=$lt_FGREP
27488
27489 # A BSD- or MS-compatible name lister.
27490 NM=$lt_NM
27491
27492 # Whether we need soft or hard links.
27493 LN_S=$lt_LN_S
27494
27495 # What is the maximum length of a command?
27496 max_cmd_len=$max_cmd_len
27497
27498 # Object file suffix (normally "o").
27499 objext=$ac_objext
27500
27501 # Executable file suffix (normally "").
27502 exeext=$exeext
27503
27504 # whether the shell understands "unset".
27505 lt_unset=$lt_unset
27506
27507 # turn spaces into newlines.
27508 SP2NL=$lt_lt_SP2NL
27509
27510 # turn newlines into spaces.
27511 NL2SP=$lt_lt_NL2SP
27512
27513 # convert \$build file names to \$host format.
27514 to_host_file_cmd=$lt_cv_to_host_file_cmd
27515
27516 # convert \$build files to toolchain format.
27517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27518
27519 # A file(cmd) program that detects file types.
27520 FILECMD=$lt_FILECMD
27521
27522 # Method to check whether dependent libraries are shared objects.
27523 deplibs_check_method=$lt_deplibs_check_method
27524
27525 # Command to use when deplibs_check_method = "file_magic".
27526 file_magic_cmd=$lt_file_magic_cmd
27527
27528 # How to find potential files when deplibs_check_method = "file_magic".
27529 file_magic_glob=$lt_file_magic_glob
27530
27531 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27532 want_nocaseglob=$lt_want_nocaseglob
27533
27534 # Command to associate shared and link libraries.
27535 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27536
27537 # The archiver.
27538 AR=$lt_AR
27539
27540 # Flags to create an archive (by configure).
27541 lt_ar_flags=$lt_ar_flags
27542
27543 # Flags to create an archive.
27544 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
27545
27546 # How to feed a file listing to the archiver.
27547 archiver_list_spec=$lt_archiver_list_spec
27548
27549 # A symbol stripping program.
27550 STRIP=$lt_STRIP
27551
27552 # Commands used to install an old-style archive.
27553 RANLIB=$lt_RANLIB
27554 old_postinstall_cmds=$lt_old_postinstall_cmds
27555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27556
27557 # Whether to use a lock for old archive extraction.
27558 lock_old_archive_extraction=$lock_old_archive_extraction
27559
27560 # A C compiler.
27561 LTCC=$lt_CC
27562
27563 # LTCC compiler flags.
27564 LTCFLAGS=$lt_CFLAGS
27565
27566 # Take the output of nm and produce a listing of raw symbols and C names.
27567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27568
27569 # Transform the output of nm in a proper C declaration.
27570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27571
27572 # Transform the output of nm into a list of symbols to manually relocate.
27573 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27574
27575 # Transform the output of nm in a C name address pair.
27576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27577
27578 # Transform the output of nm in a C name address pair when lib prefix is needed.
27579 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27580
27581 # The name lister interface.
27582 nm_interface=$lt_lt_cv_nm_interface
27583
27584 # Specify filename containing input files for \$NM.
27585 nm_file_list_spec=$lt_nm_file_list_spec
27586
27587 # The root where to search for dependent libraries,and where our libraries should be installed.
27588 lt_sysroot=$lt_sysroot
27589
27590 # Command to truncate a binary pipe.
27591 lt_truncate_bin=$lt_lt_cv_truncate_bin
27592
27593 # The name of the directory that contains temporary libtool files.
27594 objdir=$objdir
27595
27596 # Used to examine libraries when file_magic_cmd begins with "file".
27597 MAGIC_CMD=$MAGIC_CMD
27598
27599 # Must we lock files when doing compilation?
27600 need_locks=$lt_need_locks
27601
27602 # Manifest tool.
27603 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27604
27605 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27606 DSYMUTIL=$lt_DSYMUTIL
27607
27608 # Tool to change global to local symbols on Mac OS X.
27609 NMEDIT=$lt_NMEDIT
27610
27611 # Tool to manipulate fat objects and archives on Mac OS X.
27612 LIPO=$lt_LIPO
27613
27614 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27615 OTOOL=$lt_OTOOL
27616
27617 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27618 OTOOL64=$lt_OTOOL64
27619
27620 # Old archive suffix (normally "a").
27621 libext=$libext
27622
27623 # Shared library suffix (normally ".so").
27624 shrext_cmds=$lt_shrext_cmds
27625
27626 # The commands to extract the exported symbol list from a shared archive.
27627 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27628
27629 # Variables whose values should be saved in libtool wrapper scripts and
27630 # restored at link time.
27631 variables_saved_for_relink=$lt_variables_saved_for_relink
27632
27633 # Do we need the "lib" prefix for modules?
27634 need_lib_prefix=$need_lib_prefix
27635
27636 # Do we need a version for libraries?
27637 need_version=$need_version
27638
27639 # Library versioning type.
27640 version_type=$version_type
27641
27642 # Shared library runtime path variable.
27643 runpath_var=$runpath_var
27644
27645 # Shared library path variable.
27646 shlibpath_var=$shlibpath_var
27647
27648 # Is shlibpath searched before the hard-coded library search path?
27649 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27650
27651 # Format of library name prefix.
27652 libname_spec=$lt_libname_spec
27653
27654 # List of archive names. First name is the real one, the rest are links.
27655 # The last name is the one that the linker finds with -lNAME
27656 library_names_spec=$lt_library_names_spec
27657
27658 # The coded name of the library, if different from the real name.
27659 soname_spec=$lt_soname_spec
27660
27661 # Permission mode override for installation of shared libraries.
27662 install_override_mode=$lt_install_override_mode
27663
27664 # Command to use after installation of a shared archive.
27665 postinstall_cmds=$lt_postinstall_cmds
27666
27667 # Command to use after uninstallation of a shared archive.
27668 postuninstall_cmds=$lt_postuninstall_cmds
27669
27670 # Commands used to finish a libtool library installation in a directory.
27671 finish_cmds=$lt_finish_cmds
27672
27673 # As "finish_cmds", except a single script fragment to be evaled but
27674 # not shown.
27675 finish_eval=$lt_finish_eval
27676
27677 # Whether we should hardcode library paths into libraries.
27678 hardcode_into_libs=$hardcode_into_libs
27679
27680 # Compile-time system search path for libraries.
27681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27682
27683 # Detected run-time system search path for libraries.
27684 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27685
27686 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27687 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27688
27689 # Whether dlopen is supported.
27690 dlopen_support=$enable_dlopen
27691
27692 # Whether dlopen of programs is supported.
27693 dlopen_self=$enable_dlopen_self
27694
27695 # Whether dlopen of statically linked programs is supported.
27696 dlopen_self_static=$enable_dlopen_self_static
27697
27698 # Commands to strip libraries.
27699 old_striplib=$lt_old_striplib
27700 striplib=$lt_striplib
27701
27702
27703 # The linker used to build libraries.
27704 LD=$lt_LD
27705
27706 # How to create reloadable object files.
27707 reload_flag=$lt_reload_flag
27708 reload_cmds=$lt_reload_cmds
27709
27710 # Commands used to build an old-style archive.
27711 old_archive_cmds=$lt_old_archive_cmds
27712
27713 # A language specific compiler.
27714 CC=$lt_compiler
27715
27716 # Is the compiler the GNU compiler?
27717 with_gcc=$GCC
27718
27719 # Compiler flag to turn off builtin functions.
27720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27721
27722 # Additional compiler flags for building library objects.
27723 pic_flag=$lt_lt_prog_compiler_pic
27724
27725 # How to pass a linker flag through the compiler.
27726 wl=$lt_lt_prog_compiler_wl
27727
27728 # Compiler flag to prevent dynamic linking.
27729 link_static_flag=$lt_lt_prog_compiler_static
27730
27731 # Does compiler simultaneously support -c and -o options?
27732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27733
27734 # Whether or not to add -lc for building shared libraries.
27735 build_libtool_need_lc=$archive_cmds_need_lc
27736
27737 # Whether or not to disallow shared libs when runtime libs are static.
27738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27739
27740 # Compiler flag to allow reflexive dlopens.
27741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27742
27743 # Compiler flag to generate shared objects directly from archives.
27744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27745
27746 # Whether the compiler copes with passing no objects directly.
27747 compiler_needs_object=$lt_compiler_needs_object
27748
27749 # Create an old-style archive from a shared archive.
27750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27751
27752 # Create a temporary old-style archive to link instead of a shared archive.
27753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27754
27755 # Commands used to build a shared archive.
27756 archive_cmds=$lt_archive_cmds
27757 archive_expsym_cmds=$lt_archive_expsym_cmds
27758
27759 # Commands used to build a loadable module if different from building
27760 # a shared archive.
27761 module_cmds=$lt_module_cmds
27762 module_expsym_cmds=$lt_module_expsym_cmds
27763
27764 # Whether we are building with GNU ld or not.
27765 with_gnu_ld=$lt_with_gnu_ld
27766
27767 # Flag that allows shared libraries with undefined symbols to be built.
27768 allow_undefined_flag=$lt_allow_undefined_flag
27769
27770 # Flag that enforces no undefined symbols.
27771 no_undefined_flag=$lt_no_undefined_flag
27772
27773 # Flag to hardcode \$libdir into a binary during linking.
27774 # This must work even if \$libdir does not exist
27775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27776
27777 # Whether we need a single "-rpath" flag with a separated argument.
27778 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27779
27780 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27781 # DIR into the resulting binary.
27782 hardcode_direct=$hardcode_direct
27783
27784 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27785 # DIR into the resulting binary and the resulting library dependency is
27786 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
27787 # library is relocated.
27788 hardcode_direct_absolute=$hardcode_direct_absolute
27789
27790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27791 # into the resulting binary.
27792 hardcode_minus_L=$hardcode_minus_L
27793
27794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27795 # into the resulting binary.
27796 hardcode_shlibpath_var=$hardcode_shlibpath_var
27797
27798 # Set to "yes" if building a shared library automatically hardcodes DIR
27799 # into the library and all subsequent libraries and executables linked
27800 # against it.
27801 hardcode_automatic=$hardcode_automatic
27802
27803 # Set to yes if linker adds runtime paths of dependent libraries
27804 # to runtime path list.
27805 inherit_rpath=$inherit_rpath
27806
27807 # Whether libtool must link a program against all its dependency libraries.
27808 link_all_deplibs=$link_all_deplibs
27809
27810 # Set to "yes" if exported symbols are required.
27811 always_export_symbols=$always_export_symbols
27812
27813 # The commands to list exported symbols.
27814 export_symbols_cmds=$lt_export_symbols_cmds
27815
27816 # Symbols that should not be listed in the preloaded symbols.
27817 exclude_expsyms=$lt_exclude_expsyms
27818
27819 # Symbols that must always be exported.
27820 include_expsyms=$lt_include_expsyms
27821
27822 # Commands necessary for linking programs (against libraries) with templates.
27823 prelink_cmds=$lt_prelink_cmds
27824
27825 # Commands necessary for finishing linking programs.
27826 postlink_cmds=$lt_postlink_cmds
27827
27828 # Specify filename containing input files.
27829 file_list_spec=$lt_file_list_spec
27830
27831 # How to hardcode a shared library path into an executable.
27832 hardcode_action=$hardcode_action
27833
27834 # The directories searched by this compiler when creating a shared library.
27835 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27836
27837 # Dependencies to place before and after the objects being linked to
27838 # create a shared library.
27839 predep_objects=$lt_predep_objects
27840 postdep_objects=$lt_postdep_objects
27841 predeps=$lt_predeps
27842 postdeps=$lt_postdeps
27843
27844 # The library search path used internally by the compiler when linking
27845 # a shared library.
27846 compiler_lib_search_path=$lt_compiler_lib_search_path
27847
27848 # ### END LIBTOOL CONFIG
27849
27850 _LT_EOF
27851
27852 cat <<'_LT_EOF' >> "$cfgfile"
27853
27854 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27855
27856 # func_munge_path_list VARIABLE PATH
27857 # -----------------------------------
27858 # VARIABLE is name of variable containing _space_ separated list of
27859 # directories to be munged by the contents of PATH, which is string
27860 # having a format:
27861 # "DIR[:DIR]:"
27862 # string "DIR[ DIR]" will be prepended to VARIABLE
27863 # ":DIR[:DIR]"
27864 # string "DIR[ DIR]" will be appended to VARIABLE
27865 # "DIRP[:DIRP]::[DIRA:]DIRA"
27866 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27867 # "DIRA[ DIRA]" will be appended to VARIABLE
27868 # "DIR[:DIR]"
27869 # VARIABLE will be replaced by "DIR[ DIR]"
27870 func_munge_path_list ()
27871 {
27872 case x$2 in
27873 x)
27874 ;;
27875 *:)
27876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27877 ;;
27878 x:*)
27879 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27880 ;;
27881 *::*)
27882 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27883 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27884 ;;
27885 *)
27886 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27887 ;;
27888 esac
27889 }
27890
27891
27892 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
27893 func_cc_basename ()
27894 {
27895 for cc_temp in $*""; do
27896 case $cc_temp in
27897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27899 \-*) ;;
27900 *) break;;
27901 esac
27902 done
27903 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27904 }
27905
27906
27907 # ### END FUNCTIONS SHARED WITH CONFIGURE
27908
27909 _LT_EOF
27910
27911 case $host_os in
27912 aix3*)
27913 cat <<\_LT_EOF >> "$cfgfile"
27914 # AIX sometimes has problems with the GCC collect2 program. For some
27915 # reason, if we set the COLLECT_NAMES environment variable, the problems
27916 # vanish in a puff of smoke.
27917 if test set != "${COLLECT_NAMES+set}"; then
27918 COLLECT_NAMES=
27919 export COLLECT_NAMES
27920 fi
27921 _LT_EOF
27922 ;;
27923 esac
27924
27925
27926
27927 ltmain=$ac_aux_dir/ltmain.sh
27928
27929
27930 # We use sed instead of cat because bash on DJGPP gets confused if
27931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27932 # text mode, it properly converts lines to CR/LF. This bash problem
27933 # is reportedly fixed, but why not run on old versions too?
27934 $SED '$q' "$ltmain" >> "$cfgfile" \
27935 || (rm -f "$cfgfile"; exit 1)
27936
27937 mv -f "$cfgfile" "$ofile" ||
27938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27939 chmod +x "$ofile"
27940
27941
27942 cat <<_LT_EOF >> "$ofile"
27943
27944 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27945
27946 # The linker used to build libraries.
27947 LD=$lt_LD_CXX
27948
27949 # How to create reloadable object files.
27950 reload_flag=$lt_reload_flag_CXX
27951 reload_cmds=$lt_reload_cmds_CXX
27952
27953 # Commands used to build an old-style archive.
27954 old_archive_cmds=$lt_old_archive_cmds_CXX
27955
27956 # A language specific compiler.
27957 CC=$lt_compiler_CXX
27958
27959 # Is the compiler the GNU compiler?
27960 with_gcc=$GCC_CXX
27961
27962 # Compiler flag to turn off builtin functions.
27963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27964
27965 # Additional compiler flags for building library objects.
27966 pic_flag=$lt_lt_prog_compiler_pic_CXX
27967
27968 # How to pass a linker flag through the compiler.
27969 wl=$lt_lt_prog_compiler_wl_CXX
27970
27971 # Compiler flag to prevent dynamic linking.
27972 link_static_flag=$lt_lt_prog_compiler_static_CXX
27973
27974 # Does compiler simultaneously support -c and -o options?
27975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27976
27977 # Whether or not to add -lc for building shared libraries.
27978 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27979
27980 # Whether or not to disallow shared libs when runtime libs are static.
27981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27982
27983 # Compiler flag to allow reflexive dlopens.
27984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27985
27986 # Compiler flag to generate shared objects directly from archives.
27987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27988
27989 # Whether the compiler copes with passing no objects directly.
27990 compiler_needs_object=$lt_compiler_needs_object_CXX
27991
27992 # Create an old-style archive from a shared archive.
27993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27994
27995 # Create a temporary old-style archive to link instead of a shared archive.
27996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27997
27998 # Commands used to build a shared archive.
27999 archive_cmds=$lt_archive_cmds_CXX
28000 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28001
28002 # Commands used to build a loadable module if different from building
28003 # a shared archive.
28004 module_cmds=$lt_module_cmds_CXX
28005 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28006
28007 # Whether we are building with GNU ld or not.
28008 with_gnu_ld=$lt_with_gnu_ld_CXX
28009
28010 # Flag that allows shared libraries with undefined symbols to be built.
28011 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28012
28013 # Flag that enforces no undefined symbols.
28014 no_undefined_flag=$lt_no_undefined_flag_CXX
28015
28016 # Flag to hardcode \$libdir into a binary during linking.
28017 # This must work even if \$libdir does not exist
28018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28019
28020 # Whether we need a single "-rpath" flag with a separated argument.
28021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28022
28023 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28024 # DIR into the resulting binary.
28025 hardcode_direct=$hardcode_direct_CXX
28026
28027 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28028 # DIR into the resulting binary and the resulting library dependency is
28029 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
28030 # library is relocated.
28031 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28032
28033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28034 # into the resulting binary.
28035 hardcode_minus_L=$hardcode_minus_L_CXX
28036
28037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28038 # into the resulting binary.
28039 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28040
28041 # Set to "yes" if building a shared library automatically hardcodes DIR
28042 # into the library and all subsequent libraries and executables linked
28043 # against it.
28044 hardcode_automatic=$hardcode_automatic_CXX
28045
28046 # Set to yes if linker adds runtime paths of dependent libraries
28047 # to runtime path list.
28048 inherit_rpath=$inherit_rpath_CXX
28049
28050 # Whether libtool must link a program against all its dependency libraries.
28051 link_all_deplibs=$link_all_deplibs_CXX
28052
28053 # Set to "yes" if exported symbols are required.
28054 always_export_symbols=$always_export_symbols_CXX
28055
28056 # The commands to list exported symbols.
28057 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28058
28059 # Symbols that should not be listed in the preloaded symbols.
28060 exclude_expsyms=$lt_exclude_expsyms_CXX
28061
28062 # Symbols that must always be exported.
28063 include_expsyms=$lt_include_expsyms_CXX
28064
28065 # Commands necessary for linking programs (against libraries) with templates.
28066 prelink_cmds=$lt_prelink_cmds_CXX
28067
28068 # Commands necessary for finishing linking programs.
28069 postlink_cmds=$lt_postlink_cmds_CXX
28070
28071 # Specify filename containing input files.
28072 file_list_spec=$lt_file_list_spec_CXX
28073
28074 # How to hardcode a shared library path into an executable.
28075 hardcode_action=$hardcode_action_CXX
28076
28077 # The directories searched by this compiler when creating a shared library.
28078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28079
28080 # Dependencies to place before and after the objects being linked to
28081 # create a shared library.
28082 predep_objects=$lt_predep_objects_CXX
28083 postdep_objects=$lt_postdep_objects_CXX
28084 predeps=$lt_predeps_CXX
28085 postdeps=$lt_postdeps_CXX
28086
28087 # The library search path used internally by the compiler when linking
28088 # a shared library.
28089 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28090
28091 # ### END LIBTOOL TAG CONFIG: CXX
28092 _LT_EOF
28093
28094 ;;
28095
28096 esac
28097 done # for ac_tag
28098
28099
28100 as_fn_exit 0
28101 _ACEOF
28102 ac_clean_files=$ac_clean_files_save
28103
28104 test $ac_write_fail = 0 ||
28105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28106
28107
28108 # configure is writing to config.log, and then calls config.status.
28109 # config.status does its own redirection, appending to config.log.
28110 # Unfortunately, on DOS this fails, as config.log is still kept open
28111 # by configure, so config.status won't be able to write to it; its
28112 # output is simply discarded. So we exec the FD to /dev/null,
28113 # effectively closing config.log, so it can be properly (re)opened and
28114 # appended to by config.status. When coming back to configure, we
28115 # need to make the FD available again.
28116 if test "$no_create" != yes; then
28117 ac_cs_success=:
28118 ac_config_status_args=
28119 test "$silent" = yes &&
28120 ac_config_status_args="$ac_config_status_args --quiet"
28121 exec 5>/dev/null
28122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28123 exec 5>>config.log
28124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28125 # would make configure fail if this is the last instruction.
28126 $ac_cs_success || as_fn_exit 1
28127 fi
28128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28130 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28131 fi
28132
28133
28134 # ==============================================
28135 # Display final informations about configuration
28136 # ==============================================
28137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
28138 ==============================================================================
28139 Build configuration:
28140 debug: ${enable_debug}
28141 docs: ${build_docs}
28142 fuzzers: ${enable_fuzzers}
28143 tests: ${enable_tests}
28144 tools: ${enable_tools}
28145 werror: ${enable_werror}
28146 ==============================================================================
28147 " >&5
28148 printf "%s\n" "$as_me:
28149 ==============================================================================
28150 Build configuration:
28151 debug: ${enable_debug}
28152 docs: ${build_docs}
28153 fuzzers: ${enable_fuzzers}
28154 tests: ${enable_tests}
28155 tools: ${enable_tools}
28156 werror: ${enable_werror}
28157 ==============================================================================
28158 " >&6;}
28159