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.71 for librevenge 0.0.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
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="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
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 \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='librevenge'
620 PACKAGE_TARNAME='librevenge'
621 PACKAGE_VERSION='0.0.5'
622 PACKAGE_STRING='librevenge 0.0.5'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 BUILD_FUZZERS_FALSE
663 BUILD_FUZZERS_TRUE
664 GDBDATADIR
665 GDB
666 BUILD_PRETTY_PRINTERS_FALSE
667 BUILD_PRETTY_PRINTERS_TRUE
668 BUILD_GENERATORS_FALSE
669 BUILD_GENERATORS_TRUE
670 ZLIB_LIBS
671 ZLIB_CFLAGS
672 BUILD_STREAMS_FALSE
673 BUILD_STREAMS_TRUE
674 WITH_LIBREVENGE_DOCS_FALSE
675 WITH_LIBREVENGE_DOCS_TRUE
676 DOXYGEN
677 ENABLE_TESTS_FALSE
678 ENABLE_TESTS_TRUE
679 CPPUNIT_LIBS
680 CPPUNIT_CFLAGS
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 DEBUG_CXXFLAGS
685 WINDRES
686 PLATFORM_DARWIN_FALSE
687 PLATFORM_DARWIN_TRUE
688 HAVE_VISIBILITY_FALSE
689 HAVE_VISIBILITY_TRUE
690 PLATFORM_WIN32_FALSE
691 PLATFORM_WIN32_TRUE
692 LIBREVENGE_STREAM_WIN32_RESOURCE
693 LIBREVENGE_GENERATORS_WIN32_RESOURCE
694 LIBREVENGE_WIN32_RESOURCE
695 OS_WIN32_FALSE
696 OS_WIN32_TRUE
697 LT_AGE
698 LT_REVISION
699 LT_CURRENT
700 RVNG_VERSION
701 RVNG_MICRO_VERSION
702 RVNG_MINOR_VERSION
703 RVNG_MAJOR_VERSION
704 HAVE_CXX11
705 CXXCPP
706 LT_SYS_LIBRARY_PATH
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
712 MANIFEST_TOOL
713 RANLIB
714 FILECMD
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 LIBTOOL
732 OBJDUMP
733 DLLTOOL
734 AS
735 LN_S
736 am__fastdepCXX_FALSE
737 am__fastdepCXX_TRUE
738 CXXDEPMODE
739 ac_ct_CXX
740 CXXFLAGS
741 CXX
742 CPP
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 am__nodep
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 ac_ct_AR
760 AR
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 CSCOPE
766 ETAGS
767 CTAGS
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 AWK
774 mkdir_p
775 MKDIR_P
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 MAKEINFO
780 AUTOHEADER
781 AUTOMAKE
782 AUTOCONF
783 ACLOCAL
784 VERSION
785 PACKAGE
786 CYGPATH_W
787 am__isrc
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
791 target_alias
792 host_alias
793 build_alias
794 LIBS
795 ECHO_T
796 ECHO_N
797 ECHO_C
798 DEFS
799 mandir
800 localedir
801 libdir
802 psdir
803 pdfdir
804 dvidir
805 htmldir
806 infodir
807 docdir
808 oldincludedir
809 includedir
810 runstatedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL
830 am__quote'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_dependency_tracking
836 enable_static
837 with_pic
838 enable_shared
839 enable_fast_install
840 with_aix_soname
841 with_gnu_ld
842 with_sysroot
843 enable_libtool_lock
844 enable_werror
845 enable_weffc
846 enable_wparanoic
847 enable_debug
848 enable_tests
849 with_docs
850 enable_streams
851 enable_generators
852 enable_pretty_printers
853 with_gdb_data_dir
854 enable_fuzzers
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CPP
865 CXX
866 CXXFLAGS
867 CCC
868 LT_SYS_LIBRARY_PATH
869 CXXCPP
870 PKG_CONFIG
871 PKG_CONFIG_PATH
872 PKG_CONFIG_LIBDIR
873 CPPUNIT_CFLAGS
874 CPPUNIT_LIBS
875 ZLIB_CFLAGS
876 ZLIB_LIBS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 runstatedir='${localstatedir}/run'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
948
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
953
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
968
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
973
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: \`$ac_useropt'"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1006
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1042
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1047
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1077
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1151
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -runstatedir | --runstatedir | --runstatedi | --runstated \
1167 | --runstate | --runstat | --runsta | --runst | --runs \
1168 | --run | --ru | --r)
1169 ac_prev=runstatedir ;;
1170 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1171 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1172 | --run=* | --ru=* | --r=*)
1173 runstatedir=$ac_optarg ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: \`$ac_useropt'"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: \`$ac_useropt'"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1298 fi
1299
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306 fi
1307
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir runstatedir
1313 do
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1328
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1335
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 printf "%s\n" X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1389 fi
1390 else
1391 ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures librevenge 0.0.5 to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/librevenge]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1480
1481 cat <<\_ACEOF
1482
1483 Program names:
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of librevenge 0.0.5:";;
1497 esac
1498 cat <<\_ACEOF
1499
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-silent-rules less verbose build output (undo: "make V=1")
1505 --disable-silent-rules verbose build output (undo: "make V=0")
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --enable-static[=PKGS] build static libraries [default=no]
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1515 --enable-werror Treat all warnings as errors, usefull for
1516 development
1517 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1518 version of gcc or of boost
1519 --enable-wparanoic Enable a lot of warnings...
1520 --enable-debug Turn on debugging
1521 --enable-tests Build and run unit tests
1522 --disable-streams Do not build librevenge-stream library
1523 --disable-generators Do not build librevenge-generators library
1524 --enable-pretty-printers
1525 Install gdb pretty printers
1526 --disable-fuzzers Build fuzzer(s)
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-aix-soname=aix|svr4|both
1534 shared library versioning (aka "SONAME") variant to
1535 provide on AIX, [default=aix].
1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1538 compiler's sysroot if not specified).
1539 --without-docs Do not build documentation
1540 --with-gdb-data-dir Specify gdb data dir
1541
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1550 CPP C preprocessor
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
1553 LT_SYS_LIBRARY_PATH
1554 User-defined run-time library search path.
1555 CXXCPP C++ preprocessor
1556 PKG_CONFIG path to pkg-config utility
1557 PKG_CONFIG_PATH
1558 directories to add to pkg-config's search path
1559 PKG_CONFIG_LIBDIR
1560 path overriding pkg-config's built-in search path
1561 CPPUNIT_CFLAGS
1562 C compiler flags for CPPUNIT, overriding pkg-config
1563 CPPUNIT_LIBS
1564 linker flags for CPPUNIT, overriding pkg-config
1565 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1566 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to the package provider.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
1582 ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601 .) # We are building in place.
1602 ac_srcdir=.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for configure.gnu first; this name is used for a wrapper for
1618 # Metaconfig's "Configure" on case-insensitive file systems.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 librevenge configure 0.0.5
1636 generated by GNU Autoconf 2.71
1637
1638 Copyright (C) 2021 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext
1675 then :
1676 ac_retval=0
1677 else $as_nop
1678 printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 printf "%s\n" "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }
1713 then :
1714 ac_retval=0
1715 else $as_nop
1716 printf "%s\n" "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_cpp
1725
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest.beam
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 printf "%s\n" "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext
1752 then :
1753 ac_retval=0
1754 else $as_nop
1755 printf "%s\n" "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_cxx_try_compile
1764
1765 # ac_fn_c_try_link LINENO
1766 # -----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_link ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 printf "%s\n" "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest$ac_exeext && {
1791 test "$cross_compiling" = yes ||
1792 test -x conftest$ac_exeext
1793 }
1794 then :
1795 ac_retval=0
1796 else $as_nop
1797 printf "%s\n" "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811
1812 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists and can be compiled using the include files in
1815 # INCLUDES, setting the cache variable VAR accordingly.
1816 ac_fn_c_check_header_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 printf %s "checking for $2... " >&6; }
1821 if eval test \${$3+y}
1822 then :
1823 printf %s "(cached) " >&6
1824 else $as_nop
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"
1831 then :
1832 eval "$3=yes"
1833 else $as_nop
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 printf "%s\n" "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_header_compile
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 printf %s "checking for $2... " >&6; }
1853 if eval test \${$3+y}
1854 then :
1855 printf %s "(cached) " >&6
1856 else $as_nop
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861 #define $2 innocuous_$2
1862
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below. */
1865
1866 #include <limits.h>
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main (void)
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"
1892 then :
1893 eval "$3=yes"
1894 else $as_nop
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 printf "%s\n" "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_cxx_try_cpp LINENO
1908 # ------------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_cpp ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 printf "%s\n" "$ac_try_echo"; } >&5
1920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } > conftest.i && {
1929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 }
1932 then :
1933 ac_retval=0
1934 else $as_nop
1935 printf "%s\n" "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_cxx_try_cpp
1944
1945 # ac_fn_cxx_try_link LINENO
1946 # -------------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_link ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 printf "%s\n" "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_cxx_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 test -x conftest$ac_exeext
1973 }
1974 then :
1975 ac_retval=0
1976 else $as_nop
1977 printf "%s\n" "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981 fi
1982 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984 # interfere with the next link command; also delete a directory that is
1985 # left behind by Apple's compiler. We do this before executing the actions.
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1989
1990 } # ac_fn_cxx_try_link
1991
1992 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1993 # ---------------------------------------------------------
1994 # Tests whether HEADER exists and can be compiled using the include files in
1995 # INCLUDES, setting the cache variable VAR accordingly.
1996 ac_fn_cxx_check_header_compile ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 printf %s "checking for $2... " >&6; }
2001 if eval test \${$3+y}
2002 then :
2003 printf %s "(cached) " >&6
2004 else $as_nop
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_cxx_try_compile "$LINENO"
2011 then :
2012 eval "$3=yes"
2013 else $as_nop
2014 eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 printf "%s\n" "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_cxx_check_header_compile
2024 ac_configure_args_raw=
2025 for ac_arg
2026 do
2027 case $ac_arg in
2028 *\'*)
2029 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 as_fn_append ac_configure_args_raw " '$ac_arg'"
2032 done
2033
2034 case $ac_configure_args_raw in
2035 *$as_nl*)
2036 ac_safe_unquote= ;;
2037 *)
2038 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2039 ac_unsafe_a="$ac_unsafe_z#~"
2040 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2041 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2042 esac
2043
2044 cat >config.log <<_ACEOF
2045 This file contains any messages produced by compilers while
2046 running configure, to aid debugging if configure makes a mistake.
2047
2048 It was created by librevenge $as_me 0.0.5, which was
2049 generated by GNU Autoconf 2.71. Invocation command line was
2050
2051 $ $0$ac_configure_args_raw
2052
2053 _ACEOF
2054 exec 5>>config.log
2055 {
2056 cat <<_ASUNAME
2057 ## --------- ##
2058 ## Platform. ##
2059 ## --------- ##
2060
2061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069
2070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077
2078 _ASUNAME
2079
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083 IFS=$as_save_IFS
2084 case $as_dir in #(((
2085 '') as_dir=./ ;;
2086 */) ;;
2087 *) as_dir=$as_dir/ ;;
2088 esac
2089 printf "%s\n" "PATH: $as_dir"
2090 done
2091 IFS=$as_save_IFS
2092
2093 } >&5
2094
2095 cat >&5 <<_ACEOF
2096
2097
2098 ## ----------- ##
2099 ## Core tests. ##
2100 ## ----------- ##
2101
2102 _ACEOF
2103
2104
2105 # Keep a trace of the command line.
2106 # Strip out --no-create and --no-recursion so they do not pile up.
2107 # Strip out --silent because we don't want to record it for future runs.
2108 # Also quote any args containing shell meta-characters.
2109 # Make two passes to allow for proper duplicate-argument suppression.
2110 ac_configure_args=
2111 ac_configure_args0=
2112 ac_configure_args1=
2113 ac_must_keep_next=false
2114 for ac_pass in 1 2
2115 do
2116 for ac_arg
2117 do
2118 case $ac_arg in
2119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2121 | -silent | --silent | --silen | --sile | --sil)
2122 continue ;;
2123 *\'*)
2124 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2125 esac
2126 case $ac_pass in
2127 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2128 2)
2129 as_fn_append ac_configure_args1 " '$ac_arg'"
2130 if test $ac_must_keep_next = true; then
2131 ac_must_keep_next=false # Got value, back to normal.
2132 else
2133 case $ac_arg in
2134 *=* | --config-cache | -C | -disable-* | --disable-* \
2135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2137 | -with-* | --with-* | -without-* | --without-* | --x)
2138 case "$ac_configure_args0 " in
2139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2140 esac
2141 ;;
2142 -* ) ac_must_keep_next=true ;;
2143 esac
2144 fi
2145 as_fn_append ac_configure_args " '$ac_arg'"
2146 ;;
2147 esac
2148 done
2149 done
2150 { ac_configure_args0=; unset ac_configure_args0;}
2151 { ac_configure_args1=; unset ac_configure_args1;}
2152
2153 # When interrupted or exit'd, cleanup temporary files, and complete
2154 # config.log. We remove comments because anyway the quotes in there
2155 # would cause problems or look ugly.
2156 # WARNING: Use '\'' to represent an apostrophe within the trap.
2157 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2158 trap 'exit_status=$?
2159 # Sanitize IFS.
2160 IFS=" "" $as_nl"
2161 # Save into config.log some information that might help in debugging.
2162 {
2163 echo
2164
2165 printf "%s\n" "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2168 echo
2169 # The following way of writing the cache mishandles newlines in values,
2170 (
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in #(
2174 *${as_nl}*)
2175 case $ac_var in #(
2176 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178 esac
2179 case $ac_var in #(
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2183 esac ;;
2184 esac
2185 done
2186 (set) 2>&1 |
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2189 sed -n \
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192 ;; #(
2193 *)
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195 ;;
2196 esac |
2197 sort
2198 )
2199 echo
2200
2201 printf "%s\n" "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2204 echo
2205 for ac_var in $ac_subst_vars
2206 do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 printf "%s\n" "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2214
2215 if test -n "$ac_subst_files"; then
2216 printf "%s\n" "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2219 echo
2220 for ac_var in $ac_subst_files
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 printf "%s\n" "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229 fi
2230
2231 if test -s confdefs.h; then
2232 printf "%s\n" "## ----------- ##
2233 ## confdefs.h. ##
2234 ## ----------- ##"
2235 echo
2236 cat confdefs.h
2237 echo
2238 fi
2239 test "$ac_signal" != 0 &&
2240 printf "%s\n" "$as_me: caught signal $ac_signal"
2241 printf "%s\n" "$as_me: exit $exit_status"
2242 } >&5
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245 exit $exit_status
2246 ' 0
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2251
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2254
2255 printf "%s\n" "/* confdefs.h */" > confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2260
2261 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2262
2263 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2264
2265 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2266
2267 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2268
2269 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2270
2271
2272 # Let the site file select an alternate cache file if it wants to.
2273 # Prefer an explicitly selected file to automatically selected ones.
2274 if test -n "$CONFIG_SITE"; then
2275 ac_site_files="$CONFIG_SITE"
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2278 else
2279 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2280 fi
2281
2282 for ac_site_file in $ac_site_files
2283 do
2284 case $ac_site_file in #(
2285 */*) :
2286 ;; #(
2287 *) :
2288 ac_site_file=./$ac_site_file ;;
2289 esac
2290 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2293 sed 's/^/| /' "$ac_site_file" >&5
2294 . "$ac_site_file" \
2295 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2297 as_fn_error $? "failed to load site script $ac_site_file
2298 See \`config.log' for more details" "$LINENO" 5; }
2299 fi
2300 done
2301
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2308 case $cache_file in
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2311 esac
2312 fi
2313 else
2314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2316 >$cache_file
2317 fi
2318
2319 # Test code for whether the C compiler supports C89 (global declarations)
2320 ac_c_conftest_c89_globals='
2321 /* Does the compiler advertise C89 conformance?
2322 Do not test the value of __STDC__, because some compilers set it to 0
2323 while being otherwise adequately conformant. */
2324 #if !defined __STDC__
2325 # error "Compiler does not advertise C89 conformance"
2326 #endif
2327
2328 #include <stddef.h>
2329 #include <stdarg.h>
2330 struct stat;
2331 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2332 struct buf { int x; };
2333 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2334 static char *e (p, i)
2335 char **p;
2336 int i;
2337 {
2338 return p[i];
2339 }
2340 static char *f (char * (*g) (char **, int), char **p, ...)
2341 {
2342 char *s;
2343 va_list v;
2344 va_start (v,p);
2345 s = g (p, va_arg (v,int));
2346 va_end (v);
2347 return s;
2348 }
2349
2350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2351 function prototypes and stuff, but not \xHH hex character constants.
2352 These do not provoke an error unfortunately, instead are silently treated
2353 as an "x". The following induces an error, until -std is added to get
2354 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2355 array size at least. It is necessary to write \x00 == 0 to get something
2356 that is true only with -std. */
2357 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2358
2359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2360 inside strings and character constants. */
2361 #define FOO(x) '\''x'\''
2362 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2363
2364 int test (int i, double x);
2365 struct s1 {int (*f) (int a);};
2366 struct s2 {int (*f) (double a);};
2367 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2368 int, int);'
2369
2370 # Test code for whether the C compiler supports C89 (body of main).
2371 ac_c_conftest_c89_main='
2372 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2373 '
2374
2375 # Test code for whether the C compiler supports C99 (global declarations)
2376 ac_c_conftest_c99_globals='
2377 // Does the compiler advertise C99 conformance?
2378 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2379 # error "Compiler does not advertise C99 conformance"
2380 #endif
2381
2382 #include <stdbool.h>
2383 extern int puts (const char *);
2384 extern int printf (const char *, ...);
2385 extern int dprintf (int, const char *, ...);
2386 extern void *malloc (size_t);
2387
2388 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2389 // dprintf is used instead of fprintf to avoid needing to declare
2390 // FILE and stderr.
2391 #define debug(...) dprintf (2, __VA_ARGS__)
2392 #define showlist(...) puts (#__VA_ARGS__)
2393 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2394 static void
2395 test_varargs_macros (void)
2396 {
2397 int x = 1234;
2398 int y = 5678;
2399 debug ("Flag");
2400 debug ("X = %d\n", x);
2401 showlist (The first, second, and third items.);
2402 report (x>y, "x is %d but y is %d", x, y);
2403 }
2404
2405 // Check long long types.
2406 #define BIG64 18446744073709551615ull
2407 #define BIG32 4294967295ul
2408 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2409 #if !BIG_OK
2410 #error "your preprocessor is broken"
2411 #endif
2412 #if BIG_OK
2413 #else
2414 #error "your preprocessor is broken"
2415 #endif
2416 static long long int bignum = -9223372036854775807LL;
2417 static unsigned long long int ubignum = BIG64;
2418
2419 struct incomplete_array
2420 {
2421 int datasize;
2422 double data[];
2423 };
2424
2425 struct named_init {
2426 int number;
2427 const wchar_t *name;
2428 double average;
2429 };
2430
2431 typedef const char *ccp;
2432
2433 static inline int
2434 test_restrict (ccp restrict text)
2435 {
2436 // See if C++-style comments work.
2437 // Iterate through items via the restricted pointer.
2438 // Also check for declarations in for loops.
2439 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2440 continue;
2441 return 0;
2442 }
2443
2444 // Check varargs and va_copy.
2445 static bool
2446 test_varargs (const char *format, ...)
2447 {
2448 va_list args;
2449 va_start (args, format);
2450 va_list args_copy;
2451 va_copy (args_copy, args);
2452
2453 const char *str = "";
2454 int number = 0;
2455 float fnumber = 0;
2456
2457 while (*format)
2458 {
2459 switch (*format++)
2460 {
2461 case '\''s'\'': // string
2462 str = va_arg (args_copy, const char *);
2463 break;
2464 case '\''d'\'': // int
2465 number = va_arg (args_copy, int);
2466 break;
2467 case '\''f'\'': // float
2468 fnumber = va_arg (args_copy, double);
2469 break;
2470 default:
2471 break;
2472 }
2473 }
2474 va_end (args_copy);
2475 va_end (args);
2476
2477 return *str && number && fnumber;
2478 }
2479 '
2480
2481 # Test code for whether the C compiler supports C99 (body of main).
2482 ac_c_conftest_c99_main='
2483 // Check bool.
2484 _Bool success = false;
2485 success |= (argc != 0);
2486
2487 // Check restrict.
2488 if (test_restrict ("String literal") == 0)
2489 success = true;
2490 char *restrict newvar = "Another string";
2491
2492 // Check varargs.
2493 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2494 test_varargs_macros ();
2495
2496 // Check flexible array members.
2497 struct incomplete_array *ia =
2498 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2499 ia->datasize = 10;
2500 for (int i = 0; i < ia->datasize; ++i)
2501 ia->data[i] = i * 1.234;
2502
2503 // Check named initializers.
2504 struct named_init ni = {
2505 .number = 34,
2506 .name = L"Test wide string",
2507 .average = 543.34343,
2508 };
2509
2510 ni.number = 58;
2511
2512 int dynamic_array[ni.number];
2513 dynamic_array[0] = argv[0][0];
2514 dynamic_array[ni.number - 1] = 543;
2515
2516 // work around unused variable warnings
2517 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2518 || dynamic_array[ni.number - 1] != 543);
2519 '
2520
2521 # Test code for whether the C compiler supports C11 (global declarations)
2522 ac_c_conftest_c11_globals='
2523 // Does the compiler advertise C11 conformance?
2524 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2525 # error "Compiler does not advertise C11 conformance"
2526 #endif
2527
2528 // Check _Alignas.
2529 char _Alignas (double) aligned_as_double;
2530 char _Alignas (0) no_special_alignment;
2531 extern char aligned_as_int;
2532 char _Alignas (0) _Alignas (int) aligned_as_int;
2533
2534 // Check _Alignof.
2535 enum
2536 {
2537 int_alignment = _Alignof (int),
2538 int_array_alignment = _Alignof (int[100]),
2539 char_alignment = _Alignof (char)
2540 };
2541 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2542
2543 // Check _Noreturn.
2544 int _Noreturn does_not_return (void) { for (;;) continue; }
2545
2546 // Check _Static_assert.
2547 struct test_static_assert
2548 {
2549 int x;
2550 _Static_assert (sizeof (int) <= sizeof (long int),
2551 "_Static_assert does not work in struct");
2552 long int y;
2553 };
2554
2555 // Check UTF-8 literals.
2556 #define u8 syntax error!
2557 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2558
2559 // Check duplicate typedefs.
2560 typedef long *long_ptr;
2561 typedef long int *long_ptr;
2562 typedef long_ptr long_ptr;
2563
2564 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2565 struct anonymous
2566 {
2567 union {
2568 struct { int i; int j; };
2569 struct { int k; long int l; } w;
2570 };
2571 int m;
2572 } v1;
2573 '
2574
2575 # Test code for whether the C compiler supports C11 (body of main).
2576 ac_c_conftest_c11_main='
2577 _Static_assert ((offsetof (struct anonymous, i)
2578 == offsetof (struct anonymous, w.k)),
2579 "Anonymous union alignment botch");
2580 v1.i = 2;
2581 v1.w.k = 5;
2582 ok |= v1.i != 5;
2583 '
2584
2585 # Test code for whether the C compiler supports C11 (complete).
2586 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2587 ${ac_c_conftest_c99_globals}
2588 ${ac_c_conftest_c11_globals}
2589
2590 int
2591 main (int argc, char **argv)
2592 {
2593 int ok = 0;
2594 ${ac_c_conftest_c89_main}
2595 ${ac_c_conftest_c99_main}
2596 ${ac_c_conftest_c11_main}
2597 return ok;
2598 }
2599 "
2600
2601 # Test code for whether the C compiler supports C99 (complete).
2602 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2603 ${ac_c_conftest_c99_globals}
2604
2605 int
2606 main (int argc, char **argv)
2607 {
2608 int ok = 0;
2609 ${ac_c_conftest_c89_main}
2610 ${ac_c_conftest_c99_main}
2611 return ok;
2612 }
2613 "
2614
2615 # Test code for whether the C compiler supports C89 (complete).
2616 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2617
2618 int
2619 main (int argc, char **argv)
2620 {
2621 int ok = 0;
2622 ${ac_c_conftest_c89_main}
2623 return ok;
2624 }
2625 "
2626
2627 # Test code for whether the C++ compiler supports C++98 (global declarations)
2628 ac_cxx_conftest_cxx98_globals='
2629 // Does the compiler advertise C++98 conformance?
2630 #if !defined __cplusplus || __cplusplus < 199711L
2631 # error "Compiler does not advertise C++98 conformance"
2632 #endif
2633
2634 // These inclusions are to reject old compilers that
2635 // lack the unsuffixed header files.
2636 #include <cstdlib>
2637 #include <exception>
2638
2639 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2640 extern void assert (int);
2641 namespace std {
2642 extern int strcmp (const char *, const char *);
2643 }
2644
2645 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2646 using std::exception;
2647 using std::strcmp;
2648
2649 namespace {
2650
2651 void test_exception_syntax()
2652 {
2653 try {
2654 throw "test";
2655 } catch (const char *s) {
2656 // Extra parentheses suppress a warning when building autoconf itself,
2657 // due to lint rules shared with more typical C programs.
2658 assert (!(strcmp) (s, "test"));
2659 }
2660 }
2661
2662 template <typename T> struct test_template
2663 {
2664 T const val;
2665 explicit test_template(T t) : val(t) {}
2666 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2667 };
2668
2669 } // anonymous namespace
2670 '
2671
2672 # Test code for whether the C++ compiler supports C++98 (body of main)
2673 ac_cxx_conftest_cxx98_main='
2674 assert (argc);
2675 assert (! argv[0]);
2676 {
2677 test_exception_syntax ();
2678 test_template<double> tt (2.0);
2679 assert (tt.add (4) == 6.0);
2680 assert (true && !false);
2681 }
2682 '
2683
2684 # Test code for whether the C++ compiler supports C++11 (global declarations)
2685 ac_cxx_conftest_cxx11_globals='
2686 // Does the compiler advertise C++ 2011 conformance?
2687 #if !defined __cplusplus || __cplusplus < 201103L
2688 # error "Compiler does not advertise C++11 conformance"
2689 #endif
2690
2691 namespace cxx11test
2692 {
2693 constexpr int get_val() { return 20; }
2694
2695 struct testinit
2696 {
2697 int i;
2698 double d;
2699 };
2700
2701 class delegate
2702 {
2703 public:
2704 delegate(int n) : n(n) {}
2705 delegate(): delegate(2354) {}
2706
2707 virtual int getval() { return this->n; };
2708 protected:
2709 int n;
2710 };
2711
2712 class overridden : public delegate
2713 {
2714 public:
2715 overridden(int n): delegate(n) {}
2716 virtual int getval() override final { return this->n * 2; }
2717 };
2718
2719 class nocopy
2720 {
2721 public:
2722 nocopy(int i): i(i) {}
2723 nocopy() = default;
2724 nocopy(const nocopy&) = delete;
2725 nocopy & operator=(const nocopy&) = delete;
2726 private:
2727 int i;
2728 };
2729
2730 // for testing lambda expressions
2731 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2732 {
2733 return f(v);
2734 }
2735
2736 // for testing variadic templates and trailing return types
2737 template <typename V> auto sum(V first) -> V
2738 {
2739 return first;
2740 }
2741 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2742 {
2743 return first + sum(rest...);
2744 }
2745 }
2746 '
2747
2748 # Test code for whether the C++ compiler supports C++11 (body of main)
2749 ac_cxx_conftest_cxx11_main='
2750 {
2751 // Test auto and decltype
2752 auto a1 = 6538;
2753 auto a2 = 48573953.4;
2754 auto a3 = "String literal";
2755
2756 int total = 0;
2757 for (auto i = a3; *i; ++i) { total += *i; }
2758
2759 decltype(a2) a4 = 34895.034;
2760 }
2761 {
2762 // Test constexpr
2763 short sa[cxx11test::get_val()] = { 0 };
2764 }
2765 {
2766 // Test initializer lists
2767 cxx11test::testinit il = { 4323, 435234.23544 };
2768 }
2769 {
2770 // Test range-based for
2771 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2772 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2773 for (auto &x : array) { x += 23; }
2774 }
2775 {
2776 // Test lambda expressions
2777 using cxx11test::eval;
2778 assert (eval ([](int x) { return x*2; }, 21) == 42);
2779 double d = 2.0;
2780 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2781 assert (d == 5.0);
2782 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2783 assert (d == 5.0);
2784 }
2785 {
2786 // Test use of variadic templates
2787 using cxx11test::sum;
2788 auto a = sum(1);
2789 auto b = sum(1, 2);
2790 auto c = sum(1.0, 2.0, 3.0);
2791 }
2792 {
2793 // Test constructor delegation
2794 cxx11test::delegate d1;
2795 cxx11test::delegate d2();
2796 cxx11test::delegate d3(45);
2797 }
2798 {
2799 // Test override and final
2800 cxx11test::overridden o1(55464);
2801 }
2802 {
2803 // Test nullptr
2804 char *c = nullptr;
2805 }
2806 {
2807 // Test template brackets
2808 test_template<::test_template<int>> v(test_template<int>(12));
2809 }
2810 {
2811 // Unicode literals
2812 char const *utf8 = u8"UTF-8 string \u2500";
2813 char16_t const *utf16 = u"UTF-8 string \u2500";
2814 char32_t const *utf32 = U"UTF-32 string \u2500";
2815 }
2816 '
2817
2818 # Test code for whether the C compiler supports C++11 (complete).
2819 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2820 ${ac_cxx_conftest_cxx11_globals}
2821
2822 int
2823 main (int argc, char **argv)
2824 {
2825 int ok = 0;
2826 ${ac_cxx_conftest_cxx98_main}
2827 ${ac_cxx_conftest_cxx11_main}
2828 return ok;
2829 }
2830 "
2831
2832 # Test code for whether the C compiler supports C++98 (complete).
2833 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2834 int
2835 main (int argc, char **argv)
2836 {
2837 int ok = 0;
2838 ${ac_cxx_conftest_cxx98_main}
2839 return ok;
2840 }
2841 "
2842
2843 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2844 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2845 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2846 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2847 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2848 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2849 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2850 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2851 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2852
2853 # Auxiliary files required by this configure script.
2854 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2855
2856 # Locations in which to look for auxiliary files.
2857 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2858
2859 # Search for a directory containing all of the required auxiliary files,
2860 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2861 # If we don't find one directory that contains all the files we need,
2862 # we report the set of missing files from the *first* directory in
2863 # $ac_aux_dir_candidates and give up.
2864 ac_missing_aux_files=""
2865 ac_first_candidate=:
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 as_found=false
2869 for as_dir in $ac_aux_dir_candidates
2870 do
2871 IFS=$as_save_IFS
2872 case $as_dir in #(((
2873 '') as_dir=./ ;;
2874 */) ;;
2875 *) as_dir=$as_dir/ ;;
2876 esac
2877 as_found=:
2878
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2880 ac_aux_dir_found=yes
2881 ac_install_sh=
2882 for ac_aux in $ac_aux_files
2883 do
2884 # As a special case, if "install-sh" is required, that requirement
2885 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2886 # and $ac_install_sh is set appropriately for whichever one is found.
2887 if test x"$ac_aux" = x"install-sh"
2888 then
2889 if test -f "${as_dir}install-sh"; then
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2891 ac_install_sh="${as_dir}install-sh -c"
2892 elif test -f "${as_dir}install.sh"; then
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2894 ac_install_sh="${as_dir}install.sh -c"
2895 elif test -f "${as_dir}shtool"; then
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2897 ac_install_sh="${as_dir}shtool install -c"
2898 else
2899 ac_aux_dir_found=no
2900 if $ac_first_candidate; then
2901 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2902 else
2903 break
2904 fi
2905 fi
2906 else
2907 if test -f "${as_dir}${ac_aux}"; then
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2909 else
2910 ac_aux_dir_found=no
2911 if $ac_first_candidate; then
2912 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2913 else
2914 break
2915 fi
2916 fi
2917 fi
2918 done
2919 if test "$ac_aux_dir_found" = yes; then
2920 ac_aux_dir="$as_dir"
2921 break
2922 fi
2923 ac_first_candidate=false
2924
2925 as_found=false
2926 done
2927 IFS=$as_save_IFS
2928 if $as_found
2929 then :
2930
2931 else $as_nop
2932 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2933 fi
2934
2935
2936 # These three variables are undocumented and unsupported,
2937 # and are intended to be withdrawn in a future Autoconf release.
2938 # They can cause serious problems if a builder's source tree is in a directory
2939 # whose full name contains unusual characters.
2940 if test -f "${ac_aux_dir}config.guess"; then
2941 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2942 fi
2943 if test -f "${ac_aux_dir}config.sub"; then
2944 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2945 fi
2946 if test -f "$ac_aux_dir/configure"; then
2947 ac_configure="$SHELL ${ac_aux_dir}configure"
2948 fi
2949
2950 # Check that the precious variables saved in the cache have kept the same
2951 # value.
2952 ac_cache_corrupted=false
2953 for ac_var in $ac_precious_vars; do
2954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2955 eval ac_new_set=\$ac_env_${ac_var}_set
2956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2957 eval ac_new_val=\$ac_env_${ac_var}_value
2958 case $ac_old_set,$ac_new_set in
2959 set,)
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2961 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2963 ,set)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2965 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2967 ,);;
2968 *)
2969 if test "x$ac_old_val" != "x$ac_new_val"; then
2970 # differences in whitespace do not lead to failure.
2971 ac_old_val_w=`echo x $ac_old_val`
2972 ac_new_val_w=`echo x $ac_new_val`
2973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2975 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2976 ac_cache_corrupted=:
2977 else
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2979 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2980 eval $ac_var=\$ac_old_val
2981 fi
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2983 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2985 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2986 fi;;
2987 esac
2988 # Pass precious variables to config.status.
2989 if test "$ac_new_set" = set; then
2990 case $ac_new_val in
2991 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2992 *) ac_arg=$ac_var=$ac_new_val ;;
2993 esac
2994 case " $ac_configure_args " in
2995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2996 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2997 esac
2998 fi
2999 done
3000 if $ac_cache_corrupted; then
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3004 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3005 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3006 and start over" "$LINENO" 5
3007 fi
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3011
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018
3019
3020 ac_config_headers="$ac_config_headers config.h"
3021
3022 am__api_version='1.16'
3023
3024
3025
3026 # Find a good install program. We prefer a C program (faster),
3027 # so one script is as good as another. But avoid the broken or
3028 # incompatible versions:
3029 # SysV /etc/install, /usr/sbin/install
3030 # SunOS /usr/etc/install
3031 # IRIX /sbin/install
3032 # AIX /bin/install
3033 # AmigaOS /C/install, which installs bootblocks on floppy discs
3034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3037 # OS/2's system install, which has a completely different semantic
3038 # ./install, which can be erroneously created by make from ./install.sh.
3039 # Reject install programs that cannot install multiple files.
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3041 printf %s "checking for a BSD-compatible install... " >&6; }
3042 if test -z "$INSTALL"; then
3043 if test ${ac_cv_path_install+y}
3044 then :
3045 printf %s "(cached) " >&6
3046 else $as_nop
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 case $as_dir in #(((
3052 '') as_dir=./ ;;
3053 */) ;;
3054 *) as_dir=$as_dir/ ;;
3055 esac
3056 # Account for fact that we put trailing slashes in our PATH walk.
3057 case $as_dir in #((
3058 ./ | /[cC]/* | \
3059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3060 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3061 /usr/ucb/* ) ;;
3062 *)
3063 # OSF1 and SCO ODT 3.0 have their own names for install.
3064 # Don't use installbsd from OSF since it installs stuff as root
3065 # by default.
3066 for ac_prog in ginstall scoinst install; do
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3069 if test $ac_prog = install &&
3070 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071 # AIX install. It has an incompatible calling convention.
3072 :
3073 elif test $ac_prog = install &&
3074 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3075 # program-specific install script used by HP pwplus--don't use.
3076 :
3077 else
3078 rm -rf conftest.one conftest.two conftest.dir
3079 echo one > conftest.one
3080 echo two > conftest.two
3081 mkdir conftest.dir
3082 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3083 test -s conftest.one && test -s conftest.two &&
3084 test -s conftest.dir/conftest.one &&
3085 test -s conftest.dir/conftest.two
3086 then
3087 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3088 break 3
3089 fi
3090 fi
3091 fi
3092 done
3093 done
3094 ;;
3095 esac
3096
3097 done
3098 IFS=$as_save_IFS
3099
3100 rm -rf conftest.one conftest.two conftest.dir
3101
3102 fi
3103 if test ${ac_cv_path_install+y}; then
3104 INSTALL=$ac_cv_path_install
3105 else
3106 # As a last resort, use the slow shell script. Don't cache a
3107 # value for INSTALL within a source directory, because that will
3108 # break other packages using the cache if that directory is
3109 # removed, or if the value is a relative name.
3110 INSTALL=$ac_install_sh
3111 fi
3112 fi
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3114 printf "%s\n" "$INSTALL" >&6; }
3115
3116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3117 # It thinks the first close brace ends the variable substitution.
3118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3119
3120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3121
3122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3123
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3125 printf %s "checking whether build environment is sane... " >&6; }
3126 # Reject unsafe characters in $srcdir or the absolute working directory
3127 # name. Accept space and tab only in the latter.
3128 am_lf='
3129 '
3130 case `pwd` in
3131 *[\\\"\#\$\&\'\`$am_lf]*)
3132 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3133 esac
3134 case $srcdir in
3135 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3136 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3137 esac
3138
3139 # Do 'set' in a subshell so we don't clobber the current shell's
3140 # arguments. Must try -L first in case configure is actually a
3141 # symlink; some systems play weird games with the mod time of symlinks
3142 # (eg FreeBSD returns the mod time of the symlink's containing
3143 # directory).
3144 if (
3145 am_has_slept=no
3146 for am_try in 1 2; do
3147 echo "timestamp, slept: $am_has_slept" > conftest.file
3148 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3149 if test "$*" = "X"; then
3150 # -L didn't work.
3151 set X `ls -t "$srcdir/configure" conftest.file`
3152 fi
3153 if test "$*" != "X $srcdir/configure conftest.file" \
3154 && test "$*" != "X conftest.file $srcdir/configure"; then
3155
3156 # If neither matched, then we have a broken ls. This can happen
3157 # if, for instance, CONFIG_SHELL is bash and it inherits a
3158 # broken ls alias from the environment. This has actually
3159 # happened. Such a system could not be considered "sane".
3160 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3161 alias in your environment" "$LINENO" 5
3162 fi
3163 if test "$2" = conftest.file || test $am_try -eq 2; then
3164 break
3165 fi
3166 # Just in case.
3167 sleep 1
3168 am_has_slept=yes
3169 done
3170 test "$2" = conftest.file
3171 )
3172 then
3173 # Ok.
3174 :
3175 else
3176 as_fn_error $? "newly created file is older than distributed files!
3177 Check your system clock" "$LINENO" 5
3178 fi
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3180 printf "%s\n" "yes" >&6; }
3181 # If we didn't sleep, we still need to ensure time stamps of config.status and
3182 # generated files are strictly newer.
3183 am_sleep_pid=
3184 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3185 ( sleep 1 ) &
3186 am_sleep_pid=$!
3187 fi
3188
3189 rm -f conftest.file
3190
3191 test "$program_prefix" != NONE &&
3192 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3193 # Use a double $ so make ignores it.
3194 test "$program_suffix" != NONE &&
3195 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3196 # Double any \ or $.
3197 # By default was `s,x,x', remove it if useless.
3198 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3199 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3200
3201
3202 # Expand $ac_aux_dir to an absolute path.
3203 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3204
3205
3206 if test x"${MISSING+set}" != xset; then
3207 MISSING="\${SHELL} '$am_aux_dir/missing'"
3208 fi
3209 # Use eval to expand $SHELL
3210 if eval "$MISSING --is-lightweight"; then
3211 am_missing_run="$MISSING "
3212 else
3213 am_missing_run=
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3215 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3216 fi
3217
3218 if test x"${install_sh+set}" != xset; then
3219 case $am_aux_dir in
3220 *\ * | *\ *)
3221 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3222 *)
3223 install_sh="\${SHELL} $am_aux_dir/install-sh"
3224 esac
3225 fi
3226
3227 # Installed binaries are usually stripped using 'strip' when the user
3228 # run "make install-strip". However 'strip' might not be the right
3229 # tool to use in cross-compilation environments, therefore Automake
3230 # will honor the 'STRIP' environment variable to overrule this program.
3231 if test "$cross_compiling" != no; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}strip; ac_word=$2
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 printf %s "checking for $ac_word... " >&6; }
3237 if test ${ac_cv_prog_STRIP+y}
3238 then :
3239 printf %s "(cached) " >&6
3240 else $as_nop
3241 if test -n "$STRIP"; then
3242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 case $as_dir in #(((
3249 '') as_dir=./ ;;
3250 */) ;;
3251 *) as_dir=$as_dir/ ;;
3252 esac
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 STRIP=$ac_cv_prog_STRIP
3266 if test -n "$STRIP"; then
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3268 printf "%s\n" "$STRIP" >&6; }
3269 else
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 printf "%s\n" "no" >&6; }
3272 fi
3273
3274
3275 fi
3276 if test -z "$ac_cv_prog_STRIP"; then
3277 ac_ct_STRIP=$STRIP
3278 # Extract the first word of "strip", so it can be a program name with args.
3279 set dummy strip; ac_word=$2
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 printf %s "checking for $ac_word... " >&6; }
3282 if test ${ac_cv_prog_ac_ct_STRIP+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else $as_nop
3286 if test -n "$ac_ct_STRIP"; then
3287 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 case $as_dir in #(((
3294 '') as_dir=./ ;;
3295 */) ;;
3296 *) as_dir=$as_dir/ ;;
3297 esac
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_ac_ct_STRIP="strip"
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3311 if test -n "$ac_ct_STRIP"; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3313 printf "%s\n" "$ac_ct_STRIP" >&6; }
3314 else
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 printf "%s\n" "no" >&6; }
3317 fi
3318
3319 if test "x$ac_ct_STRIP" = x; then
3320 STRIP=":"
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3326 ac_tool_warned=yes ;;
3327 esac
3328 STRIP=$ac_ct_STRIP
3329 fi
3330 else
3331 STRIP="$ac_cv_prog_STRIP"
3332 fi
3333
3334 fi
3335 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3336
3337
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3339 printf %s "checking for a race-free mkdir -p... " >&6; }
3340 if test -z "$MKDIR_P"; then
3341 if test ${ac_cv_path_mkdir+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else $as_nop
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3347 do
3348 IFS=$as_save_IFS
3349 case $as_dir in #(((
3350 '') as_dir=./ ;;
3351 */) ;;
3352 *) as_dir=$as_dir/ ;;
3353 esac
3354 for ac_prog in mkdir gmkdir; do
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3357 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3358 'mkdir ('*'coreutils) '* | \
3359 'BusyBox '* | \
3360 'mkdir (fileutils) '4.1*)
3361 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3362 break 3;;
3363 esac
3364 done
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370
3371 test -d ./--version && rmdir ./--version
3372 if test ${ac_cv_path_mkdir+y}; then
3373 MKDIR_P="$ac_cv_path_mkdir -p"
3374 else
3375 # As a last resort, use the slow shell script. Don't cache a
3376 # value for MKDIR_P within a source directory, because that will
3377 # break other packages using the cache if that directory is
3378 # removed, or if the value is a relative name.
3379 MKDIR_P="$ac_install_sh -d"
3380 fi
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3383 printf "%s\n" "$MKDIR_P" >&6; }
3384
3385 for ac_prog in gawk mawk nawk awk
3386 do
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 printf %s "checking for $ac_word... " >&6; }
3391 if test ${ac_cv_prog_AWK+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else $as_nop
3395 if test -n "$AWK"; then
3396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_AWK="$ac_prog"
3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 AWK=$ac_cv_prog_AWK
3420 if test -n "$AWK"; then
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3422 printf "%s\n" "$AWK" >&6; }
3423 else
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 fi
3427
3428
3429 test -n "$AWK" && break
3430 done
3431
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3433 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3434 set x ${MAKE-make}
3435 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3436 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3437 then :
3438 printf %s "(cached) " >&6
3439 else $as_nop
3440 cat >conftest.make <<\_ACEOF
3441 SHELL = /bin/sh
3442 all:
3443 @echo '@@@%%%=$(MAKE)=@@@%%%'
3444 _ACEOF
3445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3447 *@@@%%%=?*=@@@%%%*)
3448 eval ac_cv_prog_make_${ac_make}_set=yes;;
3449 *)
3450 eval ac_cv_prog_make_${ac_make}_set=no;;
3451 esac
3452 rm -f conftest.make
3453 fi
3454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3456 printf "%s\n" "yes" >&6; }
3457 SET_MAKE=
3458 else
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3461 SET_MAKE="MAKE=${MAKE-make}"
3462 fi
3463
3464 rm -rf .tst 2>/dev/null
3465 mkdir .tst 2>/dev/null
3466 if test -d .tst; then
3467 am__leading_dot=.
3468 else
3469 am__leading_dot=_
3470 fi
3471 rmdir .tst 2>/dev/null
3472
3473 # Check whether --enable-silent-rules was given.
3474 if test ${enable_silent_rules+y}
3475 then :
3476 enableval=$enable_silent_rules;
3477 fi
3478
3479 case $enable_silent_rules in # (((
3480 yes) AM_DEFAULT_VERBOSITY=0;;
3481 no) AM_DEFAULT_VERBOSITY=1;;
3482 *) AM_DEFAULT_VERBOSITY=1;;
3483 esac
3484 am_make=${MAKE-make}
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3486 printf %s "checking whether $am_make supports nested variables... " >&6; }
3487 if test ${am_cv_make_support_nested_variables+y}
3488 then :
3489 printf %s "(cached) " >&6
3490 else $as_nop
3491 if printf "%s\n" 'TRUE=$(BAR$(V))
3492 BAR0=false
3493 BAR1=true
3494 V=1
3495 am__doit:
3496 @$(TRUE)
3497 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3498 am_cv_make_support_nested_variables=yes
3499 else
3500 am_cv_make_support_nested_variables=no
3501 fi
3502 fi
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3504 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3505 if test $am_cv_make_support_nested_variables = yes; then
3506 AM_V='$(V)'
3507 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3508 else
3509 AM_V=$AM_DEFAULT_VERBOSITY
3510 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3511 fi
3512 AM_BACKSLASH='\'
3513
3514 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3515 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3516 # is not polluted with repeated "-I."
3517 am__isrc=' -I$(srcdir)'
3518 # test to see if srcdir already configured
3519 if test -f $srcdir/config.status; then
3520 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3521 fi
3522 fi
3523
3524 # test whether we have cygpath
3525 if test -z "$CYGPATH_W"; then
3526 if (cygpath --version) >/dev/null 2>/dev/null; then
3527 CYGPATH_W='cygpath -w'
3528 else
3529 CYGPATH_W=echo
3530 fi
3531 fi
3532
3533
3534 # Define the identity of the package.
3535 PACKAGE='librevenge'
3536 VERSION='0.0.5'
3537
3538
3539 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3540
3541
3542 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3543
3544 # Some tools Automake needs.
3545
3546 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3547
3548
3549 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3550
3551
3552 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3553
3554
3555 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3556
3557
3558 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3559
3560 # For better backward compatibility. To be removed once Automake 1.9.x
3561 # dies out for good. For more background, see:
3562 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3563 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3564 mkdir_p='$(MKDIR_P)'
3565
3566 # We need awk for the "check" target (and possibly the TAP driver). The
3567 # system "awk" is bad on some platforms.
3568 # Always define AMTAR for backward compatibility. Yes, it's still used
3569 # in the wild :-( We should find a proper way to deprecate it ...
3570 AMTAR='$${TAR-tar}'
3571
3572
3573 # We'll loop over all known methods to create a tar archive until one works.
3574 _am_tools='gnutar pax cpio none'
3575
3576 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3577
3578
3579
3580
3581
3582 # Variables for tags utilities; see am/tags.am
3583 if test -z "$CTAGS"; then
3584 CTAGS=ctags
3585 fi
3586
3587 if test -z "$ETAGS"; then
3588 ETAGS=etags
3589 fi
3590
3591 if test -z "$CSCOPE"; then
3592 CSCOPE=cscope
3593 fi
3594
3595
3596
3597 # POSIX will say in a future version that running "rm -f" with no argument
3598 # is OK; and we want to be able to make that assumption in our Makefile
3599 # recipes. So use an aggressive probe to check that the usage we want is
3600 # actually supported "in the wild" to an acceptable degree.
3601 # See automake bug#10828.
3602 # To make any issue more visible, cause the running configure to be aborted
3603 # by default if the 'rm' program in use doesn't match our expectations; the
3604 # user can still override this though.
3605 if rm -f && rm -fr && rm -rf; then : OK; else
3606 cat >&2 <<'END'
3607 Oops!
3608
3609 Your 'rm' program seems unable to run without file operands specified
3610 on the command line, even when the '-f' option is present. This is contrary
3611 to the behaviour of most rm programs out there, and not conforming with
3612 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3613
3614 Please tell [email protected] about your system, including the value
3615 of your $PATH and any error possibly output before this message. This
3616 can help us improve future automake versions.
3617
3618 END
3619 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3620 echo 'Configuration will proceed anyway, since you have set the' >&2
3621 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3622 echo >&2
3623 else
3624 cat >&2 <<'END'
3625 Aborting the configuration process, to ensure you take notice of the issue.
3626
3627 You can download and install GNU coreutils to get an 'rm' implementation
3628 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3629
3630 If you want to complete the configuration process using your problematic
3631 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3632 to "yes", and re-run configure.
3633
3634 END
3635 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3636 fi
3637 fi
3638
3639 # Check whether --enable-silent-rules was given.
3640 if test ${enable_silent_rules+y}
3641 then :
3642 enableval=$enable_silent_rules;
3643 fi
3644
3645 case $enable_silent_rules in # (((
3646 yes) AM_DEFAULT_VERBOSITY=0;;
3647 no) AM_DEFAULT_VERBOSITY=1;;
3648 *) AM_DEFAULT_VERBOSITY=0;;
3649 esac
3650 am_make=${MAKE-make}
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3652 printf %s "checking whether $am_make supports nested variables... " >&6; }
3653 if test ${am_cv_make_support_nested_variables+y}
3654 then :
3655 printf %s "(cached) " >&6
3656 else $as_nop
3657 if printf "%s\n" 'TRUE=$(BAR$(V))
3658 BAR0=false
3659 BAR1=true
3660 V=1
3661 am__doit:
3662 @$(TRUE)
3663 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3664 am_cv_make_support_nested_variables=yes
3665 else
3666 am_cv_make_support_nested_variables=no
3667 fi
3668 fi
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3670 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3671 if test $am_cv_make_support_nested_variables = yes; then
3672 AM_V='$(V)'
3673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3674 else
3675 AM_V=$AM_DEFAULT_VERBOSITY
3676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3677 fi
3678 AM_BACKSLASH='\'
3679
3680 ac_ext=cpp
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685
3686
3687 # ===========================
3688 # Find required base packages
3689 # ===========================
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699 DEPDIR="${am__leading_dot}deps"
3700
3701 ac_config_commands="$ac_config_commands depfiles"
3702
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3704 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3705 cat > confinc.mk << 'END'
3706 am__doit:
3707 @echo this is the am__doit target >confinc.out
3708 .PHONY: am__doit
3709 END
3710 am__include="#"
3711 am__quote=
3712 # BSD make does it like this.
3713 echo '.include "confinc.mk" # ignored' > confmf.BSD
3714 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3715 echo 'include confinc.mk # ignored' > confmf.GNU
3716 _am_result=no
3717 for s in GNU BSD; do
3718 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3719 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }
3723 case $?:`cat confinc.out 2>/dev/null` in #(
3724 '0:this is the am__doit target') :
3725 case $s in #(
3726 BSD) :
3727 am__include='.include' am__quote='"' ;; #(
3728 *) :
3729 am__include='include' am__quote='' ;;
3730 esac ;; #(
3731 *) :
3732 ;;
3733 esac
3734 if test "$am__include" != "#"; then
3735 _am_result="yes ($s style)"
3736 break
3737 fi
3738 done
3739 rm -f confinc.* confmf.*
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3741 printf "%s\n" "${_am_result}" >&6; }
3742
3743 # Check whether --enable-dependency-tracking was given.
3744 if test ${enable_dependency_tracking+y}
3745 then :
3746 enableval=$enable_dependency_tracking;
3747 fi
3748
3749 if test "x$enable_dependency_tracking" != xno; then
3750 am_depcomp="$ac_aux_dir/depcomp"
3751 AMDEPBACKSLASH='\'
3752 am__nodep='_no'
3753 fi
3754 if test "x$enable_dependency_tracking" != xno; then
3755 AMDEP_TRUE=
3756 AMDEP_FALSE='#'
3757 else
3758 AMDEP_TRUE='#'
3759 AMDEP_FALSE=
3760 fi
3761
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 printf %s "checking for $ac_word... " >&6; }
3773 if test ${ac_cv_prog_CC+y}
3774 then :
3775 printf %s "(cached) " >&6
3776 else $as_nop
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783 IFS=$as_save_IFS
3784 case $as_dir in #(((
3785 '') as_dir=./ ;;
3786 */) ;;
3787 *) as_dir=$as_dir/ ;;
3788 esac
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 CC=$ac_cv_prog_CC
3802 if test -n "$CC"; then
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3804 printf "%s\n" "$CC" >&6; }
3805 else
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 printf "%s\n" "no" >&6; }
3808 fi
3809
3810
3811 fi
3812 if test -z "$ac_cv_prog_CC"; then
3813 ac_ct_CC=$CC
3814 # Extract the first word of "gcc", so it can be a program name with args.
3815 set dummy gcc; ac_word=$2
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 printf %s "checking for $ac_word... " >&6; }
3818 if test ${ac_cv_prog_ac_ct_CC+y}
3819 then :
3820 printf %s "(cached) " >&6
3821 else $as_nop
3822 if test -n "$ac_ct_CC"; then
3823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828 IFS=$as_save_IFS
3829 case $as_dir in #(((
3830 '') as_dir=./ ;;
3831 */) ;;
3832 *) as_dir=$as_dir/ ;;
3833 esac
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_ac_ct_CC="gcc"
3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3849 printf "%s\n" "$ac_ct_CC" >&6; }
3850 else
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 printf "%s\n" "no" >&6; }
3853 fi
3854
3855 if test "x$ac_ct_CC" = x; then
3856 CC=""
3857 else
3858 case $cross_compiling:$ac_tool_warned in
3859 yes:)
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned=yes ;;
3863 esac
3864 CC=$ac_ct_CC
3865 fi
3866 else
3867 CC="$ac_cv_prog_CC"
3868 fi
3869
3870 if test -z "$CC"; then
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}cc; ac_word=$2
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 printf %s "checking for $ac_word... " >&6; }
3876 if test ${ac_cv_prog_CC+y}
3877 then :
3878 printf %s "(cached) " >&6
3879 else $as_nop
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 case $as_dir in #(((
3888 '') as_dir=./ ;;
3889 */) ;;
3890 *) as_dir=$as_dir/ ;;
3891 esac
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_CC="${ac_tool_prefix}cc"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 fi
3903 fi
3904 CC=$ac_cv_prog_CC
3905 if test -n "$CC"; then
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907 printf "%s\n" "$CC" >&6; }
3908 else
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 printf "%s\n" "no" >&6; }
3911 fi
3912
3913
3914 fi
3915 fi
3916 if test -z "$CC"; then
3917 # Extract the first word of "cc", so it can be a program name with args.
3918 set dummy cc; ac_word=$2
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 printf %s "checking for $ac_word... " >&6; }
3921 if test ${ac_cv_prog_CC+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else $as_nop
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 ac_prog_rejected=no
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 case $as_dir in #(((
3934 '') as_dir=./ ;;
3935 */) ;;
3936 *) as_dir=$as_dir/ ;;
3937 esac
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3940 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3941 ac_prog_rejected=yes
3942 continue
3943 fi
3944 ac_cv_prog_CC="cc"
3945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 if test $ac_prog_rejected = yes; then
3953 # We found a bogon in the path, so make sure we never use it.
3954 set dummy $ac_cv_prog_CC
3955 shift
3956 if test $# != 0; then
3957 # We chose a different compiler from the bogus one.
3958 # However, it has the same basename, so the bogon will be chosen
3959 # first if we set CC to just the basename; use the full file name.
3960 shift
3961 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3962 fi
3963 fi
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 printf "%s\n" "$CC" >&6; }
3970 else
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3973 fi
3974
3975
3976 fi
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 for ac_prog in cl.exe
3980 do
3981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 printf %s "checking for $ac_word... " >&6; }
3985 if test ${ac_cv_prog_CC+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else $as_nop
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 case $as_dir in #(((
3997 '') as_dir=./ ;;
3998 */) ;;
3999 *) as_dir=$as_dir/ ;;
4000 esac
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 CC=$ac_cv_prog_CC
4014 if test -n "$CC"; then
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4016 printf "%s\n" "$CC" >&6; }
4017 else
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 printf "%s\n" "no" >&6; }
4020 fi
4021
4022
4023 test -n "$CC" && break
4024 done
4025 fi
4026 if test -z "$CC"; then
4027 ac_ct_CC=$CC
4028 for ac_prog in cl.exe
4029 do
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 printf %s "checking for $ac_word... " >&6; }
4034 if test ${ac_cv_prog_ac_ct_CC+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else $as_nop
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 case $as_dir in #(((
4046 '') as_dir=./ ;;
4047 */) ;;
4048 *) as_dir=$as_dir/ ;;
4049 esac
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_ac_ct_CC="$ac_prog"
4053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
4060 fi
4061 fi
4062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4063 if test -n "$ac_ct_CC"; then
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4065 printf "%s\n" "$ac_ct_CC" >&6; }
4066 else
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 printf "%s\n" "no" >&6; }
4069 fi
4070
4071
4072 test -n "$ac_ct_CC" && break
4073 done
4074
4075 if test "x$ac_ct_CC" = x; then
4076 CC=""
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079 yes:)
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4082 ac_tool_warned=yes ;;
4083 esac
4084 CC=$ac_ct_CC
4085 fi
4086 fi
4087
4088 fi
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}clang; ac_word=$2
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 printf %s "checking for $ac_word... " >&6; }
4095 if test ${ac_cv_prog_CC+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else $as_nop
4099 if test -n "$CC"; then
4100 ac_cv_prog_CC="$CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105 IFS=$as_save_IFS
4106 case $as_dir in #(((
4107 '') as_dir=./ ;;
4108 */) ;;
4109 *) as_dir=$as_dir/ ;;
4110 esac
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CC="${ac_tool_prefix}clang"
4114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 printf "%s\n" "$CC" >&6; }
4127 else
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 fi
4131
4132
4133 fi
4134 if test -z "$ac_cv_prog_CC"; then
4135 ac_ct_CC=$CC
4136 # Extract the first word of "clang", so it can be a program name with args.
4137 set dummy clang; ac_word=$2
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 printf %s "checking for $ac_word... " >&6; }
4140 if test ${ac_cv_prog_ac_ct_CC+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else $as_nop
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 case $as_dir in #(((
4152 '') as_dir=./ ;;
4153 */) ;;
4154 *) as_dir=$as_dir/ ;;
4155 esac
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="clang"
4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169 if test -n "$ac_ct_CC"; then
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171 printf "%s\n" "$ac_ct_CC" >&6; }
4172 else
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 printf "%s\n" "no" >&6; }
4175 fi
4176
4177 if test "x$ac_ct_CC" = x; then
4178 CC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 CC=$ac_ct_CC
4187 fi
4188 else
4189 CC="$ac_cv_prog_CC"
4190 fi
4191
4192 fi
4193
4194
4195 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "no acceptable C compiler found in \$PATH
4198 See \`config.log' for more details" "$LINENO" 5; }
4199
4200 # Provide some information about the compiler.
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4202 set X $ac_compile
4203 ac_compiler=$2
4204 for ac_option in --version -v -V -qversion -version; do
4205 { { ac_try="$ac_compiler $ac_option >&5"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211 printf "%s\n" "$ac_try_echo"; } >&5
4212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4213 ac_status=$?
4214 if test -s conftest.err; then
4215 sed '10a\
4216 ... rest of stderr output deleted ...
4217 10q' conftest.err >conftest.er1
4218 cat conftest.er1 >&5
4219 fi
4220 rm -f conftest.er1 conftest.err
4221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222 test $ac_status = 0; }
4223 done
4224
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227
4228 int
4229 main (void)
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 ac_clean_files_save=$ac_clean_files
4237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4238 # Try to create an executable without -o first, disregard a.out.
4239 # It will help us diagnose broken compilers, and finding out an intuition
4240 # of exeext.
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4242 printf %s "checking whether the C compiler works... " >&6; }
4243 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4244
4245 # The possible output files:
4246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4247
4248 ac_rmfiles=
4249 for ac_file in $ac_files
4250 do
4251 case $ac_file in
4252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4254 esac
4255 done
4256 rm -f $ac_rmfiles
4257
4258 if { { ac_try="$ac_link_default"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264 printf "%s\n" "$ac_try_echo"; } >&5
4265 (eval "$ac_link_default") 2>&5
4266 ac_status=$?
4267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4269 then :
4270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4273 # so that the user can short-circuit this test for compilers unknown to
4274 # Autoconf.
4275 for ac_file in $ac_files ''
4276 do
4277 test -f "$ac_file" || continue
4278 case $ac_file in
4279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4280 ;;
4281 [ab].out )
4282 # We found the default executable, but exeext='' is most
4283 # certainly right.
4284 break;;
4285 *.* )
4286 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4287 then :; else
4288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4289 fi
4290 # We set ac_cv_exeext here because the later test for it is not
4291 # safe: cross compilers may not add the suffix if given an `-o'
4292 # argument, so we may need to know it at that point already.
4293 # Even if this section looks crufty: it has the advantage of
4294 # actually working.
4295 break;;
4296 * )
4297 break;;
4298 esac
4299 done
4300 test "$ac_cv_exeext" = no && ac_cv_exeext=
4301
4302 else $as_nop
4303 ac_file=''
4304 fi
4305 if test -z "$ac_file"
4306 then :
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 printf "%s\n" "no" >&6; }
4309 printf "%s\n" "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4314 as_fn_error 77 "C compiler cannot create executables
4315 See \`config.log' for more details" "$LINENO" 5; }
4316 else $as_nop
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4318 printf "%s\n" "yes" >&6; }
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4321 printf %s "checking for C compiler default output file name... " >&6; }
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4323 printf "%s\n" "$ac_file" >&6; }
4324 ac_exeext=$ac_cv_exeext
4325
4326 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4327 ac_clean_files=$ac_clean_files_save
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4329 printf %s "checking for suffix of executables... " >&6; }
4330 if { { ac_try="$ac_link"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 printf "%s\n" "$ac_try_echo"; } >&5
4337 (eval "$ac_link") 2>&5
4338 ac_status=$?
4339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }
4341 then :
4342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4343 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4344 # work properly (i.e., refer to `conftest.exe'), while it won't with
4345 # `rm'.
4346 for ac_file in conftest.exe conftest conftest.*; do
4347 test -f "$ac_file" || continue
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351 break;;
4352 * ) break;;
4353 esac
4354 done
4355 else $as_nop
4356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4358 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4359 See \`config.log' for more details" "$LINENO" 5; }
4360 fi
4361 rm -f conftest conftest$ac_cv_exeext
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4363 printf "%s\n" "$ac_cv_exeext" >&6; }
4364
4365 rm -f conftest.$ac_ext
4366 EXEEXT=$ac_cv_exeext
4367 ac_exeext=$EXEEXT
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <stdio.h>
4371 int
4372 main (void)
4373 {
4374 FILE *f = fopen ("conftest.out", "w");
4375 return ferror (f) || fclose (f) != 0;
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 ac_clean_files="$ac_clean_files conftest.out"
4382 # Check that the compiler produces executables we can run. If not, either
4383 # the compiler is broken, or we cross compile.
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4385 printf %s "checking whether we are cross compiling... " >&6; }
4386 if test "$cross_compiling" != yes; then
4387 { { ac_try="$ac_link"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 printf "%s\n" "$ac_try_echo"; } >&5
4394 (eval "$ac_link") 2>&5
4395 ac_status=$?
4396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 if { ac_try='./conftest$ac_cv_exeext'
4399 { { case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 printf "%s\n" "$ac_try_echo"; } >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }; }; then
4409 cross_compiling=no
4410 else
4411 if test "$cross_compiling" = maybe; then
4412 cross_compiling=yes
4413 else
4414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error 77 "cannot run C compiled programs.
4417 If you meant to cross compile, use \`--host'.
4418 See \`config.log' for more details" "$LINENO" 5; }
4419 fi
4420 fi
4421 fi
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4423 printf "%s\n" "$cross_compiling" >&6; }
4424
4425 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4426 ac_clean_files=$ac_clean_files_save
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4428 printf %s "checking for suffix of object files... " >&6; }
4429 if test ${ac_cv_objext+y}
4430 then :
4431 printf %s "(cached) " >&6
4432 else $as_nop
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435
4436 int
4437 main (void)
4438 {
4439
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.o conftest.obj
4445 if { { ac_try="$ac_compile"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 printf "%s\n" "$ac_try_echo"; } >&5
4452 (eval "$ac_compile") 2>&5
4453 ac_status=$?
4454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }
4456 then :
4457 for ac_file in conftest.o conftest.obj conftest.*; do
4458 test -f "$ac_file" || continue;
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4462 break;;
4463 esac
4464 done
4465 else $as_nop
4466 printf "%s\n" "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4471 as_fn_error $? "cannot compute suffix of object files: cannot compile
4472 See \`config.log' for more details" "$LINENO" 5; }
4473 fi
4474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4475 fi
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4477 printf "%s\n" "$ac_cv_objext" >&6; }
4478 OBJEXT=$ac_cv_objext
4479 ac_objext=$OBJEXT
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4481 printf %s "checking whether the compiler supports GNU C... " >&6; }
4482 if test ${ac_cv_c_compiler_gnu+y}
4483 then :
4484 printf %s "(cached) " >&6
4485 else $as_nop
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488
4489 int
4490 main (void)
4491 {
4492 #ifndef __GNUC__
4493 choke me
4494 #endif
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"
4501 then :
4502 ac_compiler_gnu=yes
4503 else $as_nop
4504 ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4511 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514 if test $ac_compiler_gnu = yes; then
4515 GCC=yes
4516 else
4517 GCC=
4518 fi
4519 ac_test_CFLAGS=${CFLAGS+y}
4520 ac_save_CFLAGS=$CFLAGS
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4522 printf %s "checking whether $CC accepts -g... " >&6; }
4523 if test ${ac_cv_prog_cc_g+y}
4524 then :
4525 printf %s "(cached) " >&6
4526 else $as_nop
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 ac_cv_prog_cc_g=no
4530 CFLAGS="-g"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 int
4535 main (void)
4536 {
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"
4543 then :
4544 ac_cv_prog_cc_g=yes
4545 else $as_nop
4546 CFLAGS=""
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549
4550 int
4551 main (void)
4552 {
4553
4554 ;
4555 return 0;
4556 }
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"
4559 then :
4560
4561 else $as_nop
4562 ac_c_werror_flag=$ac_save_c_werror_flag
4563 CFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"
4576 then :
4577 ac_cv_prog_cc_g=yes
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 ac_c_werror_flag=$ac_save_c_werror_flag
4585 fi
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4587 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4588 if test $ac_test_CFLAGS; then
4589 CFLAGS=$ac_save_CFLAGS
4590 elif test $ac_cv_prog_cc_g = yes; then
4591 if test "$GCC" = yes; then
4592 CFLAGS="-g -O2"
4593 else
4594 CFLAGS="-g"
4595 fi
4596 else
4597 if test "$GCC" = yes; then
4598 CFLAGS="-O2"
4599 else
4600 CFLAGS=
4601 fi
4602 fi
4603 ac_prog_cc_stdc=no
4604 if test x$ac_prog_cc_stdc = xno
4605 then :
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4607 printf %s "checking for $CC option to enable C11 features... " >&6; }
4608 if test ${ac_cv_prog_cc_c11+y}
4609 then :
4610 printf %s "(cached) " >&6
4611 else $as_nop
4612 ac_cv_prog_cc_c11=no
4613 ac_save_CC=$CC
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 $ac_c_conftest_c11_program
4617 _ACEOF
4618 for ac_arg in '' -std=gnu11
4619 do
4620 CC="$ac_save_CC $ac_arg"
4621 if ac_fn_c_try_compile "$LINENO"
4622 then :
4623 ac_cv_prog_cc_c11=$ac_arg
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.beam
4626 test "x$ac_cv_prog_cc_c11" != "xno" && break
4627 done
4628 rm -f conftest.$ac_ext
4629 CC=$ac_save_CC
4630 fi
4631
4632 if test "x$ac_cv_prog_cc_c11" = xno
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4635 printf "%s\n" "unsupported" >&6; }
4636 else $as_nop
4637 if test "x$ac_cv_prog_cc_c11" = x
4638 then :
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 printf "%s\n" "none needed" >&6; }
4641 else $as_nop
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4643 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4644 CC="$CC $ac_cv_prog_cc_c11"
4645 fi
4646 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4647 ac_prog_cc_stdc=c11
4648 fi
4649 fi
4650 if test x$ac_prog_cc_stdc = xno
4651 then :
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4653 printf %s "checking for $CC option to enable C99 features... " >&6; }
4654 if test ${ac_cv_prog_cc_c99+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4658 ac_cv_prog_cc_c99=no
4659 ac_save_CC=$CC
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 $ac_c_conftest_c99_program
4663 _ACEOF
4664 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4665 do
4666 CC="$ac_save_CC $ac_arg"
4667 if ac_fn_c_try_compile "$LINENO"
4668 then :
4669 ac_cv_prog_cc_c99=$ac_arg
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.beam
4672 test "x$ac_cv_prog_cc_c99" != "xno" && break
4673 done
4674 rm -f conftest.$ac_ext
4675 CC=$ac_save_CC
4676 fi
4677
4678 if test "x$ac_cv_prog_cc_c99" = xno
4679 then :
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681 printf "%s\n" "unsupported" >&6; }
4682 else $as_nop
4683 if test "x$ac_cv_prog_cc_c99" = x
4684 then :
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4686 printf "%s\n" "none needed" >&6; }
4687 else $as_nop
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4689 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4690 CC="$CC $ac_cv_prog_cc_c99"
4691 fi
4692 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4693 ac_prog_cc_stdc=c99
4694 fi
4695 fi
4696 if test x$ac_prog_cc_stdc = xno
4697 then :
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4699 printf %s "checking for $CC option to enable C89 features... " >&6; }
4700 if test ${ac_cv_prog_cc_c89+y}
4701 then :
4702 printf %s "(cached) " >&6
4703 else $as_nop
4704 ac_cv_prog_cc_c89=no
4705 ac_save_CC=$CC
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 $ac_c_conftest_c89_program
4709 _ACEOF
4710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4711 do
4712 CC="$ac_save_CC $ac_arg"
4713 if ac_fn_c_try_compile "$LINENO"
4714 then :
4715 ac_cv_prog_cc_c89=$ac_arg
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.beam
4718 test "x$ac_cv_prog_cc_c89" != "xno" && break
4719 done
4720 rm -f conftest.$ac_ext
4721 CC=$ac_save_CC
4722 fi
4723
4724 if test "x$ac_cv_prog_cc_c89" = xno
4725 then :
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4727 printf "%s\n" "unsupported" >&6; }
4728 else $as_nop
4729 if test "x$ac_cv_prog_cc_c89" = x
4730 then :
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4732 printf "%s\n" "none needed" >&6; }
4733 else $as_nop
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4736 CC="$CC $ac_cv_prog_cc_c89"
4737 fi
4738 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4739 ac_prog_cc_stdc=c89
4740 fi
4741 fi
4742
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4756 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4757 if test ${am_cv_prog_cc_c_o+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else $as_nop
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main (void)
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 # Make sure it works both with $CC and with simple cc.
4773 # Following AC_PROG_CC_C_O, we do the test twice because some
4774 # compilers refuse to overwrite an existing .o file with -o,
4775 # though they will create one.
4776 am_cv_prog_cc_c_o=yes
4777 for am_i in 1 2; do
4778 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4779 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } \
4783 && test -f conftest2.$ac_objext; then
4784 : OK
4785 else
4786 am_cv_prog_cc_c_o=no
4787 break
4788 fi
4789 done
4790 rm -f core conftest*
4791 unset am_i
4792 fi
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4794 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4795 if test "$am_cv_prog_cc_c_o" != yes; then
4796 # Losing compiler, so override with the script.
4797 # FIXME: It is wrong to rewrite CC.
4798 # But if we don't then we get into trouble of one sort or another.
4799 # A longer-term fix would be to have automake use am__CC in this case,
4800 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4801 CC="$am_aux_dir/compile $CC"
4802 fi
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810 depcc="$CC" am_compiler_list=
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4813 printf %s "checking dependency style of $depcc... " >&6; }
4814 if test ${am_cv_CC_dependencies_compiler_type+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else $as_nop
4818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819 # We make a subdir and do the tests there. Otherwise we can end up
4820 # making bogus files that we don't know about and never remove. For
4821 # instance it was reported that on HP-UX the gcc test will end up
4822 # making a dummy file named 'D' -- because '-MD' means "put the output
4823 # in D".
4824 rm -rf conftest.dir
4825 mkdir conftest.dir
4826 # Copy depcomp to subdir because otherwise we won't find it if we're
4827 # using a relative directory.
4828 cp "$am_depcomp" conftest.dir
4829 cd conftest.dir
4830 # We will build objects and dependencies in a subdirectory because
4831 # it helps to detect inapplicable dependency modes. For instance
4832 # both Tru64's cc and ICC support -MD to output dependencies as a
4833 # side effect of compilation, but ICC will put the dependencies in
4834 # the current directory while Tru64 will put them in the object
4835 # directory.
4836 mkdir sub
4837
4838 am_cv_CC_dependencies_compiler_type=none
4839 if test "$am_compiler_list" = ""; then
4840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841 fi
4842 am__universal=false
4843 case " $depcc " in #(
4844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4845 esac
4846
4847 for depmode in $am_compiler_list; do
4848 # Setup a source with many dependencies, because some compilers
4849 # like to wrap large dependency lists on column 80 (with \), and
4850 # we should not choose a depcomp mode which is confused by this.
4851 #
4852 # We need to recreate these files for each test, as the compiler may
4853 # overwrite some of them when testing with obscure command lines.
4854 # This happens at least with the AIX C compiler.
4855 : > sub/conftest.c
4856 for i in 1 2 3 4 5 6; do
4857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4858 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4859 # Solaris 10 /bin/sh.
4860 echo '/* dummy */' > sub/conftst$i.h
4861 done
4862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4863
4864 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4865 # mode. It turns out that the SunPro C++ compiler does not properly
4866 # handle '-M -o', and we need to detect this. Also, some Intel
4867 # versions had trouble with output in subdirs.
4868 am__obj=sub/conftest.${OBJEXT-o}
4869 am__minus_obj="-o $am__obj"
4870 case $depmode in
4871 gcc)
4872 # This depmode causes a compiler race in universal mode.
4873 test "$am__universal" = false || continue
4874 ;;
4875 nosideeffect)
4876 # After this tag, mechanisms are not by side-effect, so they'll
4877 # only be used when explicitly requested.
4878 if test "x$enable_dependency_tracking" = xyes; then
4879 continue
4880 else
4881 break
4882 fi
4883 ;;
4884 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4885 # This compiler won't grok '-c -o', but also, the minuso test has
4886 # not run yet. These depmodes are late enough in the game, and
4887 # so weak that their functioning should not be impacted.
4888 am__obj=conftest.${OBJEXT-o}
4889 am__minus_obj=
4890 ;;
4891 none) break ;;
4892 esac
4893 if depmode=$depmode \
4894 source=sub/conftest.c object=$am__obj \
4895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4897 >/dev/null 2>conftest.err &&
4898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4902 # icc doesn't choke on unknown options, it will just issue warnings
4903 # or remarks (even with -Werror). So we grep stderr for any message
4904 # that says an option was ignored or not supported.
4905 # When given -MP, icc 7.0 and 7.1 complain thusly:
4906 # icc: Command line warning: ignoring option '-M'; no argument required
4907 # The diagnosis changed in icc 8.0:
4908 # icc: Command line remark: option '-MP' not supported
4909 if (grep 'ignoring option' conftest.err ||
4910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911 am_cv_CC_dependencies_compiler_type=$depmode
4912 break
4913 fi
4914 fi
4915 done
4916
4917 cd ..
4918 rm -rf conftest.dir
4919 else
4920 am_cv_CC_dependencies_compiler_type=none
4921 fi
4922
4923 fi
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4925 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4927
4928 if
4929 test "x$enable_dependency_tracking" != xno \
4930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4931 am__fastdepCC_TRUE=
4932 am__fastdepCC_FALSE='#'
4933 else
4934 am__fastdepCC_TRUE='#'
4935 am__fastdepCC_FALSE=
4936 fi
4937
4938
4939
4940
4941 if test -n "$ac_tool_prefix"; then
4942 for ac_prog in ar lib "link -lib"
4943 do
4944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 printf %s "checking for $ac_word... " >&6; }
4948 if test ${ac_cv_prog_AR+y}
4949 then :
4950 printf %s "(cached) " >&6
4951 else $as_nop
4952 if test -n "$AR"; then
4953 ac_cv_prog_AR="$AR" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 case $as_dir in #(((
4960 '') as_dir=./ ;;
4961 */) ;;
4962 *) as_dir=$as_dir/ ;;
4963 esac
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974 fi
4975 fi
4976 AR=$ac_cv_prog_AR
4977 if test -n "$AR"; then
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4979 printf "%s\n" "$AR" >&6; }
4980 else
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 printf "%s\n" "no" >&6; }
4983 fi
4984
4985
4986 test -n "$AR" && break
4987 done
4988 fi
4989 if test -z "$AR"; then
4990 ac_ct_AR=$AR
4991 for ac_prog in ar lib "link -lib"
4992 do
4993 # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy $ac_prog; ac_word=$2
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 printf %s "checking for $ac_word... " >&6; }
4997 if test ${ac_cv_prog_ac_ct_AR+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else $as_nop
5001 if test -n "$ac_ct_AR"; then
5002 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 case $as_dir in #(((
5009 '') as_dir=./ ;;
5010 */) ;;
5011 *) as_dir=$as_dir/ ;;
5012 esac
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_ac_ct_AR="$ac_prog"
5016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5026 if test -n "$ac_ct_AR"; then
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5028 printf "%s\n" "$ac_ct_AR" >&6; }
5029 else
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 printf "%s\n" "no" >&6; }
5032 fi
5033
5034
5035 test -n "$ac_ct_AR" && break
5036 done
5037
5038 if test "x$ac_ct_AR" = x; then
5039 AR="false"
5040 else
5041 case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047 AR=$ac_ct_AR
5048 fi
5049 fi
5050
5051 : ${AR=ar}
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5054 printf %s "checking the archiver ($AR) interface... " >&6; }
5055 if test ${am_cv_ar_interface+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else $as_nop
5059 ac_ext=c
5060 ac_cpp='$CPP $CPPFLAGS'
5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064
5065 am_cv_ar_interface=ar
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int some_variable = 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"
5071 then :
5072 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5074 (eval $am_ar_try) 2>&5
5075 ac_status=$?
5076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077 test $ac_status = 0; }
5078 if test "$ac_status" -eq 0; then
5079 am_cv_ar_interface=ar
5080 else
5081 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5083 (eval $am_ar_try) 2>&5
5084 ac_status=$?
5085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086 test $ac_status = 0; }
5087 if test "$ac_status" -eq 0; then
5088 am_cv_ar_interface=lib
5089 else
5090 am_cv_ar_interface=unknown
5091 fi
5092 fi
5093 rm -f conftest.lib libconftest.a
5094
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 ac_ext=cpp
5098 ac_cpp='$CXXCPP $CPPFLAGS'
5099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5102
5103 fi
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5105 printf "%s\n" "$am_cv_ar_interface" >&6; }
5106
5107 case $am_cv_ar_interface in
5108 ar)
5109 ;;
5110 lib)
5111 # Microsoft lib, so override with the ar-lib wrapper script.
5112 # FIXME: It is wrong to rewrite AR.
5113 # But if we don't then we get into trouble of one sort or another.
5114 # A longer-term fix would be to have automake use am__AR in this case,
5115 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5116 # similar.
5117 AR="$am_aux_dir/ar-lib $AR"
5118 ;;
5119 unknown)
5120 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5121 ;;
5122 esac
5123
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 printf %s "checking for $ac_word... " >&6; }
5134 if test ${ac_cv_prog_CC+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else $as_nop
5138 if test -n "$CC"; then
5139 ac_cv_prog_CC="$CC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 case $as_dir in #(((
5146 '') as_dir=./ ;;
5147 */) ;;
5148 *) as_dir=$as_dir/ ;;
5149 esac
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 CC=$ac_cv_prog_CC
5163 if test -n "$CC"; then
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5165 printf "%s\n" "$CC" >&6; }
5166 else
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 printf "%s\n" "no" >&6; }
5169 fi
5170
5171
5172 fi
5173 if test -z "$ac_cv_prog_CC"; then
5174 ac_ct_CC=$CC
5175 # Extract the first word of "gcc", so it can be a program name with args.
5176 set dummy gcc; ac_word=$2
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 printf %s "checking for $ac_word... " >&6; }
5179 if test ${ac_cv_prog_ac_ct_CC+y}
5180 then :
5181 printf %s "(cached) " >&6
5182 else $as_nop
5183 if test -n "$ac_ct_CC"; then
5184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 case $as_dir in #(((
5191 '') as_dir=./ ;;
5192 */) ;;
5193 *) as_dir=$as_dir/ ;;
5194 esac
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_CC="gcc"
5198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5208 if test -n "$ac_ct_CC"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5210 printf "%s\n" "$ac_ct_CC" >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5214 fi
5215
5216 if test "x$ac_ct_CC" = x; then
5217 CC=""
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225 CC=$ac_ct_CC
5226 fi
5227 else
5228 CC="$ac_cv_prog_CC"
5229 fi
5230
5231 if test -z "$CC"; then
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}cc; ac_word=$2
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 printf %s "checking for $ac_word... " >&6; }
5237 if test ${ac_cv_prog_CC+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 if test -n "$CC"; then
5242 ac_cv_prog_CC="$CC" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 case $as_dir in #(((
5249 '') as_dir=./ ;;
5250 */) ;;
5251 *) as_dir=$as_dir/ ;;
5252 esac
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_CC="${ac_tool_prefix}cc"
5256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 CC=$ac_cv_prog_CC
5266 if test -n "$CC"; then
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5268 printf "%s\n" "$CC" >&6; }
5269 else
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 printf "%s\n" "no" >&6; }
5272 fi
5273
5274
5275 fi
5276 fi
5277 if test -z "$CC"; then
5278 # Extract the first word of "cc", so it can be a program name with args.
5279 set dummy cc; ac_word=$2
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 printf %s "checking for $ac_word... " >&6; }
5282 if test ${ac_cv_prog_CC+y}
5283 then :
5284 printf %s "(cached) " >&6
5285 else $as_nop
5286 if test -n "$CC"; then
5287 ac_cv_prog_CC="$CC" # Let the user override the test.
5288 else
5289 ac_prog_rejected=no
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 case $as_dir in #(((
5295 '') as_dir=./ ;;
5296 */) ;;
5297 *) as_dir=$as_dir/ ;;
5298 esac
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5301 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5302 ac_prog_rejected=yes
5303 continue
5304 fi
5305 ac_cv_prog_CC="cc"
5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313 if test $ac_prog_rejected = yes; then
5314 # We found a bogon in the path, so make sure we never use it.
5315 set dummy $ac_cv_prog_CC
5316 shift
5317 if test $# != 0; then
5318 # We chose a different compiler from the bogus one.
5319 # However, it has the same basename, so the bogon will be chosen
5320 # first if we set CC to just the basename; use the full file name.
5321 shift
5322 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5323 fi
5324 fi
5325 fi
5326 fi
5327 CC=$ac_cv_prog_CC
5328 if test -n "$CC"; then
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5330 printf "%s\n" "$CC" >&6; }
5331 else
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 printf "%s\n" "no" >&6; }
5334 fi
5335
5336
5337 fi
5338 if test -z "$CC"; then
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in cl.exe
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 printf %s "checking for $ac_word... " >&6; }
5346 if test ${ac_cv_prog_CC+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else $as_nop
5350 if test -n "$CC"; then
5351 ac_cv_prog_CC="$CC" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 case $as_dir in #(((
5358 '') as_dir=./ ;;
5359 */) ;;
5360 *) as_dir=$as_dir/ ;;
5361 esac
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 CC=$ac_cv_prog_CC
5375 if test -n "$CC"; then
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5377 printf "%s\n" "$CC" >&6; }
5378 else
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 printf "%s\n" "no" >&6; }
5381 fi
5382
5383
5384 test -n "$CC" && break
5385 done
5386 fi
5387 if test -z "$CC"; then
5388 ac_ct_CC=$CC
5389 for ac_prog in cl.exe
5390 do
5391 # Extract the first word of "$ac_prog", so it can be a program name with args.
5392 set dummy $ac_prog; ac_word=$2
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 printf %s "checking for $ac_word... " >&6; }
5395 if test ${ac_cv_prog_ac_ct_CC+y}
5396 then :
5397 printf %s "(cached) " >&6
5398 else $as_nop
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405 IFS=$as_save_IFS
5406 case $as_dir in #(((
5407 '') as_dir=./ ;;
5408 */) ;;
5409 *) as_dir=$as_dir/ ;;
5410 esac
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_ac_ct_CC="$ac_prog"
5414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5424 if test -n "$ac_ct_CC"; then
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5426 printf "%s\n" "$ac_ct_CC" >&6; }
5427 else
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 printf "%s\n" "no" >&6; }
5430 fi
5431
5432
5433 test -n "$ac_ct_CC" && break
5434 done
5435
5436 if test "x$ac_ct_CC" = x; then
5437 CC=""
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445 CC=$ac_ct_CC
5446 fi
5447 fi
5448
5449 fi
5450 if test -z "$CC"; then
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}clang; ac_word=$2
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 printf %s "checking for $ac_word... " >&6; }
5456 if test ${ac_cv_prog_CC+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else $as_nop
5460 if test -n "$CC"; then
5461 ac_cv_prog_CC="$CC" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 case $as_dir in #(((
5468 '') as_dir=./ ;;
5469 */) ;;
5470 *) as_dir=$as_dir/ ;;
5471 esac
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_CC="${ac_tool_prefix}clang"
5475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 CC=$ac_cv_prog_CC
5485 if test -n "$CC"; then
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5487 printf "%s\n" "$CC" >&6; }
5488 else
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 printf "%s\n" "no" >&6; }
5491 fi
5492
5493
5494 fi
5495 if test -z "$ac_cv_prog_CC"; then
5496 ac_ct_CC=$CC
5497 # Extract the first word of "clang", so it can be a program name with args.
5498 set dummy clang; ac_word=$2
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 printf %s "checking for $ac_word... " >&6; }
5501 if test ${ac_cv_prog_ac_ct_CC+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 if test -n "$ac_ct_CC"; then
5506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 case $as_dir in #(((
5513 '') as_dir=./ ;;
5514 */) ;;
5515 *) as_dir=$as_dir/ ;;
5516 esac
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_CC="clang"
5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5530 if test -n "$ac_ct_CC"; then
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5532 printf "%s\n" "$ac_ct_CC" >&6; }
5533 else
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 printf "%s\n" "no" >&6; }
5536 fi
5537
5538 if test "x$ac_ct_CC" = x; then
5539 CC=""
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 CC=$ac_ct_CC
5548 fi
5549 else
5550 CC="$ac_cv_prog_CC"
5551 fi
5552
5553 fi
5554
5555
5556 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5558 as_fn_error $? "no acceptable C compiler found in \$PATH
5559 See \`config.log' for more details" "$LINENO" 5; }
5560
5561 # Provide some information about the compiler.
5562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5563 set X $ac_compile
5564 ac_compiler=$2
5565 for ac_option in --version -v -V -qversion -version; do
5566 { { ac_try="$ac_compiler $ac_option >&5"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 printf "%s\n" "$ac_try_echo"; } >&5
5573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5574 ac_status=$?
5575 if test -s conftest.err; then
5576 sed '10a\
5577 ... rest of stderr output deleted ...
5578 10q' conftest.err >conftest.er1
5579 cat conftest.er1 >&5
5580 fi
5581 rm -f conftest.er1 conftest.err
5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5583 test $ac_status = 0; }
5584 done
5585
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5587 printf %s "checking whether the compiler supports GNU C... " >&6; }
5588 if test ${ac_cv_c_compiler_gnu+y}
5589 then :
5590 printf %s "(cached) " >&6
5591 else $as_nop
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594
5595 int
5596 main (void)
5597 {
5598 #ifndef __GNUC__
5599 choke me
5600 #endif
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"
5607 then :
5608 ac_compiler_gnu=yes
5609 else $as_nop
5610 ac_compiler_gnu=no
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5614
5615 fi
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5617 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620 if test $ac_compiler_gnu = yes; then
5621 GCC=yes
5622 else
5623 GCC=
5624 fi
5625 ac_test_CFLAGS=${CFLAGS+y}
5626 ac_save_CFLAGS=$CFLAGS
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5628 printf %s "checking whether $CC accepts -g... " >&6; }
5629 if test ${ac_cv_prog_cc_g+y}
5630 then :
5631 printf %s "(cached) " >&6
5632 else $as_nop
5633 ac_save_c_werror_flag=$ac_c_werror_flag
5634 ac_c_werror_flag=yes
5635 ac_cv_prog_cc_g=no
5636 CFLAGS="-g"
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639
5640 int
5641 main (void)
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"
5649 then :
5650 ac_cv_prog_cc_g=yes
5651 else $as_nop
5652 CFLAGS=""
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655
5656 int
5657 main (void)
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"
5665 then :
5666
5667 else $as_nop
5668 ac_c_werror_flag=$ac_save_c_werror_flag
5669 CFLAGS="-g"
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672
5673 int
5674 main (void)
5675 {
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"
5682 then :
5683 ac_cv_prog_cc_g=yes
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5690 ac_c_werror_flag=$ac_save_c_werror_flag
5691 fi
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5693 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5694 if test $ac_test_CFLAGS; then
5695 CFLAGS=$ac_save_CFLAGS
5696 elif test $ac_cv_prog_cc_g = yes; then
5697 if test "$GCC" = yes; then
5698 CFLAGS="-g -O2"
5699 else
5700 CFLAGS="-g"
5701 fi
5702 else
5703 if test "$GCC" = yes; then
5704 CFLAGS="-O2"
5705 else
5706 CFLAGS=
5707 fi
5708 fi
5709 ac_prog_cc_stdc=no
5710 if test x$ac_prog_cc_stdc = xno
5711 then :
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5713 printf %s "checking for $CC option to enable C11 features... " >&6; }
5714 if test ${ac_cv_prog_cc_c11+y}
5715 then :
5716 printf %s "(cached) " >&6
5717 else $as_nop
5718 ac_cv_prog_cc_c11=no
5719 ac_save_CC=$CC
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 $ac_c_conftest_c11_program
5723 _ACEOF
5724 for ac_arg in '' -std=gnu11
5725 do
5726 CC="$ac_save_CC $ac_arg"
5727 if ac_fn_c_try_compile "$LINENO"
5728 then :
5729 ac_cv_prog_cc_c11=$ac_arg
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.beam
5732 test "x$ac_cv_prog_cc_c11" != "xno" && break
5733 done
5734 rm -f conftest.$ac_ext
5735 CC=$ac_save_CC
5736 fi
5737
5738 if test "x$ac_cv_prog_cc_c11" = xno
5739 then :
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5741 printf "%s\n" "unsupported" >&6; }
5742 else $as_nop
5743 if test "x$ac_cv_prog_cc_c11" = x
5744 then :
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5746 printf "%s\n" "none needed" >&6; }
5747 else $as_nop
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5749 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5750 CC="$CC $ac_cv_prog_cc_c11"
5751 fi
5752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5753 ac_prog_cc_stdc=c11
5754 fi
5755 fi
5756 if test x$ac_prog_cc_stdc = xno
5757 then :
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5759 printf %s "checking for $CC option to enable C99 features... " >&6; }
5760 if test ${ac_cv_prog_cc_c99+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 ac_cv_prog_cc_c99=no
5765 ac_save_CC=$CC
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 $ac_c_conftest_c99_program
5769 _ACEOF
5770 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5771 do
5772 CC="$ac_save_CC $ac_arg"
5773 if ac_fn_c_try_compile "$LINENO"
5774 then :
5775 ac_cv_prog_cc_c99=$ac_arg
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.beam
5778 test "x$ac_cv_prog_cc_c99" != "xno" && break
5779 done
5780 rm -f conftest.$ac_ext
5781 CC=$ac_save_CC
5782 fi
5783
5784 if test "x$ac_cv_prog_cc_c99" = xno
5785 then :
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5787 printf "%s\n" "unsupported" >&6; }
5788 else $as_nop
5789 if test "x$ac_cv_prog_cc_c99" = x
5790 then :
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5792 printf "%s\n" "none needed" >&6; }
5793 else $as_nop
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5795 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5796 CC="$CC $ac_cv_prog_cc_c99"
5797 fi
5798 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5799 ac_prog_cc_stdc=c99
5800 fi
5801 fi
5802 if test x$ac_prog_cc_stdc = xno
5803 then :
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5805 printf %s "checking for $CC option to enable C89 features... " >&6; }
5806 if test ${ac_cv_prog_cc_c89+y}
5807 then :
5808 printf %s "(cached) " >&6
5809 else $as_nop
5810 ac_cv_prog_cc_c89=no
5811 ac_save_CC=$CC
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 $ac_c_conftest_c89_program
5815 _ACEOF
5816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5817 do
5818 CC="$ac_save_CC $ac_arg"
5819 if ac_fn_c_try_compile "$LINENO"
5820 then :
5821 ac_cv_prog_cc_c89=$ac_arg
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext conftest.beam
5824 test "x$ac_cv_prog_cc_c89" != "xno" && break
5825 done
5826 rm -f conftest.$ac_ext
5827 CC=$ac_save_CC
5828 fi
5829
5830 if test "x$ac_cv_prog_cc_c89" = xno
5831 then :
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5833 printf "%s\n" "unsupported" >&6; }
5834 else $as_nop
5835 if test "x$ac_cv_prog_cc_c89" = x
5836 then :
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5838 printf "%s\n" "none needed" >&6; }
5839 else $as_nop
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5841 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5842 CC="$CC $ac_cv_prog_cc_c89"
5843 fi
5844 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5845 ac_prog_cc_stdc=c89
5846 fi
5847 fi
5848
5849 ac_ext=cpp
5850 ac_cpp='$CXXCPP $CPPFLAGS'
5851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5854
5855
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5862 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5863 if test ${am_cv_prog_cc_c_o+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else $as_nop
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869
5870 int
5871 main (void)
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 # Make sure it works both with $CC and with simple cc.
5879 # Following AC_PROG_CC_C_O, we do the test twice because some
5880 # compilers refuse to overwrite an existing .o file with -o,
5881 # though they will create one.
5882 am_cv_prog_cc_c_o=yes
5883 for am_i in 1 2; do
5884 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5885 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } \
5889 && test -f conftest2.$ac_objext; then
5890 : OK
5891 else
5892 am_cv_prog_cc_c_o=no
5893 break
5894 fi
5895 done
5896 rm -f core conftest*
5897 unset am_i
5898 fi
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5900 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5901 if test "$am_cv_prog_cc_c_o" != yes; then
5902 # Losing compiler, so override with the script.
5903 # FIXME: It is wrong to rewrite CC.
5904 # But if we don't then we get into trouble of one sort or another.
5905 # A longer-term fix would be to have automake use am__CC in this case,
5906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5907 CC="$am_aux_dir/compile $CC"
5908 fi
5909 ac_ext=cpp
5910 ac_cpp='$CXXCPP $CPPFLAGS'
5911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5914
5915
5916 depcc="$CC" am_compiler_list=
5917
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5919 printf %s "checking dependency style of $depcc... " >&6; }
5920 if test ${am_cv_CC_dependencies_compiler_type+y}
5921 then :
5922 printf %s "(cached) " >&6
5923 else $as_nop
5924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5925 # We make a subdir and do the tests there. Otherwise we can end up
5926 # making bogus files that we don't know about and never remove. For
5927 # instance it was reported that on HP-UX the gcc test will end up
5928 # making a dummy file named 'D' -- because '-MD' means "put the output
5929 # in D".
5930 rm -rf conftest.dir
5931 mkdir conftest.dir
5932 # Copy depcomp to subdir because otherwise we won't find it if we're
5933 # using a relative directory.
5934 cp "$am_depcomp" conftest.dir
5935 cd conftest.dir
5936 # We will build objects and dependencies in a subdirectory because
5937 # it helps to detect inapplicable dependency modes. For instance
5938 # both Tru64's cc and ICC support -MD to output dependencies as a
5939 # side effect of compilation, but ICC will put the dependencies in
5940 # the current directory while Tru64 will put them in the object
5941 # directory.
5942 mkdir sub
5943
5944 am_cv_CC_dependencies_compiler_type=none
5945 if test "$am_compiler_list" = ""; then
5946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5947 fi
5948 am__universal=false
5949 case " $depcc " in #(
5950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5951 esac
5952
5953 for depmode in $am_compiler_list; do
5954 # Setup a source with many dependencies, because some compilers
5955 # like to wrap large dependency lists on column 80 (with \), and
5956 # we should not choose a depcomp mode which is confused by this.
5957 #
5958 # We need to recreate these files for each test, as the compiler may
5959 # overwrite some of them when testing with obscure command lines.
5960 # This happens at least with the AIX C compiler.
5961 : > sub/conftest.c
5962 for i in 1 2 3 4 5 6; do
5963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5965 # Solaris 10 /bin/sh.
5966 echo '/* dummy */' > sub/conftst$i.h
5967 done
5968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5969
5970 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5971 # mode. It turns out that the SunPro C++ compiler does not properly
5972 # handle '-M -o', and we need to detect this. Also, some Intel
5973 # versions had trouble with output in subdirs.
5974 am__obj=sub/conftest.${OBJEXT-o}
5975 am__minus_obj="-o $am__obj"
5976 case $depmode in
5977 gcc)
5978 # This depmode causes a compiler race in universal mode.
5979 test "$am__universal" = false || continue
5980 ;;
5981 nosideeffect)
5982 # After this tag, mechanisms are not by side-effect, so they'll
5983 # only be used when explicitly requested.
5984 if test "x$enable_dependency_tracking" = xyes; then
5985 continue
5986 else
5987 break
5988 fi
5989 ;;
5990 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5991 # This compiler won't grok '-c -o', but also, the minuso test has
5992 # not run yet. These depmodes are late enough in the game, and
5993 # so weak that their functioning should not be impacted.
5994 am__obj=conftest.${OBJEXT-o}
5995 am__minus_obj=
5996 ;;
5997 none) break ;;
5998 esac
5999 if depmode=$depmode \
6000 source=sub/conftest.c object=$am__obj \
6001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6003 >/dev/null 2>conftest.err &&
6004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6008 # icc doesn't choke on unknown options, it will just issue warnings
6009 # or remarks (even with -Werror). So we grep stderr for any message
6010 # that says an option was ignored or not supported.
6011 # When given -MP, icc 7.0 and 7.1 complain thusly:
6012 # icc: Command line warning: ignoring option '-M'; no argument required
6013 # The diagnosis changed in icc 8.0:
6014 # icc: Command line remark: option '-MP' not supported
6015 if (grep 'ignoring option' conftest.err ||
6016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6017 am_cv_CC_dependencies_compiler_type=$depmode
6018 break
6019 fi
6020 fi
6021 done
6022
6023 cd ..
6024 rm -rf conftest.dir
6025 else
6026 am_cv_CC_dependencies_compiler_type=none
6027 fi
6028
6029 fi
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6031 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6033
6034 if
6035 test "x$enable_dependency_tracking" != xno \
6036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6037 am__fastdepCC_TRUE=
6038 am__fastdepCC_FALSE='#'
6039 else
6040 am__fastdepCC_TRUE='#'
6041 am__fastdepCC_FALSE=
6042 fi
6043
6044
6045 ac_ext=c
6046 ac_cpp='$CPP $CPPFLAGS'
6047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6051 printf %s "checking how to run the C preprocessor... " >&6; }
6052 # On Suns, sometimes $CPP names a directory.
6053 if test -n "$CPP" && test -d "$CPP"; then
6054 CPP=
6055 fi
6056 if test -z "$CPP"; then
6057 if test ${ac_cv_prog_CPP+y}
6058 then :
6059 printf %s "(cached) " >&6
6060 else $as_nop
6061 # Double quotes because $CC needs to be expanded
6062 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6063 do
6064 ac_preproc_ok=false
6065 for ac_c_preproc_warn_flag in '' yes
6066 do
6067 # Use a header file that comes with gcc, so configuring glibc
6068 # with a fresh cross-compiler works.
6069 # On the NeXT, cc -E runs the code through the compiler's parser,
6070 # not just through cpp. "Syntax error" is here to catch this case.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <limits.h>
6074 Syntax error
6075 _ACEOF
6076 if ac_fn_c_try_cpp "$LINENO"
6077 then :
6078
6079 else $as_nop
6080 # Broken: fails on valid input.
6081 continue
6082 fi
6083 rm -f conftest.err conftest.i conftest.$ac_ext
6084
6085 # OK, works on sane cases. Now check whether nonexistent headers
6086 # can be detected and how.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #include <ac_nonexistent.h>
6090 _ACEOF
6091 if ac_fn_c_try_cpp "$LINENO"
6092 then :
6093 # Broken: success on invalid input.
6094 continue
6095 else $as_nop
6096 # Passes both tests.
6097 ac_preproc_ok=:
6098 break
6099 fi
6100 rm -f conftest.err conftest.i conftest.$ac_ext
6101
6102 done
6103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104 rm -f conftest.i conftest.err conftest.$ac_ext
6105 if $ac_preproc_ok
6106 then :
6107 break
6108 fi
6109
6110 done
6111 ac_cv_prog_CPP=$CPP
6112
6113 fi
6114 CPP=$ac_cv_prog_CPP
6115 else
6116 ac_cv_prog_CPP=$CPP
6117 fi
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6119 printf "%s\n" "$CPP" >&6; }
6120 ac_preproc_ok=false
6121 for ac_c_preproc_warn_flag in '' yes
6122 do
6123 # Use a header file that comes with gcc, so configuring glibc
6124 # with a fresh cross-compiler works.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #include <limits.h>
6130 Syntax error
6131 _ACEOF
6132 if ac_fn_c_try_cpp "$LINENO"
6133 then :
6134
6135 else $as_nop
6136 # Broken: fails on valid input.
6137 continue
6138 fi
6139 rm -f conftest.err conftest.i conftest.$ac_ext
6140
6141 # OK, works on sane cases. Now check whether nonexistent headers
6142 # can be detected and how.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if ac_fn_c_try_cpp "$LINENO"
6148 then :
6149 # Broken: success on invalid input.
6150 continue
6151 else $as_nop
6152 # Passes both tests.
6153 ac_preproc_ok=:
6154 break
6155 fi
6156 rm -f conftest.err conftest.i conftest.$ac_ext
6157
6158 done
6159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6160 rm -f conftest.i conftest.err conftest.$ac_ext
6161 if $ac_preproc_ok
6162 then :
6163
6164 else $as_nop
6165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6168 See \`config.log' for more details" "$LINENO" 5; }
6169 fi
6170
6171 ac_ext=cpp
6172 ac_cpp='$CXXCPP $CPPFLAGS'
6173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176
6177
6178
6179
6180
6181
6182
6183 ac_ext=cpp
6184 ac_cpp='$CXXCPP $CPPFLAGS'
6185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6188 if test -z "$CXX"; then
6189 if test -n "$CCC"; then
6190 CXX=$CCC
6191 else
6192 if test -n "$ac_tool_prefix"; then
6193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6194 do
6195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 printf %s "checking for $ac_word... " >&6; }
6199 if test ${ac_cv_prog_CXX+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 if test -n "$CXX"; then
6204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 case $as_dir in #(((
6211 '') as_dir=./ ;;
6212 */) ;;
6213 *) as_dir=$as_dir/ ;;
6214 esac
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 CXX=$ac_cv_prog_CXX
6228 if test -n "$CXX"; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6230 printf "%s\n" "$CXX" >&6; }
6231 else
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 printf "%s\n" "no" >&6; }
6234 fi
6235
6236
6237 test -n "$CXX" && break
6238 done
6239 fi
6240 if test -z "$CXX"; then
6241 ac_ct_CXX=$CXX
6242 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6243 do
6244 # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 printf %s "checking for $ac_word... " >&6; }
6248 if test ${ac_cv_prog_ac_ct_CXX+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else $as_nop
6252 if test -n "$ac_ct_CXX"; then
6253 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 case $as_dir in #(((
6260 '') as_dir=./ ;;
6261 */) ;;
6262 *) as_dir=$as_dir/ ;;
6263 esac
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_ac_ct_CXX="$ac_prog"
6267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6277 if test -n "$ac_ct_CXX"; then
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6279 printf "%s\n" "$ac_ct_CXX" >&6; }
6280 else
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 printf "%s\n" "no" >&6; }
6283 fi
6284
6285
6286 test -n "$ac_ct_CXX" && break
6287 done
6288
6289 if test "x$ac_ct_CXX" = x; then
6290 CXX="g++"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 CXX=$ac_ct_CXX
6299 fi
6300 fi
6301
6302 fi
6303 fi
6304 # Provide some information about the compiler.
6305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6306 set X $ac_compile
6307 ac_compiler=$2
6308 for ac_option in --version -v -V -qversion; do
6309 { { ac_try="$ac_compiler $ac_option >&5"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6315 printf "%s\n" "$ac_try_echo"; } >&5
6316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6317 ac_status=$?
6318 if test -s conftest.err; then
6319 sed '10a\
6320 ... rest of stderr output deleted ...
6321 10q' conftest.err >conftest.er1
6322 cat conftest.er1 >&5
6323 fi
6324 rm -f conftest.er1 conftest.err
6325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }
6327 done
6328
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6330 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6331 if test ${ac_cv_cxx_compiler_gnu+y}
6332 then :
6333 printf %s "(cached) " >&6
6334 else $as_nop
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337
6338 int
6339 main (void)
6340 {
6341 #ifndef __GNUC__
6342 choke me
6343 #endif
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_cxx_try_compile "$LINENO"
6350 then :
6351 ac_compiler_gnu=yes
6352 else $as_nop
6353 ac_compiler_gnu=no
6354 fi
6355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6357
6358 fi
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6360 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6362
6363 if test $ac_compiler_gnu = yes; then
6364 GXX=yes
6365 else
6366 GXX=
6367 fi
6368 ac_test_CXXFLAGS=${CXXFLAGS+y}
6369 ac_save_CXXFLAGS=$CXXFLAGS
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6371 printf %s "checking whether $CXX accepts -g... " >&6; }
6372 if test ${ac_cv_prog_cxx_g+y}
6373 then :
6374 printf %s "(cached) " >&6
6375 else $as_nop
6376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6377 ac_cxx_werror_flag=yes
6378 ac_cv_prog_cxx_g=no
6379 CXXFLAGS="-g"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382
6383 int
6384 main (void)
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_cxx_try_compile "$LINENO"
6392 then :
6393 ac_cv_prog_cxx_g=yes
6394 else $as_nop
6395 CXXFLAGS=""
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398
6399 int
6400 main (void)
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_cxx_try_compile "$LINENO"
6408 then :
6409
6410 else $as_nop
6411 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6412 CXXFLAGS="-g"
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415
6416 int
6417 main (void)
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_cxx_try_compile "$LINENO"
6425 then :
6426 ac_cv_prog_cxx_g=yes
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6434 fi
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6436 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6437 if test $ac_test_CXXFLAGS; then
6438 CXXFLAGS=$ac_save_CXXFLAGS
6439 elif test $ac_cv_prog_cxx_g = yes; then
6440 if test "$GXX" = yes; then
6441 CXXFLAGS="-g -O2"
6442 else
6443 CXXFLAGS="-g"
6444 fi
6445 else
6446 if test "$GXX" = yes; then
6447 CXXFLAGS="-O2"
6448 else
6449 CXXFLAGS=
6450 fi
6451 fi
6452 ac_prog_cxx_stdcxx=no
6453 if test x$ac_prog_cxx_stdcxx = xno
6454 then :
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6456 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6457 if test ${ac_cv_prog_cxx_cxx11+y}
6458 then :
6459 printf %s "(cached) " >&6
6460 else $as_nop
6461 ac_cv_prog_cxx_cxx11=no
6462 ac_save_CXX=$CXX
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 $ac_cxx_conftest_cxx11_program
6466 _ACEOF
6467 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6468 do
6469 CXX="$ac_save_CXX $ac_arg"
6470 if ac_fn_cxx_try_compile "$LINENO"
6471 then :
6472 ac_cv_prog_cxx_cxx11=$ac_arg
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.beam
6475 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6476 done
6477 rm -f conftest.$ac_ext
6478 CXX=$ac_save_CXX
6479 fi
6480
6481 if test "x$ac_cv_prog_cxx_cxx11" = xno
6482 then :
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6484 printf "%s\n" "unsupported" >&6; }
6485 else $as_nop
6486 if test "x$ac_cv_prog_cxx_cxx11" = x
6487 then :
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6489 printf "%s\n" "none needed" >&6; }
6490 else $as_nop
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6492 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6493 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6494 fi
6495 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6496 ac_prog_cxx_stdcxx=cxx11
6497 fi
6498 fi
6499 if test x$ac_prog_cxx_stdcxx = xno
6500 then :
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6502 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6503 if test ${ac_cv_prog_cxx_cxx98+y}
6504 then :
6505 printf %s "(cached) " >&6
6506 else $as_nop
6507 ac_cv_prog_cxx_cxx98=no
6508 ac_save_CXX=$CXX
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 $ac_cxx_conftest_cxx98_program
6512 _ACEOF
6513 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6514 do
6515 CXX="$ac_save_CXX $ac_arg"
6516 if ac_fn_cxx_try_compile "$LINENO"
6517 then :
6518 ac_cv_prog_cxx_cxx98=$ac_arg
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.beam
6521 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6522 done
6523 rm -f conftest.$ac_ext
6524 CXX=$ac_save_CXX
6525 fi
6526
6527 if test "x$ac_cv_prog_cxx_cxx98" = xno
6528 then :
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6530 printf "%s\n" "unsupported" >&6; }
6531 else $as_nop
6532 if test "x$ac_cv_prog_cxx_cxx98" = x
6533 then :
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6535 printf "%s\n" "none needed" >&6; }
6536 else $as_nop
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6538 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6539 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6540 fi
6541 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6542 ac_prog_cxx_stdcxx=cxx98
6543 fi
6544 fi
6545
6546 ac_ext=cpp
6547 ac_cpp='$CXXCPP $CPPFLAGS'
6548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6551
6552 depcc="$CXX" am_compiler_list=
6553
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6555 printf %s "checking dependency style of $depcc... " >&6; }
6556 if test ${am_cv_CXX_dependencies_compiler_type+y}
6557 then :
6558 printf %s "(cached) " >&6
6559 else $as_nop
6560 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6561 # We make a subdir and do the tests there. Otherwise we can end up
6562 # making bogus files that we don't know about and never remove. For
6563 # instance it was reported that on HP-UX the gcc test will end up
6564 # making a dummy file named 'D' -- because '-MD' means "put the output
6565 # in D".
6566 rm -rf conftest.dir
6567 mkdir conftest.dir
6568 # Copy depcomp to subdir because otherwise we won't find it if we're
6569 # using a relative directory.
6570 cp "$am_depcomp" conftest.dir
6571 cd conftest.dir
6572 # We will build objects and dependencies in a subdirectory because
6573 # it helps to detect inapplicable dependency modes. For instance
6574 # both Tru64's cc and ICC support -MD to output dependencies as a
6575 # side effect of compilation, but ICC will put the dependencies in
6576 # the current directory while Tru64 will put them in the object
6577 # directory.
6578 mkdir sub
6579
6580 am_cv_CXX_dependencies_compiler_type=none
6581 if test "$am_compiler_list" = ""; then
6582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6583 fi
6584 am__universal=false
6585 case " $depcc " in #(
6586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6587 esac
6588
6589 for depmode in $am_compiler_list; do
6590 # Setup a source with many dependencies, because some compilers
6591 # like to wrap large dependency lists on column 80 (with \), and
6592 # we should not choose a depcomp mode which is confused by this.
6593 #
6594 # We need to recreate these files for each test, as the compiler may
6595 # overwrite some of them when testing with obscure command lines.
6596 # This happens at least with the AIX C compiler.
6597 : > sub/conftest.c
6598 for i in 1 2 3 4 5 6; do
6599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6600 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6601 # Solaris 10 /bin/sh.
6602 echo '/* dummy */' > sub/conftst$i.h
6603 done
6604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6605
6606 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6607 # mode. It turns out that the SunPro C++ compiler does not properly
6608 # handle '-M -o', and we need to detect this. Also, some Intel
6609 # versions had trouble with output in subdirs.
6610 am__obj=sub/conftest.${OBJEXT-o}
6611 am__minus_obj="-o $am__obj"
6612 case $depmode in
6613 gcc)
6614 # This depmode causes a compiler race in universal mode.
6615 test "$am__universal" = false || continue
6616 ;;
6617 nosideeffect)
6618 # After this tag, mechanisms are not by side-effect, so they'll
6619 # only be used when explicitly requested.
6620 if test "x$enable_dependency_tracking" = xyes; then
6621 continue
6622 else
6623 break
6624 fi
6625 ;;
6626 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6627 # This compiler won't grok '-c -o', but also, the minuso test has
6628 # not run yet. These depmodes are late enough in the game, and
6629 # so weak that their functioning should not be impacted.
6630 am__obj=conftest.${OBJEXT-o}
6631 am__minus_obj=
6632 ;;
6633 none) break ;;
6634 esac
6635 if depmode=$depmode \
6636 source=sub/conftest.c object=$am__obj \
6637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6639 >/dev/null 2>conftest.err &&
6640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6644 # icc doesn't choke on unknown options, it will just issue warnings
6645 # or remarks (even with -Werror). So we grep stderr for any message
6646 # that says an option was ignored or not supported.
6647 # When given -MP, icc 7.0 and 7.1 complain thusly:
6648 # icc: Command line warning: ignoring option '-M'; no argument required
6649 # The diagnosis changed in icc 8.0:
6650 # icc: Command line remark: option '-MP' not supported
6651 if (grep 'ignoring option' conftest.err ||
6652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6653 am_cv_CXX_dependencies_compiler_type=$depmode
6654 break
6655 fi
6656 fi
6657 done
6658
6659 cd ..
6660 rm -rf conftest.dir
6661 else
6662 am_cv_CXX_dependencies_compiler_type=none
6663 fi
6664
6665 fi
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6667 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6668 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6669
6670 if
6671 test "x$enable_dependency_tracking" != xno \
6672 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6673 am__fastdepCXX_TRUE=
6674 am__fastdepCXX_FALSE='#'
6675 else
6676 am__fastdepCXX_TRUE='#'
6677 am__fastdepCXX_FALSE=
6678 fi
6679
6680
6681
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6683 printf %s "checking whether ln -s works... " >&6; }
6684 LN_S=$as_ln_s
6685 if test "$LN_S" = "ln -s"; then
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6687 printf "%s\n" "yes" >&6; }
6688 else
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6690 printf "%s\n" "no, using $LN_S" >&6; }
6691 fi
6692
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6694 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6695 set x ${MAKE-make}
6696 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6697 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else $as_nop
6701 cat >conftest.make <<\_ACEOF
6702 SHELL = /bin/sh
6703 all:
6704 @echo '@@@%%%=$(MAKE)=@@@%%%'
6705 _ACEOF
6706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6707 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6708 *@@@%%%=?*=@@@%%%*)
6709 eval ac_cv_prog_make_${ac_make}_set=yes;;
6710 *)
6711 eval ac_cv_prog_make_${ac_make}_set=no;;
6712 esac
6713 rm -f conftest.make
6714 fi
6715 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 printf "%s\n" "yes" >&6; }
6718 SET_MAKE=
6719 else
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 printf "%s\n" "no" >&6; }
6722 SET_MAKE="MAKE=${MAKE-make}"
6723 fi
6724
6725 case `pwd` in
6726 *\ * | *\ *)
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6728 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6729 esac
6730
6731
6732
6733 macro_version='2.4.7'
6734 macro_revision='2.4.7'
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 ltmain=$ac_aux_dir/ltmain.sh
6750
6751
6752
6753 # Make sure we can run config.sub.
6754 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6755 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6756
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6758 printf %s "checking build system type... " >&6; }
6759 if test ${ac_cv_build+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else $as_nop
6763 ac_build_alias=$build_alias
6764 test "x$ac_build_alias" = x &&
6765 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6766 test "x$ac_build_alias" = x &&
6767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6768 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6769 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6770
6771 fi
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6773 printf "%s\n" "$ac_cv_build" >&6; }
6774 case $ac_cv_build in
6775 *-*-*) ;;
6776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6777 esac
6778 build=$ac_cv_build
6779 ac_save_IFS=$IFS; IFS='-'
6780 set x $ac_cv_build
6781 shift
6782 build_cpu=$1
6783 build_vendor=$2
6784 shift; shift
6785 # Remember, the first character of IFS is used to create $*,
6786 # except with old shells:
6787 build_os=$*
6788 IFS=$ac_save_IFS
6789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6790
6791
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6793 printf %s "checking host system type... " >&6; }
6794 if test ${ac_cv_host+y}
6795 then :
6796 printf %s "(cached) " >&6
6797 else $as_nop
6798 if test "x$host_alias" = x; then
6799 ac_cv_host=$ac_cv_build
6800 else
6801 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6802 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6803 fi
6804
6805 fi
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6807 printf "%s\n" "$ac_cv_host" >&6; }
6808 case $ac_cv_host in
6809 *-*-*) ;;
6810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6811 esac
6812 host=$ac_cv_host
6813 ac_save_IFS=$IFS; IFS='-'
6814 set x $ac_cv_host
6815 shift
6816 host_cpu=$1
6817 host_vendor=$2
6818 shift; shift
6819 # Remember, the first character of IFS is used to create $*,
6820 # except with old shells:
6821 host_os=$*
6822 IFS=$ac_save_IFS
6823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6824
6825
6826 # Backslashify metacharacters that are still active within
6827 # double-quoted strings.
6828 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6829
6830 # Same as above, but do not quote variable references.
6831 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6832
6833 # Sed substitution to delay expansion of an escaped shell variable in a
6834 # double_quote_subst'ed string.
6835 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6836
6837 # Sed substitution to delay expansion of an escaped single quote.
6838 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6839
6840 # Sed substitution to avoid accidental globbing in evaled expressions
6841 no_glob_subst='s/\*/\\\*/g'
6842
6843 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6846
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6848 printf %s "checking how to print strings... " >&6; }
6849 # Test print first, because it will be a builtin if present.
6850 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6851 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6852 ECHO='print -r --'
6853 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6854 ECHO='printf %s\n'
6855 else
6856 # Use this function as a fallback that always works.
6857 func_fallback_echo ()
6858 {
6859 eval 'cat <<_LTECHO_EOF
6860 $1
6861 _LTECHO_EOF'
6862 }
6863 ECHO='func_fallback_echo'
6864 fi
6865
6866 # func_echo_all arg...
6867 # Invoke $ECHO with all args, space-separated.
6868 func_echo_all ()
6869 {
6870 $ECHO ""
6871 }
6872
6873 case $ECHO in
6874 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6875 printf "%s\n" "printf" >&6; } ;;
6876 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6877 printf "%s\n" "print -r" >&6; } ;;
6878 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6879 printf "%s\n" "cat" >&6; } ;;
6880 esac
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6896 printf %s "checking for a sed that does not truncate output... " >&6; }
6897 if test ${ac_cv_path_SED+y}
6898 then :
6899 printf %s "(cached) " >&6
6900 else $as_nop
6901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6902 for ac_i in 1 2 3 4 5 6 7; do
6903 ac_script="$ac_script$as_nl$ac_script"
6904 done
6905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6906 { ac_script=; unset ac_script;}
6907 if test -z "$SED"; then
6908 ac_path_SED_found=false
6909 # Loop through the user's path and test for each of PROGNAME-LIST
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 case $as_dir in #(((
6915 '') as_dir=./ ;;
6916 */) ;;
6917 *) as_dir=$as_dir/ ;;
6918 esac
6919 for ac_prog in sed gsed
6920 do
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6923 as_fn_executable_p "$ac_path_SED" || continue
6924 # Check for GNU ac_path_SED and select it if it is found.
6925 # Check for GNU $ac_path_SED
6926 case `"$ac_path_SED" --version 2>&1` in
6927 *GNU*)
6928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6929 *)
6930 ac_count=0
6931 printf %s 0123456789 >"conftest.in"
6932 while :
6933 do
6934 cat "conftest.in" "conftest.in" >"conftest.tmp"
6935 mv "conftest.tmp" "conftest.in"
6936 cp "conftest.in" "conftest.nl"
6937 printf "%s\n" '' >> "conftest.nl"
6938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6940 as_fn_arith $ac_count + 1 && ac_count=$as_val
6941 if test $ac_count -gt ${ac_path_SED_max-0}; then
6942 # Best one so far, save it but keep looking for a better one
6943 ac_cv_path_SED="$ac_path_SED"
6944 ac_path_SED_max=$ac_count
6945 fi
6946 # 10*(2^10) chars as input seems more than enough
6947 test $ac_count -gt 10 && break
6948 done
6949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6950 esac
6951
6952 $ac_path_SED_found && break 3
6953 done
6954 done
6955 done
6956 IFS=$as_save_IFS
6957 if test -z "$ac_cv_path_SED"; then
6958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6959 fi
6960 else
6961 ac_cv_path_SED=$SED
6962 fi
6963
6964 fi
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6966 printf "%s\n" "$ac_cv_path_SED" >&6; }
6967 SED="$ac_cv_path_SED"
6968 rm -f conftest.sed
6969
6970 test -z "$SED" && SED=sed
6971 Xsed="$SED -e 1s/^X//"
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6984 printf %s "checking for grep that handles long lines and -e... " >&6; }
6985 if test ${ac_cv_path_GREP+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else $as_nop
6989 if test -z "$GREP"; then
6990 ac_path_GREP_found=false
6991 # Loop through the user's path and test for each of PROGNAME-LIST
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6994 do
6995 IFS=$as_save_IFS
6996 case $as_dir in #(((
6997 '') as_dir=./ ;;
6998 */) ;;
6999 *) as_dir=$as_dir/ ;;
7000 esac
7001 for ac_prog in grep ggrep
7002 do
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7005 as_fn_executable_p "$ac_path_GREP" || continue
7006 # Check for GNU ac_path_GREP and select it if it is found.
7007 # Check for GNU $ac_path_GREP
7008 case `"$ac_path_GREP" --version 2>&1` in
7009 *GNU*)
7010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7011 *)
7012 ac_count=0
7013 printf %s 0123456789 >"conftest.in"
7014 while :
7015 do
7016 cat "conftest.in" "conftest.in" >"conftest.tmp"
7017 mv "conftest.tmp" "conftest.in"
7018 cp "conftest.in" "conftest.nl"
7019 printf "%s\n" 'GREP' >> "conftest.nl"
7020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7022 as_fn_arith $ac_count + 1 && ac_count=$as_val
7023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7024 # Best one so far, save it but keep looking for a better one
7025 ac_cv_path_GREP="$ac_path_GREP"
7026 ac_path_GREP_max=$ac_count
7027 fi
7028 # 10*(2^10) chars as input seems more than enough
7029 test $ac_count -gt 10 && break
7030 done
7031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7032 esac
7033
7034 $ac_path_GREP_found && break 3
7035 done
7036 done
7037 done
7038 IFS=$as_save_IFS
7039 if test -z "$ac_cv_path_GREP"; then
7040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7041 fi
7042 else
7043 ac_cv_path_GREP=$GREP
7044 fi
7045
7046 fi
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7048 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7049 GREP="$ac_cv_path_GREP"
7050
7051
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7053 printf %s "checking for egrep... " >&6; }
7054 if test ${ac_cv_path_EGREP+y}
7055 then :
7056 printf %s "(cached) " >&6
7057 else $as_nop
7058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7059 then ac_cv_path_EGREP="$GREP -E"
7060 else
7061 if test -z "$EGREP"; then
7062 ac_path_EGREP_found=false
7063 # Loop through the user's path and test for each of PROGNAME-LIST
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7066 do
7067 IFS=$as_save_IFS
7068 case $as_dir in #(((
7069 '') as_dir=./ ;;
7070 */) ;;
7071 *) as_dir=$as_dir/ ;;
7072 esac
7073 for ac_prog in egrep
7074 do
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7077 as_fn_executable_p "$ac_path_EGREP" || continue
7078 # Check for GNU ac_path_EGREP and select it if it is found.
7079 # Check for GNU $ac_path_EGREP
7080 case `"$ac_path_EGREP" --version 2>&1` in
7081 *GNU*)
7082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7083 *)
7084 ac_count=0
7085 printf %s 0123456789 >"conftest.in"
7086 while :
7087 do
7088 cat "conftest.in" "conftest.in" >"conftest.tmp"
7089 mv "conftest.tmp" "conftest.in"
7090 cp "conftest.in" "conftest.nl"
7091 printf "%s\n" 'EGREP' >> "conftest.nl"
7092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7094 as_fn_arith $ac_count + 1 && ac_count=$as_val
7095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7096 # Best one so far, save it but keep looking for a better one
7097 ac_cv_path_EGREP="$ac_path_EGREP"
7098 ac_path_EGREP_max=$ac_count
7099 fi
7100 # 10*(2^10) chars as input seems more than enough
7101 test $ac_count -gt 10 && break
7102 done
7103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7104 esac
7105
7106 $ac_path_EGREP_found && break 3
7107 done
7108 done
7109 done
7110 IFS=$as_save_IFS
7111 if test -z "$ac_cv_path_EGREP"; then
7112 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7113 fi
7114 else
7115 ac_cv_path_EGREP=$EGREP
7116 fi
7117
7118 fi
7119 fi
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7121 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7122 EGREP="$ac_cv_path_EGREP"
7123
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7126 printf %s "checking for fgrep... " >&6; }
7127 if test ${ac_cv_path_FGREP+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else $as_nop
7131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7132 then ac_cv_path_FGREP="$GREP -F"
7133 else
7134 if test -z "$FGREP"; then
7135 ac_path_FGREP_found=false
7136 # Loop through the user's path and test for each of PROGNAME-LIST
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7139 do
7140 IFS=$as_save_IFS
7141 case $as_dir in #(((
7142 '') as_dir=./ ;;
7143 */) ;;
7144 *) as_dir=$as_dir/ ;;
7145 esac
7146 for ac_prog in fgrep
7147 do
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7150 as_fn_executable_p "$ac_path_FGREP" || continue
7151 # Check for GNU ac_path_FGREP and select it if it is found.
7152 # Check for GNU $ac_path_FGREP
7153 case `"$ac_path_FGREP" --version 2>&1` in
7154 *GNU*)
7155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7156 *)
7157 ac_count=0
7158 printf %s 0123456789 >"conftest.in"
7159 while :
7160 do
7161 cat "conftest.in" "conftest.in" >"conftest.tmp"
7162 mv "conftest.tmp" "conftest.in"
7163 cp "conftest.in" "conftest.nl"
7164 printf "%s\n" 'FGREP' >> "conftest.nl"
7165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7167 as_fn_arith $ac_count + 1 && ac_count=$as_val
7168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7169 # Best one so far, save it but keep looking for a better one
7170 ac_cv_path_FGREP="$ac_path_FGREP"
7171 ac_path_FGREP_max=$ac_count
7172 fi
7173 # 10*(2^10) chars as input seems more than enough
7174 test $ac_count -gt 10 && break
7175 done
7176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7177 esac
7178
7179 $ac_path_FGREP_found && break 3
7180 done
7181 done
7182 done
7183 IFS=$as_save_IFS
7184 if test -z "$ac_cv_path_FGREP"; then
7185 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7186 fi
7187 else
7188 ac_cv_path_FGREP=$FGREP
7189 fi
7190
7191 fi
7192 fi
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7194 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7195 FGREP="$ac_cv_path_FGREP"
7196
7197
7198 test -z "$GREP" && GREP=grep
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 # Check whether --with-gnu-ld was given.
7219 if test ${with_gnu_ld+y}
7220 then :
7221 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7222 else $as_nop
7223 with_gnu_ld=no
7224 fi
7225
7226 ac_prog=ld
7227 if test yes = "$GCC"; then
7228 # Check if gcc -print-prog-name=ld gives a path.
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7230 printf %s "checking for ld used by $CC... " >&6; }
7231 case $host in
7232 *-*-mingw*)
7233 # gcc leaves a trailing carriage return, which upsets mingw
7234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7235 *)
7236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7237 esac
7238 case $ac_prog in
7239 # Accept absolute paths.
7240 [\\/]* | ?:[\\/]*)
7241 re_direlt='/[^/][^/]*/\.\./'
7242 # Canonicalize the pathname of ld
7243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7246 done
7247 test -z "$LD" && LD=$ac_prog
7248 ;;
7249 "")
7250 # If it fails, then pretend we aren't using GCC.
7251 ac_prog=ld
7252 ;;
7253 *)
7254 # If it is relative, then search for the first ld in PATH.
7255 with_gnu_ld=unknown
7256 ;;
7257 esac
7258 elif test yes = "$with_gnu_ld"; then
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7260 printf %s "checking for GNU ld... " >&6; }
7261 else
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7263 printf %s "checking for non-GNU ld... " >&6; }
7264 fi
7265 if test ${lt_cv_path_LD+y}
7266 then :
7267 printf %s "(cached) " >&6
7268 else $as_nop
7269 if test -z "$LD"; then
7270 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7271 for ac_dir in $PATH; do
7272 IFS=$lt_save_ifs
7273 test -z "$ac_dir" && ac_dir=.
7274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7275 lt_cv_path_LD=$ac_dir/$ac_prog
7276 # Check to see if the program is GNU ld. I'd rather use --version,
7277 # but apparently some variants of GNU ld only accept -v.
7278 # Break only if it was the GNU/non-GNU ld that we prefer.
7279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7280 *GNU* | *'with BFD'*)
7281 test no != "$with_gnu_ld" && break
7282 ;;
7283 *)
7284 test yes != "$with_gnu_ld" && break
7285 ;;
7286 esac
7287 fi
7288 done
7289 IFS=$lt_save_ifs
7290 else
7291 lt_cv_path_LD=$LD # Let the user override the test with a path.
7292 fi
7293 fi
7294
7295 LD=$lt_cv_path_LD
7296 if test -n "$LD"; then
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7298 printf "%s\n" "$LD" >&6; }
7299 else
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 printf "%s\n" "no" >&6; }
7302 fi
7303 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7305 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7306 if test ${lt_cv_prog_gnu_ld+y}
7307 then :
7308 printf %s "(cached) " >&6
7309 else $as_nop
7310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7311 case `$LD -v 2>&1 </dev/null` in
7312 *GNU* | *'with BFD'*)
7313 lt_cv_prog_gnu_ld=yes
7314 ;;
7315 *)
7316 lt_cv_prog_gnu_ld=no
7317 ;;
7318 esac
7319 fi
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7321 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7322 with_gnu_ld=$lt_cv_prog_gnu_ld
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7333 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7334 if test ${lt_cv_path_NM+y}
7335 then :
7336 printf %s "(cached) " >&6
7337 else $as_nop
7338 if test -n "$NM"; then
7339 # Let the user override the test.
7340 lt_cv_path_NM=$NM
7341 else
7342 lt_nm_to_check=${ac_tool_prefix}nm
7343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7344 lt_nm_to_check="$lt_nm_to_check nm"
7345 fi
7346 for lt_tmp_nm in $lt_nm_to_check; do
7347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7349 IFS=$lt_save_ifs
7350 test -z "$ac_dir" && ac_dir=.
7351 tmp_nm=$ac_dir/$lt_tmp_nm
7352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7353 # Check to see if the nm accepts a BSD-compat flag.
7354 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7355 # nm: unknown option "B" ignored
7356 # Tru64's nm complains that /dev/null is an invalid object file
7357 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7358 case $build_os in
7359 mingw*) lt_bad_file=conftest.nm/nofile ;;
7360 *) lt_bad_file=/dev/null ;;
7361 esac
7362 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7363 *$lt_bad_file* | *'Invalid file or object type'*)
7364 lt_cv_path_NM="$tmp_nm -B"
7365 break 2
7366 ;;
7367 *)
7368 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7369 */dev/null*)
7370 lt_cv_path_NM="$tmp_nm -p"
7371 break 2
7372 ;;
7373 *)
7374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7375 continue # so that we can try to find one that supports BSD flags
7376 ;;
7377 esac
7378 ;;
7379 esac
7380 fi
7381 done
7382 IFS=$lt_save_ifs
7383 done
7384 : ${lt_cv_path_NM=no}
7385 fi
7386 fi
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7388 printf "%s\n" "$lt_cv_path_NM" >&6; }
7389 if test no != "$lt_cv_path_NM"; then
7390 NM=$lt_cv_path_NM
7391 else
7392 # Didn't find any BSD compatible name lister, look for dumpbin.
7393 if test -n "$DUMPBIN"; then :
7394 # Let the user override the test.
7395 else
7396 if test -n "$ac_tool_prefix"; then
7397 for ac_prog in dumpbin "link -dump"
7398 do
7399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 printf %s "checking for $ac_word... " >&6; }
7403 if test ${ac_cv_prog_DUMPBIN+y}
7404 then :
7405 printf %s "(cached) " >&6
7406 else $as_nop
7407 if test -n "$DUMPBIN"; then
7408 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 case $as_dir in #(((
7415 '') as_dir=./ ;;
7416 */) ;;
7417 *) as_dir=$as_dir/ ;;
7418 esac
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 DUMPBIN=$ac_cv_prog_DUMPBIN
7432 if test -n "$DUMPBIN"; then
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7434 printf "%s\n" "$DUMPBIN" >&6; }
7435 else
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 printf "%s\n" "no" >&6; }
7438 fi
7439
7440
7441 test -n "$DUMPBIN" && break
7442 done
7443 fi
7444 if test -z "$DUMPBIN"; then
7445 ac_ct_DUMPBIN=$DUMPBIN
7446 for ac_prog in dumpbin "link -dump"
7447 do
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 printf %s "checking for $ac_word... " >&6; }
7452 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7453 then :
7454 printf %s "(cached) " >&6
7455 else $as_nop
7456 if test -n "$ac_ct_DUMPBIN"; then
7457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 case $as_dir in #(((
7464 '') as_dir=./ ;;
7465 */) ;;
7466 *) as_dir=$as_dir/ ;;
7467 esac
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7481 if test -n "$ac_ct_DUMPBIN"; then
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7483 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7484 else
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf "%s\n" "no" >&6; }
7487 fi
7488
7489
7490 test -n "$ac_ct_DUMPBIN" && break
7491 done
7492
7493 if test "x$ac_ct_DUMPBIN" = x; then
7494 DUMPBIN=":"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502 DUMPBIN=$ac_ct_DUMPBIN
7503 fi
7504 fi
7505
7506 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7507 *COFF*)
7508 DUMPBIN="$DUMPBIN -symbols -headers"
7509 ;;
7510 *)
7511 DUMPBIN=:
7512 ;;
7513 esac
7514 fi
7515
7516 if test : != "$DUMPBIN"; then
7517 NM=$DUMPBIN
7518 fi
7519 fi
7520 test -z "$NM" && NM=nm
7521
7522
7523
7524
7525
7526
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7528 printf %s "checking the name lister ($NM) interface... " >&6; }
7529 if test ${lt_cv_nm_interface+y}
7530 then :
7531 printf %s "(cached) " >&6
7532 else $as_nop
7533 lt_cv_nm_interface="BSD nm"
7534 echo "int some_variable = 0;" > conftest.$ac_ext
7535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7536 (eval "$ac_compile" 2>conftest.err)
7537 cat conftest.err >&5
7538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7540 cat conftest.err >&5
7541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7542 cat conftest.out >&5
7543 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7544 lt_cv_nm_interface="MS dumpbin"
7545 fi
7546 rm -f conftest*
7547 fi
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7549 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7550
7551 # find the maximum length of command line arguments
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7553 printf %s "checking the maximum length of command line arguments... " >&6; }
7554 if test ${lt_cv_sys_max_cmd_len+y}
7555 then :
7556 printf %s "(cached) " >&6
7557 else $as_nop
7558 i=0
7559 teststring=ABCD
7560
7561 case $build_os in
7562 msdosdjgpp*)
7563 # On DJGPP, this test can blow up pretty badly due to problems in libc
7564 # (any single argument exceeding 2000 bytes causes a buffer overrun
7565 # during glob expansion). Even if it were fixed, the result of this
7566 # check would be larger than it should be.
7567 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7568 ;;
7569
7570 gnu*)
7571 # Under GNU Hurd, this test is not required because there is
7572 # no limit to the length of command line arguments.
7573 # Libtool will interpret -1 as no limit whatsoever
7574 lt_cv_sys_max_cmd_len=-1;
7575 ;;
7576
7577 cygwin* | mingw* | cegcc*)
7578 # On Win9x/ME, this test blows up -- it succeeds, but takes
7579 # about 5 minutes as the teststring grows exponentially.
7580 # Worse, since 9x/ME are not pre-emptively multitasking,
7581 # you end up with a "frozen" computer, even though with patience
7582 # the test eventually succeeds (with a max line length of 256k).
7583 # Instead, let's just punt: use the minimum linelength reported by
7584 # all of the supported platforms: 8192 (on NT/2K/XP).
7585 lt_cv_sys_max_cmd_len=8192;
7586 ;;
7587
7588 mint*)
7589 # On MiNT this can take a long time and run out of memory.
7590 lt_cv_sys_max_cmd_len=8192;
7591 ;;
7592
7593 amigaos*)
7594 # On AmigaOS with pdksh, this test takes hours, literally.
7595 # So we just punt and use a minimum line length of 8192.
7596 lt_cv_sys_max_cmd_len=8192;
7597 ;;
7598
7599 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7600 # This has been around since 386BSD, at least. Likely further.
7601 if test -x /sbin/sysctl; then
7602 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7603 elif test -x /usr/sbin/sysctl; then
7604 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7605 else
7606 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7607 fi
7608 # And add a safety zone
7609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7611 ;;
7612
7613 interix*)
7614 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7615 lt_cv_sys_max_cmd_len=196608
7616 ;;
7617
7618 os2*)
7619 # The test takes a long time on OS/2.
7620 lt_cv_sys_max_cmd_len=8192
7621 ;;
7622
7623 osf*)
7624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7626 # nice to cause kernel panics so lets avoid the loop below.
7627 # First set a reasonable default.
7628 lt_cv_sys_max_cmd_len=16384
7629 #
7630 if test -x /sbin/sysconfig; then
7631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7632 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7633 esac
7634 fi
7635 ;;
7636 sco3.2v5*)
7637 lt_cv_sys_max_cmd_len=102400
7638 ;;
7639 sysv5* | sco5v6* | sysv4.2uw2*)
7640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7641 if test -n "$kargmax"; then
7642 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7643 else
7644 lt_cv_sys_max_cmd_len=32768
7645 fi
7646 ;;
7647 *)
7648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7649 if test -n "$lt_cv_sys_max_cmd_len" && \
7650 test undefined != "$lt_cv_sys_max_cmd_len"; then
7651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7653 else
7654 # Make teststring a little bigger before we do anything with it.
7655 # a 1K string should be a reasonable start.
7656 for i in 1 2 3 4 5 6 7 8; do
7657 teststring=$teststring$teststring
7658 done
7659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7660 # If test is not a shell built-in, we'll probably end up computing a
7661 # maximum length that is only half of the actual maximum length, but
7662 # we can't tell.
7663 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7665 test 17 != "$i" # 1/2 MB should be enough
7666 do
7667 i=`expr $i + 1`
7668 teststring=$teststring$teststring
7669 done
7670 # Only check the string length outside the loop.
7671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7672 teststring=
7673 # Add a significant safety factor because C++ compilers can tack on
7674 # massive amounts of additional arguments before passing them to the
7675 # linker. It appears as though 1/2 is a usable value.
7676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7677 fi
7678 ;;
7679 esac
7680
7681 fi
7682
7683 if test -n "$lt_cv_sys_max_cmd_len"; then
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7685 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7686 else
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7688 printf "%s\n" "none" >&6; }
7689 fi
7690 max_cmd_len=$lt_cv_sys_max_cmd_len
7691
7692
7693
7694
7695
7696
7697 : ${CP="cp -f"}
7698 : ${MV="mv -f"}
7699 : ${RM="rm -f"}
7700
7701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7702 lt_unset=unset
7703 else
7704 lt_unset=false
7705 fi
7706
7707
7708
7709
7710
7711 # test EBCDIC or ASCII
7712 case `echo X|tr X '\101'` in
7713 A) # ASCII based system
7714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7715 lt_SP2NL='tr \040 \012'
7716 lt_NL2SP='tr \015\012 \040\040'
7717 ;;
7718 *) # EBCDIC based system
7719 lt_SP2NL='tr \100 \n'
7720 lt_NL2SP='tr \r\n \100\100'
7721 ;;
7722 esac
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7733 printf %s "checking how to convert $build file names to $host format... " >&6; }
7734 if test ${lt_cv_to_host_file_cmd+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738 case $host in
7739 *-*-mingw* )
7740 case $build in
7741 *-*-mingw* ) # actually msys
7742 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7743 ;;
7744 *-*-cygwin* )
7745 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7746 ;;
7747 * ) # otherwise, assume *nix
7748 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7749 ;;
7750 esac
7751 ;;
7752 *-*-cygwin* )
7753 case $build in
7754 *-*-mingw* ) # actually msys
7755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7756 ;;
7757 *-*-cygwin* )
7758 lt_cv_to_host_file_cmd=func_convert_file_noop
7759 ;;
7760 * ) # otherwise, assume *nix
7761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7762 ;;
7763 esac
7764 ;;
7765 * ) # unhandled hosts (and "normal" native builds)
7766 lt_cv_to_host_file_cmd=func_convert_file_noop
7767 ;;
7768 esac
7769
7770 fi
7771
7772 to_host_file_cmd=$lt_cv_to_host_file_cmd
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7774 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7775
7776
7777
7778
7779
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7781 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7782 if test ${lt_cv_to_tool_file_cmd+y}
7783 then :
7784 printf %s "(cached) " >&6
7785 else $as_nop
7786 #assume ordinary cross tools, or native build.
7787 lt_cv_to_tool_file_cmd=func_convert_file_noop
7788 case $host in
7789 *-*-mingw* )
7790 case $build in
7791 *-*-mingw* ) # actually msys
7792 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7793 ;;
7794 esac
7795 ;;
7796 esac
7797
7798 fi
7799
7800 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7802 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7803
7804
7805
7806
7807
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7809 printf %s "checking for $LD option to reload object files... " >&6; }
7810 if test ${lt_cv_ld_reload_flag+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else $as_nop
7814 lt_cv_ld_reload_flag='-r'
7815 fi
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7817 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7818 reload_flag=$lt_cv_ld_reload_flag
7819 case $reload_flag in
7820 "" | " "*) ;;
7821 *) reload_flag=" $reload_flag" ;;
7822 esac
7823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7824 case $host_os in
7825 cygwin* | mingw* | pw32* | cegcc*)
7826 if test yes != "$GCC"; then
7827 reload_cmds=false
7828 fi
7829 ;;
7830 darwin*)
7831 if test yes = "$GCC"; then
7832 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7833 else
7834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7835 fi
7836 ;;
7837 esac
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847 if test -n "$ac_tool_prefix"; then
7848 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7849 set dummy ${ac_tool_prefix}file; ac_word=$2
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 printf %s "checking for $ac_word... " >&6; }
7852 if test ${ac_cv_prog_FILECMD+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else $as_nop
7856 if test -n "$FILECMD"; then
7857 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 case $as_dir in #(((
7864 '') as_dir=./ ;;
7865 */) ;;
7866 *) as_dir=$as_dir/ ;;
7867 esac
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 FILECMD=$ac_cv_prog_FILECMD
7881 if test -n "$FILECMD"; then
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7883 printf "%s\n" "$FILECMD" >&6; }
7884 else
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 printf "%s\n" "no" >&6; }
7887 fi
7888
7889
7890 fi
7891 if test -z "$ac_cv_prog_FILECMD"; then
7892 ac_ct_FILECMD=$FILECMD
7893 # Extract the first word of "file", so it can be a program name with args.
7894 set dummy file; ac_word=$2
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 printf %s "checking for $ac_word... " >&6; }
7897 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7898 then :
7899 printf %s "(cached) " >&6
7900 else $as_nop
7901 if test -n "$ac_ct_FILECMD"; then
7902 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907 IFS=$as_save_IFS
7908 case $as_dir in #(((
7909 '') as_dir=./ ;;
7910 */) ;;
7911 *) as_dir=$as_dir/ ;;
7912 esac
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_ac_ct_FILECMD="file"
7916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7926 if test -n "$ac_ct_FILECMD"; then
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7928 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7929 else
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 printf "%s\n" "no" >&6; }
7932 fi
7933
7934 if test "x$ac_ct_FILECMD" = x; then
7935 FILECMD=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 FILECMD=$ac_ct_FILECMD
7944 fi
7945 else
7946 FILECMD="$ac_cv_prog_FILECMD"
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 printf %s "checking for $ac_word... " >&6; }
7960 if test ${ac_cv_prog_OBJDUMP+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 if test -n "$OBJDUMP"; then
7965 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 case $as_dir in #(((
7972 '') as_dir=./ ;;
7973 */) ;;
7974 *) as_dir=$as_dir/ ;;
7975 esac
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 OBJDUMP=$ac_cv_prog_OBJDUMP
7989 if test -n "$OBJDUMP"; then
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7991 printf "%s\n" "$OBJDUMP" >&6; }
7992 else
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 printf "%s\n" "no" >&6; }
7995 fi
7996
7997
7998 fi
7999 if test -z "$ac_cv_prog_OBJDUMP"; then
8000 ac_ct_OBJDUMP=$OBJDUMP
8001 # Extract the first word of "objdump", so it can be a program name with args.
8002 set dummy objdump; ac_word=$2
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 printf %s "checking for $ac_word... " >&6; }
8005 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
8009 if test -n "$ac_ct_OBJDUMP"; then
8010 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8034 if test -n "$ac_ct_OBJDUMP"; then
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8036 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8037 else
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 printf "%s\n" "no" >&6; }
8040 fi
8041
8042 if test "x$ac_ct_OBJDUMP" = x; then
8043 OBJDUMP="false"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 OBJDUMP=$ac_ct_OBJDUMP
8052 fi
8053 else
8054 OBJDUMP="$ac_cv_prog_OBJDUMP"
8055 fi
8056
8057 test -z "$OBJDUMP" && OBJDUMP=objdump
8058
8059
8060
8061
8062
8063
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8065 printf %s "checking how to recognize dependent libraries... " >&6; }
8066 if test ${lt_cv_deplibs_check_method+y}
8067 then :
8068 printf %s "(cached) " >&6
8069 else $as_nop
8070 lt_cv_file_magic_cmd='$MAGIC_CMD'
8071 lt_cv_file_magic_test_file=
8072 lt_cv_deplibs_check_method='unknown'
8073 # Need to set the preceding variable on all platforms that support
8074 # interlibrary dependencies.
8075 # 'none' -- dependencies not supported.
8076 # 'unknown' -- same as none, but documents that we really don't know.
8077 # 'pass_all' -- all dependencies passed with no checks.
8078 # 'test_compile' -- check by making test program.
8079 # 'file_magic [[regex]]' -- check by looking for files in library path
8080 # that responds to the $file_magic_cmd with a given extended regex.
8081 # If you have 'file' or equivalent on your system and you're not sure
8082 # whether 'pass_all' will *always* work, you probably want this one.
8083
8084 case $host_os in
8085 aix[4-9]*)
8086 lt_cv_deplibs_check_method=pass_all
8087 ;;
8088
8089 beos*)
8090 lt_cv_deplibs_check_method=pass_all
8091 ;;
8092
8093 bsdi[45]*)
8094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8095 lt_cv_file_magic_cmd='$FILECMD -L'
8096 lt_cv_file_magic_test_file=/shlib/libc.so
8097 ;;
8098
8099 cygwin*)
8100 # func_win32_libid is a shell function defined in ltmain.sh
8101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8102 lt_cv_file_magic_cmd='func_win32_libid'
8103 ;;
8104
8105 mingw* | pw32*)
8106 # Base MSYS/MinGW do not provide the 'file' command needed by
8107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8108 # unless we find 'file', for example because we are cross-compiling.
8109 if ( file / ) >/dev/null 2>&1; then
8110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8111 lt_cv_file_magic_cmd='func_win32_libid'
8112 else
8113 # Keep this pattern in sync with the one in func_win32_libid.
8114 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8115 lt_cv_file_magic_cmd='$OBJDUMP -f'
8116 fi
8117 ;;
8118
8119 cegcc*)
8120 # use the weaker test based on 'objdump'. See mingw*.
8121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8122 lt_cv_file_magic_cmd='$OBJDUMP -f'
8123 ;;
8124
8125 darwin* | rhapsody*)
8126 lt_cv_deplibs_check_method=pass_all
8127 ;;
8128
8129 freebsd* | dragonfly* | midnightbsd*)
8130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8131 case $host_cpu in
8132 i*86 )
8133 # Not sure whether the presence of OpenBSD here was a mistake.
8134 # Let's accept both of them until this is cleared up.
8135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8136 lt_cv_file_magic_cmd=$FILECMD
8137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8138 ;;
8139 esac
8140 else
8141 lt_cv_deplibs_check_method=pass_all
8142 fi
8143 ;;
8144
8145 haiku*)
8146 lt_cv_deplibs_check_method=pass_all
8147 ;;
8148
8149 hpux10.20* | hpux11*)
8150 lt_cv_file_magic_cmd=$FILECMD
8151 case $host_cpu in
8152 ia64*)
8153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8155 ;;
8156 hppa*64*)
8157 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]'
8158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8159 ;;
8160 *)
8161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8163 ;;
8164 esac
8165 ;;
8166
8167 interix[3-9]*)
8168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8170 ;;
8171
8172 irix5* | irix6* | nonstopux*)
8173 case $LD in
8174 *-32|*"-32 ") libmagic=32-bit;;
8175 *-n32|*"-n32 ") libmagic=N32;;
8176 *-64|*"-64 ") libmagic=64-bit;;
8177 *) libmagic=never-match;;
8178 esac
8179 lt_cv_deplibs_check_method=pass_all
8180 ;;
8181
8182 # This must be glibc/ELF.
8183 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8184 lt_cv_deplibs_check_method=pass_all
8185 ;;
8186
8187 netbsd*)
8188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8190 else
8191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8192 fi
8193 ;;
8194
8195 newos6*)
8196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8197 lt_cv_file_magic_cmd=$FILECMD
8198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8199 ;;
8200
8201 *nto* | *qnx*)
8202 lt_cv_deplibs_check_method=pass_all
8203 ;;
8204
8205 openbsd* | bitrig*)
8206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8208 else
8209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8210 fi
8211 ;;
8212
8213 osf3* | osf4* | osf5*)
8214 lt_cv_deplibs_check_method=pass_all
8215 ;;
8216
8217 rdos*)
8218 lt_cv_deplibs_check_method=pass_all
8219 ;;
8220
8221 solaris*)
8222 lt_cv_deplibs_check_method=pass_all
8223 ;;
8224
8225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8226 lt_cv_deplibs_check_method=pass_all
8227 ;;
8228
8229 sysv4 | sysv4.3*)
8230 case $host_vendor in
8231 motorola)
8232 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]'
8233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8234 ;;
8235 ncr)
8236 lt_cv_deplibs_check_method=pass_all
8237 ;;
8238 sequent)
8239 lt_cv_file_magic_cmd='/bin/file'
8240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8241 ;;
8242 sni)
8243 lt_cv_file_magic_cmd='/bin/file'
8244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8245 lt_cv_file_magic_test_file=/lib/libc.so
8246 ;;
8247 siemens)
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
8250 pc)
8251 lt_cv_deplibs_check_method=pass_all
8252 ;;
8253 esac
8254 ;;
8255
8256 tpf*)
8257 lt_cv_deplibs_check_method=pass_all
8258 ;;
8259 os2*)
8260 lt_cv_deplibs_check_method=pass_all
8261 ;;
8262 esac
8263
8264 fi
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8266 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8267
8268 file_magic_glob=
8269 want_nocaseglob=no
8270 if test "$build" = "$host"; then
8271 case $host_os in
8272 mingw* | pw32*)
8273 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8274 want_nocaseglob=yes
8275 else
8276 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8277 fi
8278 ;;
8279 esac
8280 fi
8281
8282 file_magic_cmd=$lt_cv_file_magic_cmd
8283 deplibs_check_method=$lt_cv_deplibs_check_method
8284 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 printf %s "checking for $ac_word... " >&6; }
8312 if test ${ac_cv_prog_DLLTOOL+y}
8313 then :
8314 printf %s "(cached) " >&6
8315 else $as_nop
8316 if test -n "$DLLTOOL"; then
8317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322 IFS=$as_save_IFS
8323 case $as_dir in #(((
8324 '') as_dir=./ ;;
8325 */) ;;
8326 *) as_dir=$as_dir/ ;;
8327 esac
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8332 break 2
8333 fi
8334 done
8335 done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 DLLTOOL=$ac_cv_prog_DLLTOOL
8341 if test -n "$DLLTOOL"; then
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343 printf "%s\n" "$DLLTOOL" >&6; }
8344 else
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 printf "%s\n" "no" >&6; }
8347 fi
8348
8349
8350 fi
8351 if test -z "$ac_cv_prog_DLLTOOL"; then
8352 ac_ct_DLLTOOL=$DLLTOOL
8353 # Extract the first word of "dlltool", so it can be a program name with args.
8354 set dummy dlltool; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else $as_nop
8361 if test -n "$ac_ct_DLLTOOL"; then
8362 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 case $as_dir in #(((
8369 '') as_dir=./ ;;
8370 */) ;;
8371 *) as_dir=$as_dir/ ;;
8372 esac
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8386 if test -n "$ac_ct_DLLTOOL"; then
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8388 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8389 else
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 printf "%s\n" "no" >&6; }
8392 fi
8393
8394 if test "x$ac_ct_DLLTOOL" = x; then
8395 DLLTOOL="false"
8396 else
8397 case $cross_compiling:$ac_tool_warned in
8398 yes:)
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8401 ac_tool_warned=yes ;;
8402 esac
8403 DLLTOOL=$ac_ct_DLLTOOL
8404 fi
8405 else
8406 DLLTOOL="$ac_cv_prog_DLLTOOL"
8407 fi
8408
8409 test -z "$DLLTOOL" && DLLTOOL=dlltool
8410
8411
8412
8413
8414
8415
8416
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8418 printf %s "checking how to associate runtime and link libraries... " >&6; }
8419 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8420 then :
8421 printf %s "(cached) " >&6
8422 else $as_nop
8423 lt_cv_sharedlib_from_linklib_cmd='unknown'
8424
8425 case $host_os in
8426 cygwin* | mingw* | pw32* | cegcc*)
8427 # two different shell functions defined in ltmain.sh;
8428 # decide which one to use based on capabilities of $DLLTOOL
8429 case `$DLLTOOL --help 2>&1` in
8430 *--identify-strict*)
8431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8432 ;;
8433 *)
8434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8435 ;;
8436 esac
8437 ;;
8438 *)
8439 # fallback: assume linklib IS sharedlib
8440 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8441 ;;
8442 esac
8443
8444 fi
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8446 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8447 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8448 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8449
8450
8451
8452
8453
8454
8455
8456
8457 if test -n "$ac_tool_prefix"; then
8458 for ac_prog in ar
8459 do
8460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 printf %s "checking for $ac_word... " >&6; }
8464 if test ${ac_cv_prog_AR+y}
8465 then :
8466 printf %s "(cached) " >&6
8467 else $as_nop
8468 if test -n "$AR"; then
8469 ac_cv_prog_AR="$AR" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474 IFS=$as_save_IFS
8475 case $as_dir in #(((
8476 '') as_dir=./ ;;
8477 */) ;;
8478 *) as_dir=$as_dir/ ;;
8479 esac
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 AR=$ac_cv_prog_AR
8493 if test -n "$AR"; then
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8495 printf "%s\n" "$AR" >&6; }
8496 else
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 printf "%s\n" "no" >&6; }
8499 fi
8500
8501
8502 test -n "$AR" && break
8503 done
8504 fi
8505 if test -z "$AR"; then
8506 ac_ct_AR=$AR
8507 for ac_prog in ar
8508 do
8509 # Extract the first word of "$ac_prog", so it can be a program name with args.
8510 set dummy $ac_prog; ac_word=$2
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 printf %s "checking for $ac_word... " >&6; }
8513 if test ${ac_cv_prog_ac_ct_AR+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 if test -n "$ac_ct_AR"; then
8518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523 IFS=$as_save_IFS
8524 case $as_dir in #(((
8525 '') as_dir=./ ;;
8526 */) ;;
8527 *) as_dir=$as_dir/ ;;
8528 esac
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8531 ac_cv_prog_ac_ct_AR="$ac_prog"
8532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 fi
8540 fi
8541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8542 if test -n "$ac_ct_AR"; then
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8544 printf "%s\n" "$ac_ct_AR" >&6; }
8545 else
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 printf "%s\n" "no" >&6; }
8548 fi
8549
8550
8551 test -n "$ac_ct_AR" && break
8552 done
8553
8554 if test "x$ac_ct_AR" = x; then
8555 AR="false"
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563 AR=$ac_ct_AR
8564 fi
8565 fi
8566
8567 : ${AR=ar}
8568
8569
8570
8571
8572
8573
8574 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8575 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8576 # higher priority because thats what people were doing historically (setting
8577 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8578 # variable obsoleted/removed.
8579
8580 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8581 lt_ar_flags=$AR_FLAGS
8582
8583
8584
8585
8586
8587
8588 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8589 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8590
8591
8592
8593
8594
8595
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8597 printf %s "checking for archiver @FILE support... " >&6; }
8598 if test ${lt_cv_ar_at_file+y}
8599 then :
8600 printf %s "(cached) " >&6
8601 else $as_nop
8602 lt_cv_ar_at_file=no
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605
8606 int
8607 main (void)
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_cxx_try_compile "$LINENO"
8615 then :
8616 echo conftest.$ac_objext > conftest.lst
8617 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8619 (eval $lt_ar_try) 2>&5
8620 ac_status=$?
8621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622 test $ac_status = 0; }
8623 if test 0 -eq "$ac_status"; then
8624 # Ensure the archiver fails upon bogus file names.
8625 rm -f conftest.$ac_objext libconftest.a
8626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8627 (eval $lt_ar_try) 2>&5
8628 ac_status=$?
8629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8630 test $ac_status = 0; }
8631 if test 0 -ne "$ac_status"; then
8632 lt_cv_ar_at_file=@
8633 fi
8634 fi
8635 rm -f conftest.* libconftest.a
8636
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8639
8640 fi
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8642 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8643
8644 if test no = "$lt_cv_ar_at_file"; then
8645 archiver_list_spec=
8646 else
8647 archiver_list_spec=$lt_cv_ar_at_file
8648 fi
8649
8650
8651
8652
8653
8654
8655
8656 if test -n "$ac_tool_prefix"; then
8657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8658 set dummy ${ac_tool_prefix}strip; ac_word=$2
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660 printf %s "checking for $ac_word... " >&6; }
8661 if test ${ac_cv_prog_STRIP+y}
8662 then :
8663 printf %s "(cached) " >&6
8664 else $as_nop
8665 if test -n "$STRIP"; then
8666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8667 else
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8670 do
8671 IFS=$as_save_IFS
8672 case $as_dir in #(((
8673 '') as_dir=./ ;;
8674 */) ;;
8675 *) as_dir=$as_dir/ ;;
8676 esac
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683 done
8684 done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 STRIP=$ac_cv_prog_STRIP
8690 if test -n "$STRIP"; then
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8692 printf "%s\n" "$STRIP" >&6; }
8693 else
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 printf "%s\n" "no" >&6; }
8696 fi
8697
8698
8699 fi
8700 if test -z "$ac_cv_prog_STRIP"; then
8701 ac_ct_STRIP=$STRIP
8702 # Extract the first word of "strip", so it can be a program name with args.
8703 set dummy strip; ac_word=$2
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 printf %s "checking for $ac_word... " >&6; }
8706 if test ${ac_cv_prog_ac_ct_STRIP+y}
8707 then :
8708 printf %s "(cached) " >&6
8709 else $as_nop
8710 if test -n "$ac_ct_STRIP"; then
8711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716 IFS=$as_save_IFS
8717 case $as_dir in #(((
8718 '') as_dir=./ ;;
8719 */) ;;
8720 *) as_dir=$as_dir/ ;;
8721 esac
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8724 ac_cv_prog_ac_ct_STRIP="strip"
8725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8726 break 2
8727 fi
8728 done
8729 done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8735 if test -n "$ac_ct_STRIP"; then
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8737 printf "%s\n" "$ac_ct_STRIP" >&6; }
8738 else
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 printf "%s\n" "no" >&6; }
8741 fi
8742
8743 if test "x$ac_ct_STRIP" = x; then
8744 STRIP=":"
8745 else
8746 case $cross_compiling:$ac_tool_warned in
8747 yes:)
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8750 ac_tool_warned=yes ;;
8751 esac
8752 STRIP=$ac_ct_STRIP
8753 fi
8754 else
8755 STRIP="$ac_cv_prog_STRIP"
8756 fi
8757
8758 test -z "$STRIP" && STRIP=:
8759
8760
8761
8762
8763
8764
8765 if test -n "$ac_tool_prefix"; then
8766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 printf %s "checking for $ac_word... " >&6; }
8770 if test ${ac_cv_prog_RANLIB+y}
8771 then :
8772 printf %s "(cached) " >&6
8773 else $as_nop
8774 if test -n "$RANLIB"; then
8775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780 IFS=$as_save_IFS
8781 case $as_dir in #(((
8782 '') as_dir=./ ;;
8783 */) ;;
8784 *) as_dir=$as_dir/ ;;
8785 esac
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8790 break 2
8791 fi
8792 done
8793 done
8794 IFS=$as_save_IFS
8795
8796 fi
8797 fi
8798 RANLIB=$ac_cv_prog_RANLIB
8799 if test -n "$RANLIB"; then
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8801 printf "%s\n" "$RANLIB" >&6; }
8802 else
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 printf "%s\n" "no" >&6; }
8805 fi
8806
8807
8808 fi
8809 if test -z "$ac_cv_prog_RANLIB"; then
8810 ac_ct_RANLIB=$RANLIB
8811 # Extract the first word of "ranlib", so it can be a program name with args.
8812 set dummy ranlib; ac_word=$2
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 printf %s "checking for $ac_word... " >&6; }
8815 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8816 then :
8817 printf %s "(cached) " >&6
8818 else $as_nop
8819 if test -n "$ac_ct_RANLIB"; then
8820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8821 else
8822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 for as_dir in $PATH
8824 do
8825 IFS=$as_save_IFS
8826 case $as_dir in #(((
8827 '') as_dir=./ ;;
8828 */) ;;
8829 *) as_dir=$as_dir/ ;;
8830 esac
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8833 ac_cv_prog_ac_ct_RANLIB="ranlib"
8834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837 done
8838 done
8839 IFS=$as_save_IFS
8840
8841 fi
8842 fi
8843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8844 if test -n "$ac_ct_RANLIB"; then
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8846 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8847 else
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 printf "%s\n" "no" >&6; }
8850 fi
8851
8852 if test "x$ac_ct_RANLIB" = x; then
8853 RANLIB=":"
8854 else
8855 case $cross_compiling:$ac_tool_warned in
8856 yes:)
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8859 ac_tool_warned=yes ;;
8860 esac
8861 RANLIB=$ac_ct_RANLIB
8862 fi
8863 else
8864 RANLIB="$ac_cv_prog_RANLIB"
8865 fi
8866
8867 test -z "$RANLIB" && RANLIB=:
8868
8869
8870
8871
8872
8873
8874 # Determine commands to create old-style static archives.
8875 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8876 old_postinstall_cmds='chmod 644 $oldlib'
8877 old_postuninstall_cmds=
8878
8879 if test -n "$RANLIB"; then
8880 case $host_os in
8881 bitrig* | openbsd*)
8882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8883 ;;
8884 *)
8885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8886 ;;
8887 esac
8888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8889 fi
8890
8891 case $host_os in
8892 darwin*)
8893 lock_old_archive_extraction=yes ;;
8894 *)
8895 lock_old_archive_extraction=no ;;
8896 esac
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936 # If no C compiler was specified, use CC.
8937 LTCC=${LTCC-"$CC"}
8938
8939 # If no C compiler flags were specified, use CFLAGS.
8940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8941
8942 # Allow CC to be a program name with arguments.
8943 compiler=$CC
8944
8945
8946 # Check for command to grab the raw symbol name followed by C symbol from nm.
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8948 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8949 if test ${lt_cv_sys_global_symbol_pipe+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else $as_nop
8953
8954 # These are sane defaults that work on at least a few old systems.
8955 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8956
8957 # Character class describing NM global symbol codes.
8958 symcode='[BCDEGRST]'
8959
8960 # Regexp to match symbols that can be accessed directly from C.
8961 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8962
8963 # Define system-specific variables.
8964 case $host_os in
8965 aix*)
8966 symcode='[BCDT]'
8967 ;;
8968 cygwin* | mingw* | pw32* | cegcc*)
8969 symcode='[ABCDGISTW]'
8970 ;;
8971 hpux*)
8972 if test ia64 = "$host_cpu"; then
8973 symcode='[ABCDEGRST]'
8974 fi
8975 ;;
8976 irix* | nonstopux*)
8977 symcode='[BCDEGRST]'
8978 ;;
8979 osf*)
8980 symcode='[BCDEGQRST]'
8981 ;;
8982 solaris*)
8983 symcode='[BDRT]'
8984 ;;
8985 sco3.2v5*)
8986 symcode='[DT]'
8987 ;;
8988 sysv4.2uw2*)
8989 symcode='[DT]'
8990 ;;
8991 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8992 symcode='[ABDT]'
8993 ;;
8994 sysv4)
8995 symcode='[DFNSTU]'
8996 ;;
8997 esac
8998
8999 # If we're using GNU nm, then use its standard symbol codes.
9000 case `$NM -V 2>&1` in
9001 *GNU* | *'with BFD'*)
9002 symcode='[ABCDGIRSTW]' ;;
9003 esac
9004
9005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9006 # Gets list of data symbols to import.
9007 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9008 # Adjust the below global symbol transforms to fixup imported variables.
9009 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9010 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9011 lt_c_name_lib_hook="\
9012 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9013 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9014 else
9015 # Disable hooks by default.
9016 lt_cv_sys_global_symbol_to_import=
9017 lt_cdecl_hook=
9018 lt_c_name_hook=
9019 lt_c_name_lib_hook=
9020 fi
9021
9022 # Transform an extracted symbol line into a proper C declaration.
9023 # Some systems (esp. on ia64) link data and code symbols differently,
9024 # so use this general approach.
9025 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9026 $lt_cdecl_hook\
9027 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9028 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9029
9030 # Transform an extracted symbol line into symbol name and symbol address
9031 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9032 $lt_c_name_hook\
9033 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9034 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9035
9036 # Transform an extracted symbol line into symbol name with lib prefix and
9037 # symbol address.
9038 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9039 $lt_c_name_lib_hook\
9040 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9041 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9042 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9043
9044 # Handle CRLF in mingw tool chain
9045 opt_cr=
9046 case $build_os in
9047 mingw*)
9048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9049 ;;
9050 esac
9051
9052 # Try without a prefix underscore, then with it.
9053 for ac_symprfx in "" "_"; do
9054
9055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9056 symxfrm="\\1 $ac_symprfx\\2 \\2"
9057
9058 # Write the raw and C identifiers.
9059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9060 # Fake it for dumpbin and say T for any non-static function,
9061 # D for any global variable and I for any imported variable.
9062 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9063 # which start with @ or ?.
9064 lt_cv_sys_global_symbol_pipe="$AWK '"\
9065 " {last_section=section; section=\$ 3};"\
9066 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9067 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9068 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9069 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9070 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9071 " \$ 0!~/External *\|/{next};"\
9072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9073 " {if(hide[section]) next};"\
9074 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9075 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9076 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9077 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9078 " ' prfx=^$ac_symprfx"
9079 else
9080 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9081 fi
9082 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9083
9084 # Check to see that the pipe works correctly.
9085 pipe_works=no
9086
9087 rm -f conftest*
9088 cat > conftest.$ac_ext <<_LT_EOF
9089 #ifdef __cplusplus
9090 extern "C" {
9091 #endif
9092 char nm_test_var;
9093 void nm_test_func(void);
9094 void nm_test_func(void){}
9095 #ifdef __cplusplus
9096 }
9097 #endif
9098 int main(){nm_test_var='a';nm_test_func();return(0);}
9099 _LT_EOF
9100
9101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9102 (eval $ac_compile) 2>&5
9103 ac_status=$?
9104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9105 test $ac_status = 0; }; then
9106 # Now try to grab the symbols.
9107 nlist=conftest.nm
9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9109 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9110 ac_status=$?
9111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112 test $ac_status = 0; } && test -s "$nlist"; then
9113 # Try sorting and uniquifying the output.
9114 if sort "$nlist" | uniq > "$nlist"T; then
9115 mv -f "$nlist"T "$nlist"
9116 else
9117 rm -f "$nlist"T
9118 fi
9119
9120 # Make sure that we snagged all the symbols we need.
9121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9123 cat <<_LT_EOF > conftest.$ac_ext
9124 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9125 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9126 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9127 relocations are performed -- see ld's documentation on pseudo-relocs. */
9128 # define LT_DLSYM_CONST
9129 #elif defined __osf__
9130 /* This system does not cope well with relocations in const data. */
9131 # define LT_DLSYM_CONST
9132 #else
9133 # define LT_DLSYM_CONST const
9134 #endif
9135
9136 #ifdef __cplusplus
9137 extern "C" {
9138 #endif
9139
9140 _LT_EOF
9141 # Now generate the symbol file.
9142 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9143
9144 cat <<_LT_EOF >> conftest.$ac_ext
9145
9146 /* The mapping between symbol names and symbols. */
9147 LT_DLSYM_CONST struct {
9148 const char *name;
9149 void *address;
9150 }
9151 lt__PROGRAM__LTX_preloaded_symbols[] =
9152 {
9153 { "@PROGRAM@", (void *) 0 },
9154 _LT_EOF
9155 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9156 cat <<\_LT_EOF >> conftest.$ac_ext
9157 {0, (void *) 0}
9158 };
9159
9160 /* This works around a problem in FreeBSD linker */
9161 #ifdef FREEBSD_WORKAROUND
9162 static const void *lt_preloaded_setup() {
9163 return lt__PROGRAM__LTX_preloaded_symbols;
9164 }
9165 #endif
9166
9167 #ifdef __cplusplus
9168 }
9169 #endif
9170 _LT_EOF
9171 # Now try linking the two files.
9172 mv conftest.$ac_objext conftstm.$ac_objext
9173 lt_globsym_save_LIBS=$LIBS
9174 lt_globsym_save_CFLAGS=$CFLAGS
9175 LIBS=conftstm.$ac_objext
9176 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9178 (eval $ac_link) 2>&5
9179 ac_status=$?
9180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9181 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9182 pipe_works=yes
9183 fi
9184 LIBS=$lt_globsym_save_LIBS
9185 CFLAGS=$lt_globsym_save_CFLAGS
9186 else
9187 echo "cannot find nm_test_func in $nlist" >&5
9188 fi
9189 else
9190 echo "cannot find nm_test_var in $nlist" >&5
9191 fi
9192 else
9193 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9194 fi
9195 else
9196 echo "$progname: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 fi
9199 rm -rf conftest* conftst*
9200
9201 # Do not use the global_symbol_pipe unless it works.
9202 if test yes = "$pipe_works"; then
9203 break
9204 else
9205 lt_cv_sys_global_symbol_pipe=
9206 fi
9207 done
9208
9209 fi
9210
9211 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9212 lt_cv_sys_global_symbol_to_cdecl=
9213 fi
9214 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9216 printf "%s\n" "failed" >&6; }
9217 else
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9219 printf "%s\n" "ok" >&6; }
9220 fi
9221
9222 # Response file support.
9223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9224 nm_file_list_spec='@'
9225 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9226 nm_file_list_spec='@'
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9266 printf %s "checking for sysroot... " >&6; }
9267
9268 # Check whether --with-sysroot was given.
9269 if test ${with_sysroot+y}
9270 then :
9271 withval=$with_sysroot;
9272 else $as_nop
9273 with_sysroot=no
9274 fi
9275
9276
9277 lt_sysroot=
9278 case $with_sysroot in #(
9279 yes)
9280 if test yes = "$GCC"; then
9281 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9282 fi
9283 ;; #(
9284 /*)
9285 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9286 ;; #(
9287 no|'')
9288 ;; #(
9289 *)
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9291 printf "%s\n" "$with_sysroot" >&6; }
9292 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9293 ;;
9294 esac
9295
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9297 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9298
9299
9300
9301
9302
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9304 printf %s "checking for a working dd... " >&6; }
9305 if test ${ac_cv_path_lt_DD+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else $as_nop
9309 printf 0123456789abcdef0123456789abcdef >conftest.i
9310 cat conftest.i conftest.i >conftest2.i
9311 : ${lt_DD:=$DD}
9312 if test -z "$lt_DD"; then
9313 ac_path_lt_DD_found=false
9314 # Loop through the user's path and test for each of PROGNAME-LIST
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318 IFS=$as_save_IFS
9319 case $as_dir in #(((
9320 '') as_dir=./ ;;
9321 */) ;;
9322 *) as_dir=$as_dir/ ;;
9323 esac
9324 for ac_prog in dd
9325 do
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9328 as_fn_executable_p "$ac_path_lt_DD" || continue
9329 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9330 cmp -s conftest.i conftest.out \
9331 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9332 fi
9333 $ac_path_lt_DD_found && break 3
9334 done
9335 done
9336 done
9337 IFS=$as_save_IFS
9338 if test -z "$ac_cv_path_lt_DD"; then
9339 :
9340 fi
9341 else
9342 ac_cv_path_lt_DD=$lt_DD
9343 fi
9344
9345 rm -f conftest.i conftest2.i conftest.out
9346 fi
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9348 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9349
9350
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9352 printf %s "checking how to truncate binary pipes... " >&6; }
9353 if test ${lt_cv_truncate_bin+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else $as_nop
9357 printf 0123456789abcdef0123456789abcdef >conftest.i
9358 cat conftest.i conftest.i >conftest2.i
9359 lt_cv_truncate_bin=
9360 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9361 cmp -s conftest.i conftest.out \
9362 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9363 fi
9364 rm -f conftest.i conftest2.i conftest.out
9365 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9366 fi
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9368 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9369
9370
9371
9372
9373
9374
9375
9376 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9377 func_cc_basename ()
9378 {
9379 for cc_temp in $*""; do
9380 case $cc_temp in
9381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9383 \-*) ;;
9384 *) break;;
9385 esac
9386 done
9387 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9388 }
9389
9390 # Check whether --enable-libtool-lock was given.
9391 if test ${enable_libtool_lock+y}
9392 then :
9393 enableval=$enable_libtool_lock;
9394 fi
9395
9396 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9397
9398 # Some flags need to be propagated to the compiler or linker for good
9399 # libtool support.
9400 case $host in
9401 ia64-*-hpux*)
9402 # Find out what ABI is being produced by ac_compile, and set mode
9403 # options accordingly.
9404 echo 'int i;' > conftest.$ac_ext
9405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9406 (eval $ac_compile) 2>&5
9407 ac_status=$?
9408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9409 test $ac_status = 0; }; then
9410 case `$FILECMD conftest.$ac_objext` in
9411 *ELF-32*)
9412 HPUX_IA64_MODE=32
9413 ;;
9414 *ELF-64*)
9415 HPUX_IA64_MODE=64
9416 ;;
9417 esac
9418 fi
9419 rm -rf conftest*
9420 ;;
9421 *-*-irix6*)
9422 # Find out what ABI is being produced by ac_compile, and set linker
9423 # options accordingly.
9424 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9426 (eval $ac_compile) 2>&5
9427 ac_status=$?
9428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9429 test $ac_status = 0; }; then
9430 if test yes = "$lt_cv_prog_gnu_ld"; then
9431 case `$FILECMD conftest.$ac_objext` in
9432 *32-bit*)
9433 LD="${LD-ld} -melf32bsmip"
9434 ;;
9435 *N32*)
9436 LD="${LD-ld} -melf32bmipn32"
9437 ;;
9438 *64-bit*)
9439 LD="${LD-ld} -melf64bmip"
9440 ;;
9441 esac
9442 else
9443 case `$FILECMD conftest.$ac_objext` in
9444 *32-bit*)
9445 LD="${LD-ld} -32"
9446 ;;
9447 *N32*)
9448 LD="${LD-ld} -n32"
9449 ;;
9450 *64-bit*)
9451 LD="${LD-ld} -64"
9452 ;;
9453 esac
9454 fi
9455 fi
9456 rm -rf conftest*
9457 ;;
9458
9459 mips64*-*linux*)
9460 # Find out what ABI is being produced by ac_compile, and set linker
9461 # options accordingly.
9462 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464 (eval $ac_compile) 2>&5
9465 ac_status=$?
9466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467 test $ac_status = 0; }; then
9468 emul=elf
9469 case `$FILECMD conftest.$ac_objext` in
9470 *32-bit*)
9471 emul="${emul}32"
9472 ;;
9473 *64-bit*)
9474 emul="${emul}64"
9475 ;;
9476 esac
9477 case `$FILECMD conftest.$ac_objext` in
9478 *MSB*)
9479 emul="${emul}btsmip"
9480 ;;
9481 *LSB*)
9482 emul="${emul}ltsmip"
9483 ;;
9484 esac
9485 case `$FILECMD conftest.$ac_objext` in
9486 *N32*)
9487 emul="${emul}n32"
9488 ;;
9489 esac
9490 LD="${LD-ld} -m $emul"
9491 fi
9492 rm -rf conftest*
9493 ;;
9494
9495 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9496 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9497 # Find out what ABI is being produced by ac_compile, and set linker
9498 # options accordingly. Note that the listed cases only cover the
9499 # situations where additional linker options are needed (such as when
9500 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9501 # vice versa); the common cases where no linker options are needed do
9502 # not appear in the list.
9503 echo 'int i;' > conftest.$ac_ext
9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9505 (eval $ac_compile) 2>&5
9506 ac_status=$?
9507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9508 test $ac_status = 0; }; then
9509 case `$FILECMD conftest.o` in
9510 *32-bit*)
9511 case $host in
9512 x86_64-*kfreebsd*-gnu)
9513 LD="${LD-ld} -m elf_i386_fbsd"
9514 ;;
9515 x86_64-*linux*)
9516 case `$FILECMD conftest.o` in
9517 *x86-64*)
9518 LD="${LD-ld} -m elf32_x86_64"
9519 ;;
9520 *)
9521 LD="${LD-ld} -m elf_i386"
9522 ;;
9523 esac
9524 ;;
9525 powerpc64le-*linux*)
9526 LD="${LD-ld} -m elf32lppclinux"
9527 ;;
9528 powerpc64-*linux*)
9529 LD="${LD-ld} -m elf32ppclinux"
9530 ;;
9531 s390x-*linux*)
9532 LD="${LD-ld} -m elf_s390"
9533 ;;
9534 sparc64-*linux*)
9535 LD="${LD-ld} -m elf32_sparc"
9536 ;;
9537 esac
9538 ;;
9539 *64-bit*)
9540 case $host in
9541 x86_64-*kfreebsd*-gnu)
9542 LD="${LD-ld} -m elf_x86_64_fbsd"
9543 ;;
9544 x86_64-*linux*)
9545 LD="${LD-ld} -m elf_x86_64"
9546 ;;
9547 powerpcle-*linux*)
9548 LD="${LD-ld} -m elf64lppc"
9549 ;;
9550 powerpc-*linux*)
9551 LD="${LD-ld} -m elf64ppc"
9552 ;;
9553 s390*-*linux*|s390*-*tpf*)
9554 LD="${LD-ld} -m elf64_s390"
9555 ;;
9556 sparc*-*linux*)
9557 LD="${LD-ld} -m elf64_sparc"
9558 ;;
9559 esac
9560 ;;
9561 esac
9562 fi
9563 rm -rf conftest*
9564 ;;
9565
9566 *-*-sco3.2v5*)
9567 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9568 SAVE_CFLAGS=$CFLAGS
9569 CFLAGS="$CFLAGS -belf"
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9571 printf %s "checking whether the C compiler needs -belf... " >&6; }
9572 if test ${lt_cv_cc_needs_belf+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else $as_nop
9576 ac_ext=c
9577 ac_cpp='$CPP $CPPFLAGS'
9578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 int
9586 main (void)
9587 {
9588
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"
9594 then :
9595 lt_cv_cc_needs_belf=yes
9596 else $as_nop
9597 lt_cv_cc_needs_belf=no
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9600 conftest$ac_exeext conftest.$ac_ext
9601 ac_ext=c
9602 ac_cpp='$CPP $CPPFLAGS'
9603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9606
9607 fi
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9609 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9610 if test yes != "$lt_cv_cc_needs_belf"; then
9611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9612 CFLAGS=$SAVE_CFLAGS
9613 fi
9614 ;;
9615 *-*solaris*)
9616 # Find out what ABI is being produced by ac_compile, and set linker
9617 # options accordingly.
9618 echo 'int i;' > conftest.$ac_ext
9619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9620 (eval $ac_compile) 2>&5
9621 ac_status=$?
9622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623 test $ac_status = 0; }; then
9624 case `$FILECMD conftest.o` in
9625 *64-bit*)
9626 case $lt_cv_prog_gnu_ld in
9627 yes*)
9628 case $host in
9629 i?86-*-solaris*|x86_64-*-solaris*)
9630 LD="${LD-ld} -m elf_x86_64"
9631 ;;
9632 sparc*-*-solaris*)
9633 LD="${LD-ld} -m elf64_sparc"
9634 ;;
9635 esac
9636 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9637 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9638 LD=${LD-ld}_sol2
9639 fi
9640 ;;
9641 *)
9642 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9643 LD="${LD-ld} -64"
9644 fi
9645 ;;
9646 esac
9647 ;;
9648 esac
9649 fi
9650 rm -rf conftest*
9651 ;;
9652 esac
9653
9654 need_locks=$enable_libtool_lock
9655
9656 if test -n "$ac_tool_prefix"; then
9657 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9658 set dummy ${ac_tool_prefix}mt; ac_word=$2
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 printf %s "checking for $ac_word... " >&6; }
9661 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9662 then :
9663 printf %s "(cached) " >&6
9664 else $as_nop
9665 if test -n "$MANIFEST_TOOL"; then
9666 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9667 else
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671 IFS=$as_save_IFS
9672 case $as_dir in #(((
9673 '') as_dir=./ ;;
9674 */) ;;
9675 *) as_dir=$as_dir/ ;;
9676 esac
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9679 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9681 break 2
9682 fi
9683 done
9684 done
9685 IFS=$as_save_IFS
9686
9687 fi
9688 fi
9689 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9690 if test -n "$MANIFEST_TOOL"; then
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9692 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9693 else
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 printf "%s\n" "no" >&6; }
9696 fi
9697
9698
9699 fi
9700 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9701 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9702 # Extract the first word of "mt", so it can be a program name with args.
9703 set dummy mt; ac_word=$2
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 printf %s "checking for $ac_word... " >&6; }
9706 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9707 then :
9708 printf %s "(cached) " >&6
9709 else $as_nop
9710 if test -n "$ac_ct_MANIFEST_TOOL"; then
9711 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9715 do
9716 IFS=$as_save_IFS
9717 case $as_dir in #(((
9718 '') as_dir=./ ;;
9719 */) ;;
9720 *) as_dir=$as_dir/ ;;
9721 esac
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9724 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9726 break 2
9727 fi
9728 done
9729 done
9730 IFS=$as_save_IFS
9731
9732 fi
9733 fi
9734 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9735 if test -n "$ac_ct_MANIFEST_TOOL"; then
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9737 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9738 else
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 printf "%s\n" "no" >&6; }
9741 fi
9742
9743 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9744 MANIFEST_TOOL=":"
9745 else
9746 case $cross_compiling:$ac_tool_warned in
9747 yes:)
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750 ac_tool_warned=yes ;;
9751 esac
9752 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9753 fi
9754 else
9755 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9756 fi
9757
9758 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9760 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9761 if test ${lt_cv_path_mainfest_tool+y}
9762 then :
9763 printf %s "(cached) " >&6
9764 else $as_nop
9765 lt_cv_path_mainfest_tool=no
9766 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9767 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9768 cat conftest.err >&5
9769 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9770 lt_cv_path_mainfest_tool=yes
9771 fi
9772 rm -f conftest*
9773 fi
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9775 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9776 if test yes != "$lt_cv_path_mainfest_tool"; then
9777 MANIFEST_TOOL=:
9778 fi
9779
9780
9781
9782
9783
9784
9785 case $host_os in
9786 rhapsody* | darwin*)
9787 if test -n "$ac_tool_prefix"; then
9788 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9789 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 printf %s "checking for $ac_word... " >&6; }
9792 if test ${ac_cv_prog_DSYMUTIL+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 if test -n "$DSYMUTIL"; then
9797 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9798 else
9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9801 do
9802 IFS=$as_save_IFS
9803 case $as_dir in #(((
9804 '') as_dir=./ ;;
9805 */) ;;
9806 *) as_dir=$as_dir/ ;;
9807 esac
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814 done
9815 done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9821 if test -n "$DSYMUTIL"; then
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9823 printf "%s\n" "$DSYMUTIL" >&6; }
9824 else
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 printf "%s\n" "no" >&6; }
9827 fi
9828
9829
9830 fi
9831 if test -z "$ac_cv_prog_DSYMUTIL"; then
9832 ac_ct_DSYMUTIL=$DSYMUTIL
9833 # Extract the first word of "dsymutil", so it can be a program name with args.
9834 set dummy dsymutil; ac_word=$2
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 printf %s "checking for $ac_word... " >&6; }
9837 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9838 then :
9839 printf %s "(cached) " >&6
9840 else $as_nop
9841 if test -n "$ac_ct_DSYMUTIL"; then
9842 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847 IFS=$as_save_IFS
9848 case $as_dir in #(((
9849 '') as_dir=./ ;;
9850 */) ;;
9851 *) as_dir=$as_dir/ ;;
9852 esac
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9855 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9857 break 2
9858 fi
9859 done
9860 done
9861 IFS=$as_save_IFS
9862
9863 fi
9864 fi
9865 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9866 if test -n "$ac_ct_DSYMUTIL"; then
9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9868 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9869 else
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 printf "%s\n" "no" >&6; }
9872 fi
9873
9874 if test "x$ac_ct_DSYMUTIL" = x; then
9875 DSYMUTIL=":"
9876 else
9877 case $cross_compiling:$ac_tool_warned in
9878 yes:)
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9880 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9881 ac_tool_warned=yes ;;
9882 esac
9883 DSYMUTIL=$ac_ct_DSYMUTIL
9884 fi
9885 else
9886 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9887 fi
9888
9889 if test -n "$ac_tool_prefix"; then
9890 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9891 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 printf %s "checking for $ac_word... " >&6; }
9894 if test ${ac_cv_prog_NMEDIT+y}
9895 then :
9896 printf %s "(cached) " >&6
9897 else $as_nop
9898 if test -n "$NMEDIT"; then
9899 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904 IFS=$as_save_IFS
9905 case $as_dir in #(((
9906 '') as_dir=./ ;;
9907 */) ;;
9908 *) as_dir=$as_dir/ ;;
9909 esac
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916 done
9917 done
9918 IFS=$as_save_IFS
9919
9920 fi
9921 fi
9922 NMEDIT=$ac_cv_prog_NMEDIT
9923 if test -n "$NMEDIT"; then
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9925 printf "%s\n" "$NMEDIT" >&6; }
9926 else
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 printf "%s\n" "no" >&6; }
9929 fi
9930
9931
9932 fi
9933 if test -z "$ac_cv_prog_NMEDIT"; then
9934 ac_ct_NMEDIT=$NMEDIT
9935 # Extract the first word of "nmedit", so it can be a program name with args.
9936 set dummy nmedit; ac_word=$2
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 printf %s "checking for $ac_word... " >&6; }
9939 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9940 then :
9941 printf %s "(cached) " >&6
9942 else $as_nop
9943 if test -n "$ac_ct_NMEDIT"; then
9944 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9948 do
9949 IFS=$as_save_IFS
9950 case $as_dir in #(((
9951 '') as_dir=./ ;;
9952 */) ;;
9953 *) as_dir=$as_dir/ ;;
9954 esac
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9957 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9959 break 2
9960 fi
9961 done
9962 done
9963 IFS=$as_save_IFS
9964
9965 fi
9966 fi
9967 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9968 if test -n "$ac_ct_NMEDIT"; then
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9970 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9971 else
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 printf "%s\n" "no" >&6; }
9974 fi
9975
9976 if test "x$ac_ct_NMEDIT" = x; then
9977 NMEDIT=":"
9978 else
9979 case $cross_compiling:$ac_tool_warned in
9980 yes:)
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9983 ac_tool_warned=yes ;;
9984 esac
9985 NMEDIT=$ac_ct_NMEDIT
9986 fi
9987 else
9988 NMEDIT="$ac_cv_prog_NMEDIT"
9989 fi
9990
9991 if test -n "$ac_tool_prefix"; then
9992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9993 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 printf %s "checking for $ac_word... " >&6; }
9996 if test ${ac_cv_prog_LIPO+y}
9997 then :
9998 printf %s "(cached) " >&6
9999 else $as_nop
10000 if test -n "$LIPO"; then
10001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 case $as_dir in #(((
10008 '') as_dir=./ ;;
10009 */) ;;
10010 *) as_dir=$as_dir/ ;;
10011 esac
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018 done
10019 done
10020 IFS=$as_save_IFS
10021
10022 fi
10023 fi
10024 LIPO=$ac_cv_prog_LIPO
10025 if test -n "$LIPO"; then
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10027 printf "%s\n" "$LIPO" >&6; }
10028 else
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 printf "%s\n" "no" >&6; }
10031 fi
10032
10033
10034 fi
10035 if test -z "$ac_cv_prog_LIPO"; then
10036 ac_ct_LIPO=$LIPO
10037 # Extract the first word of "lipo", so it can be a program name with args.
10038 set dummy lipo; ac_word=$2
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 printf %s "checking for $ac_word... " >&6; }
10041 if test ${ac_cv_prog_ac_ct_LIPO+y}
10042 then :
10043 printf %s "(cached) " >&6
10044 else $as_nop
10045 if test -n "$ac_ct_LIPO"; then
10046 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10047 else
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10050 do
10051 IFS=$as_save_IFS
10052 case $as_dir in #(((
10053 '') as_dir=./ ;;
10054 */) ;;
10055 *) as_dir=$as_dir/ ;;
10056 esac
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10059 ac_cv_prog_ac_ct_LIPO="lipo"
10060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10061 break 2
10062 fi
10063 done
10064 done
10065 IFS=$as_save_IFS
10066
10067 fi
10068 fi
10069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10070 if test -n "$ac_ct_LIPO"; then
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10072 printf "%s\n" "$ac_ct_LIPO" >&6; }
10073 else
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 printf "%s\n" "no" >&6; }
10076 fi
10077
10078 if test "x$ac_ct_LIPO" = x; then
10079 LIPO=":"
10080 else
10081 case $cross_compiling:$ac_tool_warned in
10082 yes:)
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10085 ac_tool_warned=yes ;;
10086 esac
10087 LIPO=$ac_ct_LIPO
10088 fi
10089 else
10090 LIPO="$ac_cv_prog_LIPO"
10091 fi
10092
10093 if test -n "$ac_tool_prefix"; then
10094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10095 set dummy ${ac_tool_prefix}otool; ac_word=$2
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 printf %s "checking for $ac_word... " >&6; }
10098 if test ${ac_cv_prog_OTOOL+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else $as_nop
10102 if test -n "$OTOOL"; then
10103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108 IFS=$as_save_IFS
10109 case $as_dir in #(((
10110 '') as_dir=./ ;;
10111 */) ;;
10112 *) as_dir=$as_dir/ ;;
10113 esac
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120 done
10121 done
10122 IFS=$as_save_IFS
10123
10124 fi
10125 fi
10126 OTOOL=$ac_cv_prog_OTOOL
10127 if test -n "$OTOOL"; then
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10129 printf "%s\n" "$OTOOL" >&6; }
10130 else
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 printf "%s\n" "no" >&6; }
10133 fi
10134
10135
10136 fi
10137 if test -z "$ac_cv_prog_OTOOL"; then
10138 ac_ct_OTOOL=$OTOOL
10139 # Extract the first word of "otool", so it can be a program name with args.
10140 set dummy otool; ac_word=$2
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 printf %s "checking for $ac_word... " >&6; }
10143 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10144 then :
10145 printf %s "(cached) " >&6
10146 else $as_nop
10147 if test -n "$ac_ct_OTOOL"; then
10148 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10149 else
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10152 do
10153 IFS=$as_save_IFS
10154 case $as_dir in #(((
10155 '') as_dir=./ ;;
10156 */) ;;
10157 *) as_dir=$as_dir/ ;;
10158 esac
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_ac_ct_OTOOL="otool"
10162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10163 break 2
10164 fi
10165 done
10166 done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10172 if test -n "$ac_ct_OTOOL"; then
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10174 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10175 else
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 printf "%s\n" "no" >&6; }
10178 fi
10179
10180 if test "x$ac_ct_OTOOL" = x; then
10181 OTOOL=":"
10182 else
10183 case $cross_compiling:$ac_tool_warned in
10184 yes:)
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10187 ac_tool_warned=yes ;;
10188 esac
10189 OTOOL=$ac_ct_OTOOL
10190 fi
10191 else
10192 OTOOL="$ac_cv_prog_OTOOL"
10193 fi
10194
10195 if test -n "$ac_tool_prefix"; then
10196 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10197 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 printf %s "checking for $ac_word... " >&6; }
10200 if test ${ac_cv_prog_OTOOL64+y}
10201 then :
10202 printf %s "(cached) " >&6
10203 else $as_nop
10204 if test -n "$OTOOL64"; then
10205 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 case $as_dir in #(((
10212 '') as_dir=./ ;;
10213 */) ;;
10214 *) as_dir=$as_dir/ ;;
10215 esac
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10218 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10220 break 2
10221 fi
10222 done
10223 done
10224 IFS=$as_save_IFS
10225
10226 fi
10227 fi
10228 OTOOL64=$ac_cv_prog_OTOOL64
10229 if test -n "$OTOOL64"; then
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10231 printf "%s\n" "$OTOOL64" >&6; }
10232 else
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 printf "%s\n" "no" >&6; }
10235 fi
10236
10237
10238 fi
10239 if test -z "$ac_cv_prog_OTOOL64"; then
10240 ac_ct_OTOOL64=$OTOOL64
10241 # Extract the first word of "otool64", so it can be a program name with args.
10242 set dummy otool64; ac_word=$2
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 printf %s "checking for $ac_word... " >&6; }
10245 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10246 then :
10247 printf %s "(cached) " >&6
10248 else $as_nop
10249 if test -n "$ac_ct_OTOOL64"; then
10250 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10251 else
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255 IFS=$as_save_IFS
10256 case $as_dir in #(((
10257 '') as_dir=./ ;;
10258 */) ;;
10259 *) as_dir=$as_dir/ ;;
10260 esac
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10263 ac_cv_prog_ac_ct_OTOOL64="otool64"
10264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10265 break 2
10266 fi
10267 done
10268 done
10269 IFS=$as_save_IFS
10270
10271 fi
10272 fi
10273 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10274 if test -n "$ac_ct_OTOOL64"; then
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10276 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10277 else
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 printf "%s\n" "no" >&6; }
10280 fi
10281
10282 if test "x$ac_ct_OTOOL64" = x; then
10283 OTOOL64=":"
10284 else
10285 case $cross_compiling:$ac_tool_warned in
10286 yes:)
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10289 ac_tool_warned=yes ;;
10290 esac
10291 OTOOL64=$ac_ct_OTOOL64
10292 fi
10293 else
10294 OTOOL64="$ac_cv_prog_OTOOL64"
10295 fi
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10324 printf %s "checking for -single_module linker flag... " >&6; }
10325 if test ${lt_cv_apple_cc_single_mod+y}
10326 then :
10327 printf %s "(cached) " >&6
10328 else $as_nop
10329 lt_cv_apple_cc_single_mod=no
10330 if test -z "$LT_MULTI_MODULE"; then
10331 # By default we will add the -single_module flag. You can override
10332 # by either setting the environment variable LT_MULTI_MODULE
10333 # non-empty at configure time, or by adding -multi_module to the
10334 # link flags.
10335 rm -rf libconftest.dylib*
10336 echo "int foo(void){return 1;}" > conftest.c
10337 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10338 -dynamiclib -Wl,-single_module conftest.c" >&5
10339 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10340 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10341 _lt_result=$?
10342 # If there is a non-empty error log, and "single_module"
10343 # appears in it, assume the flag caused a linker warning
10344 if test -s conftest.err && $GREP single_module conftest.err; then
10345 cat conftest.err >&5
10346 # Otherwise, if the output was created with a 0 exit code from
10347 # the compiler, it worked.
10348 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10349 lt_cv_apple_cc_single_mod=yes
10350 else
10351 cat conftest.err >&5
10352 fi
10353 rm -rf libconftest.dylib*
10354 rm -f conftest.*
10355 fi
10356 fi
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10358 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10359
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10361 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10362 if test ${lt_cv_ld_exported_symbols_list+y}
10363 then :
10364 printf %s "(cached) " >&6
10365 else $as_nop
10366 lt_cv_ld_exported_symbols_list=no
10367 save_LDFLAGS=$LDFLAGS
10368 echo "_main" > conftest.sym
10369 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372
10373 int
10374 main (void)
10375 {
10376
10377 ;
10378 return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"
10382 then :
10383 lt_cv_ld_exported_symbols_list=yes
10384 else $as_nop
10385 lt_cv_ld_exported_symbols_list=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10388 conftest$ac_exeext conftest.$ac_ext
10389 LDFLAGS=$save_LDFLAGS
10390
10391 fi
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10393 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10394
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10396 printf %s "checking for -force_load linker flag... " >&6; }
10397 if test ${lt_cv_ld_force_load+y}
10398 then :
10399 printf %s "(cached) " >&6
10400 else $as_nop
10401 lt_cv_ld_force_load=no
10402 cat > conftest.c << _LT_EOF
10403 int forced_loaded() { return 2;}
10404 _LT_EOF
10405 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10406 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10407 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10408 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10409 echo "$RANLIB libconftest.a" >&5
10410 $RANLIB libconftest.a 2>&5
10411 cat > conftest.c << _LT_EOF
10412 int main() { return 0;}
10413 _LT_EOF
10414 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10415 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10416 _lt_result=$?
10417 if test -s conftest.err && $GREP force_load conftest.err; then
10418 cat conftest.err >&5
10419 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10420 lt_cv_ld_force_load=yes
10421 else
10422 cat conftest.err >&5
10423 fi
10424 rm -f conftest.err libconftest.a conftest conftest.c
10425 rm -rf conftest.dSYM
10426
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10429 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10430 case $host_os in
10431 rhapsody* | darwin1.[012])
10432 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10433 darwin1.*)
10434 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10435 darwin*)
10436 case $MACOSX_DEPLOYMENT_TARGET,$host in
10437 10.[012],*|,*powerpc*-darwin[5-8]*)
10438 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10439 *)
10440 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10441 esac
10442 ;;
10443 esac
10444 if test yes = "$lt_cv_apple_cc_single_mod"; then
10445 _lt_dar_single_mod='$single_module'
10446 fi
10447 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10448 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10449 else
10450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10451 fi
10452 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10453 _lt_dsymutil='~$DSYMUTIL $lib || :'
10454 else
10455 _lt_dsymutil=
10456 fi
10457 ;;
10458 esac
10459
10460 # func_munge_path_list VARIABLE PATH
10461 # -----------------------------------
10462 # VARIABLE is name of variable containing _space_ separated list of
10463 # directories to be munged by the contents of PATH, which is string
10464 # having a format:
10465 # "DIR[:DIR]:"
10466 # string "DIR[ DIR]" will be prepended to VARIABLE
10467 # ":DIR[:DIR]"
10468 # string "DIR[ DIR]" will be appended to VARIABLE
10469 # "DIRP[:DIRP]::[DIRA:]DIRA"
10470 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10471 # "DIRA[ DIRA]" will be appended to VARIABLE
10472 # "DIR[:DIR]"
10473 # VARIABLE will be replaced by "DIR[ DIR]"
10474 func_munge_path_list ()
10475 {
10476 case x$2 in
10477 x)
10478 ;;
10479 *:)
10480 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10481 ;;
10482 x:*)
10483 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10484 ;;
10485 *::*)
10486 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10487 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10488 ;;
10489 *)
10490 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10491 ;;
10492 esac
10493 }
10494
10495 ac_header= ac_cache=
10496 for ac_item in $ac_header_c_list
10497 do
10498 if test $ac_cache; then
10499 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10500 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10501 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10502 fi
10503 ac_header= ac_cache=
10504 elif test $ac_header; then
10505 ac_cache=$ac_item
10506 else
10507 ac_header=$ac_item
10508 fi
10509 done
10510
10511
10512
10513
10514
10515
10516
10517
10518 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10519 then :
10520
10521 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10522
10523 fi
10524 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10525 "
10526 if test "x$ac_cv_header_dlfcn_h" = xyes
10527 then :
10528 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10529
10530 fi
10531
10532
10533
10534 func_stripname_cnf ()
10535 {
10536 case $2 in
10537 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10538 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10539 esac
10540 } # func_stripname_cnf
10541
10542
10543
10544
10545
10546 # Set options
10547 enable_win32_dll=yes
10548
10549 case $host in
10550 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10551 if test -n "$ac_tool_prefix"; then
10552 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10553 set dummy ${ac_tool_prefix}as; ac_word=$2
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 printf %s "checking for $ac_word... " >&6; }
10556 if test ${ac_cv_prog_AS+y}
10557 then :
10558 printf %s "(cached) " >&6
10559 else $as_nop
10560 if test -n "$AS"; then
10561 ac_cv_prog_AS="$AS" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566 IFS=$as_save_IFS
10567 case $as_dir in #(((
10568 '') as_dir=./ ;;
10569 */) ;;
10570 *) as_dir=$as_dir/ ;;
10571 esac
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10574 ac_cv_prog_AS="${ac_tool_prefix}as"
10575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10576 break 2
10577 fi
10578 done
10579 done
10580 IFS=$as_save_IFS
10581
10582 fi
10583 fi
10584 AS=$ac_cv_prog_AS
10585 if test -n "$AS"; then
10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10587 printf "%s\n" "$AS" >&6; }
10588 else
10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 printf "%s\n" "no" >&6; }
10591 fi
10592
10593
10594 fi
10595 if test -z "$ac_cv_prog_AS"; then
10596 ac_ct_AS=$AS
10597 # Extract the first word of "as", so it can be a program name with args.
10598 set dummy as; ac_word=$2
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 printf %s "checking for $ac_word... " >&6; }
10601 if test ${ac_cv_prog_ac_ct_AS+y}
10602 then :
10603 printf %s "(cached) " >&6
10604 else $as_nop
10605 if test -n "$ac_ct_AS"; then
10606 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 case $as_dir in #(((
10613 '') as_dir=./ ;;
10614 */) ;;
10615 *) as_dir=$as_dir/ ;;
10616 esac
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10619 ac_cv_prog_ac_ct_AS="as"
10620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623 done
10624 done
10625 IFS=$as_save_IFS
10626
10627 fi
10628 fi
10629 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10630 if test -n "$ac_ct_AS"; then
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10632 printf "%s\n" "$ac_ct_AS" >&6; }
10633 else
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 printf "%s\n" "no" >&6; }
10636 fi
10637
10638 if test "x$ac_ct_AS" = x; then
10639 AS="false"
10640 else
10641 case $cross_compiling:$ac_tool_warned in
10642 yes:)
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10644 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10645 ac_tool_warned=yes ;;
10646 esac
10647 AS=$ac_ct_AS
10648 fi
10649 else
10650 AS="$ac_cv_prog_AS"
10651 fi
10652
10653 if test -n "$ac_tool_prefix"; then
10654 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10655 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657 printf %s "checking for $ac_word... " >&6; }
10658 if test ${ac_cv_prog_DLLTOOL+y}
10659 then :
10660 printf %s "(cached) " >&6
10661 else $as_nop
10662 if test -n "$DLLTOOL"; then
10663 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10664 else
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668 IFS=$as_save_IFS
10669 case $as_dir in #(((
10670 '') as_dir=./ ;;
10671 */) ;;
10672 *) as_dir=$as_dir/ ;;
10673 esac
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680 done
10681 done
10682 IFS=$as_save_IFS
10683
10684 fi
10685 fi
10686 DLLTOOL=$ac_cv_prog_DLLTOOL
10687 if test -n "$DLLTOOL"; then
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10689 printf "%s\n" "$DLLTOOL" >&6; }
10690 else
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 printf "%s\n" "no" >&6; }
10693 fi
10694
10695
10696 fi
10697 if test -z "$ac_cv_prog_DLLTOOL"; then
10698 ac_ct_DLLTOOL=$DLLTOOL
10699 # Extract the first word of "dlltool", so it can be a program name with args.
10700 set dummy dlltool; ac_word=$2
10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702 printf %s "checking for $ac_word... " >&6; }
10703 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10704 then :
10705 printf %s "(cached) " >&6
10706 else $as_nop
10707 if test -n "$ac_ct_DLLTOOL"; then
10708 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713 IFS=$as_save_IFS
10714 case $as_dir in #(((
10715 '') as_dir=./ ;;
10716 */) ;;
10717 *) as_dir=$as_dir/ ;;
10718 esac
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725 done
10726 done
10727 IFS=$as_save_IFS
10728
10729 fi
10730 fi
10731 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10732 if test -n "$ac_ct_DLLTOOL"; then
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10734 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10735 else
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 printf "%s\n" "no" >&6; }
10738 fi
10739
10740 if test "x$ac_ct_DLLTOOL" = x; then
10741 DLLTOOL="false"
10742 else
10743 case $cross_compiling:$ac_tool_warned in
10744 yes:)
10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10747 ac_tool_warned=yes ;;
10748 esac
10749 DLLTOOL=$ac_ct_DLLTOOL
10750 fi
10751 else
10752 DLLTOOL="$ac_cv_prog_DLLTOOL"
10753 fi
10754
10755 if test -n "$ac_tool_prefix"; then
10756 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10757 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 printf %s "checking for $ac_word... " >&6; }
10760 if test ${ac_cv_prog_OBJDUMP+y}
10761 then :
10762 printf %s "(cached) " >&6
10763 else $as_nop
10764 if test -n "$OBJDUMP"; then
10765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10766 else
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10769 do
10770 IFS=$as_save_IFS
10771 case $as_dir in #(((
10772 '') as_dir=./ ;;
10773 */) ;;
10774 *) as_dir=$as_dir/ ;;
10775 esac
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782 done
10783 done
10784 IFS=$as_save_IFS
10785
10786 fi
10787 fi
10788 OBJDUMP=$ac_cv_prog_OBJDUMP
10789 if test -n "$OBJDUMP"; then
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10791 printf "%s\n" "$OBJDUMP" >&6; }
10792 else
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 printf "%s\n" "no" >&6; }
10795 fi
10796
10797
10798 fi
10799 if test -z "$ac_cv_prog_OBJDUMP"; then
10800 ac_ct_OBJDUMP=$OBJDUMP
10801 # Extract the first word of "objdump", so it can be a program name with args.
10802 set dummy objdump; ac_word=$2
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 printf %s "checking for $ac_word... " >&6; }
10805 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10806 then :
10807 printf %s "(cached) " >&6
10808 else $as_nop
10809 if test -n "$ac_ct_OBJDUMP"; then
10810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10811 else
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10814 do
10815 IFS=$as_save_IFS
10816 case $as_dir in #(((
10817 '') as_dir=./ ;;
10818 */) ;;
10819 *) as_dir=$as_dir/ ;;
10820 esac
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827 done
10828 done
10829 IFS=$as_save_IFS
10830
10831 fi
10832 fi
10833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10834 if test -n "$ac_ct_OBJDUMP"; then
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10836 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10837 else
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 printf "%s\n" "no" >&6; }
10840 fi
10841
10842 if test "x$ac_ct_OBJDUMP" = x; then
10843 OBJDUMP="false"
10844 else
10845 case $cross_compiling:$ac_tool_warned in
10846 yes:)
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10849 ac_tool_warned=yes ;;
10850 esac
10851 OBJDUMP=$ac_ct_OBJDUMP
10852 fi
10853 else
10854 OBJDUMP="$ac_cv_prog_OBJDUMP"
10855 fi
10856
10857 ;;
10858 esac
10859
10860 test -z "$AS" && AS=as
10861
10862
10863
10864
10865
10866 test -z "$DLLTOOL" && DLLTOOL=dlltool
10867
10868
10869
10870
10871
10872 test -z "$OBJDUMP" && OBJDUMP=objdump
10873
10874
10875
10876
10877 # Check whether --enable-static was given.
10878 if test ${enable_static+y}
10879 then :
10880 enableval=$enable_static; p=${PACKAGE-default}
10881 case $enableval in
10882 yes) enable_static=yes ;;
10883 no) enable_static=no ;;
10884 *)
10885 enable_static=no
10886 # Look at the argument we got. We use all the common list separators.
10887 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10888 for pkg in $enableval; do
10889 IFS=$lt_save_ifs
10890 if test "X$pkg" = "X$p"; then
10891 enable_static=yes
10892 fi
10893 done
10894 IFS=$lt_save_ifs
10895 ;;
10896 esac
10897 else $as_nop
10898 enable_static=no
10899 fi
10900
10901
10902
10903
10904
10905
10906
10907
10908 # Check whether --with-pic was given.
10909 if test ${with_pic+y}
10910 then :
10911 withval=$with_pic; lt_p=${PACKAGE-default}
10912 case $withval in
10913 yes|no) pic_mode=$withval ;;
10914 *)
10915 pic_mode=default
10916 # Look at the argument we got. We use all the common list separators.
10917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10918 for lt_pkg in $withval; do
10919 IFS=$lt_save_ifs
10920 if test "X$lt_pkg" = "X$lt_p"; then
10921 pic_mode=yes
10922 fi
10923 done
10924 IFS=$lt_save_ifs
10925 ;;
10926 esac
10927 else $as_nop
10928 pic_mode=yes
10929 fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939 enable_dlopen=no
10940
10941
10942
10943 # Check whether --enable-shared was given.
10944 if test ${enable_shared+y}
10945 then :
10946 enableval=$enable_shared; p=${PACKAGE-default}
10947 case $enableval in
10948 yes) enable_shared=yes ;;
10949 no) enable_shared=no ;;
10950 *)
10951 enable_shared=no
10952 # Look at the argument we got. We use all the common list separators.
10953 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10954 for pkg in $enableval; do
10955 IFS=$lt_save_ifs
10956 if test "X$pkg" = "X$p"; then
10957 enable_shared=yes
10958 fi
10959 done
10960 IFS=$lt_save_ifs
10961 ;;
10962 esac
10963 else $as_nop
10964 enable_shared=yes
10965 fi
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 # Check whether --enable-fast-install was given.
10978 if test ${enable_fast_install+y}
10979 then :
10980 enableval=$enable_fast_install; p=${PACKAGE-default}
10981 case $enableval in
10982 yes) enable_fast_install=yes ;;
10983 no) enable_fast_install=no ;;
10984 *)
10985 enable_fast_install=no
10986 # Look at the argument we got. We use all the common list separators.
10987 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10988 for pkg in $enableval; do
10989 IFS=$lt_save_ifs
10990 if test "X$pkg" = "X$p"; then
10991 enable_fast_install=yes
10992 fi
10993 done
10994 IFS=$lt_save_ifs
10995 ;;
10996 esac
10997 else $as_nop
10998 enable_fast_install=yes
10999 fi
11000
11001
11002
11003
11004
11005
11006
11007
11008 shared_archive_member_spec=
11009 case $host,$enable_shared in
11010 power*-*-aix[5-9]*,yes)
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11012 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11013
11014 # Check whether --with-aix-soname was given.
11015 if test ${with_aix_soname+y}
11016 then :
11017 withval=$with_aix_soname; case $withval in
11018 aix|svr4|both)
11019 ;;
11020 *)
11021 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11022 ;;
11023 esac
11024 lt_cv_with_aix_soname=$with_aix_soname
11025 else $as_nop
11026 if test ${lt_cv_with_aix_soname+y}
11027 then :
11028 printf %s "(cached) " >&6
11029 else $as_nop
11030 lt_cv_with_aix_soname=aix
11031 fi
11032
11033 with_aix_soname=$lt_cv_with_aix_soname
11034 fi
11035
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11037 printf "%s\n" "$with_aix_soname" >&6; }
11038 if test aix != "$with_aix_soname"; then
11039 # For the AIX way of multilib, we name the shared archive member
11040 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11041 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11042 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11043 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11044 if test 64 = "${OBJECT_MODE-32}"; then
11045 shared_archive_member_spec=shr_64
11046 else
11047 shared_archive_member_spec=shr
11048 fi
11049 fi
11050 ;;
11051 *)
11052 with_aix_soname=aix
11053 ;;
11054 esac
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 # This can be used to rebuild libtool when needed
11066 LIBTOOL_DEPS=$ltmain
11067
11068 # Always use our own libtool.
11069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100 test -z "$LN_S" && LN_S="ln -s"
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 if test -n "${ZSH_VERSION+set}"; then
11116 setopt NO_GLOB_SUBST
11117 fi
11118
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11120 printf %s "checking for objdir... " >&6; }
11121 if test ${lt_cv_objdir+y}
11122 then :
11123 printf %s "(cached) " >&6
11124 else $as_nop
11125 rm -f .libs 2>/dev/null
11126 mkdir .libs 2>/dev/null
11127 if test -d .libs; then
11128 lt_cv_objdir=.libs
11129 else
11130 # MS-DOS does not allow filenames that begin with a dot.
11131 lt_cv_objdir=_libs
11132 fi
11133 rmdir .libs 2>/dev/null
11134 fi
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11136 printf "%s\n" "$lt_cv_objdir" >&6; }
11137 objdir=$lt_cv_objdir
11138
11139
11140
11141
11142
11143 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11144
11145
11146
11147
11148 case $host_os in
11149 aix3*)
11150 # AIX sometimes has problems with the GCC collect2 program. For some
11151 # reason, if we set the COLLECT_NAMES environment variable, the problems
11152 # vanish in a puff of smoke.
11153 if test set != "${COLLECT_NAMES+set}"; then
11154 COLLECT_NAMES=
11155 export COLLECT_NAMES
11156 fi
11157 ;;
11158 esac
11159
11160 # Global variables:
11161 ofile=libtool
11162 can_build_shared=yes
11163
11164 # All known linkers require a '.a' archive for static linking (except MSVC and
11165 # ICC, which need '.lib').
11166 libext=a
11167
11168 with_gnu_ld=$lt_cv_prog_gnu_ld
11169
11170 old_CC=$CC
11171 old_CFLAGS=$CFLAGS
11172
11173 # Set sane defaults for various variables
11174 test -z "$CC" && CC=cc
11175 test -z "$LTCC" && LTCC=$CC
11176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11177 test -z "$LD" && LD=ld
11178 test -z "$ac_objext" && ac_objext=o
11179
11180 func_cc_basename $compiler
11181 cc_basename=$func_cc_basename_result
11182
11183
11184 # Only perform the check for file, if the check method requires it
11185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11186 case $deplibs_check_method in
11187 file_magic*)
11188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11190 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11191 if test ${lt_cv_path_MAGIC_CMD+y}
11192 then :
11193 printf %s "(cached) " >&6
11194 else $as_nop
11195 case $MAGIC_CMD in
11196 [\\/*] | ?:[\\/]*)
11197 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11198 ;;
11199 *)
11200 lt_save_MAGIC_CMD=$MAGIC_CMD
11201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11203 for ac_dir in $ac_dummy; do
11204 IFS=$lt_save_ifs
11205 test -z "$ac_dir" && ac_dir=.
11206 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11207 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11208 if test -n "$file_magic_test_file"; then
11209 case $deplibs_check_method in
11210 "file_magic "*)
11211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11212 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11214 $EGREP "$file_magic_regex" > /dev/null; then
11215 :
11216 else
11217 cat <<_LT_EOF 1>&2
11218
11219 *** Warning: the command libtool uses to detect shared libraries,
11220 *** $file_magic_cmd, produces output that libtool cannot recognize.
11221 *** The result is that libtool may fail to recognize shared libraries
11222 *** as such. This will affect the creation of libtool libraries that
11223 *** depend on shared libraries, but programs linked with such libtool
11224 *** libraries will work regardless of this problem. Nevertheless, you
11225 *** may want to report the problem to your system manager and/or to
11226 *** [email protected]
11227
11228 _LT_EOF
11229 fi ;;
11230 esac
11231 fi
11232 break
11233 fi
11234 done
11235 IFS=$lt_save_ifs
11236 MAGIC_CMD=$lt_save_MAGIC_CMD
11237 ;;
11238 esac
11239 fi
11240
11241 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11242 if test -n "$MAGIC_CMD"; then
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11244 printf "%s\n" "$MAGIC_CMD" >&6; }
11245 else
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 printf "%s\n" "no" >&6; }
11248 fi
11249
11250
11251
11252
11253
11254 if test -z "$lt_cv_path_MAGIC_CMD"; then
11255 if test -n "$ac_tool_prefix"; then
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11257 printf %s "checking for file... " >&6; }
11258 if test ${lt_cv_path_MAGIC_CMD+y}
11259 then :
11260 printf %s "(cached) " >&6
11261 else $as_nop
11262 case $MAGIC_CMD in
11263 [\\/*] | ?:[\\/]*)
11264 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11265 ;;
11266 *)
11267 lt_save_MAGIC_CMD=$MAGIC_CMD
11268 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11270 for ac_dir in $ac_dummy; do
11271 IFS=$lt_save_ifs
11272 test -z "$ac_dir" && ac_dir=.
11273 if test -f "$ac_dir/file"; then
11274 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11275 if test -n "$file_magic_test_file"; then
11276 case $deplibs_check_method in
11277 "file_magic "*)
11278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11279 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11281 $EGREP "$file_magic_regex" > /dev/null; then
11282 :
11283 else
11284 cat <<_LT_EOF 1>&2
11285
11286 *** Warning: the command libtool uses to detect shared libraries,
11287 *** $file_magic_cmd, produces output that libtool cannot recognize.
11288 *** The result is that libtool may fail to recognize shared libraries
11289 *** as such. This will affect the creation of libtool libraries that
11290 *** depend on shared libraries, but programs linked with such libtool
11291 *** libraries will work regardless of this problem. Nevertheless, you
11292 *** may want to report the problem to your system manager and/or to
11293 *** [email protected]
11294
11295 _LT_EOF
11296 fi ;;
11297 esac
11298 fi
11299 break
11300 fi
11301 done
11302 IFS=$lt_save_ifs
11303 MAGIC_CMD=$lt_save_MAGIC_CMD
11304 ;;
11305 esac
11306 fi
11307
11308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11309 if test -n "$MAGIC_CMD"; then
11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11311 printf "%s\n" "$MAGIC_CMD" >&6; }
11312 else
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 printf "%s\n" "no" >&6; }
11315 fi
11316
11317
11318 else
11319 MAGIC_CMD=:
11320 fi
11321 fi
11322
11323 fi
11324 ;;
11325 esac
11326
11327 # Use C for the default configuration in the libtool script
11328
11329 lt_save_CC=$CC
11330 ac_ext=c
11331 ac_cpp='$CPP $CPPFLAGS'
11332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11335
11336
11337 # Source file extension for C test sources.
11338 ac_ext=c
11339
11340 # Object file extension for compiled C test sources.
11341 objext=o
11342 objext=$objext
11343
11344 # Code to be used in simple compile tests
11345 lt_simple_compile_test_code="int some_variable = 0;"
11346
11347 # Code to be used in simple link tests
11348 lt_simple_link_test_code='int main(){return(0);}'
11349
11350
11351
11352
11353
11354
11355
11356 # If no C compiler was specified, use CC.
11357 LTCC=${LTCC-"$CC"}
11358
11359 # If no C compiler flags were specified, use CFLAGS.
11360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11361
11362 # Allow CC to be a program name with arguments.
11363 compiler=$CC
11364
11365 # Save the default compiler, since it gets overwritten when the other
11366 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11367 compiler_DEFAULT=$CC
11368
11369 # save warnings/boilerplate of simple test code
11370 ac_outfile=conftest.$ac_objext
11371 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11373 _lt_compiler_boilerplate=`cat conftest.err`
11374 $RM conftest*
11375
11376 ac_outfile=conftest.$ac_objext
11377 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11379 _lt_linker_boilerplate=`cat conftest.err`
11380 $RM -r conftest*
11381
11382
11383 ## CAVEAT EMPTOR:
11384 ## There is no encapsulation within the following macros, do not change
11385 ## the running order or otherwise move them around unless you know exactly
11386 ## what you are doing...
11387 if test -n "$compiler"; then
11388
11389 lt_prog_compiler_no_builtin_flag=
11390
11391 if test yes = "$GCC"; then
11392 case $cc_basename in
11393 nvcc*)
11394 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11395 *)
11396 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11397 esac
11398
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11400 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11401 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11402 then :
11403 printf %s "(cached) " >&6
11404 else $as_nop
11405 lt_cv_prog_compiler_rtti_exceptions=no
11406 ac_outfile=conftest.$ac_objext
11407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11408 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11409 # Insert the option either (1) after the last *FLAGS variable, or
11410 # (2) before a word containing "conftest.", or (3) at the end.
11411 # Note that $ac_compile itself does not contain backslashes and begins
11412 # with a dollar sign (not a hyphen), so the echo should work correctly.
11413 # The option is referenced via a variable to avoid confusing sed.
11414 lt_compile=`echo "$ac_compile" | $SED \
11415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11417 -e 's:$: $lt_compiler_flag:'`
11418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11419 (eval "$lt_compile" 2>conftest.err)
11420 ac_status=$?
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 if (exit $ac_status) && test -s "$ac_outfile"; then
11424 # The compiler can only warn and ignore the option if not recognized
11425 # So say no if there are warnings other than the usual output.
11426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11429 lt_cv_prog_compiler_rtti_exceptions=yes
11430 fi
11431 fi
11432 $RM conftest*
11433
11434 fi
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11436 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11437
11438 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11440 else
11441 :
11442 fi
11443
11444 fi
11445
11446
11447
11448
11449
11450
11451 lt_prog_compiler_wl=
11452 lt_prog_compiler_pic=
11453 lt_prog_compiler_static=
11454
11455
11456 if test yes = "$GCC"; then
11457 lt_prog_compiler_wl='-Wl,'
11458 lt_prog_compiler_static='-static'
11459
11460 case $host_os in
11461 aix*)
11462 # All AIX code is PIC.
11463 if test ia64 = "$host_cpu"; then
11464 # AIX 5 now supports IA64 processor
11465 lt_prog_compiler_static='-Bstatic'
11466 fi
11467 lt_prog_compiler_pic='-fPIC'
11468 ;;
11469
11470 amigaos*)
11471 case $host_cpu in
11472 powerpc)
11473 # see comment about AmigaOS4 .so support
11474 lt_prog_compiler_pic='-fPIC'
11475 ;;
11476 m68k)
11477 # FIXME: we need at least 68020 code to build shared libraries, but
11478 # adding the '-m68020' flag to GCC prevents building anything better,
11479 # like '-m68040'.
11480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11481 ;;
11482 esac
11483 ;;
11484
11485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11486 # PIC is the default for these OSes.
11487 ;;
11488
11489 mingw* | cygwin* | pw32* | os2* | cegcc*)
11490 # This hack is so that the source file can tell whether it is being
11491 # built for inclusion in a dll (and should export symbols for example).
11492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11493 # (--disable-auto-import) libraries
11494 lt_prog_compiler_pic='-DDLL_EXPORT'
11495 case $host_os in
11496 os2*)
11497 lt_prog_compiler_static='$wl-static'
11498 ;;
11499 esac
11500 ;;
11501
11502 darwin* | rhapsody*)
11503 # PIC is the default on this platform
11504 # Common symbols not allowed in MH_DYLIB files
11505 lt_prog_compiler_pic='-fno-common'
11506 ;;
11507
11508 haiku*)
11509 # PIC is the default for Haiku.
11510 # The "-static" flag exists, but is broken.
11511 lt_prog_compiler_static=
11512 ;;
11513
11514 hpux*)
11515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11517 # sets the default TLS model and affects inlining.
11518 case $host_cpu in
11519 hppa*64*)
11520 # +Z the default
11521 ;;
11522 *)
11523 lt_prog_compiler_pic='-fPIC'
11524 ;;
11525 esac
11526 ;;
11527
11528 interix[3-9]*)
11529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11530 # Instead, we relocate shared libraries at runtime.
11531 ;;
11532
11533 msdosdjgpp*)
11534 # Just because we use GCC doesn't mean we suddenly get shared libraries
11535 # on systems that don't support them.
11536 lt_prog_compiler_can_build_shared=no
11537 enable_shared=no
11538 ;;
11539
11540 *nto* | *qnx*)
11541 # QNX uses GNU C++, but need to define -shared option too, otherwise
11542 # it will coredump.
11543 lt_prog_compiler_pic='-fPIC -shared'
11544 ;;
11545
11546 sysv4*MP*)
11547 if test -d /usr/nec; then
11548 lt_prog_compiler_pic=-Kconform_pic
11549 fi
11550 ;;
11551
11552 *)
11553 lt_prog_compiler_pic='-fPIC'
11554 ;;
11555 esac
11556
11557 case $cc_basename in
11558 nvcc*) # Cuda Compiler Driver 2.2
11559 lt_prog_compiler_wl='-Xlinker '
11560 if test -n "$lt_prog_compiler_pic"; then
11561 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11562 fi
11563 ;;
11564 esac
11565 else
11566 # PORTME Check for flag to pass linker flags through the system compiler.
11567 case $host_os in
11568 aix*)
11569 lt_prog_compiler_wl='-Wl,'
11570 if test ia64 = "$host_cpu"; then
11571 # AIX 5 now supports IA64 processor
11572 lt_prog_compiler_static='-Bstatic'
11573 else
11574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11575 fi
11576 ;;
11577
11578 darwin* | rhapsody*)
11579 # PIC is the default on this platform
11580 # Common symbols not allowed in MH_DYLIB files
11581 lt_prog_compiler_pic='-fno-common'
11582 case $cc_basename in
11583 nagfor*)
11584 # NAG Fortran compiler
11585 lt_prog_compiler_wl='-Wl,-Wl,,'
11586 lt_prog_compiler_pic='-PIC'
11587 lt_prog_compiler_static='-Bstatic'
11588 ;;
11589 esac
11590 ;;
11591
11592 mingw* | cygwin* | pw32* | os2* | cegcc*)
11593 # This hack is so that the source file can tell whether it is being
11594 # built for inclusion in a dll (and should export symbols for example).
11595 lt_prog_compiler_pic='-DDLL_EXPORT'
11596 case $host_os in
11597 os2*)
11598 lt_prog_compiler_static='$wl-static'
11599 ;;
11600 esac
11601 ;;
11602
11603 hpux9* | hpux10* | hpux11*)
11604 lt_prog_compiler_wl='-Wl,'
11605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11606 # not for PA HP-UX.
11607 case $host_cpu in
11608 hppa*64*|ia64*)
11609 # +Z the default
11610 ;;
11611 *)
11612 lt_prog_compiler_pic='+Z'
11613 ;;
11614 esac
11615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11616 lt_prog_compiler_static='$wl-a ${wl}archive'
11617 ;;
11618
11619 irix5* | irix6* | nonstopux*)
11620 lt_prog_compiler_wl='-Wl,'
11621 # PIC (with -KPIC) is the default.
11622 lt_prog_compiler_static='-non_shared'
11623 ;;
11624
11625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11626 case $cc_basename in
11627 # old Intel for x86_64, which still supported -KPIC.
11628 ecc*)
11629 lt_prog_compiler_wl='-Wl,'
11630 lt_prog_compiler_pic='-KPIC'
11631 lt_prog_compiler_static='-static'
11632 ;;
11633 # icc used to be incompatible with GCC.
11634 # ICC 10 doesn't accept -KPIC any more.
11635 icc* | ifort*)
11636 lt_prog_compiler_wl='-Wl,'
11637 lt_prog_compiler_pic='-fPIC'
11638 lt_prog_compiler_static='-static'
11639 ;;
11640 # Lahey Fortran 8.1.
11641 lf95*)
11642 lt_prog_compiler_wl='-Wl,'
11643 lt_prog_compiler_pic='--shared'
11644 lt_prog_compiler_static='--static'
11645 ;;
11646 nagfor*)
11647 # NAG Fortran compiler
11648 lt_prog_compiler_wl='-Wl,-Wl,,'
11649 lt_prog_compiler_pic='-PIC'
11650 lt_prog_compiler_static='-Bstatic'
11651 ;;
11652 tcc*)
11653 # Fabrice Bellard et al's Tiny C Compiler
11654 lt_prog_compiler_wl='-Wl,'
11655 lt_prog_compiler_pic='-fPIC'
11656 lt_prog_compiler_static='-static'
11657 ;;
11658 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11659 # Portland Group compilers (*not* the Pentium gcc compiler,
11660 # which looks to be a dead project)
11661 lt_prog_compiler_wl='-Wl,'
11662 lt_prog_compiler_pic='-fpic'
11663 lt_prog_compiler_static='-Bstatic'
11664 ;;
11665 ccc*)
11666 lt_prog_compiler_wl='-Wl,'
11667 # All Alpha code is PIC.
11668 lt_prog_compiler_static='-non_shared'
11669 ;;
11670 xl* | bgxl* | bgf* | mpixl*)
11671 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11672 lt_prog_compiler_wl='-Wl,'
11673 lt_prog_compiler_pic='-qpic'
11674 lt_prog_compiler_static='-qstaticlink'
11675 ;;
11676 *)
11677 case `$CC -V 2>&1 | $SED 5q` in
11678 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11679 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11680 lt_prog_compiler_pic='-KPIC'
11681 lt_prog_compiler_static='-Bstatic'
11682 lt_prog_compiler_wl=''
11683 ;;
11684 *Sun\ F* | *Sun*Fortran*)
11685 lt_prog_compiler_pic='-KPIC'
11686 lt_prog_compiler_static='-Bstatic'
11687 lt_prog_compiler_wl='-Qoption ld '
11688 ;;
11689 *Sun\ C*)
11690 # Sun C 5.9
11691 lt_prog_compiler_pic='-KPIC'
11692 lt_prog_compiler_static='-Bstatic'
11693 lt_prog_compiler_wl='-Wl,'
11694 ;;
11695 *Intel*\ [CF]*Compiler*)
11696 lt_prog_compiler_wl='-Wl,'
11697 lt_prog_compiler_pic='-fPIC'
11698 lt_prog_compiler_static='-static'
11699 ;;
11700 *Portland\ Group*)
11701 lt_prog_compiler_wl='-Wl,'
11702 lt_prog_compiler_pic='-fpic'
11703 lt_prog_compiler_static='-Bstatic'
11704 ;;
11705 esac
11706 ;;
11707 esac
11708 ;;
11709
11710 newsos6)
11711 lt_prog_compiler_pic='-KPIC'
11712 lt_prog_compiler_static='-Bstatic'
11713 ;;
11714
11715 *nto* | *qnx*)
11716 # QNX uses GNU C++, but need to define -shared option too, otherwise
11717 # it will coredump.
11718 lt_prog_compiler_pic='-fPIC -shared'
11719 ;;
11720
11721 osf3* | osf4* | osf5*)
11722 lt_prog_compiler_wl='-Wl,'
11723 # All OSF/1 code is PIC.
11724 lt_prog_compiler_static='-non_shared'
11725 ;;
11726
11727 rdos*)
11728 lt_prog_compiler_static='-non_shared'
11729 ;;
11730
11731 solaris*)
11732 lt_prog_compiler_pic='-KPIC'
11733 lt_prog_compiler_static='-Bstatic'
11734 case $cc_basename in
11735 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11736 lt_prog_compiler_wl='-Qoption ld ';;
11737 *)
11738 lt_prog_compiler_wl='-Wl,';;
11739 esac
11740 ;;
11741
11742 sunos4*)
11743 lt_prog_compiler_wl='-Qoption ld '
11744 lt_prog_compiler_pic='-PIC'
11745 lt_prog_compiler_static='-Bstatic'
11746 ;;
11747
11748 sysv4 | sysv4.2uw2* | sysv4.3*)
11749 lt_prog_compiler_wl='-Wl,'
11750 lt_prog_compiler_pic='-KPIC'
11751 lt_prog_compiler_static='-Bstatic'
11752 ;;
11753
11754 sysv4*MP*)
11755 if test -d /usr/nec; then
11756 lt_prog_compiler_pic='-Kconform_pic'
11757 lt_prog_compiler_static='-Bstatic'
11758 fi
11759 ;;
11760
11761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-KPIC'
11764 lt_prog_compiler_static='-Bstatic'
11765 ;;
11766
11767 unicos*)
11768 lt_prog_compiler_wl='-Wl,'
11769 lt_prog_compiler_can_build_shared=no
11770 ;;
11771
11772 uts4*)
11773 lt_prog_compiler_pic='-pic'
11774 lt_prog_compiler_static='-Bstatic'
11775 ;;
11776
11777 *)
11778 lt_prog_compiler_can_build_shared=no
11779 ;;
11780 esac
11781 fi
11782
11783 case $host_os in
11784 # For platforms that do not support PIC, -DPIC is meaningless:
11785 *djgpp*)
11786 lt_prog_compiler_pic=
11787 ;;
11788 *)
11789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11790 ;;
11791 esac
11792
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11794 printf %s "checking for $compiler option to produce PIC... " >&6; }
11795 if test ${lt_cv_prog_compiler_pic+y}
11796 then :
11797 printf %s "(cached) " >&6
11798 else $as_nop
11799 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11800 fi
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11802 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11803 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11804
11805 #
11806 # Check to make sure the PIC flag actually works.
11807 #
11808 if test -n "$lt_prog_compiler_pic"; then
11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11810 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11811 if test ${lt_cv_prog_compiler_pic_works+y}
11812 then :
11813 printf %s "(cached) " >&6
11814 else $as_nop
11815 lt_cv_prog_compiler_pic_works=no
11816 ac_outfile=conftest.$ac_objext
11817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11818 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11819 # Insert the option either (1) after the last *FLAGS variable, or
11820 # (2) before a word containing "conftest.", or (3) at the end.
11821 # Note that $ac_compile itself does not contain backslashes and begins
11822 # with a dollar sign (not a hyphen), so the echo should work correctly.
11823 # The option is referenced via a variable to avoid confusing sed.
11824 lt_compile=`echo "$ac_compile" | $SED \
11825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11827 -e 's:$: $lt_compiler_flag:'`
11828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11829 (eval "$lt_compile" 2>conftest.err)
11830 ac_status=$?
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 if (exit $ac_status) && test -s "$ac_outfile"; then
11834 # The compiler can only warn and ignore the option if not recognized
11835 # So say no if there are warnings other than the usual output.
11836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11839 lt_cv_prog_compiler_pic_works=yes
11840 fi
11841 fi
11842 $RM conftest*
11843
11844 fi
11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11846 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11847
11848 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11849 case $lt_prog_compiler_pic in
11850 "" | " "*) ;;
11851 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11852 esac
11853 else
11854 lt_prog_compiler_pic=
11855 lt_prog_compiler_can_build_shared=no
11856 fi
11857
11858 fi
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 #
11871 # Check to make sure the static flag actually works.
11872 #
11873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11875 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11876 if test ${lt_cv_prog_compiler_static_works+y}
11877 then :
11878 printf %s "(cached) " >&6
11879 else $as_nop
11880 lt_cv_prog_compiler_static_works=no
11881 save_LDFLAGS=$LDFLAGS
11882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11883 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11885 # The linker can only warn and ignore the option if not recognized
11886 # So say no if there are warnings
11887 if test -s conftest.err; then
11888 # Append any errors to the config.log.
11889 cat conftest.err 1>&5
11890 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11892 if diff conftest.exp conftest.er2 >/dev/null; then
11893 lt_cv_prog_compiler_static_works=yes
11894 fi
11895 else
11896 lt_cv_prog_compiler_static_works=yes
11897 fi
11898 fi
11899 $RM -r conftest*
11900 LDFLAGS=$save_LDFLAGS
11901
11902 fi
11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11904 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11905
11906 if test yes = "$lt_cv_prog_compiler_static_works"; then
11907 :
11908 else
11909 lt_prog_compiler_static=
11910 fi
11911
11912
11913
11914
11915
11916
11917
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11919 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11920 if test ${lt_cv_prog_compiler_c_o+y}
11921 then :
11922 printf %s "(cached) " >&6
11923 else $as_nop
11924 lt_cv_prog_compiler_c_o=no
11925 $RM -r conftest 2>/dev/null
11926 mkdir conftest
11927 cd conftest
11928 mkdir out
11929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11930
11931 lt_compiler_flag="-o out/conftest2.$ac_objext"
11932 # Insert the option either (1) after the last *FLAGS variable, or
11933 # (2) before a word containing "conftest.", or (3) at the end.
11934 # Note that $ac_compile itself does not contain backslashes and begins
11935 # with a dollar sign (not a hyphen), so the echo should work correctly.
11936 lt_compile=`echo "$ac_compile" | $SED \
11937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11939 -e 's:$: $lt_compiler_flag:'`
11940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11941 (eval "$lt_compile" 2>out/conftest.err)
11942 ac_status=$?
11943 cat out/conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11946 then
11947 # The compiler can only warn and ignore the option if not recognized
11948 # So say no if there are warnings
11949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11952 lt_cv_prog_compiler_c_o=yes
11953 fi
11954 fi
11955 chmod u+w . 2>&5
11956 $RM conftest*
11957 # SGI C++ compiler will create directory out/ii_files/ for
11958 # template instantiation
11959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11960 $RM out/* && rmdir out
11961 cd ..
11962 $RM -r conftest
11963 $RM conftest*
11964
11965 fi
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11967 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11968
11969
11970
11971
11972
11973
11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11975 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11976 if test ${lt_cv_prog_compiler_c_o+y}
11977 then :
11978 printf %s "(cached) " >&6
11979 else $as_nop
11980 lt_cv_prog_compiler_c_o=no
11981 $RM -r conftest 2>/dev/null
11982 mkdir conftest
11983 cd conftest
11984 mkdir out
11985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11986
11987 lt_compiler_flag="-o out/conftest2.$ac_objext"
11988 # Insert the option either (1) after the last *FLAGS variable, or
11989 # (2) before a word containing "conftest.", or (3) at the end.
11990 # Note that $ac_compile itself does not contain backslashes and begins
11991 # with a dollar sign (not a hyphen), so the echo should work correctly.
11992 lt_compile=`echo "$ac_compile" | $SED \
11993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11995 -e 's:$: $lt_compiler_flag:'`
11996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11997 (eval "$lt_compile" 2>out/conftest.err)
11998 ac_status=$?
11999 cat out/conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12002 then
12003 # The compiler can only warn and ignore the option if not recognized
12004 # So say no if there are warnings
12005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12008 lt_cv_prog_compiler_c_o=yes
12009 fi
12010 fi
12011 chmod u+w . 2>&5
12012 $RM conftest*
12013 # SGI C++ compiler will create directory out/ii_files/ for
12014 # template instantiation
12015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12016 $RM out/* && rmdir out
12017 cd ..
12018 $RM -r conftest
12019 $RM conftest*
12020
12021 fi
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12023 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12024
12025
12026
12027
12028 hard_links=nottested
12029 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12030 # do not overwrite the value of need_locks provided by the user
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12032 printf %s "checking if we can lock with hard links... " >&6; }
12033 hard_links=yes
12034 $RM conftest*
12035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12036 touch conftest.a
12037 ln conftest.a conftest.b 2>&5 || hard_links=no
12038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12040 printf "%s\n" "$hard_links" >&6; }
12041 if test no = "$hard_links"; then
12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12043 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12044 need_locks=warn
12045 fi
12046 else
12047 need_locks=no
12048 fi
12049
12050
12051
12052
12053
12054
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12056 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12057
12058 runpath_var=
12059 allow_undefined_flag=
12060 always_export_symbols=no
12061 archive_cmds=
12062 archive_expsym_cmds=
12063 compiler_needs_object=no
12064 enable_shared_with_static_runtimes=no
12065 export_dynamic_flag_spec=
12066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12067 hardcode_automatic=no
12068 hardcode_direct=no
12069 hardcode_direct_absolute=no
12070 hardcode_libdir_flag_spec=
12071 hardcode_libdir_separator=
12072 hardcode_minus_L=no
12073 hardcode_shlibpath_var=unsupported
12074 inherit_rpath=no
12075 link_all_deplibs=unknown
12076 module_cmds=
12077 module_expsym_cmds=
12078 old_archive_from_new_cmds=
12079 old_archive_from_expsyms_cmds=
12080 thread_safe_flag_spec=
12081 whole_archive_flag_spec=
12082 # include_expsyms should be a list of space-separated symbols to be *always*
12083 # included in the symbol list
12084 include_expsyms=
12085 # exclude_expsyms can be an extended regexp of symbols to exclude
12086 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12087 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12088 # as well as any symbol that contains 'd'.
12089 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12091 # platforms (ab)use it in PIC code, but their linkers get confused if
12092 # the symbol is explicitly referenced. Since portable code cannot
12093 # rely on this symbol name, it's probably fine to never include it in
12094 # preloaded symbol tables.
12095 # Exclude shared library initialization/finalization symbols.
12096 extract_expsyms_cmds=
12097
12098 case $host_os in
12099 cygwin* | mingw* | pw32* | cegcc*)
12100 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12101 # When not using gcc, we currently assume that we are using
12102 # Microsoft Visual C++ or Intel C++ Compiler.
12103 if test yes != "$GCC"; then
12104 with_gnu_ld=no
12105 fi
12106 ;;
12107 interix*)
12108 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12109 with_gnu_ld=yes
12110 ;;
12111 openbsd* | bitrig*)
12112 with_gnu_ld=no
12113 ;;
12114 esac
12115
12116 ld_shlibs=yes
12117
12118 # On some targets, GNU ld is compatible enough with the native linker
12119 # that we're better off using the native interface for both.
12120 lt_use_gnu_ld_interface=no
12121 if test yes = "$with_gnu_ld"; then
12122 case $host_os in
12123 aix*)
12124 # The AIX port of GNU ld has always aspired to compatibility
12125 # with the native linker. However, as the warning in the GNU ld
12126 # block says, versions before 2.19.5* couldn't really create working
12127 # shared libraries, regardless of the interface used.
12128 case `$LD -v 2>&1` in
12129 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12130 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12131 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12132 *)
12133 lt_use_gnu_ld_interface=yes
12134 ;;
12135 esac
12136 ;;
12137 *)
12138 lt_use_gnu_ld_interface=yes
12139 ;;
12140 esac
12141 fi
12142
12143 if test yes = "$lt_use_gnu_ld_interface"; then
12144 # If archive_cmds runs LD, not CC, wlarc should be empty
12145 wlarc='$wl'
12146
12147 # Set some defaults for GNU ld with shared library support. These
12148 # are reset later if shared libraries are not supported. Putting them
12149 # here allows them to be overridden if necessary.
12150 runpath_var=LD_RUN_PATH
12151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12152 export_dynamic_flag_spec='$wl--export-dynamic'
12153 # ancient GNU ld didn't support --whole-archive et. al.
12154 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12155 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12156 else
12157 whole_archive_flag_spec=
12158 fi
12159 supports_anon_versioning=no
12160 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12161 *GNU\ gold*) supports_anon_versioning=yes ;;
12162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12165 *\ 2.11.*) ;; # other 2.11 versions
12166 *) supports_anon_versioning=yes ;;
12167 esac
12168
12169 # See if GNU ld supports shared libraries.
12170 case $host_os in
12171 aix[3-9]*)
12172 # On AIX/PPC, the GNU linker is very broken
12173 if test ia64 != "$host_cpu"; then
12174 ld_shlibs=no
12175 cat <<_LT_EOF 1>&2
12176
12177 *** Warning: the GNU linker, at least up to release 2.19, is reported
12178 *** to be unable to reliably create shared libraries on AIX.
12179 *** Therefore, libtool is disabling shared libraries support. If you
12180 *** really care for shared libraries, you may want to install binutils
12181 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12182 *** You will then need to restart the configuration process.
12183
12184 _LT_EOF
12185 fi
12186 ;;
12187
12188 amigaos*)
12189 case $host_cpu in
12190 powerpc)
12191 # see comment about AmigaOS4 .so support
12192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12193 archive_expsym_cmds=''
12194 ;;
12195 m68k)
12196 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)'
12197 hardcode_libdir_flag_spec='-L$libdir'
12198 hardcode_minus_L=yes
12199 ;;
12200 esac
12201 ;;
12202
12203 beos*)
12204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12205 allow_undefined_flag=unsupported
12206 # Joseph Beckenbach <[email protected]> says some releases of gcc
12207 # support --undefined. This deserves some investigation. FIXME
12208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12209 else
12210 ld_shlibs=no
12211 fi
12212 ;;
12213
12214 cygwin* | mingw* | pw32* | cegcc*)
12215 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12216 # as there is no search path for DLLs.
12217 hardcode_libdir_flag_spec='-L$libdir'
12218 export_dynamic_flag_spec='$wl--export-all-symbols'
12219 allow_undefined_flag=unsupported
12220 always_export_symbols=no
12221 enable_shared_with_static_runtimes=yes
12222 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'
12223 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12224
12225 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12227 # If the export-symbols file already is a .def file, use it as
12228 # is; otherwise, prepend EXPORTS...
12229 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12230 cp $export_symbols $output_objdir/$soname.def;
12231 else
12232 echo EXPORTS > $output_objdir/$soname.def;
12233 cat $export_symbols >> $output_objdir/$soname.def;
12234 fi~
12235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12236 else
12237 ld_shlibs=no
12238 fi
12239 ;;
12240
12241 haiku*)
12242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12243 link_all_deplibs=yes
12244 ;;
12245
12246 os2*)
12247 hardcode_libdir_flag_spec='-L$libdir'
12248 hardcode_minus_L=yes
12249 allow_undefined_flag=unsupported
12250 shrext_cmds=.dll
12251 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12252 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12253 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12254 $ECHO EXPORTS >> $output_objdir/$libname.def~
12255 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12256 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12257 emximp -o $lib $output_objdir/$libname.def'
12258 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12259 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12260 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12261 $ECHO EXPORTS >> $output_objdir/$libname.def~
12262 prefix_cmds="$SED"~
12263 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12264 prefix_cmds="$prefix_cmds -e 1d";
12265 fi~
12266 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12267 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12268 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12269 emximp -o $lib $output_objdir/$libname.def'
12270 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12271 enable_shared_with_static_runtimes=yes
12272 file_list_spec='@'
12273 ;;
12274
12275 interix[3-9]*)
12276 hardcode_direct=no
12277 hardcode_shlibpath_var=no
12278 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12279 export_dynamic_flag_spec='$wl-E'
12280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12281 # Instead, shared libraries are loaded at an image base (0x10000000 by
12282 # default) and relocated if they conflict, which is a slow very memory
12283 # consuming and fragmenting process. To avoid this, we pick a random,
12284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12286 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12287 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'
12288 ;;
12289
12290 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12291 tmp_diet=no
12292 if test linux-dietlibc = "$host_os"; then
12293 case $cc_basename in
12294 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12295 esac
12296 fi
12297 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12298 && test no = "$tmp_diet"
12299 then
12300 tmp_addflag=' $pic_flag'
12301 tmp_sharedflag='-shared'
12302 case $cc_basename,$host_cpu in
12303 pgcc*) # Portland Group C compiler
12304 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'
12305 tmp_addflag=' $pic_flag'
12306 ;;
12307 pgf77* | pgf90* | pgf95* | pgfortran*)
12308 # Portland Group f77 and f90 compilers
12309 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'
12310 tmp_addflag=' $pic_flag -Mnomain' ;;
12311 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12312 tmp_addflag=' -i_dynamic' ;;
12313 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12314 tmp_addflag=' -i_dynamic -nofor_main' ;;
12315 ifc* | ifort*) # Intel Fortran compiler
12316 tmp_addflag=' -nofor_main' ;;
12317 lf95*) # Lahey Fortran 8.1
12318 whole_archive_flag_spec=
12319 tmp_sharedflag='--shared' ;;
12320 nagfor*) # NAGFOR 5.3
12321 tmp_sharedflag='-Wl,-shared' ;;
12322 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12323 tmp_sharedflag='-qmkshrobj'
12324 tmp_addflag= ;;
12325 nvcc*) # Cuda Compiler Driver 2.2
12326 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'
12327 compiler_needs_object=yes
12328 ;;
12329 esac
12330 case `$CC -V 2>&1 | $SED 5q` in
12331 *Sun\ C*) # Sun C 5.9
12332 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'
12333 compiler_needs_object=yes
12334 tmp_sharedflag='-G' ;;
12335 *Sun\ F*) # Sun Fortran 8.3
12336 tmp_sharedflag='-G' ;;
12337 esac
12338 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12339
12340 if test yes = "$supports_anon_versioning"; then
12341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12342 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12343 echo "local: *; };" >> $output_objdir/$libname.ver~
12344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12345 fi
12346
12347 case $cc_basename in
12348 tcc*)
12349 export_dynamic_flag_spec='-rdynamic'
12350 ;;
12351 xlf* | bgf* | bgxlf* | mpixlf*)
12352 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12353 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12355 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12356 if test yes = "$supports_anon_versioning"; then
12357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12358 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12359 echo "local: *; };" >> $output_objdir/$libname.ver~
12360 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12361 fi
12362 ;;
12363 esac
12364 else
12365 ld_shlibs=no
12366 fi
12367 ;;
12368
12369 netbsd*)
12370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12371 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12372 wlarc=
12373 else
12374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12376 fi
12377 ;;
12378
12379 solaris*)
12380 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12381 ld_shlibs=no
12382 cat <<_LT_EOF 1>&2
12383
12384 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12385 *** create shared libraries on Solaris systems. Therefore, libtool
12386 *** is disabling shared libraries support. We urge you to upgrade GNU
12387 *** binutils to release 2.9.1 or newer. Another option is to modify
12388 *** your PATH or compiler configuration so that the native linker is
12389 *** used, and then restart.
12390
12391 _LT_EOF
12392 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12394 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12395 else
12396 ld_shlibs=no
12397 fi
12398 ;;
12399
12400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12401 case `$LD -v 2>&1` in
12402 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12403 ld_shlibs=no
12404 cat <<_LT_EOF 1>&2
12405
12406 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12407 *** reliably create shared libraries on SCO systems. Therefore, libtool
12408 *** is disabling shared libraries support. We urge you to upgrade GNU
12409 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12410 *** your PATH or compiler configuration so that the native linker is
12411 *** used, and then restart.
12412
12413 _LT_EOF
12414 ;;
12415 *)
12416 # For security reasons, it is highly recommended that you always
12417 # use absolute paths for naming shared libraries, and exclude the
12418 # DT_RUNPATH tag from executables and libraries. But doing so
12419 # requires that you compile everything twice, which is a pain.
12420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12424 else
12425 ld_shlibs=no
12426 fi
12427 ;;
12428 esac
12429 ;;
12430
12431 sunos4*)
12432 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12433 wlarc=
12434 hardcode_direct=yes
12435 hardcode_shlibpath_var=no
12436 ;;
12437
12438 *)
12439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12442 else
12443 ld_shlibs=no
12444 fi
12445 ;;
12446 esac
12447
12448 if test no = "$ld_shlibs"; then
12449 runpath_var=
12450 hardcode_libdir_flag_spec=
12451 export_dynamic_flag_spec=
12452 whole_archive_flag_spec=
12453 fi
12454 else
12455 # PORTME fill in a description of your system's linker (not GNU ld)
12456 case $host_os in
12457 aix3*)
12458 allow_undefined_flag=unsupported
12459 always_export_symbols=yes
12460 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'
12461 # Note: this linker hardcodes the directories in LIBPATH if there
12462 # are no directories specified by -L.
12463 hardcode_minus_L=yes
12464 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12465 # Neither direct hardcoding nor static linking is supported with a
12466 # broken collect2.
12467 hardcode_direct=unsupported
12468 fi
12469 ;;
12470
12471 aix[4-9]*)
12472 if test ia64 = "$host_cpu"; then
12473 # On IA64, the linker does run time linking by default, so we don't
12474 # have to do anything special.
12475 aix_use_runtimelinking=no
12476 exp_sym_flag='-Bexport'
12477 no_entry_flag=
12478 else
12479 # If we're using GNU nm, then we don't want the "-C" option.
12480 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12481 # Without the "-l" option, or with the "-B" option, AIX nm treats
12482 # weak defined symbols like other global defined symbols, whereas
12483 # GNU nm marks them as "W".
12484 # While the 'weak' keyword is ignored in the Export File, we need
12485 # it in the Import File for the 'aix-soname' feature, so we have
12486 # to replace the "-B" option with "-P" for AIX nm.
12487 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12488 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'
12489 else
12490 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'
12491 fi
12492 aix_use_runtimelinking=no
12493
12494 # Test if we are trying to use run time linking or normal
12495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12496 # have runtime linking enabled, and use it for executables.
12497 # For shared libraries, we enable/disable runtime linking
12498 # depending on the kind of the shared library created -
12499 # when "with_aix_soname,aix_use_runtimelinking" is:
12500 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12501 # "aix,yes" lib.so shared, rtl:yes, for executables
12502 # lib.a static archive
12503 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12504 # lib.a(lib.so.V) shared, rtl:no, for executables
12505 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12506 # lib.a(lib.so.V) shared, rtl:no
12507 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12508 # lib.a static archive
12509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12510 for ld_flag in $LDFLAGS; do
12511 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12512 aix_use_runtimelinking=yes
12513 break
12514 fi
12515 done
12516 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12517 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12518 # so we don't have lib.a shared libs to link our executables.
12519 # We have to force runtime linking in this case.
12520 aix_use_runtimelinking=yes
12521 LDFLAGS="$LDFLAGS -Wl,-brtl"
12522 fi
12523 ;;
12524 esac
12525
12526 exp_sym_flag='-bexport'
12527 no_entry_flag='-bnoentry'
12528 fi
12529
12530 # When large executables or shared objects are built, AIX ld can
12531 # have problems creating the table of contents. If linking a library
12532 # or program results in "error TOC overflow" add -mminimal-toc to
12533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12535
12536 archive_cmds=''
12537 hardcode_direct=yes
12538 hardcode_direct_absolute=yes
12539 hardcode_libdir_separator=':'
12540 link_all_deplibs=yes
12541 file_list_spec='$wl-f,'
12542 case $with_aix_soname,$aix_use_runtimelinking in
12543 aix,*) ;; # traditional, no import file
12544 svr4,* | *,yes) # use import file
12545 # The Import File defines what to hardcode.
12546 hardcode_direct=no
12547 hardcode_direct_absolute=no
12548 ;;
12549 esac
12550
12551 if test yes = "$GCC"; then
12552 case $host_os in aix4.[012]|aix4.[012].*)
12553 # We only want to do this on AIX 4.2 and lower, the check
12554 # below for broken collect2 doesn't work under 4.3+
12555 collect2name=`$CC -print-prog-name=collect2`
12556 if test -f "$collect2name" &&
12557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12558 then
12559 # We have reworked collect2
12560 :
12561 else
12562 # We have old collect2
12563 hardcode_direct=unsupported
12564 # It fails to find uninstalled libraries when the uninstalled
12565 # path is not listed in the libpath. Setting hardcode_minus_L
12566 # to unsupported forces relinking
12567 hardcode_minus_L=yes
12568 hardcode_libdir_flag_spec='-L$libdir'
12569 hardcode_libdir_separator=
12570 fi
12571 ;;
12572 esac
12573 shared_flag='-shared'
12574 if test yes = "$aix_use_runtimelinking"; then
12575 shared_flag="$shared_flag "'$wl-G'
12576 fi
12577 # Need to ensure runtime linking is disabled for the traditional
12578 # shared library, or the linker may eventually find shared libraries
12579 # /with/ Import File - we do not want to mix them.
12580 shared_flag_aix='-shared'
12581 shared_flag_svr4='-shared $wl-G'
12582 else
12583 # not using gcc
12584 if test ia64 = "$host_cpu"; then
12585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12586 # chokes on -Wl,-G. The following line is correct:
12587 shared_flag='-G'
12588 else
12589 if test yes = "$aix_use_runtimelinking"; then
12590 shared_flag='$wl-G'
12591 else
12592 shared_flag='$wl-bM:SRE'
12593 fi
12594 shared_flag_aix='$wl-bM:SRE'
12595 shared_flag_svr4='$wl-G'
12596 fi
12597 fi
12598
12599 export_dynamic_flag_spec='$wl-bexpall'
12600 # It seems that -bexpall does not export symbols beginning with
12601 # underscore (_), so it is better to generate a list of symbols to export.
12602 always_export_symbols=yes
12603 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12604 # Warning - without using the other runtime loading flags (-brtl),
12605 # -berok will link without error, but may produce a broken library.
12606 allow_undefined_flag='-berok'
12607 # Determine the default libpath from the value encoded in an
12608 # empty executable.
12609 if test set = "${lt_cv_aix_libpath+set}"; then
12610 aix_libpath=$lt_cv_aix_libpath
12611 else
12612 if test ${lt_cv_aix_libpath_+y}
12613 then :
12614 printf %s "(cached) " >&6
12615 else $as_nop
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618
12619 int
12620 main (void)
12621 {
12622
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"
12628 then :
12629
12630 lt_aix_libpath_sed='
12631 /Import File Strings/,/^$/ {
12632 /^0/ {
12633 s/^0 *\([^ ]*\) *$/\1/
12634 p
12635 }
12636 }'
12637 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638 # Check for a 64-bit object if we didn't find anything.
12639 if test -z "$lt_cv_aix_libpath_"; then
12640 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 fi
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12644 conftest$ac_exeext conftest.$ac_ext
12645 if test -z "$lt_cv_aix_libpath_"; then
12646 lt_cv_aix_libpath_=/usr/lib:/lib
12647 fi
12648
12649 fi
12650
12651 aix_libpath=$lt_cv_aix_libpath_
12652 fi
12653
12654 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12655 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
12656 else
12657 if test ia64 = "$host_cpu"; then
12658 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12659 allow_undefined_flag="-z nodefs"
12660 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"
12661 else
12662 # Determine the default libpath from the value encoded in an
12663 # empty executable.
12664 if test set = "${lt_cv_aix_libpath+set}"; then
12665 aix_libpath=$lt_cv_aix_libpath
12666 else
12667 if test ${lt_cv_aix_libpath_+y}
12668 then :
12669 printf %s "(cached) " >&6
12670 else $as_nop
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673
12674 int
12675 main (void)
12676 {
12677
12678 ;
12679 return 0;
12680 }
12681 _ACEOF
12682 if ac_fn_c_try_link "$LINENO"
12683 then :
12684
12685 lt_aix_libpath_sed='
12686 /Import File Strings/,/^$/ {
12687 /^0/ {
12688 s/^0 *\([^ ]*\) *$/\1/
12689 p
12690 }
12691 }'
12692 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12693 # Check for a 64-bit object if we didn't find anything.
12694 if test -z "$lt_cv_aix_libpath_"; then
12695 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696 fi
12697 fi
12698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12699 conftest$ac_exeext conftest.$ac_ext
12700 if test -z "$lt_cv_aix_libpath_"; then
12701 lt_cv_aix_libpath_=/usr/lib:/lib
12702 fi
12703
12704 fi
12705
12706 aix_libpath=$lt_cv_aix_libpath_
12707 fi
12708
12709 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12710 # Warning - without using the other run time loading flags,
12711 # -berok will link without error, but may produce a broken library.
12712 no_undefined_flag=' $wl-bernotok'
12713 allow_undefined_flag=' $wl-berok'
12714 if test yes = "$with_gnu_ld"; then
12715 # We only use this code for GNU lds that support --whole-archive.
12716 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12717 else
12718 # Exported symbols can be pulled into shared objects from archives
12719 whole_archive_flag_spec='$convenience'
12720 fi
12721 archive_cmds_need_lc=yes
12722 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12723 # -brtl affects multiple linker settings, -berok does not and is overridden later
12724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12725 if test svr4 != "$with_aix_soname"; then
12726 # This is similar to how AIX traditionally builds its shared libraries.
12727 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'
12728 fi
12729 if test aix != "$with_aix_soname"; then
12730 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'
12731 else
12732 # used by -dlpreopen to get the symbols
12733 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12734 fi
12735 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12736 fi
12737 fi
12738 ;;
12739
12740 amigaos*)
12741 case $host_cpu in
12742 powerpc)
12743 # see comment about AmigaOS4 .so support
12744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12745 archive_expsym_cmds=''
12746 ;;
12747 m68k)
12748 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)'
12749 hardcode_libdir_flag_spec='-L$libdir'
12750 hardcode_minus_L=yes
12751 ;;
12752 esac
12753 ;;
12754
12755 bsdi[45]*)
12756 export_dynamic_flag_spec=-rdynamic
12757 ;;
12758
12759 cygwin* | mingw* | pw32* | cegcc*)
12760 # When not using gcc, we currently assume that we are using
12761 # Microsoft Visual C++ or Intel C++ Compiler.
12762 # hardcode_libdir_flag_spec is actually meaningless, as there is
12763 # no search path for DLLs.
12764 case $cc_basename in
12765 cl* | icl*)
12766 # Native MSVC or ICC
12767 hardcode_libdir_flag_spec=' '
12768 allow_undefined_flag=unsupported
12769 always_export_symbols=yes
12770 file_list_spec='@'
12771 # Tell ltmain to make .lib files, not .a files.
12772 libext=lib
12773 # Tell ltmain to make .dll files, not .so files.
12774 shrext_cmds=.dll
12775 # FIXME: Setting linknames here is a bad hack.
12776 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12777 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12778 cp "$export_symbols" "$output_objdir/$soname.def";
12779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12780 else
12781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12782 fi~
12783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12784 linknames='
12785 # The linker will not automatically build a static lib if we build a DLL.
12786 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12787 enable_shared_with_static_runtimes=yes
12788 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12790 # Don't use ranlib
12791 old_postinstall_cmds='chmod 644 $oldlib'
12792 postlink_cmds='lt_outputfile="@OUTPUT@"~
12793 lt_tool_outputfile="@TOOL_OUTPUT@"~
12794 case $lt_outputfile in
12795 *.exe|*.EXE) ;;
12796 *)
12797 lt_outputfile=$lt_outputfile.exe
12798 lt_tool_outputfile=$lt_tool_outputfile.exe
12799 ;;
12800 esac~
12801 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12802 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12803 $RM "$lt_outputfile.manifest";
12804 fi'
12805 ;;
12806 *)
12807 # Assume MSVC and ICC wrapper
12808 hardcode_libdir_flag_spec=' '
12809 allow_undefined_flag=unsupported
12810 # Tell ltmain to make .lib files, not .a files.
12811 libext=lib
12812 # Tell ltmain to make .dll files, not .so files.
12813 shrext_cmds=.dll
12814 # FIXME: Setting linknames here is a bad hack.
12815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12816 # The linker will automatically build a .lib file if we build a DLL.
12817 old_archive_from_new_cmds='true'
12818 # FIXME: Should let the user specify the lib program.
12819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12820 enable_shared_with_static_runtimes=yes
12821 ;;
12822 esac
12823 ;;
12824
12825 darwin* | rhapsody*)
12826
12827
12828 archive_cmds_need_lc=no
12829 hardcode_direct=no
12830 hardcode_automatic=yes
12831 hardcode_shlibpath_var=unsupported
12832 if test yes = "$lt_cv_ld_force_load"; then
12833 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\"`'
12834
12835 else
12836 whole_archive_flag_spec=''
12837 fi
12838 link_all_deplibs=yes
12839 allow_undefined_flag=$_lt_dar_allow_undefined
12840 case $cc_basename in
12841 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12842 *) _lt_dar_can_shared=$GCC ;;
12843 esac
12844 if test yes = "$_lt_dar_can_shared"; then
12845 output_verbose_link_cmd=func_echo_all
12846 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12847 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12848 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"
12849 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"
12850
12851 else
12852 ld_shlibs=no
12853 fi
12854
12855 ;;
12856
12857 dgux*)
12858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_shlibpath_var=no
12861 ;;
12862
12863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12864 # support. Future versions do this automatically, but an explicit c++rt0.o
12865 # does not break anything, and helps significantly (at the cost of a little
12866 # extra space).
12867 freebsd2.2*)
12868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12869 hardcode_libdir_flag_spec='-R$libdir'
12870 hardcode_direct=yes
12871 hardcode_shlibpath_var=no
12872 ;;
12873
12874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12875 freebsd2.*)
12876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_direct=yes
12878 hardcode_minus_L=yes
12879 hardcode_shlibpath_var=no
12880 ;;
12881
12882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12883 freebsd* | dragonfly* | midnightbsd*)
12884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12885 hardcode_libdir_flag_spec='-R$libdir'
12886 hardcode_direct=yes
12887 hardcode_shlibpath_var=no
12888 ;;
12889
12890 hpux9*)
12891 if test yes = "$GCC"; then
12892 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'
12893 else
12894 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'
12895 fi
12896 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12897 hardcode_libdir_separator=:
12898 hardcode_direct=yes
12899
12900 # hardcode_minus_L: Not really in the search PATH,
12901 # but as the default location of the library.
12902 hardcode_minus_L=yes
12903 export_dynamic_flag_spec='$wl-E'
12904 ;;
12905
12906 hpux10*)
12907 if test yes,no = "$GCC,$with_gnu_ld"; then
12908 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12909 else
12910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12911 fi
12912 if test no = "$with_gnu_ld"; then
12913 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12914 hardcode_libdir_separator=:
12915 hardcode_direct=yes
12916 hardcode_direct_absolute=yes
12917 export_dynamic_flag_spec='$wl-E'
12918 # hardcode_minus_L: Not really in the search PATH,
12919 # but as the default location of the library.
12920 hardcode_minus_L=yes
12921 fi
12922 ;;
12923
12924 hpux11*)
12925 if test yes,no = "$GCC,$with_gnu_ld"; then
12926 case $host_cpu in
12927 hppa*64*)
12928 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 ;;
12930 ia64*)
12931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12932 ;;
12933 *)
12934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12935 ;;
12936 esac
12937 else
12938 case $host_cpu in
12939 hppa*64*)
12940 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 ;;
12942 ia64*)
12943 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12944 ;;
12945 *)
12946
12947 # Older versions of the 11.00 compiler do not understand -b yet
12948 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12950 printf %s "checking if $CC understands -b... " >&6; }
12951 if test ${lt_cv_prog_compiler__b+y}
12952 then :
12953 printf %s "(cached) " >&6
12954 else $as_nop
12955 lt_cv_prog_compiler__b=no
12956 save_LDFLAGS=$LDFLAGS
12957 LDFLAGS="$LDFLAGS -b"
12958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12960 # The linker can only warn and ignore the option if not recognized
12961 # So say no if there are warnings
12962 if test -s conftest.err; then
12963 # Append any errors to the config.log.
12964 cat conftest.err 1>&5
12965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12967 if diff conftest.exp conftest.er2 >/dev/null; then
12968 lt_cv_prog_compiler__b=yes
12969 fi
12970 else
12971 lt_cv_prog_compiler__b=yes
12972 fi
12973 fi
12974 $RM -r conftest*
12975 LDFLAGS=$save_LDFLAGS
12976
12977 fi
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12979 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12980
12981 if test yes = "$lt_cv_prog_compiler__b"; then
12982 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12983 else
12984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12985 fi
12986
12987 ;;
12988 esac
12989 fi
12990 if test no = "$with_gnu_ld"; then
12991 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12992 hardcode_libdir_separator=:
12993
12994 case $host_cpu in
12995 hppa*64*|ia64*)
12996 hardcode_direct=no
12997 hardcode_shlibpath_var=no
12998 ;;
12999 *)
13000 hardcode_direct=yes
13001 hardcode_direct_absolute=yes
13002 export_dynamic_flag_spec='$wl-E'
13003
13004 # hardcode_minus_L: Not really in the search PATH,
13005 # but as the default location of the library.
13006 hardcode_minus_L=yes
13007 ;;
13008 esac
13009 fi
13010 ;;
13011
13012 irix5* | irix6* | nonstopux*)
13013 if test yes = "$GCC"; then
13014 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'
13015 # Try to use the -exported_symbol ld option, if it does not
13016 # work, assume that -exports_file does not work either and
13017 # implicitly export all symbols.
13018 # This should be the same for all languages, so no per-tag cache variable.
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13020 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13021 if test ${lt_cv_irix_exported_symbol+y}
13022 then :
13023 printf %s "(cached) " >&6
13024 else $as_nop
13025 save_LDFLAGS=$LDFLAGS
13026 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 int foo (void) { return 0; }
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"
13032 then :
13033 lt_cv_irix_exported_symbol=yes
13034 else $as_nop
13035 lt_cv_irix_exported_symbol=no
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13038 conftest$ac_exeext conftest.$ac_ext
13039 LDFLAGS=$save_LDFLAGS
13040 fi
13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13042 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13043 if test yes = "$lt_cv_irix_exported_symbol"; then
13044 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'
13045 fi
13046 else
13047 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'
13048 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'
13049 fi
13050 archive_cmds_need_lc='no'
13051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13052 hardcode_libdir_separator=:
13053 inherit_rpath=yes
13054 link_all_deplibs=yes
13055 ;;
13056
13057 linux*)
13058 case $cc_basename in
13059 tcc*)
13060 # Fabrice Bellard et al's Tiny C Compiler
13061 ld_shlibs=yes
13062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13063 ;;
13064 esac
13065 ;;
13066
13067 netbsd*)
13068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13070 else
13071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13072 fi
13073 hardcode_libdir_flag_spec='-R$libdir'
13074 hardcode_direct=yes
13075 hardcode_shlibpath_var=no
13076 ;;
13077
13078 newsos6)
13079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080 hardcode_direct=yes
13081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13082 hardcode_libdir_separator=:
13083 hardcode_shlibpath_var=no
13084 ;;
13085
13086 *nto* | *qnx*)
13087 ;;
13088
13089 openbsd* | bitrig*)
13090 if test -f /usr/libexec/ld.so; then
13091 hardcode_direct=yes
13092 hardcode_shlibpath_var=no
13093 hardcode_direct_absolute=yes
13094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13097 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13098 export_dynamic_flag_spec='$wl-E'
13099 else
13100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13101 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13102 fi
13103 else
13104 ld_shlibs=no
13105 fi
13106 ;;
13107
13108 os2*)
13109 hardcode_libdir_flag_spec='-L$libdir'
13110 hardcode_minus_L=yes
13111 allow_undefined_flag=unsupported
13112 shrext_cmds=.dll
13113 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13116 $ECHO EXPORTS >> $output_objdir/$libname.def~
13117 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13119 emximp -o $lib $output_objdir/$libname.def'
13120 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13123 $ECHO EXPORTS >> $output_objdir/$libname.def~
13124 prefix_cmds="$SED"~
13125 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13126 prefix_cmds="$prefix_cmds -e 1d";
13127 fi~
13128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13129 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13131 emximp -o $lib $output_objdir/$libname.def'
13132 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13133 enable_shared_with_static_runtimes=yes
13134 file_list_spec='@'
13135 ;;
13136
13137 osf3*)
13138 if test yes = "$GCC"; then
13139 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13140 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'
13141 else
13142 allow_undefined_flag=' -expect_unresolved \*'
13143 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'
13144 fi
13145 archive_cmds_need_lc='no'
13146 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13147 hardcode_libdir_separator=:
13148 ;;
13149
13150 osf4* | osf5*) # as osf3* with the addition of -msym flag
13151 if test yes = "$GCC"; then
13152 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13153 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'
13154 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13155 else
13156 allow_undefined_flag=' -expect_unresolved \*'
13157 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'
13158 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~
13159 $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'
13160
13161 # Both c and cxx compiler support -rpath directly
13162 hardcode_libdir_flag_spec='-rpath $libdir'
13163 fi
13164 archive_cmds_need_lc='no'
13165 hardcode_libdir_separator=:
13166 ;;
13167
13168 solaris*)
13169 no_undefined_flag=' -z defs'
13170 if test yes = "$GCC"; then
13171 wlarc='$wl'
13172 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13173 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13174 $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'
13175 else
13176 case `$CC -V 2>&1` in
13177 *"Compilers 5.0"*)
13178 wlarc=''
13179 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13181 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13182 ;;
13183 *)
13184 wlarc='$wl'
13185 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13187 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13188 ;;
13189 esac
13190 fi
13191 hardcode_libdir_flag_spec='-R$libdir'
13192 hardcode_shlibpath_var=no
13193 case $host_os in
13194 solaris2.[0-5] | solaris2.[0-5].*) ;;
13195 *)
13196 # The compiler driver will combine and reorder linker options,
13197 # but understands '-z linker_flag'. GCC discards it without '$wl',
13198 # but is careful enough not to reorder.
13199 # Supported since Solaris 2.6 (maybe 2.5.1?)
13200 if test yes = "$GCC"; then
13201 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13202 else
13203 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13204 fi
13205 ;;
13206 esac
13207 link_all_deplibs=yes
13208 ;;
13209
13210 sunos4*)
13211 if test sequent = "$host_vendor"; then
13212 # Use $CC to link under sequent, because it throws in some extra .o
13213 # files that make .init and .fini sections work.
13214 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13215 else
13216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13217 fi
13218 hardcode_libdir_flag_spec='-L$libdir'
13219 hardcode_direct=yes
13220 hardcode_minus_L=yes
13221 hardcode_shlibpath_var=no
13222 ;;
13223
13224 sysv4)
13225 case $host_vendor in
13226 sni)
13227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13228 hardcode_direct=yes # is this really true???
13229 ;;
13230 siemens)
13231 ## LD is ld it makes a PLAMLIB
13232 ## CC just makes a GrossModule.
13233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13234 reload_cmds='$CC -r -o $output$reload_objs'
13235 hardcode_direct=no
13236 ;;
13237 motorola)
13238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13240 ;;
13241 esac
13242 runpath_var='LD_RUN_PATH'
13243 hardcode_shlibpath_var=no
13244 ;;
13245
13246 sysv4.3*)
13247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13248 hardcode_shlibpath_var=no
13249 export_dynamic_flag_spec='-Bexport'
13250 ;;
13251
13252 sysv4*MP*)
13253 if test -d /usr/nec; then
13254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13255 hardcode_shlibpath_var=no
13256 runpath_var=LD_RUN_PATH
13257 hardcode_runpath_var=yes
13258 ld_shlibs=yes
13259 fi
13260 ;;
13261
13262 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13263 no_undefined_flag='$wl-z,text'
13264 archive_cmds_need_lc=no
13265 hardcode_shlibpath_var=no
13266 runpath_var='LD_RUN_PATH'
13267
13268 if test yes = "$GCC"; then
13269 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13270 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13271 else
13272 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13274 fi
13275 ;;
13276
13277 sysv5* | sco3.2v5* | sco5v6*)
13278 # Note: We CANNOT use -z defs as we might desire, because we do not
13279 # link with -lc, and that would cause any symbols used from libc to
13280 # always be unresolved, which means just about no library would
13281 # ever link correctly. If we're not using GNU ld we use -z text
13282 # though, which does catch some bad symbols but isn't as heavy-handed
13283 # as -z defs.
13284 no_undefined_flag='$wl-z,text'
13285 allow_undefined_flag='$wl-z,nodefs'
13286 archive_cmds_need_lc=no
13287 hardcode_shlibpath_var=no
13288 hardcode_libdir_flag_spec='$wl-R,$libdir'
13289 hardcode_libdir_separator=':'
13290 link_all_deplibs=yes
13291 export_dynamic_flag_spec='$wl-Bexport'
13292 runpath_var='LD_RUN_PATH'
13293
13294 if test yes = "$GCC"; then
13295 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 else
13298 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 fi
13301 ;;
13302
13303 uts4*)
13304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13305 hardcode_libdir_flag_spec='-L$libdir'
13306 hardcode_shlibpath_var=no
13307 ;;
13308
13309 *)
13310 ld_shlibs=no
13311 ;;
13312 esac
13313
13314 if test sni = "$host_vendor"; then
13315 case $host in
13316 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13317 export_dynamic_flag_spec='$wl-Blargedynsym'
13318 ;;
13319 esac
13320 fi
13321 fi
13322
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13324 printf "%s\n" "$ld_shlibs" >&6; }
13325 test no = "$ld_shlibs" && can_build_shared=no
13326
13327 with_gnu_ld=$with_gnu_ld
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343 #
13344 # Do we need to explicitly link libc?
13345 #
13346 case "x$archive_cmds_need_lc" in
13347 x|xyes)
13348 # Assume -lc should be added
13349 archive_cmds_need_lc=yes
13350
13351 if test yes,yes = "$GCC,$enable_shared"; then
13352 case $archive_cmds in
13353 *'~'*)
13354 # FIXME: we may have to deal with multi-command sequences.
13355 ;;
13356 '$CC '*)
13357 # Test whether the compiler implicitly links with -lc since on some
13358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13359 # to ld, don't add -lc before -lgcc.
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13361 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13362 if test ${lt_cv_archive_cmds_need_lc+y}
13363 then :
13364 printf %s "(cached) " >&6
13365 else $as_nop
13366 $RM conftest*
13367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13368
13369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13370 (eval $ac_compile) 2>&5
13371 ac_status=$?
13372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373 test $ac_status = 0; } 2>conftest.err; then
13374 soname=conftest
13375 lib=conftest
13376 libobjs=conftest.$ac_objext
13377 deplibs=
13378 wl=$lt_prog_compiler_wl
13379 pic_flag=$lt_prog_compiler_pic
13380 compiler_flags=-v
13381 linker_flags=-v
13382 verstring=
13383 output_objdir=.
13384 libname=conftest
13385 lt_save_allow_undefined_flag=$allow_undefined_flag
13386 allow_undefined_flag=
13387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13388 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13389 ac_status=$?
13390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13391 test $ac_status = 0; }
13392 then
13393 lt_cv_archive_cmds_need_lc=no
13394 else
13395 lt_cv_archive_cmds_need_lc=yes
13396 fi
13397 allow_undefined_flag=$lt_save_allow_undefined_flag
13398 else
13399 cat conftest.err 1>&5
13400 fi
13401 $RM conftest*
13402
13403 fi
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13405 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13406 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13407 ;;
13408 esac
13409 fi
13410 ;;
13411 esac
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13565 printf %s "checking dynamic linker characteristics... " >&6; }
13566
13567 if test yes = "$GCC"; then
13568 case $host_os in
13569 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13570 *) lt_awk_arg='/^libraries:/' ;;
13571 esac
13572 case $host_os in
13573 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13574 *) lt_sed_strip_eq='s|=/|/|g' ;;
13575 esac
13576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13577 case $lt_search_path_spec in
13578 *\;*)
13579 # if the path contains ";" then we assume it to be the separator
13580 # otherwise default to the standard path separator (i.e. ":") - it is
13581 # assumed that no part of a normal pathname contains ";" but that should
13582 # okay in the real world where ";" in dirpaths is itself problematic.
13583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13584 ;;
13585 *)
13586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13587 ;;
13588 esac
13589 # Ok, now we have the path, separated by spaces, we can step through it
13590 # and add multilib dir if necessary...
13591 lt_tmp_lt_search_path_spec=
13592 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13593 # ...but if some path component already ends with the multilib dir we assume
13594 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13595 case "$lt_multi_os_dir; $lt_search_path_spec " in
13596 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13597 lt_multi_os_dir=
13598 ;;
13599 esac
13600 for lt_sys_path in $lt_search_path_spec; do
13601 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13603 elif test -n "$lt_multi_os_dir"; then
13604 test -d "$lt_sys_path" && \
13605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13606 fi
13607 done
13608 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13609 BEGIN {RS = " "; FS = "/|\n";} {
13610 lt_foo = "";
13611 lt_count = 0;
13612 for (lt_i = NF; lt_i > 0; lt_i--) {
13613 if ($lt_i != "" && $lt_i != ".") {
13614 if ($lt_i == "..") {
13615 lt_count++;
13616 } else {
13617 if (lt_count == 0) {
13618 lt_foo = "/" $lt_i lt_foo;
13619 } else {
13620 lt_count--;
13621 }
13622 }
13623 }
13624 }
13625 if (lt_foo != "") { lt_freq[lt_foo]++; }
13626 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13627 }'`
13628 # AWK program above erroneously prepends '/' to C:/dos/paths
13629 # for these hosts.
13630 case $host_os in
13631 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13632 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13633 esac
13634 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13635 else
13636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13637 fi
13638 library_names_spec=
13639 libname_spec='lib$name'
13640 soname_spec=
13641 shrext_cmds=.so
13642 postinstall_cmds=
13643 postuninstall_cmds=
13644 finish_cmds=
13645 finish_eval=
13646 shlibpath_var=
13647 shlibpath_overrides_runpath=unknown
13648 version_type=none
13649 dynamic_linker="$host_os ld.so"
13650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13651 need_lib_prefix=unknown
13652 hardcode_into_libs=no
13653
13654 # when you set need_version to no, make sure it does not cause -set_version
13655 # flags to be left without arguments
13656 need_version=unknown
13657
13658
13659
13660 case $host_os in
13661 aix3*)
13662 version_type=linux # correct to gnu/linux during the next big refactor
13663 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13664 shlibpath_var=LIBPATH
13665
13666 # AIX 3 has no versioning support, so we append a major version to the name.
13667 soname_spec='$libname$release$shared_ext$major'
13668 ;;
13669
13670 aix[4-9]*)
13671 version_type=linux # correct to gnu/linux during the next big refactor
13672 need_lib_prefix=no
13673 need_version=no
13674 hardcode_into_libs=yes
13675 if test ia64 = "$host_cpu"; then
13676 # AIX 5 supports IA64
13677 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13678 shlibpath_var=LD_LIBRARY_PATH
13679 else
13680 # With GCC up to 2.95.x, collect2 would create an import file
13681 # for dependence libraries. The import file would start with
13682 # the line '#! .'. This would cause the generated library to
13683 # depend on '.', always an invalid library. This was fixed in
13684 # development snapshots of GCC prior to 3.0.
13685 case $host_os in
13686 aix4 | aix4.[01] | aix4.[01].*)
13687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13688 echo ' yes '
13689 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13690 :
13691 else
13692 can_build_shared=no
13693 fi
13694 ;;
13695 esac
13696 # Using Import Files as archive members, it is possible to support
13697 # filename-based versioning of shared library archives on AIX. While
13698 # this would work for both with and without runtime linking, it will
13699 # prevent static linking of such archives. So we do filename-based
13700 # shared library versioning with .so extension only, which is used
13701 # when both runtime linking and shared linking is enabled.
13702 # Unfortunately, runtime linking may impact performance, so we do
13703 # not want this to be the default eventually. Also, we use the
13704 # versioned .so libs for executables only if there is the -brtl
13705 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13706 # To allow for filename-based versioning support, we need to create
13707 # libNAME.so.V as an archive file, containing:
13708 # *) an Import File, referring to the versioned filename of the
13709 # archive as well as the shared archive member, telling the
13710 # bitwidth (32 or 64) of that shared object, and providing the
13711 # list of exported symbols of that shared object, eventually
13712 # decorated with the 'weak' keyword
13713 # *) the shared object with the F_LOADONLY flag set, to really avoid
13714 # it being seen by the linker.
13715 # At run time we better use the real file rather than another symlink,
13716 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13717
13718 case $with_aix_soname,$aix_use_runtimelinking in
13719 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13720 # soname into executable. Probably we can add versioning support to
13721 # collect2, so additional links can be useful in future.
13722 aix,yes) # traditional libtool
13723 dynamic_linker='AIX unversionable lib.so'
13724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13725 # instead of lib<name>.a to let people know that these are not
13726 # typical AIX shared libraries.
13727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13728 ;;
13729 aix,no) # traditional AIX only
13730 dynamic_linker='AIX lib.a(lib.so.V)'
13731 # We preserve .a as extension for shared libraries through AIX4.2
13732 # and later when we are not doing run time linking.
13733 library_names_spec='$libname$release.a $libname.a'
13734 soname_spec='$libname$release$shared_ext$major'
13735 ;;
13736 svr4,*) # full svr4 only
13737 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13738 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13739 # We do not specify a path in Import Files, so LIBPATH fires.
13740 shlibpath_overrides_runpath=yes
13741 ;;
13742 *,yes) # both, prefer svr4
13743 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13744 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13745 # unpreferred sharedlib libNAME.a needs extra handling
13746 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"'
13747 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"'
13748 # We do not specify a path in Import Files, so LIBPATH fires.
13749 shlibpath_overrides_runpath=yes
13750 ;;
13751 *,no) # both, prefer aix
13752 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13753 library_names_spec='$libname$release.a $libname.a'
13754 soname_spec='$libname$release$shared_ext$major'
13755 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13756 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)'
13757 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"'
13758 ;;
13759 esac
13760 shlibpath_var=LIBPATH
13761 fi
13762 ;;
13763
13764 amigaos*)
13765 case $host_cpu in
13766 powerpc)
13767 # Since July 2007 AmigaOS4 officially supports .so libraries.
13768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13770 ;;
13771 m68k)
13772 library_names_spec='$libname.ixlibrary $libname.a'
13773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13774 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'
13775 ;;
13776 esac
13777 ;;
13778
13779 beos*)
13780 library_names_spec='$libname$shared_ext'
13781 dynamic_linker="$host_os ld.so"
13782 shlibpath_var=LIBRARY_PATH
13783 ;;
13784
13785 bsdi[45]*)
13786 version_type=linux # correct to gnu/linux during the next big refactor
13787 need_version=no
13788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13789 soname_spec='$libname$release$shared_ext$major'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794 # the default ld.so.conf also contains /usr/contrib/lib and
13795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796 # libtool to hard-code these into programs
13797 ;;
13798
13799 cygwin* | mingw* | pw32* | cegcc*)
13800 version_type=windows
13801 shrext_cmds=.dll
13802 need_version=no
13803 need_lib_prefix=no
13804
13805 case $GCC,$cc_basename in
13806 yes,*)
13807 # gcc
13808 library_names_spec='$libname.dll.a'
13809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13810 postinstall_cmds='base_file=`basename \$file`~
13811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13812 dldir=$destdir/`dirname \$dlpath`~
13813 test -d \$dldir || mkdir -p \$dldir~
13814 $install_prog $dir/$dlname \$dldir/$dlname~
13815 chmod a+x \$dldir/$dlname~
13816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13818 fi'
13819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13820 dlpath=$dir/\$dldll~
13821 $RM \$dlpath'
13822 shlibpath_overrides_runpath=yes
13823
13824 case $host_os in
13825 cygwin*)
13826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13827 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13828
13829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13830 ;;
13831 mingw* | cegcc*)
13832 # MinGW DLLs use traditional 'lib' prefix
13833 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13834 ;;
13835 pw32*)
13836 # pw32 DLLs use 'pw' prefix rather than 'lib'
13837 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13838 ;;
13839 esac
13840 dynamic_linker='Win32 ld.exe'
13841 ;;
13842
13843 *,cl* | *,icl*)
13844 # Native MSVC or ICC
13845 libname_spec='$name'
13846 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13847 library_names_spec='$libname.dll.lib'
13848
13849 case $build_os in
13850 mingw*)
13851 sys_lib_search_path_spec=
13852 lt_save_ifs=$IFS
13853 IFS=';'
13854 for lt_path in $LIB
13855 do
13856 IFS=$lt_save_ifs
13857 # Let DOS variable expansion print the short 8.3 style file name.
13858 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13859 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13860 done
13861 IFS=$lt_save_ifs
13862 # Convert to MSYS style.
13863 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13864 ;;
13865 cygwin*)
13866 # Convert to unix form, then to dos form, then back to unix form
13867 # but this time dos style (no spaces!) so that the unix form looks
13868 # like /cygdrive/c/PROGRA~1:/cygdr...
13869 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13870 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13871 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13872 ;;
13873 *)
13874 sys_lib_search_path_spec=$LIB
13875 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13876 # It is most probably a Windows format PATH.
13877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13878 else
13879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13880 fi
13881 # FIXME: find the short name or the path components, as spaces are
13882 # common. (e.g. "Program Files" -> "PROGRA~1")
13883 ;;
13884 esac
13885
13886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13887 postinstall_cmds='base_file=`basename \$file`~
13888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13889 dldir=$destdir/`dirname \$dlpath`~
13890 test -d \$dldir || mkdir -p \$dldir~
13891 $install_prog $dir/$dlname \$dldir/$dlname'
13892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13893 dlpath=$dir/\$dldll~
13894 $RM \$dlpath'
13895 shlibpath_overrides_runpath=yes
13896 dynamic_linker='Win32 link.exe'
13897 ;;
13898
13899 *)
13900 # Assume MSVC and ICC wrapper
13901 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13902 dynamic_linker='Win32 ld.exe'
13903 ;;
13904 esac
13905 # FIXME: first we should search . and the directory the executable is in
13906 shlibpath_var=PATH
13907 ;;
13908
13909 darwin* | rhapsody*)
13910 dynamic_linker="$host_os dyld"
13911 version_type=darwin
13912 need_lib_prefix=no
13913 need_version=no
13914 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13915 soname_spec='$libname$release$major$shared_ext'
13916 shlibpath_overrides_runpath=yes
13917 shlibpath_var=DYLD_LIBRARY_PATH
13918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13919
13920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13922 ;;
13923
13924 dgux*)
13925 version_type=linux # correct to gnu/linux during the next big refactor
13926 need_lib_prefix=no
13927 need_version=no
13928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13929 soname_spec='$libname$release$shared_ext$major'
13930 shlibpath_var=LD_LIBRARY_PATH
13931 ;;
13932
13933 freebsd* | dragonfly* | midnightbsd*)
13934 # DragonFly does not have aout. When/if they implement a new
13935 # versioning mechanism, adjust this.
13936 if test -x /usr/bin/objformat; then
13937 objformat=`/usr/bin/objformat`
13938 else
13939 case $host_os in
13940 freebsd[23].*) objformat=aout ;;
13941 *) objformat=elf ;;
13942 esac
13943 fi
13944 version_type=freebsd-$objformat
13945 case $version_type in
13946 freebsd-elf*)
13947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13948 soname_spec='$libname$release$shared_ext$major'
13949 need_version=no
13950 need_lib_prefix=no
13951 ;;
13952 freebsd-*)
13953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13954 need_version=yes
13955 ;;
13956 esac
13957 shlibpath_var=LD_LIBRARY_PATH
13958 case $host_os in
13959 freebsd2.*)
13960 shlibpath_overrides_runpath=yes
13961 ;;
13962 freebsd3.[01]* | freebsdelf3.[01]*)
13963 shlibpath_overrides_runpath=yes
13964 hardcode_into_libs=yes
13965 ;;
13966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13968 shlibpath_overrides_runpath=no
13969 hardcode_into_libs=yes
13970 ;;
13971 *) # from 4.6 on, and DragonFly
13972 shlibpath_overrides_runpath=yes
13973 hardcode_into_libs=yes
13974 ;;
13975 esac
13976 ;;
13977
13978 haiku*)
13979 version_type=linux # correct to gnu/linux during the next big refactor
13980 need_lib_prefix=no
13981 need_version=no
13982 dynamic_linker="$host_os runtime_loader"
13983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13984 soname_spec='$libname$release$shared_ext$major'
13985 shlibpath_var=LIBRARY_PATH
13986 shlibpath_overrides_runpath=no
13987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13988 hardcode_into_libs=yes
13989 ;;
13990
13991 hpux9* | hpux10* | hpux11*)
13992 # Give a soname corresponding to the major version so that dld.sl refuses to
13993 # link against other versions.
13994 version_type=sunos
13995 need_lib_prefix=no
13996 need_version=no
13997 case $host_cpu in
13998 ia64*)
13999 shrext_cmds='.so'
14000 hardcode_into_libs=yes
14001 dynamic_linker="$host_os dld.so"
14002 shlibpath_var=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14005 soname_spec='$libname$release$shared_ext$major'
14006 if test 32 = "$HPUX_IA64_MODE"; then
14007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14008 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14009 else
14010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14011 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14012 fi
14013 ;;
14014 hppa*64*)
14015 shrext_cmds='.sl'
14016 hardcode_into_libs=yes
14017 dynamic_linker="$host_os dld.sl"
14018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14021 soname_spec='$libname$release$shared_ext$major'
14022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14024 ;;
14025 *)
14026 shrext_cmds='.sl'
14027 dynamic_linker="$host_os dld.sl"
14028 shlibpath_var=SHLIB_PATH
14029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14031 soname_spec='$libname$release$shared_ext$major'
14032 ;;
14033 esac
14034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14035 postinstall_cmds='chmod 555 $lib'
14036 # or fails outright, so override atomically:
14037 install_override_mode=555
14038 ;;
14039
14040 interix[3-9]*)
14041 version_type=linux # correct to gnu/linux during the next big refactor
14042 need_lib_prefix=no
14043 need_version=no
14044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14045 soname_spec='$libname$release$shared_ext$major'
14046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14047 shlibpath_var=LD_LIBRARY_PATH
14048 shlibpath_overrides_runpath=no
14049 hardcode_into_libs=yes
14050 ;;
14051
14052 irix5* | irix6* | nonstopux*)
14053 case $host_os in
14054 nonstopux*) version_type=nonstopux ;;
14055 *)
14056 if test yes = "$lt_cv_prog_gnu_ld"; then
14057 version_type=linux # correct to gnu/linux during the next big refactor
14058 else
14059 version_type=irix
14060 fi ;;
14061 esac
14062 need_lib_prefix=no
14063 need_version=no
14064 soname_spec='$libname$release$shared_ext$major'
14065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14066 case $host_os in
14067 irix5* | nonstopux*)
14068 libsuff= shlibsuff=
14069 ;;
14070 *)
14071 case $LD in # libtool.m4 will add one of these switches to LD
14072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14073 libsuff= shlibsuff= libmagic=32-bit;;
14074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14075 libsuff=32 shlibsuff=N32 libmagic=N32;;
14076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14078 *) libsuff= shlibsuff= libmagic=never-match;;
14079 esac
14080 ;;
14081 esac
14082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14083 shlibpath_overrides_runpath=no
14084 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14085 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14086 hardcode_into_libs=yes
14087 ;;
14088
14089 # No shared lib support for Linux oldld, aout, or coff.
14090 linux*oldld* | linux*aout* | linux*coff*)
14091 dynamic_linker=no
14092 ;;
14093
14094 linux*android*)
14095 version_type=none # Android doesn't support versioned libraries.
14096 need_lib_prefix=no
14097 need_version=no
14098 library_names_spec='$libname$release$shared_ext'
14099 soname_spec='$libname$release$shared_ext'
14100 finish_cmds=
14101 shlibpath_var=LD_LIBRARY_PATH
14102 shlibpath_overrides_runpath=yes
14103
14104 # This implies no fast_install, which is unacceptable.
14105 # Some rework will be needed to allow for fast_install
14106 # before this can be enabled.
14107 hardcode_into_libs=yes
14108
14109 dynamic_linker='Android linker'
14110 # Don't embed -rpath directories since the linker doesn't support them.
14111 hardcode_libdir_flag_spec='-L$libdir'
14112 ;;
14113
14114 # This must be glibc/ELF.
14115 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14116 version_type=linux # correct to gnu/linux during the next big refactor
14117 need_lib_prefix=no
14118 need_version=no
14119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14120 soname_spec='$libname$release$shared_ext$major'
14121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 shlibpath_overrides_runpath=no
14124
14125 # Some binutils ld are patched to set DT_RUNPATH
14126 if test ${lt_cv_shlibpath_overrides_runpath+y}
14127 then :
14128 printf %s "(cached) " >&6
14129 else $as_nop
14130 lt_cv_shlibpath_overrides_runpath=no
14131 save_LDFLAGS=$LDFLAGS
14132 save_libdir=$libdir
14133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137
14138 int
14139 main (void)
14140 {
14141
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"
14147 then :
14148 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14149 then :
14150 lt_cv_shlibpath_overrides_runpath=yes
14151 fi
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LDFLAGS=$save_LDFLAGS
14156 libdir=$save_libdir
14157
14158 fi
14159
14160 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14161
14162 # This implies no fast_install, which is unacceptable.
14163 # Some rework will be needed to allow for fast_install
14164 # before this can be enabled.
14165 hardcode_into_libs=yes
14166
14167 # Add ABI-specific directories to the system library path.
14168 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14169
14170 # Ideally, we could use ldconfig to report *all* directores which are
14171 # searched for libraries, however this is still not possible. Aside from not
14172 # being certain /sbin/ldconfig is available, command
14173 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14174 # even though it is searched at run-time. Try to do the best guess by
14175 # appending ld.so.conf contents (and includes) to the search path.
14176 if test -f /etc/ld.so.conf; then
14177 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' ' '`
14178 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14179 fi
14180
14181 # We used to test for /lib/ld.so.1 and disable shared libraries on
14182 # powerpc, because MkLinux only supported shared libraries with the
14183 # GNU dynamic linker. Since this was broken with cross compilers,
14184 # most powerpc-linux boxes support dynamic linking these days and
14185 # people can always --disable-shared, the test was removed, and we
14186 # assume the GNU/Linux dynamic linker is in use.
14187 dynamic_linker='GNU/Linux ld.so'
14188 ;;
14189
14190 netbsd*)
14191 version_type=sunos
14192 need_lib_prefix=no
14193 need_version=no
14194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14197 dynamic_linker='NetBSD (a.out) ld.so'
14198 else
14199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14200 soname_spec='$libname$release$shared_ext$major'
14201 dynamic_linker='NetBSD ld.elf_so'
14202 fi
14203 shlibpath_var=LD_LIBRARY_PATH
14204 shlibpath_overrides_runpath=yes
14205 hardcode_into_libs=yes
14206 ;;
14207
14208 newsos6)
14209 version_type=linux # correct to gnu/linux during the next big refactor
14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 ;;
14214
14215 *nto* | *qnx*)
14216 version_type=qnx
14217 need_lib_prefix=no
14218 need_version=no
14219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14220 soname_spec='$libname$release$shared_ext$major'
14221 shlibpath_var=LD_LIBRARY_PATH
14222 shlibpath_overrides_runpath=no
14223 hardcode_into_libs=yes
14224 dynamic_linker='ldqnx.so'
14225 ;;
14226
14227 openbsd* | bitrig*)
14228 version_type=sunos
14229 sys_lib_dlsearch_path_spec=/usr/lib
14230 need_lib_prefix=no
14231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14232 need_version=no
14233 else
14234 need_version=yes
14235 fi
14236 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 shlibpath_overrides_runpath=yes
14240 ;;
14241
14242 os2*)
14243 libname_spec='$name'
14244 version_type=windows
14245 shrext_cmds=.dll
14246 need_version=no
14247 need_lib_prefix=no
14248 # OS/2 can only load a DLL with a base name of 8 characters or less.
14249 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14250 v=$($ECHO $release$versuffix | tr -d .-);
14251 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14252 $ECHO $n$v`$shared_ext'
14253 library_names_spec='${libname}_dll.$libext'
14254 dynamic_linker='OS/2 ld.exe'
14255 shlibpath_var=BEGINLIBPATH
14256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14258 postinstall_cmds='base_file=`basename \$file`~
14259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14260 dldir=$destdir/`dirname \$dlpath`~
14261 test -d \$dldir || mkdir -p \$dldir~
14262 $install_prog $dir/$dlname \$dldir/$dlname~
14263 chmod a+x \$dldir/$dlname~
14264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14266 fi'
14267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14268 dlpath=$dir/\$dldll~
14269 $RM \$dlpath'
14270 ;;
14271
14272 osf3* | osf4* | osf5*)
14273 version_type=osf
14274 need_lib_prefix=no
14275 need_version=no
14276 soname_spec='$libname$release$shared_ext$major'
14277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14278 shlibpath_var=LD_LIBRARY_PATH
14279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14281 ;;
14282
14283 rdos*)
14284 dynamic_linker=no
14285 ;;
14286
14287 solaris*)
14288 version_type=linux # correct to gnu/linux during the next big refactor
14289 need_lib_prefix=no
14290 need_version=no
14291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14292 soname_spec='$libname$release$shared_ext$major'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 shlibpath_overrides_runpath=yes
14295 hardcode_into_libs=yes
14296 # ldd complains unless libraries are executable
14297 postinstall_cmds='chmod +x $lib'
14298 ;;
14299
14300 sunos4*)
14301 version_type=sunos
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 shlibpath_overrides_runpath=yes
14306 if test yes = "$with_gnu_ld"; then
14307 need_lib_prefix=no
14308 fi
14309 need_version=yes
14310 ;;
14311
14312 sysv4 | sysv4.3*)
14313 version_type=linux # correct to gnu/linux during the next big refactor
14314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14315 soname_spec='$libname$release$shared_ext$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 case $host_vendor in
14318 sni)
14319 shlibpath_overrides_runpath=no
14320 need_lib_prefix=no
14321 runpath_var=LD_RUN_PATH
14322 ;;
14323 siemens)
14324 need_lib_prefix=no
14325 ;;
14326 motorola)
14327 need_lib_prefix=no
14328 need_version=no
14329 shlibpath_overrides_runpath=no
14330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14331 ;;
14332 esac
14333 ;;
14334
14335 sysv4*MP*)
14336 if test -d /usr/nec; then
14337 version_type=linux # correct to gnu/linux during the next big refactor
14338 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14339 soname_spec='$libname$shared_ext.$major'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 fi
14342 ;;
14343
14344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14345 version_type=sco
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14349 soname_spec='$libname$release$shared_ext$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath=yes
14352 hardcode_into_libs=yes
14353 if test yes = "$with_gnu_ld"; then
14354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14355 else
14356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14357 case $host_os in
14358 sco3.2v5*)
14359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14360 ;;
14361 esac
14362 fi
14363 sys_lib_dlsearch_path_spec='/usr/lib'
14364 ;;
14365
14366 tpf*)
14367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14368 version_type=linux # correct to gnu/linux during the next big refactor
14369 need_lib_prefix=no
14370 need_version=no
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372 shlibpath_var=LD_LIBRARY_PATH
14373 shlibpath_overrides_runpath=no
14374 hardcode_into_libs=yes
14375 ;;
14376
14377 uts4*)
14378 version_type=linux # correct to gnu/linux during the next big refactor
14379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14380 soname_spec='$libname$release$shared_ext$major'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 ;;
14383
14384 *)
14385 dynamic_linker=no
14386 ;;
14387 esac
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14389 printf "%s\n" "$dynamic_linker" >&6; }
14390 test no = "$dynamic_linker" && can_build_shared=no
14391
14392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14393 if test yes = "$GCC"; then
14394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14395 fi
14396
14397 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14398 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14399 fi
14400
14401 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14402 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14403 fi
14404
14405 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14406 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14407
14408 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14409 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14410
14411 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14412 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14511 printf %s "checking how to hardcode library paths into programs... " >&6; }
14512 hardcode_action=
14513 if test -n "$hardcode_libdir_flag_spec" ||
14514 test -n "$runpath_var" ||
14515 test yes = "$hardcode_automatic"; then
14516
14517 # We can hardcode non-existent directories.
14518 if test no != "$hardcode_direct" &&
14519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14520 # have to relink, otherwise we might link with an installed library
14521 # when we should be linking with a yet-to-be-installed one
14522 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14523 test no != "$hardcode_minus_L"; then
14524 # Linking always hardcodes the temporary library directory.
14525 hardcode_action=relink
14526 else
14527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14528 hardcode_action=immediate
14529 fi
14530 else
14531 # We cannot hardcode anything, or else we can only hardcode existing
14532 # directories.
14533 hardcode_action=unsupported
14534 fi
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14536 printf "%s\n" "$hardcode_action" >&6; }
14537
14538 if test relink = "$hardcode_action" ||
14539 test yes = "$inherit_rpath"; then
14540 # Fast installation is not supported
14541 enable_fast_install=no
14542 elif test yes = "$shlibpath_overrides_runpath" ||
14543 test no = "$enable_shared"; then
14544 # Fast installation is not necessary
14545 enable_fast_install=needless
14546 fi
14547
14548
14549
14550
14551
14552
14553 if test yes != "$enable_dlopen"; then
14554 enable_dlopen=unknown
14555 enable_dlopen_self=unknown
14556 enable_dlopen_self_static=unknown
14557 else
14558 lt_cv_dlopen=no
14559 lt_cv_dlopen_libs=
14560
14561 case $host_os in
14562 beos*)
14563 lt_cv_dlopen=load_add_on
14564 lt_cv_dlopen_libs=
14565 lt_cv_dlopen_self=yes
14566 ;;
14567
14568 mingw* | pw32* | cegcc*)
14569 lt_cv_dlopen=LoadLibrary
14570 lt_cv_dlopen_libs=
14571 ;;
14572
14573 cygwin*)
14574 lt_cv_dlopen=dlopen
14575 lt_cv_dlopen_libs=
14576 ;;
14577
14578 darwin*)
14579 # if libdl is installed we need to link against it
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14581 printf %s "checking for dlopen in -ldl... " >&6; }
14582 if test ${ac_cv_lib_dl_dlopen+y}
14583 then :
14584 printf %s "(cached) " >&6
14585 else $as_nop
14586 ac_check_lib_save_LIBS=$LIBS
14587 LIBS="-ldl $LIBS"
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590
14591 /* Override any GCC internal prototype to avoid an error.
14592 Use char because int might match the return type of a GCC
14593 builtin and then its argument prototype would still apply. */
14594 char dlopen ();
14595 int
14596 main (void)
14597 {
14598 return dlopen ();
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 if ac_fn_c_try_link "$LINENO"
14604 then :
14605 ac_cv_lib_dl_dlopen=yes
14606 else $as_nop
14607 ac_cv_lib_dl_dlopen=no
14608 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14610 conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_check_lib_save_LIBS
14612 fi
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14614 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14615 if test "x$ac_cv_lib_dl_dlopen" = xyes
14616 then :
14617 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14618 else $as_nop
14619
14620 lt_cv_dlopen=dyld
14621 lt_cv_dlopen_libs=
14622 lt_cv_dlopen_self=yes
14623
14624 fi
14625
14626 ;;
14627
14628 tpf*)
14629 # Don't try to run any link tests for TPF. We know it's impossible
14630 # because TPF is a cross-compiler, and we know how we open DSOs.
14631 lt_cv_dlopen=dlopen
14632 lt_cv_dlopen_libs=
14633 lt_cv_dlopen_self=no
14634 ;;
14635
14636 *)
14637 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14638 if test "x$ac_cv_func_shl_load" = xyes
14639 then :
14640 lt_cv_dlopen=shl_load
14641 else $as_nop
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14643 printf %s "checking for shl_load in -ldld... " >&6; }
14644 if test ${ac_cv_lib_dld_shl_load+y}
14645 then :
14646 printf %s "(cached) " >&6
14647 else $as_nop
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-ldld $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 char shl_load ();
14657 int
14658 main (void)
14659 {
14660 return shl_load ();
14661 ;
14662 return 0;
14663 }
14664 _ACEOF
14665 if ac_fn_c_try_link "$LINENO"
14666 then :
14667 ac_cv_lib_dld_shl_load=yes
14668 else $as_nop
14669 ac_cv_lib_dld_shl_load=no
14670 fi
14671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14672 conftest$ac_exeext conftest.$ac_ext
14673 LIBS=$ac_check_lib_save_LIBS
14674 fi
14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14676 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14677 if test "x$ac_cv_lib_dld_shl_load" = xyes
14678 then :
14679 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14680 else $as_nop
14681 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14682 if test "x$ac_cv_func_dlopen" = xyes
14683 then :
14684 lt_cv_dlopen=dlopen
14685 else $as_nop
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14687 printf %s "checking for dlopen in -ldl... " >&6; }
14688 if test ${ac_cv_lib_dl_dlopen+y}
14689 then :
14690 printf %s "(cached) " >&6
14691 else $as_nop
14692 ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-ldl $LIBS"
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696
14697 /* Override any GCC internal prototype to avoid an error.
14698 Use char because int might match the return type of a GCC
14699 builtin and then its argument prototype would still apply. */
14700 char dlopen ();
14701 int
14702 main (void)
14703 {
14704 return dlopen ();
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"
14710 then :
14711 ac_cv_lib_dl_dlopen=yes
14712 else $as_nop
14713 ac_cv_lib_dl_dlopen=no
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14718 fi
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14720 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14721 if test "x$ac_cv_lib_dl_dlopen" = xyes
14722 then :
14723 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14724 else $as_nop
14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14726 printf %s "checking for dlopen in -lsvld... " >&6; }
14727 if test ${ac_cv_lib_svld_dlopen+y}
14728 then :
14729 printf %s "(cached) " >&6
14730 else $as_nop
14731 ac_check_lib_save_LIBS=$LIBS
14732 LIBS="-lsvld $LIBS"
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735
14736 /* Override any GCC internal prototype to avoid an error.
14737 Use char because int might match the return type of a GCC
14738 builtin and then its argument prototype would still apply. */
14739 char dlopen ();
14740 int
14741 main (void)
14742 {
14743 return dlopen ();
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"
14749 then :
14750 ac_cv_lib_svld_dlopen=yes
14751 else $as_nop
14752 ac_cv_lib_svld_dlopen=no
14753 fi
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14755 conftest$ac_exeext conftest.$ac_ext
14756 LIBS=$ac_check_lib_save_LIBS
14757 fi
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14759 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14760 if test "x$ac_cv_lib_svld_dlopen" = xyes
14761 then :
14762 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14763 else $as_nop
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14765 printf %s "checking for dld_link in -ldld... " >&6; }
14766 if test ${ac_cv_lib_dld_dld_link+y}
14767 then :
14768 printf %s "(cached) " >&6
14769 else $as_nop
14770 ac_check_lib_save_LIBS=$LIBS
14771 LIBS="-ldld $LIBS"
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774
14775 /* Override any GCC internal prototype to avoid an error.
14776 Use char because int might match the return type of a GCC
14777 builtin and then its argument prototype would still apply. */
14778 char dld_link ();
14779 int
14780 main (void)
14781 {
14782 return dld_link ();
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 if ac_fn_c_try_link "$LINENO"
14788 then :
14789 ac_cv_lib_dld_dld_link=yes
14790 else $as_nop
14791 ac_cv_lib_dld_dld_link=no
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14796 fi
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14798 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14799 if test "x$ac_cv_lib_dld_dld_link" = xyes
14800 then :
14801 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14802 fi
14803
14804
14805 fi
14806
14807
14808 fi
14809
14810
14811 fi
14812
14813
14814 fi
14815
14816
14817 fi
14818
14819 ;;
14820 esac
14821
14822 if test no = "$lt_cv_dlopen"; then
14823 enable_dlopen=no
14824 else
14825 enable_dlopen=yes
14826 fi
14827
14828 case $lt_cv_dlopen in
14829 dlopen)
14830 save_CPPFLAGS=$CPPFLAGS
14831 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14832
14833 save_LDFLAGS=$LDFLAGS
14834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14835
14836 save_LIBS=$LIBS
14837 LIBS="$lt_cv_dlopen_libs $LIBS"
14838
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14840 printf %s "checking whether a program can dlopen itself... " >&6; }
14841 if test ${lt_cv_dlopen_self+y}
14842 then :
14843 printf %s "(cached) " >&6
14844 else $as_nop
14845 if test yes = "$cross_compiling"; then :
14846 lt_cv_dlopen_self=cross
14847 else
14848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14849 lt_status=$lt_dlunknown
14850 cat > conftest.$ac_ext <<_LT_EOF
14851 #line $LINENO "configure"
14852 #include "confdefs.h"
14853
14854 #if HAVE_DLFCN_H
14855 #include <dlfcn.h>
14856 #endif
14857
14858 #include <stdio.h>
14859
14860 #ifdef RTLD_GLOBAL
14861 # define LT_DLGLOBAL RTLD_GLOBAL
14862 #else
14863 # ifdef DL_GLOBAL
14864 # define LT_DLGLOBAL DL_GLOBAL
14865 # else
14866 # define LT_DLGLOBAL 0
14867 # endif
14868 #endif
14869
14870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14871 find out it does not work in some platform. */
14872 #ifndef LT_DLLAZY_OR_NOW
14873 # ifdef RTLD_LAZY
14874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14875 # else
14876 # ifdef DL_LAZY
14877 # define LT_DLLAZY_OR_NOW DL_LAZY
14878 # else
14879 # ifdef RTLD_NOW
14880 # define LT_DLLAZY_OR_NOW RTLD_NOW
14881 # else
14882 # ifdef DL_NOW
14883 # define LT_DLLAZY_OR_NOW DL_NOW
14884 # else
14885 # define LT_DLLAZY_OR_NOW 0
14886 # endif
14887 # endif
14888 # endif
14889 # endif
14890 #endif
14891
14892 /* When -fvisibility=hidden is used, assume the code has been annotated
14893 correspondingly for the symbols needed. */
14894 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14895 int fnord () __attribute__((visibility("default")));
14896 #endif
14897
14898 int fnord () { return 42; }
14899 int main ()
14900 {
14901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14902 int status = $lt_dlunknown;
14903
14904 if (self)
14905 {
14906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14907 else
14908 {
14909 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14910 else puts (dlerror ());
14911 }
14912 /* dlclose (self); */
14913 }
14914 else
14915 puts (dlerror ());
14916
14917 return status;
14918 }
14919 _LT_EOF
14920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14921 (eval $ac_link) 2>&5
14922 ac_status=$?
14923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14924 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14925 (./conftest; exit; ) >&5 2>/dev/null
14926 lt_status=$?
14927 case x$lt_status in
14928 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14929 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14930 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14931 esac
14932 else :
14933 # compilation failed
14934 lt_cv_dlopen_self=no
14935 fi
14936 fi
14937 rm -fr conftest*
14938
14939
14940 fi
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14942 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14943
14944 if test yes = "$lt_cv_dlopen_self"; then
14945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14947 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14948 if test ${lt_cv_dlopen_self_static+y}
14949 then :
14950 printf %s "(cached) " >&6
14951 else $as_nop
14952 if test yes = "$cross_compiling"; then :
14953 lt_cv_dlopen_self_static=cross
14954 else
14955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14956 lt_status=$lt_dlunknown
14957 cat > conftest.$ac_ext <<_LT_EOF
14958 #line $LINENO "configure"
14959 #include "confdefs.h"
14960
14961 #if HAVE_DLFCN_H
14962 #include <dlfcn.h>
14963 #endif
14964
14965 #include <stdio.h>
14966
14967 #ifdef RTLD_GLOBAL
14968 # define LT_DLGLOBAL RTLD_GLOBAL
14969 #else
14970 # ifdef DL_GLOBAL
14971 # define LT_DLGLOBAL DL_GLOBAL
14972 # else
14973 # define LT_DLGLOBAL 0
14974 # endif
14975 #endif
14976
14977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14978 find out it does not work in some platform. */
14979 #ifndef LT_DLLAZY_OR_NOW
14980 # ifdef RTLD_LAZY
14981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14982 # else
14983 # ifdef DL_LAZY
14984 # define LT_DLLAZY_OR_NOW DL_LAZY
14985 # else
14986 # ifdef RTLD_NOW
14987 # define LT_DLLAZY_OR_NOW RTLD_NOW
14988 # else
14989 # ifdef DL_NOW
14990 # define LT_DLLAZY_OR_NOW DL_NOW
14991 # else
14992 # define LT_DLLAZY_OR_NOW 0
14993 # endif
14994 # endif
14995 # endif
14996 # endif
14997 #endif
14998
14999 /* When -fvisibility=hidden is used, assume the code has been annotated
15000 correspondingly for the symbols needed. */
15001 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15002 int fnord () __attribute__((visibility("default")));
15003 #endif
15004
15005 int fnord () { return 42; }
15006 int main ()
15007 {
15008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15009 int status = $lt_dlunknown;
15010
15011 if (self)
15012 {
15013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15014 else
15015 {
15016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15017 else puts (dlerror ());
15018 }
15019 /* dlclose (self); */
15020 }
15021 else
15022 puts (dlerror ());
15023
15024 return status;
15025 }
15026 _LT_EOF
15027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15028 (eval $ac_link) 2>&5
15029 ac_status=$?
15030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15032 (./conftest; exit; ) >&5 2>/dev/null
15033 lt_status=$?
15034 case x$lt_status in
15035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15037 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15038 esac
15039 else :
15040 # compilation failed
15041 lt_cv_dlopen_self_static=no
15042 fi
15043 fi
15044 rm -fr conftest*
15045
15046
15047 fi
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15049 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15050 fi
15051
15052 CPPFLAGS=$save_CPPFLAGS
15053 LDFLAGS=$save_LDFLAGS
15054 LIBS=$save_LIBS
15055 ;;
15056 esac
15057
15058 case $lt_cv_dlopen_self in
15059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15060 *) enable_dlopen_self=unknown ;;
15061 esac
15062
15063 case $lt_cv_dlopen_self_static in
15064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15065 *) enable_dlopen_self_static=unknown ;;
15066 esac
15067 fi
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085 striplib=
15086 old_striplib=
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15088 printf %s "checking whether stripping libraries is possible... " >&6; }
15089 if test -z "$STRIP"; then
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 printf "%s\n" "no" >&6; }
15092 else
15093 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15094 old_striplib="$STRIP --strip-debug"
15095 striplib="$STRIP --strip-unneeded"
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 printf "%s\n" "yes" >&6; }
15098 else
15099 case $host_os in
15100 darwin*)
15101 # FIXME - insert some real tests, host_os isn't really good enough
15102 striplib="$STRIP -x"
15103 old_striplib="$STRIP -S"
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15105 printf "%s\n" "yes" >&6; }
15106 ;;
15107 freebsd*)
15108 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15109 old_striplib="$STRIP --strip-debug"
15110 striplib="$STRIP --strip-unneeded"
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15112 printf "%s\n" "yes" >&6; }
15113 else
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 printf "%s\n" "no" >&6; }
15116 fi
15117 ;;
15118 *)
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 printf "%s\n" "no" >&6; }
15121 ;;
15122 esac
15123 fi
15124 fi
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137 # Report what library types will actually be built
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15139 printf %s "checking if libtool supports shared libraries... " >&6; }
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15141 printf "%s\n" "$can_build_shared" >&6; }
15142
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15144 printf %s "checking whether to build shared libraries... " >&6; }
15145 test no = "$can_build_shared" && enable_shared=no
15146
15147 # On AIX, shared libraries and static libraries use the same namespace, and
15148 # are all built from PIC.
15149 case $host_os in
15150 aix3*)
15151 test yes = "$enable_shared" && enable_static=no
15152 if test -n "$RANLIB"; then
15153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15154 postinstall_cmds='$RANLIB $lib'
15155 fi
15156 ;;
15157
15158 aix[4-9]*)
15159 if test ia64 != "$host_cpu"; then
15160 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15161 yes,aix,yes) ;; # shared object as lib.so file only
15162 yes,svr4,*) ;; # shared object as lib.so archive member only
15163 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15164 esac
15165 fi
15166 ;;
15167 esac
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15169 printf "%s\n" "$enable_shared" >&6; }
15170
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15172 printf %s "checking whether to build static libraries... " >&6; }
15173 # Make sure either enable_shared or enable_static is yes.
15174 test yes = "$enable_shared" || enable_static=yes
15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15176 printf "%s\n" "$enable_static" >&6; }
15177
15178
15179
15180
15181 fi
15182 ac_ext=cpp
15183 ac_cpp='$CXXCPP $CPPFLAGS'
15184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15187
15188 CC=$lt_save_CC
15189
15190 if test -n "$CXX" && ( test no != "$CXX" &&
15191 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15192 (test g++ != "$CXX"))); then
15193 ac_ext=cpp
15194 ac_cpp='$CXXCPP $CPPFLAGS'
15195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15199 printf %s "checking how to run the C++ preprocessor... " >&6; }
15200 if test -z "$CXXCPP"; then
15201 if test ${ac_cv_prog_CXXCPP+y}
15202 then :
15203 printf %s "(cached) " >&6
15204 else $as_nop
15205 # Double quotes because $CXX needs to be expanded
15206 for CXXCPP in "$CXX -E" cpp /lib/cpp
15207 do
15208 ac_preproc_ok=false
15209 for ac_cxx_preproc_warn_flag in '' yes
15210 do
15211 # Use a header file that comes with gcc, so configuring glibc
15212 # with a fresh cross-compiler works.
15213 # On the NeXT, cc -E runs the code through the compiler's parser,
15214 # not just through cpp. "Syntax error" is here to catch this case.
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #include <limits.h>
15218 Syntax error
15219 _ACEOF
15220 if ac_fn_cxx_try_cpp "$LINENO"
15221 then :
15222
15223 else $as_nop
15224 # Broken: fails on valid input.
15225 continue
15226 fi
15227 rm -f conftest.err conftest.i conftest.$ac_ext
15228
15229 # OK, works on sane cases. Now check whether nonexistent headers
15230 # can be detected and how.
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 #include <ac_nonexistent.h>
15234 _ACEOF
15235 if ac_fn_cxx_try_cpp "$LINENO"
15236 then :
15237 # Broken: success on invalid input.
15238 continue
15239 else $as_nop
15240 # Passes both tests.
15241 ac_preproc_ok=:
15242 break
15243 fi
15244 rm -f conftest.err conftest.i conftest.$ac_ext
15245
15246 done
15247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15248 rm -f conftest.i conftest.err conftest.$ac_ext
15249 if $ac_preproc_ok
15250 then :
15251 break
15252 fi
15253
15254 done
15255 ac_cv_prog_CXXCPP=$CXXCPP
15256
15257 fi
15258 CXXCPP=$ac_cv_prog_CXXCPP
15259 else
15260 ac_cv_prog_CXXCPP=$CXXCPP
15261 fi
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15263 printf "%s\n" "$CXXCPP" >&6; }
15264 ac_preproc_ok=false
15265 for ac_cxx_preproc_warn_flag in '' yes
15266 do
15267 # Use a header file that comes with gcc, so configuring glibc
15268 # with a fresh cross-compiler works.
15269 # On the NeXT, cc -E runs the code through the compiler's parser,
15270 # not just through cpp. "Syntax error" is here to catch this case.
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <limits.h>
15274 Syntax error
15275 _ACEOF
15276 if ac_fn_cxx_try_cpp "$LINENO"
15277 then :
15278
15279 else $as_nop
15280 # Broken: fails on valid input.
15281 continue
15282 fi
15283 rm -f conftest.err conftest.i conftest.$ac_ext
15284
15285 # OK, works on sane cases. Now check whether nonexistent headers
15286 # can be detected and how.
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 #include <ac_nonexistent.h>
15290 _ACEOF
15291 if ac_fn_cxx_try_cpp "$LINENO"
15292 then :
15293 # Broken: success on invalid input.
15294 continue
15295 else $as_nop
15296 # Passes both tests.
15297 ac_preproc_ok=:
15298 break
15299 fi
15300 rm -f conftest.err conftest.i conftest.$ac_ext
15301
15302 done
15303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15304 rm -f conftest.i conftest.err conftest.$ac_ext
15305 if $ac_preproc_ok
15306 then :
15307
15308 else $as_nop
15309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15310 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15311 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15312 See \`config.log' for more details" "$LINENO" 5; }
15313 fi
15314
15315 ac_ext=cpp
15316 ac_cpp='$CXXCPP $CPPFLAGS'
15317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15320
15321 else
15322 _lt_caught_CXX_error=yes
15323 fi
15324
15325 ac_ext=cpp
15326 ac_cpp='$CXXCPP $CPPFLAGS'
15327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15330
15331 archive_cmds_need_lc_CXX=no
15332 allow_undefined_flag_CXX=
15333 always_export_symbols_CXX=no
15334 archive_expsym_cmds_CXX=
15335 compiler_needs_object_CXX=no
15336 export_dynamic_flag_spec_CXX=
15337 hardcode_direct_CXX=no
15338 hardcode_direct_absolute_CXX=no
15339 hardcode_libdir_flag_spec_CXX=
15340 hardcode_libdir_separator_CXX=
15341 hardcode_minus_L_CXX=no
15342 hardcode_shlibpath_var_CXX=unsupported
15343 hardcode_automatic_CXX=no
15344 inherit_rpath_CXX=no
15345 module_cmds_CXX=
15346 module_expsym_cmds_CXX=
15347 link_all_deplibs_CXX=unknown
15348 old_archive_cmds_CXX=$old_archive_cmds
15349 reload_flag_CXX=$reload_flag
15350 reload_cmds_CXX=$reload_cmds
15351 no_undefined_flag_CXX=
15352 whole_archive_flag_spec_CXX=
15353 enable_shared_with_static_runtimes_CXX=no
15354
15355 # Source file extension for C++ test sources.
15356 ac_ext=cpp
15357
15358 # Object file extension for compiled C++ test sources.
15359 objext=o
15360 objext_CXX=$objext
15361
15362 # No sense in running all these tests if we already determined that
15363 # the CXX compiler isn't working. Some variables (like enable_shared)
15364 # are currently assumed to apply to all compilers on this platform,
15365 # and will be corrupted by setting them based on a non-working compiler.
15366 if test yes != "$_lt_caught_CXX_error"; then
15367 # Code to be used in simple compile tests
15368 lt_simple_compile_test_code="int some_variable = 0;"
15369
15370 # Code to be used in simple link tests
15371 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15372
15373 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15374
15375
15376
15377
15378
15379
15380 # If no C compiler was specified, use CC.
15381 LTCC=${LTCC-"$CC"}
15382
15383 # If no C compiler flags were specified, use CFLAGS.
15384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15385
15386 # Allow CC to be a program name with arguments.
15387 compiler=$CC
15388
15389
15390 # save warnings/boilerplate of simple test code
15391 ac_outfile=conftest.$ac_objext
15392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15394 _lt_compiler_boilerplate=`cat conftest.err`
15395 $RM conftest*
15396
15397 ac_outfile=conftest.$ac_objext
15398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15400 _lt_linker_boilerplate=`cat conftest.err`
15401 $RM -r conftest*
15402
15403
15404 # Allow CC to be a program name with arguments.
15405 lt_save_CC=$CC
15406 lt_save_CFLAGS=$CFLAGS
15407 lt_save_LD=$LD
15408 lt_save_GCC=$GCC
15409 GCC=$GXX
15410 lt_save_with_gnu_ld=$with_gnu_ld
15411 lt_save_path_LD=$lt_cv_path_LD
15412 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15413 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15414 else
15415 $as_unset lt_cv_prog_gnu_ld
15416 fi
15417 if test -n "${lt_cv_path_LDCXX+set}"; then
15418 lt_cv_path_LD=$lt_cv_path_LDCXX
15419 else
15420 $as_unset lt_cv_path_LD
15421 fi
15422 test -z "${LDCXX+set}" || LD=$LDCXX
15423 CC=${CXX-"c++"}
15424 CFLAGS=$CXXFLAGS
15425 compiler=$CC
15426 compiler_CXX=$CC
15427 func_cc_basename $compiler
15428 cc_basename=$func_cc_basename_result
15429
15430
15431 if test -n "$compiler"; then
15432 # We don't want -fno-exception when compiling C++ code, so set the
15433 # no_builtin_flag separately
15434 if test yes = "$GXX"; then
15435 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15436 else
15437 lt_prog_compiler_no_builtin_flag_CXX=
15438 fi
15439
15440 if test yes = "$GXX"; then
15441 # Set up default GNU C++ configuration
15442
15443
15444
15445 # Check whether --with-gnu-ld was given.
15446 if test ${with_gnu_ld+y}
15447 then :
15448 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15449 else $as_nop
15450 with_gnu_ld=no
15451 fi
15452
15453 ac_prog=ld
15454 if test yes = "$GCC"; then
15455 # Check if gcc -print-prog-name=ld gives a path.
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15457 printf %s "checking for ld used by $CC... " >&6; }
15458 case $host in
15459 *-*-mingw*)
15460 # gcc leaves a trailing carriage return, which upsets mingw
15461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15462 *)
15463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15464 esac
15465 case $ac_prog in
15466 # Accept absolute paths.
15467 [\\/]* | ?:[\\/]*)
15468 re_direlt='/[^/][^/]*/\.\./'
15469 # Canonicalize the pathname of ld
15470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15473 done
15474 test -z "$LD" && LD=$ac_prog
15475 ;;
15476 "")
15477 # If it fails, then pretend we aren't using GCC.
15478 ac_prog=ld
15479 ;;
15480 *)
15481 # If it is relative, then search for the first ld in PATH.
15482 with_gnu_ld=unknown
15483 ;;
15484 esac
15485 elif test yes = "$with_gnu_ld"; then
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15487 printf %s "checking for GNU ld... " >&6; }
15488 else
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15490 printf %s "checking for non-GNU ld... " >&6; }
15491 fi
15492 if test ${lt_cv_path_LD+y}
15493 then :
15494 printf %s "(cached) " >&6
15495 else $as_nop
15496 if test -z "$LD"; then
15497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15498 for ac_dir in $PATH; do
15499 IFS=$lt_save_ifs
15500 test -z "$ac_dir" && ac_dir=.
15501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15502 lt_cv_path_LD=$ac_dir/$ac_prog
15503 # Check to see if the program is GNU ld. I'd rather use --version,
15504 # but apparently some variants of GNU ld only accept -v.
15505 # Break only if it was the GNU/non-GNU ld that we prefer.
15506 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15507 *GNU* | *'with BFD'*)
15508 test no != "$with_gnu_ld" && break
15509 ;;
15510 *)
15511 test yes != "$with_gnu_ld" && break
15512 ;;
15513 esac
15514 fi
15515 done
15516 IFS=$lt_save_ifs
15517 else
15518 lt_cv_path_LD=$LD # Let the user override the test with a path.
15519 fi
15520 fi
15521
15522 LD=$lt_cv_path_LD
15523 if test -n "$LD"; then
15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15525 printf "%s\n" "$LD" >&6; }
15526 else
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 printf "%s\n" "no" >&6; }
15529 fi
15530 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15532 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15533 if test ${lt_cv_prog_gnu_ld+y}
15534 then :
15535 printf %s "(cached) " >&6
15536 else $as_nop
15537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15538 case `$LD -v 2>&1 </dev/null` in
15539 *GNU* | *'with BFD'*)
15540 lt_cv_prog_gnu_ld=yes
15541 ;;
15542 *)
15543 lt_cv_prog_gnu_ld=no
15544 ;;
15545 esac
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15548 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15549 with_gnu_ld=$lt_cv_prog_gnu_ld
15550
15551
15552
15553
15554
15555
15556
15557 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15558 # archiving commands below assume that GNU ld is being used.
15559 if test yes = "$with_gnu_ld"; then
15560 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15561 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'
15562
15563 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15564 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15565
15566 # If archive_cmds runs LD, not CC, wlarc should be empty
15567 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15568 # investigate it a little bit more. (MM)
15569 wlarc='$wl'
15570
15571 # ancient GNU ld didn't support --whole-archive et. al.
15572 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15573 $GREP 'no-whole-archive' > /dev/null; then
15574 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15575 else
15576 whole_archive_flag_spec_CXX=
15577 fi
15578 else
15579 with_gnu_ld=no
15580 wlarc=
15581
15582 # A generic and very simple default shared library creation
15583 # command for GNU C++ for the case where it uses the native
15584 # linker, instead of GNU ld. If possible, this setting should
15585 # overridden to take advantage of the native linker features on
15586 # the platform it is being used on.
15587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15588 fi
15589
15590 # Commands to make compiler produce verbose output that lists
15591 # what "hidden" libraries, object files and flags are used when
15592 # linking a shared library.
15593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15594
15595 else
15596 GXX=no
15597 with_gnu_ld=no
15598 wlarc=
15599 fi
15600
15601 # PORTME: fill in a description of your system's C++ link characteristics
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15603 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15604 ld_shlibs_CXX=yes
15605 case $host_os in
15606 aix3*)
15607 # FIXME: insert proper C++ library support
15608 ld_shlibs_CXX=no
15609 ;;
15610 aix[4-9]*)
15611 if test ia64 = "$host_cpu"; then
15612 # On IA64, the linker does run time linking by default, so we don't
15613 # have to do anything special.
15614 aix_use_runtimelinking=no
15615 exp_sym_flag='-Bexport'
15616 no_entry_flag=
15617 else
15618 aix_use_runtimelinking=no
15619
15620 # Test if we are trying to use run time linking or normal
15621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15622 # have runtime linking enabled, and use it for executables.
15623 # For shared libraries, we enable/disable runtime linking
15624 # depending on the kind of the shared library created -
15625 # when "with_aix_soname,aix_use_runtimelinking" is:
15626 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15627 # "aix,yes" lib.so shared, rtl:yes, for executables
15628 # lib.a static archive
15629 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15630 # lib.a(lib.so.V) shared, rtl:no, for executables
15631 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15632 # lib.a(lib.so.V) shared, rtl:no
15633 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15634 # lib.a static archive
15635 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15636 for ld_flag in $LDFLAGS; do
15637 case $ld_flag in
15638 *-brtl*)
15639 aix_use_runtimelinking=yes
15640 break
15641 ;;
15642 esac
15643 done
15644 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15645 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15646 # so we don't have lib.a shared libs to link our executables.
15647 # We have to force runtime linking in this case.
15648 aix_use_runtimelinking=yes
15649 LDFLAGS="$LDFLAGS -Wl,-brtl"
15650 fi
15651 ;;
15652 esac
15653
15654 exp_sym_flag='-bexport'
15655 no_entry_flag='-bnoentry'
15656 fi
15657
15658 # When large executables or shared objects are built, AIX ld can
15659 # have problems creating the table of contents. If linking a library
15660 # or program results in "error TOC overflow" add -mminimal-toc to
15661 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15662 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15663
15664 archive_cmds_CXX=''
15665 hardcode_direct_CXX=yes
15666 hardcode_direct_absolute_CXX=yes
15667 hardcode_libdir_separator_CXX=':'
15668 link_all_deplibs_CXX=yes
15669 file_list_spec_CXX='$wl-f,'
15670 case $with_aix_soname,$aix_use_runtimelinking in
15671 aix,*) ;; # no import file
15672 svr4,* | *,yes) # use import file
15673 # The Import File defines what to hardcode.
15674 hardcode_direct_CXX=no
15675 hardcode_direct_absolute_CXX=no
15676 ;;
15677 esac
15678
15679 if test yes = "$GXX"; then
15680 case $host_os in aix4.[012]|aix4.[012].*)
15681 # We only want to do this on AIX 4.2 and lower, the check
15682 # below for broken collect2 doesn't work under 4.3+
15683 collect2name=`$CC -print-prog-name=collect2`
15684 if test -f "$collect2name" &&
15685 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15686 then
15687 # We have reworked collect2
15688 :
15689 else
15690 # We have old collect2
15691 hardcode_direct_CXX=unsupported
15692 # It fails to find uninstalled libraries when the uninstalled
15693 # path is not listed in the libpath. Setting hardcode_minus_L
15694 # to unsupported forces relinking
15695 hardcode_minus_L_CXX=yes
15696 hardcode_libdir_flag_spec_CXX='-L$libdir'
15697 hardcode_libdir_separator_CXX=
15698 fi
15699 esac
15700 shared_flag='-shared'
15701 if test yes = "$aix_use_runtimelinking"; then
15702 shared_flag=$shared_flag' $wl-G'
15703 fi
15704 # Need to ensure runtime linking is disabled for the traditional
15705 # shared library, or the linker may eventually find shared libraries
15706 # /with/ Import File - we do not want to mix them.
15707 shared_flag_aix='-shared'
15708 shared_flag_svr4='-shared $wl-G'
15709 else
15710 # not using gcc
15711 if test ia64 = "$host_cpu"; then
15712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15713 # chokes on -Wl,-G. The following line is correct:
15714 shared_flag='-G'
15715 else
15716 if test yes = "$aix_use_runtimelinking"; then
15717 shared_flag='$wl-G'
15718 else
15719 shared_flag='$wl-bM:SRE'
15720 fi
15721 shared_flag_aix='$wl-bM:SRE'
15722 shared_flag_svr4='$wl-G'
15723 fi
15724 fi
15725
15726 export_dynamic_flag_spec_CXX='$wl-bexpall'
15727 # It seems that -bexpall does not export symbols beginning with
15728 # underscore (_), so it is better to generate a list of symbols to
15729 # export.
15730 always_export_symbols_CXX=yes
15731 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15732 # Warning - without using the other runtime loading flags (-brtl),
15733 # -berok will link without error, but may produce a broken library.
15734 # The "-G" linker flag allows undefined symbols.
15735 no_undefined_flag_CXX='-bernotok'
15736 # Determine the default libpath from the value encoded in an empty
15737 # executable.
15738 if test set = "${lt_cv_aix_libpath+set}"; then
15739 aix_libpath=$lt_cv_aix_libpath
15740 else
15741 if test ${lt_cv_aix_libpath__CXX+y}
15742 then :
15743 printf %s "(cached) " >&6
15744 else $as_nop
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747
15748 int
15749 main (void)
15750 {
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_cxx_try_link "$LINENO"
15757 then :
15758
15759 lt_aix_libpath_sed='
15760 /Import File Strings/,/^$/ {
15761 /^0/ {
15762 s/^0 *\([^ ]*\) *$/\1/
15763 p
15764 }
15765 }'
15766 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15767 # Check for a 64-bit object if we didn't find anything.
15768 if test -z "$lt_cv_aix_libpath__CXX"; then
15769 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15770 fi
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15773 conftest$ac_exeext conftest.$ac_ext
15774 if test -z "$lt_cv_aix_libpath__CXX"; then
15775 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15776 fi
15777
15778 fi
15779
15780 aix_libpath=$lt_cv_aix_libpath__CXX
15781 fi
15782
15783 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15784
15785 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
15786 else
15787 if test ia64 = "$host_cpu"; then
15788 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15789 allow_undefined_flag_CXX="-z nodefs"
15790 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"
15791 else
15792 # Determine the default libpath from the value encoded in an
15793 # empty executable.
15794 if test set = "${lt_cv_aix_libpath+set}"; then
15795 aix_libpath=$lt_cv_aix_libpath
15796 else
15797 if test ${lt_cv_aix_libpath__CXX+y}
15798 then :
15799 printf %s "(cached) " >&6
15800 else $as_nop
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803
15804 int
15805 main (void)
15806 {
15807
15808 ;
15809 return 0;
15810 }
15811 _ACEOF
15812 if ac_fn_cxx_try_link "$LINENO"
15813 then :
15814
15815 lt_aix_libpath_sed='
15816 /Import File Strings/,/^$/ {
15817 /^0/ {
15818 s/^0 *\([^ ]*\) *$/\1/
15819 p
15820 }
15821 }'
15822 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15823 # Check for a 64-bit object if we didn't find anything.
15824 if test -z "$lt_cv_aix_libpath__CXX"; then
15825 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15826 fi
15827 fi
15828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15829 conftest$ac_exeext conftest.$ac_ext
15830 if test -z "$lt_cv_aix_libpath__CXX"; then
15831 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15832 fi
15833
15834 fi
15835
15836 aix_libpath=$lt_cv_aix_libpath__CXX
15837 fi
15838
15839 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15840 # Warning - without using the other run time loading flags,
15841 # -berok will link without error, but may produce a broken library.
15842 no_undefined_flag_CXX=' $wl-bernotok'
15843 allow_undefined_flag_CXX=' $wl-berok'
15844 if test yes = "$with_gnu_ld"; then
15845 # We only use this code for GNU lds that support --whole-archive.
15846 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15847 else
15848 # Exported symbols can be pulled into shared objects from archives
15849 whole_archive_flag_spec_CXX='$convenience'
15850 fi
15851 archive_cmds_need_lc_CXX=yes
15852 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15853 # -brtl affects multiple linker settings, -berok does not and is overridden later
15854 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15855 if test svr4 != "$with_aix_soname"; then
15856 # This is similar to how AIX traditionally builds its shared
15857 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15858 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'
15859 fi
15860 if test aix != "$with_aix_soname"; then
15861 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'
15862 else
15863 # used by -dlpreopen to get the symbols
15864 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15865 fi
15866 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15867 fi
15868 fi
15869 ;;
15870
15871 beos*)
15872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15873 allow_undefined_flag_CXX=unsupported
15874 # Joseph Beckenbach <[email protected]> says some releases of gcc
15875 # support --undefined. This deserves some investigation. FIXME
15876 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15877 else
15878 ld_shlibs_CXX=no
15879 fi
15880 ;;
15881
15882 chorus*)
15883 case $cc_basename in
15884 *)
15885 # FIXME: insert proper C++ library support
15886 ld_shlibs_CXX=no
15887 ;;
15888 esac
15889 ;;
15890
15891 cygwin* | mingw* | pw32* | cegcc*)
15892 case $GXX,$cc_basename in
15893 ,cl* | no,cl* | ,icl* | no,icl*)
15894 # Native MSVC or ICC
15895 # hardcode_libdir_flag_spec is actually meaningless, as there is
15896 # no search path for DLLs.
15897 hardcode_libdir_flag_spec_CXX=' '
15898 allow_undefined_flag_CXX=unsupported
15899 always_export_symbols_CXX=yes
15900 file_list_spec_CXX='@'
15901 # Tell ltmain to make .lib files, not .a files.
15902 libext=lib
15903 # Tell ltmain to make .dll files, not .so files.
15904 shrext_cmds=.dll
15905 # FIXME: Setting linknames here is a bad hack.
15906 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15907 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15908 cp "$export_symbols" "$output_objdir/$soname.def";
15909 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15910 else
15911 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15912 fi~
15913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15914 linknames='
15915 # The linker will not automatically build a static lib if we build a DLL.
15916 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15917 enable_shared_with_static_runtimes_CXX=yes
15918 # Don't use ranlib
15919 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15920 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15921 lt_tool_outputfile="@TOOL_OUTPUT@"~
15922 case $lt_outputfile in
15923 *.exe|*.EXE) ;;
15924 *)
15925 lt_outputfile=$lt_outputfile.exe
15926 lt_tool_outputfile=$lt_tool_outputfile.exe
15927 ;;
15928 esac~
15929 func_to_tool_file "$lt_outputfile"~
15930 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15931 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15932 $RM "$lt_outputfile.manifest";
15933 fi'
15934 ;;
15935 *)
15936 # g++
15937 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15938 # as there is no search path for DLLs.
15939 hardcode_libdir_flag_spec_CXX='-L$libdir'
15940 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15941 allow_undefined_flag_CXX=unsupported
15942 always_export_symbols_CXX=no
15943 enable_shared_with_static_runtimes_CXX=yes
15944
15945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15946 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'
15947 # If the export-symbols file already is a .def file, use it as
15948 # is; otherwise, prepend EXPORTS...
15949 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15950 cp $export_symbols $output_objdir/$soname.def;
15951 else
15952 echo EXPORTS > $output_objdir/$soname.def;
15953 cat $export_symbols >> $output_objdir/$soname.def;
15954 fi~
15955 $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'
15956 else
15957 ld_shlibs_CXX=no
15958 fi
15959 ;;
15960 esac
15961 ;;
15962 darwin* | rhapsody*)
15963
15964
15965 archive_cmds_need_lc_CXX=no
15966 hardcode_direct_CXX=no
15967 hardcode_automatic_CXX=yes
15968 hardcode_shlibpath_var_CXX=unsupported
15969 if test yes = "$lt_cv_ld_force_load"; then
15970 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\"`'
15971
15972 else
15973 whole_archive_flag_spec_CXX=''
15974 fi
15975 link_all_deplibs_CXX=yes
15976 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15977 case $cc_basename in
15978 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15979 *) _lt_dar_can_shared=$GCC ;;
15980 esac
15981 if test yes = "$_lt_dar_can_shared"; then
15982 output_verbose_link_cmd=func_echo_all
15983 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"
15984 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15985 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"
15986 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"
15987 if test yes != "$lt_cv_apple_cc_single_mod"; then
15988 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"
15989 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"
15990 fi
15991
15992 else
15993 ld_shlibs_CXX=no
15994 fi
15995
15996 ;;
15997
15998 os2*)
15999 hardcode_libdir_flag_spec_CXX='-L$libdir'
16000 hardcode_minus_L_CXX=yes
16001 allow_undefined_flag_CXX=unsupported
16002 shrext_cmds=.dll
16003 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16006 $ECHO EXPORTS >> $output_objdir/$libname.def~
16007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16009 emximp -o $lib $output_objdir/$libname.def'
16010 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16013 $ECHO EXPORTS >> $output_objdir/$libname.def~
16014 prefix_cmds="$SED"~
16015 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16016 prefix_cmds="$prefix_cmds -e 1d";
16017 fi~
16018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16021 emximp -o $lib $output_objdir/$libname.def'
16022 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16023 enable_shared_with_static_runtimes_CXX=yes
16024 file_list_spec_CXX='@'
16025 ;;
16026
16027 dgux*)
16028 case $cc_basename in
16029 ec++*)
16030 # FIXME: insert proper C++ library support
16031 ld_shlibs_CXX=no
16032 ;;
16033 ghcx*)
16034 # Green Hills C++ Compiler
16035 # FIXME: insert proper C++ library support
16036 ld_shlibs_CXX=no
16037 ;;
16038 *)
16039 # FIXME: insert proper C++ library support
16040 ld_shlibs_CXX=no
16041 ;;
16042 esac
16043 ;;
16044
16045 freebsd2.*)
16046 # C++ shared libraries reported to be fairly broken before
16047 # switch to ELF
16048 ld_shlibs_CXX=no
16049 ;;
16050
16051 freebsd-elf*)
16052 archive_cmds_need_lc_CXX=no
16053 ;;
16054
16055 freebsd* | dragonfly* | midnightbsd*)
16056 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16057 # conventions
16058 ld_shlibs_CXX=yes
16059 ;;
16060
16061 haiku*)
16062 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16063 link_all_deplibs_CXX=yes
16064 ;;
16065
16066 hpux9*)
16067 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16068 hardcode_libdir_separator_CXX=:
16069 export_dynamic_flag_spec_CXX='$wl-E'
16070 hardcode_direct_CXX=yes
16071 hardcode_minus_L_CXX=yes # Not in the search PATH,
16072 # but as the default
16073 # location of the library.
16074
16075 case $cc_basename in
16076 CC*)
16077 # FIXME: insert proper C++ library support
16078 ld_shlibs_CXX=no
16079 ;;
16080 aCC*)
16081 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'
16082 # Commands to make compiler produce verbose output that lists
16083 # what "hidden" libraries, object files and flags are used when
16084 # linking a shared library.
16085 #
16086 # There doesn't appear to be a way to prevent this compiler from
16087 # explicitly linking system object files so we need to strip them
16088 # from the output so that they don't get included in the library
16089 # dependencies.
16090 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"'
16091 ;;
16092 *)
16093 if test yes = "$GXX"; then
16094 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'
16095 else
16096 # FIXME: insert proper C++ library support
16097 ld_shlibs_CXX=no
16098 fi
16099 ;;
16100 esac
16101 ;;
16102
16103 hpux10*|hpux11*)
16104 if test no = "$with_gnu_ld"; then
16105 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16106 hardcode_libdir_separator_CXX=:
16107
16108 case $host_cpu in
16109 hppa*64*|ia64*)
16110 ;;
16111 *)
16112 export_dynamic_flag_spec_CXX='$wl-E'
16113 ;;
16114 esac
16115 fi
16116 case $host_cpu in
16117 hppa*64*|ia64*)
16118 hardcode_direct_CXX=no
16119 hardcode_shlibpath_var_CXX=no
16120 ;;
16121 *)
16122 hardcode_direct_CXX=yes
16123 hardcode_direct_absolute_CXX=yes
16124 hardcode_minus_L_CXX=yes # Not in the search PATH,
16125 # but as the default
16126 # location of the library.
16127 ;;
16128 esac
16129
16130 case $cc_basename in
16131 CC*)
16132 # FIXME: insert proper C++ library support
16133 ld_shlibs_CXX=no
16134 ;;
16135 aCC*)
16136 case $host_cpu in
16137 hppa*64*)
16138 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16139 ;;
16140 ia64*)
16141 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16142 ;;
16143 *)
16144 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16145 ;;
16146 esac
16147 # Commands to make compiler produce verbose output that lists
16148 # what "hidden" libraries, object files and flags are used when
16149 # linking a shared library.
16150 #
16151 # There doesn't appear to be a way to prevent this compiler from
16152 # explicitly linking system object files so we need to strip them
16153 # from the output so that they don't get included in the library
16154 # dependencies.
16155 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"'
16156 ;;
16157 *)
16158 if test yes = "$GXX"; then
16159 if test no = "$with_gnu_ld"; then
16160 case $host_cpu in
16161 hppa*64*)
16162 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16163 ;;
16164 ia64*)
16165 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16166 ;;
16167 *)
16168 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'
16169 ;;
16170 esac
16171 fi
16172 else
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 fi
16176 ;;
16177 esac
16178 ;;
16179
16180 interix[3-9]*)
16181 hardcode_direct_CXX=no
16182 hardcode_shlibpath_var_CXX=no
16183 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16184 export_dynamic_flag_spec_CXX='$wl-E'
16185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16186 # Instead, shared libraries are loaded at an image base (0x10000000 by
16187 # default) and relocated if they conflict, which is a slow very memory
16188 # consuming and fragmenting process. To avoid this, we pick a random,
16189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16191 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'
16192 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'
16193 ;;
16194 irix5* | irix6*)
16195 case $cc_basename in
16196 CC*)
16197 # SGI C++
16198 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'
16199
16200 # Archives containing C++ object files must be created using
16201 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16202 # necessary to make sure instantiated templates are included
16203 # in the archive.
16204 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16205 ;;
16206 *)
16207 if test yes = "$GXX"; then
16208 if test no = "$with_gnu_ld"; then
16209 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'
16210 else
16211 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'
16212 fi
16213 fi
16214 link_all_deplibs_CXX=yes
16215 ;;
16216 esac
16217 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16218 hardcode_libdir_separator_CXX=:
16219 inherit_rpath_CXX=yes
16220 ;;
16221
16222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16223 case $cc_basename in
16224 KCC*)
16225 # Kuck and Associates, Inc. (KAI) C++ Compiler
16226
16227 # KCC will only create a shared library if the output file
16228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16229 # to its proper name (with version) after linking.
16230 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'
16231 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'
16232 # Commands to make compiler produce verbose output that lists
16233 # what "hidden" libraries, object files and flags are used when
16234 # linking a shared library.
16235 #
16236 # There doesn't appear to be a way to prevent this compiler from
16237 # explicitly linking system object files so we need to strip them
16238 # from the output so that they don't get included in the library
16239 # dependencies.
16240 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"'
16241
16242 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16243 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16244
16245 # Archives containing C++ object files must be created using
16246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16247 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16248 ;;
16249 icpc* | ecpc* )
16250 # Intel C++
16251 with_gnu_ld=yes
16252 # version 8.0 and above of icpc choke on multiply defined symbols
16253 # if we add $predep_objects and $postdep_objects, however 7.1 and
16254 # earlier do not add the objects themselves.
16255 case `$CC -V 2>&1` in
16256 *"Version 7."*)
16257 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16258 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'
16259 ;;
16260 *) # Version 8.0 or newer
16261 tmp_idyn=
16262 case $host_cpu in
16263 ia64*) tmp_idyn=' -i_dynamic';;
16264 esac
16265 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16266 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'
16267 ;;
16268 esac
16269 archive_cmds_need_lc_CXX=no
16270 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16271 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16272 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16273 ;;
16274 pgCC* | pgcpp*)
16275 # Portland Group C++ compiler
16276 case `$CC -V` in
16277 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16278 prelink_cmds_CXX='tpldir=Template.dir~
16279 rm -rf $tpldir~
16280 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16281 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16282 old_archive_cmds_CXX='tpldir=Template.dir~
16283 rm -rf $tpldir~
16284 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16285 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16286 $RANLIB $oldlib'
16287 archive_cmds_CXX='tpldir=Template.dir~
16288 rm -rf $tpldir~
16289 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16290 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16291 archive_expsym_cmds_CXX='tpldir=Template.dir~
16292 rm -rf $tpldir~
16293 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16294 $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'
16295 ;;
16296 *) # Version 6 and above use weak symbols
16297 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16298 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'
16299 ;;
16300 esac
16301
16302 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16303 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16304 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'
16305 ;;
16306 cxx*)
16307 # Compaq C++
16308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16309 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'
16310
16311 runpath_var=LD_RUN_PATH
16312 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16313 hardcode_libdir_separator_CXX=:
16314
16315 # Commands to make compiler produce verbose output that lists
16316 # what "hidden" libraries, object files and flags are used when
16317 # linking a shared library.
16318 #
16319 # There doesn't appear to be a way to prevent this compiler from
16320 # explicitly linking system object files so we need to strip them
16321 # from the output so that they don't get included in the library
16322 # dependencies.
16323 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'
16324 ;;
16325 xl* | mpixl* | bgxl*)
16326 # IBM XL 8.0 on PPC, with GNU ld
16327 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16328 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16329 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16330 if test yes = "$supports_anon_versioning"; then
16331 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16332 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16333 echo "local: *; };" >> $output_objdir/$libname.ver~
16334 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16335 fi
16336 ;;
16337 *)
16338 case `$CC -V 2>&1 | $SED 5q` in
16339 *Sun\ C*)
16340 # Sun C++ 5.9
16341 no_undefined_flag_CXX=' -zdefs'
16342 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16343 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'
16344 hardcode_libdir_flag_spec_CXX='-R$libdir'
16345 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'
16346 compiler_needs_object_CXX=yes
16347
16348 # Not sure whether something based on
16349 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16350 # would be better.
16351 output_verbose_link_cmd='func_echo_all'
16352
16353 # Archives containing C++ object files must be created using
16354 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16355 # necessary to make sure instantiated templates are included
16356 # in the archive.
16357 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16358 ;;
16359 esac
16360 ;;
16361 esac
16362 ;;
16363
16364 lynxos*)
16365 # FIXME: insert proper C++ library support
16366 ld_shlibs_CXX=no
16367 ;;
16368
16369 m88k*)
16370 # FIXME: insert proper C++ library support
16371 ld_shlibs_CXX=no
16372 ;;
16373
16374 mvs*)
16375 case $cc_basename in
16376 cxx*)
16377 # FIXME: insert proper C++ library support
16378 ld_shlibs_CXX=no
16379 ;;
16380 *)
16381 # FIXME: insert proper C++ library support
16382 ld_shlibs_CXX=no
16383 ;;
16384 esac
16385 ;;
16386
16387 netbsd*)
16388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16389 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16390 wlarc=
16391 hardcode_libdir_flag_spec_CXX='-R$libdir'
16392 hardcode_direct_CXX=yes
16393 hardcode_shlibpath_var_CXX=no
16394 fi
16395 # Workaround some broken pre-1.5 toolchains
16396 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16397 ;;
16398
16399 *nto* | *qnx*)
16400 ld_shlibs_CXX=yes
16401 ;;
16402
16403 openbsd* | bitrig*)
16404 if test -f /usr/libexec/ld.so; then
16405 hardcode_direct_CXX=yes
16406 hardcode_shlibpath_var_CXX=no
16407 hardcode_direct_absolute_CXX=yes
16408 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16409 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16411 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16412 export_dynamic_flag_spec_CXX='$wl-E'
16413 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16414 fi
16415 output_verbose_link_cmd=func_echo_all
16416 else
16417 ld_shlibs_CXX=no
16418 fi
16419 ;;
16420
16421 osf3* | osf4* | osf5*)
16422 case $cc_basename in
16423 KCC*)
16424 # Kuck and Associates, Inc. (KAI) C++ Compiler
16425
16426 # KCC will only create a shared library if the output file
16427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16428 # to its proper name (with version) after linking.
16429 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'
16430
16431 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16432 hardcode_libdir_separator_CXX=:
16433
16434 # Archives containing C++ object files must be created using
16435 # the KAI C++ compiler.
16436 case $host in
16437 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16438 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16439 esac
16440 ;;
16441 RCC*)
16442 # Rational C++ 2.4.1
16443 # FIXME: insert proper C++ library support
16444 ld_shlibs_CXX=no
16445 ;;
16446 cxx*)
16447 case $host in
16448 osf3*)
16449 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16450 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'
16451 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16452 ;;
16453 *)
16454 allow_undefined_flag_CXX=' -expect_unresolved \*'
16455 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'
16456 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16457 echo "-hidden">> $lib.exp~
16458 $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~
16459 $RM $lib.exp'
16460 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16461 ;;
16462 esac
16463
16464 hardcode_libdir_separator_CXX=:
16465
16466 # Commands to make compiler produce verbose output that lists
16467 # what "hidden" libraries, object files and flags are used when
16468 # linking a shared library.
16469 #
16470 # There doesn't appear to be a way to prevent this compiler from
16471 # explicitly linking system object files so we need to strip them
16472 # from the output so that they don't get included in the library
16473 # dependencies.
16474 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"'
16475 ;;
16476 *)
16477 if test yes,no = "$GXX,$with_gnu_ld"; then
16478 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16479 case $host in
16480 osf3*)
16481 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'
16482 ;;
16483 *)
16484 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'
16485 ;;
16486 esac
16487
16488 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16489 hardcode_libdir_separator_CXX=:
16490
16491 # Commands to make compiler produce verbose output that lists
16492 # what "hidden" libraries, object files and flags are used when
16493 # linking a shared library.
16494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16495
16496 else
16497 # FIXME: insert proper C++ library support
16498 ld_shlibs_CXX=no
16499 fi
16500 ;;
16501 esac
16502 ;;
16503
16504 psos*)
16505 # FIXME: insert proper C++ library support
16506 ld_shlibs_CXX=no
16507 ;;
16508
16509 sunos4*)
16510 case $cc_basename in
16511 CC*)
16512 # Sun C++ 4.x
16513 # FIXME: insert proper C++ library support
16514 ld_shlibs_CXX=no
16515 ;;
16516 lcc*)
16517 # Lucid
16518 # FIXME: insert proper C++ library support
16519 ld_shlibs_CXX=no
16520 ;;
16521 *)
16522 # FIXME: insert proper C++ library support
16523 ld_shlibs_CXX=no
16524 ;;
16525 esac
16526 ;;
16527
16528 solaris*)
16529 case $cc_basename in
16530 CC* | sunCC*)
16531 # Sun C++ 4.2, 5.x and Centerline C++
16532 archive_cmds_need_lc_CXX=yes
16533 no_undefined_flag_CXX=' -zdefs'
16534 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16535 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16536 $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'
16537
16538 hardcode_libdir_flag_spec_CXX='-R$libdir'
16539 hardcode_shlibpath_var_CXX=no
16540 case $host_os in
16541 solaris2.[0-5] | solaris2.[0-5].*) ;;
16542 *)
16543 # The compiler driver will combine and reorder linker options,
16544 # but understands '-z linker_flag'.
16545 # Supported since Solaris 2.6 (maybe 2.5.1?)
16546 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16547 ;;
16548 esac
16549 link_all_deplibs_CXX=yes
16550
16551 output_verbose_link_cmd='func_echo_all'
16552
16553 # Archives containing C++ object files must be created using
16554 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16555 # necessary to make sure instantiated templates are included
16556 # in the archive.
16557 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16558 ;;
16559 gcx*)
16560 # Green Hills C++ Compiler
16561 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16562
16563 # The C++ compiler must be used to create the archive.
16564 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16565 ;;
16566 *)
16567 # GNU C++ compiler with Solaris linker
16568 if test yes,no = "$GXX,$with_gnu_ld"; then
16569 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16570 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16571 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16572 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16573 $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'
16574
16575 # Commands to make compiler produce verbose output that lists
16576 # what "hidden" libraries, object files and flags are used when
16577 # linking a shared library.
16578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16579 else
16580 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16581 # platform.
16582 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16584 $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'
16585
16586 # Commands to make compiler produce verbose output that lists
16587 # what "hidden" libraries, object files and flags are used when
16588 # linking a shared library.
16589 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16590 fi
16591
16592 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16593 case $host_os in
16594 solaris2.[0-5] | solaris2.[0-5].*) ;;
16595 *)
16596 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16597 ;;
16598 esac
16599 fi
16600 ;;
16601 esac
16602 ;;
16603
16604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16605 no_undefined_flag_CXX='$wl-z,text'
16606 archive_cmds_need_lc_CXX=no
16607 hardcode_shlibpath_var_CXX=no
16608 runpath_var='LD_RUN_PATH'
16609
16610 case $cc_basename in
16611 CC*)
16612 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16613 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16614 ;;
16615 *)
16616 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16617 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 ;;
16619 esac
16620 ;;
16621
16622 sysv5* | sco3.2v5* | sco5v6*)
16623 # Note: We CANNOT use -z defs as we might desire, because we do not
16624 # link with -lc, and that would cause any symbols used from libc to
16625 # always be unresolved, which means just about no library would
16626 # ever link correctly. If we're not using GNU ld we use -z text
16627 # though, which does catch some bad symbols but isn't as heavy-handed
16628 # as -z defs.
16629 no_undefined_flag_CXX='$wl-z,text'
16630 allow_undefined_flag_CXX='$wl-z,nodefs'
16631 archive_cmds_need_lc_CXX=no
16632 hardcode_shlibpath_var_CXX=no
16633 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16634 hardcode_libdir_separator_CXX=':'
16635 link_all_deplibs_CXX=yes
16636 export_dynamic_flag_spec_CXX='$wl-Bexport'
16637 runpath_var='LD_RUN_PATH'
16638
16639 case $cc_basename in
16640 CC*)
16641 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16644 '"$old_archive_cmds_CXX"
16645 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16646 '"$reload_cmds_CXX"
16647 ;;
16648 *)
16649 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16650 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 ;;
16652 esac
16653 ;;
16654
16655 tandem*)
16656 case $cc_basename in
16657 NCC*)
16658 # NonStop-UX NCC 3.20
16659 # FIXME: insert proper C++ library support
16660 ld_shlibs_CXX=no
16661 ;;
16662 *)
16663 # FIXME: insert proper C++ library support
16664 ld_shlibs_CXX=no
16665 ;;
16666 esac
16667 ;;
16668
16669 vxworks*)
16670 # FIXME: insert proper C++ library support
16671 ld_shlibs_CXX=no
16672 ;;
16673
16674 *)
16675 # FIXME: insert proper C++ library support
16676 ld_shlibs_CXX=no
16677 ;;
16678 esac
16679
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16681 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16682 test no = "$ld_shlibs_CXX" && can_build_shared=no
16683
16684 GCC_CXX=$GXX
16685 LD_CXX=$LD
16686
16687 ## CAVEAT EMPTOR:
16688 ## There is no encapsulation within the following macros, do not change
16689 ## the running order or otherwise move them around unless you know exactly
16690 ## what you are doing...
16691 # Dependencies to place before and after the object being linked:
16692 predep_objects_CXX=
16693 postdep_objects_CXX=
16694 predeps_CXX=
16695 postdeps_CXX=
16696 compiler_lib_search_path_CXX=
16697
16698 cat > conftest.$ac_ext <<_LT_EOF
16699 class Foo
16700 {
16701 public:
16702 Foo (void) { a = 0; }
16703 private:
16704 int a;
16705 };
16706 _LT_EOF
16707
16708
16709 _lt_libdeps_save_CFLAGS=$CFLAGS
16710 case "$CC $CFLAGS " in #(
16711 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16712 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16713 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16714 esac
16715
16716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16720 test $ac_status = 0; }; then
16721 # Parse the compiler output and extract the necessary
16722 # objects, libraries and library flags.
16723
16724 # Sentinel used to keep track of whether or not we are before
16725 # the conftest object file.
16726 pre_test_object_deps_done=no
16727
16728 for p in `eval "$output_verbose_link_cmd"`; do
16729 case $prev$p in
16730
16731 -L* | -R* | -l*)
16732 # Some compilers place space between "-{L,R}" and the path.
16733 # Remove the space.
16734 if test x-L = "$p" ||
16735 test x-R = "$p"; then
16736 prev=$p
16737 continue
16738 fi
16739
16740 # Expand the sysroot to ease extracting the directories later.
16741 if test -z "$prev"; then
16742 case $p in
16743 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16744 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16745 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16746 esac
16747 fi
16748 case $p in
16749 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16750 esac
16751 if test no = "$pre_test_object_deps_done"; then
16752 case $prev in
16753 -L | -R)
16754 # Internal compiler library paths should come after those
16755 # provided the user. The postdeps already come after the
16756 # user supplied libs so there is no need to process them.
16757 if test -z "$compiler_lib_search_path_CXX"; then
16758 compiler_lib_search_path_CXX=$prev$p
16759 else
16760 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16761 fi
16762 ;;
16763 # The "-l" case would never come before the object being
16764 # linked, so don't bother handling this case.
16765 esac
16766 else
16767 if test -z "$postdeps_CXX"; then
16768 postdeps_CXX=$prev$p
16769 else
16770 postdeps_CXX="${postdeps_CXX} $prev$p"
16771 fi
16772 fi
16773 prev=
16774 ;;
16775
16776 *.lto.$objext) ;; # Ignore GCC LTO objects
16777 *.$objext)
16778 # This assumes that the test object file only shows up
16779 # once in the compiler output.
16780 if test "$p" = "conftest.$objext"; then
16781 pre_test_object_deps_done=yes
16782 continue
16783 fi
16784
16785 if test no = "$pre_test_object_deps_done"; then
16786 if test -z "$predep_objects_CXX"; then
16787 predep_objects_CXX=$p
16788 else
16789 predep_objects_CXX="$predep_objects_CXX $p"
16790 fi
16791 else
16792 if test -z "$postdep_objects_CXX"; then
16793 postdep_objects_CXX=$p
16794 else
16795 postdep_objects_CXX="$postdep_objects_CXX $p"
16796 fi
16797 fi
16798 ;;
16799
16800 *) ;; # Ignore the rest.
16801
16802 esac
16803 done
16804
16805 # Clean up.
16806 rm -f a.out a.exe
16807 else
16808 echo "libtool.m4: error: problem compiling CXX test program"
16809 fi
16810
16811 $RM -f confest.$objext
16812 CFLAGS=$_lt_libdeps_save_CFLAGS
16813
16814 # PORTME: override above test on systems where it is broken
16815 case $host_os in
16816 interix[3-9]*)
16817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16818 # hack all around it, let's just trust "g++" to DTRT.
16819 predep_objects_CXX=
16820 postdep_objects_CXX=
16821 postdeps_CXX=
16822 ;;
16823 esac
16824
16825
16826 case " $postdeps_CXX " in
16827 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16828 esac
16829 compiler_lib_search_dirs_CXX=
16830 if test -n "${compiler_lib_search_path_CXX}"; then
16831 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16832 fi
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864 lt_prog_compiler_wl_CXX=
16865 lt_prog_compiler_pic_CXX=
16866 lt_prog_compiler_static_CXX=
16867
16868
16869 # C++ specific cases for pic, static, wl, etc.
16870 if test yes = "$GXX"; then
16871 lt_prog_compiler_wl_CXX='-Wl,'
16872 lt_prog_compiler_static_CXX='-static'
16873
16874 case $host_os in
16875 aix*)
16876 # All AIX code is PIC.
16877 if test ia64 = "$host_cpu"; then
16878 # AIX 5 now supports IA64 processor
16879 lt_prog_compiler_static_CXX='-Bstatic'
16880 fi
16881 lt_prog_compiler_pic_CXX='-fPIC'
16882 ;;
16883
16884 amigaos*)
16885 case $host_cpu in
16886 powerpc)
16887 # see comment about AmigaOS4 .so support
16888 lt_prog_compiler_pic_CXX='-fPIC'
16889 ;;
16890 m68k)
16891 # FIXME: we need at least 68020 code to build shared libraries, but
16892 # adding the '-m68020' flag to GCC prevents building anything better,
16893 # like '-m68040'.
16894 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16895 ;;
16896 esac
16897 ;;
16898
16899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16900 # PIC is the default for these OSes.
16901 ;;
16902 mingw* | cygwin* | os2* | pw32* | cegcc*)
16903 # This hack is so that the source file can tell whether it is being
16904 # built for inclusion in a dll (and should export symbols for example).
16905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16906 # (--disable-auto-import) libraries
16907 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16908 case $host_os in
16909 os2*)
16910 lt_prog_compiler_static_CXX='$wl-static'
16911 ;;
16912 esac
16913 ;;
16914 darwin* | rhapsody*)
16915 # PIC is the default on this platform
16916 # Common symbols not allowed in MH_DYLIB files
16917 lt_prog_compiler_pic_CXX='-fno-common'
16918 ;;
16919 *djgpp*)
16920 # DJGPP does not support shared libraries at all
16921 lt_prog_compiler_pic_CXX=
16922 ;;
16923 haiku*)
16924 # PIC is the default for Haiku.
16925 # The "-static" flag exists, but is broken.
16926 lt_prog_compiler_static_CXX=
16927 ;;
16928 interix[3-9]*)
16929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16930 # Instead, we relocate shared libraries at runtime.
16931 ;;
16932 sysv4*MP*)
16933 if test -d /usr/nec; then
16934 lt_prog_compiler_pic_CXX=-Kconform_pic
16935 fi
16936 ;;
16937 hpux*)
16938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16940 # sets the default TLS model and affects inlining.
16941 case $host_cpu in
16942 hppa*64*)
16943 ;;
16944 *)
16945 lt_prog_compiler_pic_CXX='-fPIC'
16946 ;;
16947 esac
16948 ;;
16949 *qnx* | *nto*)
16950 # QNX uses GNU C++, but need to define -shared option too, otherwise
16951 # it will coredump.
16952 lt_prog_compiler_pic_CXX='-fPIC -shared'
16953 ;;
16954 *)
16955 lt_prog_compiler_pic_CXX='-fPIC'
16956 ;;
16957 esac
16958 else
16959 case $host_os in
16960 aix[4-9]*)
16961 # All AIX code is PIC.
16962 if test ia64 = "$host_cpu"; then
16963 # AIX 5 now supports IA64 processor
16964 lt_prog_compiler_static_CXX='-Bstatic'
16965 else
16966 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16967 fi
16968 ;;
16969 chorus*)
16970 case $cc_basename in
16971 cxch68*)
16972 # Green Hills C++ Compiler
16973 # _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"
16974 ;;
16975 esac
16976 ;;
16977 mingw* | cygwin* | os2* | pw32* | cegcc*)
16978 # This hack is so that the source file can tell whether it is being
16979 # built for inclusion in a dll (and should export symbols for example).
16980 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16981 ;;
16982 dgux*)
16983 case $cc_basename in
16984 ec++*)
16985 lt_prog_compiler_pic_CXX='-KPIC'
16986 ;;
16987 ghcx*)
16988 # Green Hills C++ Compiler
16989 lt_prog_compiler_pic_CXX='-pic'
16990 ;;
16991 *)
16992 ;;
16993 esac
16994 ;;
16995 freebsd* | dragonfly* | midnightbsd*)
16996 # FreeBSD uses GNU C++
16997 ;;
16998 hpux9* | hpux10* | hpux11*)
16999 case $cc_basename in
17000 CC*)
17001 lt_prog_compiler_wl_CXX='-Wl,'
17002 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17003 if test ia64 != "$host_cpu"; then
17004 lt_prog_compiler_pic_CXX='+Z'
17005 fi
17006 ;;
17007 aCC*)
17008 lt_prog_compiler_wl_CXX='-Wl,'
17009 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17010 case $host_cpu in
17011 hppa*64*|ia64*)
17012 # +Z the default
17013 ;;
17014 *)
17015 lt_prog_compiler_pic_CXX='+Z'
17016 ;;
17017 esac
17018 ;;
17019 *)
17020 ;;
17021 esac
17022 ;;
17023 interix*)
17024 # This is c89, which is MS Visual C++ (no shared libs)
17025 # Anyone wants to do a port?
17026 ;;
17027 irix5* | irix6* | nonstopux*)
17028 case $cc_basename in
17029 CC*)
17030 lt_prog_compiler_wl_CXX='-Wl,'
17031 lt_prog_compiler_static_CXX='-non_shared'
17032 # CC pic flag -KPIC is the default.
17033 ;;
17034 *)
17035 ;;
17036 esac
17037 ;;
17038 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17039 case $cc_basename in
17040 KCC*)
17041 # KAI C++ Compiler
17042 lt_prog_compiler_wl_CXX='--backend -Wl,'
17043 lt_prog_compiler_pic_CXX='-fPIC'
17044 ;;
17045 ecpc* )
17046 # old Intel C++ for x86_64, which still supported -KPIC.
17047 lt_prog_compiler_wl_CXX='-Wl,'
17048 lt_prog_compiler_pic_CXX='-KPIC'
17049 lt_prog_compiler_static_CXX='-static'
17050 ;;
17051 icpc* )
17052 # Intel C++, used to be incompatible with GCC.
17053 # ICC 10 doesn't accept -KPIC any more.
17054 lt_prog_compiler_wl_CXX='-Wl,'
17055 lt_prog_compiler_pic_CXX='-fPIC'
17056 lt_prog_compiler_static_CXX='-static'
17057 ;;
17058 pgCC* | pgcpp*)
17059 # Portland Group C++ compiler
17060 lt_prog_compiler_wl_CXX='-Wl,'
17061 lt_prog_compiler_pic_CXX='-fpic'
17062 lt_prog_compiler_static_CXX='-Bstatic'
17063 ;;
17064 cxx*)
17065 # Compaq C++
17066 # Make sure the PIC flag is empty. It appears that all Alpha
17067 # Linux and Compaq Tru64 Unix objects are PIC.
17068 lt_prog_compiler_pic_CXX=
17069 lt_prog_compiler_static_CXX='-non_shared'
17070 ;;
17071 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17072 # IBM XL 8.0, 9.0 on PPC and BlueGene
17073 lt_prog_compiler_wl_CXX='-Wl,'
17074 lt_prog_compiler_pic_CXX='-qpic'
17075 lt_prog_compiler_static_CXX='-qstaticlink'
17076 ;;
17077 *)
17078 case `$CC -V 2>&1 | $SED 5q` in
17079 *Sun\ C*)
17080 # Sun C++ 5.9
17081 lt_prog_compiler_pic_CXX='-KPIC'
17082 lt_prog_compiler_static_CXX='-Bstatic'
17083 lt_prog_compiler_wl_CXX='-Qoption ld '
17084 ;;
17085 esac
17086 ;;
17087 esac
17088 ;;
17089 lynxos*)
17090 ;;
17091 m88k*)
17092 ;;
17093 mvs*)
17094 case $cc_basename in
17095 cxx*)
17096 lt_prog_compiler_pic_CXX='-W c,exportall'
17097 ;;
17098 *)
17099 ;;
17100 esac
17101 ;;
17102 netbsd*)
17103 ;;
17104 *qnx* | *nto*)
17105 # QNX uses GNU C++, but need to define -shared option too, otherwise
17106 # it will coredump.
17107 lt_prog_compiler_pic_CXX='-fPIC -shared'
17108 ;;
17109 osf3* | osf4* | osf5*)
17110 case $cc_basename in
17111 KCC*)
17112 lt_prog_compiler_wl_CXX='--backend -Wl,'
17113 ;;
17114 RCC*)
17115 # Rational C++ 2.4.1
17116 lt_prog_compiler_pic_CXX='-pic'
17117 ;;
17118 cxx*)
17119 # Digital/Compaq C++
17120 lt_prog_compiler_wl_CXX='-Wl,'
17121 # Make sure the PIC flag is empty. It appears that all Alpha
17122 # Linux and Compaq Tru64 Unix objects are PIC.
17123 lt_prog_compiler_pic_CXX=
17124 lt_prog_compiler_static_CXX='-non_shared'
17125 ;;
17126 *)
17127 ;;
17128 esac
17129 ;;
17130 psos*)
17131 ;;
17132 solaris*)
17133 case $cc_basename in
17134 CC* | sunCC*)
17135 # Sun C++ 4.2, 5.x and Centerline C++
17136 lt_prog_compiler_pic_CXX='-KPIC'
17137 lt_prog_compiler_static_CXX='-Bstatic'
17138 lt_prog_compiler_wl_CXX='-Qoption ld '
17139 ;;
17140 gcx*)
17141 # Green Hills C++ Compiler
17142 lt_prog_compiler_pic_CXX='-PIC'
17143 ;;
17144 *)
17145 ;;
17146 esac
17147 ;;
17148 sunos4*)
17149 case $cc_basename in
17150 CC*)
17151 # Sun C++ 4.x
17152 lt_prog_compiler_pic_CXX='-pic'
17153 lt_prog_compiler_static_CXX='-Bstatic'
17154 ;;
17155 lcc*)
17156 # Lucid
17157 lt_prog_compiler_pic_CXX='-pic'
17158 ;;
17159 *)
17160 ;;
17161 esac
17162 ;;
17163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17164 case $cc_basename in
17165 CC*)
17166 lt_prog_compiler_wl_CXX='-Wl,'
17167 lt_prog_compiler_pic_CXX='-KPIC'
17168 lt_prog_compiler_static_CXX='-Bstatic'
17169 ;;
17170 esac
17171 ;;
17172 tandem*)
17173 case $cc_basename in
17174 NCC*)
17175 # NonStop-UX NCC 3.20
17176 lt_prog_compiler_pic_CXX='-KPIC'
17177 ;;
17178 *)
17179 ;;
17180 esac
17181 ;;
17182 vxworks*)
17183 ;;
17184 *)
17185 lt_prog_compiler_can_build_shared_CXX=no
17186 ;;
17187 esac
17188 fi
17189
17190 case $host_os in
17191 # For platforms that do not support PIC, -DPIC is meaningless:
17192 *djgpp*)
17193 lt_prog_compiler_pic_CXX=
17194 ;;
17195 *)
17196 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17197 ;;
17198 esac
17199
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17201 printf %s "checking for $compiler option to produce PIC... " >&6; }
17202 if test ${lt_cv_prog_compiler_pic_CXX+y}
17203 then :
17204 printf %s "(cached) " >&6
17205 else $as_nop
17206 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17207 fi
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17209 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17210 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17211
17212 #
17213 # Check to make sure the PIC flag actually works.
17214 #
17215 if test -n "$lt_prog_compiler_pic_CXX"; then
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17217 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17218 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17219 then :
17220 printf %s "(cached) " >&6
17221 else $as_nop
17222 lt_cv_prog_compiler_pic_works_CXX=no
17223 ac_outfile=conftest.$ac_objext
17224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17225 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17226 # Insert the option either (1) after the last *FLAGS variable, or
17227 # (2) before a word containing "conftest.", or (3) at the end.
17228 # Note that $ac_compile itself does not contain backslashes and begins
17229 # with a dollar sign (not a hyphen), so the echo should work correctly.
17230 # The option is referenced via a variable to avoid confusing sed.
17231 lt_compile=`echo "$ac_compile" | $SED \
17232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17234 -e 's:$: $lt_compiler_flag:'`
17235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17236 (eval "$lt_compile" 2>conftest.err)
17237 ac_status=$?
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 if (exit $ac_status) && test -s "$ac_outfile"; then
17241 # The compiler can only warn and ignore the option if not recognized
17242 # So say no if there are warnings other than the usual output.
17243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17246 lt_cv_prog_compiler_pic_works_CXX=yes
17247 fi
17248 fi
17249 $RM conftest*
17250
17251 fi
17252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17253 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17254
17255 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17256 case $lt_prog_compiler_pic_CXX in
17257 "" | " "*) ;;
17258 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17259 esac
17260 else
17261 lt_prog_compiler_pic_CXX=
17262 lt_prog_compiler_can_build_shared_CXX=no
17263 fi
17264
17265 fi
17266
17267
17268
17269
17270
17271 #
17272 # Check to make sure the static flag actually works.
17273 #
17274 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17276 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17277 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17278 then :
17279 printf %s "(cached) " >&6
17280 else $as_nop
17281 lt_cv_prog_compiler_static_works_CXX=no
17282 save_LDFLAGS=$LDFLAGS
17283 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17284 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17285 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17286 # The linker can only warn and ignore the option if not recognized
17287 # So say no if there are warnings
17288 if test -s conftest.err; then
17289 # Append any errors to the config.log.
17290 cat conftest.err 1>&5
17291 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17293 if diff conftest.exp conftest.er2 >/dev/null; then
17294 lt_cv_prog_compiler_static_works_CXX=yes
17295 fi
17296 else
17297 lt_cv_prog_compiler_static_works_CXX=yes
17298 fi
17299 fi
17300 $RM -r conftest*
17301 LDFLAGS=$save_LDFLAGS
17302
17303 fi
17304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17305 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17306
17307 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17308 :
17309 else
17310 lt_prog_compiler_static_CXX=
17311 fi
17312
17313
17314
17315
17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17317 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17318 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17319 then :
17320 printf %s "(cached) " >&6
17321 else $as_nop
17322 lt_cv_prog_compiler_c_o_CXX=no
17323 $RM -r conftest 2>/dev/null
17324 mkdir conftest
17325 cd conftest
17326 mkdir out
17327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17328
17329 lt_compiler_flag="-o out/conftest2.$ac_objext"
17330 # Insert the option either (1) after the last *FLAGS variable, or
17331 # (2) before a word containing "conftest.", or (3) at the end.
17332 # Note that $ac_compile itself does not contain backslashes and begins
17333 # with a dollar sign (not a hyphen), so the echo should work correctly.
17334 lt_compile=`echo "$ac_compile" | $SED \
17335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17337 -e 's:$: $lt_compiler_flag:'`
17338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17339 (eval "$lt_compile" 2>out/conftest.err)
17340 ac_status=$?
17341 cat out/conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17344 then
17345 # The compiler can only warn and ignore the option if not recognized
17346 # So say no if there are warnings
17347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17350 lt_cv_prog_compiler_c_o_CXX=yes
17351 fi
17352 fi
17353 chmod u+w . 2>&5
17354 $RM conftest*
17355 # SGI C++ compiler will create directory out/ii_files/ for
17356 # template instantiation
17357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17358 $RM out/* && rmdir out
17359 cd ..
17360 $RM -r conftest
17361 $RM conftest*
17362
17363 fi
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17365 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17366
17367
17368
17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17370 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17371 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17372 then :
17373 printf %s "(cached) " >&6
17374 else $as_nop
17375 lt_cv_prog_compiler_c_o_CXX=no
17376 $RM -r conftest 2>/dev/null
17377 mkdir conftest
17378 cd conftest
17379 mkdir out
17380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17381
17382 lt_compiler_flag="-o out/conftest2.$ac_objext"
17383 # Insert the option either (1) after the last *FLAGS variable, or
17384 # (2) before a word containing "conftest.", or (3) at the end.
17385 # Note that $ac_compile itself does not contain backslashes and begins
17386 # with a dollar sign (not a hyphen), so the echo should work correctly.
17387 lt_compile=`echo "$ac_compile" | $SED \
17388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17390 -e 's:$: $lt_compiler_flag:'`
17391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17392 (eval "$lt_compile" 2>out/conftest.err)
17393 ac_status=$?
17394 cat out/conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17397 then
17398 # The compiler can only warn and ignore the option if not recognized
17399 # So say no if there are warnings
17400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17403 lt_cv_prog_compiler_c_o_CXX=yes
17404 fi
17405 fi
17406 chmod u+w . 2>&5
17407 $RM conftest*
17408 # SGI C++ compiler will create directory out/ii_files/ for
17409 # template instantiation
17410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17411 $RM out/* && rmdir out
17412 cd ..
17413 $RM -r conftest
17414 $RM conftest*
17415
17416 fi
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17418 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17419
17420
17421
17422
17423 hard_links=nottested
17424 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17425 # do not overwrite the value of need_locks provided by the user
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17427 printf %s "checking if we can lock with hard links... " >&6; }
17428 hard_links=yes
17429 $RM conftest*
17430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17431 touch conftest.a
17432 ln conftest.a conftest.b 2>&5 || hard_links=no
17433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17435 printf "%s\n" "$hard_links" >&6; }
17436 if test no = "$hard_links"; then
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17438 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17439 need_locks=warn
17440 fi
17441 else
17442 need_locks=no
17443 fi
17444
17445
17446
17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17448 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17449
17450 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17451 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17452 case $host_os in
17453 aix[4-9]*)
17454 # If we're using GNU nm, then we don't want the "-C" option.
17455 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17456 # Without the "-l" option, or with the "-B" option, AIX nm treats
17457 # weak defined symbols like other global defined symbols, whereas
17458 # GNU nm marks them as "W".
17459 # While the 'weak' keyword is ignored in the Export File, we need
17460 # it in the Import File for the 'aix-soname' feature, so we have
17461 # to replace the "-B" option with "-P" for AIX nm.
17462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17463 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'
17464 else
17465 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'
17466 fi
17467 ;;
17468 pw32*)
17469 export_symbols_cmds_CXX=$ltdll_cmds
17470 ;;
17471 cygwin* | mingw* | cegcc*)
17472 case $cc_basename in
17473 cl* | icl*)
17474 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17475 ;;
17476 *)
17477 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'
17478 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17479 ;;
17480 esac
17481 ;;
17482 *)
17483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17484 ;;
17485 esac
17486
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17488 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17489 test no = "$ld_shlibs_CXX" && can_build_shared=no
17490
17491 with_gnu_ld_CXX=$with_gnu_ld
17492
17493
17494
17495
17496
17497
17498 #
17499 # Do we need to explicitly link libc?
17500 #
17501 case "x$archive_cmds_need_lc_CXX" in
17502 x|xyes)
17503 # Assume -lc should be added
17504 archive_cmds_need_lc_CXX=yes
17505
17506 if test yes,yes = "$GCC,$enable_shared"; then
17507 case $archive_cmds_CXX in
17508 *'~'*)
17509 # FIXME: we may have to deal with multi-command sequences.
17510 ;;
17511 '$CC '*)
17512 # Test whether the compiler implicitly links with -lc since on some
17513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17514 # to ld, don't add -lc before -lgcc.
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17516 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17517 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17518 then :
17519 printf %s "(cached) " >&6
17520 else $as_nop
17521 $RM conftest*
17522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17523
17524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17525 (eval $ac_compile) 2>&5
17526 ac_status=$?
17527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528 test $ac_status = 0; } 2>conftest.err; then
17529 soname=conftest
17530 lib=conftest
17531 libobjs=conftest.$ac_objext
17532 deplibs=
17533 wl=$lt_prog_compiler_wl_CXX
17534 pic_flag=$lt_prog_compiler_pic_CXX
17535 compiler_flags=-v
17536 linker_flags=-v
17537 verstring=
17538 output_objdir=.
17539 libname=conftest
17540 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17541 allow_undefined_flag_CXX=
17542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17543 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17544 ac_status=$?
17545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546 test $ac_status = 0; }
17547 then
17548 lt_cv_archive_cmds_need_lc_CXX=no
17549 else
17550 lt_cv_archive_cmds_need_lc_CXX=yes
17551 fi
17552 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17553 else
17554 cat conftest.err 1>&5
17555 fi
17556 $RM conftest*
17557
17558 fi
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17560 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17561 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17562 ;;
17563 esac
17564 fi
17565 ;;
17566 esac
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17630 printf %s "checking dynamic linker characteristics... " >&6; }
17631
17632 library_names_spec=
17633 libname_spec='lib$name'
17634 soname_spec=
17635 shrext_cmds=.so
17636 postinstall_cmds=
17637 postuninstall_cmds=
17638 finish_cmds=
17639 finish_eval=
17640 shlibpath_var=
17641 shlibpath_overrides_runpath=unknown
17642 version_type=none
17643 dynamic_linker="$host_os ld.so"
17644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17645 need_lib_prefix=unknown
17646 hardcode_into_libs=no
17647
17648 # when you set need_version to no, make sure it does not cause -set_version
17649 # flags to be left without arguments
17650 need_version=unknown
17651
17652
17653
17654 case $host_os in
17655 aix3*)
17656 version_type=linux # correct to gnu/linux during the next big refactor
17657 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17658 shlibpath_var=LIBPATH
17659
17660 # AIX 3 has no versioning support, so we append a major version to the name.
17661 soname_spec='$libname$release$shared_ext$major'
17662 ;;
17663
17664 aix[4-9]*)
17665 version_type=linux # correct to gnu/linux during the next big refactor
17666 need_lib_prefix=no
17667 need_version=no
17668 hardcode_into_libs=yes
17669 if test ia64 = "$host_cpu"; then
17670 # AIX 5 supports IA64
17671 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17672 shlibpath_var=LD_LIBRARY_PATH
17673 else
17674 # With GCC up to 2.95.x, collect2 would create an import file
17675 # for dependence libraries. The import file would start with
17676 # the line '#! .'. This would cause the generated library to
17677 # depend on '.', always an invalid library. This was fixed in
17678 # development snapshots of GCC prior to 3.0.
17679 case $host_os in
17680 aix4 | aix4.[01] | aix4.[01].*)
17681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17682 echo ' yes '
17683 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17684 :
17685 else
17686 can_build_shared=no
17687 fi
17688 ;;
17689 esac
17690 # Using Import Files as archive members, it is possible to support
17691 # filename-based versioning of shared library archives on AIX. While
17692 # this would work for both with and without runtime linking, it will
17693 # prevent static linking of such archives. So we do filename-based
17694 # shared library versioning with .so extension only, which is used
17695 # when both runtime linking and shared linking is enabled.
17696 # Unfortunately, runtime linking may impact performance, so we do
17697 # not want this to be the default eventually. Also, we use the
17698 # versioned .so libs for executables only if there is the -brtl
17699 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17700 # To allow for filename-based versioning support, we need to create
17701 # libNAME.so.V as an archive file, containing:
17702 # *) an Import File, referring to the versioned filename of the
17703 # archive as well as the shared archive member, telling the
17704 # bitwidth (32 or 64) of that shared object, and providing the
17705 # list of exported symbols of that shared object, eventually
17706 # decorated with the 'weak' keyword
17707 # *) the shared object with the F_LOADONLY flag set, to really avoid
17708 # it being seen by the linker.
17709 # At run time we better use the real file rather than another symlink,
17710 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17711
17712 case $with_aix_soname,$aix_use_runtimelinking in
17713 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17714 # soname into executable. Probably we can add versioning support to
17715 # collect2, so additional links can be useful in future.
17716 aix,yes) # traditional libtool
17717 dynamic_linker='AIX unversionable lib.so'
17718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17719 # instead of lib<name>.a to let people know that these are not
17720 # typical AIX shared libraries.
17721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17722 ;;
17723 aix,no) # traditional AIX only
17724 dynamic_linker='AIX lib.a(lib.so.V)'
17725 # We preserve .a as extension for shared libraries through AIX4.2
17726 # and later when we are not doing run time linking.
17727 library_names_spec='$libname$release.a $libname.a'
17728 soname_spec='$libname$release$shared_ext$major'
17729 ;;
17730 svr4,*) # full svr4 only
17731 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17732 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17733 # We do not specify a path in Import Files, so LIBPATH fires.
17734 shlibpath_overrides_runpath=yes
17735 ;;
17736 *,yes) # both, prefer svr4
17737 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17738 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17739 # unpreferred sharedlib libNAME.a needs extra handling
17740 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"'
17741 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"'
17742 # We do not specify a path in Import Files, so LIBPATH fires.
17743 shlibpath_overrides_runpath=yes
17744 ;;
17745 *,no) # both, prefer aix
17746 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17747 library_names_spec='$libname$release.a $libname.a'
17748 soname_spec='$libname$release$shared_ext$major'
17749 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17750 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)'
17751 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"'
17752 ;;
17753 esac
17754 shlibpath_var=LIBPATH
17755 fi
17756 ;;
17757
17758 amigaos*)
17759 case $host_cpu in
17760 powerpc)
17761 # Since July 2007 AmigaOS4 officially supports .so libraries.
17762 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17764 ;;
17765 m68k)
17766 library_names_spec='$libname.ixlibrary $libname.a'
17767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17768 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'
17769 ;;
17770 esac
17771 ;;
17772
17773 beos*)
17774 library_names_spec='$libname$shared_ext'
17775 dynamic_linker="$host_os ld.so"
17776 shlibpath_var=LIBRARY_PATH
17777 ;;
17778
17779 bsdi[45]*)
17780 version_type=linux # correct to gnu/linux during the next big refactor
17781 need_version=no
17782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783 soname_spec='$libname$release$shared_ext$major'
17784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17785 shlibpath_var=LD_LIBRARY_PATH
17786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17788 # the default ld.so.conf also contains /usr/contrib/lib and
17789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17790 # libtool to hard-code these into programs
17791 ;;
17792
17793 cygwin* | mingw* | pw32* | cegcc*)
17794 version_type=windows
17795 shrext_cmds=.dll
17796 need_version=no
17797 need_lib_prefix=no
17798
17799 case $GCC,$cc_basename in
17800 yes,*)
17801 # gcc
17802 library_names_spec='$libname.dll.a'
17803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17804 postinstall_cmds='base_file=`basename \$file`~
17805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17806 dldir=$destdir/`dirname \$dlpath`~
17807 test -d \$dldir || mkdir -p \$dldir~
17808 $install_prog $dir/$dlname \$dldir/$dlname~
17809 chmod a+x \$dldir/$dlname~
17810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17812 fi'
17813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17814 dlpath=$dir/\$dldll~
17815 $RM \$dlpath'
17816 shlibpath_overrides_runpath=yes
17817
17818 case $host_os in
17819 cygwin*)
17820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17821 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17822
17823 ;;
17824 mingw* | cegcc*)
17825 # MinGW DLLs use traditional 'lib' prefix
17826 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17827 ;;
17828 pw32*)
17829 # pw32 DLLs use 'pw' prefix rather than 'lib'
17830 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17831 ;;
17832 esac
17833 dynamic_linker='Win32 ld.exe'
17834 ;;
17835
17836 *,cl* | *,icl*)
17837 # Native MSVC or ICC
17838 libname_spec='$name'
17839 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17840 library_names_spec='$libname.dll.lib'
17841
17842 case $build_os in
17843 mingw*)
17844 sys_lib_search_path_spec=
17845 lt_save_ifs=$IFS
17846 IFS=';'
17847 for lt_path in $LIB
17848 do
17849 IFS=$lt_save_ifs
17850 # Let DOS variable expansion print the short 8.3 style file name.
17851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17853 done
17854 IFS=$lt_save_ifs
17855 # Convert to MSYS style.
17856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17857 ;;
17858 cygwin*)
17859 # Convert to unix form, then to dos form, then back to unix form
17860 # but this time dos style (no spaces!) so that the unix form looks
17861 # like /cygdrive/c/PROGRA~1:/cygdr...
17862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17865 ;;
17866 *)
17867 sys_lib_search_path_spec=$LIB
17868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17869 # It is most probably a Windows format PATH.
17870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17871 else
17872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17873 fi
17874 # FIXME: find the short name or the path components, as spaces are
17875 # common. (e.g. "Program Files" -> "PROGRA~1")
17876 ;;
17877 esac
17878
17879 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17880 postinstall_cmds='base_file=`basename \$file`~
17881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17882 dldir=$destdir/`dirname \$dlpath`~
17883 test -d \$dldir || mkdir -p \$dldir~
17884 $install_prog $dir/$dlname \$dldir/$dlname'
17885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17886 dlpath=$dir/\$dldll~
17887 $RM \$dlpath'
17888 shlibpath_overrides_runpath=yes
17889 dynamic_linker='Win32 link.exe'
17890 ;;
17891
17892 *)
17893 # Assume MSVC and ICC wrapper
17894 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17895 dynamic_linker='Win32 ld.exe'
17896 ;;
17897 esac
17898 # FIXME: first we should search . and the directory the executable is in
17899 shlibpath_var=PATH
17900 ;;
17901
17902 darwin* | rhapsody*)
17903 dynamic_linker="$host_os dyld"
17904 version_type=darwin
17905 need_lib_prefix=no
17906 need_version=no
17907 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17908 soname_spec='$libname$release$major$shared_ext'
17909 shlibpath_overrides_runpath=yes
17910 shlibpath_var=DYLD_LIBRARY_PATH
17911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17912
17913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17914 ;;
17915
17916 dgux*)
17917 version_type=linux # correct to gnu/linux during the next big refactor
17918 need_lib_prefix=no
17919 need_version=no
17920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17921 soname_spec='$libname$release$shared_ext$major'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 ;;
17924
17925 freebsd* | dragonfly* | midnightbsd*)
17926 # DragonFly does not have aout. When/if they implement a new
17927 # versioning mechanism, adjust this.
17928 if test -x /usr/bin/objformat; then
17929 objformat=`/usr/bin/objformat`
17930 else
17931 case $host_os in
17932 freebsd[23].*) objformat=aout ;;
17933 *) objformat=elf ;;
17934 esac
17935 fi
17936 version_type=freebsd-$objformat
17937 case $version_type in
17938 freebsd-elf*)
17939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17940 soname_spec='$libname$release$shared_ext$major'
17941 need_version=no
17942 need_lib_prefix=no
17943 ;;
17944 freebsd-*)
17945 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17946 need_version=yes
17947 ;;
17948 esac
17949 shlibpath_var=LD_LIBRARY_PATH
17950 case $host_os in
17951 freebsd2.*)
17952 shlibpath_overrides_runpath=yes
17953 ;;
17954 freebsd3.[01]* | freebsdelf3.[01]*)
17955 shlibpath_overrides_runpath=yes
17956 hardcode_into_libs=yes
17957 ;;
17958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17960 shlibpath_overrides_runpath=no
17961 hardcode_into_libs=yes
17962 ;;
17963 *) # from 4.6 on, and DragonFly
17964 shlibpath_overrides_runpath=yes
17965 hardcode_into_libs=yes
17966 ;;
17967 esac
17968 ;;
17969
17970 haiku*)
17971 version_type=linux # correct to gnu/linux during the next big refactor
17972 need_lib_prefix=no
17973 need_version=no
17974 dynamic_linker="$host_os runtime_loader"
17975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17976 soname_spec='$libname$release$shared_ext$major'
17977 shlibpath_var=LIBRARY_PATH
17978 shlibpath_overrides_runpath=no
17979 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17980 hardcode_into_libs=yes
17981 ;;
17982
17983 hpux9* | hpux10* | hpux11*)
17984 # Give a soname corresponding to the major version so that dld.sl refuses to
17985 # link against other versions.
17986 version_type=sunos
17987 need_lib_prefix=no
17988 need_version=no
17989 case $host_cpu in
17990 ia64*)
17991 shrext_cmds='.so'
17992 hardcode_into_libs=yes
17993 dynamic_linker="$host_os dld.so"
17994 shlibpath_var=LD_LIBRARY_PATH
17995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
17998 if test 32 = "$HPUX_IA64_MODE"; then
17999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18000 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18001 else
18002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18003 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18004 fi
18005 ;;
18006 hppa*64*)
18007 shrext_cmds='.sl'
18008 hardcode_into_libs=yes
18009 dynamic_linker="$host_os dld.sl"
18010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18013 soname_spec='$libname$release$shared_ext$major'
18014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18016 ;;
18017 *)
18018 shrext_cmds='.sl'
18019 dynamic_linker="$host_os dld.sl"
18020 shlibpath_var=SHLIB_PATH
18021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18023 soname_spec='$libname$release$shared_ext$major'
18024 ;;
18025 esac
18026 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18027 postinstall_cmds='chmod 555 $lib'
18028 # or fails outright, so override atomically:
18029 install_override_mode=555
18030 ;;
18031
18032 interix[3-9]*)
18033 version_type=linux # correct to gnu/linux during the next big refactor
18034 need_lib_prefix=no
18035 need_version=no
18036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18037 soname_spec='$libname$release$shared_ext$major'
18038 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 shlibpath_overrides_runpath=no
18041 hardcode_into_libs=yes
18042 ;;
18043
18044 irix5* | irix6* | nonstopux*)
18045 case $host_os in
18046 nonstopux*) version_type=nonstopux ;;
18047 *)
18048 if test yes = "$lt_cv_prog_gnu_ld"; then
18049 version_type=linux # correct to gnu/linux during the next big refactor
18050 else
18051 version_type=irix
18052 fi ;;
18053 esac
18054 need_lib_prefix=no
18055 need_version=no
18056 soname_spec='$libname$release$shared_ext$major'
18057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18058 case $host_os in
18059 irix5* | nonstopux*)
18060 libsuff= shlibsuff=
18061 ;;
18062 *)
18063 case $LD in # libtool.m4 will add one of these switches to LD
18064 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18065 libsuff= shlibsuff= libmagic=32-bit;;
18066 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18067 libsuff=32 shlibsuff=N32 libmagic=N32;;
18068 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18069 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18070 *) libsuff= shlibsuff= libmagic=never-match;;
18071 esac
18072 ;;
18073 esac
18074 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18075 shlibpath_overrides_runpath=no
18076 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18077 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18078 hardcode_into_libs=yes
18079 ;;
18080
18081 # No shared lib support for Linux oldld, aout, or coff.
18082 linux*oldld* | linux*aout* | linux*coff*)
18083 dynamic_linker=no
18084 ;;
18085
18086 linux*android*)
18087 version_type=none # Android doesn't support versioned libraries.
18088 need_lib_prefix=no
18089 need_version=no
18090 library_names_spec='$libname$release$shared_ext'
18091 soname_spec='$libname$release$shared_ext'
18092 finish_cmds=
18093 shlibpath_var=LD_LIBRARY_PATH
18094 shlibpath_overrides_runpath=yes
18095
18096 # This implies no fast_install, which is unacceptable.
18097 # Some rework will be needed to allow for fast_install
18098 # before this can be enabled.
18099 hardcode_into_libs=yes
18100
18101 dynamic_linker='Android linker'
18102 # Don't embed -rpath directories since the linker doesn't support them.
18103 hardcode_libdir_flag_spec_CXX='-L$libdir'
18104 ;;
18105
18106 # This must be glibc/ELF.
18107 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18108 version_type=linux # correct to gnu/linux during the next big refactor
18109 need_lib_prefix=no
18110 need_version=no
18111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18112 soname_spec='$libname$release$shared_ext$major'
18113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=no
18116
18117 # Some binutils ld are patched to set DT_RUNPATH
18118 if test ${lt_cv_shlibpath_overrides_runpath+y}
18119 then :
18120 printf %s "(cached) " >&6
18121 else $as_nop
18122 lt_cv_shlibpath_overrides_runpath=no
18123 save_LDFLAGS=$LDFLAGS
18124 save_libdir=$libdir
18125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129
18130 int
18131 main (void)
18132 {
18133
18134 ;
18135 return 0;
18136 }
18137 _ACEOF
18138 if ac_fn_cxx_try_link "$LINENO"
18139 then :
18140 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18141 then :
18142 lt_cv_shlibpath_overrides_runpath=yes
18143 fi
18144 fi
18145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LDFLAGS=$save_LDFLAGS
18148 libdir=$save_libdir
18149
18150 fi
18151
18152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18153
18154 # This implies no fast_install, which is unacceptable.
18155 # Some rework will be needed to allow for fast_install
18156 # before this can be enabled.
18157 hardcode_into_libs=yes
18158
18159 # Add ABI-specific directories to the system library path.
18160 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18161
18162 # Ideally, we could use ldconfig to report *all* directores which are
18163 # searched for libraries, however this is still not possible. Aside from not
18164 # being certain /sbin/ldconfig is available, command
18165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18166 # even though it is searched at run-time. Try to do the best guess by
18167 # appending ld.so.conf contents (and includes) to the search path.
18168 if test -f /etc/ld.so.conf; then
18169 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' ' '`
18170 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18171 fi
18172
18173 # We used to test for /lib/ld.so.1 and disable shared libraries on
18174 # powerpc, because MkLinux only supported shared libraries with the
18175 # GNU dynamic linker. Since this was broken with cross compilers,
18176 # most powerpc-linux boxes support dynamic linking these days and
18177 # people can always --disable-shared, the test was removed, and we
18178 # assume the GNU/Linux dynamic linker is in use.
18179 dynamic_linker='GNU/Linux ld.so'
18180 ;;
18181
18182 netbsd*)
18183 version_type=sunos
18184 need_lib_prefix=no
18185 need_version=no
18186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189 dynamic_linker='NetBSD (a.out) ld.so'
18190 else
18191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18192 soname_spec='$libname$release$shared_ext$major'
18193 dynamic_linker='NetBSD ld.elf_so'
18194 fi
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=yes
18197 hardcode_into_libs=yes
18198 ;;
18199
18200 newsos6)
18201 version_type=linux # correct to gnu/linux during the next big refactor
18202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203 shlibpath_var=LD_LIBRARY_PATH
18204 shlibpath_overrides_runpath=yes
18205 ;;
18206
18207 *nto* | *qnx*)
18208 version_type=qnx
18209 need_lib_prefix=no
18210 need_version=no
18211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18212 soname_spec='$libname$release$shared_ext$major'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 shlibpath_overrides_runpath=no
18215 hardcode_into_libs=yes
18216 dynamic_linker='ldqnx.so'
18217 ;;
18218
18219 openbsd* | bitrig*)
18220 version_type=sunos
18221 sys_lib_dlsearch_path_spec=/usr/lib
18222 need_lib_prefix=no
18223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18224 need_version=no
18225 else
18226 need_version=yes
18227 fi
18228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 ;;
18233
18234 os2*)
18235 libname_spec='$name'
18236 version_type=windows
18237 shrext_cmds=.dll
18238 need_version=no
18239 need_lib_prefix=no
18240 # OS/2 can only load a DLL with a base name of 8 characters or less.
18241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18242 v=$($ECHO $release$versuffix | tr -d .-);
18243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18244 $ECHO $n$v`$shared_ext'
18245 library_names_spec='${libname}_dll.$libext'
18246 dynamic_linker='OS/2 ld.exe'
18247 shlibpath_var=BEGINLIBPATH
18248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18250 postinstall_cmds='base_file=`basename \$file`~
18251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18252 dldir=$destdir/`dirname \$dlpath`~
18253 test -d \$dldir || mkdir -p \$dldir~
18254 $install_prog $dir/$dlname \$dldir/$dlname~
18255 chmod a+x \$dldir/$dlname~
18256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18258 fi'
18259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18260 dlpath=$dir/\$dldll~
18261 $RM \$dlpath'
18262 ;;
18263
18264 osf3* | osf4* | osf5*)
18265 version_type=osf
18266 need_lib_prefix=no
18267 need_version=no
18268 soname_spec='$libname$release$shared_ext$major'
18269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18273 ;;
18274
18275 rdos*)
18276 dynamic_linker=no
18277 ;;
18278
18279 solaris*)
18280 version_type=linux # correct to gnu/linux during the next big refactor
18281 need_lib_prefix=no
18282 need_version=no
18283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18284 soname_spec='$libname$release$shared_ext$major'
18285 shlibpath_var=LD_LIBRARY_PATH
18286 shlibpath_overrides_runpath=yes
18287 hardcode_into_libs=yes
18288 # ldd complains unless libraries are executable
18289 postinstall_cmds='chmod +x $lib'
18290 ;;
18291
18292 sunos4*)
18293 version_type=sunos
18294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18296 shlibpath_var=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath=yes
18298 if test yes = "$with_gnu_ld"; then
18299 need_lib_prefix=no
18300 fi
18301 need_version=yes
18302 ;;
18303
18304 sysv4 | sysv4.3*)
18305 version_type=linux # correct to gnu/linux during the next big refactor
18306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18307 soname_spec='$libname$release$shared_ext$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 case $host_vendor in
18310 sni)
18311 shlibpath_overrides_runpath=no
18312 need_lib_prefix=no
18313 runpath_var=LD_RUN_PATH
18314 ;;
18315 siemens)
18316 need_lib_prefix=no
18317 ;;
18318 motorola)
18319 need_lib_prefix=no
18320 need_version=no
18321 shlibpath_overrides_runpath=no
18322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18323 ;;
18324 esac
18325 ;;
18326
18327 sysv4*MP*)
18328 if test -d /usr/nec; then
18329 version_type=linux # correct to gnu/linux during the next big refactor
18330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18331 soname_spec='$libname$shared_ext.$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 fi
18334 ;;
18335
18336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18337 version_type=sco
18338 need_lib_prefix=no
18339 need_version=no
18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18341 soname_spec='$libname$release$shared_ext$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 hardcode_into_libs=yes
18345 if test yes = "$with_gnu_ld"; then
18346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18347 else
18348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18349 case $host_os in
18350 sco3.2v5*)
18351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18352 ;;
18353 esac
18354 fi
18355 sys_lib_dlsearch_path_spec='/usr/lib'
18356 ;;
18357
18358 tpf*)
18359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18360 version_type=linux # correct to gnu/linux during the next big refactor
18361 need_lib_prefix=no
18362 need_version=no
18363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath=no
18366 hardcode_into_libs=yes
18367 ;;
18368
18369 uts4*)
18370 version_type=linux # correct to gnu/linux during the next big refactor
18371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18372 soname_spec='$libname$release$shared_ext$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 ;;
18375
18376 *)
18377 dynamic_linker=no
18378 ;;
18379 esac
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18381 printf "%s\n" "$dynamic_linker" >&6; }
18382 test no = "$dynamic_linker" && can_build_shared=no
18383
18384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18385 if test yes = "$GCC"; then
18386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18387 fi
18388
18389 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18391 fi
18392
18393 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18395 fi
18396
18397 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18398 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18399
18400 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18401 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18402
18403 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18404 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18446 printf %s "checking how to hardcode library paths into programs... " >&6; }
18447 hardcode_action_CXX=
18448 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18449 test -n "$runpath_var_CXX" ||
18450 test yes = "$hardcode_automatic_CXX"; then
18451
18452 # We can hardcode non-existent directories.
18453 if test no != "$hardcode_direct_CXX" &&
18454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18455 # have to relink, otherwise we might link with an installed library
18456 # when we should be linking with a yet-to-be-installed one
18457 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18458 test no != "$hardcode_minus_L_CXX"; then
18459 # Linking always hardcodes the temporary library directory.
18460 hardcode_action_CXX=relink
18461 else
18462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18463 hardcode_action_CXX=immediate
18464 fi
18465 else
18466 # We cannot hardcode anything, or else we can only hardcode existing
18467 # directories.
18468 hardcode_action_CXX=unsupported
18469 fi
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18471 printf "%s\n" "$hardcode_action_CXX" >&6; }
18472
18473 if test relink = "$hardcode_action_CXX" ||
18474 test yes = "$inherit_rpath_CXX"; then
18475 # Fast installation is not supported
18476 enable_fast_install=no
18477 elif test yes = "$shlibpath_overrides_runpath" ||
18478 test no = "$enable_shared"; then
18479 # Fast installation is not necessary
18480 enable_fast_install=needless
18481 fi
18482
18483
18484
18485
18486
18487
18488
18489 fi # test -n "$compiler"
18490
18491 CC=$lt_save_CC
18492 CFLAGS=$lt_save_CFLAGS
18493 LDCXX=$LD
18494 LD=$lt_save_LD
18495 GCC=$lt_save_GCC
18496 with_gnu_ld=$lt_save_with_gnu_ld
18497 lt_cv_path_LDCXX=$lt_cv_path_LD
18498 lt_cv_path_LD=$lt_save_path_LD
18499 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18500 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18501 fi # test yes != "$_lt_caught_CXX_error"
18502
18503 ac_ext=cpp
18504 ac_cpp='$CXXCPP $CPPFLAGS'
18505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523 ac_config_commands="$ac_config_commands libtool"
18524
18525
18526
18527
18528 # Only expand once:
18529
18530
18531
18532
18533 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
18534 ac_ext=cpp
18535 ac_cpp='$CXXCPP $CPPFLAGS'
18536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18539 ac_success=no
18540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18541 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
18542 if test ${ax_cv_cxx_compile_cxx11+y}
18543 then :
18544 printf %s "(cached) " >&6
18545 else $as_nop
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548
18549
18550 // If the compiler admits that it is not ready for C++11, why torture it?
18551 // Hopefully, this will speed up the test.
18552
18553 #ifndef __cplusplus
18554
18555 #error "This is not a C++ compiler"
18556
18557 #elif __cplusplus < 201103L && !(defined _MSC_VER)
18558
18559 #error "This is not a C++11 compiler"
18560
18561 #else
18562
18563 namespace cxx11
18564 {
18565
18566 namespace test_static_assert
18567 {
18568
18569 template <typename T>
18570 struct check
18571 {
18572 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18573 };
18574
18575 }
18576
18577 namespace test_final_override
18578 {
18579
18580 struct Base
18581 {
18582 virtual void f() {}
18583 };
18584
18585 struct Derived : public Base
18586 {
18587 virtual void f() override {}
18588 };
18589
18590 }
18591
18592 namespace test_double_right_angle_brackets
18593 {
18594
18595 template < typename T >
18596 struct check {};
18597
18598 typedef check<void> single_type;
18599 typedef check<check<void>> double_type;
18600 typedef check<check<check<void>>> triple_type;
18601 typedef check<check<check<check<void>>>> quadruple_type;
18602
18603 }
18604
18605 namespace test_decltype
18606 {
18607
18608 int
18609 f()
18610 {
18611 int a = 1;
18612 decltype(a) b = 2;
18613 return a + b;
18614 }
18615
18616 }
18617
18618 namespace test_type_deduction
18619 {
18620
18621 template < typename T1, typename T2 >
18622 struct is_same
18623 {
18624 static const bool value = false;
18625 };
18626
18627 template < typename T >
18628 struct is_same<T, T>
18629 {
18630 static const bool value = true;
18631 };
18632
18633 template < typename T1, typename T2 >
18634 auto
18635 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18636 {
18637 return a1 + a2;
18638 }
18639
18640 int
18641 test(const int c, volatile int v)
18642 {
18643 static_assert(is_same<int, decltype(0)>::value == true, "");
18644 static_assert(is_same<int, decltype(c)>::value == false, "");
18645 static_assert(is_same<int, decltype(v)>::value == false, "");
18646 auto ac = c;
18647 auto av = v;
18648 auto sumi = ac + av + 'x';
18649 auto sumf = ac + av + 1.0;
18650 static_assert(is_same<int, decltype(ac)>::value == true, "");
18651 static_assert(is_same<int, decltype(av)>::value == true, "");
18652 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18653 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18654 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18655 return (sumf > 0.0) ? sumi : add(c, v);
18656 }
18657
18658 }
18659
18660 namespace test_noexcept
18661 {
18662
18663 int f() { return 0; }
18664 int g() noexcept { return 0; }
18665
18666 static_assert(noexcept(f()) == false, "");
18667 static_assert(noexcept(g()) == true, "");
18668
18669 }
18670
18671 namespace test_constexpr
18672 {
18673
18674 template < typename CharT >
18675 unsigned long constexpr
18676 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18677 {
18678 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18679 }
18680
18681 template < typename CharT >
18682 unsigned long constexpr
18683 strlen_c(const CharT *const s) noexcept
18684 {
18685 return strlen_c_r(s, 0UL);
18686 }
18687
18688 static_assert(strlen_c("") == 0UL, "");
18689 static_assert(strlen_c("1") == 1UL, "");
18690 static_assert(strlen_c("example") == 7UL, "");
18691 static_assert(strlen_c("another\0example") == 7UL, "");
18692
18693 }
18694
18695 namespace test_rvalue_references
18696 {
18697
18698 template < int N >
18699 struct answer
18700 {
18701 static constexpr int value = N;
18702 };
18703
18704 answer<1> f(int&) { return answer<1>(); }
18705 answer<2> f(const int&) { return answer<2>(); }
18706 answer<3> f(int&&) { return answer<3>(); }
18707
18708 void
18709 test()
18710 {
18711 int i = 0;
18712 const int c = 0;
18713 static_assert(decltype(f(i))::value == 1, "");
18714 static_assert(decltype(f(c))::value == 2, "");
18715 static_assert(decltype(f(0))::value == 3, "");
18716 }
18717
18718 }
18719
18720 namespace test_uniform_initialization
18721 {
18722
18723 struct test
18724 {
18725 static const int zero {};
18726 static const int one {1};
18727 };
18728
18729 static_assert(test::zero == 0, "");
18730 static_assert(test::one == 1, "");
18731
18732 }
18733
18734 namespace test_lambdas
18735 {
18736
18737 void
18738 test1()
18739 {
18740 auto lambda1 = [](){};
18741 auto lambda2 = lambda1;
18742 lambda1();
18743 lambda2();
18744 }
18745
18746 int
18747 test2()
18748 {
18749 auto a = [](int i, int j){ return i + j; }(1, 2);
18750 auto b = []() -> int { return '0'; }();
18751 auto c = [=](){ return a + b; }();
18752 auto d = [&](){ return c; }();
18753 auto e = [a, &b](int x) mutable {
18754 const auto identity = [](int y){ return y; };
18755 for (auto i = 0; i < a; ++i)
18756 a += b--;
18757 return x + identity(a + b);
18758 }(0);
18759 return a + b + c + d + e;
18760 }
18761
18762 int
18763 test3()
18764 {
18765 const auto nullary = [](){ return 0; };
18766 const auto unary = [](int x){ return x; };
18767 using nullary_t = decltype(nullary);
18768 using unary_t = decltype(unary);
18769 const auto higher1st = [](nullary_t f){ return f(); };
18770 const auto higher2nd = [unary](nullary_t f1){
18771 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18772 };
18773 return higher1st(nullary) + higher2nd(nullary)(unary);
18774 }
18775
18776 }
18777
18778 namespace test_variadic_templates
18779 {
18780
18781 template <int...>
18782 struct sum;
18783
18784 template <int N0, int... N1toN>
18785 struct sum<N0, N1toN...>
18786 {
18787 static constexpr auto value = N0 + sum<N1toN...>::value;
18788 };
18789
18790 template <>
18791 struct sum<>
18792 {
18793 static constexpr auto value = 0;
18794 };
18795
18796 static_assert(sum<>::value == 0, "");
18797 static_assert(sum<1>::value == 1, "");
18798 static_assert(sum<23>::value == 23, "");
18799 static_assert(sum<1, 2>::value == 3, "");
18800 static_assert(sum<5, 5, 11>::value == 21, "");
18801 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18802
18803 }
18804
18805 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18806 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18807 // because of this.
18808 namespace test_template_alias_sfinae
18809 {
18810
18811 struct foo {};
18812
18813 template<typename T>
18814 using member = typename T::member_type;
18815
18816 template<typename T>
18817 void func(...) {}
18818
18819 template<typename T>
18820 void func(member<T>*) {}
18821
18822 void test();
18823
18824 void test() { func<foo>(0); }
18825
18826 }
18827
18828 } // namespace cxx11
18829
18830 #endif // __cplusplus >= 201103L
18831
18832
18833
18834 _ACEOF
18835 if ac_fn_cxx_try_compile "$LINENO"
18836 then :
18837 ax_cv_cxx_compile_cxx11=yes
18838 else $as_nop
18839 ax_cv_cxx_compile_cxx11=no
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18842 fi
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18844 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
18845 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18846 ac_success=yes
18847 fi
18848
18849 if test x$ac_success = xno; then
18850 for alternative in ${ax_cxx_compile_alternatives}; do
18851 switch="-std=gnu++${alternative}"
18852 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18854 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
18855 if eval test \${$cachevar+y}
18856 then :
18857 printf %s "(cached) " >&6
18858 else $as_nop
18859 ac_save_CXX="$CXX"
18860 CXX="$CXX $switch"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863
18864
18865 // If the compiler admits that it is not ready for C++11, why torture it?
18866 // Hopefully, this will speed up the test.
18867
18868 #ifndef __cplusplus
18869
18870 #error "This is not a C++ compiler"
18871
18872 #elif __cplusplus < 201103L && !(defined _MSC_VER)
18873
18874 #error "This is not a C++11 compiler"
18875
18876 #else
18877
18878 namespace cxx11
18879 {
18880
18881 namespace test_static_assert
18882 {
18883
18884 template <typename T>
18885 struct check
18886 {
18887 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18888 };
18889
18890 }
18891
18892 namespace test_final_override
18893 {
18894
18895 struct Base
18896 {
18897 virtual void f() {}
18898 };
18899
18900 struct Derived : public Base
18901 {
18902 virtual void f() override {}
18903 };
18904
18905 }
18906
18907 namespace test_double_right_angle_brackets
18908 {
18909
18910 template < typename T >
18911 struct check {};
18912
18913 typedef check<void> single_type;
18914 typedef check<check<void>> double_type;
18915 typedef check<check<check<void>>> triple_type;
18916 typedef check<check<check<check<void>>>> quadruple_type;
18917
18918 }
18919
18920 namespace test_decltype
18921 {
18922
18923 int
18924 f()
18925 {
18926 int a = 1;
18927 decltype(a) b = 2;
18928 return a + b;
18929 }
18930
18931 }
18932
18933 namespace test_type_deduction
18934 {
18935
18936 template < typename T1, typename T2 >
18937 struct is_same
18938 {
18939 static const bool value = false;
18940 };
18941
18942 template < typename T >
18943 struct is_same<T, T>
18944 {
18945 static const bool value = true;
18946 };
18947
18948 template < typename T1, typename T2 >
18949 auto
18950 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18951 {
18952 return a1 + a2;
18953 }
18954
18955 int
18956 test(const int c, volatile int v)
18957 {
18958 static_assert(is_same<int, decltype(0)>::value == true, "");
18959 static_assert(is_same<int, decltype(c)>::value == false, "");
18960 static_assert(is_same<int, decltype(v)>::value == false, "");
18961 auto ac = c;
18962 auto av = v;
18963 auto sumi = ac + av + 'x';
18964 auto sumf = ac + av + 1.0;
18965 static_assert(is_same<int, decltype(ac)>::value == true, "");
18966 static_assert(is_same<int, decltype(av)>::value == true, "");
18967 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18968 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18969 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18970 return (sumf > 0.0) ? sumi : add(c, v);
18971 }
18972
18973 }
18974
18975 namespace test_noexcept
18976 {
18977
18978 int f() { return 0; }
18979 int g() noexcept { return 0; }
18980
18981 static_assert(noexcept(f()) == false, "");
18982 static_assert(noexcept(g()) == true, "");
18983
18984 }
18985
18986 namespace test_constexpr
18987 {
18988
18989 template < typename CharT >
18990 unsigned long constexpr
18991 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18992 {
18993 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18994 }
18995
18996 template < typename CharT >
18997 unsigned long constexpr
18998 strlen_c(const CharT *const s) noexcept
18999 {
19000 return strlen_c_r(s, 0UL);
19001 }
19002
19003 static_assert(strlen_c("") == 0UL, "");
19004 static_assert(strlen_c("1") == 1UL, "");
19005 static_assert(strlen_c("example") == 7UL, "");
19006 static_assert(strlen_c("another\0example") == 7UL, "");
19007
19008 }
19009
19010 namespace test_rvalue_references
19011 {
19012
19013 template < int N >
19014 struct answer
19015 {
19016 static constexpr int value = N;
19017 };
19018
19019 answer<1> f(int&) { return answer<1>(); }
19020 answer<2> f(const int&) { return answer<2>(); }
19021 answer<3> f(int&&) { return answer<3>(); }
19022
19023 void
19024 test()
19025 {
19026 int i = 0;
19027 const int c = 0;
19028 static_assert(decltype(f(i))::value == 1, "");
19029 static_assert(decltype(f(c))::value == 2, "");
19030 static_assert(decltype(f(0))::value == 3, "");
19031 }
19032
19033 }
19034
19035 namespace test_uniform_initialization
19036 {
19037
19038 struct test
19039 {
19040 static const int zero {};
19041 static const int one {1};
19042 };
19043
19044 static_assert(test::zero == 0, "");
19045 static_assert(test::one == 1, "");
19046
19047 }
19048
19049 namespace test_lambdas
19050 {
19051
19052 void
19053 test1()
19054 {
19055 auto lambda1 = [](){};
19056 auto lambda2 = lambda1;
19057 lambda1();
19058 lambda2();
19059 }
19060
19061 int
19062 test2()
19063 {
19064 auto a = [](int i, int j){ return i + j; }(1, 2);
19065 auto b = []() -> int { return '0'; }();
19066 auto c = [=](){ return a + b; }();
19067 auto d = [&](){ return c; }();
19068 auto e = [a, &b](int x) mutable {
19069 const auto identity = [](int y){ return y; };
19070 for (auto i = 0; i < a; ++i)
19071 a += b--;
19072 return x + identity(a + b);
19073 }(0);
19074 return a + b + c + d + e;
19075 }
19076
19077 int
19078 test3()
19079 {
19080 const auto nullary = [](){ return 0; };
19081 const auto unary = [](int x){ return x; };
19082 using nullary_t = decltype(nullary);
19083 using unary_t = decltype(unary);
19084 const auto higher1st = [](nullary_t f){ return f(); };
19085 const auto higher2nd = [unary](nullary_t f1){
19086 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19087 };
19088 return higher1st(nullary) + higher2nd(nullary)(unary);
19089 }
19090
19091 }
19092
19093 namespace test_variadic_templates
19094 {
19095
19096 template <int...>
19097 struct sum;
19098
19099 template <int N0, int... N1toN>
19100 struct sum<N0, N1toN...>
19101 {
19102 static constexpr auto value = N0 + sum<N1toN...>::value;
19103 };
19104
19105 template <>
19106 struct sum<>
19107 {
19108 static constexpr auto value = 0;
19109 };
19110
19111 static_assert(sum<>::value == 0, "");
19112 static_assert(sum<1>::value == 1, "");
19113 static_assert(sum<23>::value == 23, "");
19114 static_assert(sum<1, 2>::value == 3, "");
19115 static_assert(sum<5, 5, 11>::value == 21, "");
19116 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19117
19118 }
19119
19120 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19121 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19122 // because of this.
19123 namespace test_template_alias_sfinae
19124 {
19125
19126 struct foo {};
19127
19128 template<typename T>
19129 using member = typename T::member_type;
19130
19131 template<typename T>
19132 void func(...) {}
19133
19134 template<typename T>
19135 void func(member<T>*) {}
19136
19137 void test();
19138
19139 void test() { func<foo>(0); }
19140
19141 }
19142
19143 } // namespace cxx11
19144
19145 #endif // __cplusplus >= 201103L
19146
19147
19148
19149 _ACEOF
19150 if ac_fn_cxx_try_compile "$LINENO"
19151 then :
19152 eval $cachevar=yes
19153 else $as_nop
19154 eval $cachevar=no
19155 fi
19156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19157 CXX="$ac_save_CXX"
19158 fi
19159 eval ac_res=\$$cachevar
19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19161 printf "%s\n" "$ac_res" >&6; }
19162 if eval test x\$$cachevar = xyes; then
19163 CXX="$CXX $switch"
19164 if test -n "$CXXCPP" ; then
19165 CXXCPP="$CXXCPP $switch"
19166 fi
19167 ac_success=yes
19168 break
19169 fi
19170 done
19171 fi
19172
19173 if test x$ac_success = xno; then
19174 for alternative in ${ax_cxx_compile_alternatives}; do
19175 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19176 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
19178 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
19179 if eval test \${$cachevar+y}
19180 then :
19181 printf %s "(cached) " >&6
19182 else $as_nop
19183 ac_save_CXX="$CXX"
19184 CXX="$CXX $switch"
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187
19188
19189 // If the compiler admits that it is not ready for C++11, why torture it?
19190 // Hopefully, this will speed up the test.
19191
19192 #ifndef __cplusplus
19193
19194 #error "This is not a C++ compiler"
19195
19196 #elif __cplusplus < 201103L && !(defined _MSC_VER)
19197
19198 #error "This is not a C++11 compiler"
19199
19200 #else
19201
19202 namespace cxx11
19203 {
19204
19205 namespace test_static_assert
19206 {
19207
19208 template <typename T>
19209 struct check
19210 {
19211 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19212 };
19213
19214 }
19215
19216 namespace test_final_override
19217 {
19218
19219 struct Base
19220 {
19221 virtual void f() {}
19222 };
19223
19224 struct Derived : public Base
19225 {
19226 virtual void f() override {}
19227 };
19228
19229 }
19230
19231 namespace test_double_right_angle_brackets
19232 {
19233
19234 template < typename T >
19235 struct check {};
19236
19237 typedef check<void> single_type;
19238 typedef check<check<void>> double_type;
19239 typedef check<check<check<void>>> triple_type;
19240 typedef check<check<check<check<void>>>> quadruple_type;
19241
19242 }
19243
19244 namespace test_decltype
19245 {
19246
19247 int
19248 f()
19249 {
19250 int a = 1;
19251 decltype(a) b = 2;
19252 return a + b;
19253 }
19254
19255 }
19256
19257 namespace test_type_deduction
19258 {
19259
19260 template < typename T1, typename T2 >
19261 struct is_same
19262 {
19263 static const bool value = false;
19264 };
19265
19266 template < typename T >
19267 struct is_same<T, T>
19268 {
19269 static const bool value = true;
19270 };
19271
19272 template < typename T1, typename T2 >
19273 auto
19274 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19275 {
19276 return a1 + a2;
19277 }
19278
19279 int
19280 test(const int c, volatile int v)
19281 {
19282 static_assert(is_same<int, decltype(0)>::value == true, "");
19283 static_assert(is_same<int, decltype(c)>::value == false, "");
19284 static_assert(is_same<int, decltype(v)>::value == false, "");
19285 auto ac = c;
19286 auto av = v;
19287 auto sumi = ac + av + 'x';
19288 auto sumf = ac + av + 1.0;
19289 static_assert(is_same<int, decltype(ac)>::value == true, "");
19290 static_assert(is_same<int, decltype(av)>::value == true, "");
19291 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19292 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19293 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19294 return (sumf > 0.0) ? sumi : add(c, v);
19295 }
19296
19297 }
19298
19299 namespace test_noexcept
19300 {
19301
19302 int f() { return 0; }
19303 int g() noexcept { return 0; }
19304
19305 static_assert(noexcept(f()) == false, "");
19306 static_assert(noexcept(g()) == true, "");
19307
19308 }
19309
19310 namespace test_constexpr
19311 {
19312
19313 template < typename CharT >
19314 unsigned long constexpr
19315 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19316 {
19317 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19318 }
19319
19320 template < typename CharT >
19321 unsigned long constexpr
19322 strlen_c(const CharT *const s) noexcept
19323 {
19324 return strlen_c_r(s, 0UL);
19325 }
19326
19327 static_assert(strlen_c("") == 0UL, "");
19328 static_assert(strlen_c("1") == 1UL, "");
19329 static_assert(strlen_c("example") == 7UL, "");
19330 static_assert(strlen_c("another\0example") == 7UL, "");
19331
19332 }
19333
19334 namespace test_rvalue_references
19335 {
19336
19337 template < int N >
19338 struct answer
19339 {
19340 static constexpr int value = N;
19341 };
19342
19343 answer<1> f(int&) { return answer<1>(); }
19344 answer<2> f(const int&) { return answer<2>(); }
19345 answer<3> f(int&&) { return answer<3>(); }
19346
19347 void
19348 test()
19349 {
19350 int i = 0;
19351 const int c = 0;
19352 static_assert(decltype(f(i))::value == 1, "");
19353 static_assert(decltype(f(c))::value == 2, "");
19354 static_assert(decltype(f(0))::value == 3, "");
19355 }
19356
19357 }
19358
19359 namespace test_uniform_initialization
19360 {
19361
19362 struct test
19363 {
19364 static const int zero {};
19365 static const int one {1};
19366 };
19367
19368 static_assert(test::zero == 0, "");
19369 static_assert(test::one == 1, "");
19370
19371 }
19372
19373 namespace test_lambdas
19374 {
19375
19376 void
19377 test1()
19378 {
19379 auto lambda1 = [](){};
19380 auto lambda2 = lambda1;
19381 lambda1();
19382 lambda2();
19383 }
19384
19385 int
19386 test2()
19387 {
19388 auto a = [](int i, int j){ return i + j; }(1, 2);
19389 auto b = []() -> int { return '0'; }();
19390 auto c = [=](){ return a + b; }();
19391 auto d = [&](){ return c; }();
19392 auto e = [a, &b](int x) mutable {
19393 const auto identity = [](int y){ return y; };
19394 for (auto i = 0; i < a; ++i)
19395 a += b--;
19396 return x + identity(a + b);
19397 }(0);
19398 return a + b + c + d + e;
19399 }
19400
19401 int
19402 test3()
19403 {
19404 const auto nullary = [](){ return 0; };
19405 const auto unary = [](int x){ return x; };
19406 using nullary_t = decltype(nullary);
19407 using unary_t = decltype(unary);
19408 const auto higher1st = [](nullary_t f){ return f(); };
19409 const auto higher2nd = [unary](nullary_t f1){
19410 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19411 };
19412 return higher1st(nullary) + higher2nd(nullary)(unary);
19413 }
19414
19415 }
19416
19417 namespace test_variadic_templates
19418 {
19419
19420 template <int...>
19421 struct sum;
19422
19423 template <int N0, int... N1toN>
19424 struct sum<N0, N1toN...>
19425 {
19426 static constexpr auto value = N0 + sum<N1toN...>::value;
19427 };
19428
19429 template <>
19430 struct sum<>
19431 {
19432 static constexpr auto value = 0;
19433 };
19434
19435 static_assert(sum<>::value == 0, "");
19436 static_assert(sum<1>::value == 1, "");
19437 static_assert(sum<23>::value == 23, "");
19438 static_assert(sum<1, 2>::value == 3, "");
19439 static_assert(sum<5, 5, 11>::value == 21, "");
19440 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19441
19442 }
19443
19444 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19445 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19446 // because of this.
19447 namespace test_template_alias_sfinae
19448 {
19449
19450 struct foo {};
19451
19452 template<typename T>
19453 using member = typename T::member_type;
19454
19455 template<typename T>
19456 void func(...) {}
19457
19458 template<typename T>
19459 void func(member<T>*) {}
19460
19461 void test();
19462
19463 void test() { func<foo>(0); }
19464
19465 }
19466
19467 } // namespace cxx11
19468
19469 #endif // __cplusplus >= 201103L
19470
19471
19472
19473 _ACEOF
19474 if ac_fn_cxx_try_compile "$LINENO"
19475 then :
19476 eval $cachevar=yes
19477 else $as_nop
19478 eval $cachevar=no
19479 fi
19480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19481 CXX="$ac_save_CXX"
19482 fi
19483 eval ac_res=\$$cachevar
19484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19485 printf "%s\n" "$ac_res" >&6; }
19486 if eval test x\$$cachevar = xyes; then
19487 CXX="$CXX $switch"
19488 if test -n "$CXXCPP" ; then
19489 CXXCPP="$CXXCPP $switch"
19490 fi
19491 ac_success=yes
19492 break
19493 fi
19494 done
19495 if test x$ac_success = xyes; then
19496 break
19497 fi
19498 done
19499 fi
19500 ac_ext=cpp
19501 ac_cpp='$CXXCPP $CPPFLAGS'
19502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19505
19506 if test x$ax_cxx_compile_cxx11_required = xtrue; then
19507 if test x$ac_success = xno; then
19508 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19509 fi
19510 fi
19511 if test x$ac_success = xno; then
19512 HAVE_CXX11=0
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19514 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
19515 else
19516 HAVE_CXX11=1
19517
19518 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
19519
19520 fi
19521
19522
19523
19524
19525 # =================================
19526 # Libtool/Version Makefile settings
19527 # =================================
19528 RVNG_MAJOR_VERSION=0
19529
19530 RVNG_MINOR_VERSION=0
19531
19532 RVNG_MICRO_VERSION=5
19533
19534 RVNG_VERSION=0.0.5
19535
19536 # AC_SUBST(LT_RELEASE, [librevenge_version_major.librevenge_version_minor])
19537 LT_CURRENT=`expr 100 '*' 0 + 0`
19538 # For 1.0.0 comment the first line and uncomment the second
19539 LT_AGE=0
19540 # LT_AGE=librevenge_version_minor
19541
19542 LT_REVISION=5
19543
19544
19545
19546 # ==========================
19547 # Platform check for windows
19548 # ==========================
19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19550 printf %s "checking for native Win32... " >&6; }
19551 case $host in #(
19552 *-*-mingw*) :
19553
19554 native_win32=yes
19555 LIBREVENGE_WIN32_RESOURCE=librevenge-win32res.lo
19556 LIBREVENGE_GENERATORS_WIN32_RESOURCE=librevenge-generators-win32res.lo
19557 LIBREVENGE_STREAM_WIN32_RESOURCE=librevenge-stream-win32res.lo
19558 ;; #(
19559 *) :
19560
19561 native_win32=no
19562 LIBREVENGE_WIN32_RESOURCE=
19563 LIBREVENGE_GENERATORS_WIN32_RESOURCE=
19564 LIBREVENGE_STREAM_WIN32_RESOURCE=
19565
19566 ;;
19567 esac
19568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
19569 printf "%s\n" "$native_win32" >&6; }
19570 if test "x$native_win32" = "xyes"; then
19571 OS_WIN32_TRUE=
19572 OS_WIN32_FALSE='#'
19573 else
19574 OS_WIN32_TRUE='#'
19575 OS_WIN32_FALSE=
19576 fi
19577
19578
19579
19580
19581
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
19583 printf %s "checking for Win32 platform in general... " >&6; }
19584 case $host in #(
19585 *-*-mingw*|*-*-cygwin*) :
19586 platform_win32=yes ;; #(
19587 *) :
19588 platform_win32=no
19589 ;;
19590 esac
19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
19592 printf "%s\n" "$platform_win32" >&6; }
19593 if test "x$platform_win32" = "xyes"; then
19594 PLATFORM_WIN32_TRUE=
19595 PLATFORM_WIN32_FALSE='#'
19596 else
19597 PLATFORM_WIN32_TRUE='#'
19598 PLATFORM_WIN32_FALSE=
19599 fi
19600
19601
19602 if test "x$platform_win32" = "xyes"
19603 then :
19604
19605 else $as_nop
19606
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
19608 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
19609 saved_CPPFLAGS="$CPPFLAGS"
19610 CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19613
19614 int
19615 main (void)
19616 {
19617
19618 ;
19619 return 0;
19620 }
19621 _ACEOF
19622 if ac_fn_cxx_try_compile "$LINENO"
19623 then :
19624 have_visibility=yes
19625 else $as_nop
19626 have_visibility=no
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
19630 printf "%s\n" "$have_visibility" >&6; }
19631 CPPFLAGS="$saved_CPPFLAGS"
19632
19633
19634 fi
19635 if test "x$have_visibility" = "xyes"; then
19636 HAVE_VISIBILITY_TRUE=
19637 HAVE_VISIBILITY_FALSE='#'
19638 else
19639 HAVE_VISIBILITY_TRUE='#'
19640 HAVE_VISIBILITY_FALSE=
19641 fi
19642
19643
19644 # =========================
19645 # Platform check for darwin
19646 # =========================
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X) platform" >&5
19648 printf %s "checking for Darwin (Mac OS X) platform... " >&6; }
19649 case $host in #(
19650 *-*-darwin*) :
19651 platform_darwin=yes ;; #(
19652 *) :
19653 platform_darwin=no
19654 ;;
19655 esac
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_darwin" >&5
19657 printf "%s\n" "$platform_darwin" >&6; }
19658 if test "x$platform_darwin" = "xyes"; then
19659 PLATFORM_DARWIN_TRUE=
19660 PLATFORM_DARWIN_FALSE='#'
19661 else
19662 PLATFORM_DARWIN_TRUE='#'
19663 PLATFORM_DARWIN_FALSE=
19664 fi
19665
19666
19667 # ================
19668 # Check for cflags
19669 # ================
19670 # Check whether --enable-werror was given.
19671 if test ${enable_werror+y}
19672 then :
19673 enableval=$enable_werror; enable_werror="$enableval"
19674 else $as_nop
19675 enable_werror=no
19676
19677 fi
19678
19679 if test x"$enable_werror" != "xno"
19680 then :
19681
19682 CFLAGS="$CFLAGS -Werror"
19683 CXXFLAGS="$CXXFLAGS -Werror"
19684
19685 fi
19686 # Check whether --enable-weffc was given.
19687 if test ${enable_weffc+y}
19688 then :
19689 enableval=$enable_weffc; enable_weffc="$enableval"
19690 else $as_nop
19691 enable_weffc=yes
19692
19693 fi
19694
19695 # Check whether --enable-wparanoic was given.
19696 if test ${enable_wparanoic+y}
19697 then :
19698 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
19699 else $as_nop
19700 enable_wparanoic=no
19701
19702 fi
19703
19704 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
19705 # is used when compiling for Win32 with gcc.
19706 if test "x$native_win32" = "xyes"
19707 then :
19708
19709 if test -n "$ac_tool_prefix"; then
19710 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19711 set dummy ${ac_tool_prefix}windres; ac_word=$2
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19713 printf %s "checking for $ac_word... " >&6; }
19714 if test ${ac_cv_prog_WINDRES+y}
19715 then :
19716 printf %s "(cached) " >&6
19717 else $as_nop
19718 if test -n "$WINDRES"; then
19719 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19720 else
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19723 do
19724 IFS=$as_save_IFS
19725 case $as_dir in #(((
19726 '') as_dir=./ ;;
19727 */) ;;
19728 *) as_dir=$as_dir/ ;;
19729 esac
19730 for ac_exec_ext in '' $ac_executable_extensions; do
19731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19732 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19734 break 2
19735 fi
19736 done
19737 done
19738 IFS=$as_save_IFS
19739
19740 fi
19741 fi
19742 WINDRES=$ac_cv_prog_WINDRES
19743 if test -n "$WINDRES"; then
19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19745 printf "%s\n" "$WINDRES" >&6; }
19746 else
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19748 printf "%s\n" "no" >&6; }
19749 fi
19750
19751
19752 fi
19753 if test -z "$ac_cv_prog_WINDRES"; then
19754 ac_ct_WINDRES=$WINDRES
19755 # Extract the first word of "windres", so it can be a program name with args.
19756 set dummy windres; ac_word=$2
19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19758 printf %s "checking for $ac_word... " >&6; }
19759 if test ${ac_cv_prog_ac_ct_WINDRES+y}
19760 then :
19761 printf %s "(cached) " >&6
19762 else $as_nop
19763 if test -n "$ac_ct_WINDRES"; then
19764 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19765 else
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769 IFS=$as_save_IFS
19770 case $as_dir in #(((
19771 '') as_dir=./ ;;
19772 */) ;;
19773 *) as_dir=$as_dir/ ;;
19774 esac
19775 for ac_exec_ext in '' $ac_executable_extensions; do
19776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19777 ac_cv_prog_ac_ct_WINDRES="windres"
19778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19779 break 2
19780 fi
19781 done
19782 done
19783 IFS=$as_save_IFS
19784
19785 fi
19786 fi
19787 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19788 if test -n "$ac_ct_WINDRES"; then
19789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19790 printf "%s\n" "$ac_ct_WINDRES" >&6; }
19791 else
19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19793 printf "%s\n" "no" >&6; }
19794 fi
19795
19796 if test "x$ac_ct_WINDRES" = x; then
19797 WINDRES=""
19798 else
19799 case $cross_compiling:$ac_tool_warned in
19800 yes:)
19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19803 ac_tool_warned=yes ;;
19804 esac
19805 WINDRES=$ac_ct_WINDRES
19806 fi
19807 else
19808 WINDRES="$ac_cv_prog_WINDRES"
19809 fi
19810
19811 if test x"$GCC" = xyes
19812 then :
19813
19814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
19815 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
19816 if test -z "$ac_cv_prog_CC"
19817 then :
19818
19819 our_gcc="$CC"
19820
19821 else $as_nop
19822
19823 our_gcc="$ac_cv_prog_CC"
19824
19825 fi
19826 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
19827 then :
19828
19829 msnative_struct="-mms-bitfields"
19830 CFLAGS="$CFLAGS $msnative_struct"
19831 CXXFLAGS="$CXXFLAGS $msnative_struct"
19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
19833 printf "%s\n" "${msnative_struct}" >&6; }
19834
19835 else $as_nop
19836
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
19838 printf "%s\n" "no way" >&6; }
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
19840 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
19841
19842 fi
19843
19844 fi
19845 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
19846 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
19847
19848 else $as_nop
19849
19850 if test x"$GCC" = xyes
19851 then :
19852
19853 # Be tough with warnings and produce less careless code
19854 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
19855 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
19856 if test x"$enable_weffc" != "xno"
19857 then :
19858
19859 CXXFLAGS="$CXXFLAGS -Weffc++"
19860
19861 fi
19862 if test x"$enable_wparanoic" != "xno"
19863 then :
19864
19865 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
19866 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
19867 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
19868 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
19869 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
19870 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
19871 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
19872 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
19873 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
19874 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
19875 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
19876 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
19877 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
19878 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
19879 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
19880
19881 fi
19882
19883 fi
19884
19885 fi
19886
19887 # ============
19888 # Debug switch
19889 # ============
19890 # Check whether --enable-debug was given.
19891 if test ${enable_debug+y}
19892 then :
19893 enableval=$enable_debug; enable_debug="$enableval"
19894 else $as_nop
19895 enable_debug=no
19896
19897 fi
19898
19899 if test "x$enable_debug" = "xyes"
19900 then :
19901
19902 DEBUG_CXXFLAGS="-DDEBUG -g"
19903 CXXFLAGS="$CXXFLAGS -O0"
19904 CFLAGS="$CFLAGS -O0"
19905
19906 else $as_nop
19907
19908 DEBUG_CXXFLAGS="-DNDEBUG"
19909
19910 fi
19911
19912
19913 # ==================
19914 # Find boost headers
19915 # ==================
19916 for ac_header in boost/algorithm/string.hpp boost/archive/iterators/base64_from_binary.hpp boost/archive/iterators/binary_from_base64.hpp boost/archive/iterators/remove_whitespace.hpp boost/archive/iterators/transform_width.hpp boost/spirit/include/qi.hpp
19917 do :
19918 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
19919 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19920
19921 "
19922 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19923 then :
19924 cat >>confdefs.h <<_ACEOF
19925 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
19926 _ACEOF
19927
19928 else $as_nop
19929 as_fn_error $? "Required boost headers not found." "$LINENO" 5
19930 fi
19931
19932 done
19933
19934 # ==========
19935 # Unit tests
19936 # ==========
19937 # Check whether --enable-tests was given.
19938 if test ${enable_tests+y}
19939 then :
19940 enableval=$enable_tests; enable_tests="$enableval"
19941 else $as_nop
19942 enable_tests=yes
19943
19944 fi
19945
19946
19947
19948
19949
19950
19951
19952
19953 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19954 if test -n "$ac_tool_prefix"; then
19955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19956 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19958 printf %s "checking for $ac_word... " >&6; }
19959 if test ${ac_cv_path_PKG_CONFIG+y}
19960 then :
19961 printf %s "(cached) " >&6
19962 else $as_nop
19963 case $PKG_CONFIG in
19964 [\\/]* | ?:[\\/]*)
19965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19966 ;;
19967 *)
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971 IFS=$as_save_IFS
19972 case $as_dir in #(((
19973 '') as_dir=./ ;;
19974 */) ;;
19975 *) as_dir=$as_dir/ ;;
19976 esac
19977 for ac_exec_ext in '' $ac_executable_extensions; do
19978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19979 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19981 break 2
19982 fi
19983 done
19984 done
19985 IFS=$as_save_IFS
19986
19987 ;;
19988 esac
19989 fi
19990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19991 if test -n "$PKG_CONFIG"; then
19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19993 printf "%s\n" "$PKG_CONFIG" >&6; }
19994 else
19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996 printf "%s\n" "no" >&6; }
19997 fi
19998
19999
20000 fi
20001 if test -z "$ac_cv_path_PKG_CONFIG"; then
20002 ac_pt_PKG_CONFIG=$PKG_CONFIG
20003 # Extract the first word of "pkg-config", so it can be a program name with args.
20004 set dummy pkg-config; ac_word=$2
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20006 printf %s "checking for $ac_word... " >&6; }
20007 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20008 then :
20009 printf %s "(cached) " >&6
20010 else $as_nop
20011 case $ac_pt_PKG_CONFIG in
20012 [\\/]* | ?:[\\/]*)
20013 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20014 ;;
20015 *)
20016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20017 for as_dir in $PATH
20018 do
20019 IFS=$as_save_IFS
20020 case $as_dir in #(((
20021 '') as_dir=./ ;;
20022 */) ;;
20023 *) as_dir=$as_dir/ ;;
20024 esac
20025 for ac_exec_ext in '' $ac_executable_extensions; do
20026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20027 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20029 break 2
20030 fi
20031 done
20032 done
20033 IFS=$as_save_IFS
20034
20035 ;;
20036 esac
20037 fi
20038 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20039 if test -n "$ac_pt_PKG_CONFIG"; then
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20041 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20042 else
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20044 printf "%s\n" "no" >&6; }
20045 fi
20046
20047 if test "x$ac_pt_PKG_CONFIG" = x; then
20048 PKG_CONFIG=""
20049 else
20050 case $cross_compiling:$ac_tool_warned in
20051 yes:)
20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20054 ac_tool_warned=yes ;;
20055 esac
20056 PKG_CONFIG=$ac_pt_PKG_CONFIG
20057 fi
20058 else
20059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20060 fi
20061
20062 fi
20063 if test -n "$PKG_CONFIG"; then
20064 _pkg_min_version=0.9.0
20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20066 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20069 printf "%s\n" "yes" >&6; }
20070 else
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20072 printf "%s\n" "no" >&6; }
20073 PKG_CONFIG=""
20074 fi
20075 fi
20076 if test "x$enable_tests" = "xyes"
20077 then :
20078
20079
20080 pkg_failed=no
20081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
20082 printf %s "checking for CPPUNIT... " >&6; }
20083
20084 if test -n "$CPPUNIT_CFLAGS"; then
20085 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
20086 elif test -n "$PKG_CONFIG"; then
20087 if test -n "$PKG_CONFIG" && \
20088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
20089 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
20090 ac_status=$?
20091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20092 test $ac_status = 0; }; then
20093 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
20094 test "x$?" != "x0" && pkg_failed=yes
20095 else
20096 pkg_failed=yes
20097 fi
20098 else
20099 pkg_failed=untried
20100 fi
20101 if test -n "$CPPUNIT_LIBS"; then
20102 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
20103 elif test -n "$PKG_CONFIG"; then
20104 if test -n "$PKG_CONFIG" && \
20105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
20106 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
20107 ac_status=$?
20108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20109 test $ac_status = 0; }; then
20110 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
20111 test "x$?" != "x0" && pkg_failed=yes
20112 else
20113 pkg_failed=yes
20114 fi
20115 else
20116 pkg_failed=untried
20117 fi
20118
20119
20120
20121 if test $pkg_failed = yes; then
20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20123 printf "%s\n" "no" >&6; }
20124
20125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20126 _pkg_short_errors_supported=yes
20127 else
20128 _pkg_short_errors_supported=no
20129 fi
20130 if test $_pkg_short_errors_supported = yes; then
20131 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
20132 else
20133 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
20134 fi
20135 # Put the nasty error message in config.log where it belongs
20136 echo "$CPPUNIT_PKG_ERRORS" >&5
20137
20138 as_fn_error $? "Package requirements (cppunit) were not met:
20139
20140 $CPPUNIT_PKG_ERRORS
20141
20142 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20143 installed software in a non-standard prefix.
20144
20145 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
20146 and CPPUNIT_LIBS to avoid the need to call pkg-config.
20147 See the pkg-config man page for more details." "$LINENO" 5
20148 elif test $pkg_failed = untried; then
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20150 printf "%s\n" "no" >&6; }
20151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20152 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20153 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20154 is in your PATH or set the PKG_CONFIG environment variable to the full
20155 path to pkg-config.
20156
20157 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
20158 and CPPUNIT_LIBS to avoid the need to call pkg-config.
20159 See the pkg-config man page for more details.
20160
20161 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20162 See \`config.log' for more details" "$LINENO" 5; }
20163 else
20164 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
20165 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
20166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20167 printf "%s\n" "yes" >&6; }
20168
20169 fi
20170
20171 fi
20172
20173
20174 if test "x$enable_tests" = "xyes"; then
20175 ENABLE_TESTS_TRUE=
20176 ENABLE_TESTS_FALSE='#'
20177 else
20178 ENABLE_TESTS_TRUE='#'
20179 ENABLE_TESTS_FALSE=
20180 fi
20181
20182
20183 # =============
20184 # Documentation
20185 # =============
20186
20187 # Check whether --with-docs was given.
20188 if test ${with_docs+y}
20189 then :
20190 withval=$with_docs; with_docs="$withval"
20191 else $as_nop
20192 if test "x$native_win32" = "xyes"
20193 then :
20194 with_docs=no
20195 else $as_nop
20196 with_docs=yes
20197 fi
20198
20199 fi
20200
20201 if test "x$with_docs" != "xno"
20202 then :
20203
20204 # Extract the first word of "doxygen", so it can be a program name with args.
20205 set dummy doxygen; ac_word=$2
20206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20207 printf %s "checking for $ac_word... " >&6; }
20208 if test ${ac_cv_path_DOXYGEN+y}
20209 then :
20210 printf %s "(cached) " >&6
20211 else $as_nop
20212 case $DOXYGEN in
20213 [\\/]* | ?:[\\/]*)
20214 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20215 ;;
20216 *)
20217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20218 for as_dir in $PATH
20219 do
20220 IFS=$as_save_IFS
20221 case $as_dir in #(((
20222 '') as_dir=./ ;;
20223 */) ;;
20224 *) as_dir=$as_dir/ ;;
20225 esac
20226 for ac_exec_ext in '' $ac_executable_extensions; do
20227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20228 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20230 break 2
20231 fi
20232 done
20233 done
20234 IFS=$as_save_IFS
20235
20236 ;;
20237 esac
20238 fi
20239 DOXYGEN=$ac_cv_path_DOXYGEN
20240 if test -n "$DOXYGEN"; then
20241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20242 printf "%s\n" "$DOXYGEN" >&6; }
20243 else
20244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20245 printf "%s\n" "no" >&6; }
20246 fi
20247
20248
20249 if test -z "$DOXYGEN"
20250 then :
20251
20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
20253 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
20254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
20255 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
20256 build_docs=no
20257
20258 else $as_nop
20259 build_docs=yes
20260 fi
20261
20262 else $as_nop
20263 build_docs=no
20264 fi
20265 if test "x$build_docs" != "xno"; then
20266 WITH_LIBREVENGE_DOCS_TRUE=
20267 WITH_LIBREVENGE_DOCS_FALSE='#'
20268 else
20269 WITH_LIBREVENGE_DOCS_TRUE='#'
20270 WITH_LIBREVENGE_DOCS_FALSE=
20271 fi
20272
20273
20274 # =======
20275 # Streams
20276 # =======
20277 # Check whether --enable-streams was given.
20278 if test ${enable_streams+y}
20279 then :
20280 enableval=$enable_streams; enable_streams="$enableval"
20281 else $as_nop
20282 enable_streams=yes
20283
20284 fi
20285
20286 if test "x$enable_streams" != "xno"; then
20287 BUILD_STREAMS_TRUE=
20288 BUILD_STREAMS_FALSE='#'
20289 else
20290 BUILD_STREAMS_TRUE='#'
20291 BUILD_STREAMS_FALSE=
20292 fi
20293
20294
20295 if test "x$enable_streams" != "xno"
20296 then :
20297
20298 # =========
20299 # Find zlib
20300 # =========
20301
20302 pkg_failed=no
20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
20304 printf %s "checking for ZLIB... " >&6; }
20305
20306 if test -n "$ZLIB_CFLAGS"; then
20307 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20308 elif test -n "$PKG_CONFIG"; then
20309 if test -n "$PKG_CONFIG" && \
20310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20311 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20312 ac_status=$?
20313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20314 test $ac_status = 0; }; then
20315 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20316 test "x$?" != "x0" && pkg_failed=yes
20317 else
20318 pkg_failed=yes
20319 fi
20320 else
20321 pkg_failed=untried
20322 fi
20323 if test -n "$ZLIB_LIBS"; then
20324 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20325 elif test -n "$PKG_CONFIG"; then
20326 if test -n "$PKG_CONFIG" && \
20327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20328 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20329 ac_status=$?
20330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20331 test $ac_status = 0; }; then
20332 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20333 test "x$?" != "x0" && pkg_failed=yes
20334 else
20335 pkg_failed=yes
20336 fi
20337 else
20338 pkg_failed=untried
20339 fi
20340
20341
20342
20343 if test $pkg_failed = yes; then
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20345 printf "%s\n" "no" >&6; }
20346
20347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20348 _pkg_short_errors_supported=yes
20349 else
20350 _pkg_short_errors_supported=no
20351 fi
20352 if test $_pkg_short_errors_supported = yes; then
20353 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20354 else
20355 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20356 fi
20357 # Put the nasty error message in config.log where it belongs
20358 echo "$ZLIB_PKG_ERRORS" >&5
20359
20360 as_fn_error $? "Package requirements (zlib) were not met:
20361
20362 $ZLIB_PKG_ERRORS
20363
20364 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20365 installed software in a non-standard prefix.
20366
20367 Alternatively, you may set the environment variables ZLIB_CFLAGS
20368 and ZLIB_LIBS to avoid the need to call pkg-config.
20369 See the pkg-config man page for more details." "$LINENO" 5
20370 elif test $pkg_failed = untried; then
20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20372 printf "%s\n" "no" >&6; }
20373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20374 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20375 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20376 is in your PATH or set the PKG_CONFIG environment variable to the full
20377 path to pkg-config.
20378
20379 Alternatively, you may set the environment variables ZLIB_CFLAGS
20380 and ZLIB_LIBS to avoid the need to call pkg-config.
20381 See the pkg-config man page for more details.
20382
20383 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20384 See \`config.log' for more details" "$LINENO" 5; }
20385 else
20386 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20387 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20389 printf "%s\n" "yes" >&6; }
20390
20391 fi
20392
20393
20394
20395 fi
20396
20397 # ==========
20398 # Generators
20399 # ==========
20400 # Check whether --enable-generators was given.
20401 if test ${enable_generators+y}
20402 then :
20403 enableval=$enable_generators; enable_generators="$enableval"
20404 else $as_nop
20405 enable_generators=yes
20406
20407 fi
20408
20409 if test "x$enable_generators" != "xno"; then
20410 BUILD_GENERATORS_TRUE=
20411 BUILD_GENERATORS_FALSE='#'
20412 else
20413 BUILD_GENERATORS_TRUE='#'
20414 BUILD_GENERATORS_FALSE=
20415 fi
20416
20417
20418 # ===================
20419 # gdb pretty printers
20420 # ===================
20421 # Check whether --enable-pretty-printers was given.
20422 if test ${enable_pretty_printers+y}
20423 then :
20424 enableval=$enable_pretty_printers; enable_pretty_printers="$enableval"
20425 else $as_nop
20426 enable_pretty_printers=no
20427
20428 fi
20429
20430
20431 # Check whether --with-gdb-data-dir was given.
20432 if test ${with_gdb_data_dir+y}
20433 then :
20434 withval=$with_gdb_data_dir; gdb_data_dir="$withval"
20435 else $as_nop
20436 gdb_data_dir='${datadir}/gdb'
20437
20438 fi
20439
20440 if test "x$enable_pretty_printers" != "xno"; then
20441 BUILD_PRETTY_PRINTERS_TRUE=
20442 BUILD_PRETTY_PRINTERS_FALSE='#'
20443 else
20444 BUILD_PRETTY_PRINTERS_TRUE='#'
20445 BUILD_PRETTY_PRINTERS_FALSE=
20446 fi
20447
20448
20449 if test "x$enable_pretty_printers" != "xno"
20450 then :
20451 GDBDATADIR="$gdb_data_dir"
20452 # Extract the first word of "gdb", so it can be a program name with args.
20453 set dummy gdb; ac_word=$2
20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20455 printf %s "checking for $ac_word... " >&6; }
20456 if test ${ac_cv_path_GDB+y}
20457 then :
20458 printf %s "(cached) " >&6
20459 else $as_nop
20460 case $GDB in
20461 [\\/]* | ?:[\\/]*)
20462 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
20463 ;;
20464 *)
20465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20466 for as_dir in $PATH
20467 do
20468 IFS=$as_save_IFS
20469 case $as_dir in #(((
20470 '') as_dir=./ ;;
20471 */) ;;
20472 *) as_dir=$as_dir/ ;;
20473 esac
20474 for ac_exec_ext in '' $ac_executable_extensions; do
20475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20476 ac_cv_path_GDB="$as_dir$ac_word$ac_exec_ext"
20477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20478 break 2
20479 fi
20480 done
20481 done
20482 IFS=$as_save_IFS
20483
20484 ;;
20485 esac
20486 fi
20487 GDB=$ac_cv_path_GDB
20488 if test -n "$GDB"; then
20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
20490 printf "%s\n" "$GDB" >&6; }
20491 else
20492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 printf "%s\n" "no" >&6; }
20494 fi
20495
20496
20497
20498 fi
20499
20500
20501 # =======
20502 # Fuzzers
20503 # =======
20504 # Check whether --enable-fuzzers was given.
20505 if test ${enable_fuzzers+y}
20506 then :
20507 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
20508 else $as_nop
20509 enable_fuzzers=no
20510
20511 fi
20512
20513 if test "x$enable_fuzzers" = "xyes"; then
20514 BUILD_FUZZERS_TRUE=
20515 BUILD_FUZZERS_FALSE='#'
20516 else
20517 BUILD_FUZZERS_TRUE='#'
20518 BUILD_FUZZERS_FALSE=
20519 fi
20520
20521
20522 # =====================
20523 # Prepare all .in files
20524 # =====================
20525 ac_config_files="$ac_config_files Makefile data/Makefile data/gdb/Makefile data/gdb/auto-load/Makefile src/Makefile src/fuzz/Makefile src/lib/Makefile src/lib/librevenge.rc src/lib/librevenge-generators.rc src/lib/librevenge-stream.rc src/test/Makefile inc/Makefile inc/librevenge/Makefile inc/librevenge-generators/Makefile inc/librevenge-stream/Makefile docs/Makefile docs/doxygen/Makefile build/Makefile build/win32/Makefile librevenge-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge.pc.in librevenge-generators-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge-generators.pc.in librevenge-stream-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge-stream.pc.in"
20526
20527 cat >confcache <<\_ACEOF
20528 # This file is a shell script that caches the results of configure
20529 # tests run on this system so they can be shared between configure
20530 # scripts and configure runs, see configure's option --config-cache.
20531 # It is not useful on other systems. If it contains results you don't
20532 # want to keep, you may remove or edit it.
20533 #
20534 # config.status only pays attention to the cache file if you give it
20535 # the --recheck option to rerun configure.
20536 #
20537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20539 # following values.
20540
20541 _ACEOF
20542
20543 # The following way of writing the cache mishandles newlines in values,
20544 # but we know of no workaround that is simple, portable, and efficient.
20545 # So, we kill variables containing newlines.
20546 # Ultrix sh set writes to stderr and can't be redirected directly,
20547 # and sets the high bit in the cache file unless we assign to the vars.
20548 (
20549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20550 eval ac_val=\$$ac_var
20551 case $ac_val in #(
20552 *${as_nl}*)
20553 case $ac_var in #(
20554 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20555 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20556 esac
20557 case $ac_var in #(
20558 _ | IFS | as_nl) ;; #(
20559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20560 *) { eval $ac_var=; unset $ac_var;} ;;
20561 esac ;;
20562 esac
20563 done
20564
20565 (set) 2>&1 |
20566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20567 *${as_nl}ac_space=\ *)
20568 # `set' does not quote correctly, so add quotes: double-quote
20569 # substitution turns \\\\ into \\, and sed turns \\ into \.
20570 sed -n \
20571 "s/'/'\\\\''/g;
20572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20573 ;; #(
20574 *)
20575 # `set' quotes correctly as required by POSIX, so do not add quotes.
20576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20577 ;;
20578 esac |
20579 sort
20580 ) |
20581 sed '
20582 /^ac_cv_env_/b end
20583 t clear
20584 :clear
20585 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20586 t end
20587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20588 :end' >>confcache
20589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20590 if test -w "$cache_file"; then
20591 if test "x$cache_file" != "x/dev/null"; then
20592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20593 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20594 if test ! -f "$cache_file" || test -h "$cache_file"; then
20595 cat confcache >"$cache_file"
20596 else
20597 case $cache_file in #(
20598 */* | ?:*)
20599 mv -f confcache "$cache_file"$$ &&
20600 mv -f "$cache_file"$$ "$cache_file" ;; #(
20601 *)
20602 mv -f confcache "$cache_file" ;;
20603 esac
20604 fi
20605 fi
20606 else
20607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20608 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20609 fi
20610 fi
20611 rm -f confcache
20612
20613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20614 # Let make expand exec_prefix.
20615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20616
20617 DEFS=-DHAVE_CONFIG_H
20618
20619 ac_libobjs=
20620 ac_ltlibobjs=
20621 U=
20622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20623 # 1. Remove the extension, and $U if already installed.
20624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20625 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20627 # will be set to the directory where LIBOBJS objects are built.
20628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20630 done
20631 LIBOBJS=$ac_libobjs
20632
20633 LTLIBOBJS=$ac_ltlibobjs
20634
20635
20636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20637 printf %s "checking that generated files are newer than configure... " >&6; }
20638 if test -n "$am_sleep_pid"; then
20639 # Hide warnings about reused PIDs.
20640 wait $am_sleep_pid 2>/dev/null
20641 fi
20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20643 printf "%s\n" "done" >&6; }
20644 if test -n "$EXEEXT"; then
20645 am__EXEEXT_TRUE=
20646 am__EXEEXT_FALSE='#'
20647 else
20648 am__EXEEXT_TRUE='#'
20649 am__EXEEXT_FALSE=
20650 fi
20651
20652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20653 as_fn_error $? "conditional \"AMDEP\" was never defined.
20654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20655 fi
20656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20659 fi
20660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20663 fi
20664 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20665 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20667 fi
20668 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20669 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20671 fi
20672 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20673 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
20674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20675 fi
20676 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
20677 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
20678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20679 fi
20680 if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
20681 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
20682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20683 fi
20684 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
20685 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
20686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20687 fi
20688 if test -z "${WITH_LIBREVENGE_DOCS_TRUE}" && test -z "${WITH_LIBREVENGE_DOCS_FALSE}"; then
20689 as_fn_error $? "conditional \"WITH_LIBREVENGE_DOCS\" was never defined.
20690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20691 fi
20692 if test -z "${BUILD_STREAMS_TRUE}" && test -z "${BUILD_STREAMS_FALSE}"; then
20693 as_fn_error $? "conditional \"BUILD_STREAMS\" was never defined.
20694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20695 fi
20696 if test -z "${BUILD_GENERATORS_TRUE}" && test -z "${BUILD_GENERATORS_FALSE}"; then
20697 as_fn_error $? "conditional \"BUILD_GENERATORS\" was never defined.
20698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20699 fi
20700 if test -z "${BUILD_PRETTY_PRINTERS_TRUE}" && test -z "${BUILD_PRETTY_PRINTERS_FALSE}"; then
20701 as_fn_error $? "conditional \"BUILD_PRETTY_PRINTERS\" was never defined.
20702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20703 fi
20704 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
20705 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
20706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20707 fi
20708
20709 : "${CONFIG_STATUS=./config.status}"
20710 ac_write_fail=0
20711 ac_clean_files_save=$ac_clean_files
20712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20714 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20715 as_write_fail=0
20716 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20717 #! $SHELL
20718 # Generated by $as_me.
20719 # Run this file to recreate the current configuration.
20720 # Compiler output produced by configure, useful for debugging
20721 # configure, is in config.log if it exists.
20722
20723 debug=false
20724 ac_cs_recheck=false
20725 ac_cs_silent=false
20726
20727 SHELL=\${CONFIG_SHELL-$SHELL}
20728 export SHELL
20729 _ASEOF
20730 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20731 ## -------------------- ##
20732 ## M4sh Initialization. ##
20733 ## -------------------- ##
20734
20735 # Be more Bourne compatible
20736 DUALCASE=1; export DUALCASE # for MKS sh
20737 as_nop=:
20738 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20739 then :
20740 emulate sh
20741 NULLCMD=:
20742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20743 # is contrary to our usage. Disable this feature.
20744 alias -g '${1+"$@"}'='"$@"'
20745 setopt NO_GLOB_SUBST
20746 else $as_nop
20747 case `(set -o) 2>/dev/null` in #(
20748 *posix*) :
20749 set -o posix ;; #(
20750 *) :
20751 ;;
20752 esac
20753 fi
20754
20755
20756
20757 # Reset variables that may have inherited troublesome values from
20758 # the environment.
20759
20760 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20761 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20762 # side effect of setting IFS to empty, thus disabling word splitting.)
20763 # Quoting is to prevent editors from complaining about space-tab.
20764 as_nl='
20765 '
20766 export as_nl
20767 IFS=" "" $as_nl"
20768
20769 PS1='$ '
20770 PS2='> '
20771 PS4='+ '
20772
20773 # Ensure predictable behavior from utilities with locale-dependent output.
20774 LC_ALL=C
20775 export LC_ALL
20776 LANGUAGE=C
20777 export LANGUAGE
20778
20779 # We cannot yet rely on "unset" to work, but we need these variables
20780 # to be unset--not just set to an empty or harmless value--now, to
20781 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20782 # also avoids known problems related to "unset" and subshell syntax
20783 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20784 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20785 do eval test \${$as_var+y} \
20786 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20787 done
20788
20789 # Ensure that fds 0, 1, and 2 are open.
20790 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20791 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20792 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20793
20794 # The user is always right.
20795 if ${PATH_SEPARATOR+false} :; then
20796 PATH_SEPARATOR=:
20797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20799 PATH_SEPARATOR=';'
20800 }
20801 fi
20802
20803
20804 # Find who we are. Look in the path if we contain no directory separator.
20805 as_myself=
20806 case $0 in #((
20807 *[\\/]* ) as_myself=$0 ;;
20808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20809 for as_dir in $PATH
20810 do
20811 IFS=$as_save_IFS
20812 case $as_dir in #(((
20813 '') as_dir=./ ;;
20814 */) ;;
20815 *) as_dir=$as_dir/ ;;
20816 esac
20817 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20818 done
20819 IFS=$as_save_IFS
20820
20821 ;;
20822 esac
20823 # We did not find ourselves, most probably we were run as `sh COMMAND'
20824 # in which case we are not to be found in the path.
20825 if test "x$as_myself" = x; then
20826 as_myself=$0
20827 fi
20828 if test ! -f "$as_myself"; then
20829 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20830 exit 1
20831 fi
20832
20833
20834
20835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20836 # ----------------------------------------
20837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20839 # script with STATUS, using 1 if that was 0.
20840 as_fn_error ()
20841 {
20842 as_status=$1; test $as_status -eq 0 && as_status=1
20843 if test "$4"; then
20844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20846 fi
20847 printf "%s\n" "$as_me: error: $2" >&2
20848 as_fn_exit $as_status
20849 } # as_fn_error
20850
20851
20852
20853 # as_fn_set_status STATUS
20854 # -----------------------
20855 # Set $? to STATUS, without forking.
20856 as_fn_set_status ()
20857 {
20858 return $1
20859 } # as_fn_set_status
20860
20861 # as_fn_exit STATUS
20862 # -----------------
20863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20864 as_fn_exit ()
20865 {
20866 set +e
20867 as_fn_set_status $1
20868 exit $1
20869 } # as_fn_exit
20870
20871 # as_fn_unset VAR
20872 # ---------------
20873 # Portably unset VAR.
20874 as_fn_unset ()
20875 {
20876 { eval $1=; unset $1;}
20877 }
20878 as_unset=as_fn_unset
20879
20880 # as_fn_append VAR VALUE
20881 # ----------------------
20882 # Append the text in VALUE to the end of the definition contained in VAR. Take
20883 # advantage of any shell optimizations that allow amortized linear growth over
20884 # repeated appends, instead of the typical quadratic growth present in naive
20885 # implementations.
20886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20887 then :
20888 eval 'as_fn_append ()
20889 {
20890 eval $1+=\$2
20891 }'
20892 else $as_nop
20893 as_fn_append ()
20894 {
20895 eval $1=\$$1\$2
20896 }
20897 fi # as_fn_append
20898
20899 # as_fn_arith ARG...
20900 # ------------------
20901 # Perform arithmetic evaluation on the ARGs, and store the result in the
20902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20903 # must be portable across $(()) and expr.
20904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20905 then :
20906 eval 'as_fn_arith ()
20907 {
20908 as_val=$(( $* ))
20909 }'
20910 else $as_nop
20911 as_fn_arith ()
20912 {
20913 as_val=`expr "$@" || test $? -eq 1`
20914 }
20915 fi # as_fn_arith
20916
20917
20918 if expr a : '\(a\)' >/dev/null 2>&1 &&
20919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20920 as_expr=expr
20921 else
20922 as_expr=false
20923 fi
20924
20925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20926 as_basename=basename
20927 else
20928 as_basename=false
20929 fi
20930
20931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20932 as_dirname=dirname
20933 else
20934 as_dirname=false
20935 fi
20936
20937 as_me=`$as_basename -- "$0" ||
20938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20939 X"$0" : 'X\(//\)$' \| \
20940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20941 printf "%s\n" X/"$0" |
20942 sed '/^.*\/\([^/][^/]*\)\/*$/{
20943 s//\1/
20944 q
20945 }
20946 /^X\/\(\/\/\)$/{
20947 s//\1/
20948 q
20949 }
20950 /^X\/\(\/\).*/{
20951 s//\1/
20952 q
20953 }
20954 s/.*/./; q'`
20955
20956 # Avoid depending upon Character Ranges.
20957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20960 as_cr_digits='0123456789'
20961 as_cr_alnum=$as_cr_Letters$as_cr_digits
20962
20963
20964 # Determine whether it's possible to make 'echo' print without a newline.
20965 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20966 # for compatibility with existing Makefiles.
20967 ECHO_C= ECHO_N= ECHO_T=
20968 case `echo -n x` in #(((((
20969 -n*)
20970 case `echo 'xy\c'` in
20971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20972 xy) ECHO_C='\c';;
20973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20974 ECHO_T=' ';;
20975 esac;;
20976 *)
20977 ECHO_N='-n';;
20978 esac
20979
20980 # For backward compatibility with old third-party macros, we provide
20981 # the shell variables $as_echo and $as_echo_n. New code should use
20982 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20983 as_echo='printf %s\n'
20984 as_echo_n='printf %s'
20985
20986 rm -f conf$$ conf$$.exe conf$$.file
20987 if test -d conf$$.dir; then
20988 rm -f conf$$.dir/conf$$.file
20989 else
20990 rm -f conf$$.dir
20991 mkdir conf$$.dir 2>/dev/null
20992 fi
20993 if (echo >conf$$.file) 2>/dev/null; then
20994 if ln -s conf$$.file conf$$ 2>/dev/null; then
20995 as_ln_s='ln -s'
20996 # ... but there are two gotchas:
20997 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20998 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20999 # In both cases, we have to default to `cp -pR'.
21000 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21001 as_ln_s='cp -pR'
21002 elif ln conf$$.file conf$$ 2>/dev/null; then
21003 as_ln_s=ln
21004 else
21005 as_ln_s='cp -pR'
21006 fi
21007 else
21008 as_ln_s='cp -pR'
21009 fi
21010 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21011 rmdir conf$$.dir 2>/dev/null
21012
21013
21014 # as_fn_mkdir_p
21015 # -------------
21016 # Create "$as_dir" as a directory, including parents if necessary.
21017 as_fn_mkdir_p ()
21018 {
21019
21020 case $as_dir in #(
21021 -*) as_dir=./$as_dir;;
21022 esac
21023 test -d "$as_dir" || eval $as_mkdir_p || {
21024 as_dirs=
21025 while :; do
21026 case $as_dir in #(
21027 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21028 *) as_qdir=$as_dir;;
21029 esac
21030 as_dirs="'$as_qdir' $as_dirs"
21031 as_dir=`$as_dirname -- "$as_dir" ||
21032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033 X"$as_dir" : 'X\(//\)[^/]' \| \
21034 X"$as_dir" : 'X\(//\)$' \| \
21035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21036 printf "%s\n" X"$as_dir" |
21037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21038 s//\1/
21039 q
21040 }
21041 /^X\(\/\/\)[^/].*/{
21042 s//\1/
21043 q
21044 }
21045 /^X\(\/\/\)$/{
21046 s//\1/
21047 q
21048 }
21049 /^X\(\/\).*/{
21050 s//\1/
21051 q
21052 }
21053 s/.*/./; q'`
21054 test -d "$as_dir" && break
21055 done
21056 test -z "$as_dirs" || eval "mkdir $as_dirs"
21057 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21058
21059
21060 } # as_fn_mkdir_p
21061 if mkdir -p . 2>/dev/null; then
21062 as_mkdir_p='mkdir -p "$as_dir"'
21063 else
21064 test -d ./-p && rmdir ./-p
21065 as_mkdir_p=false
21066 fi
21067
21068
21069 # as_fn_executable_p FILE
21070 # -----------------------
21071 # Test if FILE is an executable regular file.
21072 as_fn_executable_p ()
21073 {
21074 test -f "$1" && test -x "$1"
21075 } # as_fn_executable_p
21076 as_test_x='test -x'
21077 as_executable_p=as_fn_executable_p
21078
21079 # Sed expression to map a string onto a valid CPP name.
21080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21081
21082 # Sed expression to map a string onto a valid variable name.
21083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21084
21085
21086 exec 6>&1
21087 ## ----------------------------------- ##
21088 ## Main body of $CONFIG_STATUS script. ##
21089 ## ----------------------------------- ##
21090 _ASEOF
21091 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21092
21093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21094 # Save the log message, to keep $0 and so on meaningful, and to
21095 # report actual input values of CONFIG_FILES etc. instead of their
21096 # values after options handling.
21097 ac_log="
21098 This file was extended by librevenge $as_me 0.0.5, which was
21099 generated by GNU Autoconf 2.71. Invocation command line was
21100
21101 CONFIG_FILES = $CONFIG_FILES
21102 CONFIG_HEADERS = $CONFIG_HEADERS
21103 CONFIG_LINKS = $CONFIG_LINKS
21104 CONFIG_COMMANDS = $CONFIG_COMMANDS
21105 $ $0 $@
21106
21107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21108 "
21109
21110 _ACEOF
21111
21112 case $ac_config_files in *"
21113 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21114 esac
21115
21116 case $ac_config_headers in *"
21117 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21118 esac
21119
21120
21121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21122 # Files that config.status was made for.
21123 config_files="$ac_config_files"
21124 config_headers="$ac_config_headers"
21125 config_commands="$ac_config_commands"
21126
21127 _ACEOF
21128
21129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21130 ac_cs_usage="\
21131 \`$as_me' instantiates files and other configuration actions
21132 from templates according to the current configuration. Unless the files
21133 and actions are specified as TAGs, all are instantiated by default.
21134
21135 Usage: $0 [OPTION]... [TAG]...
21136
21137 -h, --help print this help, then exit
21138 -V, --version print version number and configuration settings, then exit
21139 --config print configuration, then exit
21140 -q, --quiet, --silent
21141 do not print progress messages
21142 -d, --debug don't remove temporary files
21143 --recheck update $as_me by reconfiguring in the same conditions
21144 --file=FILE[:TEMPLATE]
21145 instantiate the configuration file FILE
21146 --header=FILE[:TEMPLATE]
21147 instantiate the configuration header FILE
21148
21149 Configuration files:
21150 $config_files
21151
21152 Configuration headers:
21153 $config_headers
21154
21155 Configuration commands:
21156 $config_commands
21157
21158 Report bugs to the package provider."
21159
21160 _ACEOF
21161 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21162 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21164 ac_cs_config='$ac_cs_config_escaped'
21165 ac_cs_version="\\
21166 librevenge config.status 0.0.5
21167 configured by $0, generated by GNU Autoconf 2.71,
21168 with options \\"\$ac_cs_config\\"
21169
21170 Copyright (C) 2021 Free Software Foundation, Inc.
21171 This config.status script is free software; the Free Software Foundation
21172 gives unlimited permission to copy, distribute and modify it."
21173
21174 ac_pwd='$ac_pwd'
21175 srcdir='$srcdir'
21176 INSTALL='$INSTALL'
21177 MKDIR_P='$MKDIR_P'
21178 AWK='$AWK'
21179 test -n "\$AWK" || AWK=awk
21180 _ACEOF
21181
21182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21183 # The default lists apply if the user does not specify any file.
21184 ac_need_defaults=:
21185 while test $# != 0
21186 do
21187 case $1 in
21188 --*=?*)
21189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21191 ac_shift=:
21192 ;;
21193 --*=)
21194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21195 ac_optarg=
21196 ac_shift=:
21197 ;;
21198 *)
21199 ac_option=$1
21200 ac_optarg=$2
21201 ac_shift=shift
21202 ;;
21203 esac
21204
21205 case $ac_option in
21206 # Handling of the options.
21207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21208 ac_cs_recheck=: ;;
21209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21210 printf "%s\n" "$ac_cs_version"; exit ;;
21211 --config | --confi | --conf | --con | --co | --c )
21212 printf "%s\n" "$ac_cs_config"; exit ;;
21213 --debug | --debu | --deb | --de | --d | -d )
21214 debug=: ;;
21215 --file | --fil | --fi | --f )
21216 $ac_shift
21217 case $ac_optarg in
21218 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21219 '') as_fn_error $? "missing file argument" ;;
21220 esac
21221 as_fn_append CONFIG_FILES " '$ac_optarg'"
21222 ac_need_defaults=false;;
21223 --header | --heade | --head | --hea )
21224 $ac_shift
21225 case $ac_optarg in
21226 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21227 esac
21228 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21229 ac_need_defaults=false;;
21230 --he | --h)
21231 # Conflict between --help and --header
21232 as_fn_error $? "ambiguous option: \`$1'
21233 Try \`$0 --help' for more information.";;
21234 --help | --hel | -h )
21235 printf "%s\n" "$ac_cs_usage"; exit ;;
21236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21238 ac_cs_silent=: ;;
21239
21240 # This is an error.
21241 -*) as_fn_error $? "unrecognized option: \`$1'
21242 Try \`$0 --help' for more information." ;;
21243
21244 *) as_fn_append ac_config_targets " $1"
21245 ac_need_defaults=false ;;
21246
21247 esac
21248 shift
21249 done
21250
21251 ac_configure_extra_args=
21252
21253 if $ac_cs_silent; then
21254 exec 6>/dev/null
21255 ac_configure_extra_args="$ac_configure_extra_args --silent"
21256 fi
21257
21258 _ACEOF
21259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21260 if \$ac_cs_recheck; then
21261 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21262 shift
21263 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21264 CONFIG_SHELL='$SHELL'
21265 export CONFIG_SHELL
21266 exec "\$@"
21267 fi
21268
21269 _ACEOF
21270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21271 exec 5>>config.log
21272 {
21273 echo
21274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21275 ## Running $as_me. ##
21276 _ASBOX
21277 printf "%s\n" "$ac_log"
21278 } >&5
21279
21280 _ACEOF
21281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21282 #
21283 # INIT-COMMANDS
21284 #
21285 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21286
21287
21288 # The HP-UX ksh and POSIX shell print the target directory to stdout
21289 # if CDPATH is set.
21290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21291
21292 sed_quote_subst='$sed_quote_subst'
21293 double_quote_subst='$double_quote_subst'
21294 delay_variable_subst='$delay_variable_subst'
21295 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21296 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21297 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21298 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21299 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21300 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21301 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21302 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21303 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21304 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21305 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21306 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21307 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21308 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21309 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21310 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21311 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21312 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21313 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21314 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21315 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21316 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21317 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21318 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21319 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21320 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21321 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21322 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21323 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21324 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21325 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21326 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21327 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21328 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21329 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21330 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21331 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21332 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21333 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21334 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21335 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21336 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21337 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21338 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21339 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21341 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21342 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21343 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21344 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21345 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21346 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21347 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21348 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21349 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21350 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21351 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21352 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21353 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21354 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21355 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21356 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"`'
21357 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21358 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21359 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21360 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21361 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21362 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21363 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21365 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21366 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21367 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21368 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21369 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21370 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21371 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21372 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21373 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21374 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21375 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21376 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21377 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21378 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21379 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21380 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21381 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21382 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21383 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21384 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21385 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21386 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21387 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21388 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21389 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21390 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21391 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21392 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21393 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21394 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21395 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21396 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21397 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21398 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21399 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21400 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21401 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21402 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21403 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21404 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21405 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21406 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21407 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21408 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21409 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21410 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21411 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21412 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21413 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21414 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21415 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21416 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21417 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21418 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21419 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21420 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21421 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21422 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21423 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21424 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21425 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21426 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21433 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21434 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21435 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21436 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21437 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21438 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21439 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21440 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21441 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21442 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21443 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21444 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21445 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21446 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21447 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21448 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21449 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21450 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21451 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21452 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21453 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21454 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21455 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21456 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21457 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21458 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21459 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21460 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21461 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21462 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21463 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21464 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21465 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21466 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21467 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21468 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21469 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21470 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21471 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21472 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21473 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21474 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21475 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21476 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21477 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21478 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21479 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21480 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21481 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21482 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21483 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21484 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21485 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21486 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21487
21488 LTCC='$LTCC'
21489 LTCFLAGS='$LTCFLAGS'
21490 compiler='$compiler_DEFAULT'
21491
21492 # A function that is used when there is no print builtin or printf.
21493 func_fallback_echo ()
21494 {
21495 eval 'cat <<_LTECHO_EOF
21496 \$1
21497 _LTECHO_EOF'
21498 }
21499
21500 # Quote evaled strings.
21501 for var in AS \
21502 DLLTOOL \
21503 OBJDUMP \
21504 SHELL \
21505 ECHO \
21506 PATH_SEPARATOR \
21507 SED \
21508 GREP \
21509 EGREP \
21510 FGREP \
21511 LD \
21512 NM \
21513 LN_S \
21514 lt_SP2NL \
21515 lt_NL2SP \
21516 reload_flag \
21517 FILECMD \
21518 deplibs_check_method \
21519 file_magic_cmd \
21520 file_magic_glob \
21521 want_nocaseglob \
21522 sharedlib_from_linklib_cmd \
21523 AR \
21524 archiver_list_spec \
21525 STRIP \
21526 RANLIB \
21527 CC \
21528 CFLAGS \
21529 compiler \
21530 lt_cv_sys_global_symbol_pipe \
21531 lt_cv_sys_global_symbol_to_cdecl \
21532 lt_cv_sys_global_symbol_to_import \
21533 lt_cv_sys_global_symbol_to_c_name_address \
21534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21535 lt_cv_nm_interface \
21536 nm_file_list_spec \
21537 lt_cv_truncate_bin \
21538 lt_prog_compiler_no_builtin_flag \
21539 lt_prog_compiler_pic \
21540 lt_prog_compiler_wl \
21541 lt_prog_compiler_static \
21542 lt_cv_prog_compiler_c_o \
21543 need_locks \
21544 MANIFEST_TOOL \
21545 DSYMUTIL \
21546 NMEDIT \
21547 LIPO \
21548 OTOOL \
21549 OTOOL64 \
21550 shrext_cmds \
21551 export_dynamic_flag_spec \
21552 whole_archive_flag_spec \
21553 compiler_needs_object \
21554 with_gnu_ld \
21555 allow_undefined_flag \
21556 no_undefined_flag \
21557 hardcode_libdir_flag_spec \
21558 hardcode_libdir_separator \
21559 exclude_expsyms \
21560 include_expsyms \
21561 file_list_spec \
21562 variables_saved_for_relink \
21563 libname_spec \
21564 library_names_spec \
21565 soname_spec \
21566 install_override_mode \
21567 finish_eval \
21568 old_striplib \
21569 striplib \
21570 compiler_lib_search_dirs \
21571 predep_objects \
21572 postdep_objects \
21573 predeps \
21574 postdeps \
21575 compiler_lib_search_path \
21576 LD_CXX \
21577 reload_flag_CXX \
21578 compiler_CXX \
21579 lt_prog_compiler_no_builtin_flag_CXX \
21580 lt_prog_compiler_pic_CXX \
21581 lt_prog_compiler_wl_CXX \
21582 lt_prog_compiler_static_CXX \
21583 lt_cv_prog_compiler_c_o_CXX \
21584 export_dynamic_flag_spec_CXX \
21585 whole_archive_flag_spec_CXX \
21586 compiler_needs_object_CXX \
21587 with_gnu_ld_CXX \
21588 allow_undefined_flag_CXX \
21589 no_undefined_flag_CXX \
21590 hardcode_libdir_flag_spec_CXX \
21591 hardcode_libdir_separator_CXX \
21592 exclude_expsyms_CXX \
21593 include_expsyms_CXX \
21594 file_list_spec_CXX \
21595 compiler_lib_search_dirs_CXX \
21596 predep_objects_CXX \
21597 postdep_objects_CXX \
21598 predeps_CXX \
21599 postdeps_CXX \
21600 compiler_lib_search_path_CXX; do
21601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21602 *[\\\\\\\`\\"\\\$]*)
21603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21604 ;;
21605 *)
21606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21607 ;;
21608 esac
21609 done
21610
21611 # Double-quote double-evaled strings.
21612 for var in reload_cmds \
21613 old_postinstall_cmds \
21614 old_postuninstall_cmds \
21615 old_archive_cmds \
21616 extract_expsyms_cmds \
21617 old_archive_from_new_cmds \
21618 old_archive_from_expsyms_cmds \
21619 archive_cmds \
21620 archive_expsym_cmds \
21621 module_cmds \
21622 module_expsym_cmds \
21623 export_symbols_cmds \
21624 prelink_cmds \
21625 postlink_cmds \
21626 postinstall_cmds \
21627 postuninstall_cmds \
21628 finish_cmds \
21629 sys_lib_search_path_spec \
21630 configure_time_dlsearch_path \
21631 configure_time_lt_sys_library_path \
21632 reload_cmds_CXX \
21633 old_archive_cmds_CXX \
21634 old_archive_from_new_cmds_CXX \
21635 old_archive_from_expsyms_cmds_CXX \
21636 archive_cmds_CXX \
21637 archive_expsym_cmds_CXX \
21638 module_cmds_CXX \
21639 module_expsym_cmds_CXX \
21640 export_symbols_cmds_CXX \
21641 prelink_cmds_CXX \
21642 postlink_cmds_CXX; do
21643 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21644 *[\\\\\\\`\\"\\\$]*)
21645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21646 ;;
21647 *)
21648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21649 ;;
21650 esac
21651 done
21652
21653 ac_aux_dir='$ac_aux_dir'
21654
21655 # See if we are running on zsh, and set the options that allow our
21656 # commands through without removal of \ escapes INIT.
21657 if test -n "\${ZSH_VERSION+set}"; then
21658 setopt NO_GLOB_SUBST
21659 fi
21660
21661
21662 PACKAGE='$PACKAGE'
21663 VERSION='$VERSION'
21664 RM='$RM'
21665 ofile='$ofile'
21666
21667
21668
21669
21670
21671
21672 _ACEOF
21673
21674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21675
21676 # Handling of arguments.
21677 for ac_config_target in $ac_config_targets
21678 do
21679 case $ac_config_target in
21680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21681 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21682 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21683 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21684 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21685 "data/gdb/Makefile") CONFIG_FILES="$CONFIG_FILES data/gdb/Makefile" ;;
21686 "data/gdb/auto-load/Makefile") CONFIG_FILES="$CONFIG_FILES data/gdb/auto-load/Makefile" ;;
21687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21688 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
21689 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21690 "src/lib/librevenge.rc") CONFIG_FILES="$CONFIG_FILES src/lib/librevenge.rc" ;;
21691 "src/lib/librevenge-generators.rc") CONFIG_FILES="$CONFIG_FILES src/lib/librevenge-generators.rc" ;;
21692 "src/lib/librevenge-stream.rc") CONFIG_FILES="$CONFIG_FILES src/lib/librevenge-stream.rc" ;;
21693 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
21694 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
21695 "inc/librevenge/Makefile") CONFIG_FILES="$CONFIG_FILES inc/librevenge/Makefile" ;;
21696 "inc/librevenge-generators/Makefile") CONFIG_FILES="$CONFIG_FILES inc/librevenge-generators/Makefile" ;;
21697 "inc/librevenge-stream/Makefile") CONFIG_FILES="$CONFIG_FILES inc/librevenge-stream/Makefile" ;;
21698 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21699 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
21700 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21701 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
21702 "librevenge-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES librevenge-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge.pc.in" ;;
21703 "librevenge-generators-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES librevenge-generators-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge-generators.pc.in" ;;
21704 "librevenge-stream-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES librevenge-stream-$RVNG_MAJOR_VERSION.$RVNG_MINOR_VERSION.pc:librevenge-stream.pc.in" ;;
21705
21706 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21707 esac
21708 done
21709
21710
21711 # If the user did not use the arguments to specify the items to instantiate,
21712 # then the envvar interface is used. Set only those that are not.
21713 # We use the long form for the default assignment because of an extremely
21714 # bizarre bug on SunOS 4.1.3.
21715 if $ac_need_defaults; then
21716 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21717 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21718 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21719 fi
21720
21721 # Have a temporary directory for convenience. Make it in the build tree
21722 # simply because there is no reason against having it here, and in addition,
21723 # creating and moving files from /tmp can sometimes cause problems.
21724 # Hook for its removal unless debugging.
21725 # Note that there is a small window in which the directory will not be cleaned:
21726 # after its creation but before its name has been assigned to `$tmp'.
21727 $debug ||
21728 {
21729 tmp= ac_tmp=
21730 trap 'exit_status=$?
21731 : "${ac_tmp:=$tmp}"
21732 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21733 ' 0
21734 trap 'as_fn_exit 1' 1 2 13 15
21735 }
21736 # Create a (secure) tmp directory for tmp files.
21737
21738 {
21739 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21740 test -d "$tmp"
21741 } ||
21742 {
21743 tmp=./conf$$-$RANDOM
21744 (umask 077 && mkdir "$tmp")
21745 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21746 ac_tmp=$tmp
21747
21748 # Set up the scripts for CONFIG_FILES section.
21749 # No need to generate them if there are no CONFIG_FILES.
21750 # This happens for instance with `./config.status config.h'.
21751 if test -n "$CONFIG_FILES"; then
21752
21753
21754 ac_cr=`echo X | tr X '\015'`
21755 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21756 # But we know of no other shell where ac_cr would be empty at this
21757 # point, so we can use a bashism as a fallback.
21758 if test "x$ac_cr" = x; then
21759 eval ac_cr=\$\'\\r\'
21760 fi
21761 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21762 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21763 ac_cs_awk_cr='\\r'
21764 else
21765 ac_cs_awk_cr=$ac_cr
21766 fi
21767
21768 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21769 _ACEOF
21770
21771
21772 {
21773 echo "cat >conf$$subs.awk <<_ACEOF" &&
21774 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21775 echo "_ACEOF"
21776 } >conf$$subs.sh ||
21777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21778 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21779 ac_delim='%!_!# '
21780 for ac_last_try in false false false false false :; do
21781 . ./conf$$subs.sh ||
21782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21783
21784 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21785 if test $ac_delim_n = $ac_delim_num; then
21786 break
21787 elif $ac_last_try; then
21788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21789 else
21790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21791 fi
21792 done
21793 rm -f conf$$subs.sh
21794
21795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21796 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21797 _ACEOF
21798 sed -n '
21799 h
21800 s/^/S["/; s/!.*/"]=/
21801 p
21802 g
21803 s/^[^!]*!//
21804 :repl
21805 t repl
21806 s/'"$ac_delim"'$//
21807 t delim
21808 :nl
21809 h
21810 s/\(.\{148\}\)..*/\1/
21811 t more1
21812 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21813 p
21814 n
21815 b repl
21816 :more1
21817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21818 p
21819 g
21820 s/.\{148\}//
21821 t nl
21822 :delim
21823 h
21824 s/\(.\{148\}\)..*/\1/
21825 t more2
21826 s/["\\]/\\&/g; s/^/"/; s/$/"/
21827 p
21828 b
21829 :more2
21830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21831 p
21832 g
21833 s/.\{148\}//
21834 t delim
21835 ' <conf$$subs.awk | sed '
21836 /^[^""]/{
21837 N
21838 s/\n//
21839 }
21840 ' >>$CONFIG_STATUS || ac_write_fail=1
21841 rm -f conf$$subs.awk
21842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21843 _ACAWK
21844 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21845 for (key in S) S_is_set[key] = 1
21846 FS = ""
21847
21848 }
21849 {
21850 line = $ 0
21851 nfields = split(line, field, "@")
21852 substed = 0
21853 len = length(field[1])
21854 for (i = 2; i < nfields; i++) {
21855 key = field[i]
21856 keylen = length(key)
21857 if (S_is_set[key]) {
21858 value = S[key]
21859 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21860 len += length(value) + length(field[++i])
21861 substed = 1
21862 } else
21863 len += 1 + keylen
21864 }
21865
21866 print line
21867 }
21868
21869 _ACAWK
21870 _ACEOF
21871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21872 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21873 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21874 else
21875 cat
21876 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21877 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21878 _ACEOF
21879
21880 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21881 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21882 # trailing colons and then remove the whole line if VPATH becomes empty
21883 # (actually we leave an empty line to preserve line numbers).
21884 if test "x$srcdir" = x.; then
21885 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21886 h
21887 s///
21888 s/^/:/
21889 s/[ ]*$/:/
21890 s/:\$(srcdir):/:/g
21891 s/:\${srcdir}:/:/g
21892 s/:@srcdir@:/:/g
21893 s/^:*//
21894 s/:*$//
21895 x
21896 s/\(=[ ]*\).*/\1/
21897 G
21898 s/\n//
21899 s/^[^=]*=[ ]*$//
21900 }'
21901 fi
21902
21903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21904 fi # test -n "$CONFIG_FILES"
21905
21906 # Set up the scripts for CONFIG_HEADERS section.
21907 # No need to generate them if there are no CONFIG_HEADERS.
21908 # This happens for instance with `./config.status Makefile'.
21909 if test -n "$CONFIG_HEADERS"; then
21910 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21911 BEGIN {
21912 _ACEOF
21913
21914 # Transform confdefs.h into an awk script `defines.awk', embedded as
21915 # here-document in config.status, that substitutes the proper values into
21916 # config.h.in to produce config.h.
21917
21918 # Create a delimiter string that does not exist in confdefs.h, to ease
21919 # handling of long lines.
21920 ac_delim='%!_!# '
21921 for ac_last_try in false false :; do
21922 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21923 if test -z "$ac_tt"; then
21924 break
21925 elif $ac_last_try; then
21926 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21927 else
21928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21929 fi
21930 done
21931
21932 # For the awk script, D is an array of macro values keyed by name,
21933 # likewise P contains macro parameters if any. Preserve backslash
21934 # newline sequences.
21935
21936 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21937 sed -n '
21938 s/.\{148\}/&'"$ac_delim"'/g
21939 t rset
21940 :rset
21941 s/^[ ]*#[ ]*define[ ][ ]*/ /
21942 t def
21943 d
21944 :def
21945 s/\\$//
21946 t bsnl
21947 s/["\\]/\\&/g
21948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21949 D["\1"]=" \3"/p
21950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21951 d
21952 :bsnl
21953 s/["\\]/\\&/g
21954 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21955 D["\1"]=" \3\\\\\\n"\\/p
21956 t cont
21957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21958 t cont
21959 d
21960 :cont
21961 n
21962 s/.\{148\}/&'"$ac_delim"'/g
21963 t clear
21964 :clear
21965 s/\\$//
21966 t bsnlc
21967 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21968 d
21969 :bsnlc
21970 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21971 b cont
21972 ' <confdefs.h | sed '
21973 s/'"$ac_delim"'/"\\\
21974 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21975
21976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21977 for (key in D) D_is_set[key] = 1
21978 FS = ""
21979 }
21980 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21981 line = \$ 0
21982 split(line, arg, " ")
21983 if (arg[1] == "#") {
21984 defundef = arg[2]
21985 mac1 = arg[3]
21986 } else {
21987 defundef = substr(arg[1], 2)
21988 mac1 = arg[2]
21989 }
21990 split(mac1, mac2, "(") #)
21991 macro = mac2[1]
21992 prefix = substr(line, 1, index(line, defundef) - 1)
21993 if (D_is_set[macro]) {
21994 # Preserve the white space surrounding the "#".
21995 print prefix "define", macro P[macro] D[macro]
21996 next
21997 } else {
21998 # Replace #undef with comments. This is necessary, for example,
21999 # in the case of _POSIX_SOURCE, which is predefined and required
22000 # on some systems where configure will not decide to define it.
22001 if (defundef == "undef") {
22002 print "/*", prefix defundef, macro, "*/"
22003 next
22004 }
22005 }
22006 }
22007 { print }
22008 _ACAWK
22009 _ACEOF
22010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22011 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22012 fi # test -n "$CONFIG_HEADERS"
22013
22014
22015 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22016 shift
22017 for ac_tag
22018 do
22019 case $ac_tag in
22020 :[FHLC]) ac_mode=$ac_tag; continue;;
22021 esac
22022 case $ac_mode$ac_tag in
22023 :[FHL]*:*);;
22024 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22025 :[FH]-) ac_tag=-:-;;
22026 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22027 esac
22028 ac_save_IFS=$IFS
22029 IFS=:
22030 set x $ac_tag
22031 IFS=$ac_save_IFS
22032 shift
22033 ac_file=$1
22034 shift
22035
22036 case $ac_mode in
22037 :L) ac_source=$1;;
22038 :[FH])
22039 ac_file_inputs=
22040 for ac_f
22041 do
22042 case $ac_f in
22043 -) ac_f="$ac_tmp/stdin";;
22044 *) # Look for the file first in the build tree, then in the source tree
22045 # (if the path is not absolute). The absolute path cannot be DOS-style,
22046 # because $ac_f cannot contain `:'.
22047 test -f "$ac_f" ||
22048 case $ac_f in
22049 [\\/$]*) false;;
22050 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22051 esac ||
22052 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22053 esac
22054 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22055 as_fn_append ac_file_inputs " '$ac_f'"
22056 done
22057
22058 # Let's still pretend it is `configure' which instantiates (i.e., don't
22059 # use $as_me), people would be surprised to read:
22060 # /* config.h. Generated by config.status. */
22061 configure_input='Generated from '`
22062 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22063 `' by configure.'
22064 if test x"$ac_file" != x-; then
22065 configure_input="$ac_file. $configure_input"
22066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22067 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22068 fi
22069 # Neutralize special characters interpreted by sed in replacement strings.
22070 case $configure_input in #(
22071 *\&* | *\|* | *\\* )
22072 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22073 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22074 *) ac_sed_conf_input=$configure_input;;
22075 esac
22076
22077 case $ac_tag in
22078 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22080 esac
22081 ;;
22082 esac
22083
22084 ac_dir=`$as_dirname -- "$ac_file" ||
22085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22086 X"$ac_file" : 'X\(//\)[^/]' \| \
22087 X"$ac_file" : 'X\(//\)$' \| \
22088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22089 printf "%s\n" X"$ac_file" |
22090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22091 s//\1/
22092 q
22093 }
22094 /^X\(\/\/\)[^/].*/{
22095 s//\1/
22096 q
22097 }
22098 /^X\(\/\/\)$/{
22099 s//\1/
22100 q
22101 }
22102 /^X\(\/\).*/{
22103 s//\1/
22104 q
22105 }
22106 s/.*/./; q'`
22107 as_dir="$ac_dir"; as_fn_mkdir_p
22108 ac_builddir=.
22109
22110 case "$ac_dir" in
22111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22112 *)
22113 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22114 # A ".." for each directory in $ac_dir_suffix.
22115 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22116 case $ac_top_builddir_sub in
22117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22119 esac ;;
22120 esac
22121 ac_abs_top_builddir=$ac_pwd
22122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22123 # for backward compatibility:
22124 ac_top_builddir=$ac_top_build_prefix
22125
22126 case $srcdir in
22127 .) # We are building in place.
22128 ac_srcdir=.
22129 ac_top_srcdir=$ac_top_builddir_sub
22130 ac_abs_top_srcdir=$ac_pwd ;;
22131 [\\/]* | ?:[\\/]* ) # Absolute name.
22132 ac_srcdir=$srcdir$ac_dir_suffix;
22133 ac_top_srcdir=$srcdir
22134 ac_abs_top_srcdir=$srcdir ;;
22135 *) # Relative name.
22136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22137 ac_top_srcdir=$ac_top_build_prefix$srcdir
22138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22139 esac
22140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22141
22142
22143 case $ac_mode in
22144 :F)
22145 #
22146 # CONFIG_FILE
22147 #
22148
22149 case $INSTALL in
22150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22152 esac
22153 ac_MKDIR_P=$MKDIR_P
22154 case $MKDIR_P in
22155 [\\/$]* | ?:[\\/]* ) ;;
22156 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22157 esac
22158 _ACEOF
22159
22160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22161 # If the template does not know about datarootdir, expand it.
22162 # FIXME: This hack should be removed a few years after 2.60.
22163 ac_datarootdir_hack=; ac_datarootdir_seen=
22164 ac_sed_dataroot='
22165 /datarootdir/ {
22166 p
22167 q
22168 }
22169 /@datadir@/p
22170 /@docdir@/p
22171 /@infodir@/p
22172 /@localedir@/p
22173 /@mandir@/p'
22174 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22175 *datarootdir*) ac_datarootdir_seen=yes;;
22176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22178 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22179 _ACEOF
22180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22181 ac_datarootdir_hack='
22182 s&@datadir@&$datadir&g
22183 s&@docdir@&$docdir&g
22184 s&@infodir@&$infodir&g
22185 s&@localedir@&$localedir&g
22186 s&@mandir@&$mandir&g
22187 s&\\\${datarootdir}&$datarootdir&g' ;;
22188 esac
22189 _ACEOF
22190
22191 # Neutralize VPATH when `$srcdir' = `.'.
22192 # Shell code in configure.ac might set extrasub.
22193 # FIXME: do we really want to maintain this feature?
22194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22195 ac_sed_extra="$ac_vpsub
22196 $extrasub
22197 _ACEOF
22198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22199 :t
22200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22201 s|@configure_input@|$ac_sed_conf_input|;t t
22202 s&@top_builddir@&$ac_top_builddir_sub&;t t
22203 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22204 s&@srcdir@&$ac_srcdir&;t t
22205 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22206 s&@top_srcdir@&$ac_top_srcdir&;t t
22207 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22208 s&@builddir@&$ac_builddir&;t t
22209 s&@abs_builddir@&$ac_abs_builddir&;t t
22210 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22211 s&@INSTALL@&$ac_INSTALL&;t t
22212 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22213 $ac_datarootdir_hack
22214 "
22215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22216 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22217
22218 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22219 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22220 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22221 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22223 which seems to be undefined. Please make sure it is defined" >&5
22224 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22225 which seems to be undefined. Please make sure it is defined" >&2;}
22226
22227 rm -f "$ac_tmp/stdin"
22228 case $ac_file in
22229 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22230 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22231 esac \
22232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22233 ;;
22234 :H)
22235 #
22236 # CONFIG_HEADER
22237 #
22238 if test x"$ac_file" != x-; then
22239 {
22240 printf "%s\n" "/* $configure_input */" >&1 \
22241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22242 } >"$ac_tmp/config.h" \
22243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22244 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22246 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22247 else
22248 rm -f "$ac_file"
22249 mv "$ac_tmp/config.h" "$ac_file" \
22250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22251 fi
22252 else
22253 printf "%s\n" "/* $configure_input */" >&1 \
22254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22255 || as_fn_error $? "could not create -" "$LINENO" 5
22256 fi
22257 # Compute "$ac_file"'s index in $config_headers.
22258 _am_arg="$ac_file"
22259 _am_stamp_count=1
22260 for _am_header in $config_headers :; do
22261 case $_am_header in
22262 $_am_arg | $_am_arg:* )
22263 break ;;
22264 * )
22265 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22266 esac
22267 done
22268 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22269 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22270 X"$_am_arg" : 'X\(//\)[^/]' \| \
22271 X"$_am_arg" : 'X\(//\)$' \| \
22272 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22273 printf "%s\n" X"$_am_arg" |
22274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22275 s//\1/
22276 q
22277 }
22278 /^X\(\/\/\)[^/].*/{
22279 s//\1/
22280 q
22281 }
22282 /^X\(\/\/\)$/{
22283 s//\1/
22284 q
22285 }
22286 /^X\(\/\).*/{
22287 s//\1/
22288 q
22289 }
22290 s/.*/./; q'`/stamp-h$_am_stamp_count
22291 ;;
22292
22293 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22294 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22295 ;;
22296 esac
22297
22298
22299 case $ac_file$ac_mode in
22300 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22301 # Older Autoconf quotes --file arguments for eval, but not when files
22302 # are listed without --file. Let's play safe and only enable the eval
22303 # if we detect the quoting.
22304 # TODO: see whether this extra hack can be removed once we start
22305 # requiring Autoconf 2.70 or later.
22306 case $CONFIG_FILES in #(
22307 *\'*) :
22308 eval set x "$CONFIG_FILES" ;; #(
22309 *) :
22310 set x $CONFIG_FILES ;; #(
22311 *) :
22312 ;;
22313 esac
22314 shift
22315 # Used to flag and report bootstrapping failures.
22316 am_rc=0
22317 for am_mf
22318 do
22319 # Strip MF so we end up with the name of the file.
22320 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22321 # Check whether this is an Automake generated Makefile which includes
22322 # dependency-tracking related rules and includes.
22323 # Grep'ing the whole file directly is not great: AIX grep has a line
22324 # limit of 2048, but all sed's we know have understand at least 4000.
22325 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22326 || continue
22327 am_dirpart=`$as_dirname -- "$am_mf" ||
22328 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22329 X"$am_mf" : 'X\(//\)[^/]' \| \
22330 X"$am_mf" : 'X\(//\)$' \| \
22331 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22332 printf "%s\n" X"$am_mf" |
22333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22334 s//\1/
22335 q
22336 }
22337 /^X\(\/\/\)[^/].*/{
22338 s//\1/
22339 q
22340 }
22341 /^X\(\/\/\)$/{
22342 s//\1/
22343 q
22344 }
22345 /^X\(\/\).*/{
22346 s//\1/
22347 q
22348 }
22349 s/.*/./; q'`
22350 am_filepart=`$as_basename -- "$am_mf" ||
22351 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22352 X"$am_mf" : 'X\(//\)$' \| \
22353 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22354 printf "%s\n" X/"$am_mf" |
22355 sed '/^.*\/\([^/][^/]*\)\/*$/{
22356 s//\1/
22357 q
22358 }
22359 /^X\/\(\/\/\)$/{
22360 s//\1/
22361 q
22362 }
22363 /^X\/\(\/\).*/{
22364 s//\1/
22365 q
22366 }
22367 s/.*/./; q'`
22368 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22369 && sed -e '/# am--include-marker/d' "$am_filepart" \
22370 | $MAKE -f - am--depfiles" >&5
22371 (cd "$am_dirpart" \
22372 && sed -e '/# am--include-marker/d' "$am_filepart" \
22373 | $MAKE -f - am--depfiles) >&5 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } || am_rc=$?
22377 done
22378 if test $am_rc -ne 0; then
22379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22380 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22381 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22382 for automatic dependency tracking. If GNU make was not used, consider
22383 re-running the configure script with MAKE=\"gmake\" (or whatever is
22384 necessary). You can also try re-running configure with the
22385 '--disable-dependency-tracking' option to at least be able to build
22386 the package (albeit without support for automatic dependency tracking).
22387 See \`config.log' for more details" "$LINENO" 5; }
22388 fi
22389 { am_dirpart=; unset am_dirpart;}
22390 { am_filepart=; unset am_filepart;}
22391 { am_mf=; unset am_mf;}
22392 { am_rc=; unset am_rc;}
22393 rm -f conftest-deps.mk
22394 }
22395 ;;
22396 "libtool":C)
22397
22398 # See if we are running on zsh, and set the options that allow our
22399 # commands through without removal of \ escapes.
22400 if test -n "${ZSH_VERSION+set}"; then
22401 setopt NO_GLOB_SUBST
22402 fi
22403
22404 cfgfile=${ofile}T
22405 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22406 $RM "$cfgfile"
22407
22408 cat <<_LT_EOF >> "$cfgfile"
22409 #! $SHELL
22410 # Generated automatically by $as_me ($PACKAGE) $VERSION
22411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22413
22414 # Provide generalized library-building support services.
22415 # Written by Gordon Matzigkeit, 1996
22416
22417 # Copyright (C) 2014 Free Software Foundation, Inc.
22418 # This is free software; see the source for copying conditions. There is NO
22419 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22420
22421 # GNU Libtool is free software; you can redistribute it and/or modify
22422 # it under the terms of the GNU General Public License as published by
22423 # the Free Software Foundation; either version 2 of of the License, or
22424 # (at your option) any later version.
22425 #
22426 # As a special exception to the GNU General Public License, if you
22427 # distribute this file as part of a program or library that is built
22428 # using GNU Libtool, you may include this file under the same
22429 # distribution terms that you use for the rest of that program.
22430 #
22431 # GNU Libtool is distributed in the hope that it will be useful, but
22432 # WITHOUT ANY WARRANTY; without even the implied warranty of
22433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22434 # GNU General Public License for more details.
22435 #
22436 # You should have received a copy of the GNU General Public License
22437 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22438
22439
22440 # The names of the tagged configurations supported by this script.
22441 available_tags='CXX '
22442
22443 # Configured defaults for sys_lib_dlsearch_path munging.
22444 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22445
22446 # ### BEGIN LIBTOOL CONFIG
22447
22448 # Which release of libtool.m4 was used?
22449 macro_version=$macro_version
22450 macro_revision=$macro_revision
22451
22452 # Assembler program.
22453 AS=$lt_AS
22454
22455 # DLL creation program.
22456 DLLTOOL=$lt_DLLTOOL
22457
22458 # Object dumper program.
22459 OBJDUMP=$lt_OBJDUMP
22460
22461 # Whether or not to build static libraries.
22462 build_old_libs=$enable_static
22463
22464 # What type of objects to build.
22465 pic_mode=$pic_mode
22466
22467 # Whether or not to build shared libraries.
22468 build_libtool_libs=$enable_shared
22469
22470 # Whether or not to optimize for fast installation.
22471 fast_install=$enable_fast_install
22472
22473 # Shared archive member basename,for filename based shared library versioning on AIX.
22474 shared_archive_member_spec=$shared_archive_member_spec
22475
22476 # Shell to use when invoking shell scripts.
22477 SHELL=$lt_SHELL
22478
22479 # An echo program that protects backslashes.
22480 ECHO=$lt_ECHO
22481
22482 # The PATH separator for the build system.
22483 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22484
22485 # The host system.
22486 host_alias=$host_alias
22487 host=$host
22488 host_os=$host_os
22489
22490 # The build system.
22491 build_alias=$build_alias
22492 build=$build
22493 build_os=$build_os
22494
22495 # A sed program that does not truncate output.
22496 SED=$lt_SED
22497
22498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22499 Xsed="\$SED -e 1s/^X//"
22500
22501 # A grep program that handles long lines.
22502 GREP=$lt_GREP
22503
22504 # An ERE matcher.
22505 EGREP=$lt_EGREP
22506
22507 # A literal string matcher.
22508 FGREP=$lt_FGREP
22509
22510 # A BSD- or MS-compatible name lister.
22511 NM=$lt_NM
22512
22513 # Whether we need soft or hard links.
22514 LN_S=$lt_LN_S
22515
22516 # What is the maximum length of a command?
22517 max_cmd_len=$max_cmd_len
22518
22519 # Object file suffix (normally "o").
22520 objext=$ac_objext
22521
22522 # Executable file suffix (normally "").
22523 exeext=$exeext
22524
22525 # whether the shell understands "unset".
22526 lt_unset=$lt_unset
22527
22528 # turn spaces into newlines.
22529 SP2NL=$lt_lt_SP2NL
22530
22531 # turn newlines into spaces.
22532 NL2SP=$lt_lt_NL2SP
22533
22534 # convert \$build file names to \$host format.
22535 to_host_file_cmd=$lt_cv_to_host_file_cmd
22536
22537 # convert \$build files to toolchain format.
22538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22539
22540 # A file(cmd) program that detects file types.
22541 FILECMD=$lt_FILECMD
22542
22543 # Method to check whether dependent libraries are shared objects.
22544 deplibs_check_method=$lt_deplibs_check_method
22545
22546 # Command to use when deplibs_check_method = "file_magic".
22547 file_magic_cmd=$lt_file_magic_cmd
22548
22549 # How to find potential files when deplibs_check_method = "file_magic".
22550 file_magic_glob=$lt_file_magic_glob
22551
22552 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22553 want_nocaseglob=$lt_want_nocaseglob
22554
22555 # Command to associate shared and link libraries.
22556 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22557
22558 # The archiver.
22559 AR=$lt_AR
22560
22561 # Flags to create an archive (by configure).
22562 lt_ar_flags=$lt_ar_flags
22563
22564 # Flags to create an archive.
22565 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22566
22567 # How to feed a file listing to the archiver.
22568 archiver_list_spec=$lt_archiver_list_spec
22569
22570 # A symbol stripping program.
22571 STRIP=$lt_STRIP
22572
22573 # Commands used to install an old-style archive.
22574 RANLIB=$lt_RANLIB
22575 old_postinstall_cmds=$lt_old_postinstall_cmds
22576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22577
22578 # Whether to use a lock for old archive extraction.
22579 lock_old_archive_extraction=$lock_old_archive_extraction
22580
22581 # A C compiler.
22582 LTCC=$lt_CC
22583
22584 # LTCC compiler flags.
22585 LTCFLAGS=$lt_CFLAGS
22586
22587 # Take the output of nm and produce a listing of raw symbols and C names.
22588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22589
22590 # Transform the output of nm in a proper C declaration.
22591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22592
22593 # Transform the output of nm into a list of symbols to manually relocate.
22594 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22595
22596 # Transform the output of nm in a C name address pair.
22597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22598
22599 # Transform the output of nm in a C name address pair when lib prefix is needed.
22600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22601
22602 # The name lister interface.
22603 nm_interface=$lt_lt_cv_nm_interface
22604
22605 # Specify filename containing input files for \$NM.
22606 nm_file_list_spec=$lt_nm_file_list_spec
22607
22608 # The root where to search for dependent libraries,and where our libraries should be installed.
22609 lt_sysroot=$lt_sysroot
22610
22611 # Command to truncate a binary pipe.
22612 lt_truncate_bin=$lt_lt_cv_truncate_bin
22613
22614 # The name of the directory that contains temporary libtool files.
22615 objdir=$objdir
22616
22617 # Used to examine libraries when file_magic_cmd begins with "file".
22618 MAGIC_CMD=$MAGIC_CMD
22619
22620 # Must we lock files when doing compilation?
22621 need_locks=$lt_need_locks
22622
22623 # Manifest tool.
22624 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22625
22626 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22627 DSYMUTIL=$lt_DSYMUTIL
22628
22629 # Tool to change global to local symbols on Mac OS X.
22630 NMEDIT=$lt_NMEDIT
22631
22632 # Tool to manipulate fat objects and archives on Mac OS X.
22633 LIPO=$lt_LIPO
22634
22635 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22636 OTOOL=$lt_OTOOL
22637
22638 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22639 OTOOL64=$lt_OTOOL64
22640
22641 # Old archive suffix (normally "a").
22642 libext=$libext
22643
22644 # Shared library suffix (normally ".so").
22645 shrext_cmds=$lt_shrext_cmds
22646
22647 # The commands to extract the exported symbol list from a shared archive.
22648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22649
22650 # Variables whose values should be saved in libtool wrapper scripts and
22651 # restored at link time.
22652 variables_saved_for_relink=$lt_variables_saved_for_relink
22653
22654 # Do we need the "lib" prefix for modules?
22655 need_lib_prefix=$need_lib_prefix
22656
22657 # Do we need a version for libraries?
22658 need_version=$need_version
22659
22660 # Library versioning type.
22661 version_type=$version_type
22662
22663 # Shared library runtime path variable.
22664 runpath_var=$runpath_var
22665
22666 # Shared library path variable.
22667 shlibpath_var=$shlibpath_var
22668
22669 # Is shlibpath searched before the hard-coded library search path?
22670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22671
22672 # Format of library name prefix.
22673 libname_spec=$lt_libname_spec
22674
22675 # List of archive names. First name is the real one, the rest are links.
22676 # The last name is the one that the linker finds with -lNAME
22677 library_names_spec=$lt_library_names_spec
22678
22679 # The coded name of the library, if different from the real name.
22680 soname_spec=$lt_soname_spec
22681
22682 # Permission mode override for installation of shared libraries.
22683 install_override_mode=$lt_install_override_mode
22684
22685 # Command to use after installation of a shared archive.
22686 postinstall_cmds=$lt_postinstall_cmds
22687
22688 # Command to use after uninstallation of a shared archive.
22689 postuninstall_cmds=$lt_postuninstall_cmds
22690
22691 # Commands used to finish a libtool library installation in a directory.
22692 finish_cmds=$lt_finish_cmds
22693
22694 # As "finish_cmds", except a single script fragment to be evaled but
22695 # not shown.
22696 finish_eval=$lt_finish_eval
22697
22698 # Whether we should hardcode library paths into libraries.
22699 hardcode_into_libs=$hardcode_into_libs
22700
22701 # Compile-time system search path for libraries.
22702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22703
22704 # Detected run-time system search path for libraries.
22705 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22706
22707 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22708 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22709
22710 # Whether dlopen is supported.
22711 dlopen_support=$enable_dlopen
22712
22713 # Whether dlopen of programs is supported.
22714 dlopen_self=$enable_dlopen_self
22715
22716 # Whether dlopen of statically linked programs is supported.
22717 dlopen_self_static=$enable_dlopen_self_static
22718
22719 # Commands to strip libraries.
22720 old_striplib=$lt_old_striplib
22721 striplib=$lt_striplib
22722
22723
22724 # The linker used to build libraries.
22725 LD=$lt_LD
22726
22727 # How to create reloadable object files.
22728 reload_flag=$lt_reload_flag
22729 reload_cmds=$lt_reload_cmds
22730
22731 # Commands used to build an old-style archive.
22732 old_archive_cmds=$lt_old_archive_cmds
22733
22734 # A language specific compiler.
22735 CC=$lt_compiler
22736
22737 # Is the compiler the GNU compiler?
22738 with_gcc=$GCC
22739
22740 # Compiler flag to turn off builtin functions.
22741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22742
22743 # Additional compiler flags for building library objects.
22744 pic_flag=$lt_lt_prog_compiler_pic
22745
22746 # How to pass a linker flag through the compiler.
22747 wl=$lt_lt_prog_compiler_wl
22748
22749 # Compiler flag to prevent dynamic linking.
22750 link_static_flag=$lt_lt_prog_compiler_static
22751
22752 # Does compiler simultaneously support -c and -o options?
22753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22754
22755 # Whether or not to add -lc for building shared libraries.
22756 build_libtool_need_lc=$archive_cmds_need_lc
22757
22758 # Whether or not to disallow shared libs when runtime libs are static.
22759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22760
22761 # Compiler flag to allow reflexive dlopens.
22762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22763
22764 # Compiler flag to generate shared objects directly from archives.
22765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22766
22767 # Whether the compiler copes with passing no objects directly.
22768 compiler_needs_object=$lt_compiler_needs_object
22769
22770 # Create an old-style archive from a shared archive.
22771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22772
22773 # Create a temporary old-style archive to link instead of a shared archive.
22774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22775
22776 # Commands used to build a shared archive.
22777 archive_cmds=$lt_archive_cmds
22778 archive_expsym_cmds=$lt_archive_expsym_cmds
22779
22780 # Commands used to build a loadable module if different from building
22781 # a shared archive.
22782 module_cmds=$lt_module_cmds
22783 module_expsym_cmds=$lt_module_expsym_cmds
22784
22785 # Whether we are building with GNU ld or not.
22786 with_gnu_ld=$lt_with_gnu_ld
22787
22788 # Flag that allows shared libraries with undefined symbols to be built.
22789 allow_undefined_flag=$lt_allow_undefined_flag
22790
22791 # Flag that enforces no undefined symbols.
22792 no_undefined_flag=$lt_no_undefined_flag
22793
22794 # Flag to hardcode \$libdir into a binary during linking.
22795 # This must work even if \$libdir does not exist
22796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22797
22798 # Whether we need a single "-rpath" flag with a separated argument.
22799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22800
22801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22802 # DIR into the resulting binary.
22803 hardcode_direct=$hardcode_direct
22804
22805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22806 # DIR into the resulting binary and the resulting library dependency is
22807 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22808 # library is relocated.
22809 hardcode_direct_absolute=$hardcode_direct_absolute
22810
22811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22812 # into the resulting binary.
22813 hardcode_minus_L=$hardcode_minus_L
22814
22815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22816 # into the resulting binary.
22817 hardcode_shlibpath_var=$hardcode_shlibpath_var
22818
22819 # Set to "yes" if building a shared library automatically hardcodes DIR
22820 # into the library and all subsequent libraries and executables linked
22821 # against it.
22822 hardcode_automatic=$hardcode_automatic
22823
22824 # Set to yes if linker adds runtime paths of dependent libraries
22825 # to runtime path list.
22826 inherit_rpath=$inherit_rpath
22827
22828 # Whether libtool must link a program against all its dependency libraries.
22829 link_all_deplibs=$link_all_deplibs
22830
22831 # Set to "yes" if exported symbols are required.
22832 always_export_symbols=$always_export_symbols
22833
22834 # The commands to list exported symbols.
22835 export_symbols_cmds=$lt_export_symbols_cmds
22836
22837 # Symbols that should not be listed in the preloaded symbols.
22838 exclude_expsyms=$lt_exclude_expsyms
22839
22840 # Symbols that must always be exported.
22841 include_expsyms=$lt_include_expsyms
22842
22843 # Commands necessary for linking programs (against libraries) with templates.
22844 prelink_cmds=$lt_prelink_cmds
22845
22846 # Commands necessary for finishing linking programs.
22847 postlink_cmds=$lt_postlink_cmds
22848
22849 # Specify filename containing input files.
22850 file_list_spec=$lt_file_list_spec
22851
22852 # How to hardcode a shared library path into an executable.
22853 hardcode_action=$hardcode_action
22854
22855 # The directories searched by this compiler when creating a shared library.
22856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22857
22858 # Dependencies to place before and after the objects being linked to
22859 # create a shared library.
22860 predep_objects=$lt_predep_objects
22861 postdep_objects=$lt_postdep_objects
22862 predeps=$lt_predeps
22863 postdeps=$lt_postdeps
22864
22865 # The library search path used internally by the compiler when linking
22866 # a shared library.
22867 compiler_lib_search_path=$lt_compiler_lib_search_path
22868
22869 # ### END LIBTOOL CONFIG
22870
22871 _LT_EOF
22872
22873 cat <<'_LT_EOF' >> "$cfgfile"
22874
22875 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22876
22877 # func_munge_path_list VARIABLE PATH
22878 # -----------------------------------
22879 # VARIABLE is name of variable containing _space_ separated list of
22880 # directories to be munged by the contents of PATH, which is string
22881 # having a format:
22882 # "DIR[:DIR]:"
22883 # string "DIR[ DIR]" will be prepended to VARIABLE
22884 # ":DIR[:DIR]"
22885 # string "DIR[ DIR]" will be appended to VARIABLE
22886 # "DIRP[:DIRP]::[DIRA:]DIRA"
22887 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22888 # "DIRA[ DIRA]" will be appended to VARIABLE
22889 # "DIR[:DIR]"
22890 # VARIABLE will be replaced by "DIR[ DIR]"
22891 func_munge_path_list ()
22892 {
22893 case x$2 in
22894 x)
22895 ;;
22896 *:)
22897 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22898 ;;
22899 x:*)
22900 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22901 ;;
22902 *::*)
22903 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22904 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22905 ;;
22906 *)
22907 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22908 ;;
22909 esac
22910 }
22911
22912
22913 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22914 func_cc_basename ()
22915 {
22916 for cc_temp in $*""; do
22917 case $cc_temp in
22918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22920 \-*) ;;
22921 *) break;;
22922 esac
22923 done
22924 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22925 }
22926
22927
22928 # ### END FUNCTIONS SHARED WITH CONFIGURE
22929
22930 _LT_EOF
22931
22932 case $host_os in
22933 aix3*)
22934 cat <<\_LT_EOF >> "$cfgfile"
22935 # AIX sometimes has problems with the GCC collect2 program. For some
22936 # reason, if we set the COLLECT_NAMES environment variable, the problems
22937 # vanish in a puff of smoke.
22938 if test set != "${COLLECT_NAMES+set}"; then
22939 COLLECT_NAMES=
22940 export COLLECT_NAMES
22941 fi
22942 _LT_EOF
22943 ;;
22944 esac
22945
22946
22947
22948 ltmain=$ac_aux_dir/ltmain.sh
22949
22950
22951 # We use sed instead of cat because bash on DJGPP gets confused if
22952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22953 # text mode, it properly converts lines to CR/LF. This bash problem
22954 # is reportedly fixed, but why not run on old versions too?
22955 $SED '$q' "$ltmain" >> "$cfgfile" \
22956 || (rm -f "$cfgfile"; exit 1)
22957
22958 mv -f "$cfgfile" "$ofile" ||
22959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22960 chmod +x "$ofile"
22961
22962
22963 cat <<_LT_EOF >> "$ofile"
22964
22965 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22966
22967 # The linker used to build libraries.
22968 LD=$lt_LD_CXX
22969
22970 # How to create reloadable object files.
22971 reload_flag=$lt_reload_flag_CXX
22972 reload_cmds=$lt_reload_cmds_CXX
22973
22974 # Commands used to build an old-style archive.
22975 old_archive_cmds=$lt_old_archive_cmds_CXX
22976
22977 # A language specific compiler.
22978 CC=$lt_compiler_CXX
22979
22980 # Is the compiler the GNU compiler?
22981 with_gcc=$GCC_CXX
22982
22983 # Compiler flag to turn off builtin functions.
22984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22985
22986 # Additional compiler flags for building library objects.
22987 pic_flag=$lt_lt_prog_compiler_pic_CXX
22988
22989 # How to pass a linker flag through the compiler.
22990 wl=$lt_lt_prog_compiler_wl_CXX
22991
22992 # Compiler flag to prevent dynamic linking.
22993 link_static_flag=$lt_lt_prog_compiler_static_CXX
22994
22995 # Does compiler simultaneously support -c and -o options?
22996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22997
22998 # Whether or not to add -lc for building shared libraries.
22999 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23000
23001 # Whether or not to disallow shared libs when runtime libs are static.
23002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23003
23004 # Compiler flag to allow reflexive dlopens.
23005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23006
23007 # Compiler flag to generate shared objects directly from archives.
23008 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23009
23010 # Whether the compiler copes with passing no objects directly.
23011 compiler_needs_object=$lt_compiler_needs_object_CXX
23012
23013 # Create an old-style archive from a shared archive.
23014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23015
23016 # Create a temporary old-style archive to link instead of a shared archive.
23017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23018
23019 # Commands used to build a shared archive.
23020 archive_cmds=$lt_archive_cmds_CXX
23021 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23022
23023 # Commands used to build a loadable module if different from building
23024 # a shared archive.
23025 module_cmds=$lt_module_cmds_CXX
23026 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23027
23028 # Whether we are building with GNU ld or not.
23029 with_gnu_ld=$lt_with_gnu_ld_CXX
23030
23031 # Flag that allows shared libraries with undefined symbols to be built.
23032 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23033
23034 # Flag that enforces no undefined symbols.
23035 no_undefined_flag=$lt_no_undefined_flag_CXX
23036
23037 # Flag to hardcode \$libdir into a binary during linking.
23038 # This must work even if \$libdir does not exist
23039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23040
23041 # Whether we need a single "-rpath" flag with a separated argument.
23042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23043
23044 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23045 # DIR into the resulting binary.
23046 hardcode_direct=$hardcode_direct_CXX
23047
23048 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23049 # DIR into the resulting binary and the resulting library dependency is
23050 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23051 # library is relocated.
23052 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23053
23054 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23055 # into the resulting binary.
23056 hardcode_minus_L=$hardcode_minus_L_CXX
23057
23058 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23059 # into the resulting binary.
23060 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23061
23062 # Set to "yes" if building a shared library automatically hardcodes DIR
23063 # into the library and all subsequent libraries and executables linked
23064 # against it.
23065 hardcode_automatic=$hardcode_automatic_CXX
23066
23067 # Set to yes if linker adds runtime paths of dependent libraries
23068 # to runtime path list.
23069 inherit_rpath=$inherit_rpath_CXX
23070
23071 # Whether libtool must link a program against all its dependency libraries.
23072 link_all_deplibs=$link_all_deplibs_CXX
23073
23074 # Set to "yes" if exported symbols are required.
23075 always_export_symbols=$always_export_symbols_CXX
23076
23077 # The commands to list exported symbols.
23078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23079
23080 # Symbols that should not be listed in the preloaded symbols.
23081 exclude_expsyms=$lt_exclude_expsyms_CXX
23082
23083 # Symbols that must always be exported.
23084 include_expsyms=$lt_include_expsyms_CXX
23085
23086 # Commands necessary for linking programs (against libraries) with templates.
23087 prelink_cmds=$lt_prelink_cmds_CXX
23088
23089 # Commands necessary for finishing linking programs.
23090 postlink_cmds=$lt_postlink_cmds_CXX
23091
23092 # Specify filename containing input files.
23093 file_list_spec=$lt_file_list_spec_CXX
23094
23095 # How to hardcode a shared library path into an executable.
23096 hardcode_action=$hardcode_action_CXX
23097
23098 # The directories searched by this compiler when creating a shared library.
23099 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23100
23101 # Dependencies to place before and after the objects being linked to
23102 # create a shared library.
23103 predep_objects=$lt_predep_objects_CXX
23104 postdep_objects=$lt_postdep_objects_CXX
23105 predeps=$lt_predeps_CXX
23106 postdeps=$lt_postdeps_CXX
23107
23108 # The library search path used internally by the compiler when linking
23109 # a shared library.
23110 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23111
23112 # ### END LIBTOOL TAG CONFIG: CXX
23113 _LT_EOF
23114
23115 ;;
23116
23117 esac
23118 done # for ac_tag
23119
23120
23121 as_fn_exit 0
23122 _ACEOF
23123 ac_clean_files=$ac_clean_files_save
23124
23125 test $ac_write_fail = 0 ||
23126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23127
23128
23129 # configure is writing to config.log, and then calls config.status.
23130 # config.status does its own redirection, appending to config.log.
23131 # Unfortunately, on DOS this fails, as config.log is still kept open
23132 # by configure, so config.status won't be able to write to it; its
23133 # output is simply discarded. So we exec the FD to /dev/null,
23134 # effectively closing config.log, so it can be properly (re)opened and
23135 # appended to by config.status. When coming back to configure, we
23136 # need to make the FD available again.
23137 if test "$no_create" != yes; then
23138 ac_cs_success=:
23139 ac_config_status_args=
23140 test "$silent" = yes &&
23141 ac_config_status_args="$ac_config_status_args --quiet"
23142 exec 5>/dev/null
23143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23144 exec 5>>config.log
23145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23146 # would make configure fail if this is the last instruction.
23147 $ac_cs_success || as_fn_exit 1
23148 fi
23149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23151 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23152 fi
23153
23154
23155 # ==============================================
23156 # Display final informations about configuration
23157 # ==============================================
23158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
23159 ==============================================================================
23160 Build configuration:
23161 debug: ${enable_debug}
23162 docs: ${build_docs}
23163 fuzzers: ${enable_fuzzers}
23164 tests: ${enable_tests}
23165 generators: ${enable_generators}
23166 streams: ${enable_streams}
23167 werror: ${enable_werror}
23168 pretty printers: ${enable_pretty_printers}
23169 ==============================================================================
23170 " >&5
23171 printf "%s\n" "$as_me:
23172 ==============================================================================
23173 Build configuration:
23174 debug: ${enable_debug}
23175 docs: ${build_docs}
23176 fuzzers: ${enable_fuzzers}
23177 tests: ${enable_tests}
23178 generators: ${enable_generators}
23179 streams: ${enable_streams}
23180 werror: ${enable_werror}
23181 pretty printers: ${enable_pretty_printers}
23182 ==============================================================================
23183 " >&6;}
23184