Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libmwaw 0.3.22.
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='libmwaw'
620 PACKAGE_TARNAME='libmwaw'
621 PACKAGE_VERSION='0.3.22'
622 PACKAGE_STRING='libmwaw 0.3.22'
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 WITH_LIBMWAW_API_DOCS_FALSE
663 WITH_LIBMWAW_API_DOCS_TRUE
664 WITH_LIBMWAW_DOCS_FALSE
665 WITH_LIBMWAW_DOCS_TRUE
666 DOXYGEN
667 REVENGE_STREAM_LIBS
668 REVENGE_STREAM_CFLAGS
669 REVENGE_GENERATORS_LIBS
670 REVENGE_GENERATORS_CFLAGS
671 BUILD_FUZZERS_FALSE
672 BUILD_FUZZERS_TRUE
673 BUILD_CONVERTISSORS_FALSE
674 BUILD_CONVERTISSORS_TRUE
675 REVENGE_LIBS
676 REVENGE_CFLAGS
677 WITH_LIBMWAW_ZIP_FALSE
678 WITH_LIBMWAW_ZIP_TRUE
679 ZLIB_LIBS
680 ZLIB_CFLAGS
681 XATTR_LIBS
682 XATTR_CFLAGS
683 STATIC_TOOLS_FALSE
684 STATIC_TOOLS_TRUE
685 DEBUG_CXXFLAGS
686 PLATFORM_DARWIN_FALSE
687 PLATFORM_DARWIN_TRUE
688 DEF_FILES_FALSE
689 DEF_FILES_TRUE
690 PLATFORM_WIN32_FALSE
691 PLATFORM_WIN32_TRUE
692 MWAWZIP_WIN32_RESOURCE
693 MWAWFILE_WIN32_RESOURCE
694 MWAW2TEXT_WIN32_RESOURCE
695 MWAW2SVG_WIN32_RESOURCE
696 MWAW2RAW_WIN32_RESOURCE
697 MWAW2HTML_WIN32_RESOURCE
698 MWAW2CSV_WIN32_RESOURCE
699 LIBMWAW_STREAM_WIN32_RESOURCE
700 LIBMWAW_WIN32_RESOURCE
701 OS_WIN32_FALSE
702 OS_WIN32_TRUE
703 WINDRES
704 LT_AGE
705 LT_REVISION
706 LT_CURRENT
707 MWAW_VERSION
708 MWAW_MICRO_VERSION
709 MWAW_MINOR_VERSION
710 MWAW_MAJOR_VERSION
711 HAVE_CXX11
712 PKG_CONFIG_LIBDIR
713 PKG_CONFIG_PATH
714 PKG_CONFIG
715 CXXCPP
716 LT_SYS_LIBRARY_PATH
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 MANIFEST_TOOL
723 RANLIB
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 OBJDUMP
742 DLLTOOL
743 AS
744 LN_S
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 ac_ct_CC
750 CFLAGS
751 CC
752 ac_ct_AR
753 AR
754 am__fastdepCXX_FALSE
755 am__fastdepCXX_TRUE
756 CXXDEPMODE
757 am__nodep
758 AMDEPBACKSLASH
759 AMDEP_FALSE
760 AMDEP_TRUE
761 am__include
762 DEPDIR
763 OBJEXT
764 EXEEXT
765 ac_ct_CXX
766 CPPFLAGS
767 LDFLAGS
768 CXXFLAGS
769 CXX
770 AM_BACKSLASH
771 AM_DEFAULT_VERBOSITY
772 AM_DEFAULT_V
773 AM_V
774 CSCOPE
775 ETAGS
776 CTAGS
777 am__untar
778 am__tar
779 AMTAR
780 am__leading_dot
781 SET_MAKE
782 AWK
783 mkdir_p
784 MKDIR_P
785 INSTALL_STRIP_PROGRAM
786 STRIP
787 install_sh
788 MAKEINFO
789 AUTOHEADER
790 AUTOMAKE
791 AUTOCONF
792 ACLOCAL
793 VERSION
794 PACKAGE
795 CYGPATH_W
796 am__isrc
797 INSTALL_DATA
798 INSTALL_SCRIPT
799 INSTALL_PROGRAM
800 target_alias
801 host_alias
802 build_alias
803 LIBS
804 ECHO_T
805 ECHO_N
806 ECHO_C
807 DEFS
808 mandir
809 localedir
810 libdir
811 psdir
812 pdfdir
813 dvidir
814 htmldir
815 infodir
816 docdir
817 oldincludedir
818 includedir
819 runstatedir
820 localstatedir
821 sharedstatedir
822 sysconfdir
823 datadir
824 datarootdir
825 libexecdir
826 sbindir
827 bindir
828 program_transform_name
829 prefix
830 exec_prefix
831 PACKAGE_URL
832 PACKAGE_BUGREPORT
833 PACKAGE_STRING
834 PACKAGE_VERSION
835 PACKAGE_TARNAME
836 PACKAGE_NAME
837 PATH_SEPARATOR
838 SHELL
839 am__quote'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_silent_rules
844 enable_dependency_tracking
845 enable_static
846 with_pic
847 enable_shared
848 enable_fast_install
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 enable_def_files
854 enable_werror
855 enable_weffc
856 enable_wparanoic
857 enable_debug
858 enable_full_debug
859 enable_static_tools
860 enable_zip
861 enable_asan
862 enable_tools
863 enable_fuzzers
864 with_docs
865 '
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CXX
870 CXXFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CCC
875 CC
876 CFLAGS
877 CPP
878 LT_SYS_LIBRARY_PATH
879 CXXCPP
880 PKG_CONFIG
881 PKG_CONFIG_PATH
882 PKG_CONFIG_LIBDIR
883 ZLIB_CFLAGS
884 ZLIB_LIBS
885 REVENGE_CFLAGS
886 REVENGE_LIBS
887 REVENGE_GENERATORS_CFLAGS
888 REVENGE_GENERATORS_LIBS
889 REVENGE_STREAM_CFLAGS
890 REVENGE_STREAM_LIBS'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 ac_unrecognized_opts=
897 ac_unrecognized_sep=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 runstatedir='${localstatedir}/run'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -runstatedir | --runstatedir | --runstatedi | --runstated \
1181 | --runstate | --runstat | --runsta | --runst | --runs \
1182 | --run | --ru | --r)
1183 ac_prev=runstatedir ;;
1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1186 | --run=* | --ru=* | --r=*)
1187 runstatedir=$ac_optarg ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: \`$ac_useropt'"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: \`$ac_useropt'"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir runstatedir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 printf "%s\n" X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures libmwaw 0.3.22 to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/libmwaw]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1494
1495 cat <<\_ACEOF
1496
1497 Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of libmwaw 0.3.22:";;
1511 esac
1512 cat <<\_ACEOF
1513
1514 Optional Features:
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --enable-silent-rules less verbose build output (undo: "make V=1")
1519 --disable-silent-rules verbose build output (undo: "make V=0")
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --enable-static[=PKGS] build static libraries [default=no]
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --enable-def-files Enable use of def files to define exported symbols
1530 on win32
1531 --enable-werror Treat all warnings as errors, usefull for
1532 development
1533 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1534 version of gcc or some boost version
1535 --enable-wparanoic Enable a lot of warnings...
1536 --enable-debug Turn on debugging
1537 --enable-full-debug Turn on debugging and debug files' creation
1538 --enable-static-tools Link tools (binaries) statically
1539 --disable-zip Do not use the zip library and so do not build
1540 mwawZip.
1541 --enable-asan Enable Address Sanitizer support
1542 --disable-tools Build conversion tools
1543 --enable-fuzzers Build fuzzer(s)
1544
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1549 both]
1550 --with-aix-soname=aix|svr4|both
1551 shared library versioning (aka "SONAME") variant to
1552 provide on AIX, [default=aix].
1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1555 compiler's sysroot if not specified).
1556 --with-docs=no|api|full Do not build documentation, only API/full
1557 documentation
1558
1559 Some influential environment variables:
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 CPP C preprocessor
1570 LT_SYS_LIBRARY_PATH
1571 User-defined run-time library search path.
1572 CXXCPP C++ preprocessor
1573 PKG_CONFIG path to pkg-config utility
1574 PKG_CONFIG_PATH
1575 directories to add to pkg-config's search path
1576 PKG_CONFIG_LIBDIR
1577 path overriding pkg-config's built-in search path
1578 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1579 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1580 REVENGE_CFLAGS
1581 C compiler flags for REVENGE, overriding pkg-config
1582 REVENGE_LIBS
1583 linker flags for REVENGE, overriding pkg-config
1584 REVENGE_GENERATORS_CFLAGS
1585 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1586 REVENGE_GENERATORS_LIBS
1587 linker flags for REVENGE_GENERATORS, overriding pkg-config
1588 REVENGE_STREAM_CFLAGS
1589 C compiler flags for REVENGE_STREAM, overriding pkg-config
1590 REVENGE_STREAM_LIBS
1591 linker flags for REVENGE_STREAM, overriding pkg-config
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to the package provider.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for configure.gnu first; this name is used for a wrapper for
1643 # Metaconfig's "Configure" on case-insensitive file systems.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1650 else
1651 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1654 done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659 cat <<\_ACEOF
1660 libmwaw configure 0.3.22
1661 generated by GNU Autoconf 2.71
1662
1663 Copyright (C) 2021 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1668 fi
1669
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1673
1674 # ac_fn_cxx_try_compile LINENO
1675 # ----------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest.beam
1681 if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 printf "%s\n" "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_cxx_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext
1700 then :
1701 ac_retval=0
1702 else $as_nop
1703 printf "%s\n" "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_cxx_try_compile
1712
1713 # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
1714 # ------------------------------------------------------
1715 # Tries to find if the field MEMBER exists in type AGGR, after including
1716 # INCLUDES, setting cache variable VAR accordingly.
1717 ac_fn_cxx_check_member ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1721 printf %s "checking for $2.$3... " >&6; }
1722 if eval test \${$4+y}
1723 then :
1724 printf %s "(cached) " >&6
1725 else $as_nop
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 $5
1729 int
1730 main (void)
1731 {
1732 static $2 ac_aggr;
1733 if (ac_aggr.$3)
1734 return 0;
1735 ;
1736 return 0;
1737 }
1738 _ACEOF
1739 if ac_fn_cxx_try_compile "$LINENO"
1740 then :
1741 eval "$4=yes"
1742 else $as_nop
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $5
1746 int
1747 main (void)
1748 {
1749 static $2 ac_aggr;
1750 if (sizeof ac_aggr.$3)
1751 return 0;
1752 ;
1753 return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_cxx_try_compile "$LINENO"
1757 then :
1758 eval "$4=yes"
1759 else $as_nop
1760 eval "$4=no"
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$4
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 printf "%s\n" "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_cxx_check_member
1772
1773 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1774 # ------------------------------------------------------------------
1775 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1776 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1777 ac_fn_check_decl ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 as_decl_name=`echo $2|sed 's/ *(.*//'`
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1782 printf %s "checking whether $as_decl_name is declared... " >&6; }
1783 if eval test \${$3+y}
1784 then :
1785 printf %s "(cached) " >&6
1786 else $as_nop
1787 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1788 eval ac_save_FLAGS=\$$6
1789 as_fn_append $6 " $5"
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main (void)
1795 {
1796 #ifndef $as_decl_name
1797 #ifdef __cplusplus
1798 (void) $as_decl_use;
1799 #else
1800 (void) $as_decl_name;
1801 #endif
1802 #endif
1803
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_cxx_try_compile "$LINENO"
1809 then :
1810 eval "$3=yes"
1811 else $as_nop
1812 eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1815 eval $6=\$ac_save_FLAGS
1816
1817 fi
1818 eval ac_res=\$$3
1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 printf "%s\n" "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_check_decl
1824
1825 # ac_fn_cxx_try_link LINENO
1826 # -------------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_link ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 printf "%s\n" "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 test -x conftest$ac_exeext
1853 }
1854 then :
1855 ac_retval=0
1856 else $as_nop
1857 printf "%s\n" "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861 fi
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870 } # ac_fn_cxx_try_link
1871
1872 # ac_fn_c_try_compile LINENO
1873 # --------------------------
1874 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_compile ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest.beam
1879 if { { ac_try="$ac_compile"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 printf "%s\n" "$ac_try_echo"; } >&5
1886 (eval "$ac_compile") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest.$ac_objext
1898 then :
1899 ac_retval=0
1900 else $as_nop
1901 printf "%s\n" "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905 fi
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_compile
1910
1911 # ac_fn_c_try_cpp LINENO
1912 # ----------------------
1913 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_cpp ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 printf "%s\n" "$ac_try_echo"; } >&5
1924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } > conftest.i && {
1933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 }
1936 then :
1937 ac_retval=0
1938 else $as_nop
1939 printf "%s\n" "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1946
1947 } # ac_fn_c_try_cpp
1948
1949 # ac_fn_c_try_link LINENO
1950 # -----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_link ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1956 if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 printf "%s\n" "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest$ac_exeext && {
1975 test "$cross_compiling" = yes ||
1976 test -x conftest$ac_exeext
1977 }
1978 then :
1979 ac_retval=0
1980 else $as_nop
1981 printf "%s\n" "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985 fi
1986 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1987 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1988 # interfere with the next link command; also delete a directory that is
1989 # left behind by Apple's compiler. We do this before executing the actions.
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1993
1994 } # ac_fn_c_try_link
1995
1996 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists and can be compiled using the include files in
1999 # INCLUDES, setting the cache variable VAR accordingly.
2000 ac_fn_c_check_header_compile ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 printf %s "checking for $2... " >&6; }
2005 if eval test \${$3+y}
2006 then :
2007 printf %s "(cached) " >&6
2008 else $as_nop
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"
2015 then :
2016 eval "$3=yes"
2017 else $as_nop
2018 eval "$3=no"
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$3
2023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 printf "%s\n" "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_header_compile
2028
2029 # ac_fn_c_check_func LINENO FUNC VAR
2030 # ----------------------------------
2031 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2032 ac_fn_c_check_func ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 printf %s "checking for $2... " >&6; }
2037 if eval test \${$3+y}
2038 then :
2039 printf %s "(cached) " >&6
2040 else $as_nop
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2046
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below. */
2049
2050 #include <limits.h>
2051 #undef $2
2052
2053 /* Override any GCC internal prototype to avoid an error.
2054 Use char because int might match the return type of a GCC
2055 builtin and then its argument prototype would still apply. */
2056 #ifdef __cplusplus
2057 extern "C"
2058 #endif
2059 char $2 ();
2060 /* The GNU C library defines this for functions which it implements
2061 to always fail with ENOSYS. Some functions are actually named
2062 something starting with __ and the normal name is an alias. */
2063 #if defined __stub_$2 || defined __stub___$2
2064 choke me
2065 #endif
2066
2067 int
2068 main (void)
2069 {
2070 return $2 ();
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_link "$LINENO"
2076 then :
2077 eval "$3=yes"
2078 else $as_nop
2079 eval "$3=no"
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2082 conftest$ac_exeext conftest.$ac_ext
2083 fi
2084 eval ac_res=\$$3
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 printf "%s\n" "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088
2089 } # ac_fn_c_check_func
2090
2091 # ac_fn_cxx_try_cpp LINENO
2092 # ------------------------
2093 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2094 ac_fn_cxx_try_cpp ()
2095 {
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 if { { ac_try="$ac_cpp conftest.$ac_ext"
2098 case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 printf "%s\n" "$ac_try_echo"; } >&5
2104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2110 fi
2111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } > conftest.i && {
2113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2114 test ! -s conftest.err
2115 }
2116 then :
2117 ac_retval=0
2118 else $as_nop
2119 printf "%s\n" "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2121
2122 ac_retval=1
2123 fi
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_cxx_try_cpp
2128 ac_configure_args_raw=
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 *\'*)
2133 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 esac
2135 as_fn_append ac_configure_args_raw " '$ac_arg'"
2136 done
2137
2138 case $ac_configure_args_raw in
2139 *$as_nl*)
2140 ac_safe_unquote= ;;
2141 *)
2142 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2143 ac_unsafe_a="$ac_unsafe_z#~"
2144 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2145 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2146 esac
2147
2148 cat >config.log <<_ACEOF
2149 This file contains any messages produced by compilers while
2150 running configure, to aid debugging if configure makes a mistake.
2151
2152 It was created by libmwaw $as_me 0.3.22, which was
2153 generated by GNU Autoconf 2.71. Invocation command line was
2154
2155 $ $0$ac_configure_args_raw
2156
2157 _ACEOF
2158 exec 5>>config.log
2159 {
2160 cat <<_ASUNAME
2161 ## --------- ##
2162 ## Platform. ##
2163 ## --------- ##
2164
2165 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2166 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2167 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2168 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2169 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2170
2171 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2172 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2173
2174 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2175 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2176 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2177 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2178 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2179 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2180 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2181
2182 _ASUNAME
2183
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 case $as_dir in #(((
2189 '') as_dir=./ ;;
2190 */) ;;
2191 *) as_dir=$as_dir/ ;;
2192 esac
2193 printf "%s\n" "PATH: $as_dir"
2194 done
2195 IFS=$as_save_IFS
2196
2197 } >&5
2198
2199 cat >&5 <<_ACEOF
2200
2201
2202 ## ----------- ##
2203 ## Core tests. ##
2204 ## ----------- ##
2205
2206 _ACEOF
2207
2208
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2214 ac_configure_args=
2215 ac_configure_args0=
2216 ac_configure_args1=
2217 ac_must_keep_next=false
2218 for ac_pass in 1 2
2219 do
2220 for ac_arg
2221 do
2222 case $ac_arg in
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2226 continue ;;
2227 *\'*)
2228 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 esac
2230 case $ac_pass in
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232 2)
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2236 else
2237 case $ac_arg in
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 esac
2245 ;;
2246 -* ) ac_must_keep_next=true ;;
2247 esac
2248 fi
2249 as_fn_append ac_configure_args " '$ac_arg'"
2250 ;;
2251 esac
2252 done
2253 done
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2256
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Sanitize IFS.
2264 IFS=" "" $as_nl"
2265 # Save into config.log some information that might help in debugging.
2266 {
2267 echo
2268
2269 printf "%s\n" "## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##"
2272 echo
2273 # The following way of writing the cache mishandles newlines in values,
2274 (
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2277 case $ac_val in #(
2278 *${as_nl}*)
2279 case $ac_var in #(
2280 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 esac
2283 case $ac_var in #(
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2287 esac ;;
2288 esac
2289 done
2290 (set) 2>&1 |
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2293 sed -n \
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 ;; #(
2297 *)
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299 ;;
2300 esac |
2301 sort
2302 )
2303 echo
2304
2305 printf "%s\n" "## ----------------- ##
2306 ## Output variables. ##
2307 ## ----------------- ##"
2308 echo
2309 for ac_var in $ac_subst_vars
2310 do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 printf "%s\n" "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2318
2319 if test -n "$ac_subst_files"; then
2320 printf "%s\n" "## ------------------- ##
2321 ## File substitutions. ##
2322 ## ------------------- ##"
2323 echo
2324 for ac_var in $ac_subst_files
2325 do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 printf "%s\n" "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2333 fi
2334
2335 if test -s confdefs.h; then
2336 printf "%s\n" "## ----------- ##
2337 ## confdefs.h. ##
2338 ## ----------- ##"
2339 echo
2340 cat confdefs.h
2341 echo
2342 fi
2343 test "$ac_signal" != 0 &&
2344 printf "%s\n" "$as_me: caught signal $ac_signal"
2345 printf "%s\n" "$as_me: exit $exit_status"
2346 } >&5
2347 rm -f core *.core core.conftest.* &&
2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349 exit $exit_status
2350 ' 0
2351 for ac_signal in 1 2 13 15; do
2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2353 done
2354 ac_signal=0
2355
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest* confdefs.h
2358
2359 printf "%s\n" "/* confdefs.h */" > confdefs.h
2360
2361 # Predefined preprocessor variables.
2362
2363 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2364
2365 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2366
2367 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2368
2369 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2370
2371 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2372
2373 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2374
2375
2376 # Let the site file select an alternate cache file if it wants to.
2377 # Prefer an explicitly selected file to automatically selected ones.
2378 if test -n "$CONFIG_SITE"; then
2379 ac_site_files="$CONFIG_SITE"
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2382 else
2383 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2384 fi
2385
2386 for ac_site_file in $ac_site_files
2387 do
2388 case $ac_site_file in #(
2389 */*) :
2390 ;; #(
2391 *) :
2392 ac_site_file=./$ac_site_file ;;
2393 esac
2394 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2398 . "$ac_site_file" \
2399 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "failed to load site script $ac_site_file
2402 See \`config.log' for more details" "$LINENO" 5; }
2403 fi
2404 done
2405
2406 if test -r "$cache_file"; then
2407 # Some versions of bash will fail to source /dev/null (special files
2408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2412 case $cache_file in
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
2415 esac
2416 fi
2417 else
2418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2420 >$cache_file
2421 fi
2422
2423 # Test code for whether the C++ compiler supports C++98 (global declarations)
2424 ac_cxx_conftest_cxx98_globals='
2425 // Does the compiler advertise C++98 conformance?
2426 #if !defined __cplusplus || __cplusplus < 199711L
2427 # error "Compiler does not advertise C++98 conformance"
2428 #endif
2429
2430 // These inclusions are to reject old compilers that
2431 // lack the unsuffixed header files.
2432 #include <cstdlib>
2433 #include <exception>
2434
2435 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2436 extern void assert (int);
2437 namespace std {
2438 extern int strcmp (const char *, const char *);
2439 }
2440
2441 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2442 using std::exception;
2443 using std::strcmp;
2444
2445 namespace {
2446
2447 void test_exception_syntax()
2448 {
2449 try {
2450 throw "test";
2451 } catch (const char *s) {
2452 // Extra parentheses suppress a warning when building autoconf itself,
2453 // due to lint rules shared with more typical C programs.
2454 assert (!(strcmp) (s, "test"));
2455 }
2456 }
2457
2458 template <typename T> struct test_template
2459 {
2460 T const val;
2461 explicit test_template(T t) : val(t) {}
2462 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2463 };
2464
2465 } // anonymous namespace
2466 '
2467
2468 # Test code for whether the C++ compiler supports C++98 (body of main)
2469 ac_cxx_conftest_cxx98_main='
2470 assert (argc);
2471 assert (! argv[0]);
2472 {
2473 test_exception_syntax ();
2474 test_template<double> tt (2.0);
2475 assert (tt.add (4) == 6.0);
2476 assert (true && !false);
2477 }
2478 '
2479
2480 # Test code for whether the C++ compiler supports C++11 (global declarations)
2481 ac_cxx_conftest_cxx11_globals='
2482 // Does the compiler advertise C++ 2011 conformance?
2483 #if !defined __cplusplus || __cplusplus < 201103L
2484 # error "Compiler does not advertise C++11 conformance"
2485 #endif
2486
2487 namespace cxx11test
2488 {
2489 constexpr int get_val() { return 20; }
2490
2491 struct testinit
2492 {
2493 int i;
2494 double d;
2495 };
2496
2497 class delegate
2498 {
2499 public:
2500 delegate(int n) : n(n) {}
2501 delegate(): delegate(2354) {}
2502
2503 virtual int getval() { return this->n; };
2504 protected:
2505 int n;
2506 };
2507
2508 class overridden : public delegate
2509 {
2510 public:
2511 overridden(int n): delegate(n) {}
2512 virtual int getval() override final { return this->n * 2; }
2513 };
2514
2515 class nocopy
2516 {
2517 public:
2518 nocopy(int i): i(i) {}
2519 nocopy() = default;
2520 nocopy(const nocopy&) = delete;
2521 nocopy & operator=(const nocopy&) = delete;
2522 private:
2523 int i;
2524 };
2525
2526 // for testing lambda expressions
2527 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2528 {
2529 return f(v);
2530 }
2531
2532 // for testing variadic templates and trailing return types
2533 template <typename V> auto sum(V first) -> V
2534 {
2535 return first;
2536 }
2537 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2538 {
2539 return first + sum(rest...);
2540 }
2541 }
2542 '
2543
2544 # Test code for whether the C++ compiler supports C++11 (body of main)
2545 ac_cxx_conftest_cxx11_main='
2546 {
2547 // Test auto and decltype
2548 auto a1 = 6538;
2549 auto a2 = 48573953.4;
2550 auto a3 = "String literal";
2551
2552 int total = 0;
2553 for (auto i = a3; *i; ++i) { total += *i; }
2554
2555 decltype(a2) a4 = 34895.034;
2556 }
2557 {
2558 // Test constexpr
2559 short sa[cxx11test::get_val()] = { 0 };
2560 }
2561 {
2562 // Test initializer lists
2563 cxx11test::testinit il = { 4323, 435234.23544 };
2564 }
2565 {
2566 // Test range-based for
2567 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2568 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2569 for (auto &x : array) { x += 23; }
2570 }
2571 {
2572 // Test lambda expressions
2573 using cxx11test::eval;
2574 assert (eval ([](int x) { return x*2; }, 21) == 42);
2575 double d = 2.0;
2576 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2577 assert (d == 5.0);
2578 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2579 assert (d == 5.0);
2580 }
2581 {
2582 // Test use of variadic templates
2583 using cxx11test::sum;
2584 auto a = sum(1);
2585 auto b = sum(1, 2);
2586 auto c = sum(1.0, 2.0, 3.0);
2587 }
2588 {
2589 // Test constructor delegation
2590 cxx11test::delegate d1;
2591 cxx11test::delegate d2();
2592 cxx11test::delegate d3(45);
2593 }
2594 {
2595 // Test override and final
2596 cxx11test::overridden o1(55464);
2597 }
2598 {
2599 // Test nullptr
2600 char *c = nullptr;
2601 }
2602 {
2603 // Test template brackets
2604 test_template<::test_template<int>> v(test_template<int>(12));
2605 }
2606 {
2607 // Unicode literals
2608 char const *utf8 = u8"UTF-8 string \u2500";
2609 char16_t const *utf16 = u"UTF-8 string \u2500";
2610 char32_t const *utf32 = U"UTF-32 string \u2500";
2611 }
2612 '
2613
2614 # Test code for whether the C compiler supports C++11 (complete).
2615 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2616 ${ac_cxx_conftest_cxx11_globals}
2617
2618 int
2619 main (int argc, char **argv)
2620 {
2621 int ok = 0;
2622 ${ac_cxx_conftest_cxx98_main}
2623 ${ac_cxx_conftest_cxx11_main}
2624 return ok;
2625 }
2626 "
2627
2628 # Test code for whether the C compiler supports C++98 (complete).
2629 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2630 int
2631 main (int argc, char **argv)
2632 {
2633 int ok = 0;
2634 ${ac_cxx_conftest_cxx98_main}
2635 return ok;
2636 }
2637 "
2638
2639 # Test code for whether the C compiler supports C89 (global declarations)
2640 ac_c_conftest_c89_globals='
2641 /* Does the compiler advertise C89 conformance?
2642 Do not test the value of __STDC__, because some compilers set it to 0
2643 while being otherwise adequately conformant. */
2644 #if !defined __STDC__
2645 # error "Compiler does not advertise C89 conformance"
2646 #endif
2647
2648 #include <stddef.h>
2649 #include <stdarg.h>
2650 struct stat;
2651 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2652 struct buf { int x; };
2653 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2654 static char *e (p, i)
2655 char **p;
2656 int i;
2657 {
2658 return p[i];
2659 }
2660 static char *f (char * (*g) (char **, int), char **p, ...)
2661 {
2662 char *s;
2663 va_list v;
2664 va_start (v,p);
2665 s = g (p, va_arg (v,int));
2666 va_end (v);
2667 return s;
2668 }
2669
2670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2671 function prototypes and stuff, but not \xHH hex character constants.
2672 These do not provoke an error unfortunately, instead are silently treated
2673 as an "x". The following induces an error, until -std is added to get
2674 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2675 array size at least. It is necessary to write \x00 == 0 to get something
2676 that is true only with -std. */
2677 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2678
2679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2680 inside strings and character constants. */
2681 #define FOO(x) '\''x'\''
2682 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2683
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2688 int, int);'
2689
2690 # Test code for whether the C compiler supports C89 (body of main).
2691 ac_c_conftest_c89_main='
2692 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2693 '
2694
2695 # Test code for whether the C compiler supports C99 (global declarations)
2696 ac_c_conftest_c99_globals='
2697 // Does the compiler advertise C99 conformance?
2698 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2699 # error "Compiler does not advertise C99 conformance"
2700 #endif
2701
2702 #include <stdbool.h>
2703 extern int puts (const char *);
2704 extern int printf (const char *, ...);
2705 extern int dprintf (int, const char *, ...);
2706 extern void *malloc (size_t);
2707
2708 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2709 // dprintf is used instead of fprintf to avoid needing to declare
2710 // FILE and stderr.
2711 #define debug(...) dprintf (2, __VA_ARGS__)
2712 #define showlist(...) puts (#__VA_ARGS__)
2713 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2714 static void
2715 test_varargs_macros (void)
2716 {
2717 int x = 1234;
2718 int y = 5678;
2719 debug ("Flag");
2720 debug ("X = %d\n", x);
2721 showlist (The first, second, and third items.);
2722 report (x>y, "x is %d but y is %d", x, y);
2723 }
2724
2725 // Check long long types.
2726 #define BIG64 18446744073709551615ull
2727 #define BIG32 4294967295ul
2728 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2729 #if !BIG_OK
2730 #error "your preprocessor is broken"
2731 #endif
2732 #if BIG_OK
2733 #else
2734 #error "your preprocessor is broken"
2735 #endif
2736 static long long int bignum = -9223372036854775807LL;
2737 static unsigned long long int ubignum = BIG64;
2738
2739 struct incomplete_array
2740 {
2741 int datasize;
2742 double data[];
2743 };
2744
2745 struct named_init {
2746 int number;
2747 const wchar_t *name;
2748 double average;
2749 };
2750
2751 typedef const char *ccp;
2752
2753 static inline int
2754 test_restrict (ccp restrict text)
2755 {
2756 // See if C++-style comments work.
2757 // Iterate through items via the restricted pointer.
2758 // Also check for declarations in for loops.
2759 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2760 continue;
2761 return 0;
2762 }
2763
2764 // Check varargs and va_copy.
2765 static bool
2766 test_varargs (const char *format, ...)
2767 {
2768 va_list args;
2769 va_start (args, format);
2770 va_list args_copy;
2771 va_copy (args_copy, args);
2772
2773 const char *str = "";
2774 int number = 0;
2775 float fnumber = 0;
2776
2777 while (*format)
2778 {
2779 switch (*format++)
2780 {
2781 case '\''s'\'': // string
2782 str = va_arg (args_copy, const char *);
2783 break;
2784 case '\''d'\'': // int
2785 number = va_arg (args_copy, int);
2786 break;
2787 case '\''f'\'': // float
2788 fnumber = va_arg (args_copy, double);
2789 break;
2790 default:
2791 break;
2792 }
2793 }
2794 va_end (args_copy);
2795 va_end (args);
2796
2797 return *str && number && fnumber;
2798 }
2799 '
2800
2801 # Test code for whether the C compiler supports C99 (body of main).
2802 ac_c_conftest_c99_main='
2803 // Check bool.
2804 _Bool success = false;
2805 success |= (argc != 0);
2806
2807 // Check restrict.
2808 if (test_restrict ("String literal") == 0)
2809 success = true;
2810 char *restrict newvar = "Another string";
2811
2812 // Check varargs.
2813 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2814 test_varargs_macros ();
2815
2816 // Check flexible array members.
2817 struct incomplete_array *ia =
2818 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2819 ia->datasize = 10;
2820 for (int i = 0; i < ia->datasize; ++i)
2821 ia->data[i] = i * 1.234;
2822
2823 // Check named initializers.
2824 struct named_init ni = {
2825 .number = 34,
2826 .name = L"Test wide string",
2827 .average = 543.34343,
2828 };
2829
2830 ni.number = 58;
2831
2832 int dynamic_array[ni.number];
2833 dynamic_array[0] = argv[0][0];
2834 dynamic_array[ni.number - 1] = 543;
2835
2836 // work around unused variable warnings
2837 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2838 || dynamic_array[ni.number - 1] != 543);
2839 '
2840
2841 # Test code for whether the C compiler supports C11 (global declarations)
2842 ac_c_conftest_c11_globals='
2843 // Does the compiler advertise C11 conformance?
2844 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2845 # error "Compiler does not advertise C11 conformance"
2846 #endif
2847
2848 // Check _Alignas.
2849 char _Alignas (double) aligned_as_double;
2850 char _Alignas (0) no_special_alignment;
2851 extern char aligned_as_int;
2852 char _Alignas (0) _Alignas (int) aligned_as_int;
2853
2854 // Check _Alignof.
2855 enum
2856 {
2857 int_alignment = _Alignof (int),
2858 int_array_alignment = _Alignof (int[100]),
2859 char_alignment = _Alignof (char)
2860 };
2861 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2862
2863 // Check _Noreturn.
2864 int _Noreturn does_not_return (void) { for (;;) continue; }
2865
2866 // Check _Static_assert.
2867 struct test_static_assert
2868 {
2869 int x;
2870 _Static_assert (sizeof (int) <= sizeof (long int),
2871 "_Static_assert does not work in struct");
2872 long int y;
2873 };
2874
2875 // Check UTF-8 literals.
2876 #define u8 syntax error!
2877 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2878
2879 // Check duplicate typedefs.
2880 typedef long *long_ptr;
2881 typedef long int *long_ptr;
2882 typedef long_ptr long_ptr;
2883
2884 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2885 struct anonymous
2886 {
2887 union {
2888 struct { int i; int j; };
2889 struct { int k; long int l; } w;
2890 };
2891 int m;
2892 } v1;
2893 '
2894
2895 # Test code for whether the C compiler supports C11 (body of main).
2896 ac_c_conftest_c11_main='
2897 _Static_assert ((offsetof (struct anonymous, i)
2898 == offsetof (struct anonymous, w.k)),
2899 "Anonymous union alignment botch");
2900 v1.i = 2;
2901 v1.w.k = 5;
2902 ok |= v1.i != 5;
2903 '
2904
2905 # Test code for whether the C compiler supports C11 (complete).
2906 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2907 ${ac_c_conftest_c99_globals}
2908 ${ac_c_conftest_c11_globals}
2909
2910 int
2911 main (int argc, char **argv)
2912 {
2913 int ok = 0;
2914 ${ac_c_conftest_c89_main}
2915 ${ac_c_conftest_c99_main}
2916 ${ac_c_conftest_c11_main}
2917 return ok;
2918 }
2919 "
2920
2921 # Test code for whether the C compiler supports C99 (complete).
2922 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2923 ${ac_c_conftest_c99_globals}
2924
2925 int
2926 main (int argc, char **argv)
2927 {
2928 int ok = 0;
2929 ${ac_c_conftest_c89_main}
2930 ${ac_c_conftest_c99_main}
2931 return ok;
2932 }
2933 "
2934
2935 # Test code for whether the C compiler supports C89 (complete).
2936 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2937
2938 int
2939 main (int argc, char **argv)
2940 {
2941 int ok = 0;
2942 ${ac_c_conftest_c89_main}
2943 return ok;
2944 }
2945 "
2946
2947 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2948 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2949 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2950 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2951 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2952 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2953 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2954 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2955 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2956
2957 # Auxiliary files required by this configure script.
2958 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2959
2960 # Locations in which to look for auxiliary files.
2961 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2962
2963 # Search for a directory containing all of the required auxiliary files,
2964 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2965 # If we don't find one directory that contains all the files we need,
2966 # we report the set of missing files from the *first* directory in
2967 # $ac_aux_dir_candidates and give up.
2968 ac_missing_aux_files=""
2969 ac_first_candidate=:
2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 as_found=false
2973 for as_dir in $ac_aux_dir_candidates
2974 do
2975 IFS=$as_save_IFS
2976 case $as_dir in #(((
2977 '') as_dir=./ ;;
2978 */) ;;
2979 *) as_dir=$as_dir/ ;;
2980 esac
2981 as_found=:
2982
2983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2984 ac_aux_dir_found=yes
2985 ac_install_sh=
2986 for ac_aux in $ac_aux_files
2987 do
2988 # As a special case, if "install-sh" is required, that requirement
2989 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2990 # and $ac_install_sh is set appropriately for whichever one is found.
2991 if test x"$ac_aux" = x"install-sh"
2992 then
2993 if test -f "${as_dir}install-sh"; then
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2995 ac_install_sh="${as_dir}install-sh -c"
2996 elif test -f "${as_dir}install.sh"; then
2997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2998 ac_install_sh="${as_dir}install.sh -c"
2999 elif test -f "${as_dir}shtool"; then
3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3001 ac_install_sh="${as_dir}shtool install -c"
3002 else
3003 ac_aux_dir_found=no
3004 if $ac_first_candidate; then
3005 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3006 else
3007 break
3008 fi
3009 fi
3010 else
3011 if test -f "${as_dir}${ac_aux}"; then
3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3013 else
3014 ac_aux_dir_found=no
3015 if $ac_first_candidate; then
3016 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3017 else
3018 break
3019 fi
3020 fi
3021 fi
3022 done
3023 if test "$ac_aux_dir_found" = yes; then
3024 ac_aux_dir="$as_dir"
3025 break
3026 fi
3027 ac_first_candidate=false
3028
3029 as_found=false
3030 done
3031 IFS=$as_save_IFS
3032 if $as_found
3033 then :
3034
3035 else $as_nop
3036 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3037 fi
3038
3039
3040 # These three variables are undocumented and unsupported,
3041 # and are intended to be withdrawn in a future Autoconf release.
3042 # They can cause serious problems if a builder's source tree is in a directory
3043 # whose full name contains unusual characters.
3044 if test -f "${ac_aux_dir}config.guess"; then
3045 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3046 fi
3047 if test -f "${ac_aux_dir}config.sub"; then
3048 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3049 fi
3050 if test -f "$ac_aux_dir/configure"; then
3051 ac_configure="$SHELL ${ac_aux_dir}configure"
3052 fi
3053
3054 # Check that the precious variables saved in the cache have kept the same
3055 # value.
3056 ac_cache_corrupted=false
3057 for ac_var in $ac_precious_vars; do
3058 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3059 eval ac_new_set=\$ac_env_${ac_var}_set
3060 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3061 eval ac_new_val=\$ac_env_${ac_var}_value
3062 case $ac_old_set,$ac_new_set in
3063 set,)
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3065 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3066 ac_cache_corrupted=: ;;
3067 ,set)
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3069 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3070 ac_cache_corrupted=: ;;
3071 ,);;
3072 *)
3073 if test "x$ac_old_val" != "x$ac_new_val"; then
3074 # differences in whitespace do not lead to failure.
3075 ac_old_val_w=`echo x $ac_old_val`
3076 ac_new_val_w=`echo x $ac_new_val`
3077 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3079 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3080 ac_cache_corrupted=:
3081 else
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3083 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3084 eval $ac_var=\$ac_old_val
3085 fi
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3087 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3089 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3090 fi;;
3091 esac
3092 # Pass precious variables to config.status.
3093 if test "$ac_new_set" = set; then
3094 case $ac_new_val in
3095 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3096 *) ac_arg=$ac_var=$ac_new_val ;;
3097 esac
3098 case " $ac_configure_args " in
3099 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3100 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3101 esac
3102 fi
3103 done
3104 if $ac_cache_corrupted; then
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3108 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3109 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3110 and start over" "$LINENO" 5
3111 fi
3112 ## -------------------- ##
3113 ## Main body of script. ##
3114 ## -------------------- ##
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122
3123
3124 ac_config_headers="$ac_config_headers config.h"
3125
3126 am__api_version='1.16'
3127
3128
3129
3130 # Find a good install program. We prefer a C program (faster),
3131 # so one script is as good as another. But avoid the broken or
3132 # incompatible versions:
3133 # SysV /etc/install, /usr/sbin/install
3134 # SunOS /usr/etc/install
3135 # IRIX /sbin/install
3136 # AIX /bin/install
3137 # AmigaOS /C/install, which installs bootblocks on floppy discs
3138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3141 # OS/2's system install, which has a completely different semantic
3142 # ./install, which can be erroneously created by make from ./install.sh.
3143 # Reject install programs that cannot install multiple files.
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3145 printf %s "checking for a BSD-compatible install... " >&6; }
3146 if test -z "$INSTALL"; then
3147 if test ${ac_cv_path_install+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 case $as_dir in #(((
3156 '') as_dir=./ ;;
3157 */) ;;
3158 *) as_dir=$as_dir/ ;;
3159 esac
3160 # Account for fact that we put trailing slashes in our PATH walk.
3161 case $as_dir in #((
3162 ./ | /[cC]/* | \
3163 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3164 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3165 /usr/ucb/* ) ;;
3166 *)
3167 # OSF1 and SCO ODT 3.0 have their own names for install.
3168 # Don't use installbsd from OSF since it installs stuff as root
3169 # by default.
3170 for ac_prog in ginstall scoinst install; do
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3173 if test $ac_prog = install &&
3174 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3175 # AIX install. It has an incompatible calling convention.
3176 :
3177 elif test $ac_prog = install &&
3178 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3179 # program-specific install script used by HP pwplus--don't use.
3180 :
3181 else
3182 rm -rf conftest.one conftest.two conftest.dir
3183 echo one > conftest.one
3184 echo two > conftest.two
3185 mkdir conftest.dir
3186 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3187 test -s conftest.one && test -s conftest.two &&
3188 test -s conftest.dir/conftest.one &&
3189 test -s conftest.dir/conftest.two
3190 then
3191 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3192 break 3
3193 fi
3194 fi
3195 fi
3196 done
3197 done
3198 ;;
3199 esac
3200
3201 done
3202 IFS=$as_save_IFS
3203
3204 rm -rf conftest.one conftest.two conftest.dir
3205
3206 fi
3207 if test ${ac_cv_path_install+y}; then
3208 INSTALL=$ac_cv_path_install
3209 else
3210 # As a last resort, use the slow shell script. Don't cache a
3211 # value for INSTALL within a source directory, because that will
3212 # break other packages using the cache if that directory is
3213 # removed, or if the value is a relative name.
3214 INSTALL=$ac_install_sh
3215 fi
3216 fi
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3218 printf "%s\n" "$INSTALL" >&6; }
3219
3220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3221 # It thinks the first close brace ends the variable substitution.
3222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3223
3224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3225
3226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3227
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3229 printf %s "checking whether build environment is sane... " >&6; }
3230 # Reject unsafe characters in $srcdir or the absolute working directory
3231 # name. Accept space and tab only in the latter.
3232 am_lf='
3233 '
3234 case `pwd` in
3235 *[\\\"\#\$\&\'\`$am_lf]*)
3236 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3237 esac
3238 case $srcdir in
3239 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3240 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3241 esac
3242
3243 # Do 'set' in a subshell so we don't clobber the current shell's
3244 # arguments. Must try -L first in case configure is actually a
3245 # symlink; some systems play weird games with the mod time of symlinks
3246 # (eg FreeBSD returns the mod time of the symlink's containing
3247 # directory).
3248 if (
3249 am_has_slept=no
3250 for am_try in 1 2; do
3251 echo "timestamp, slept: $am_has_slept" > conftest.file
3252 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3253 if test "$*" = "X"; then
3254 # -L didn't work.
3255 set X `ls -t "$srcdir/configure" conftest.file`
3256 fi
3257 if test "$*" != "X $srcdir/configure conftest.file" \
3258 && test "$*" != "X conftest.file $srcdir/configure"; then
3259
3260 # If neither matched, then we have a broken ls. This can happen
3261 # if, for instance, CONFIG_SHELL is bash and it inherits a
3262 # broken ls alias from the environment. This has actually
3263 # happened. Such a system could not be considered "sane".
3264 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3265 alias in your environment" "$LINENO" 5
3266 fi
3267 if test "$2" = conftest.file || test $am_try -eq 2; then
3268 break
3269 fi
3270 # Just in case.
3271 sleep 1
3272 am_has_slept=yes
3273 done
3274 test "$2" = conftest.file
3275 )
3276 then
3277 # Ok.
3278 :
3279 else
3280 as_fn_error $? "newly created file is older than distributed files!
3281 Check your system clock" "$LINENO" 5
3282 fi
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 printf "%s\n" "yes" >&6; }
3285 # If we didn't sleep, we still need to ensure time stamps of config.status and
3286 # generated files are strictly newer.
3287 am_sleep_pid=
3288 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3289 ( sleep 1 ) &
3290 am_sleep_pid=$!
3291 fi
3292
3293 rm -f conftest.file
3294
3295 test "$program_prefix" != NONE &&
3296 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3297 # Use a double $ so make ignores it.
3298 test "$program_suffix" != NONE &&
3299 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3300 # Double any \ or $.
3301 # By default was `s,x,x', remove it if useless.
3302 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3303 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3304
3305
3306 # Expand $ac_aux_dir to an absolute path.
3307 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3308
3309
3310 if test x"${MISSING+set}" != xset; then
3311 MISSING="\${SHELL} '$am_aux_dir/missing'"
3312 fi
3313 # Use eval to expand $SHELL
3314 if eval "$MISSING --is-lightweight"; then
3315 am_missing_run="$MISSING "
3316 else
3317 am_missing_run=
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3319 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3320 fi
3321
3322 if test x"${install_sh+set}" != xset; then
3323 case $am_aux_dir in
3324 *\ * | *\ *)
3325 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3326 *)
3327 install_sh="\${SHELL} $am_aux_dir/install-sh"
3328 esac
3329 fi
3330
3331 # Installed binaries are usually stripped using 'strip' when the user
3332 # run "make install-strip". However 'strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the 'STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 printf %s "checking for $ac_word... " >&6; }
3341 if test ${ac_cv_prog_STRIP+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else $as_nop
3345 if test -n "$STRIP"; then
3346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 case $as_dir in #(((
3353 '') as_dir=./ ;;
3354 */) ;;
3355 *) as_dir=$as_dir/ ;;
3356 esac
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 STRIP=$ac_cv_prog_STRIP
3370 if test -n "$STRIP"; then
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3372 printf "%s\n" "$STRIP" >&6; }
3373 else
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 printf "%s\n" "no" >&6; }
3376 fi
3377
3378
3379 fi
3380 if test -z "$ac_cv_prog_STRIP"; then
3381 ac_ct_STRIP=$STRIP
3382 # Extract the first word of "strip", so it can be a program name with args.
3383 set dummy strip; ac_word=$2
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 printf %s "checking for $ac_word... " >&6; }
3386 if test ${ac_cv_prog_ac_ct_STRIP+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 if test -n "$ac_ct_STRIP"; then
3391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 case $as_dir in #(((
3398 '') as_dir=./ ;;
3399 */) ;;
3400 *) as_dir=$as_dir/ ;;
3401 esac
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_ac_ct_STRIP="strip"
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3415 if test -n "$ac_ct_STRIP"; then
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3417 printf "%s\n" "$ac_ct_STRIP" >&6; }
3418 else
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 printf "%s\n" "no" >&6; }
3421 fi
3422
3423 if test "x$ac_ct_STRIP" = x; then
3424 STRIP=":"
3425 else
3426 case $cross_compiling:$ac_tool_warned in
3427 yes:)
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432 STRIP=$ac_ct_STRIP
3433 fi
3434 else
3435 STRIP="$ac_cv_prog_STRIP"
3436 fi
3437
3438 fi
3439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3440
3441
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3443 printf %s "checking for a race-free mkdir -p... " >&6; }
3444 if test -z "$MKDIR_P"; then
3445 if test ${ac_cv_path_mkdir+y}
3446 then :
3447 printf %s "(cached) " >&6
3448 else $as_nop
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3451 do
3452 IFS=$as_save_IFS
3453 case $as_dir in #(((
3454 '') as_dir=./ ;;
3455 */) ;;
3456 *) as_dir=$as_dir/ ;;
3457 esac
3458 for ac_prog in mkdir gmkdir; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3461 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3462 'mkdir ('*'coreutils) '* | \
3463 'BusyBox '* | \
3464 'mkdir (fileutils) '4.1*)
3465 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3466 break 3;;
3467 esac
3468 done
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474
3475 test -d ./--version && rmdir ./--version
3476 if test ${ac_cv_path_mkdir+y}; then
3477 MKDIR_P="$ac_cv_path_mkdir -p"
3478 else
3479 # As a last resort, use the slow shell script. Don't cache a
3480 # value for MKDIR_P within a source directory, because that will
3481 # break other packages using the cache if that directory is
3482 # removed, or if the value is a relative name.
3483 MKDIR_P="$ac_install_sh -d"
3484 fi
3485 fi
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3487 printf "%s\n" "$MKDIR_P" >&6; }
3488
3489 for ac_prog in gawk mawk nawk awk
3490 do
3491 # Extract the first word of "$ac_prog", so it can be a program name with args.
3492 set dummy $ac_prog; ac_word=$2
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 printf %s "checking for $ac_word... " >&6; }
3495 if test ${ac_cv_prog_AWK+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 if test -n "$AWK"; then
3500 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_AWK="$ac_prog"
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 AWK=$ac_cv_prog_AWK
3524 if test -n "$AWK"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3526 printf "%s\n" "$AWK" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 test -n "$AWK" && break
3534 done
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3537 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3538 set x ${MAKE-make}
3539 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3540 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else $as_nop
3544 cat >conftest.make <<\_ACEOF
3545 SHELL = /bin/sh
3546 all:
3547 @echo '@@@%%%=$(MAKE)=@@@%%%'
3548 _ACEOF
3549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3551 *@@@%%%=?*=@@@%%%*)
3552 eval ac_cv_prog_make_${ac_make}_set=yes;;
3553 *)
3554 eval ac_cv_prog_make_${ac_make}_set=no;;
3555 esac
3556 rm -f conftest.make
3557 fi
3558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560 printf "%s\n" "yes" >&6; }
3561 SET_MAKE=
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 SET_MAKE="MAKE=${MAKE-make}"
3566 fi
3567
3568 rm -rf .tst 2>/dev/null
3569 mkdir .tst 2>/dev/null
3570 if test -d .tst; then
3571 am__leading_dot=.
3572 else
3573 am__leading_dot=_
3574 fi
3575 rmdir .tst 2>/dev/null
3576
3577 # Check whether --enable-silent-rules was given.
3578 if test ${enable_silent_rules+y}
3579 then :
3580 enableval=$enable_silent_rules;
3581 fi
3582
3583 case $enable_silent_rules in # (((
3584 yes) AM_DEFAULT_VERBOSITY=0;;
3585 no) AM_DEFAULT_VERBOSITY=1;;
3586 *) AM_DEFAULT_VERBOSITY=1;;
3587 esac
3588 am_make=${MAKE-make}
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3590 printf %s "checking whether $am_make supports nested variables... " >&6; }
3591 if test ${am_cv_make_support_nested_variables+y}
3592 then :
3593 printf %s "(cached) " >&6
3594 else $as_nop
3595 if printf "%s\n" 'TRUE=$(BAR$(V))
3596 BAR0=false
3597 BAR1=true
3598 V=1
3599 am__doit:
3600 @$(TRUE)
3601 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3602 am_cv_make_support_nested_variables=yes
3603 else
3604 am_cv_make_support_nested_variables=no
3605 fi
3606 fi
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3608 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3609 if test $am_cv_make_support_nested_variables = yes; then
3610 AM_V='$(V)'
3611 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3612 else
3613 AM_V=$AM_DEFAULT_VERBOSITY
3614 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3615 fi
3616 AM_BACKSLASH='\'
3617
3618 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3620 # is not polluted with repeated "-I."
3621 am__isrc=' -I$(srcdir)'
3622 # test to see if srcdir already configured
3623 if test -f $srcdir/config.status; then
3624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3625 fi
3626 fi
3627
3628 # test whether we have cygpath
3629 if test -z "$CYGPATH_W"; then
3630 if (cygpath --version) >/dev/null 2>/dev/null; then
3631 CYGPATH_W='cygpath -w'
3632 else
3633 CYGPATH_W=echo
3634 fi
3635 fi
3636
3637
3638 # Define the identity of the package.
3639 PACKAGE='libmwaw'
3640 VERSION='0.3.22'
3641
3642
3643 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3644
3645
3646 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3647
3648 # Some tools Automake needs.
3649
3650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3651
3652
3653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3654
3655
3656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3657
3658
3659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3660
3661
3662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3663
3664 # For better backward compatibility. To be removed once Automake 1.9.x
3665 # dies out for good. For more background, see:
3666 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3667 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3668 mkdir_p='$(MKDIR_P)'
3669
3670 # We need awk for the "check" target (and possibly the TAP driver). The
3671 # system "awk" is bad on some platforms.
3672 # Always define AMTAR for backward compatibility. Yes, it's still used
3673 # in the wild :-( We should find a proper way to deprecate it ...
3674 AMTAR='$${TAR-tar}'
3675
3676
3677 # We'll loop over all known methods to create a tar archive until one works.
3678 _am_tools='gnutar pax cpio none'
3679
3680 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3681
3682
3683
3684
3685
3686 # Variables for tags utilities; see am/tags.am
3687 if test -z "$CTAGS"; then
3688 CTAGS=ctags
3689 fi
3690
3691 if test -z "$ETAGS"; then
3692 ETAGS=etags
3693 fi
3694
3695 if test -z "$CSCOPE"; then
3696 CSCOPE=cscope
3697 fi
3698
3699
3700
3701 # POSIX will say in a future version that running "rm -f" with no argument
3702 # is OK; and we want to be able to make that assumption in our Makefile
3703 # recipes. So use an aggressive probe to check that the usage we want is
3704 # actually supported "in the wild" to an acceptable degree.
3705 # See automake bug#10828.
3706 # To make any issue more visible, cause the running configure to be aborted
3707 # by default if the 'rm' program in use doesn't match our expectations; the
3708 # user can still override this though.
3709 if rm -f && rm -fr && rm -rf; then : OK; else
3710 cat >&2 <<'END'
3711 Oops!
3712
3713 Your 'rm' program seems unable to run without file operands specified
3714 on the command line, even when the '-f' option is present. This is contrary
3715 to the behaviour of most rm programs out there, and not conforming with
3716 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3717
3718 Please tell [email protected] about your system, including the value
3719 of your $PATH and any error possibly output before this message. This
3720 can help us improve future automake versions.
3721
3722 END
3723 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3724 echo 'Configuration will proceed anyway, since you have set the' >&2
3725 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3726 echo >&2
3727 else
3728 cat >&2 <<'END'
3729 Aborting the configuration process, to ensure you take notice of the issue.
3730
3731 You can download and install GNU coreutils to get an 'rm' implementation
3732 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3733
3734 If you want to complete the configuration process using your problematic
3735 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3736 to "yes", and re-run configure.
3737
3738 END
3739 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3740 fi
3741 fi
3742
3743 # Check whether --enable-silent-rules was given.
3744 if test ${enable_silent_rules+y}
3745 then :
3746 enableval=$enable_silent_rules;
3747 fi
3748
3749 case $enable_silent_rules in # (((
3750 yes) AM_DEFAULT_VERBOSITY=0;;
3751 no) AM_DEFAULT_VERBOSITY=1;;
3752 *) AM_DEFAULT_VERBOSITY=0;;
3753 esac
3754 am_make=${MAKE-make}
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3756 printf %s "checking whether $am_make supports nested variables... " >&6; }
3757 if test ${am_cv_make_support_nested_variables+y}
3758 then :
3759 printf %s "(cached) " >&6
3760 else $as_nop
3761 if printf "%s\n" 'TRUE=$(BAR$(V))
3762 BAR0=false
3763 BAR1=true
3764 V=1
3765 am__doit:
3766 @$(TRUE)
3767 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3768 am_cv_make_support_nested_variables=yes
3769 else
3770 am_cv_make_support_nested_variables=no
3771 fi
3772 fi
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3774 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3775 if test $am_cv_make_support_nested_variables = yes; then
3776 AM_V='$(V)'
3777 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3778 else
3779 AM_V=$AM_DEFAULT_VERBOSITY
3780 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3781 fi
3782 AM_BACKSLASH='\'
3783
3784 ac_ext=cpp
3785 ac_cpp='$CXXCPP $CPPFLAGS'
3786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3789
3790
3791
3792
3793
3794
3795
3796 DEPDIR="${am__leading_dot}deps"
3797
3798 ac_config_commands="$ac_config_commands depfiles"
3799
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3801 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3802 cat > confinc.mk << 'END'
3803 am__doit:
3804 @echo this is the am__doit target >confinc.out
3805 .PHONY: am__doit
3806 END
3807 am__include="#"
3808 am__quote=
3809 # BSD make does it like this.
3810 echo '.include "confinc.mk" # ignored' > confmf.BSD
3811 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3812 echo 'include confinc.mk # ignored' > confmf.GNU
3813 _am_result=no
3814 for s in GNU BSD; do
3815 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3816 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }
3820 case $?:`cat confinc.out 2>/dev/null` in #(
3821 '0:this is the am__doit target') :
3822 case $s in #(
3823 BSD) :
3824 am__include='.include' am__quote='"' ;; #(
3825 *) :
3826 am__include='include' am__quote='' ;;
3827 esac ;; #(
3828 *) :
3829 ;;
3830 esac
3831 if test "$am__include" != "#"; then
3832 _am_result="yes ($s style)"
3833 break
3834 fi
3835 done
3836 rm -f confinc.* confmf.*
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3838 printf "%s\n" "${_am_result}" >&6; }
3839
3840 # Check whether --enable-dependency-tracking was given.
3841 if test ${enable_dependency_tracking+y}
3842 then :
3843 enableval=$enable_dependency_tracking;
3844 fi
3845
3846 if test "x$enable_dependency_tracking" != xno; then
3847 am_depcomp="$ac_aux_dir/depcomp"
3848 AMDEPBACKSLASH='\'
3849 am__nodep='_no'
3850 fi
3851 if test "x$enable_dependency_tracking" != xno; then
3852 AMDEP_TRUE=
3853 AMDEP_FALSE='#'
3854 else
3855 AMDEP_TRUE='#'
3856 AMDEP_FALSE=
3857 fi
3858
3859
3860 ac_ext=cpp
3861 ac_cpp='$CXXCPP $CPPFLAGS'
3862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865 if test -z "$CXX"; then
3866 if test -n "$CCC"; then
3867 CXX=$CCC
3868 else
3869 if test -n "$ac_tool_prefix"; then
3870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3871 do
3872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3873 set dummy $ac_tool_prefix$ac_prog; 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_CXX+y}
3877 then :
3878 printf %s "(cached) " >&6
3879 else $as_nop
3880 if test -n "$CXX"; then
3881 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
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 CXX=$ac_cv_prog_CXX
3905 if test -n "$CXX"; then
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3907 printf "%s\n" "$CXX" >&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 test -n "$CXX" && break
3915 done
3916 fi
3917 if test -z "$CXX"; then
3918 ac_ct_CXX=$CXX
3919 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3920 do
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_ac_ct_CXX+y}
3926 then :
3927 printf %s "(cached) " >&6
3928 else $as_nop
3929 if test -n "$ac_ct_CXX"; then
3930 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 case $as_dir in #(((
3937 '') as_dir=./ ;;
3938 */) ;;
3939 *) as_dir=$as_dir/ ;;
3940 esac
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CXX="$ac_prog"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3954 if test -n "$ac_ct_CXX"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3956 printf "%s\n" "$ac_ct_CXX" >&6; }
3957 else
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963 test -n "$ac_ct_CXX" && break
3964 done
3965
3966 if test "x$ac_ct_CXX" = x; then
3967 CXX="g++"
3968 else
3969 case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975 CXX=$ac_ct_CXX
3976 fi
3977 fi
3978
3979 fi
3980 fi
3981 # Provide some information about the compiler.
3982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3983 set X $ac_compile
3984 ac_compiler=$2
3985 for ac_option in --version -v -V -qversion; do
3986 { { ac_try="$ac_compiler $ac_option >&5"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 printf "%s\n" "$ac_try_echo"; } >&5
3993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3994 ac_status=$?
3995 if test -s conftest.err; then
3996 sed '10a\
3997 ... rest of stderr output deleted ...
3998 10q' conftest.err >conftest.er1
3999 cat conftest.er1 >&5
4000 fi
4001 rm -f conftest.er1 conftest.err
4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4004 done
4005
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main (void)
4011 {
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 ac_clean_files_save=$ac_clean_files
4018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4019 # Try to create an executable without -o first, disregard a.out.
4020 # It will help us diagnose broken compilers, and finding out an intuition
4021 # of exeext.
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4023 printf %s "checking whether the C++ compiler works... " >&6; }
4024 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4025
4026 # The possible output files:
4027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4028
4029 ac_rmfiles=
4030 for ac_file in $ac_files
4031 do
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4035 esac
4036 done
4037 rm -f $ac_rmfiles
4038
4039 if { { ac_try="$ac_link_default"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 printf "%s\n" "$ac_try_echo"; } >&5
4046 (eval "$ac_link_default") 2>&5
4047 ac_status=$?
4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }
4050 then :
4051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4054 # so that the user can short-circuit this test for compilers unknown to
4055 # Autoconf.
4056 for ac_file in $ac_files ''
4057 do
4058 test -f "$ac_file" || continue
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4061 ;;
4062 [ab].out )
4063 # We found the default executable, but exeext='' is most
4064 # certainly right.
4065 break;;
4066 *.* )
4067 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4068 then :; else
4069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4070 fi
4071 # We set ac_cv_exeext here because the later test for it is not
4072 # safe: cross compilers may not add the suffix if given an `-o'
4073 # argument, so we may need to know it at that point already.
4074 # Even if this section looks crufty: it has the advantage of
4075 # actually working.
4076 break;;
4077 * )
4078 break;;
4079 esac
4080 done
4081 test "$ac_cv_exeext" = no && ac_cv_exeext=
4082
4083 else $as_nop
4084 ac_file=''
4085 fi
4086 if test -z "$ac_file"
4087 then :
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 printf "%s\n" "no" >&6; }
4090 printf "%s\n" "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error 77 "C++ compiler cannot create executables
4096 See \`config.log' for more details" "$LINENO" 5; }
4097 else $as_nop
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4099 printf "%s\n" "yes" >&6; }
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4102 printf %s "checking for C++ compiler default output file name... " >&6; }
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4104 printf "%s\n" "$ac_file" >&6; }
4105 ac_exeext=$ac_cv_exeext
4106
4107 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4108 ac_clean_files=$ac_clean_files_save
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4110 printf %s "checking for suffix of executables... " >&6; }
4111 if { { ac_try="$ac_link"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 printf "%s\n" "$ac_try_echo"; } >&5
4118 (eval "$ac_link") 2>&5
4119 ac_status=$?
4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }
4122 then :
4123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4125 # work properly (i.e., refer to `conftest.exe'), while it won't with
4126 # `rm'.
4127 for ac_file in conftest.exe conftest conftest.*; do
4128 test -f "$ac_file" || continue
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 break;;
4133 * ) break;;
4134 esac
4135 done
4136 else $as_nop
4137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4139 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4140 See \`config.log' for more details" "$LINENO" 5; }
4141 fi
4142 rm -f conftest conftest$ac_cv_exeext
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4144 printf "%s\n" "$ac_cv_exeext" >&6; }
4145
4146 rm -f conftest.$ac_ext
4147 EXEEXT=$ac_cv_exeext
4148 ac_exeext=$EXEEXT
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <stdio.h>
4152 int
4153 main (void)
4154 {
4155 FILE *f = fopen ("conftest.out", "w");
4156 return ferror (f) || fclose (f) != 0;
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 ac_clean_files="$ac_clean_files conftest.out"
4163 # Check that the compiler produces executables we can run. If not, either
4164 # the compiler is broken, or we cross compile.
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4166 printf %s "checking whether we are cross compiling... " >&6; }
4167 if test "$cross_compiling" != yes; then
4168 { { ac_try="$ac_link"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 printf "%s\n" "$ac_try_echo"; } >&5
4175 (eval "$ac_link") 2>&5
4176 ac_status=$?
4177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }
4179 if { ac_try='./conftest$ac_cv_exeext'
4180 { { case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 printf "%s\n" "$ac_try_echo"; } >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }; }; then
4190 cross_compiling=no
4191 else
4192 if test "$cross_compiling" = maybe; then
4193 cross_compiling=yes
4194 else
4195 { { 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 77 "cannot run C++ compiled programs.
4198 If you meant to cross compile, use \`--host'.
4199 See \`config.log' for more details" "$LINENO" 5; }
4200 fi
4201 fi
4202 fi
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4204 printf "%s\n" "$cross_compiling" >&6; }
4205
4206 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4207 ac_clean_files=$ac_clean_files_save
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4209 printf %s "checking for suffix of object files... " >&6; }
4210 if test ${ac_cv_objext+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main (void)
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.o conftest.obj
4226 if { { ac_try="$ac_compile"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 printf "%s\n" "$ac_try_echo"; } >&5
4233 (eval "$ac_compile") 2>&5
4234 ac_status=$?
4235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 then :
4238 for ac_file in conftest.o conftest.obj conftest.*; do
4239 test -f "$ac_file" || continue;
4240 case $ac_file in
4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4243 break;;
4244 esac
4245 done
4246 else $as_nop
4247 printf "%s\n" "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4252 as_fn_error $? "cannot compute suffix of object files: cannot compile
4253 See \`config.log' for more details" "$LINENO" 5; }
4254 fi
4255 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4256 fi
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4258 printf "%s\n" "$ac_cv_objext" >&6; }
4259 OBJEXT=$ac_cv_objext
4260 ac_objext=$OBJEXT
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4262 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4263 if test ${ac_cv_cxx_compiler_gnu+y}
4264 then :
4265 printf %s "(cached) " >&6
4266 else $as_nop
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269
4270 int
4271 main (void)
4272 {
4273 #ifndef __GNUC__
4274 choke me
4275 #endif
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_cxx_try_compile "$LINENO"
4282 then :
4283 ac_compiler_gnu=yes
4284 else $as_nop
4285 ac_compiler_gnu=no
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4289
4290 fi
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4292 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4294
4295 if test $ac_compiler_gnu = yes; then
4296 GXX=yes
4297 else
4298 GXX=
4299 fi
4300 ac_test_CXXFLAGS=${CXXFLAGS+y}
4301 ac_save_CXXFLAGS=$CXXFLAGS
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4303 printf %s "checking whether $CXX accepts -g... " >&6; }
4304 if test ${ac_cv_prog_cxx_g+y}
4305 then :
4306 printf %s "(cached) " >&6
4307 else $as_nop
4308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4309 ac_cxx_werror_flag=yes
4310 ac_cv_prog_cxx_g=no
4311 CXXFLAGS="-g"
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314
4315 int
4316 main (void)
4317 {
4318
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"
4324 then :
4325 ac_cv_prog_cxx_g=yes
4326 else $as_nop
4327 CXXFLAGS=""
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 int
4332 main (void)
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_cxx_try_compile "$LINENO"
4340 then :
4341
4342 else $as_nop
4343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4344 CXXFLAGS="-g"
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347
4348 int
4349 main (void)
4350 {
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_cxx_try_compile "$LINENO"
4357 then :
4358 ac_cv_prog_cxx_g=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4366 fi
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4368 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4369 if test $ac_test_CXXFLAGS; then
4370 CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372 if test "$GXX" = yes; then
4373 CXXFLAGS="-g -O2"
4374 else
4375 CXXFLAGS="-g"
4376 fi
4377 else
4378 if test "$GXX" = yes; then
4379 CXXFLAGS="-O2"
4380 else
4381 CXXFLAGS=
4382 fi
4383 fi
4384 ac_prog_cxx_stdcxx=no
4385 if test x$ac_prog_cxx_stdcxx = xno
4386 then :
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4388 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4389 if test ${ac_cv_prog_cxx_11+y}
4390 then :
4391 printf %s "(cached) " >&6
4392 else $as_nop
4393 ac_cv_prog_cxx_11=no
4394 ac_save_CXX=$CXX
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 $ac_cxx_conftest_cxx11_program
4398 _ACEOF
4399 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4400 do
4401 CXX="$ac_save_CXX $ac_arg"
4402 if ac_fn_cxx_try_compile "$LINENO"
4403 then :
4404 ac_cv_prog_cxx_cxx11=$ac_arg
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.beam
4407 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4408 done
4409 rm -f conftest.$ac_ext
4410 CXX=$ac_save_CXX
4411 fi
4412
4413 if test "x$ac_cv_prog_cxx_cxx11" = xno
4414 then :
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4416 printf "%s\n" "unsupported" >&6; }
4417 else $as_nop
4418 if test "x$ac_cv_prog_cxx_cxx11" = x
4419 then :
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4421 printf "%s\n" "none needed" >&6; }
4422 else $as_nop
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4424 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4425 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4426 fi
4427 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4428 ac_prog_cxx_stdcxx=cxx11
4429 fi
4430 fi
4431 if test x$ac_prog_cxx_stdcxx = xno
4432 then :
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4434 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4435 if test ${ac_cv_prog_cxx_98+y}
4436 then :
4437 printf %s "(cached) " >&6
4438 else $as_nop
4439 ac_cv_prog_cxx_98=no
4440 ac_save_CXX=$CXX
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 $ac_cxx_conftest_cxx98_program
4444 _ACEOF
4445 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4446 do
4447 CXX="$ac_save_CXX $ac_arg"
4448 if ac_fn_cxx_try_compile "$LINENO"
4449 then :
4450 ac_cv_prog_cxx_cxx98=$ac_arg
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.beam
4453 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4454 done
4455 rm -f conftest.$ac_ext
4456 CXX=$ac_save_CXX
4457 fi
4458
4459 if test "x$ac_cv_prog_cxx_cxx98" = xno
4460 then :
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4462 printf "%s\n" "unsupported" >&6; }
4463 else $as_nop
4464 if test "x$ac_cv_prog_cxx_cxx98" = x
4465 then :
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4467 printf "%s\n" "none needed" >&6; }
4468 else $as_nop
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4470 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4471 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4472 fi
4473 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4474 ac_prog_cxx_stdcxx=cxx98
4475 fi
4476 fi
4477
4478 ac_ext=cpp
4479 ac_cpp='$CXXCPP $CPPFLAGS'
4480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4483
4484 depcc="$CXX" am_compiler_list=
4485
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4487 printf %s "checking dependency style of $depcc... " >&6; }
4488 if test ${am_cv_CXX_dependencies_compiler_type+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else $as_nop
4492 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4493 # We make a subdir and do the tests there. Otherwise we can end up
4494 # making bogus files that we don't know about and never remove. For
4495 # instance it was reported that on HP-UX the gcc test will end up
4496 # making a dummy file named 'D' -- because '-MD' means "put the output
4497 # in D".
4498 rm -rf conftest.dir
4499 mkdir conftest.dir
4500 # Copy depcomp to subdir because otherwise we won't find it if we're
4501 # using a relative directory.
4502 cp "$am_depcomp" conftest.dir
4503 cd conftest.dir
4504 # We will build objects and dependencies in a subdirectory because
4505 # it helps to detect inapplicable dependency modes. For instance
4506 # both Tru64's cc and ICC support -MD to output dependencies as a
4507 # side effect of compilation, but ICC will put the dependencies in
4508 # the current directory while Tru64 will put them in the object
4509 # directory.
4510 mkdir sub
4511
4512 am_cv_CXX_dependencies_compiler_type=none
4513 if test "$am_compiler_list" = ""; then
4514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4515 fi
4516 am__universal=false
4517 case " $depcc " in #(
4518 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4519 esac
4520
4521 for depmode in $am_compiler_list; do
4522 # Setup a source with many dependencies, because some compilers
4523 # like to wrap large dependency lists on column 80 (with \), and
4524 # we should not choose a depcomp mode which is confused by this.
4525 #
4526 # We need to recreate these files for each test, as the compiler may
4527 # overwrite some of them when testing with obscure command lines.
4528 # This happens at least with the AIX C compiler.
4529 : > sub/conftest.c
4530 for i in 1 2 3 4 5 6; do
4531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4532 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4533 # Solaris 10 /bin/sh.
4534 echo '/* dummy */' > sub/conftst$i.h
4535 done
4536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4537
4538 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4539 # mode. It turns out that the SunPro C++ compiler does not properly
4540 # handle '-M -o', and we need to detect this. Also, some Intel
4541 # versions had trouble with output in subdirs.
4542 am__obj=sub/conftest.${OBJEXT-o}
4543 am__minus_obj="-o $am__obj"
4544 case $depmode in
4545 gcc)
4546 # This depmode causes a compiler race in universal mode.
4547 test "$am__universal" = false || continue
4548 ;;
4549 nosideeffect)
4550 # After this tag, mechanisms are not by side-effect, so they'll
4551 # only be used when explicitly requested.
4552 if test "x$enable_dependency_tracking" = xyes; then
4553 continue
4554 else
4555 break
4556 fi
4557 ;;
4558 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4559 # This compiler won't grok '-c -o', but also, the minuso test has
4560 # not run yet. These depmodes are late enough in the game, and
4561 # so weak that their functioning should not be impacted.
4562 am__obj=conftest.${OBJEXT-o}
4563 am__minus_obj=
4564 ;;
4565 none) break ;;
4566 esac
4567 if depmode=$depmode \
4568 source=sub/conftest.c object=$am__obj \
4569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4570 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4571 >/dev/null 2>conftest.err &&
4572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4574 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4576 # icc doesn't choke on unknown options, it will just issue warnings
4577 # or remarks (even with -Werror). So we grep stderr for any message
4578 # that says an option was ignored or not supported.
4579 # When given -MP, icc 7.0 and 7.1 complain thusly:
4580 # icc: Command line warning: ignoring option '-M'; no argument required
4581 # The diagnosis changed in icc 8.0:
4582 # icc: Command line remark: option '-MP' not supported
4583 if (grep 'ignoring option' conftest.err ||
4584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4585 am_cv_CXX_dependencies_compiler_type=$depmode
4586 break
4587 fi
4588 fi
4589 done
4590
4591 cd ..
4592 rm -rf conftest.dir
4593 else
4594 am_cv_CXX_dependencies_compiler_type=none
4595 fi
4596
4597 fi
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4599 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4600 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4601
4602 if
4603 test "x$enable_dependency_tracking" != xno \
4604 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4605 am__fastdepCXX_TRUE=
4606 am__fastdepCXX_FALSE='#'
4607 else
4608 am__fastdepCXX_TRUE='#'
4609 am__fastdepCXX_FALSE=
4610 fi
4611
4612
4613
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4615 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4616 if test ${ac_cv_struct_tm+y}
4617 then :
4618 printf %s "(cached) " >&6
4619 else $as_nop
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <sys/types.h>
4623 #include <time.h>
4624
4625 int
4626 main (void)
4627 {
4628 struct tm tm;
4629 int *p = &tm.tm_sec;
4630 return !p;
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_cxx_try_compile "$LINENO"
4636 then :
4637 ac_cv_struct_tm=time.h
4638 else $as_nop
4639 ac_cv_struct_tm=sys/time.h
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4642 fi
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4644 printf "%s\n" "$ac_cv_struct_tm" >&6; }
4645 if test $ac_cv_struct_tm = sys/time.h; then
4646
4647 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
4648
4649 fi
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
4652 printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
4653 if test ${ac_cv_cxx_undeclared_builtin_options+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 ac_save_CFLAGS=$CFLAGS
4658 ac_cv_cxx_undeclared_builtin_options='cannot detect'
4659 for ac_arg in '' -fno-builtin; do
4660 CFLAGS="$ac_save_CFLAGS $ac_arg"
4661 # This test program should *not* compile successfully.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main (void)
4667 {
4668 (void) strchr;
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_cxx_try_compile "$LINENO"
4674 then :
4675
4676 else $as_nop
4677 # This test program should compile successfully.
4678 # No library function is consistently available on
4679 # freestanding implementations, so test against a dummy
4680 # declaration. Include always-available headers on the
4681 # off chance that they somehow elicit warnings.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <float.h>
4685 #include <limits.h>
4686 #include <stdarg.h>
4687 #include <stddef.h>
4688 extern void ac_decl (int, char *);
4689
4690 int
4691 main (void)
4692 {
4693 (void) ac_decl (0, (char *) 0);
4694 (void) ac_decl;
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_cxx_try_compile "$LINENO"
4701 then :
4702 if test x"$ac_arg" = x
4703 then :
4704 ac_cv_cxx_undeclared_builtin_options='none needed'
4705 else $as_nop
4706 ac_cv_cxx_undeclared_builtin_options=$ac_arg
4707 fi
4708 break
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4711 fi
4712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4713 done
4714 CFLAGS=$ac_save_CFLAGS
4715
4716 fi
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
4718 printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
4719 case $ac_cv_cxx_undeclared_builtin_options in #(
4720 'cannot detect') :
4721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4723 as_fn_error $? "cannot make $CXX report undeclared builtins
4724 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4725 'none needed') :
4726 ac_cxx_undeclared_builtin_options='' ;; #(
4727 *) :
4728 ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
4729 esac
4730
4731 ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
4732 #include <$ac_cv_struct_tm>
4733
4734 "
4735 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
4736 then :
4737
4738 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
4739
4740
4741 fi
4742
4743 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4744
4745 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
4746
4747 else
4748 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
4749 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
4750 if test "x$ac_cv_have_decl_tzname" = xyes
4751 then :
4752 ac_have_decl=1
4753 else $as_nop
4754 ac_have_decl=0
4755 fi
4756 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
4757
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
4759 printf %s "checking for tzname... " >&6; }
4760 if test ${ac_cv_var_tzname+y}
4761 then :
4762 printf %s "(cached) " >&6
4763 else $as_nop
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <time.h>
4767 #if !HAVE_DECL_TZNAME
4768 extern char *tzname[];
4769 #endif
4770
4771 int
4772 main (void)
4773 {
4774 return tzname[0][0];
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_cxx_try_link "$LINENO"
4780 then :
4781 ac_cv_var_tzname=yes
4782 else $as_nop
4783 ac_cv_var_tzname=no
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4786 conftest$ac_exeext conftest.$ac_ext
4787 fi
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
4789 printf "%s\n" "$ac_cv_var_tzname" >&6; }
4790 if test $ac_cv_var_tzname = yes; then
4791
4792 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
4793
4794 fi
4795 fi
4796
4797
4798 # ===========================
4799 # Find required base packages
4800 # ===========================
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 printf %s "checking for $ac_word... " >&6; }
4820 if test ${ac_cv_prog_CC+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else $as_nop
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 case $as_dir in #(((
4832 '') as_dir=./ ;;
4833 */) ;;
4834 *) as_dir=$as_dir/ ;;
4835 esac
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846 fi
4847 fi
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 printf "%s\n" "$CC" >&6; }
4852 else
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4855 fi
4856
4857
4858 fi
4859 if test -z "$ac_cv_prog_CC"; then
4860 ac_ct_CC=$CC
4861 # Extract the first word of "gcc", so it can be a program name with args.
4862 set dummy gcc; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_prog_ac_ct_CC+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 if test -n "$ac_ct_CC"; then
4870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 case $as_dir in #(((
4877 '') as_dir=./ ;;
4878 */) ;;
4879 *) as_dir=$as_dir/ ;;
4880 esac
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="gcc"
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 printf "%s\n" "$ac_ct_CC" >&6; }
4897 else
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4900 fi
4901
4902 if test "x$ac_ct_CC" = x; then
4903 CC=""
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 CC=$ac_ct_CC
4912 fi
4913 else
4914 CC="$ac_cv_prog_CC"
4915 fi
4916
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 printf %s "checking for $ac_word... " >&6; }
4923 if test ${ac_cv_prog_CC+y}
4924 then :
4925 printf %s "(cached) " >&6
4926 else $as_nop
4927 if test -n "$CC"; then
4928 ac_cv_prog_CC="$CC" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933 IFS=$as_save_IFS
4934 case $as_dir in #(((
4935 '') as_dir=./ ;;
4936 */) ;;
4937 *) as_dir=$as_dir/ ;;
4938 esac
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_CC="${ac_tool_prefix}cc"
4942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 CC=$ac_cv_prog_CC
4952 if test -n "$CC"; then
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 printf "%s\n" "$CC" >&6; }
4955 else
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 printf "%s\n" "no" >&6; }
4958 fi
4959
4960
4961 fi
4962 fi
4963 if test -z "$CC"; then
4964 # Extract the first word of "cc", so it can be a program name with args.
4965 set dummy cc; ac_word=$2
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 printf %s "checking for $ac_word... " >&6; }
4968 if test ${ac_cv_prog_CC+y}
4969 then :
4970 printf %s "(cached) " >&6
4971 else $as_nop
4972 if test -n "$CC"; then
4973 ac_cv_prog_CC="$CC" # Let the user override the test.
4974 else
4975 ac_prog_rejected=no
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 case $as_dir in #(((
4981 '') as_dir=./ ;;
4982 */) ;;
4983 *) as_dir=$as_dir/ ;;
4984 esac
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4988 ac_prog_rejected=yes
4989 continue
4990 fi
4991 ac_cv_prog_CC="cc"
4992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 if test $ac_prog_rejected = yes; then
5000 # We found a bogon in the path, so make sure we never use it.
5001 set dummy $ac_cv_prog_CC
5002 shift
5003 if test $# != 0; then
5004 # We chose a different compiler from the bogus one.
5005 # However, it has the same basename, so the bogon will be chosen
5006 # first if we set CC to just the basename; use the full file name.
5007 shift
5008 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5009 fi
5010 fi
5011 fi
5012 fi
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5016 printf "%s\n" "$CC" >&6; }
5017 else
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5020 fi
5021
5022
5023 fi
5024 if test -z "$CC"; then
5025 if test -n "$ac_tool_prefix"; then
5026 for ac_prog in cl.exe
5027 do
5028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 printf %s "checking for $ac_word... " >&6; }
5032 if test ${ac_cv_prog_CC+y}
5033 then :
5034 printf %s "(cached) " >&6
5035 else $as_nop
5036 if test -n "$CC"; then
5037 ac_cv_prog_CC="$CC" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 case $as_dir in #(((
5044 '') as_dir=./ ;;
5045 */) ;;
5046 *) as_dir=$as_dir/ ;;
5047 esac
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5064 else
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5067 fi
5068
5069
5070 test -n "$CC" && break
5071 done
5072 fi
5073 if test -z "$CC"; then
5074 ac_ct_CC=$CC
5075 for ac_prog in cl.exe
5076 do
5077 # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 printf %s "checking for $ac_word... " >&6; }
5081 if test ${ac_cv_prog_ac_ct_CC+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else $as_nop
5085 if test -n "$ac_ct_CC"; then
5086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 case $as_dir in #(((
5093 '') as_dir=./ ;;
5094 */) ;;
5095 *) as_dir=$as_dir/ ;;
5096 esac
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_CC="$ac_prog"
5100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5110 if test -n "$ac_ct_CC"; then
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5112 printf "%s\n" "$ac_ct_CC" >&6; }
5113 else
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 printf "%s\n" "no" >&6; }
5116 fi
5117
5118
5119 test -n "$ac_ct_CC" && break
5120 done
5121
5122 if test "x$ac_ct_CC" = x; then
5123 CC=""
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 CC=$ac_ct_CC
5132 fi
5133 fi
5134
5135 fi
5136 if test -z "$CC"; then
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}clang; ac_word=$2
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 printf %s "checking for $ac_word... " >&6; }
5142 if test ${ac_cv_prog_CC+y}
5143 then :
5144 printf %s "(cached) " >&6
5145 else $as_nop
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 case $as_dir in #(((
5154 '') as_dir=./ ;;
5155 */) ;;
5156 *) as_dir=$as_dir/ ;;
5157 esac
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_CC="${ac_tool_prefix}clang"
5161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 fi
5169 fi
5170 CC=$ac_cv_prog_CC
5171 if test -n "$CC"; then
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5173 printf "%s\n" "$CC" >&6; }
5174 else
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 printf "%s\n" "no" >&6; }
5177 fi
5178
5179
5180 fi
5181 if test -z "$ac_cv_prog_CC"; then
5182 ac_ct_CC=$CC
5183 # Extract the first word of "clang", so it can be a program name with args.
5184 set dummy clang; ac_word=$2
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 printf %s "checking for $ac_word... " >&6; }
5187 if test ${ac_cv_prog_ac_ct_CC+y}
5188 then :
5189 printf %s "(cached) " >&6
5190 else $as_nop
5191 if test -n "$ac_ct_CC"; then
5192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 case $as_dir in #(((
5199 '') as_dir=./ ;;
5200 */) ;;
5201 *) as_dir=$as_dir/ ;;
5202 esac
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_CC="clang"
5206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5216 if test -n "$ac_ct_CC"; then
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5218 printf "%s\n" "$ac_ct_CC" >&6; }
5219 else
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5222 fi
5223
5224 if test "x$ac_ct_CC" = x; then
5225 CC=""
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 CC=$ac_ct_CC
5234 fi
5235 else
5236 CC="$ac_cv_prog_CC"
5237 fi
5238
5239 fi
5240
5241
5242 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $? "no acceptable C compiler found in \$PATH
5245 See \`config.log' for more details" "$LINENO" 5; }
5246
5247 # Provide some information about the compiler.
5248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5249 set X $ac_compile
5250 ac_compiler=$2
5251 for ac_option in --version -v -V -qversion -version; do
5252 { { ac_try="$ac_compiler $ac_option >&5"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5258 printf "%s\n" "$ac_try_echo"; } >&5
5259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5260 ac_status=$?
5261 if test -s conftest.err; then
5262 sed '10a\
5263 ... rest of stderr output deleted ...
5264 10q' conftest.err >conftest.er1
5265 cat conftest.er1 >&5
5266 fi
5267 rm -f conftest.er1 conftest.err
5268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; }
5270 done
5271
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5273 printf %s "checking whether the compiler supports GNU C... " >&6; }
5274 if test ${ac_cv_c_compiler_gnu+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else $as_nop
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280
5281 int
5282 main (void)
5283 {
5284 #ifndef __GNUC__
5285 choke me
5286 #endif
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"
5293 then :
5294 ac_compiler_gnu=yes
5295 else $as_nop
5296 ac_compiler_gnu=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5300
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5303 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306 if test $ac_compiler_gnu = yes; then
5307 GCC=yes
5308 else
5309 GCC=
5310 fi
5311 ac_test_CFLAGS=${CFLAGS+y}
5312 ac_save_CFLAGS=$CFLAGS
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5314 printf %s "checking whether $CC accepts -g... " >&6; }
5315 if test ${ac_cv_prog_cc_g+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 ac_save_c_werror_flag=$ac_c_werror_flag
5320 ac_c_werror_flag=yes
5321 ac_cv_prog_cc_g=no
5322 CFLAGS="-g"
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325
5326 int
5327 main (void)
5328 {
5329
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"
5335 then :
5336 ac_cv_prog_cc_g=yes
5337 else $as_nop
5338 CFLAGS=""
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341
5342 int
5343 main (void)
5344 {
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"
5351 then :
5352
5353 else $as_nop
5354 ac_c_werror_flag=$ac_save_c_werror_flag
5355 CFLAGS="-g"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358
5359 int
5360 main (void)
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"
5368 then :
5369 ac_cv_prog_cc_g=yes
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 ac_c_werror_flag=$ac_save_c_werror_flag
5377 fi
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5379 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5380 if test $ac_test_CFLAGS; then
5381 CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383 if test "$GCC" = yes; then
5384 CFLAGS="-g -O2"
5385 else
5386 CFLAGS="-g"
5387 fi
5388 else
5389 if test "$GCC" = yes; then
5390 CFLAGS="-O2"
5391 else
5392 CFLAGS=
5393 fi
5394 fi
5395 ac_prog_cc_stdc=no
5396 if test x$ac_prog_cc_stdc = xno
5397 then :
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5399 printf %s "checking for $CC option to enable C11 features... " >&6; }
5400 if test ${ac_cv_prog_cc_c11+y}
5401 then :
5402 printf %s "(cached) " >&6
5403 else $as_nop
5404 ac_cv_prog_cc_c11=no
5405 ac_save_CC=$CC
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 $ac_c_conftest_c11_program
5409 _ACEOF
5410 for ac_arg in '' -std=gnu11
5411 do
5412 CC="$ac_save_CC $ac_arg"
5413 if ac_fn_c_try_compile "$LINENO"
5414 then :
5415 ac_cv_prog_cc_c11=$ac_arg
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam
5418 test "x$ac_cv_prog_cc_c11" != "xno" && break
5419 done
5420 rm -f conftest.$ac_ext
5421 CC=$ac_save_CC
5422 fi
5423
5424 if test "x$ac_cv_prog_cc_c11" = xno
5425 then :
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5427 printf "%s\n" "unsupported" >&6; }
5428 else $as_nop
5429 if test "x$ac_cv_prog_cc_c11" = x
5430 then :
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5432 printf "%s\n" "none needed" >&6; }
5433 else $as_nop
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5435 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5436 CC="$CC $ac_cv_prog_cc_c11"
5437 fi
5438 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5439 ac_prog_cc_stdc=c11
5440 fi
5441 fi
5442 if test x$ac_prog_cc_stdc = xno
5443 then :
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5445 printf %s "checking for $CC option to enable C99 features... " >&6; }
5446 if test ${ac_cv_prog_cc_c99+y}
5447 then :
5448 printf %s "(cached) " >&6
5449 else $as_nop
5450 ac_cv_prog_cc_c99=no
5451 ac_save_CC=$CC
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 $ac_c_conftest_c99_program
5455 _ACEOF
5456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5457 do
5458 CC="$ac_save_CC $ac_arg"
5459 if ac_fn_c_try_compile "$LINENO"
5460 then :
5461 ac_cv_prog_cc_c99=$ac_arg
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.beam
5464 test "x$ac_cv_prog_cc_c99" != "xno" && break
5465 done
5466 rm -f conftest.$ac_ext
5467 CC=$ac_save_CC
5468 fi
5469
5470 if test "x$ac_cv_prog_cc_c99" = xno
5471 then :
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 printf "%s\n" "unsupported" >&6; }
5474 else $as_nop
5475 if test "x$ac_cv_prog_cc_c99" = x
5476 then :
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5478 printf "%s\n" "none needed" >&6; }
5479 else $as_nop
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5481 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5482 CC="$CC $ac_cv_prog_cc_c99"
5483 fi
5484 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5485 ac_prog_cc_stdc=c99
5486 fi
5487 fi
5488 if test x$ac_prog_cc_stdc = xno
5489 then :
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5491 printf %s "checking for $CC option to enable C89 features... " >&6; }
5492 if test ${ac_cv_prog_cc_c89+y}
5493 then :
5494 printf %s "(cached) " >&6
5495 else $as_nop
5496 ac_cv_prog_cc_c89=no
5497 ac_save_CC=$CC
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 $ac_c_conftest_c89_program
5501 _ACEOF
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5503 do
5504 CC="$ac_save_CC $ac_arg"
5505 if ac_fn_c_try_compile "$LINENO"
5506 then :
5507 ac_cv_prog_cc_c89=$ac_arg
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam
5510 test "x$ac_cv_prog_cc_c89" != "xno" && break
5511 done
5512 rm -f conftest.$ac_ext
5513 CC=$ac_save_CC
5514 fi
5515
5516 if test "x$ac_cv_prog_cc_c89" = xno
5517 then :
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5519 printf "%s\n" "unsupported" >&6; }
5520 else $as_nop
5521 if test "x$ac_cv_prog_cc_c89" = x
5522 then :
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5524 printf "%s\n" "none needed" >&6; }
5525 else $as_nop
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5527 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5528 CC="$CC $ac_cv_prog_cc_c89"
5529 fi
5530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5531 ac_prog_cc_stdc=c89
5532 fi
5533 fi
5534
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540
5541
5542 ac_ext=c
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5548 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5549 if test ${am_cv_prog_cc_c_o+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else $as_nop
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555
5556 int
5557 main (void)
5558 {
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 # Make sure it works both with $CC and with simple cc.
5565 # Following AC_PROG_CC_C_O, we do the test twice because some
5566 # compilers refuse to overwrite an existing .o file with -o,
5567 # though they will create one.
5568 am_cv_prog_cc_c_o=yes
5569 for am_i in 1 2; do
5570 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5571 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } \
5575 && test -f conftest2.$ac_objext; then
5576 : OK
5577 else
5578 am_cv_prog_cc_c_o=no
5579 break
5580 fi
5581 done
5582 rm -f core conftest*
5583 unset am_i
5584 fi
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5586 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5587 if test "$am_cv_prog_cc_c_o" != yes; then
5588 # Losing compiler, so override with the script.
5589 # FIXME: It is wrong to rewrite CC.
5590 # But if we don't then we get into trouble of one sort or another.
5591 # A longer-term fix would be to have automake use am__CC in this case,
5592 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5593 CC="$am_aux_dir/compile $CC"
5594 fi
5595 ac_ext=c
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601
5602 depcc="$CC" am_compiler_list=
5603
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5605 printf %s "checking dependency style of $depcc... " >&6; }
5606 if test ${am_cv_CC_dependencies_compiler_type+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else $as_nop
5610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5611 # We make a subdir and do the tests there. Otherwise we can end up
5612 # making bogus files that we don't know about and never remove. For
5613 # instance it was reported that on HP-UX the gcc test will end up
5614 # making a dummy file named 'D' -- because '-MD' means "put the output
5615 # in D".
5616 rm -rf conftest.dir
5617 mkdir conftest.dir
5618 # Copy depcomp to subdir because otherwise we won't find it if we're
5619 # using a relative directory.
5620 cp "$am_depcomp" conftest.dir
5621 cd conftest.dir
5622 # We will build objects and dependencies in a subdirectory because
5623 # it helps to detect inapplicable dependency modes. For instance
5624 # both Tru64's cc and ICC support -MD to output dependencies as a
5625 # side effect of compilation, but ICC will put the dependencies in
5626 # the current directory while Tru64 will put them in the object
5627 # directory.
5628 mkdir sub
5629
5630 am_cv_CC_dependencies_compiler_type=none
5631 if test "$am_compiler_list" = ""; then
5632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5633 fi
5634 am__universal=false
5635 case " $depcc " in #(
5636 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5637 esac
5638
5639 for depmode in $am_compiler_list; do
5640 # Setup a source with many dependencies, because some compilers
5641 # like to wrap large dependency lists on column 80 (with \), and
5642 # we should not choose a depcomp mode which is confused by this.
5643 #
5644 # We need to recreate these files for each test, as the compiler may
5645 # overwrite some of them when testing with obscure command lines.
5646 # This happens at least with the AIX C compiler.
5647 : > sub/conftest.c
5648 for i in 1 2 3 4 5 6; do
5649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5650 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5651 # Solaris 10 /bin/sh.
5652 echo '/* dummy */' > sub/conftst$i.h
5653 done
5654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5655
5656 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5657 # mode. It turns out that the SunPro C++ compiler does not properly
5658 # handle '-M -o', and we need to detect this. Also, some Intel
5659 # versions had trouble with output in subdirs.
5660 am__obj=sub/conftest.${OBJEXT-o}
5661 am__minus_obj="-o $am__obj"
5662 case $depmode in
5663 gcc)
5664 # This depmode causes a compiler race in universal mode.
5665 test "$am__universal" = false || continue
5666 ;;
5667 nosideeffect)
5668 # After this tag, mechanisms are not by side-effect, so they'll
5669 # only be used when explicitly requested.
5670 if test "x$enable_dependency_tracking" = xyes; then
5671 continue
5672 else
5673 break
5674 fi
5675 ;;
5676 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5677 # This compiler won't grok '-c -o', but also, the minuso test has
5678 # not run yet. These depmodes are late enough in the game, and
5679 # so weak that their functioning should not be impacted.
5680 am__obj=conftest.${OBJEXT-o}
5681 am__minus_obj=
5682 ;;
5683 none) break ;;
5684 esac
5685 if depmode=$depmode \
5686 source=sub/conftest.c object=$am__obj \
5687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5689 >/dev/null 2>conftest.err &&
5690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5694 # icc doesn't choke on unknown options, it will just issue warnings
5695 # or remarks (even with -Werror). So we grep stderr for any message
5696 # that says an option was ignored or not supported.
5697 # When given -MP, icc 7.0 and 7.1 complain thusly:
5698 # icc: Command line warning: ignoring option '-M'; no argument required
5699 # The diagnosis changed in icc 8.0:
5700 # icc: Command line remark: option '-MP' not supported
5701 if (grep 'ignoring option' conftest.err ||
5702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5703 am_cv_CC_dependencies_compiler_type=$depmode
5704 break
5705 fi
5706 fi
5707 done
5708
5709 cd ..
5710 rm -rf conftest.dir
5711 else
5712 am_cv_CC_dependencies_compiler_type=none
5713 fi
5714
5715 fi
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5717 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5718 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5719
5720 if
5721 test "x$enable_dependency_tracking" != xno \
5722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5723 am__fastdepCC_TRUE=
5724 am__fastdepCC_FALSE='#'
5725 else
5726 am__fastdepCC_TRUE='#'
5727 am__fastdepCC_FALSE=
5728 fi
5729
5730
5731
5732
5733 if test -n "$ac_tool_prefix"; then
5734 for ac_prog in ar lib "link -lib"
5735 do
5736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 printf %s "checking for $ac_word... " >&6; }
5740 if test ${ac_cv_prog_AR+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else $as_nop
5744 if test -n "$AR"; then
5745 ac_cv_prog_AR="$AR" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 case $as_dir in #(((
5752 '') as_dir=./ ;;
5753 */) ;;
5754 *) as_dir=$as_dir/ ;;
5755 esac
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 AR=$ac_cv_prog_AR
5769 if test -n "$AR"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5771 printf "%s\n" "$AR" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776
5777
5778 test -n "$AR" && break
5779 done
5780 fi
5781 if test -z "$AR"; then
5782 ac_ct_AR=$AR
5783 for ac_prog in ar lib "link -lib"
5784 do
5785 # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 printf %s "checking for $ac_word... " >&6; }
5789 if test ${ac_cv_prog_ac_ct_AR+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else $as_nop
5793 if test -n "$ac_ct_AR"; then
5794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 case $as_dir in #(((
5801 '') as_dir=./ ;;
5802 */) ;;
5803 *) as_dir=$as_dir/ ;;
5804 esac
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_AR="$ac_prog"
5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5818 if test -n "$ac_ct_AR"; then
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5820 printf "%s\n" "$ac_ct_AR" >&6; }
5821 else
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 printf "%s\n" "no" >&6; }
5824 fi
5825
5826
5827 test -n "$ac_ct_AR" && break
5828 done
5829
5830 if test "x$ac_ct_AR" = x; then
5831 AR="false"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839 AR=$ac_ct_AR
5840 fi
5841 fi
5842
5843 : ${AR=ar}
5844
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5846 printf %s "checking the archiver ($AR) interface... " >&6; }
5847 if test ${am_cv_ar_interface+y}
5848 then :
5849 printf %s "(cached) " >&6
5850 else $as_nop
5851 ac_ext=c
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857 am_cv_ar_interface=ar
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 int some_variable = 0;
5861 _ACEOF
5862 if ac_fn_c_try_compile "$LINENO"
5863 then :
5864 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5866 (eval $am_ar_try) 2>&5
5867 ac_status=$?
5868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869 test $ac_status = 0; }
5870 if test "$ac_status" -eq 0; then
5871 am_cv_ar_interface=ar
5872 else
5873 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5875 (eval $am_ar_try) 2>&5
5876 ac_status=$?
5877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; }
5879 if test "$ac_status" -eq 0; then
5880 am_cv_ar_interface=lib
5881 else
5882 am_cv_ar_interface=unknown
5883 fi
5884 fi
5885 rm -f conftest.lib libconftest.a
5886
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5889 ac_ext=cpp
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5897 printf "%s\n" "$am_cv_ar_interface" >&6; }
5898
5899 case $am_cv_ar_interface in
5900 ar)
5901 ;;
5902 lib)
5903 # Microsoft lib, so override with the ar-lib wrapper script.
5904 # FIXME: It is wrong to rewrite AR.
5905 # But if we don't then we get into trouble of one sort or another.
5906 # A longer-term fix would be to have automake use am__AR in this case,
5907 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5908 # similar.
5909 AR="$am_aux_dir/ar-lib $AR"
5910 ;;
5911 unknown)
5912 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5913 ;;
5914 esac
5915
5916 ac_ext=c
5917 ac_cpp='$CPP $CPPFLAGS'
5918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5921 if test -n "$ac_tool_prefix"; then
5922 for ac_prog in gcc cc clang
5923 do
5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 printf %s "checking for $ac_word... " >&6; }
5928 if test ${ac_cv_prog_CC+y}
5929 then :
5930 printf %s "(cached) " >&6
5931 else $as_nop
5932 if test -n "$CC"; then
5933 ac_cv_prog_CC="$CC" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 case $as_dir in #(((
5940 '') as_dir=./ ;;
5941 */) ;;
5942 *) as_dir=$as_dir/ ;;
5943 esac
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 CC=$ac_cv_prog_CC
5957 if test -n "$CC"; then
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5959 printf "%s\n" "$CC" >&6; }
5960 else
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 printf "%s\n" "no" >&6; }
5963 fi
5964
5965
5966 test -n "$CC" && break
5967 done
5968 fi
5969 if test -z "$CC"; then
5970 ac_ct_CC=$CC
5971 for ac_prog in gcc cc clang
5972 do
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 printf %s "checking for $ac_word... " >&6; }
5977 if test ${ac_cv_prog_ac_ct_CC+y}
5978 then :
5979 printf %s "(cached) " >&6
5980 else $as_nop
5981 if test -n "$ac_ct_CC"; then
5982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987 IFS=$as_save_IFS
5988 case $as_dir in #(((
5989 '') as_dir=./ ;;
5990 */) ;;
5991 *) as_dir=$as_dir/ ;;
5992 esac
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_ac_ct_CC="$ac_prog"
5996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003 fi
6004 fi
6005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6006 if test -n "$ac_ct_CC"; then
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6008 printf "%s\n" "$ac_ct_CC" >&6; }
6009 else
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 printf "%s\n" "no" >&6; }
6012 fi
6013
6014
6015 test -n "$ac_ct_CC" && break
6016 done
6017
6018 if test "x$ac_ct_CC" = x; then
6019 CC=""
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027 CC=$ac_ct_CC
6028 fi
6029 fi
6030
6031
6032 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6034 as_fn_error $? "no acceptable C compiler found in \$PATH
6035 See \`config.log' for more details" "$LINENO" 5; }
6036
6037 # Provide some information about the compiler.
6038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6039 set X $ac_compile
6040 ac_compiler=$2
6041 for ac_option in --version -v -V -qversion -version; do
6042 { { ac_try="$ac_compiler $ac_option >&5"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6048 printf "%s\n" "$ac_try_echo"; } >&5
6049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6050 ac_status=$?
6051 if test -s conftest.err; then
6052 sed '10a\
6053 ... rest of stderr output deleted ...
6054 10q' conftest.err >conftest.er1
6055 cat conftest.er1 >&5
6056 fi
6057 rm -f conftest.er1 conftest.err
6058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }
6060 done
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6063 printf %s "checking whether the compiler supports GNU C... " >&6; }
6064 if test ${ac_cv_c_compiler_gnu+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else $as_nop
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070
6071 int
6072 main (void)
6073 {
6074 #ifndef __GNUC__
6075 choke me
6076 #endif
6077
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 ac_compiler_gnu=yes
6085 else $as_nop
6086 ac_compiler_gnu=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6090
6091 fi
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6093 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096 if test $ac_compiler_gnu = yes; then
6097 GCC=yes
6098 else
6099 GCC=
6100 fi
6101 ac_test_CFLAGS=${CFLAGS+y}
6102 ac_save_CFLAGS=$CFLAGS
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6104 printf %s "checking whether $CC accepts -g... " >&6; }
6105 if test ${ac_cv_prog_cc_g+y}
6106 then :
6107 printf %s "(cached) " >&6
6108 else $as_nop
6109 ac_save_c_werror_flag=$ac_c_werror_flag
6110 ac_c_werror_flag=yes
6111 ac_cv_prog_cc_g=no
6112 CFLAGS="-g"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115
6116 int
6117 main (void)
6118 {
6119
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 if ac_fn_c_try_compile "$LINENO"
6125 then :
6126 ac_cv_prog_cc_g=yes
6127 else $as_nop
6128 CFLAGS=""
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132 int
6133 main (void)
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"
6141 then :
6142
6143 else $as_nop
6144 ac_c_werror_flag=$ac_save_c_werror_flag
6145 CFLAGS="-g"
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148
6149 int
6150 main (void)
6151 {
6152
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"
6158 then :
6159 ac_cv_prog_cc_g=yes
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6166 ac_c_werror_flag=$ac_save_c_werror_flag
6167 fi
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6169 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6170 if test $ac_test_CFLAGS; then
6171 CFLAGS=$ac_save_CFLAGS
6172 elif test $ac_cv_prog_cc_g = yes; then
6173 if test "$GCC" = yes; then
6174 CFLAGS="-g -O2"
6175 else
6176 CFLAGS="-g"
6177 fi
6178 else
6179 if test "$GCC" = yes; then
6180 CFLAGS="-O2"
6181 else
6182 CFLAGS=
6183 fi
6184 fi
6185 ac_prog_cc_stdc=no
6186 if test x$ac_prog_cc_stdc = xno
6187 then :
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6189 printf %s "checking for $CC option to enable C11 features... " >&6; }
6190 if test ${ac_cv_prog_cc_c11+y}
6191 then :
6192 printf %s "(cached) " >&6
6193 else $as_nop
6194 ac_cv_prog_cc_c11=no
6195 ac_save_CC=$CC
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 $ac_c_conftest_c11_program
6199 _ACEOF
6200 for ac_arg in '' -std=gnu11
6201 do
6202 CC="$ac_save_CC $ac_arg"
6203 if ac_fn_c_try_compile "$LINENO"
6204 then :
6205 ac_cv_prog_cc_c11=$ac_arg
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.beam
6208 test "x$ac_cv_prog_cc_c11" != "xno" && break
6209 done
6210 rm -f conftest.$ac_ext
6211 CC=$ac_save_CC
6212 fi
6213
6214 if test "x$ac_cv_prog_cc_c11" = xno
6215 then :
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6217 printf "%s\n" "unsupported" >&6; }
6218 else $as_nop
6219 if test "x$ac_cv_prog_cc_c11" = x
6220 then :
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6222 printf "%s\n" "none needed" >&6; }
6223 else $as_nop
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6225 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6226 CC="$CC $ac_cv_prog_cc_c11"
6227 fi
6228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6229 ac_prog_cc_stdc=c11
6230 fi
6231 fi
6232 if test x$ac_prog_cc_stdc = xno
6233 then :
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6235 printf %s "checking for $CC option to enable C99 features... " >&6; }
6236 if test ${ac_cv_prog_cc_c99+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else $as_nop
6240 ac_cv_prog_cc_c99=no
6241 ac_save_CC=$CC
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 $ac_c_conftest_c99_program
6245 _ACEOF
6246 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6247 do
6248 CC="$ac_save_CC $ac_arg"
6249 if ac_fn_c_try_compile "$LINENO"
6250 then :
6251 ac_cv_prog_cc_c99=$ac_arg
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.beam
6254 test "x$ac_cv_prog_cc_c99" != "xno" && break
6255 done
6256 rm -f conftest.$ac_ext
6257 CC=$ac_save_CC
6258 fi
6259
6260 if test "x$ac_cv_prog_cc_c99" = xno
6261 then :
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6263 printf "%s\n" "unsupported" >&6; }
6264 else $as_nop
6265 if test "x$ac_cv_prog_cc_c99" = x
6266 then :
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6268 printf "%s\n" "none needed" >&6; }
6269 else $as_nop
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6271 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6272 CC="$CC $ac_cv_prog_cc_c99"
6273 fi
6274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6275 ac_prog_cc_stdc=c99
6276 fi
6277 fi
6278 if test x$ac_prog_cc_stdc = xno
6279 then :
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6281 printf %s "checking for $CC option to enable C89 features... " >&6; }
6282 if test ${ac_cv_prog_cc_c89+y}
6283 then :
6284 printf %s "(cached) " >&6
6285 else $as_nop
6286 ac_cv_prog_cc_c89=no
6287 ac_save_CC=$CC
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 $ac_c_conftest_c89_program
6291 _ACEOF
6292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6293 do
6294 CC="$ac_save_CC $ac_arg"
6295 if ac_fn_c_try_compile "$LINENO"
6296 then :
6297 ac_cv_prog_cc_c89=$ac_arg
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.beam
6300 test "x$ac_cv_prog_cc_c89" != "xno" && break
6301 done
6302 rm -f conftest.$ac_ext
6303 CC=$ac_save_CC
6304 fi
6305
6306 if test "x$ac_cv_prog_cc_c89" = xno
6307 then :
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6309 printf "%s\n" "unsupported" >&6; }
6310 else $as_nop
6311 if test "x$ac_cv_prog_cc_c89" = x
6312 then :
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6314 printf "%s\n" "none needed" >&6; }
6315 else $as_nop
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6317 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6318 CC="$CC $ac_cv_prog_cc_c89"
6319 fi
6320 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6321 ac_prog_cc_stdc=c89
6322 fi
6323 fi
6324
6325 ac_ext=cpp
6326 ac_cpp='$CXXCPP $CPPFLAGS'
6327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6330
6331
6332 ac_ext=c
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6338 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6339 if test ${am_cv_prog_cc_c_o+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else $as_nop
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345
6346 int
6347 main (void)
6348 {
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 # Make sure it works both with $CC and with simple cc.
6355 # Following AC_PROG_CC_C_O, we do the test twice because some
6356 # compilers refuse to overwrite an existing .o file with -o,
6357 # though they will create one.
6358 am_cv_prog_cc_c_o=yes
6359 for am_i in 1 2; do
6360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6361 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } \
6365 && test -f conftest2.$ac_objext; then
6366 : OK
6367 else
6368 am_cv_prog_cc_c_o=no
6369 break
6370 fi
6371 done
6372 rm -f core conftest*
6373 unset am_i
6374 fi
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6376 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6377 if test "$am_cv_prog_cc_c_o" != yes; then
6378 # Losing compiler, so override with the script.
6379 # FIXME: It is wrong to rewrite CC.
6380 # But if we don't then we get into trouble of one sort or another.
6381 # A longer-term fix would be to have automake use am__CC in this case,
6382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6383 CC="$am_aux_dir/compile $CC"
6384 fi
6385 ac_ext=cpp
6386 ac_cpp='$CXXCPP $CPPFLAGS'
6387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6390
6391
6392 depcc="$CC" am_compiler_list=
6393
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6395 printf %s "checking dependency style of $depcc... " >&6; }
6396 if test ${am_cv_CC_dependencies_compiler_type+y}
6397 then :
6398 printf %s "(cached) " >&6
6399 else $as_nop
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named 'D' -- because '-MD' means "put the output
6405 # in D".
6406 rm -rf conftest.dir
6407 mkdir conftest.dir
6408 # Copy depcomp to subdir because otherwise we won't find it if we're
6409 # using a relative directory.
6410 cp "$am_depcomp" conftest.dir
6411 cd conftest.dir
6412 # We will build objects and dependencies in a subdirectory because
6413 # it helps to detect inapplicable dependency modes. For instance
6414 # both Tru64's cc and ICC support -MD to output dependencies as a
6415 # side effect of compilation, but ICC will put the dependencies in
6416 # the current directory while Tru64 will put them in the object
6417 # directory.
6418 mkdir sub
6419
6420 am_cv_CC_dependencies_compiler_type=none
6421 if test "$am_compiler_list" = ""; then
6422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6423 fi
6424 am__universal=false
6425 case " $depcc " in #(
6426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6427 esac
6428
6429 for depmode in $am_compiler_list; do
6430 # Setup a source with many dependencies, because some compilers
6431 # like to wrap large dependency lists on column 80 (with \), and
6432 # we should not choose a depcomp mode which is confused by this.
6433 #
6434 # We need to recreate these files for each test, as the compiler may
6435 # overwrite some of them when testing with obscure command lines.
6436 # This happens at least with the AIX C compiler.
6437 : > sub/conftest.c
6438 for i in 1 2 3 4 5 6; do
6439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6441 # Solaris 10 /bin/sh.
6442 echo '/* dummy */' > sub/conftst$i.h
6443 done
6444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6445
6446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6447 # mode. It turns out that the SunPro C++ compiler does not properly
6448 # handle '-M -o', and we need to detect this. Also, some Intel
6449 # versions had trouble with output in subdirs.
6450 am__obj=sub/conftest.${OBJEXT-o}
6451 am__minus_obj="-o $am__obj"
6452 case $depmode in
6453 gcc)
6454 # This depmode causes a compiler race in universal mode.
6455 test "$am__universal" = false || continue
6456 ;;
6457 nosideeffect)
6458 # After this tag, mechanisms are not by side-effect, so they'll
6459 # only be used when explicitly requested.
6460 if test "x$enable_dependency_tracking" = xyes; then
6461 continue
6462 else
6463 break
6464 fi
6465 ;;
6466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6467 # This compiler won't grok '-c -o', but also, the minuso test has
6468 # not run yet. These depmodes are late enough in the game, and
6469 # so weak that their functioning should not be impacted.
6470 am__obj=conftest.${OBJEXT-o}
6471 am__minus_obj=
6472 ;;
6473 none) break ;;
6474 esac
6475 if depmode=$depmode \
6476 source=sub/conftest.c object=$am__obj \
6477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6479 >/dev/null 2>conftest.err &&
6480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6484 # icc doesn't choke on unknown options, it will just issue warnings
6485 # or remarks (even with -Werror). So we grep stderr for any message
6486 # that says an option was ignored or not supported.
6487 # When given -MP, icc 7.0 and 7.1 complain thusly:
6488 # icc: Command line warning: ignoring option '-M'; no argument required
6489 # The diagnosis changed in icc 8.0:
6490 # icc: Command line remark: option '-MP' not supported
6491 if (grep 'ignoring option' conftest.err ||
6492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6493 am_cv_CC_dependencies_compiler_type=$depmode
6494 break
6495 fi
6496 fi
6497 done
6498
6499 cd ..
6500 rm -rf conftest.dir
6501 else
6502 am_cv_CC_dependencies_compiler_type=none
6503 fi
6504
6505 fi
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6507 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6509
6510 if
6511 test "x$enable_dependency_tracking" != xno \
6512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6513 am__fastdepCC_TRUE=
6514 am__fastdepCC_FALSE='#'
6515 else
6516 am__fastdepCC_TRUE='#'
6517 am__fastdepCC_FALSE=
6518 fi
6519
6520
6521 ac_ext=c
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6527 printf %s "checking how to run the C preprocessor... " >&6; }
6528 # On Suns, sometimes $CPP names a directory.
6529 if test -n "$CPP" && test -d "$CPP"; then
6530 CPP=
6531 fi
6532 if test -z "$CPP"; then
6533 if test ${ac_cv_prog_CPP+y}
6534 then :
6535 printf %s "(cached) " >&6
6536 else $as_nop
6537 # Double quotes because $CC needs to be expanded
6538 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6539 do
6540 ac_preproc_ok=false
6541 for ac_c_preproc_warn_flag in '' yes
6542 do
6543 # Use a header file that comes with gcc, so configuring glibc
6544 # with a fresh cross-compiler works.
6545 # On the NeXT, cc -E runs the code through the compiler's parser,
6546 # not just through cpp. "Syntax error" is here to catch this case.
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <limits.h>
6550 Syntax error
6551 _ACEOF
6552 if ac_fn_c_try_cpp "$LINENO"
6553 then :
6554
6555 else $as_nop
6556 # Broken: fails on valid input.
6557 continue
6558 fi
6559 rm -f conftest.err conftest.i conftest.$ac_ext
6560
6561 # OK, works on sane cases. Now check whether nonexistent headers
6562 # can be detected and how.
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 #include <ac_nonexistent.h>
6566 _ACEOF
6567 if ac_fn_c_try_cpp "$LINENO"
6568 then :
6569 # Broken: success on invalid input.
6570 continue
6571 else $as_nop
6572 # Passes both tests.
6573 ac_preproc_ok=:
6574 break
6575 fi
6576 rm -f conftest.err conftest.i conftest.$ac_ext
6577
6578 done
6579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6580 rm -f conftest.i conftest.err conftest.$ac_ext
6581 if $ac_preproc_ok
6582 then :
6583 break
6584 fi
6585
6586 done
6587 ac_cv_prog_CPP=$CPP
6588
6589 fi
6590 CPP=$ac_cv_prog_CPP
6591 else
6592 ac_cv_prog_CPP=$CPP
6593 fi
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6595 printf "%s\n" "$CPP" >&6; }
6596 ac_preproc_ok=false
6597 for ac_c_preproc_warn_flag in '' yes
6598 do
6599 # Use a header file that comes with gcc, so configuring glibc
6600 # with a fresh cross-compiler works.
6601 # On the NeXT, cc -E runs the code through the compiler's parser,
6602 # not just through cpp. "Syntax error" is here to catch this case.
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #include <limits.h>
6606 Syntax error
6607 _ACEOF
6608 if ac_fn_c_try_cpp "$LINENO"
6609 then :
6610
6611 else $as_nop
6612 # Broken: fails on valid input.
6613 continue
6614 fi
6615 rm -f conftest.err conftest.i conftest.$ac_ext
6616
6617 # OK, works on sane cases. Now check whether nonexistent headers
6618 # can be detected and how.
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <ac_nonexistent.h>
6622 _ACEOF
6623 if ac_fn_c_try_cpp "$LINENO"
6624 then :
6625 # Broken: success on invalid input.
6626 continue
6627 else $as_nop
6628 # Passes both tests.
6629 ac_preproc_ok=:
6630 break
6631 fi
6632 rm -f conftest.err conftest.i conftest.$ac_ext
6633
6634 done
6635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6636 rm -f conftest.i conftest.err conftest.$ac_ext
6637 if $ac_preproc_ok
6638 then :
6639
6640 else $as_nop
6641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6642 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6643 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6644 See \`config.log' for more details" "$LINENO" 5; }
6645 fi
6646
6647 ac_ext=cpp
6648 ac_cpp='$CXXCPP $CPPFLAGS'
6649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6652
6653 ac_ext=cpp
6654 ac_cpp='$CXXCPP $CPPFLAGS'
6655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6658 if test -z "$CXX"; then
6659 if test -n "$CCC"; then
6660 CXX=$CCC
6661 else
6662 if test -n "$ac_tool_prefix"; then
6663 for ac_prog in g++ c++ clang++
6664 do
6665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 printf %s "checking for $ac_word... " >&6; }
6669 if test ${ac_cv_prog_CXX+y}
6670 then :
6671 printf %s "(cached) " >&6
6672 else $as_nop
6673 if test -n "$CXX"; then
6674 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 case $as_dir in #(((
6681 '') as_dir=./ ;;
6682 */) ;;
6683 *) as_dir=$as_dir/ ;;
6684 esac
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 CXX=$ac_cv_prog_CXX
6698 if test -n "$CXX"; then
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6700 printf "%s\n" "$CXX" >&6; }
6701 else
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 printf "%s\n" "no" >&6; }
6704 fi
6705
6706
6707 test -n "$CXX" && break
6708 done
6709 fi
6710 if test -z "$CXX"; then
6711 ac_ct_CXX=$CXX
6712 for ac_prog in g++ c++ clang++
6713 do
6714 # Extract the first word of "$ac_prog", so it can be a program name with args.
6715 set dummy $ac_prog; ac_word=$2
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 printf %s "checking for $ac_word... " >&6; }
6718 if test ${ac_cv_prog_ac_ct_CXX+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else $as_nop
6722 if test -n "$ac_ct_CXX"; then
6723 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 case $as_dir in #(((
6730 '') as_dir=./ ;;
6731 */) ;;
6732 *) as_dir=$as_dir/ ;;
6733 esac
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_ac_ct_CXX="$ac_prog"
6737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6747 if test -n "$ac_ct_CXX"; then
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6749 printf "%s\n" "$ac_ct_CXX" >&6; }
6750 else
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 printf "%s\n" "no" >&6; }
6753 fi
6754
6755
6756 test -n "$ac_ct_CXX" && break
6757 done
6758
6759 if test "x$ac_ct_CXX" = x; then
6760 CXX="g++"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768 CXX=$ac_ct_CXX
6769 fi
6770 fi
6771
6772 fi
6773 fi
6774 # Provide some information about the compiler.
6775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6776 set X $ac_compile
6777 ac_compiler=$2
6778 for ac_option in --version -v -V -qversion; do
6779 { { ac_try="$ac_compiler $ac_option >&5"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6785 printf "%s\n" "$ac_try_echo"; } >&5
6786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6787 ac_status=$?
6788 if test -s conftest.err; then
6789 sed '10a\
6790 ... rest of stderr output deleted ...
6791 10q' conftest.err >conftest.er1
6792 cat conftest.er1 >&5
6793 fi
6794 rm -f conftest.er1 conftest.err
6795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }
6797 done
6798
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6800 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6801 if test ${ac_cv_cxx_compiler_gnu+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807
6808 int
6809 main (void)
6810 {
6811 #ifndef __GNUC__
6812 choke me
6813 #endif
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_cxx_try_compile "$LINENO"
6820 then :
6821 ac_compiler_gnu=yes
6822 else $as_nop
6823 ac_compiler_gnu=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6827
6828 fi
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6830 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6832
6833 if test $ac_compiler_gnu = yes; then
6834 GXX=yes
6835 else
6836 GXX=
6837 fi
6838 ac_test_CXXFLAGS=${CXXFLAGS+y}
6839 ac_save_CXXFLAGS=$CXXFLAGS
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6841 printf %s "checking whether $CXX accepts -g... " >&6; }
6842 if test ${ac_cv_prog_cxx_g+y}
6843 then :
6844 printf %s "(cached) " >&6
6845 else $as_nop
6846 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6847 ac_cxx_werror_flag=yes
6848 ac_cv_prog_cxx_g=no
6849 CXXFLAGS="-g"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852
6853 int
6854 main (void)
6855 {
6856
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 if ac_fn_cxx_try_compile "$LINENO"
6862 then :
6863 ac_cv_prog_cxx_g=yes
6864 else $as_nop
6865 CXXFLAGS=""
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868
6869 int
6870 main (void)
6871 {
6872
6873 ;
6874 return 0;
6875 }
6876 _ACEOF
6877 if ac_fn_cxx_try_compile "$LINENO"
6878 then :
6879
6880 else $as_nop
6881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6882 CXXFLAGS="-g"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885
6886 int
6887 main (void)
6888 {
6889
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 if ac_fn_cxx_try_compile "$LINENO"
6895 then :
6896 ac_cv_prog_cxx_g=yes
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6903 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6906 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6907 if test $ac_test_CXXFLAGS; then
6908 CXXFLAGS=$ac_save_CXXFLAGS
6909 elif test $ac_cv_prog_cxx_g = yes; then
6910 if test "$GXX" = yes; then
6911 CXXFLAGS="-g -O2"
6912 else
6913 CXXFLAGS="-g"
6914 fi
6915 else
6916 if test "$GXX" = yes; then
6917 CXXFLAGS="-O2"
6918 else
6919 CXXFLAGS=
6920 fi
6921 fi
6922 ac_prog_cxx_stdcxx=no
6923 if test x$ac_prog_cxx_stdcxx = xno
6924 then :
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6926 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6927 if test ${ac_cv_prog_cxx_11+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else $as_nop
6931 ac_cv_prog_cxx_11=no
6932 ac_save_CXX=$CXX
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 $ac_cxx_conftest_cxx11_program
6936 _ACEOF
6937 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6938 do
6939 CXX="$ac_save_CXX $ac_arg"
6940 if ac_fn_cxx_try_compile "$LINENO"
6941 then :
6942 ac_cv_prog_cxx_cxx11=$ac_arg
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.beam
6945 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6946 done
6947 rm -f conftest.$ac_ext
6948 CXX=$ac_save_CXX
6949 fi
6950
6951 if test "x$ac_cv_prog_cxx_cxx11" = xno
6952 then :
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6954 printf "%s\n" "unsupported" >&6; }
6955 else $as_nop
6956 if test "x$ac_cv_prog_cxx_cxx11" = x
6957 then :
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6959 printf "%s\n" "none needed" >&6; }
6960 else $as_nop
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6962 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6963 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6964 fi
6965 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6966 ac_prog_cxx_stdcxx=cxx11
6967 fi
6968 fi
6969 if test x$ac_prog_cxx_stdcxx = xno
6970 then :
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6972 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6973 if test ${ac_cv_prog_cxx_98+y}
6974 then :
6975 printf %s "(cached) " >&6
6976 else $as_nop
6977 ac_cv_prog_cxx_98=no
6978 ac_save_CXX=$CXX
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 $ac_cxx_conftest_cxx98_program
6982 _ACEOF
6983 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6984 do
6985 CXX="$ac_save_CXX $ac_arg"
6986 if ac_fn_cxx_try_compile "$LINENO"
6987 then :
6988 ac_cv_prog_cxx_cxx98=$ac_arg
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.beam
6991 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6992 done
6993 rm -f conftest.$ac_ext
6994 CXX=$ac_save_CXX
6995 fi
6996
6997 if test "x$ac_cv_prog_cxx_cxx98" = xno
6998 then :
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7000 printf "%s\n" "unsupported" >&6; }
7001 else $as_nop
7002 if test "x$ac_cv_prog_cxx_cxx98" = x
7003 then :
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7005 printf "%s\n" "none needed" >&6; }
7006 else $as_nop
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7008 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7009 CXX="$CXX $ac_cv_prog_cxx_cxx98"
7010 fi
7011 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7012 ac_prog_cxx_stdcxx=cxx98
7013 fi
7014 fi
7015
7016 ac_ext=cpp
7017 ac_cpp='$CXXCPP $CPPFLAGS'
7018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7021
7022 depcc="$CXX" am_compiler_list=
7023
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7025 printf %s "checking dependency style of $depcc... " >&6; }
7026 if test ${am_cv_CXX_dependencies_compiler_type+y}
7027 then :
7028 printf %s "(cached) " >&6
7029 else $as_nop
7030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7031 # We make a subdir and do the tests there. Otherwise we can end up
7032 # making bogus files that we don't know about and never remove. For
7033 # instance it was reported that on HP-UX the gcc test will end up
7034 # making a dummy file named 'D' -- because '-MD' means "put the output
7035 # in D".
7036 rm -rf conftest.dir
7037 mkdir conftest.dir
7038 # Copy depcomp to subdir because otherwise we won't find it if we're
7039 # using a relative directory.
7040 cp "$am_depcomp" conftest.dir
7041 cd conftest.dir
7042 # We will build objects and dependencies in a subdirectory because
7043 # it helps to detect inapplicable dependency modes. For instance
7044 # both Tru64's cc and ICC support -MD to output dependencies as a
7045 # side effect of compilation, but ICC will put the dependencies in
7046 # the current directory while Tru64 will put them in the object
7047 # directory.
7048 mkdir sub
7049
7050 am_cv_CXX_dependencies_compiler_type=none
7051 if test "$am_compiler_list" = ""; then
7052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7053 fi
7054 am__universal=false
7055 case " $depcc " in #(
7056 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7057 esac
7058
7059 for depmode in $am_compiler_list; do
7060 # Setup a source with many dependencies, because some compilers
7061 # like to wrap large dependency lists on column 80 (with \), and
7062 # we should not choose a depcomp mode which is confused by this.
7063 #
7064 # We need to recreate these files for each test, as the compiler may
7065 # overwrite some of them when testing with obscure command lines.
7066 # This happens at least with the AIX C compiler.
7067 : > sub/conftest.c
7068 for i in 1 2 3 4 5 6; do
7069 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7070 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7071 # Solaris 10 /bin/sh.
7072 echo '/* dummy */' > sub/conftst$i.h
7073 done
7074 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7075
7076 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7077 # mode. It turns out that the SunPro C++ compiler does not properly
7078 # handle '-M -o', and we need to detect this. Also, some Intel
7079 # versions had trouble with output in subdirs.
7080 am__obj=sub/conftest.${OBJEXT-o}
7081 am__minus_obj="-o $am__obj"
7082 case $depmode in
7083 gcc)
7084 # This depmode causes a compiler race in universal mode.
7085 test "$am__universal" = false || continue
7086 ;;
7087 nosideeffect)
7088 # After this tag, mechanisms are not by side-effect, so they'll
7089 # only be used when explicitly requested.
7090 if test "x$enable_dependency_tracking" = xyes; then
7091 continue
7092 else
7093 break
7094 fi
7095 ;;
7096 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7097 # This compiler won't grok '-c -o', but also, the minuso test has
7098 # not run yet. These depmodes are late enough in the game, and
7099 # so weak that their functioning should not be impacted.
7100 am__obj=conftest.${OBJEXT-o}
7101 am__minus_obj=
7102 ;;
7103 none) break ;;
7104 esac
7105 if depmode=$depmode \
7106 source=sub/conftest.c object=$am__obj \
7107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7108 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7109 >/dev/null 2>conftest.err &&
7110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7112 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7114 # icc doesn't choke on unknown options, it will just issue warnings
7115 # or remarks (even with -Werror). So we grep stderr for any message
7116 # that says an option was ignored or not supported.
7117 # When given -MP, icc 7.0 and 7.1 complain thusly:
7118 # icc: Command line warning: ignoring option '-M'; no argument required
7119 # The diagnosis changed in icc 8.0:
7120 # icc: Command line remark: option '-MP' not supported
7121 if (grep 'ignoring option' conftest.err ||
7122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7123 am_cv_CXX_dependencies_compiler_type=$depmode
7124 break
7125 fi
7126 fi
7127 done
7128
7129 cd ..
7130 rm -rf conftest.dir
7131 else
7132 am_cv_CXX_dependencies_compiler_type=none
7133 fi
7134
7135 fi
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7137 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7138 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7139
7140 if
7141 test "x$enable_dependency_tracking" != xno \
7142 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7143 am__fastdepCXX_TRUE=
7144 am__fastdepCXX_FALSE='#'
7145 else
7146 am__fastdepCXX_TRUE='#'
7147 am__fastdepCXX_FALSE=
7148 fi
7149
7150
7151
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7153 printf %s "checking whether ln -s works... " >&6; }
7154 LN_S=$as_ln_s
7155 if test "$LN_S" = "ln -s"; then
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 printf "%s\n" "yes" >&6; }
7158 else
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7160 printf "%s\n" "no, using $LN_S" >&6; }
7161 fi
7162
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7164 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7165 set x ${MAKE-make}
7166 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7167 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
7168 then :
7169 printf %s "(cached) " >&6
7170 else $as_nop
7171 cat >conftest.make <<\_ACEOF
7172 SHELL = /bin/sh
7173 all:
7174 @echo '@@@%%%=$(MAKE)=@@@%%%'
7175 _ACEOF
7176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7177 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7178 *@@@%%%=?*=@@@%%%*)
7179 eval ac_cv_prog_make_${ac_make}_set=yes;;
7180 *)
7181 eval ac_cv_prog_make_${ac_make}_set=no;;
7182 esac
7183 rm -f conftest.make
7184 fi
7185 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 printf "%s\n" "yes" >&6; }
7188 SET_MAKE=
7189 else
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 printf "%s\n" "no" >&6; }
7192 SET_MAKE="MAKE=${MAKE-make}"
7193 fi
7194
7195 case `pwd` in
7196 *\ * | *\ *)
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7198 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7199 esac
7200
7201
7202
7203 macro_version='2.4.6'
7204 macro_revision='2.4.6'
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 ltmain=$ac_aux_dir/ltmain.sh
7220
7221
7222
7223 # Make sure we can run config.sub.
7224 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7225 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7226
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7228 printf %s "checking build system type... " >&6; }
7229 if test ${ac_cv_build+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else $as_nop
7233 ac_build_alias=$build_alias
7234 test "x$ac_build_alias" = x &&
7235 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7236 test "x$ac_build_alias" = x &&
7237 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7238 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7239 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7240
7241 fi
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7243 printf "%s\n" "$ac_cv_build" >&6; }
7244 case $ac_cv_build in
7245 *-*-*) ;;
7246 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7247 esac
7248 build=$ac_cv_build
7249 ac_save_IFS=$IFS; IFS='-'
7250 set x $ac_cv_build
7251 shift
7252 build_cpu=$1
7253 build_vendor=$2
7254 shift; shift
7255 # Remember, the first character of IFS is used to create $*,
7256 # except with old shells:
7257 build_os=$*
7258 IFS=$ac_save_IFS
7259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7260
7261
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7263 printf %s "checking host system type... " >&6; }
7264 if test ${ac_cv_host+y}
7265 then :
7266 printf %s "(cached) " >&6
7267 else $as_nop
7268 if test "x$host_alias" = x; then
7269 ac_cv_host=$ac_cv_build
7270 else
7271 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7272 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7273 fi
7274
7275 fi
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7277 printf "%s\n" "$ac_cv_host" >&6; }
7278 case $ac_cv_host in
7279 *-*-*) ;;
7280 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7281 esac
7282 host=$ac_cv_host
7283 ac_save_IFS=$IFS; IFS='-'
7284 set x $ac_cv_host
7285 shift
7286 host_cpu=$1
7287 host_vendor=$2
7288 shift; shift
7289 # Remember, the first character of IFS is used to create $*,
7290 # except with old shells:
7291 host_os=$*
7292 IFS=$ac_save_IFS
7293 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7294
7295
7296 # Backslashify metacharacters that are still active within
7297 # double-quoted strings.
7298 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7299
7300 # Same as above, but do not quote variable references.
7301 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7302
7303 # Sed substitution to delay expansion of an escaped shell variable in a
7304 # double_quote_subst'ed string.
7305 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7306
7307 # Sed substitution to delay expansion of an escaped single quote.
7308 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7309
7310 # Sed substitution to avoid accidental globbing in evaled expressions
7311 no_glob_subst='s/\*/\\\*/g'
7312
7313 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7314 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7315 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7316
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7318 printf %s "checking how to print strings... " >&6; }
7319 # Test print first, because it will be a builtin if present.
7320 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7322 ECHO='print -r --'
7323 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7324 ECHO='printf %s\n'
7325 else
7326 # Use this function as a fallback that always works.
7327 func_fallback_echo ()
7328 {
7329 eval 'cat <<_LTECHO_EOF
7330 $1
7331 _LTECHO_EOF'
7332 }
7333 ECHO='func_fallback_echo'
7334 fi
7335
7336 # func_echo_all arg...
7337 # Invoke $ECHO with all args, space-separated.
7338 func_echo_all ()
7339 {
7340 $ECHO ""
7341 }
7342
7343 case $ECHO in
7344 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7345 printf "%s\n" "printf" >&6; } ;;
7346 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7347 printf "%s\n" "print -r" >&6; } ;;
7348 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7349 printf "%s\n" "cat" >&6; } ;;
7350 esac
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7366 printf %s "checking for a sed that does not truncate output... " >&6; }
7367 if test ${ac_cv_path_SED+y}
7368 then :
7369 printf %s "(cached) " >&6
7370 else $as_nop
7371 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7372 for ac_i in 1 2 3 4 5 6 7; do
7373 ac_script="$ac_script$as_nl$ac_script"
7374 done
7375 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7376 { ac_script=; unset ac_script;}
7377 if test -z "$SED"; then
7378 ac_path_SED_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 case $as_dir in #(((
7385 '') as_dir=./ ;;
7386 */) ;;
7387 *) as_dir=$as_dir/ ;;
7388 esac
7389 for ac_prog in sed gsed
7390 do
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7393 as_fn_executable_p "$ac_path_SED" || continue
7394 # Check for GNU ac_path_SED and select it if it is found.
7395 # Check for GNU $ac_path_SED
7396 case `"$ac_path_SED" --version 2>&1` in
7397 *GNU*)
7398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7399 *)
7400 ac_count=0
7401 printf %s 0123456789 >"conftest.in"
7402 while :
7403 do
7404 cat "conftest.in" "conftest.in" >"conftest.tmp"
7405 mv "conftest.tmp" "conftest.in"
7406 cp "conftest.in" "conftest.nl"
7407 printf "%s\n" '' >> "conftest.nl"
7408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7410 as_fn_arith $ac_count + 1 && ac_count=$as_val
7411 if test $ac_count -gt ${ac_path_SED_max-0}; then
7412 # Best one so far, save it but keep looking for a better one
7413 ac_cv_path_SED="$ac_path_SED"
7414 ac_path_SED_max=$ac_count
7415 fi
7416 # 10*(2^10) chars as input seems more than enough
7417 test $ac_count -gt 10 && break
7418 done
7419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7420 esac
7421
7422 $ac_path_SED_found && break 3
7423 done
7424 done
7425 done
7426 IFS=$as_save_IFS
7427 if test -z "$ac_cv_path_SED"; then
7428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7429 fi
7430 else
7431 ac_cv_path_SED=$SED
7432 fi
7433
7434 fi
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7436 printf "%s\n" "$ac_cv_path_SED" >&6; }
7437 SED="$ac_cv_path_SED"
7438 rm -f conftest.sed
7439
7440 test -z "$SED" && SED=sed
7441 Xsed="$SED -e 1s/^X//"
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7454 printf %s "checking for grep that handles long lines and -e... " >&6; }
7455 if test ${ac_cv_path_GREP+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 if test -z "$GREP"; then
7460 ac_path_GREP_found=false
7461 # Loop through the user's path and test for each of PROGNAME-LIST
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7464 do
7465 IFS=$as_save_IFS
7466 case $as_dir in #(((
7467 '') as_dir=./ ;;
7468 */) ;;
7469 *) as_dir=$as_dir/ ;;
7470 esac
7471 for ac_prog in grep ggrep
7472 do
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7475 as_fn_executable_p "$ac_path_GREP" || continue
7476 # Check for GNU ac_path_GREP and select it if it is found.
7477 # Check for GNU $ac_path_GREP
7478 case `"$ac_path_GREP" --version 2>&1` in
7479 *GNU*)
7480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7481 *)
7482 ac_count=0
7483 printf %s 0123456789 >"conftest.in"
7484 while :
7485 do
7486 cat "conftest.in" "conftest.in" >"conftest.tmp"
7487 mv "conftest.tmp" "conftest.in"
7488 cp "conftest.in" "conftest.nl"
7489 printf "%s\n" 'GREP' >> "conftest.nl"
7490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7492 as_fn_arith $ac_count + 1 && ac_count=$as_val
7493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7494 # Best one so far, save it but keep looking for a better one
7495 ac_cv_path_GREP="$ac_path_GREP"
7496 ac_path_GREP_max=$ac_count
7497 fi
7498 # 10*(2^10) chars as input seems more than enough
7499 test $ac_count -gt 10 && break
7500 done
7501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7502 esac
7503
7504 $ac_path_GREP_found && break 3
7505 done
7506 done
7507 done
7508 IFS=$as_save_IFS
7509 if test -z "$ac_cv_path_GREP"; then
7510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7511 fi
7512 else
7513 ac_cv_path_GREP=$GREP
7514 fi
7515
7516 fi
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7518 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7519 GREP="$ac_cv_path_GREP"
7520
7521
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7523 printf %s "checking for egrep... " >&6; }
7524 if test ${ac_cv_path_EGREP+y}
7525 then :
7526 printf %s "(cached) " >&6
7527 else $as_nop
7528 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7529 then ac_cv_path_EGREP="$GREP -E"
7530 else
7531 if test -z "$EGREP"; then
7532 ac_path_EGREP_found=false
7533 # Loop through the user's path and test for each of PROGNAME-LIST
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7536 do
7537 IFS=$as_save_IFS
7538 case $as_dir in #(((
7539 '') as_dir=./ ;;
7540 */) ;;
7541 *) as_dir=$as_dir/ ;;
7542 esac
7543 for ac_prog in egrep
7544 do
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7547 as_fn_executable_p "$ac_path_EGREP" || continue
7548 # Check for GNU ac_path_EGREP and select it if it is found.
7549 # Check for GNU $ac_path_EGREP
7550 case `"$ac_path_EGREP" --version 2>&1` in
7551 *GNU*)
7552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7553 *)
7554 ac_count=0
7555 printf %s 0123456789 >"conftest.in"
7556 while :
7557 do
7558 cat "conftest.in" "conftest.in" >"conftest.tmp"
7559 mv "conftest.tmp" "conftest.in"
7560 cp "conftest.in" "conftest.nl"
7561 printf "%s\n" 'EGREP' >> "conftest.nl"
7562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7564 as_fn_arith $ac_count + 1 && ac_count=$as_val
7565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7566 # Best one so far, save it but keep looking for a better one
7567 ac_cv_path_EGREP="$ac_path_EGREP"
7568 ac_path_EGREP_max=$ac_count
7569 fi
7570 # 10*(2^10) chars as input seems more than enough
7571 test $ac_count -gt 10 && break
7572 done
7573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7574 esac
7575
7576 $ac_path_EGREP_found && break 3
7577 done
7578 done
7579 done
7580 IFS=$as_save_IFS
7581 if test -z "$ac_cv_path_EGREP"; then
7582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7583 fi
7584 else
7585 ac_cv_path_EGREP=$EGREP
7586 fi
7587
7588 fi
7589 fi
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7591 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7592 EGREP="$ac_cv_path_EGREP"
7593
7594
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7596 printf %s "checking for fgrep... " >&6; }
7597 if test ${ac_cv_path_FGREP+y}
7598 then :
7599 printf %s "(cached) " >&6
7600 else $as_nop
7601 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7602 then ac_cv_path_FGREP="$GREP -F"
7603 else
7604 if test -z "$FGREP"; then
7605 ac_path_FGREP_found=false
7606 # Loop through the user's path and test for each of PROGNAME-LIST
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7609 do
7610 IFS=$as_save_IFS
7611 case $as_dir in #(((
7612 '') as_dir=./ ;;
7613 */) ;;
7614 *) as_dir=$as_dir/ ;;
7615 esac
7616 for ac_prog in fgrep
7617 do
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7620 as_fn_executable_p "$ac_path_FGREP" || continue
7621 # Check for GNU ac_path_FGREP and select it if it is found.
7622 # Check for GNU $ac_path_FGREP
7623 case `"$ac_path_FGREP" --version 2>&1` in
7624 *GNU*)
7625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7626 *)
7627 ac_count=0
7628 printf %s 0123456789 >"conftest.in"
7629 while :
7630 do
7631 cat "conftest.in" "conftest.in" >"conftest.tmp"
7632 mv "conftest.tmp" "conftest.in"
7633 cp "conftest.in" "conftest.nl"
7634 printf "%s\n" 'FGREP' >> "conftest.nl"
7635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7637 as_fn_arith $ac_count + 1 && ac_count=$as_val
7638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7639 # Best one so far, save it but keep looking for a better one
7640 ac_cv_path_FGREP="$ac_path_FGREP"
7641 ac_path_FGREP_max=$ac_count
7642 fi
7643 # 10*(2^10) chars as input seems more than enough
7644 test $ac_count -gt 10 && break
7645 done
7646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7647 esac
7648
7649 $ac_path_FGREP_found && break 3
7650 done
7651 done
7652 done
7653 IFS=$as_save_IFS
7654 if test -z "$ac_cv_path_FGREP"; then
7655 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7656 fi
7657 else
7658 ac_cv_path_FGREP=$FGREP
7659 fi
7660
7661 fi
7662 fi
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7664 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7665 FGREP="$ac_cv_path_FGREP"
7666
7667
7668 test -z "$GREP" && GREP=grep
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 # Check whether --with-gnu-ld was given.
7689 if test ${with_gnu_ld+y}
7690 then :
7691 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7692 else $as_nop
7693 with_gnu_ld=no
7694 fi
7695
7696 ac_prog=ld
7697 if test yes = "$GCC"; then
7698 # Check if gcc -print-prog-name=ld gives a path.
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7700 printf %s "checking for ld used by $CC... " >&6; }
7701 case $host in
7702 *-*-mingw*)
7703 # gcc leaves a trailing carriage return, which upsets mingw
7704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7705 *)
7706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7707 esac
7708 case $ac_prog in
7709 # Accept absolute paths.
7710 [\\/]* | ?:[\\/]*)
7711 re_direlt='/[^/][^/]*/\.\./'
7712 # Canonicalize the pathname of ld
7713 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7714 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7715 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7716 done
7717 test -z "$LD" && LD=$ac_prog
7718 ;;
7719 "")
7720 # If it fails, then pretend we aren't using GCC.
7721 ac_prog=ld
7722 ;;
7723 *)
7724 # If it is relative, then search for the first ld in PATH.
7725 with_gnu_ld=unknown
7726 ;;
7727 esac
7728 elif test yes = "$with_gnu_ld"; then
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7730 printf %s "checking for GNU ld... " >&6; }
7731 else
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7733 printf %s "checking for non-GNU ld... " >&6; }
7734 fi
7735 if test ${lt_cv_path_LD+y}
7736 then :
7737 printf %s "(cached) " >&6
7738 else $as_nop
7739 if test -z "$LD"; then
7740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7741 for ac_dir in $PATH; do
7742 IFS=$lt_save_ifs
7743 test -z "$ac_dir" && ac_dir=.
7744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7745 lt_cv_path_LD=$ac_dir/$ac_prog
7746 # Check to see if the program is GNU ld. I'd rather use --version,
7747 # but apparently some variants of GNU ld only accept -v.
7748 # Break only if it was the GNU/non-GNU ld that we prefer.
7749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7750 *GNU* | *'with BFD'*)
7751 test no != "$with_gnu_ld" && break
7752 ;;
7753 *)
7754 test yes != "$with_gnu_ld" && break
7755 ;;
7756 esac
7757 fi
7758 done
7759 IFS=$lt_save_ifs
7760 else
7761 lt_cv_path_LD=$LD # Let the user override the test with a path.
7762 fi
7763 fi
7764
7765 LD=$lt_cv_path_LD
7766 if test -n "$LD"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7768 printf "%s\n" "$LD" >&6; }
7769 else
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7772 fi
7773 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7775 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7776 if test ${lt_cv_prog_gnu_ld+y}
7777 then :
7778 printf %s "(cached) " >&6
7779 else $as_nop
7780 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7781 case `$LD -v 2>&1 </dev/null` in
7782 *GNU* | *'with BFD'*)
7783 lt_cv_prog_gnu_ld=yes
7784 ;;
7785 *)
7786 lt_cv_prog_gnu_ld=no
7787 ;;
7788 esac
7789 fi
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7791 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7792 with_gnu_ld=$lt_cv_prog_gnu_ld
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7803 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7804 if test ${lt_cv_path_NM+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else $as_nop
7808 if test -n "$NM"; then
7809 # Let the user override the test.
7810 lt_cv_path_NM=$NM
7811 else
7812 lt_nm_to_check=${ac_tool_prefix}nm
7813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7814 lt_nm_to_check="$lt_nm_to_check nm"
7815 fi
7816 for lt_tmp_nm in $lt_nm_to_check; do
7817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7819 IFS=$lt_save_ifs
7820 test -z "$ac_dir" && ac_dir=.
7821 tmp_nm=$ac_dir/$lt_tmp_nm
7822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7823 # Check to see if the nm accepts a BSD-compat flag.
7824 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7825 # nm: unknown option "B" ignored
7826 # Tru64's nm complains that /dev/null is an invalid object file
7827 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7828 case $build_os in
7829 mingw*) lt_bad_file=conftest.nm/nofile ;;
7830 *) lt_bad_file=/dev/null ;;
7831 esac
7832 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7833 *$lt_bad_file* | *'Invalid file or object type'*)
7834 lt_cv_path_NM="$tmp_nm -B"
7835 break 2
7836 ;;
7837 *)
7838 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7839 */dev/null*)
7840 lt_cv_path_NM="$tmp_nm -p"
7841 break 2
7842 ;;
7843 *)
7844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7845 continue # so that we can try to find one that supports BSD flags
7846 ;;
7847 esac
7848 ;;
7849 esac
7850 fi
7851 done
7852 IFS=$lt_save_ifs
7853 done
7854 : ${lt_cv_path_NM=no}
7855 fi
7856 fi
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7858 printf "%s\n" "$lt_cv_path_NM" >&6; }
7859 if test no != "$lt_cv_path_NM"; then
7860 NM=$lt_cv_path_NM
7861 else
7862 # Didn't find any BSD compatible name lister, look for dumpbin.
7863 if test -n "$DUMPBIN"; then :
7864 # Let the user override the test.
7865 else
7866 if test -n "$ac_tool_prefix"; then
7867 for ac_prog in dumpbin "link -dump"
7868 do
7869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 printf %s "checking for $ac_word... " >&6; }
7873 if test ${ac_cv_prog_DUMPBIN+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else $as_nop
7877 if test -n "$DUMPBIN"; then
7878 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 case $as_dir in #(((
7885 '') as_dir=./ ;;
7886 */) ;;
7887 *) as_dir=$as_dir/ ;;
7888 esac
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 DUMPBIN=$ac_cv_prog_DUMPBIN
7902 if test -n "$DUMPBIN"; then
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7904 printf "%s\n" "$DUMPBIN" >&6; }
7905 else
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 printf "%s\n" "no" >&6; }
7908 fi
7909
7910
7911 test -n "$DUMPBIN" && break
7912 done
7913 fi
7914 if test -z "$DUMPBIN"; then
7915 ac_ct_DUMPBIN=$DUMPBIN
7916 for ac_prog in dumpbin "link -dump"
7917 do
7918 # Extract the first word of "$ac_prog", so it can be a program name with args.
7919 set dummy $ac_prog; ac_word=$2
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 printf %s "checking for $ac_word... " >&6; }
7922 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7923 then :
7924 printf %s "(cached) " >&6
7925 else $as_nop
7926 if test -n "$ac_ct_DUMPBIN"; then
7927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 case $as_dir in #(((
7934 '') as_dir=./ ;;
7935 */) ;;
7936 *) as_dir=$as_dir/ ;;
7937 esac
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7951 if test -n "$ac_ct_DUMPBIN"; then
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7953 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7954 else
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 printf "%s\n" "no" >&6; }
7957 fi
7958
7959
7960 test -n "$ac_ct_DUMPBIN" && break
7961 done
7962
7963 if test "x$ac_ct_DUMPBIN" = x; then
7964 DUMPBIN=":"
7965 else
7966 case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972 DUMPBIN=$ac_ct_DUMPBIN
7973 fi
7974 fi
7975
7976 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7977 *COFF*)
7978 DUMPBIN="$DUMPBIN -symbols -headers"
7979 ;;
7980 *)
7981 DUMPBIN=:
7982 ;;
7983 esac
7984 fi
7985
7986 if test : != "$DUMPBIN"; then
7987 NM=$DUMPBIN
7988 fi
7989 fi
7990 test -z "$NM" && NM=nm
7991
7992
7993
7994
7995
7996
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7998 printf %s "checking the name lister ($NM) interface... " >&6; }
7999 if test ${lt_cv_nm_interface+y}
8000 then :
8001 printf %s "(cached) " >&6
8002 else $as_nop
8003 lt_cv_nm_interface="BSD nm"
8004 echo "int some_variable = 0;" > conftest.$ac_ext
8005 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8006 (eval "$ac_compile" 2>conftest.err)
8007 cat conftest.err >&5
8008 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8009 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8010 cat conftest.err >&5
8011 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8012 cat conftest.out >&5
8013 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8014 lt_cv_nm_interface="MS dumpbin"
8015 fi
8016 rm -f conftest*
8017 fi
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8019 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8020
8021 # find the maximum length of command line arguments
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8023 printf %s "checking the maximum length of command line arguments... " >&6; }
8024 if test ${lt_cv_sys_max_cmd_len+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else $as_nop
8028 i=0
8029 teststring=ABCD
8030
8031 case $build_os in
8032 msdosdjgpp*)
8033 # On DJGPP, this test can blow up pretty badly due to problems in libc
8034 # (any single argument exceeding 2000 bytes causes a buffer overrun
8035 # during glob expansion). Even if it were fixed, the result of this
8036 # check would be larger than it should be.
8037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8038 ;;
8039
8040 gnu*)
8041 # Under GNU Hurd, this test is not required because there is
8042 # no limit to the length of command line arguments.
8043 # Libtool will interpret -1 as no limit whatsoever
8044 lt_cv_sys_max_cmd_len=-1;
8045 ;;
8046
8047 cygwin* | mingw* | cegcc*)
8048 # On Win9x/ME, this test blows up -- it succeeds, but takes
8049 # about 5 minutes as the teststring grows exponentially.
8050 # Worse, since 9x/ME are not pre-emptively multitasking,
8051 # you end up with a "frozen" computer, even though with patience
8052 # the test eventually succeeds (with a max line length of 256k).
8053 # Instead, let's just punt: use the minimum linelength reported by
8054 # all of the supported platforms: 8192 (on NT/2K/XP).
8055 lt_cv_sys_max_cmd_len=8192;
8056 ;;
8057
8058 mint*)
8059 # On MiNT this can take a long time and run out of memory.
8060 lt_cv_sys_max_cmd_len=8192;
8061 ;;
8062
8063 amigaos*)
8064 # On AmigaOS with pdksh, this test takes hours, literally.
8065 # So we just punt and use a minimum line length of 8192.
8066 lt_cv_sys_max_cmd_len=8192;
8067 ;;
8068
8069 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8070 # This has been around since 386BSD, at least. Likely further.
8071 if test -x /sbin/sysctl; then
8072 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8073 elif test -x /usr/sbin/sysctl; then
8074 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8075 else
8076 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8077 fi
8078 # And add a safety zone
8079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8081 ;;
8082
8083 interix*)
8084 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8085 lt_cv_sys_max_cmd_len=196608
8086 ;;
8087
8088 os2*)
8089 # The test takes a long time on OS/2.
8090 lt_cv_sys_max_cmd_len=8192
8091 ;;
8092
8093 osf*)
8094 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8095 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8096 # nice to cause kernel panics so lets avoid the loop below.
8097 # First set a reasonable default.
8098 lt_cv_sys_max_cmd_len=16384
8099 #
8100 if test -x /sbin/sysconfig; then
8101 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8102 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8103 esac
8104 fi
8105 ;;
8106 sco3.2v5*)
8107 lt_cv_sys_max_cmd_len=102400
8108 ;;
8109 sysv5* | sco5v6* | sysv4.2uw2*)
8110 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8111 if test -n "$kargmax"; then
8112 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8113 else
8114 lt_cv_sys_max_cmd_len=32768
8115 fi
8116 ;;
8117 *)
8118 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8119 if test -n "$lt_cv_sys_max_cmd_len" && \
8120 test undefined != "$lt_cv_sys_max_cmd_len"; then
8121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8123 else
8124 # Make teststring a little bigger before we do anything with it.
8125 # a 1K string should be a reasonable start.
8126 for i in 1 2 3 4 5 6 7 8; do
8127 teststring=$teststring$teststring
8128 done
8129 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8130 # If test is not a shell built-in, we'll probably end up computing a
8131 # maximum length that is only half of the actual maximum length, but
8132 # we can't tell.
8133 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8134 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8135 test 17 != "$i" # 1/2 MB should be enough
8136 do
8137 i=`expr $i + 1`
8138 teststring=$teststring$teststring
8139 done
8140 # Only check the string length outside the loop.
8141 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8142 teststring=
8143 # Add a significant safety factor because C++ compilers can tack on
8144 # massive amounts of additional arguments before passing them to the
8145 # linker. It appears as though 1/2 is a usable value.
8146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8147 fi
8148 ;;
8149 esac
8150
8151 fi
8152
8153 if test -n "$lt_cv_sys_max_cmd_len"; then
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8155 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8156 else
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8158 printf "%s\n" "none" >&6; }
8159 fi
8160 max_cmd_len=$lt_cv_sys_max_cmd_len
8161
8162
8163
8164
8165
8166
8167 : ${CP="cp -f"}
8168 : ${MV="mv -f"}
8169 : ${RM="rm -f"}
8170
8171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8172 lt_unset=unset
8173 else
8174 lt_unset=false
8175 fi
8176
8177
8178
8179
8180
8181 # test EBCDIC or ASCII
8182 case `echo X|tr X '\101'` in
8183 A) # ASCII based system
8184 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8185 lt_SP2NL='tr \040 \012'
8186 lt_NL2SP='tr \015\012 \040\040'
8187 ;;
8188 *) # EBCDIC based system
8189 lt_SP2NL='tr \100 \n'
8190 lt_NL2SP='tr \r\n \100\100'
8191 ;;
8192 esac
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8203 printf %s "checking how to convert $build file names to $host format... " >&6; }
8204 if test ${lt_cv_to_host_file_cmd+y}
8205 then :
8206 printf %s "(cached) " >&6
8207 else $as_nop
8208 case $host in
8209 *-*-mingw* )
8210 case $build in
8211 *-*-mingw* ) # actually msys
8212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8213 ;;
8214 *-*-cygwin* )
8215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8216 ;;
8217 * ) # otherwise, assume *nix
8218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8219 ;;
8220 esac
8221 ;;
8222 *-*-cygwin* )
8223 case $build in
8224 *-*-mingw* ) # actually msys
8225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8226 ;;
8227 *-*-cygwin* )
8228 lt_cv_to_host_file_cmd=func_convert_file_noop
8229 ;;
8230 * ) # otherwise, assume *nix
8231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8232 ;;
8233 esac
8234 ;;
8235 * ) # unhandled hosts (and "normal" native builds)
8236 lt_cv_to_host_file_cmd=func_convert_file_noop
8237 ;;
8238 esac
8239
8240 fi
8241
8242 to_host_file_cmd=$lt_cv_to_host_file_cmd
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8244 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8245
8246
8247
8248
8249
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8251 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8252 if test ${lt_cv_to_tool_file_cmd+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else $as_nop
8256 #assume ordinary cross tools, or native build.
8257 lt_cv_to_tool_file_cmd=func_convert_file_noop
8258 case $host in
8259 *-*-mingw* )
8260 case $build in
8261 *-*-mingw* ) # actually msys
8262 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8263 ;;
8264 esac
8265 ;;
8266 esac
8267
8268 fi
8269
8270 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8272 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8273
8274
8275
8276
8277
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8279 printf %s "checking for $LD option to reload object files... " >&6; }
8280 if test ${lt_cv_ld_reload_flag+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 lt_cv_ld_reload_flag='-r'
8285 fi
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8287 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8288 reload_flag=$lt_cv_ld_reload_flag
8289 case $reload_flag in
8290 "" | " "*) ;;
8291 *) reload_flag=" $reload_flag" ;;
8292 esac
8293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8294 case $host_os in
8295 cygwin* | mingw* | pw32* | cegcc*)
8296 if test yes != "$GCC"; then
8297 reload_cmds=false
8298 fi
8299 ;;
8300 darwin*)
8301 if test yes = "$GCC"; then
8302 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8303 else
8304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8305 fi
8306 ;;
8307 esac
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 if test -n "$ac_tool_prefix"; then
8318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 printf %s "checking for $ac_word... " >&6; }
8322 if test ${ac_cv_prog_OBJDUMP+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else $as_nop
8326 if test -n "$OBJDUMP"; then
8327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332 IFS=$as_save_IFS
8333 case $as_dir in #(((
8334 '') as_dir=./ ;;
8335 */) ;;
8336 *) as_dir=$as_dir/ ;;
8337 esac
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi
8349 fi
8350 OBJDUMP=$ac_cv_prog_OBJDUMP
8351 if test -n "$OBJDUMP"; then
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8353 printf "%s\n" "$OBJDUMP" >&6; }
8354 else
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 printf "%s\n" "no" >&6; }
8357 fi
8358
8359
8360 fi
8361 if test -z "$ac_cv_prog_OBJDUMP"; then
8362 ac_ct_OBJDUMP=$OBJDUMP
8363 # Extract the first word of "objdump", so it can be a program name with args.
8364 set dummy objdump; ac_word=$2
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 printf %s "checking for $ac_word... " >&6; }
8367 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8368 then :
8369 printf %s "(cached) " >&6
8370 else $as_nop
8371 if test -n "$ac_ct_OBJDUMP"; then
8372 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 case $as_dir in #(((
8379 '') as_dir=./ ;;
8380 */) ;;
8381 *) as_dir=$as_dir/ ;;
8382 esac
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393 fi
8394 fi
8395 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8396 if test -n "$ac_ct_OBJDUMP"; then
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8398 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8399 else
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 printf "%s\n" "no" >&6; }
8402 fi
8403
8404 if test "x$ac_ct_OBJDUMP" = x; then
8405 OBJDUMP="false"
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408 yes:)
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413 OBJDUMP=$ac_ct_OBJDUMP
8414 fi
8415 else
8416 OBJDUMP="$ac_cv_prog_OBJDUMP"
8417 fi
8418
8419 test -z "$OBJDUMP" && OBJDUMP=objdump
8420
8421
8422
8423
8424
8425
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8427 printf %s "checking how to recognize dependent libraries... " >&6; }
8428 if test ${lt_cv_deplibs_check_method+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else $as_nop
8432 lt_cv_file_magic_cmd='$MAGIC_CMD'
8433 lt_cv_file_magic_test_file=
8434 lt_cv_deplibs_check_method='unknown'
8435 # Need to set the preceding variable on all platforms that support
8436 # interlibrary dependencies.
8437 # 'none' -- dependencies not supported.
8438 # 'unknown' -- same as none, but documents that we really don't know.
8439 # 'pass_all' -- all dependencies passed with no checks.
8440 # 'test_compile' -- check by making test program.
8441 # 'file_magic [[regex]]' -- check by looking for files in library path
8442 # that responds to the $file_magic_cmd with a given extended regex.
8443 # If you have 'file' or equivalent on your system and you're not sure
8444 # whether 'pass_all' will *always* work, you probably want this one.
8445
8446 case $host_os in
8447 aix[4-9]*)
8448 lt_cv_deplibs_check_method=pass_all
8449 ;;
8450
8451 beos*)
8452 lt_cv_deplibs_check_method=pass_all
8453 ;;
8454
8455 bsdi[45]*)
8456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8457 lt_cv_file_magic_cmd='/usr/bin/file -L'
8458 lt_cv_file_magic_test_file=/shlib/libc.so
8459 ;;
8460
8461 cygwin*)
8462 # func_win32_libid is a shell function defined in ltmain.sh
8463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8464 lt_cv_file_magic_cmd='func_win32_libid'
8465 ;;
8466
8467 mingw* | pw32*)
8468 # Base MSYS/MinGW do not provide the 'file' command needed by
8469 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8470 # unless we find 'file', for example because we are cross-compiling.
8471 if ( file / ) >/dev/null 2>&1; then
8472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8473 lt_cv_file_magic_cmd='func_win32_libid'
8474 else
8475 # Keep this pattern in sync with the one in func_win32_libid.
8476 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8477 lt_cv_file_magic_cmd='$OBJDUMP -f'
8478 fi
8479 ;;
8480
8481 cegcc*)
8482 # use the weaker test based on 'objdump'. See mingw*.
8483 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8484 lt_cv_file_magic_cmd='$OBJDUMP -f'
8485 ;;
8486
8487 darwin* | rhapsody*)
8488 lt_cv_deplibs_check_method=pass_all
8489 ;;
8490
8491 freebsd* | dragonfly*)
8492 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8493 case $host_cpu in
8494 i*86 )
8495 # Not sure whether the presence of OpenBSD here was a mistake.
8496 # Let's accept both of them until this is cleared up.
8497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8498 lt_cv_file_magic_cmd=/usr/bin/file
8499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8500 ;;
8501 esac
8502 else
8503 lt_cv_deplibs_check_method=pass_all
8504 fi
8505 ;;
8506
8507 haiku*)
8508 lt_cv_deplibs_check_method=pass_all
8509 ;;
8510
8511 hpux10.20* | hpux11*)
8512 lt_cv_file_magic_cmd=/usr/bin/file
8513 case $host_cpu in
8514 ia64*)
8515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8517 ;;
8518 hppa*64*)
8519 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]'
8520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8521 ;;
8522 *)
8523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8525 ;;
8526 esac
8527 ;;
8528
8529 interix[3-9]*)
8530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8532 ;;
8533
8534 irix5* | irix6* | nonstopux*)
8535 case $LD in
8536 *-32|*"-32 ") libmagic=32-bit;;
8537 *-n32|*"-n32 ") libmagic=N32;;
8538 *-64|*"-64 ") libmagic=64-bit;;
8539 *) libmagic=never-match;;
8540 esac
8541 lt_cv_deplibs_check_method=pass_all
8542 ;;
8543
8544 # This must be glibc/ELF.
8545 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8546 lt_cv_deplibs_check_method=pass_all
8547 ;;
8548
8549 netbsd*)
8550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8552 else
8553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8554 fi
8555 ;;
8556
8557 newos6*)
8558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8559 lt_cv_file_magic_cmd=/usr/bin/file
8560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8561 ;;
8562
8563 *nto* | *qnx*)
8564 lt_cv_deplibs_check_method=pass_all
8565 ;;
8566
8567 openbsd* | bitrig*)
8568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8570 else
8571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8572 fi
8573 ;;
8574
8575 osf3* | osf4* | osf5*)
8576 lt_cv_deplibs_check_method=pass_all
8577 ;;
8578
8579 rdos*)
8580 lt_cv_deplibs_check_method=pass_all
8581 ;;
8582
8583 solaris*)
8584 lt_cv_deplibs_check_method=pass_all
8585 ;;
8586
8587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8588 lt_cv_deplibs_check_method=pass_all
8589 ;;
8590
8591 sysv4 | sysv4.3*)
8592 case $host_vendor in
8593 motorola)
8594 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]'
8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8596 ;;
8597 ncr)
8598 lt_cv_deplibs_check_method=pass_all
8599 ;;
8600 sequent)
8601 lt_cv_file_magic_cmd='/bin/file'
8602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8603 ;;
8604 sni)
8605 lt_cv_file_magic_cmd='/bin/file'
8606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8607 lt_cv_file_magic_test_file=/lib/libc.so
8608 ;;
8609 siemens)
8610 lt_cv_deplibs_check_method=pass_all
8611 ;;
8612 pc)
8613 lt_cv_deplibs_check_method=pass_all
8614 ;;
8615 esac
8616 ;;
8617
8618 tpf*)
8619 lt_cv_deplibs_check_method=pass_all
8620 ;;
8621 os2*)
8622 lt_cv_deplibs_check_method=pass_all
8623 ;;
8624 esac
8625
8626 fi
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8628 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8629
8630 file_magic_glob=
8631 want_nocaseglob=no
8632 if test "$build" = "$host"; then
8633 case $host_os in
8634 mingw* | pw32*)
8635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8636 want_nocaseglob=yes
8637 else
8638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8639 fi
8640 ;;
8641 esac
8642 fi
8643
8644 file_magic_cmd=$lt_cv_file_magic_cmd
8645 deplibs_check_method=$lt_cv_deplibs_check_method
8646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669 if test -n "$ac_tool_prefix"; then
8670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 printf %s "checking for $ac_word... " >&6; }
8674 if test ${ac_cv_prog_DLLTOOL+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else $as_nop
8678 if test -n "$DLLTOOL"; then
8679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684 IFS=$as_save_IFS
8685 case $as_dir in #(((
8686 '') as_dir=./ ;;
8687 */) ;;
8688 *) as_dir=$as_dir/ ;;
8689 esac
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 DLLTOOL=$ac_cv_prog_DLLTOOL
8703 if test -n "$DLLTOOL"; then
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8705 printf "%s\n" "$DLLTOOL" >&6; }
8706 else
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 printf "%s\n" "no" >&6; }
8709 fi
8710
8711
8712 fi
8713 if test -z "$ac_cv_prog_DLLTOOL"; then
8714 ac_ct_DLLTOOL=$DLLTOOL
8715 # Extract the first word of "dlltool", so it can be a program name with args.
8716 set dummy dlltool; ac_word=$2
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 printf %s "checking for $ac_word... " >&6; }
8719 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8720 then :
8721 printf %s "(cached) " >&6
8722 else $as_nop
8723 if test -n "$ac_ct_DLLTOOL"; then
8724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 case $as_dir in #(((
8731 '') as_dir=./ ;;
8732 */) ;;
8733 *) as_dir=$as_dir/ ;;
8734 esac
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 fi
8746 fi
8747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8748 if test -n "$ac_ct_DLLTOOL"; then
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8750 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8751 else
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 printf "%s\n" "no" >&6; }
8754 fi
8755
8756 if test "x$ac_ct_DLLTOOL" = x; then
8757 DLLTOOL="false"
8758 else
8759 case $cross_compiling:$ac_tool_warned in
8760 yes:)
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8763 ac_tool_warned=yes ;;
8764 esac
8765 DLLTOOL=$ac_ct_DLLTOOL
8766 fi
8767 else
8768 DLLTOOL="$ac_cv_prog_DLLTOOL"
8769 fi
8770
8771 test -z "$DLLTOOL" && DLLTOOL=dlltool
8772
8773
8774
8775
8776
8777
8778
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8780 printf %s "checking how to associate runtime and link libraries... " >&6; }
8781 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8782 then :
8783 printf %s "(cached) " >&6
8784 else $as_nop
8785 lt_cv_sharedlib_from_linklib_cmd='unknown'
8786
8787 case $host_os in
8788 cygwin* | mingw* | pw32* | cegcc*)
8789 # two different shell functions defined in ltmain.sh;
8790 # decide which one to use based on capabilities of $DLLTOOL
8791 case `$DLLTOOL --help 2>&1` in
8792 *--identify-strict*)
8793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8794 ;;
8795 *)
8796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8797 ;;
8798 esac
8799 ;;
8800 *)
8801 # fallback: assume linklib IS sharedlib
8802 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8803 ;;
8804 esac
8805
8806 fi
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8808 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8809 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8810 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8811
8812
8813
8814
8815
8816
8817
8818 if test -n "$ac_tool_prefix"; then
8819 for ac_prog in ar
8820 do
8821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 printf %s "checking for $ac_word... " >&6; }
8825 if test ${ac_cv_prog_AR+y}
8826 then :
8827 printf %s "(cached) " >&6
8828 else $as_nop
8829 if test -n "$AR"; then
8830 ac_cv_prog_AR="$AR" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835 IFS=$as_save_IFS
8836 case $as_dir in #(((
8837 '') as_dir=./ ;;
8838 */) ;;
8839 *) as_dir=$as_dir/ ;;
8840 esac
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 AR=$ac_cv_prog_AR
8854 if test -n "$AR"; then
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8856 printf "%s\n" "$AR" >&6; }
8857 else
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 printf "%s\n" "no" >&6; }
8860 fi
8861
8862
8863 test -n "$AR" && break
8864 done
8865 fi
8866 if test -z "$AR"; then
8867 ac_ct_AR=$AR
8868 for ac_prog in ar
8869 do
8870 # Extract the first word of "$ac_prog", so it can be a program name with args.
8871 set dummy $ac_prog; ac_word=$2
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 printf %s "checking for $ac_word... " >&6; }
8874 if test ${ac_cv_prog_ac_ct_AR+y}
8875 then :
8876 printf %s "(cached) " >&6
8877 else $as_nop
8878 if test -n "$ac_ct_AR"; then
8879 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884 IFS=$as_save_IFS
8885 case $as_dir in #(((
8886 '') as_dir=./ ;;
8887 */) ;;
8888 *) as_dir=$as_dir/ ;;
8889 esac
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8892 ac_cv_prog_ac_ct_AR="$ac_prog"
8893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8894 break 2
8895 fi
8896 done
8897 done
8898 IFS=$as_save_IFS
8899
8900 fi
8901 fi
8902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8903 if test -n "$ac_ct_AR"; then
8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8905 printf "%s\n" "$ac_ct_AR" >&6; }
8906 else
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 printf "%s\n" "no" >&6; }
8909 fi
8910
8911
8912 test -n "$ac_ct_AR" && break
8913 done
8914
8915 if test "x$ac_ct_AR" = x; then
8916 AR="false"
8917 else
8918 case $cross_compiling:$ac_tool_warned in
8919 yes:)
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8922 ac_tool_warned=yes ;;
8923 esac
8924 AR=$ac_ct_AR
8925 fi
8926 fi
8927
8928 : ${AR=ar}
8929 : ${AR_FLAGS=cru}
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8942 printf %s "checking for archiver @FILE support... " >&6; }
8943 if test ${lt_cv_ar_at_file+y}
8944 then :
8945 printf %s "(cached) " >&6
8946 else $as_nop
8947 lt_cv_ar_at_file=no
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950
8951 int
8952 main (void)
8953 {
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_cxx_try_compile "$LINENO"
8960 then :
8961 echo conftest.$ac_objext > conftest.lst
8962 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8964 (eval $lt_ar_try) 2>&5
8965 ac_status=$?
8966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967 test $ac_status = 0; }
8968 if test 0 -eq "$ac_status"; then
8969 # Ensure the archiver fails upon bogus file names.
8970 rm -f conftest.$ac_objext libconftest.a
8971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8972 (eval $lt_ar_try) 2>&5
8973 ac_status=$?
8974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975 test $ac_status = 0; }
8976 if test 0 -ne "$ac_status"; then
8977 lt_cv_ar_at_file=@
8978 fi
8979 fi
8980 rm -f conftest.* libconftest.a
8981
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8984
8985 fi
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8987 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8988
8989 if test no = "$lt_cv_ar_at_file"; then
8990 archiver_list_spec=
8991 else
8992 archiver_list_spec=$lt_cv_ar_at_file
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}strip; ac_word=$2
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 printf %s "checking for $ac_word... " >&6; }
9006 if test ${ac_cv_prog_STRIP+y}
9007 then :
9008 printf %s "(cached) " >&6
9009 else $as_nop
9010 if test -n "$STRIP"; then
9011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016 IFS=$as_save_IFS
9017 case $as_dir in #(((
9018 '') as_dir=./ ;;
9019 */) ;;
9020 *) as_dir=$as_dir/ ;;
9021 esac
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9026 break 2
9027 fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 STRIP=$ac_cv_prog_STRIP
9035 if test -n "$STRIP"; then
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9037 printf "%s\n" "$STRIP" >&6; }
9038 else
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 printf "%s\n" "no" >&6; }
9041 fi
9042
9043
9044 fi
9045 if test -z "$ac_cv_prog_STRIP"; then
9046 ac_ct_STRIP=$STRIP
9047 # Extract the first word of "strip", so it can be a program name with args.
9048 set dummy strip; ac_word=$2
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050 printf %s "checking for $ac_word... " >&6; }
9051 if test ${ac_cv_prog_ac_ct_STRIP+y}
9052 then :
9053 printf %s "(cached) " >&6
9054 else $as_nop
9055 if test -n "$ac_ct_STRIP"; then
9056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061 IFS=$as_save_IFS
9062 case $as_dir in #(((
9063 '') as_dir=./ ;;
9064 */) ;;
9065 *) as_dir=$as_dir/ ;;
9066 esac
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_ac_ct_STRIP="strip"
9070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073 done
9074 done
9075 IFS=$as_save_IFS
9076
9077 fi
9078 fi
9079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9080 if test -n "$ac_ct_STRIP"; then
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9082 printf "%s\n" "$ac_ct_STRIP" >&6; }
9083 else
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 printf "%s\n" "no" >&6; }
9086 fi
9087
9088 if test "x$ac_ct_STRIP" = x; then
9089 STRIP=":"
9090 else
9091 case $cross_compiling:$ac_tool_warned in
9092 yes:)
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9095 ac_tool_warned=yes ;;
9096 esac
9097 STRIP=$ac_ct_STRIP
9098 fi
9099 else
9100 STRIP="$ac_cv_prog_STRIP"
9101 fi
9102
9103 test -z "$STRIP" && STRIP=:
9104
9105
9106
9107
9108
9109
9110 if test -n "$ac_tool_prefix"; then
9111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 printf %s "checking for $ac_word... " >&6; }
9115 if test ${ac_cv_prog_RANLIB+y}
9116 then :
9117 printf %s "(cached) " >&6
9118 else $as_nop
9119 if test -n "$RANLIB"; then
9120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9121 else
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9124 do
9125 IFS=$as_save_IFS
9126 case $as_dir in #(((
9127 '') as_dir=./ ;;
9128 */) ;;
9129 *) as_dir=$as_dir/ ;;
9130 esac
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137 done
9138 done
9139 IFS=$as_save_IFS
9140
9141 fi
9142 fi
9143 RANLIB=$ac_cv_prog_RANLIB
9144 if test -n "$RANLIB"; then
9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9146 printf "%s\n" "$RANLIB" >&6; }
9147 else
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 printf "%s\n" "no" >&6; }
9150 fi
9151
9152
9153 fi
9154 if test -z "$ac_cv_prog_RANLIB"; then
9155 ac_ct_RANLIB=$RANLIB
9156 # Extract the first word of "ranlib", so it can be a program name with args.
9157 set dummy ranlib; ac_word=$2
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 printf %s "checking for $ac_word... " >&6; }
9160 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 if test -n "$ac_ct_RANLIB"; then
9165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9166 else
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9169 do
9170 IFS=$as_save_IFS
9171 case $as_dir in #(((
9172 '') as_dir=./ ;;
9173 */) ;;
9174 *) as_dir=$as_dir/ ;;
9175 esac
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9178 ac_cv_prog_ac_ct_RANLIB="ranlib"
9179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9180 break 2
9181 fi
9182 done
9183 done
9184 IFS=$as_save_IFS
9185
9186 fi
9187 fi
9188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9189 if test -n "$ac_ct_RANLIB"; then
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9191 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9192 else
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 printf "%s\n" "no" >&6; }
9195 fi
9196
9197 if test "x$ac_ct_RANLIB" = x; then
9198 RANLIB=":"
9199 else
9200 case $cross_compiling:$ac_tool_warned in
9201 yes:)
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9204 ac_tool_warned=yes ;;
9205 esac
9206 RANLIB=$ac_ct_RANLIB
9207 fi
9208 else
9209 RANLIB="$ac_cv_prog_RANLIB"
9210 fi
9211
9212 test -z "$RANLIB" && RANLIB=:
9213
9214
9215
9216
9217
9218
9219 # Determine commands to create old-style static archives.
9220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9221 old_postinstall_cmds='chmod 644 $oldlib'
9222 old_postuninstall_cmds=
9223
9224 if test -n "$RANLIB"; then
9225 case $host_os in
9226 bitrig* | openbsd*)
9227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9228 ;;
9229 *)
9230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9231 ;;
9232 esac
9233 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9234 fi
9235
9236 case $host_os in
9237 darwin*)
9238 lock_old_archive_extraction=yes ;;
9239 *)
9240 lock_old_archive_extraction=no ;;
9241 esac
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 # If no C compiler was specified, use CC.
9282 LTCC=${LTCC-"$CC"}
9283
9284 # If no C compiler flags were specified, use CFLAGS.
9285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9286
9287 # Allow CC to be a program name with arguments.
9288 compiler=$CC
9289
9290
9291 # Check for command to grab the raw symbol name followed by C symbol from nm.
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9293 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9294 if test ${lt_cv_sys_global_symbol_pipe+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else $as_nop
9298
9299 # These are sane defaults that work on at least a few old systems.
9300 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9301
9302 # Character class describing NM global symbol codes.
9303 symcode='[BCDEGRST]'
9304
9305 # Regexp to match symbols that can be accessed directly from C.
9306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9307
9308 # Define system-specific variables.
9309 case $host_os in
9310 aix*)
9311 symcode='[BCDT]'
9312 ;;
9313 cygwin* | mingw* | pw32* | cegcc*)
9314 symcode='[ABCDGISTW]'
9315 ;;
9316 hpux*)
9317 if test ia64 = "$host_cpu"; then
9318 symcode='[ABCDEGRST]'
9319 fi
9320 ;;
9321 irix* | nonstopux*)
9322 symcode='[BCDEGRST]'
9323 ;;
9324 osf*)
9325 symcode='[BCDEGQRST]'
9326 ;;
9327 solaris*)
9328 symcode='[BDRT]'
9329 ;;
9330 sco3.2v5*)
9331 symcode='[DT]'
9332 ;;
9333 sysv4.2uw2*)
9334 symcode='[DT]'
9335 ;;
9336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9337 symcode='[ABDT]'
9338 ;;
9339 sysv4)
9340 symcode='[DFNSTU]'
9341 ;;
9342 esac
9343
9344 # If we're using GNU nm, then use its standard symbol codes.
9345 case `$NM -V 2>&1` in
9346 *GNU* | *'with BFD'*)
9347 symcode='[ABCDGIRSTW]' ;;
9348 esac
9349
9350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9351 # Gets list of data symbols to import.
9352 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9353 # Adjust the below global symbol transforms to fixup imported variables.
9354 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9355 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9356 lt_c_name_lib_hook="\
9357 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9358 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9359 else
9360 # Disable hooks by default.
9361 lt_cv_sys_global_symbol_to_import=
9362 lt_cdecl_hook=
9363 lt_c_name_hook=
9364 lt_c_name_lib_hook=
9365 fi
9366
9367 # Transform an extracted symbol line into a proper C declaration.
9368 # Some systems (esp. on ia64) link data and code symbols differently,
9369 # so use this general approach.
9370 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9371 $lt_cdecl_hook\
9372 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9373 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9374
9375 # Transform an extracted symbol line into symbol name and symbol address
9376 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9377 $lt_c_name_hook\
9378 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9379 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9380
9381 # Transform an extracted symbol line into symbol name with lib prefix and
9382 # symbol address.
9383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9384 $lt_c_name_lib_hook\
9385 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9386 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9387 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9388
9389 # Handle CRLF in mingw tool chain
9390 opt_cr=
9391 case $build_os in
9392 mingw*)
9393 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9394 ;;
9395 esac
9396
9397 # Try without a prefix underscore, then with it.
9398 for ac_symprfx in "" "_"; do
9399
9400 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9401 symxfrm="\\1 $ac_symprfx\\2 \\2"
9402
9403 # Write the raw and C identifiers.
9404 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9405 # Fake it for dumpbin and say T for any non-static function,
9406 # D for any global variable and I for any imported variable.
9407 # Also find C++ and __fastcall symbols from MSVC++,
9408 # which start with @ or ?.
9409 lt_cv_sys_global_symbol_pipe="$AWK '"\
9410 " {last_section=section; section=\$ 3};"\
9411 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9412 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9413 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9414 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9415 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9416 " \$ 0!~/External *\|/{next};"\
9417 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9418 " {if(hide[section]) next};"\
9419 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9420 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9421 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9422 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9423 " ' prfx=^$ac_symprfx"
9424 else
9425 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9426 fi
9427 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9428
9429 # Check to see that the pipe works correctly.
9430 pipe_works=no
9431
9432 rm -f conftest*
9433 cat > conftest.$ac_ext <<_LT_EOF
9434 #ifdef __cplusplus
9435 extern "C" {
9436 #endif
9437 char nm_test_var;
9438 void nm_test_func(void);
9439 void nm_test_func(void){}
9440 #ifdef __cplusplus
9441 }
9442 #endif
9443 int main(){nm_test_var='a';nm_test_func();return(0);}
9444 _LT_EOF
9445
9446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9447 (eval $ac_compile) 2>&5
9448 ac_status=$?
9449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9450 test $ac_status = 0; }; then
9451 # Now try to grab the symbols.
9452 nlist=conftest.nm
9453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9454 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9455 ac_status=$?
9456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9457 test $ac_status = 0; } && test -s "$nlist"; then
9458 # Try sorting and uniquifying the output.
9459 if sort "$nlist" | uniq > "$nlist"T; then
9460 mv -f "$nlist"T "$nlist"
9461 else
9462 rm -f "$nlist"T
9463 fi
9464
9465 # Make sure that we snagged all the symbols we need.
9466 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9467 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9468 cat <<_LT_EOF > conftest.$ac_ext
9469 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9470 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9471 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9472 relocations are performed -- see ld's documentation on pseudo-relocs. */
9473 # define LT_DLSYM_CONST
9474 #elif defined __osf__
9475 /* This system does not cope well with relocations in const data. */
9476 # define LT_DLSYM_CONST
9477 #else
9478 # define LT_DLSYM_CONST const
9479 #endif
9480
9481 #ifdef __cplusplus
9482 extern "C" {
9483 #endif
9484
9485 _LT_EOF
9486 # Now generate the symbol file.
9487 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9488
9489 cat <<_LT_EOF >> conftest.$ac_ext
9490
9491 /* The mapping between symbol names and symbols. */
9492 LT_DLSYM_CONST struct {
9493 const char *name;
9494 void *address;
9495 }
9496 lt__PROGRAM__LTX_preloaded_symbols[] =
9497 {
9498 { "@PROGRAM@", (void *) 0 },
9499 _LT_EOF
9500 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9501 cat <<\_LT_EOF >> conftest.$ac_ext
9502 {0, (void *) 0}
9503 };
9504
9505 /* This works around a problem in FreeBSD linker */
9506 #ifdef FREEBSD_WORKAROUND
9507 static const void *lt_preloaded_setup() {
9508 return lt__PROGRAM__LTX_preloaded_symbols;
9509 }
9510 #endif
9511
9512 #ifdef __cplusplus
9513 }
9514 #endif
9515 _LT_EOF
9516 # Now try linking the two files.
9517 mv conftest.$ac_objext conftstm.$ac_objext
9518 lt_globsym_save_LIBS=$LIBS
9519 lt_globsym_save_CFLAGS=$CFLAGS
9520 LIBS=conftstm.$ac_objext
9521 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9523 (eval $ac_link) 2>&5
9524 ac_status=$?
9525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9527 pipe_works=yes
9528 fi
9529 LIBS=$lt_globsym_save_LIBS
9530 CFLAGS=$lt_globsym_save_CFLAGS
9531 else
9532 echo "cannot find nm_test_func in $nlist" >&5
9533 fi
9534 else
9535 echo "cannot find nm_test_var in $nlist" >&5
9536 fi
9537 else
9538 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9539 fi
9540 else
9541 echo "$progname: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 fi
9544 rm -rf conftest* conftst*
9545
9546 # Do not use the global_symbol_pipe unless it works.
9547 if test yes = "$pipe_works"; then
9548 break
9549 else
9550 lt_cv_sys_global_symbol_pipe=
9551 fi
9552 done
9553
9554 fi
9555
9556 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9557 lt_cv_sys_global_symbol_to_cdecl=
9558 fi
9559 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9561 printf "%s\n" "failed" >&6; }
9562 else
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9564 printf "%s\n" "ok" >&6; }
9565 fi
9566
9567 # Response file support.
9568 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9569 nm_file_list_spec='@'
9570 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9571 nm_file_list_spec='@'
9572 fi
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9611 printf %s "checking for sysroot... " >&6; }
9612
9613 # Check whether --with-sysroot was given.
9614 if test ${with_sysroot+y}
9615 then :
9616 withval=$with_sysroot;
9617 else $as_nop
9618 with_sysroot=no
9619 fi
9620
9621
9622 lt_sysroot=
9623 case $with_sysroot in #(
9624 yes)
9625 if test yes = "$GCC"; then
9626 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9627 fi
9628 ;; #(
9629 /*)
9630 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9631 ;; #(
9632 no|'')
9633 ;; #(
9634 *)
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9636 printf "%s\n" "$with_sysroot" >&6; }
9637 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9638 ;;
9639 esac
9640
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9642 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9643
9644
9645
9646
9647
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9649 printf %s "checking for a working dd... " >&6; }
9650 if test ${ac_cv_path_lt_DD+y}
9651 then :
9652 printf %s "(cached) " >&6
9653 else $as_nop
9654 printf 0123456789abcdef0123456789abcdef >conftest.i
9655 cat conftest.i conftest.i >conftest2.i
9656 : ${lt_DD:=$DD}
9657 if test -z "$lt_DD"; then
9658 ac_path_lt_DD_found=false
9659 # Loop through the user's path and test for each of PROGNAME-LIST
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663 IFS=$as_save_IFS
9664 case $as_dir in #(((
9665 '') as_dir=./ ;;
9666 */) ;;
9667 *) as_dir=$as_dir/ ;;
9668 esac
9669 for ac_prog in dd
9670 do
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9673 as_fn_executable_p "$ac_path_lt_DD" || continue
9674 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9675 cmp -s conftest.i conftest.out \
9676 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9677 fi
9678 $ac_path_lt_DD_found && break 3
9679 done
9680 done
9681 done
9682 IFS=$as_save_IFS
9683 if test -z "$ac_cv_path_lt_DD"; then
9684 :
9685 fi
9686 else
9687 ac_cv_path_lt_DD=$lt_DD
9688 fi
9689
9690 rm -f conftest.i conftest2.i conftest.out
9691 fi
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9693 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9694
9695
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9697 printf %s "checking how to truncate binary pipes... " >&6; }
9698 if test ${lt_cv_truncate_bin+y}
9699 then :
9700 printf %s "(cached) " >&6
9701 else $as_nop
9702 printf 0123456789abcdef0123456789abcdef >conftest.i
9703 cat conftest.i conftest.i >conftest2.i
9704 lt_cv_truncate_bin=
9705 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9706 cmp -s conftest.i conftest.out \
9707 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9708 fi
9709 rm -f conftest.i conftest2.i conftest.out
9710 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9711 fi
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9713 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9714
9715
9716
9717
9718
9719
9720
9721 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9722 func_cc_basename ()
9723 {
9724 for cc_temp in $*""; do
9725 case $cc_temp in
9726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9728 \-*) ;;
9729 *) break;;
9730 esac
9731 done
9732 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9733 }
9734
9735 # Check whether --enable-libtool-lock was given.
9736 if test ${enable_libtool_lock+y}
9737 then :
9738 enableval=$enable_libtool_lock;
9739 fi
9740
9741 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9742
9743 # Some flags need to be propagated to the compiler or linker for good
9744 # libtool support.
9745 case $host in
9746 ia64-*-hpux*)
9747 # Find out what ABI is being produced by ac_compile, and set mode
9748 # options accordingly.
9749 echo 'int i;' > conftest.$ac_ext
9750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9751 (eval $ac_compile) 2>&5
9752 ac_status=$?
9753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9754 test $ac_status = 0; }; then
9755 case `/usr/bin/file conftest.$ac_objext` in
9756 *ELF-32*)
9757 HPUX_IA64_MODE=32
9758 ;;
9759 *ELF-64*)
9760 HPUX_IA64_MODE=64
9761 ;;
9762 esac
9763 fi
9764 rm -rf conftest*
9765 ;;
9766 *-*-irix6*)
9767 # Find out what ABI is being produced by ac_compile, and set linker
9768 # options accordingly.
9769 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9771 (eval $ac_compile) 2>&5
9772 ac_status=$?
9773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9774 test $ac_status = 0; }; then
9775 if test yes = "$lt_cv_prog_gnu_ld"; then
9776 case `/usr/bin/file conftest.$ac_objext` in
9777 *32-bit*)
9778 LD="${LD-ld} -melf32bsmip"
9779 ;;
9780 *N32*)
9781 LD="${LD-ld} -melf32bmipn32"
9782 ;;
9783 *64-bit*)
9784 LD="${LD-ld} -melf64bmip"
9785 ;;
9786 esac
9787 else
9788 case `/usr/bin/file conftest.$ac_objext` in
9789 *32-bit*)
9790 LD="${LD-ld} -32"
9791 ;;
9792 *N32*)
9793 LD="${LD-ld} -n32"
9794 ;;
9795 *64-bit*)
9796 LD="${LD-ld} -64"
9797 ;;
9798 esac
9799 fi
9800 fi
9801 rm -rf conftest*
9802 ;;
9803
9804 mips64*-*linux*)
9805 # Find out what ABI is being produced by ac_compile, and set linker
9806 # options accordingly.
9807 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9809 (eval $ac_compile) 2>&5
9810 ac_status=$?
9811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812 test $ac_status = 0; }; then
9813 emul=elf
9814 case `/usr/bin/file conftest.$ac_objext` in
9815 *32-bit*)
9816 emul="${emul}32"
9817 ;;
9818 *64-bit*)
9819 emul="${emul}64"
9820 ;;
9821 esac
9822 case `/usr/bin/file conftest.$ac_objext` in
9823 *MSB*)
9824 emul="${emul}btsmip"
9825 ;;
9826 *LSB*)
9827 emul="${emul}ltsmip"
9828 ;;
9829 esac
9830 case `/usr/bin/file conftest.$ac_objext` in
9831 *N32*)
9832 emul="${emul}n32"
9833 ;;
9834 esac
9835 LD="${LD-ld} -m $emul"
9836 fi
9837 rm -rf conftest*
9838 ;;
9839
9840 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9841 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9842 # Find out what ABI is being produced by ac_compile, and set linker
9843 # options accordingly. Note that the listed cases only cover the
9844 # situations where additional linker options are needed (such as when
9845 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9846 # vice versa); the common cases where no linker options are needed do
9847 # not appear in the list.
9848 echo 'int i;' > conftest.$ac_ext
9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850 (eval $ac_compile) 2>&5
9851 ac_status=$?
9852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853 test $ac_status = 0; }; then
9854 case `/usr/bin/file conftest.o` in
9855 *32-bit*)
9856 case $host in
9857 x86_64-*kfreebsd*-gnu)
9858 LD="${LD-ld} -m elf_i386_fbsd"
9859 ;;
9860 x86_64-*linux*)
9861 case `/usr/bin/file conftest.o` in
9862 *x86-64*)
9863 LD="${LD-ld} -m elf32_x86_64"
9864 ;;
9865 *)
9866 LD="${LD-ld} -m elf_i386"
9867 ;;
9868 esac
9869 ;;
9870 powerpc64le-*linux*)
9871 LD="${LD-ld} -m elf32lppclinux"
9872 ;;
9873 powerpc64-*linux*)
9874 LD="${LD-ld} -m elf32ppclinux"
9875 ;;
9876 s390x-*linux*)
9877 LD="${LD-ld} -m elf_s390"
9878 ;;
9879 sparc64-*linux*)
9880 LD="${LD-ld} -m elf32_sparc"
9881 ;;
9882 esac
9883 ;;
9884 *64-bit*)
9885 case $host in
9886 x86_64-*kfreebsd*-gnu)
9887 LD="${LD-ld} -m elf_x86_64_fbsd"
9888 ;;
9889 x86_64-*linux*)
9890 LD="${LD-ld} -m elf_x86_64"
9891 ;;
9892 powerpcle-*linux*)
9893 LD="${LD-ld} -m elf64lppc"
9894 ;;
9895 powerpc-*linux*)
9896 LD="${LD-ld} -m elf64ppc"
9897 ;;
9898 s390*-*linux*|s390*-*tpf*)
9899 LD="${LD-ld} -m elf64_s390"
9900 ;;
9901 sparc*-*linux*)
9902 LD="${LD-ld} -m elf64_sparc"
9903 ;;
9904 esac
9905 ;;
9906 esac
9907 fi
9908 rm -rf conftest*
9909 ;;
9910
9911 *-*-sco3.2v5*)
9912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9913 SAVE_CFLAGS=$CFLAGS
9914 CFLAGS="$CFLAGS -belf"
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9916 printf %s "checking whether the C compiler needs -belf... " >&6; }
9917 if test ${lt_cv_cc_needs_belf+y}
9918 then :
9919 printf %s "(cached) " >&6
9920 else $as_nop
9921 ac_ext=c
9922 ac_cpp='$CPP $CPPFLAGS'
9923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9926
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929
9930 int
9931 main (void)
9932 {
9933
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"
9939 then :
9940 lt_cv_cc_needs_belf=yes
9941 else $as_nop
9942 lt_cv_cc_needs_belf=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9945 conftest$ac_exeext conftest.$ac_ext
9946 ac_ext=c
9947 ac_cpp='$CPP $CPPFLAGS'
9948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
9952 fi
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9954 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9955 if test yes != "$lt_cv_cc_needs_belf"; then
9956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9957 CFLAGS=$SAVE_CFLAGS
9958 fi
9959 ;;
9960 *-*solaris*)
9961 # Find out what ABI is being produced by ac_compile, and set linker
9962 # options accordingly.
9963 echo 'int i;' > conftest.$ac_ext
9964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9965 (eval $ac_compile) 2>&5
9966 ac_status=$?
9967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9968 test $ac_status = 0; }; then
9969 case `/usr/bin/file conftest.o` in
9970 *64-bit*)
9971 case $lt_cv_prog_gnu_ld in
9972 yes*)
9973 case $host in
9974 i?86-*-solaris*|x86_64-*-solaris*)
9975 LD="${LD-ld} -m elf_x86_64"
9976 ;;
9977 sparc*-*-solaris*)
9978 LD="${LD-ld} -m elf64_sparc"
9979 ;;
9980 esac
9981 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9982 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9983 LD=${LD-ld}_sol2
9984 fi
9985 ;;
9986 *)
9987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9988 LD="${LD-ld} -64"
9989 fi
9990 ;;
9991 esac
9992 ;;
9993 esac
9994 fi
9995 rm -rf conftest*
9996 ;;
9997 esac
9998
9999 need_locks=$enable_libtool_lock
10000
10001 if test -n "$ac_tool_prefix"; then
10002 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10003 set dummy ${ac_tool_prefix}mt; ac_word=$2
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 printf %s "checking for $ac_word... " >&6; }
10006 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10007 then :
10008 printf %s "(cached) " >&6
10009 else $as_nop
10010 if test -n "$MANIFEST_TOOL"; then
10011 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10012 else
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016 IFS=$as_save_IFS
10017 case $as_dir in #(((
10018 '') as_dir=./ ;;
10019 */) ;;
10020 *) as_dir=$as_dir/ ;;
10021 esac
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10024 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10026 break 2
10027 fi
10028 done
10029 done
10030 IFS=$as_save_IFS
10031
10032 fi
10033 fi
10034 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10035 if test -n "$MANIFEST_TOOL"; then
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10037 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10038 else
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 printf "%s\n" "no" >&6; }
10041 fi
10042
10043
10044 fi
10045 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10046 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10047 # Extract the first word of "mt", so it can be a program name with args.
10048 set dummy mt; ac_word=$2
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 printf %s "checking for $ac_word... " >&6; }
10051 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10052 then :
10053 printf %s "(cached) " >&6
10054 else $as_nop
10055 if test -n "$ac_ct_MANIFEST_TOOL"; then
10056 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061 IFS=$as_save_IFS
10062 case $as_dir in #(((
10063 '') as_dir=./ ;;
10064 */) ;;
10065 *) as_dir=$as_dir/ ;;
10066 esac
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10069 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10071 break 2
10072 fi
10073 done
10074 done
10075 IFS=$as_save_IFS
10076
10077 fi
10078 fi
10079 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10080 if test -n "$ac_ct_MANIFEST_TOOL"; then
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10082 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10083 else
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 printf "%s\n" "no" >&6; }
10086 fi
10087
10088 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10089 MANIFEST_TOOL=":"
10090 else
10091 case $cross_compiling:$ac_tool_warned in
10092 yes:)
10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10095 ac_tool_warned=yes ;;
10096 esac
10097 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10098 fi
10099 else
10100 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10101 fi
10102
10103 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10105 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10106 if test ${lt_cv_path_mainfest_tool+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else $as_nop
10110 lt_cv_path_mainfest_tool=no
10111 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10112 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10113 cat conftest.err >&5
10114 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10115 lt_cv_path_mainfest_tool=yes
10116 fi
10117 rm -f conftest*
10118 fi
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10120 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10121 if test yes != "$lt_cv_path_mainfest_tool"; then
10122 MANIFEST_TOOL=:
10123 fi
10124
10125
10126
10127
10128
10129
10130 case $host_os in
10131 rhapsody* | darwin*)
10132 if test -n "$ac_tool_prefix"; then
10133 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10134 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10136 printf %s "checking for $ac_word... " >&6; }
10137 if test ${ac_cv_prog_DSYMUTIL+y}
10138 then :
10139 printf %s "(cached) " >&6
10140 else $as_nop
10141 if test -n "$DSYMUTIL"; then
10142 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147 IFS=$as_save_IFS
10148 case $as_dir in #(((
10149 '') as_dir=./ ;;
10150 */) ;;
10151 *) as_dir=$as_dir/ ;;
10152 esac
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10155 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10157 break 2
10158 fi
10159 done
10160 done
10161 IFS=$as_save_IFS
10162
10163 fi
10164 fi
10165 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10166 if test -n "$DSYMUTIL"; then
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10168 printf "%s\n" "$DSYMUTIL" >&6; }
10169 else
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 printf "%s\n" "no" >&6; }
10172 fi
10173
10174
10175 fi
10176 if test -z "$ac_cv_prog_DSYMUTIL"; then
10177 ac_ct_DSYMUTIL=$DSYMUTIL
10178 # Extract the first word of "dsymutil", so it can be a program name with args.
10179 set dummy dsymutil; ac_word=$2
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 printf %s "checking for $ac_word... " >&6; }
10182 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10183 then :
10184 printf %s "(cached) " >&6
10185 else $as_nop
10186 if test -n "$ac_ct_DSYMUTIL"; then
10187 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10188 else
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10191 do
10192 IFS=$as_save_IFS
10193 case $as_dir in #(((
10194 '') as_dir=./ ;;
10195 */) ;;
10196 *) as_dir=$as_dir/ ;;
10197 esac
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204 done
10205 done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10211 if test -n "$ac_ct_DSYMUTIL"; then
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10213 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10214 else
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 printf "%s\n" "no" >&6; }
10217 fi
10218
10219 if test "x$ac_ct_DSYMUTIL" = x; then
10220 DSYMUTIL=":"
10221 else
10222 case $cross_compiling:$ac_tool_warned in
10223 yes:)
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10226 ac_tool_warned=yes ;;
10227 esac
10228 DSYMUTIL=$ac_ct_DSYMUTIL
10229 fi
10230 else
10231 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10232 fi
10233
10234 if test -n "$ac_tool_prefix"; then
10235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10236 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 printf %s "checking for $ac_word... " >&6; }
10239 if test ${ac_cv_prog_NMEDIT+y}
10240 then :
10241 printf %s "(cached) " >&6
10242 else $as_nop
10243 if test -n "$NMEDIT"; then
10244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10248 do
10249 IFS=$as_save_IFS
10250 case $as_dir in #(((
10251 '') as_dir=./ ;;
10252 */) ;;
10253 *) as_dir=$as_dir/ ;;
10254 esac
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261 done
10262 done
10263 IFS=$as_save_IFS
10264
10265 fi
10266 fi
10267 NMEDIT=$ac_cv_prog_NMEDIT
10268 if test -n "$NMEDIT"; then
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10270 printf "%s\n" "$NMEDIT" >&6; }
10271 else
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 printf "%s\n" "no" >&6; }
10274 fi
10275
10276
10277 fi
10278 if test -z "$ac_cv_prog_NMEDIT"; then
10279 ac_ct_NMEDIT=$NMEDIT
10280 # Extract the first word of "nmedit", so it can be a program name with args.
10281 set dummy nmedit; ac_word=$2
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 printf %s "checking for $ac_word... " >&6; }
10284 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10285 then :
10286 printf %s "(cached) " >&6
10287 else $as_nop
10288 if test -n "$ac_ct_NMEDIT"; then
10289 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294 IFS=$as_save_IFS
10295 case $as_dir in #(((
10296 '') as_dir=./ ;;
10297 */) ;;
10298 *) as_dir=$as_dir/ ;;
10299 esac
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306 done
10307 done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10313 if test -n "$ac_ct_NMEDIT"; then
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10315 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10316 else
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 printf "%s\n" "no" >&6; }
10319 fi
10320
10321 if test "x$ac_ct_NMEDIT" = x; then
10322 NMEDIT=":"
10323 else
10324 case $cross_compiling:$ac_tool_warned in
10325 yes:)
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328 ac_tool_warned=yes ;;
10329 esac
10330 NMEDIT=$ac_ct_NMEDIT
10331 fi
10332 else
10333 NMEDIT="$ac_cv_prog_NMEDIT"
10334 fi
10335
10336 if test -n "$ac_tool_prefix"; then
10337 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10338 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 printf %s "checking for $ac_word... " >&6; }
10341 if test ${ac_cv_prog_LIPO+y}
10342 then :
10343 printf %s "(cached) " >&6
10344 else $as_nop
10345 if test -n "$LIPO"; then
10346 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351 IFS=$as_save_IFS
10352 case $as_dir in #(((
10353 '') as_dir=./ ;;
10354 */) ;;
10355 *) as_dir=$as_dir/ ;;
10356 esac
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363 done
10364 done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 LIPO=$ac_cv_prog_LIPO
10370 if test -n "$LIPO"; then
10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10372 printf "%s\n" "$LIPO" >&6; }
10373 else
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 printf "%s\n" "no" >&6; }
10376 fi
10377
10378
10379 fi
10380 if test -z "$ac_cv_prog_LIPO"; then
10381 ac_ct_LIPO=$LIPO
10382 # Extract the first word of "lipo", so it can be a program name with args.
10383 set dummy lipo; ac_word=$2
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 printf %s "checking for $ac_word... " >&6; }
10386 if test ${ac_cv_prog_ac_ct_LIPO+y}
10387 then :
10388 printf %s "(cached) " >&6
10389 else $as_nop
10390 if test -n "$ac_ct_LIPO"; then
10391 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10392 else
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10395 do
10396 IFS=$as_save_IFS
10397 case $as_dir in #(((
10398 '') as_dir=./ ;;
10399 */) ;;
10400 *) as_dir=$as_dir/ ;;
10401 esac
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10404 ac_cv_prog_ac_ct_LIPO="lipo"
10405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10406 break 2
10407 fi
10408 done
10409 done
10410 IFS=$as_save_IFS
10411
10412 fi
10413 fi
10414 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10415 if test -n "$ac_ct_LIPO"; then
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10417 printf "%s\n" "$ac_ct_LIPO" >&6; }
10418 else
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 printf "%s\n" "no" >&6; }
10421 fi
10422
10423 if test "x$ac_ct_LIPO" = x; then
10424 LIPO=":"
10425 else
10426 case $cross_compiling:$ac_tool_warned in
10427 yes:)
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10430 ac_tool_warned=yes ;;
10431 esac
10432 LIPO=$ac_ct_LIPO
10433 fi
10434 else
10435 LIPO="$ac_cv_prog_LIPO"
10436 fi
10437
10438 if test -n "$ac_tool_prefix"; then
10439 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10440 set dummy ${ac_tool_prefix}otool; ac_word=$2
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 printf %s "checking for $ac_word... " >&6; }
10443 if test ${ac_cv_prog_OTOOL+y}
10444 then :
10445 printf %s "(cached) " >&6
10446 else $as_nop
10447 if test -n "$OTOOL"; then
10448 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10449 else
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453 IFS=$as_save_IFS
10454 case $as_dir in #(((
10455 '') as_dir=./ ;;
10456 */) ;;
10457 *) as_dir=$as_dir/ ;;
10458 esac
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465 done
10466 done
10467 IFS=$as_save_IFS
10468
10469 fi
10470 fi
10471 OTOOL=$ac_cv_prog_OTOOL
10472 if test -n "$OTOOL"; then
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10474 printf "%s\n" "$OTOOL" >&6; }
10475 else
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 printf "%s\n" "no" >&6; }
10478 fi
10479
10480
10481 fi
10482 if test -z "$ac_cv_prog_OTOOL"; then
10483 ac_ct_OTOOL=$OTOOL
10484 # Extract the first word of "otool", so it can be a program name with args.
10485 set dummy otool; ac_word=$2
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 printf %s "checking for $ac_word... " >&6; }
10488 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10489 then :
10490 printf %s "(cached) " >&6
10491 else $as_nop
10492 if test -n "$ac_ct_OTOOL"; then
10493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498 IFS=$as_save_IFS
10499 case $as_dir in #(((
10500 '') as_dir=./ ;;
10501 */) ;;
10502 *) as_dir=$as_dir/ ;;
10503 esac
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_ac_ct_OTOOL="otool"
10507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510 done
10511 done
10512 IFS=$as_save_IFS
10513
10514 fi
10515 fi
10516 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10517 if test -n "$ac_ct_OTOOL"; then
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10519 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10520 else
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 printf "%s\n" "no" >&6; }
10523 fi
10524
10525 if test "x$ac_ct_OTOOL" = x; then
10526 OTOOL=":"
10527 else
10528 case $cross_compiling:$ac_tool_warned in
10529 yes:)
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532 ac_tool_warned=yes ;;
10533 esac
10534 OTOOL=$ac_ct_OTOOL
10535 fi
10536 else
10537 OTOOL="$ac_cv_prog_OTOOL"
10538 fi
10539
10540 if test -n "$ac_tool_prefix"; then
10541 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10542 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 printf %s "checking for $ac_word... " >&6; }
10545 if test ${ac_cv_prog_OTOOL64+y}
10546 then :
10547 printf %s "(cached) " >&6
10548 else $as_nop
10549 if test -n "$OTOOL64"; then
10550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10551 else
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10554 do
10555 IFS=$as_save_IFS
10556 case $as_dir in #(((
10557 '') as_dir=./ ;;
10558 */) ;;
10559 *) as_dir=$as_dir/ ;;
10560 esac
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567 done
10568 done
10569 IFS=$as_save_IFS
10570
10571 fi
10572 fi
10573 OTOOL64=$ac_cv_prog_OTOOL64
10574 if test -n "$OTOOL64"; then
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10576 printf "%s\n" "$OTOOL64" >&6; }
10577 else
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 printf "%s\n" "no" >&6; }
10580 fi
10581
10582
10583 fi
10584 if test -z "$ac_cv_prog_OTOOL64"; then
10585 ac_ct_OTOOL64=$OTOOL64
10586 # Extract the first word of "otool64", so it can be a program name with args.
10587 set dummy otool64; ac_word=$2
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 printf %s "checking for $ac_word... " >&6; }
10590 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else $as_nop
10594 if test -n "$ac_ct_OTOOL64"; then
10595 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600 IFS=$as_save_IFS
10601 case $as_dir in #(((
10602 '') as_dir=./ ;;
10603 */) ;;
10604 *) as_dir=$as_dir/ ;;
10605 esac
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10608 ac_cv_prog_ac_ct_OTOOL64="otool64"
10609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612 done
10613 done
10614 IFS=$as_save_IFS
10615
10616 fi
10617 fi
10618 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10619 if test -n "$ac_ct_OTOOL64"; then
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10621 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10622 else
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 printf "%s\n" "no" >&6; }
10625 fi
10626
10627 if test "x$ac_ct_OTOOL64" = x; then
10628 OTOOL64=":"
10629 else
10630 case $cross_compiling:$ac_tool_warned in
10631 yes:)
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10634 ac_tool_warned=yes ;;
10635 esac
10636 OTOOL64=$ac_ct_OTOOL64
10637 fi
10638 else
10639 OTOOL64="$ac_cv_prog_OTOOL64"
10640 fi
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10669 printf %s "checking for -single_module linker flag... " >&6; }
10670 if test ${lt_cv_apple_cc_single_mod+y}
10671 then :
10672 printf %s "(cached) " >&6
10673 else $as_nop
10674 lt_cv_apple_cc_single_mod=no
10675 if test -z "$LT_MULTI_MODULE"; then
10676 # By default we will add the -single_module flag. You can override
10677 # by either setting the environment variable LT_MULTI_MODULE
10678 # non-empty at configure time, or by adding -multi_module to the
10679 # link flags.
10680 rm -rf libconftest.dylib*
10681 echo "int foo(void){return 1;}" > conftest.c
10682 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10683 -dynamiclib -Wl,-single_module conftest.c" >&5
10684 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10685 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10686 _lt_result=$?
10687 # If there is a non-empty error log, and "single_module"
10688 # appears in it, assume the flag caused a linker warning
10689 if test -s conftest.err && $GREP single_module conftest.err; then
10690 cat conftest.err >&5
10691 # Otherwise, if the output was created with a 0 exit code from
10692 # the compiler, it worked.
10693 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10694 lt_cv_apple_cc_single_mod=yes
10695 else
10696 cat conftest.err >&5
10697 fi
10698 rm -rf libconftest.dylib*
10699 rm -f conftest.*
10700 fi
10701 fi
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10703 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10704
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10706 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10707 if test ${lt_cv_ld_exported_symbols_list+y}
10708 then :
10709 printf %s "(cached) " >&6
10710 else $as_nop
10711 lt_cv_ld_exported_symbols_list=no
10712 save_LDFLAGS=$LDFLAGS
10713 echo "_main" > conftest.sym
10714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717
10718 int
10719 main (void)
10720 {
10721
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"
10727 then :
10728 lt_cv_ld_exported_symbols_list=yes
10729 else $as_nop
10730 lt_cv_ld_exported_symbols_list=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LDFLAGS=$save_LDFLAGS
10735
10736 fi
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10738 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10739
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10741 printf %s "checking for -force_load linker flag... " >&6; }
10742 if test ${lt_cv_ld_force_load+y}
10743 then :
10744 printf %s "(cached) " >&6
10745 else $as_nop
10746 lt_cv_ld_force_load=no
10747 cat > conftest.c << _LT_EOF
10748 int forced_loaded() { return 2;}
10749 _LT_EOF
10750 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10751 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10752 echo "$AR cru libconftest.a conftest.o" >&5
10753 $AR cru libconftest.a conftest.o 2>&5
10754 echo "$RANLIB libconftest.a" >&5
10755 $RANLIB libconftest.a 2>&5
10756 cat > conftest.c << _LT_EOF
10757 int main() { return 0;}
10758 _LT_EOF
10759 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10760 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10761 _lt_result=$?
10762 if test -s conftest.err && $GREP force_load conftest.err; then
10763 cat conftest.err >&5
10764 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10765 lt_cv_ld_force_load=yes
10766 else
10767 cat conftest.err >&5
10768 fi
10769 rm -f conftest.err libconftest.a conftest conftest.c
10770 rm -rf conftest.dSYM
10771
10772 fi
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10774 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10775 case $host_os in
10776 rhapsody* | darwin1.[012])
10777 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10778 darwin1.*)
10779 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10780 darwin*)
10781 case $MACOSX_DEPLOYMENT_TARGET,$host in
10782 10.[012],*|,*powerpc*-darwin[5-8]*)
10783 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10784 *)
10785 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10786 esac
10787 ;;
10788 esac
10789 if test yes = "$lt_cv_apple_cc_single_mod"; then
10790 _lt_dar_single_mod='$single_module'
10791 fi
10792 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10793 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10794 else
10795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10796 fi
10797 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10798 _lt_dsymutil='~$DSYMUTIL $lib || :'
10799 else
10800 _lt_dsymutil=
10801 fi
10802 ;;
10803 esac
10804
10805 # func_munge_path_list VARIABLE PATH
10806 # -----------------------------------
10807 # VARIABLE is name of variable containing _space_ separated list of
10808 # directories to be munged by the contents of PATH, which is string
10809 # having a format:
10810 # "DIR[:DIR]:"
10811 # string "DIR[ DIR]" will be prepended to VARIABLE
10812 # ":DIR[:DIR]"
10813 # string "DIR[ DIR]" will be appended to VARIABLE
10814 # "DIRP[:DIRP]::[DIRA:]DIRA"
10815 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10816 # "DIRA[ DIRA]" will be appended to VARIABLE
10817 # "DIR[:DIR]"
10818 # VARIABLE will be replaced by "DIR[ DIR]"
10819 func_munge_path_list ()
10820 {
10821 case x$2 in
10822 x)
10823 ;;
10824 *:)
10825 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10826 ;;
10827 x:*)
10828 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10829 ;;
10830 *::*)
10831 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10832 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10833 ;;
10834 *)
10835 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10836 ;;
10837 esac
10838 }
10839
10840 ac_header= ac_cache=
10841 for ac_item in $ac_header_c_list
10842 do
10843 if test $ac_cache; then
10844 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10845 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10846 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10847 fi
10848 ac_header= ac_cache=
10849 elif test $ac_header; then
10850 ac_cache=$ac_item
10851 else
10852 ac_header=$ac_item
10853 fi
10854 done
10855
10856
10857
10858
10859
10860
10861
10862
10863 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10864 then :
10865
10866 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10867
10868 fi
10869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10870 "
10871 if test "x$ac_cv_header_dlfcn_h" = xyes
10872 then :
10873 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10874
10875 fi
10876
10877
10878
10879 func_stripname_cnf ()
10880 {
10881 case $2 in
10882 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10883 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10884 esac
10885 } # func_stripname_cnf
10886
10887
10888
10889
10890
10891 # Set options
10892 enable_win32_dll=yes
10893
10894 case $host in
10895 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10896 if test -n "$ac_tool_prefix"; then
10897 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10898 set dummy ${ac_tool_prefix}as; ac_word=$2
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 printf %s "checking for $ac_word... " >&6; }
10901 if test ${ac_cv_prog_AS+y}
10902 then :
10903 printf %s "(cached) " >&6
10904 else $as_nop
10905 if test -n "$AS"; then
10906 ac_cv_prog_AS="$AS" # Let the user override the test.
10907 else
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10910 do
10911 IFS=$as_save_IFS
10912 case $as_dir in #(((
10913 '') as_dir=./ ;;
10914 */) ;;
10915 *) as_dir=$as_dir/ ;;
10916 esac
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10919 ac_cv_prog_AS="${ac_tool_prefix}as"
10920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923 done
10924 done
10925 IFS=$as_save_IFS
10926
10927 fi
10928 fi
10929 AS=$ac_cv_prog_AS
10930 if test -n "$AS"; then
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10932 printf "%s\n" "$AS" >&6; }
10933 else
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 printf "%s\n" "no" >&6; }
10936 fi
10937
10938
10939 fi
10940 if test -z "$ac_cv_prog_AS"; then
10941 ac_ct_AS=$AS
10942 # Extract the first word of "as", so it can be a program name with args.
10943 set dummy as; ac_word=$2
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 printf %s "checking for $ac_word... " >&6; }
10946 if test ${ac_cv_prog_ac_ct_AS+y}
10947 then :
10948 printf %s "(cached) " >&6
10949 else $as_nop
10950 if test -n "$ac_ct_AS"; then
10951 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10952 else
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10955 do
10956 IFS=$as_save_IFS
10957 case $as_dir in #(((
10958 '') as_dir=./ ;;
10959 */) ;;
10960 *) as_dir=$as_dir/ ;;
10961 esac
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_ac_ct_AS="as"
10965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10970 IFS=$as_save_IFS
10971
10972 fi
10973 fi
10974 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10975 if test -n "$ac_ct_AS"; then
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10977 printf "%s\n" "$ac_ct_AS" >&6; }
10978 else
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 printf "%s\n" "no" >&6; }
10981 fi
10982
10983 if test "x$ac_ct_AS" = x; then
10984 AS="false"
10985 else
10986 case $cross_compiling:$ac_tool_warned in
10987 yes:)
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10990 ac_tool_warned=yes ;;
10991 esac
10992 AS=$ac_ct_AS
10993 fi
10994 else
10995 AS="$ac_cv_prog_AS"
10996 fi
10997
10998 if test -n "$ac_tool_prefix"; then
10999 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11000 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002 printf %s "checking for $ac_word... " >&6; }
11003 if test ${ac_cv_prog_DLLTOOL+y}
11004 then :
11005 printf %s "(cached) " >&6
11006 else $as_nop
11007 if test -n "$DLLTOOL"; then
11008 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11012 do
11013 IFS=$as_save_IFS
11014 case $as_dir in #(((
11015 '') as_dir=./ ;;
11016 */) ;;
11017 *) as_dir=$as_dir/ ;;
11018 esac
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11021 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11023 break 2
11024 fi
11025 done
11026 done
11027 IFS=$as_save_IFS
11028
11029 fi
11030 fi
11031 DLLTOOL=$ac_cv_prog_DLLTOOL
11032 if test -n "$DLLTOOL"; then
11033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11034 printf "%s\n" "$DLLTOOL" >&6; }
11035 else
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 printf "%s\n" "no" >&6; }
11038 fi
11039
11040
11041 fi
11042 if test -z "$ac_cv_prog_DLLTOOL"; then
11043 ac_ct_DLLTOOL=$DLLTOOL
11044 # Extract the first word of "dlltool", so it can be a program name with args.
11045 set dummy dlltool; ac_word=$2
11046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 printf %s "checking for $ac_word... " >&6; }
11048 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11049 then :
11050 printf %s "(cached) " >&6
11051 else $as_nop
11052 if test -n "$ac_ct_DLLTOOL"; then
11053 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11054 else
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11057 do
11058 IFS=$as_save_IFS
11059 case $as_dir in #(((
11060 '') as_dir=./ ;;
11061 */) ;;
11062 *) as_dir=$as_dir/ ;;
11063 esac
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11066 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11068 break 2
11069 fi
11070 done
11071 done
11072 IFS=$as_save_IFS
11073
11074 fi
11075 fi
11076 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11077 if test -n "$ac_ct_DLLTOOL"; then
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11079 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11080 else
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 printf "%s\n" "no" >&6; }
11083 fi
11084
11085 if test "x$ac_ct_DLLTOOL" = x; then
11086 DLLTOOL="false"
11087 else
11088 case $cross_compiling:$ac_tool_warned in
11089 yes:)
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11091 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11092 ac_tool_warned=yes ;;
11093 esac
11094 DLLTOOL=$ac_ct_DLLTOOL
11095 fi
11096 else
11097 DLLTOOL="$ac_cv_prog_DLLTOOL"
11098 fi
11099
11100 if test -n "$ac_tool_prefix"; then
11101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 printf %s "checking for $ac_word... " >&6; }
11105 if test ${ac_cv_prog_OBJDUMP+y}
11106 then :
11107 printf %s "(cached) " >&6
11108 else $as_nop
11109 if test -n "$OBJDUMP"; then
11110 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11111 else
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11114 do
11115 IFS=$as_save_IFS
11116 case $as_dir in #(((
11117 '') as_dir=./ ;;
11118 */) ;;
11119 *) as_dir=$as_dir/ ;;
11120 esac
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127 done
11128 done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 OBJDUMP=$ac_cv_prog_OBJDUMP
11134 if test -n "$OBJDUMP"; then
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11136 printf "%s\n" "$OBJDUMP" >&6; }
11137 else
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 printf "%s\n" "no" >&6; }
11140 fi
11141
11142
11143 fi
11144 if test -z "$ac_cv_prog_OBJDUMP"; then
11145 ac_ct_OBJDUMP=$OBJDUMP
11146 # Extract the first word of "objdump", so it can be a program name with args.
11147 set dummy objdump; ac_word=$2
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 printf %s "checking for $ac_word... " >&6; }
11150 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11151 then :
11152 printf %s "(cached) " >&6
11153 else $as_nop
11154 if test -n "$ac_ct_OBJDUMP"; then
11155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11156 else
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160 IFS=$as_save_IFS
11161 case $as_dir in #(((
11162 '') as_dir=./ ;;
11163 */) ;;
11164 *) as_dir=$as_dir/ ;;
11165 esac
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11168 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172 done
11173 done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11179 if test -n "$ac_ct_OBJDUMP"; then
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11181 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11182 else
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 printf "%s\n" "no" >&6; }
11185 fi
11186
11187 if test "x$ac_ct_OBJDUMP" = x; then
11188 OBJDUMP="false"
11189 else
11190 case $cross_compiling:$ac_tool_warned in
11191 yes:)
11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11194 ac_tool_warned=yes ;;
11195 esac
11196 OBJDUMP=$ac_ct_OBJDUMP
11197 fi
11198 else
11199 OBJDUMP="$ac_cv_prog_OBJDUMP"
11200 fi
11201
11202 ;;
11203 esac
11204
11205 test -z "$AS" && AS=as
11206
11207
11208
11209
11210
11211 test -z "$DLLTOOL" && DLLTOOL=dlltool
11212
11213
11214
11215
11216
11217 test -z "$OBJDUMP" && OBJDUMP=objdump
11218
11219
11220
11221
11222 # Check whether --enable-static was given.
11223 if test ${enable_static+y}
11224 then :
11225 enableval=$enable_static; p=${PACKAGE-default}
11226 case $enableval in
11227 yes) enable_static=yes ;;
11228 no) enable_static=no ;;
11229 *)
11230 enable_static=no
11231 # Look at the argument we got. We use all the common list separators.
11232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11233 for pkg in $enableval; do
11234 IFS=$lt_save_ifs
11235 if test "X$pkg" = "X$p"; then
11236 enable_static=yes
11237 fi
11238 done
11239 IFS=$lt_save_ifs
11240 ;;
11241 esac
11242 else $as_nop
11243 enable_static=no
11244 fi
11245
11246
11247
11248
11249
11250
11251
11252
11253 # Check whether --with-pic was given.
11254 if test ${with_pic+y}
11255 then :
11256 withval=$with_pic; lt_p=${PACKAGE-default}
11257 case $withval in
11258 yes|no) pic_mode=$withval ;;
11259 *)
11260 pic_mode=default
11261 # Look at the argument we got. We use all the common list separators.
11262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11263 for lt_pkg in $withval; do
11264 IFS=$lt_save_ifs
11265 if test "X$lt_pkg" = "X$lt_p"; then
11266 pic_mode=yes
11267 fi
11268 done
11269 IFS=$lt_save_ifs
11270 ;;
11271 esac
11272 else $as_nop
11273 pic_mode=yes
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284 enable_dlopen=no
11285
11286
11287
11288 # Check whether --enable-shared was given.
11289 if test ${enable_shared+y}
11290 then :
11291 enableval=$enable_shared; p=${PACKAGE-default}
11292 case $enableval in
11293 yes) enable_shared=yes ;;
11294 no) enable_shared=no ;;
11295 *)
11296 enable_shared=no
11297 # Look at the argument we got. We use all the common list separators.
11298 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11299 for pkg in $enableval; do
11300 IFS=$lt_save_ifs
11301 if test "X$pkg" = "X$p"; then
11302 enable_shared=yes
11303 fi
11304 done
11305 IFS=$lt_save_ifs
11306 ;;
11307 esac
11308 else $as_nop
11309 enable_shared=yes
11310 fi
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 # Check whether --enable-fast-install was given.
11323 if test ${enable_fast_install+y}
11324 then :
11325 enableval=$enable_fast_install; p=${PACKAGE-default}
11326 case $enableval in
11327 yes) enable_fast_install=yes ;;
11328 no) enable_fast_install=no ;;
11329 *)
11330 enable_fast_install=no
11331 # Look at the argument we got. We use all the common list separators.
11332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11333 for pkg in $enableval; do
11334 IFS=$lt_save_ifs
11335 if test "X$pkg" = "X$p"; then
11336 enable_fast_install=yes
11337 fi
11338 done
11339 IFS=$lt_save_ifs
11340 ;;
11341 esac
11342 else $as_nop
11343 enable_fast_install=yes
11344 fi
11345
11346
11347
11348
11349
11350
11351
11352
11353 shared_archive_member_spec=
11354 case $host,$enable_shared in
11355 power*-*-aix[5-9]*,yes)
11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11357 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11358
11359 # Check whether --with-aix-soname was given.
11360 if test ${with_aix_soname+y}
11361 then :
11362 withval=$with_aix_soname; case $withval in
11363 aix|svr4|both)
11364 ;;
11365 *)
11366 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11367 ;;
11368 esac
11369 lt_cv_with_aix_soname=$with_aix_soname
11370 else $as_nop
11371 if test ${lt_cv_with_aix_soname+y}
11372 then :
11373 printf %s "(cached) " >&6
11374 else $as_nop
11375 lt_cv_with_aix_soname=aix
11376 fi
11377
11378 with_aix_soname=$lt_cv_with_aix_soname
11379 fi
11380
11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11382 printf "%s\n" "$with_aix_soname" >&6; }
11383 if test aix != "$with_aix_soname"; then
11384 # For the AIX way of multilib, we name the shared archive member
11385 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11386 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11387 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11388 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11389 if test 64 = "${OBJECT_MODE-32}"; then
11390 shared_archive_member_spec=shr_64
11391 else
11392 shared_archive_member_spec=shr
11393 fi
11394 fi
11395 ;;
11396 *)
11397 with_aix_soname=aix
11398 ;;
11399 esac
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410 # This can be used to rebuild libtool when needed
11411 LIBTOOL_DEPS=$ltmain
11412
11413 # Always use our own libtool.
11414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 test -z "$LN_S" && LN_S="ln -s"
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460 if test -n "${ZSH_VERSION+set}"; then
11461 setopt NO_GLOB_SUBST
11462 fi
11463
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11465 printf %s "checking for objdir... " >&6; }
11466 if test ${lt_cv_objdir+y}
11467 then :
11468 printf %s "(cached) " >&6
11469 else $as_nop
11470 rm -f .libs 2>/dev/null
11471 mkdir .libs 2>/dev/null
11472 if test -d .libs; then
11473 lt_cv_objdir=.libs
11474 else
11475 # MS-DOS does not allow filenames that begin with a dot.
11476 lt_cv_objdir=_libs
11477 fi
11478 rmdir .libs 2>/dev/null
11479 fi
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11481 printf "%s\n" "$lt_cv_objdir" >&6; }
11482 objdir=$lt_cv_objdir
11483
11484
11485
11486
11487
11488 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11489
11490
11491
11492
11493 case $host_os in
11494 aix3*)
11495 # AIX sometimes has problems with the GCC collect2 program. For some
11496 # reason, if we set the COLLECT_NAMES environment variable, the problems
11497 # vanish in a puff of smoke.
11498 if test set != "${COLLECT_NAMES+set}"; then
11499 COLLECT_NAMES=
11500 export COLLECT_NAMES
11501 fi
11502 ;;
11503 esac
11504
11505 # Global variables:
11506 ofile=libtool
11507 can_build_shared=yes
11508
11509 # All known linkers require a '.a' archive for static linking (except MSVC,
11510 # which needs '.lib').
11511 libext=a
11512
11513 with_gnu_ld=$lt_cv_prog_gnu_ld
11514
11515 old_CC=$CC
11516 old_CFLAGS=$CFLAGS
11517
11518 # Set sane defaults for various variables
11519 test -z "$CC" && CC=cc
11520 test -z "$LTCC" && LTCC=$CC
11521 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11522 test -z "$LD" && LD=ld
11523 test -z "$ac_objext" && ac_objext=o
11524
11525 func_cc_basename $compiler
11526 cc_basename=$func_cc_basename_result
11527
11528
11529 # Only perform the check for file, if the check method requires it
11530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11531 case $deplibs_check_method in
11532 file_magic*)
11533 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11535 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11536 if test ${lt_cv_path_MAGIC_CMD+y}
11537 then :
11538 printf %s "(cached) " >&6
11539 else $as_nop
11540 case $MAGIC_CMD in
11541 [\\/*] | ?:[\\/]*)
11542 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11543 ;;
11544 *)
11545 lt_save_MAGIC_CMD=$MAGIC_CMD
11546 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11548 for ac_dir in $ac_dummy; do
11549 IFS=$lt_save_ifs
11550 test -z "$ac_dir" && ac_dir=.
11551 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11552 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11553 if test -n "$file_magic_test_file"; then
11554 case $deplibs_check_method in
11555 "file_magic "*)
11556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11559 $EGREP "$file_magic_regex" > /dev/null; then
11560 :
11561 else
11562 cat <<_LT_EOF 1>&2
11563
11564 *** Warning: the command libtool uses to detect shared libraries,
11565 *** $file_magic_cmd, produces output that libtool cannot recognize.
11566 *** The result is that libtool may fail to recognize shared libraries
11567 *** as such. This will affect the creation of libtool libraries that
11568 *** depend on shared libraries, but programs linked with such libtool
11569 *** libraries will work regardless of this problem. Nevertheless, you
11570 *** may want to report the problem to your system manager and/or to
11571 *** [email protected]
11572
11573 _LT_EOF
11574 fi ;;
11575 esac
11576 fi
11577 break
11578 fi
11579 done
11580 IFS=$lt_save_ifs
11581 MAGIC_CMD=$lt_save_MAGIC_CMD
11582 ;;
11583 esac
11584 fi
11585
11586 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11587 if test -n "$MAGIC_CMD"; then
11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11589 printf "%s\n" "$MAGIC_CMD" >&6; }
11590 else
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 printf "%s\n" "no" >&6; }
11593 fi
11594
11595
11596
11597
11598
11599 if test -z "$lt_cv_path_MAGIC_CMD"; then
11600 if test -n "$ac_tool_prefix"; then
11601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11602 printf %s "checking for file... " >&6; }
11603 if test ${lt_cv_path_MAGIC_CMD+y}
11604 then :
11605 printf %s "(cached) " >&6
11606 else $as_nop
11607 case $MAGIC_CMD in
11608 [\\/*] | ?:[\\/]*)
11609 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11610 ;;
11611 *)
11612 lt_save_MAGIC_CMD=$MAGIC_CMD
11613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11615 for ac_dir in $ac_dummy; do
11616 IFS=$lt_save_ifs
11617 test -z "$ac_dir" && ac_dir=.
11618 if test -f "$ac_dir/file"; then
11619 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11620 if test -n "$file_magic_test_file"; then
11621 case $deplibs_check_method in
11622 "file_magic "*)
11623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11624 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11626 $EGREP "$file_magic_regex" > /dev/null; then
11627 :
11628 else
11629 cat <<_LT_EOF 1>&2
11630
11631 *** Warning: the command libtool uses to detect shared libraries,
11632 *** $file_magic_cmd, produces output that libtool cannot recognize.
11633 *** The result is that libtool may fail to recognize shared libraries
11634 *** as such. This will affect the creation of libtool libraries that
11635 *** depend on shared libraries, but programs linked with such libtool
11636 *** libraries will work regardless of this problem. Nevertheless, you
11637 *** may want to report the problem to your system manager and/or to
11638 *** [email protected]
11639
11640 _LT_EOF
11641 fi ;;
11642 esac
11643 fi
11644 break
11645 fi
11646 done
11647 IFS=$lt_save_ifs
11648 MAGIC_CMD=$lt_save_MAGIC_CMD
11649 ;;
11650 esac
11651 fi
11652
11653 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11654 if test -n "$MAGIC_CMD"; then
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11656 printf "%s\n" "$MAGIC_CMD" >&6; }
11657 else
11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 printf "%s\n" "no" >&6; }
11660 fi
11661
11662
11663 else
11664 MAGIC_CMD=:
11665 fi
11666 fi
11667
11668 fi
11669 ;;
11670 esac
11671
11672 # Use C for the default configuration in the libtool script
11673
11674 lt_save_CC=$CC
11675 ac_ext=c
11676 ac_cpp='$CPP $CPPFLAGS'
11677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11680
11681
11682 # Source file extension for C test sources.
11683 ac_ext=c
11684
11685 # Object file extension for compiled C test sources.
11686 objext=o
11687 objext=$objext
11688
11689 # Code to be used in simple compile tests
11690 lt_simple_compile_test_code="int some_variable = 0;"
11691
11692 # Code to be used in simple link tests
11693 lt_simple_link_test_code='int main(){return(0);}'
11694
11695
11696
11697
11698
11699
11700
11701 # If no C compiler was specified, use CC.
11702 LTCC=${LTCC-"$CC"}
11703
11704 # If no C compiler flags were specified, use CFLAGS.
11705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11706
11707 # Allow CC to be a program name with arguments.
11708 compiler=$CC
11709
11710 # Save the default compiler, since it gets overwritten when the other
11711 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11712 compiler_DEFAULT=$CC
11713
11714 # save warnings/boilerplate of simple test code
11715 ac_outfile=conftest.$ac_objext
11716 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11718 _lt_compiler_boilerplate=`cat conftest.err`
11719 $RM conftest*
11720
11721 ac_outfile=conftest.$ac_objext
11722 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11724 _lt_linker_boilerplate=`cat conftest.err`
11725 $RM -r conftest*
11726
11727
11728 ## CAVEAT EMPTOR:
11729 ## There is no encapsulation within the following macros, do not change
11730 ## the running order or otherwise move them around unless you know exactly
11731 ## what you are doing...
11732 if test -n "$compiler"; then
11733
11734 lt_prog_compiler_no_builtin_flag=
11735
11736 if test yes = "$GCC"; then
11737 case $cc_basename in
11738 nvcc*)
11739 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11740 *)
11741 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11742 esac
11743
11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11745 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11746 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11747 then :
11748 printf %s "(cached) " >&6
11749 else $as_nop
11750 lt_cv_prog_compiler_rtti_exceptions=no
11751 ac_outfile=conftest.$ac_objext
11752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11753 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11754 # Insert the option either (1) after the last *FLAGS variable, or
11755 # (2) before a word containing "conftest.", or (3) at the end.
11756 # Note that $ac_compile itself does not contain backslashes and begins
11757 # with a dollar sign (not a hyphen), so the echo should work correctly.
11758 # The option is referenced via a variable to avoid confusing sed.
11759 lt_compile=`echo "$ac_compile" | $SED \
11760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11762 -e 's:$: $lt_compiler_flag:'`
11763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11764 (eval "$lt_compile" 2>conftest.err)
11765 ac_status=$?
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 if (exit $ac_status) && test -s "$ac_outfile"; then
11769 # The compiler can only warn and ignore the option if not recognized
11770 # So say no if there are warnings other than the usual output.
11771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11774 lt_cv_prog_compiler_rtti_exceptions=yes
11775 fi
11776 fi
11777 $RM conftest*
11778
11779 fi
11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11781 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11782
11783 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11785 else
11786 :
11787 fi
11788
11789 fi
11790
11791
11792
11793
11794
11795
11796 lt_prog_compiler_wl=
11797 lt_prog_compiler_pic=
11798 lt_prog_compiler_static=
11799
11800
11801 if test yes = "$GCC"; then
11802 lt_prog_compiler_wl='-Wl,'
11803 lt_prog_compiler_static='-static'
11804
11805 case $host_os in
11806 aix*)
11807 # All AIX code is PIC.
11808 if test ia64 = "$host_cpu"; then
11809 # AIX 5 now supports IA64 processor
11810 lt_prog_compiler_static='-Bstatic'
11811 fi
11812 lt_prog_compiler_pic='-fPIC'
11813 ;;
11814
11815 amigaos*)
11816 case $host_cpu in
11817 powerpc)
11818 # see comment about AmigaOS4 .so support
11819 lt_prog_compiler_pic='-fPIC'
11820 ;;
11821 m68k)
11822 # FIXME: we need at least 68020 code to build shared libraries, but
11823 # adding the '-m68020' flag to GCC prevents building anything better,
11824 # like '-m68040'.
11825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11826 ;;
11827 esac
11828 ;;
11829
11830 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11831 # PIC is the default for these OSes.
11832 ;;
11833
11834 mingw* | cygwin* | pw32* | os2* | cegcc*)
11835 # This hack is so that the source file can tell whether it is being
11836 # built for inclusion in a dll (and should export symbols for example).
11837 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11838 # (--disable-auto-import) libraries
11839 lt_prog_compiler_pic='-DDLL_EXPORT'
11840 case $host_os in
11841 os2*)
11842 lt_prog_compiler_static='$wl-static'
11843 ;;
11844 esac
11845 ;;
11846
11847 darwin* | rhapsody*)
11848 # PIC is the default on this platform
11849 # Common symbols not allowed in MH_DYLIB files
11850 lt_prog_compiler_pic='-fno-common'
11851 ;;
11852
11853 haiku*)
11854 # PIC is the default for Haiku.
11855 # The "-static" flag exists, but is broken.
11856 lt_prog_compiler_static=
11857 ;;
11858
11859 hpux*)
11860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11862 # sets the default TLS model and affects inlining.
11863 case $host_cpu in
11864 hppa*64*)
11865 # +Z the default
11866 ;;
11867 *)
11868 lt_prog_compiler_pic='-fPIC'
11869 ;;
11870 esac
11871 ;;
11872
11873 interix[3-9]*)
11874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11875 # Instead, we relocate shared libraries at runtime.
11876 ;;
11877
11878 msdosdjgpp*)
11879 # Just because we use GCC doesn't mean we suddenly get shared libraries
11880 # on systems that don't support them.
11881 lt_prog_compiler_can_build_shared=no
11882 enable_shared=no
11883 ;;
11884
11885 *nto* | *qnx*)
11886 # QNX uses GNU C++, but need to define -shared option too, otherwise
11887 # it will coredump.
11888 lt_prog_compiler_pic='-fPIC -shared'
11889 ;;
11890
11891 sysv4*MP*)
11892 if test -d /usr/nec; then
11893 lt_prog_compiler_pic=-Kconform_pic
11894 fi
11895 ;;
11896
11897 *)
11898 lt_prog_compiler_pic='-fPIC'
11899 ;;
11900 esac
11901
11902 case $cc_basename in
11903 nvcc*) # Cuda Compiler Driver 2.2
11904 lt_prog_compiler_wl='-Xlinker '
11905 if test -n "$lt_prog_compiler_pic"; then
11906 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11907 fi
11908 ;;
11909 esac
11910 else
11911 # PORTME Check for flag to pass linker flags through the system compiler.
11912 case $host_os in
11913 aix*)
11914 lt_prog_compiler_wl='-Wl,'
11915 if test ia64 = "$host_cpu"; then
11916 # AIX 5 now supports IA64 processor
11917 lt_prog_compiler_static='-Bstatic'
11918 else
11919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11920 fi
11921 ;;
11922
11923 darwin* | rhapsody*)
11924 # PIC is the default on this platform
11925 # Common symbols not allowed in MH_DYLIB files
11926 lt_prog_compiler_pic='-fno-common'
11927 case $cc_basename in
11928 nagfor*)
11929 # NAG Fortran compiler
11930 lt_prog_compiler_wl='-Wl,-Wl,,'
11931 lt_prog_compiler_pic='-PIC'
11932 lt_prog_compiler_static='-Bstatic'
11933 ;;
11934 esac
11935 ;;
11936
11937 mingw* | cygwin* | pw32* | os2* | cegcc*)
11938 # This hack is so that the source file can tell whether it is being
11939 # built for inclusion in a dll (and should export symbols for example).
11940 lt_prog_compiler_pic='-DDLL_EXPORT'
11941 case $host_os in
11942 os2*)
11943 lt_prog_compiler_static='$wl-static'
11944 ;;
11945 esac
11946 ;;
11947
11948 hpux9* | hpux10* | hpux11*)
11949 lt_prog_compiler_wl='-Wl,'
11950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11951 # not for PA HP-UX.
11952 case $host_cpu in
11953 hppa*64*|ia64*)
11954 # +Z the default
11955 ;;
11956 *)
11957 lt_prog_compiler_pic='+Z'
11958 ;;
11959 esac
11960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11961 lt_prog_compiler_static='$wl-a ${wl}archive'
11962 ;;
11963
11964 irix5* | irix6* | nonstopux*)
11965 lt_prog_compiler_wl='-Wl,'
11966 # PIC (with -KPIC) is the default.
11967 lt_prog_compiler_static='-non_shared'
11968 ;;
11969
11970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11971 case $cc_basename in
11972 # old Intel for x86_64, which still supported -KPIC.
11973 ecc*)
11974 lt_prog_compiler_wl='-Wl,'
11975 lt_prog_compiler_pic='-KPIC'
11976 lt_prog_compiler_static='-static'
11977 ;;
11978 # icc used to be incompatible with GCC.
11979 # ICC 10 doesn't accept -KPIC any more.
11980 icc* | ifort*)
11981 lt_prog_compiler_wl='-Wl,'
11982 lt_prog_compiler_pic='-fPIC'
11983 lt_prog_compiler_static='-static'
11984 ;;
11985 # Lahey Fortran 8.1.
11986 lf95*)
11987 lt_prog_compiler_wl='-Wl,'
11988 lt_prog_compiler_pic='--shared'
11989 lt_prog_compiler_static='--static'
11990 ;;
11991 nagfor*)
11992 # NAG Fortran compiler
11993 lt_prog_compiler_wl='-Wl,-Wl,,'
11994 lt_prog_compiler_pic='-PIC'
11995 lt_prog_compiler_static='-Bstatic'
11996 ;;
11997 tcc*)
11998 # Fabrice Bellard et al's Tiny C Compiler
11999 lt_prog_compiler_wl='-Wl,'
12000 lt_prog_compiler_pic='-fPIC'
12001 lt_prog_compiler_static='-static'
12002 ;;
12003 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12004 # Portland Group compilers (*not* the Pentium gcc compiler,
12005 # which looks to be a dead project)
12006 lt_prog_compiler_wl='-Wl,'
12007 lt_prog_compiler_pic='-fpic'
12008 lt_prog_compiler_static='-Bstatic'
12009 ;;
12010 ccc*)
12011 lt_prog_compiler_wl='-Wl,'
12012 # All Alpha code is PIC.
12013 lt_prog_compiler_static='-non_shared'
12014 ;;
12015 xl* | bgxl* | bgf* | mpixl*)
12016 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12017 lt_prog_compiler_wl='-Wl,'
12018 lt_prog_compiler_pic='-qpic'
12019 lt_prog_compiler_static='-qstaticlink'
12020 ;;
12021 *)
12022 case `$CC -V 2>&1 | sed 5q` in
12023 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12024 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12025 lt_prog_compiler_pic='-KPIC'
12026 lt_prog_compiler_static='-Bstatic'
12027 lt_prog_compiler_wl=''
12028 ;;
12029 *Sun\ F* | *Sun*Fortran*)
12030 lt_prog_compiler_pic='-KPIC'
12031 lt_prog_compiler_static='-Bstatic'
12032 lt_prog_compiler_wl='-Qoption ld '
12033 ;;
12034 *Sun\ C*)
12035 # Sun C 5.9
12036 lt_prog_compiler_pic='-KPIC'
12037 lt_prog_compiler_static='-Bstatic'
12038 lt_prog_compiler_wl='-Wl,'
12039 ;;
12040 *Intel*\ [CF]*Compiler*)
12041 lt_prog_compiler_wl='-Wl,'
12042 lt_prog_compiler_pic='-fPIC'
12043 lt_prog_compiler_static='-static'
12044 ;;
12045 *Portland\ Group*)
12046 lt_prog_compiler_wl='-Wl,'
12047 lt_prog_compiler_pic='-fpic'
12048 lt_prog_compiler_static='-Bstatic'
12049 ;;
12050 esac
12051 ;;
12052 esac
12053 ;;
12054
12055 newsos6)
12056 lt_prog_compiler_pic='-KPIC'
12057 lt_prog_compiler_static='-Bstatic'
12058 ;;
12059
12060 *nto* | *qnx*)
12061 # QNX uses GNU C++, but need to define -shared option too, otherwise
12062 # it will coredump.
12063 lt_prog_compiler_pic='-fPIC -shared'
12064 ;;
12065
12066 osf3* | osf4* | osf5*)
12067 lt_prog_compiler_wl='-Wl,'
12068 # All OSF/1 code is PIC.
12069 lt_prog_compiler_static='-non_shared'
12070 ;;
12071
12072 rdos*)
12073 lt_prog_compiler_static='-non_shared'
12074 ;;
12075
12076 solaris*)
12077 lt_prog_compiler_pic='-KPIC'
12078 lt_prog_compiler_static='-Bstatic'
12079 case $cc_basename in
12080 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12081 lt_prog_compiler_wl='-Qoption ld ';;
12082 *)
12083 lt_prog_compiler_wl='-Wl,';;
12084 esac
12085 ;;
12086
12087 sunos4*)
12088 lt_prog_compiler_wl='-Qoption ld '
12089 lt_prog_compiler_pic='-PIC'
12090 lt_prog_compiler_static='-Bstatic'
12091 ;;
12092
12093 sysv4 | sysv4.2uw2* | sysv4.3*)
12094 lt_prog_compiler_wl='-Wl,'
12095 lt_prog_compiler_pic='-KPIC'
12096 lt_prog_compiler_static='-Bstatic'
12097 ;;
12098
12099 sysv4*MP*)
12100 if test -d /usr/nec; then
12101 lt_prog_compiler_pic='-Kconform_pic'
12102 lt_prog_compiler_static='-Bstatic'
12103 fi
12104 ;;
12105
12106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12107 lt_prog_compiler_wl='-Wl,'
12108 lt_prog_compiler_pic='-KPIC'
12109 lt_prog_compiler_static='-Bstatic'
12110 ;;
12111
12112 unicos*)
12113 lt_prog_compiler_wl='-Wl,'
12114 lt_prog_compiler_can_build_shared=no
12115 ;;
12116
12117 uts4*)
12118 lt_prog_compiler_pic='-pic'
12119 lt_prog_compiler_static='-Bstatic'
12120 ;;
12121
12122 *)
12123 lt_prog_compiler_can_build_shared=no
12124 ;;
12125 esac
12126 fi
12127
12128 case $host_os in
12129 # For platforms that do not support PIC, -DPIC is meaningless:
12130 *djgpp*)
12131 lt_prog_compiler_pic=
12132 ;;
12133 *)
12134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12135 ;;
12136 esac
12137
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12139 printf %s "checking for $compiler option to produce PIC... " >&6; }
12140 if test ${lt_cv_prog_compiler_pic+y}
12141 then :
12142 printf %s "(cached) " >&6
12143 else $as_nop
12144 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12145 fi
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12147 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12149
12150 #
12151 # Check to make sure the PIC flag actually works.
12152 #
12153 if test -n "$lt_prog_compiler_pic"; then
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12155 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12156 if test ${lt_cv_prog_compiler_pic_works+y}
12157 then :
12158 printf %s "(cached) " >&6
12159 else $as_nop
12160 lt_cv_prog_compiler_pic_works=no
12161 ac_outfile=conftest.$ac_objext
12162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12164 # Insert the option either (1) after the last *FLAGS variable, or
12165 # (2) before a word containing "conftest.", or (3) at the end.
12166 # Note that $ac_compile itself does not contain backslashes and begins
12167 # with a dollar sign (not a hyphen), so the echo should work correctly.
12168 # The option is referenced via a variable to avoid confusing sed.
12169 lt_compile=`echo "$ac_compile" | $SED \
12170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12172 -e 's:$: $lt_compiler_flag:'`
12173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12174 (eval "$lt_compile" 2>conftest.err)
12175 ac_status=$?
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 if (exit $ac_status) && test -s "$ac_outfile"; then
12179 # The compiler can only warn and ignore the option if not recognized
12180 # So say no if there are warnings other than the usual output.
12181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12184 lt_cv_prog_compiler_pic_works=yes
12185 fi
12186 fi
12187 $RM conftest*
12188
12189 fi
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12191 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12192
12193 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12194 case $lt_prog_compiler_pic in
12195 "" | " "*) ;;
12196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12197 esac
12198 else
12199 lt_prog_compiler_pic=
12200 lt_prog_compiler_can_build_shared=no
12201 fi
12202
12203 fi
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 #
12216 # Check to make sure the static flag actually works.
12217 #
12218 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12220 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12221 if test ${lt_cv_prog_compiler_static_works+y}
12222 then :
12223 printf %s "(cached) " >&6
12224 else $as_nop
12225 lt_cv_prog_compiler_static_works=no
12226 save_LDFLAGS=$LDFLAGS
12227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12230 # The linker can only warn and ignore the option if not recognized
12231 # So say no if there are warnings
12232 if test -s conftest.err; then
12233 # Append any errors to the config.log.
12234 cat conftest.err 1>&5
12235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12237 if diff conftest.exp conftest.er2 >/dev/null; then
12238 lt_cv_prog_compiler_static_works=yes
12239 fi
12240 else
12241 lt_cv_prog_compiler_static_works=yes
12242 fi
12243 fi
12244 $RM -r conftest*
12245 LDFLAGS=$save_LDFLAGS
12246
12247 fi
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12249 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12250
12251 if test yes = "$lt_cv_prog_compiler_static_works"; then
12252 :
12253 else
12254 lt_prog_compiler_static=
12255 fi
12256
12257
12258
12259
12260
12261
12262
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12264 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12265 if test ${lt_cv_prog_compiler_c_o+y}
12266 then :
12267 printf %s "(cached) " >&6
12268 else $as_nop
12269 lt_cv_prog_compiler_c_o=no
12270 $RM -r conftest 2>/dev/null
12271 mkdir conftest
12272 cd conftest
12273 mkdir out
12274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12275
12276 lt_compiler_flag="-o out/conftest2.$ac_objext"
12277 # Insert the option either (1) after the last *FLAGS variable, or
12278 # (2) before a word containing "conftest.", or (3) at the end.
12279 # Note that $ac_compile itself does not contain backslashes and begins
12280 # with a dollar sign (not a hyphen), so the echo should work correctly.
12281 lt_compile=`echo "$ac_compile" | $SED \
12282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284 -e 's:$: $lt_compiler_flag:'`
12285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12286 (eval "$lt_compile" 2>out/conftest.err)
12287 ac_status=$?
12288 cat out/conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12291 then
12292 # The compiler can only warn and ignore the option if not recognized
12293 # So say no if there are warnings
12294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12297 lt_cv_prog_compiler_c_o=yes
12298 fi
12299 fi
12300 chmod u+w . 2>&5
12301 $RM conftest*
12302 # SGI C++ compiler will create directory out/ii_files/ for
12303 # template instantiation
12304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12305 $RM out/* && rmdir out
12306 cd ..
12307 $RM -r conftest
12308 $RM conftest*
12309
12310 fi
12311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12312 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12313
12314
12315
12316
12317
12318
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12320 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12321 if test ${lt_cv_prog_compiler_c_o+y}
12322 then :
12323 printf %s "(cached) " >&6
12324 else $as_nop
12325 lt_cv_prog_compiler_c_o=no
12326 $RM -r conftest 2>/dev/null
12327 mkdir conftest
12328 cd conftest
12329 mkdir out
12330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12331
12332 lt_compiler_flag="-o out/conftest2.$ac_objext"
12333 # Insert the option either (1) after the last *FLAGS variable, or
12334 # (2) before a word containing "conftest.", or (3) at the end.
12335 # Note that $ac_compile itself does not contain backslashes and begins
12336 # with a dollar sign (not a hyphen), so the echo should work correctly.
12337 lt_compile=`echo "$ac_compile" | $SED \
12338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12340 -e 's:$: $lt_compiler_flag:'`
12341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12342 (eval "$lt_compile" 2>out/conftest.err)
12343 ac_status=$?
12344 cat out/conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12347 then
12348 # The compiler can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12353 lt_cv_prog_compiler_c_o=yes
12354 fi
12355 fi
12356 chmod u+w . 2>&5
12357 $RM conftest*
12358 # SGI C++ compiler will create directory out/ii_files/ for
12359 # template instantiation
12360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12361 $RM out/* && rmdir out
12362 cd ..
12363 $RM -r conftest
12364 $RM conftest*
12365
12366 fi
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12368 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12369
12370
12371
12372
12373 hard_links=nottested
12374 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12375 # do not overwrite the value of need_locks provided by the user
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12377 printf %s "checking if we can lock with hard links... " >&6; }
12378 hard_links=yes
12379 $RM conftest*
12380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12381 touch conftest.a
12382 ln conftest.a conftest.b 2>&5 || hard_links=no
12383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12385 printf "%s\n" "$hard_links" >&6; }
12386 if test no = "$hard_links"; then
12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12388 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12389 need_locks=warn
12390 fi
12391 else
12392 need_locks=no
12393 fi
12394
12395
12396
12397
12398
12399
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12401 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12402
12403 runpath_var=
12404 allow_undefined_flag=
12405 always_export_symbols=no
12406 archive_cmds=
12407 archive_expsym_cmds=
12408 compiler_needs_object=no
12409 enable_shared_with_static_runtimes=no
12410 export_dynamic_flag_spec=
12411 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12412 hardcode_automatic=no
12413 hardcode_direct=no
12414 hardcode_direct_absolute=no
12415 hardcode_libdir_flag_spec=
12416 hardcode_libdir_separator=
12417 hardcode_minus_L=no
12418 hardcode_shlibpath_var=unsupported
12419 inherit_rpath=no
12420 link_all_deplibs=unknown
12421 module_cmds=
12422 module_expsym_cmds=
12423 old_archive_from_new_cmds=
12424 old_archive_from_expsyms_cmds=
12425 thread_safe_flag_spec=
12426 whole_archive_flag_spec=
12427 # include_expsyms should be a list of space-separated symbols to be *always*
12428 # included in the symbol list
12429 include_expsyms=
12430 # exclude_expsyms can be an extended regexp of symbols to exclude
12431 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12432 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12433 # as well as any symbol that contains 'd'.
12434 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12435 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12436 # platforms (ab)use it in PIC code, but their linkers get confused if
12437 # the symbol is explicitly referenced. Since portable code cannot
12438 # rely on this symbol name, it's probably fine to never include it in
12439 # preloaded symbol tables.
12440 # Exclude shared library initialization/finalization symbols.
12441 extract_expsyms_cmds=
12442
12443 case $host_os in
12444 cygwin* | mingw* | pw32* | cegcc*)
12445 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12446 # When not using gcc, we currently assume that we are using
12447 # Microsoft Visual C++.
12448 if test yes != "$GCC"; then
12449 with_gnu_ld=no
12450 fi
12451 ;;
12452 interix*)
12453 # we just hope/assume this is gcc and not c89 (= MSVC++)
12454 with_gnu_ld=yes
12455 ;;
12456 openbsd* | bitrig*)
12457 with_gnu_ld=no
12458 ;;
12459 esac
12460
12461 ld_shlibs=yes
12462
12463 # On some targets, GNU ld is compatible enough with the native linker
12464 # that we're better off using the native interface for both.
12465 lt_use_gnu_ld_interface=no
12466 if test yes = "$with_gnu_ld"; then
12467 case $host_os in
12468 aix*)
12469 # The AIX port of GNU ld has always aspired to compatibility
12470 # with the native linker. However, as the warning in the GNU ld
12471 # block says, versions before 2.19.5* couldn't really create working
12472 # shared libraries, regardless of the interface used.
12473 case `$LD -v 2>&1` in
12474 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12475 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12476 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12477 *)
12478 lt_use_gnu_ld_interface=yes
12479 ;;
12480 esac
12481 ;;
12482 *)
12483 lt_use_gnu_ld_interface=yes
12484 ;;
12485 esac
12486 fi
12487
12488 if test yes = "$lt_use_gnu_ld_interface"; then
12489 # If archive_cmds runs LD, not CC, wlarc should be empty
12490 wlarc='$wl'
12491
12492 # Set some defaults for GNU ld with shared library support. These
12493 # are reset later if shared libraries are not supported. Putting them
12494 # here allows them to be overridden if necessary.
12495 runpath_var=LD_RUN_PATH
12496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12497 export_dynamic_flag_spec='$wl--export-dynamic'
12498 # ancient GNU ld didn't support --whole-archive et. al.
12499 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12500 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12501 else
12502 whole_archive_flag_spec=
12503 fi
12504 supports_anon_versioning=no
12505 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12506 *GNU\ gold*) supports_anon_versioning=yes ;;
12507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12510 *\ 2.11.*) ;; # other 2.11 versions
12511 *) supports_anon_versioning=yes ;;
12512 esac
12513
12514 # See if GNU ld supports shared libraries.
12515 case $host_os in
12516 aix[3-9]*)
12517 # On AIX/PPC, the GNU linker is very broken
12518 if test ia64 != "$host_cpu"; then
12519 ld_shlibs=no
12520 cat <<_LT_EOF 1>&2
12521
12522 *** Warning: the GNU linker, at least up to release 2.19, is reported
12523 *** to be unable to reliably create shared libraries on AIX.
12524 *** Therefore, libtool is disabling shared libraries support. If you
12525 *** really care for shared libraries, you may want to install binutils
12526 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12527 *** You will then need to restart the configuration process.
12528
12529 _LT_EOF
12530 fi
12531 ;;
12532
12533 amigaos*)
12534 case $host_cpu in
12535 powerpc)
12536 # see comment about AmigaOS4 .so support
12537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12538 archive_expsym_cmds=''
12539 ;;
12540 m68k)
12541 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)'
12542 hardcode_libdir_flag_spec='-L$libdir'
12543 hardcode_minus_L=yes
12544 ;;
12545 esac
12546 ;;
12547
12548 beos*)
12549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12550 allow_undefined_flag=unsupported
12551 # Joseph Beckenbach <[email protected]> says some releases of gcc
12552 # support --undefined. This deserves some investigation. FIXME
12553 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12554 else
12555 ld_shlibs=no
12556 fi
12557 ;;
12558
12559 cygwin* | mingw* | pw32* | cegcc*)
12560 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12561 # as there is no search path for DLLs.
12562 hardcode_libdir_flag_spec='-L$libdir'
12563 export_dynamic_flag_spec='$wl--export-all-symbols'
12564 allow_undefined_flag=unsupported
12565 always_export_symbols=no
12566 enable_shared_with_static_runtimes=yes
12567 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'
12568 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12569
12570 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12572 # If the export-symbols file already is a .def file, use it as
12573 # is; otherwise, prepend EXPORTS...
12574 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12575 cp $export_symbols $output_objdir/$soname.def;
12576 else
12577 echo EXPORTS > $output_objdir/$soname.def;
12578 cat $export_symbols >> $output_objdir/$soname.def;
12579 fi~
12580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12581 else
12582 ld_shlibs=no
12583 fi
12584 ;;
12585
12586 haiku*)
12587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12588 link_all_deplibs=yes
12589 ;;
12590
12591 os2*)
12592 hardcode_libdir_flag_spec='-L$libdir'
12593 hardcode_minus_L=yes
12594 allow_undefined_flag=unsupported
12595 shrext_cmds=.dll
12596 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12597 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12598 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12599 $ECHO EXPORTS >> $output_objdir/$libname.def~
12600 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12602 emximp -o $lib $output_objdir/$libname.def'
12603 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12606 $ECHO EXPORTS >> $output_objdir/$libname.def~
12607 prefix_cmds="$SED"~
12608 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12609 prefix_cmds="$prefix_cmds -e 1d";
12610 fi~
12611 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12612 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12613 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12614 emximp -o $lib $output_objdir/$libname.def'
12615 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12616 enable_shared_with_static_runtimes=yes
12617 ;;
12618
12619 interix[3-9]*)
12620 hardcode_direct=no
12621 hardcode_shlibpath_var=no
12622 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12623 export_dynamic_flag_spec='$wl-E'
12624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12625 # Instead, shared libraries are loaded at an image base (0x10000000 by
12626 # default) and relocated if they conflict, which is a slow very memory
12627 # consuming and fragmenting process. To avoid this, we pick a random,
12628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12631 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'
12632 ;;
12633
12634 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12635 tmp_diet=no
12636 if test linux-dietlibc = "$host_os"; then
12637 case $cc_basename in
12638 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12639 esac
12640 fi
12641 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12642 && test no = "$tmp_diet"
12643 then
12644 tmp_addflag=' $pic_flag'
12645 tmp_sharedflag='-shared'
12646 case $cc_basename,$host_cpu in
12647 pgcc*) # Portland Group C compiler
12648 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'
12649 tmp_addflag=' $pic_flag'
12650 ;;
12651 pgf77* | pgf90* | pgf95* | pgfortran*)
12652 # Portland Group f77 and f90 compilers
12653 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'
12654 tmp_addflag=' $pic_flag -Mnomain' ;;
12655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12656 tmp_addflag=' -i_dynamic' ;;
12657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12658 tmp_addflag=' -i_dynamic -nofor_main' ;;
12659 ifc* | ifort*) # Intel Fortran compiler
12660 tmp_addflag=' -nofor_main' ;;
12661 lf95*) # Lahey Fortran 8.1
12662 whole_archive_flag_spec=
12663 tmp_sharedflag='--shared' ;;
12664 nagfor*) # NAGFOR 5.3
12665 tmp_sharedflag='-Wl,-shared' ;;
12666 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12667 tmp_sharedflag='-qmkshrobj'
12668 tmp_addflag= ;;
12669 nvcc*) # Cuda Compiler Driver 2.2
12670 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'
12671 compiler_needs_object=yes
12672 ;;
12673 esac
12674 case `$CC -V 2>&1 | sed 5q` in
12675 *Sun\ C*) # Sun C 5.9
12676 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'
12677 compiler_needs_object=yes
12678 tmp_sharedflag='-G' ;;
12679 *Sun\ F*) # Sun Fortran 8.3
12680 tmp_sharedflag='-G' ;;
12681 esac
12682 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12683
12684 if test yes = "$supports_anon_versioning"; then
12685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12687 echo "local: *; };" >> $output_objdir/$libname.ver~
12688 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12689 fi
12690
12691 case $cc_basename in
12692 tcc*)
12693 export_dynamic_flag_spec='-rdynamic'
12694 ;;
12695 xlf* | bgf* | bgxlf* | mpixlf*)
12696 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12698 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12699 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12700 if test yes = "$supports_anon_versioning"; then
12701 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12703 echo "local: *; };" >> $output_objdir/$libname.ver~
12704 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12705 fi
12706 ;;
12707 esac
12708 else
12709 ld_shlibs=no
12710 fi
12711 ;;
12712
12713 netbsd*)
12714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12716 wlarc=
12717 else
12718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12720 fi
12721 ;;
12722
12723 solaris*)
12724 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12725 ld_shlibs=no
12726 cat <<_LT_EOF 1>&2
12727
12728 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12729 *** create shared libraries on Solaris systems. Therefore, libtool
12730 *** is disabling shared libraries support. We urge you to upgrade GNU
12731 *** binutils to release 2.9.1 or newer. Another option is to modify
12732 *** your PATH or compiler configuration so that the native linker is
12733 *** used, and then restart.
12734
12735 _LT_EOF
12736 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12737 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12738 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12739 else
12740 ld_shlibs=no
12741 fi
12742 ;;
12743
12744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12745 case `$LD -v 2>&1` in
12746 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12747 ld_shlibs=no
12748 cat <<_LT_EOF 1>&2
12749
12750 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12751 *** reliably create shared libraries on SCO systems. Therefore, libtool
12752 *** is disabling shared libraries support. We urge you to upgrade GNU
12753 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12754 *** your PATH or compiler configuration so that the native linker is
12755 *** used, and then restart.
12756
12757 _LT_EOF
12758 ;;
12759 *)
12760 # For security reasons, it is highly recommended that you always
12761 # use absolute paths for naming shared libraries, and exclude the
12762 # DT_RUNPATH tag from executables and libraries. But doing so
12763 # requires that you compile everything twice, which is a pain.
12764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12768 else
12769 ld_shlibs=no
12770 fi
12771 ;;
12772 esac
12773 ;;
12774
12775 sunos4*)
12776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12777 wlarc=
12778 hardcode_direct=yes
12779 hardcode_shlibpath_var=no
12780 ;;
12781
12782 *)
12783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12785 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12786 else
12787 ld_shlibs=no
12788 fi
12789 ;;
12790 esac
12791
12792 if test no = "$ld_shlibs"; then
12793 runpath_var=
12794 hardcode_libdir_flag_spec=
12795 export_dynamic_flag_spec=
12796 whole_archive_flag_spec=
12797 fi
12798 else
12799 # PORTME fill in a description of your system's linker (not GNU ld)
12800 case $host_os in
12801 aix3*)
12802 allow_undefined_flag=unsupported
12803 always_export_symbols=yes
12804 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'
12805 # Note: this linker hardcodes the directories in LIBPATH if there
12806 # are no directories specified by -L.
12807 hardcode_minus_L=yes
12808 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12809 # Neither direct hardcoding nor static linking is supported with a
12810 # broken collect2.
12811 hardcode_direct=unsupported
12812 fi
12813 ;;
12814
12815 aix[4-9]*)
12816 if test ia64 = "$host_cpu"; then
12817 # On IA64, the linker does run time linking by default, so we don't
12818 # have to do anything special.
12819 aix_use_runtimelinking=no
12820 exp_sym_flag='-Bexport'
12821 no_entry_flag=
12822 else
12823 # If we're using GNU nm, then we don't want the "-C" option.
12824 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12825 # Without the "-l" option, or with the "-B" option, AIX nm treats
12826 # weak defined symbols like other global defined symbols, whereas
12827 # GNU nm marks them as "W".
12828 # While the 'weak' keyword is ignored in the Export File, we need
12829 # it in the Import File for the 'aix-soname' feature, so we have
12830 # to replace the "-B" option with "-P" for AIX nm.
12831 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12832 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'
12833 else
12834 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 == "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'
12835 fi
12836 aix_use_runtimelinking=no
12837
12838 # Test if we are trying to use run time linking or normal
12839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12840 # have runtime linking enabled, and use it for executables.
12841 # For shared libraries, we enable/disable runtime linking
12842 # depending on the kind of the shared library created -
12843 # when "with_aix_soname,aix_use_runtimelinking" is:
12844 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12845 # "aix,yes" lib.so shared, rtl:yes, for executables
12846 # lib.a static archive
12847 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12848 # lib.a(lib.so.V) shared, rtl:no, for executables
12849 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12850 # lib.a(lib.so.V) shared, rtl:no
12851 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12852 # lib.a static archive
12853 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12854 for ld_flag in $LDFLAGS; do
12855 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12856 aix_use_runtimelinking=yes
12857 break
12858 fi
12859 done
12860 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12861 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12862 # so we don't have lib.a shared libs to link our executables.
12863 # We have to force runtime linking in this case.
12864 aix_use_runtimelinking=yes
12865 LDFLAGS="$LDFLAGS -Wl,-brtl"
12866 fi
12867 ;;
12868 esac
12869
12870 exp_sym_flag='-bexport'
12871 no_entry_flag='-bnoentry'
12872 fi
12873
12874 # When large executables or shared objects are built, AIX ld can
12875 # have problems creating the table of contents. If linking a library
12876 # or program results in "error TOC overflow" add -mminimal-toc to
12877 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12878 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12879
12880 archive_cmds=''
12881 hardcode_direct=yes
12882 hardcode_direct_absolute=yes
12883 hardcode_libdir_separator=':'
12884 link_all_deplibs=yes
12885 file_list_spec='$wl-f,'
12886 case $with_aix_soname,$aix_use_runtimelinking in
12887 aix,*) ;; # traditional, no import file
12888 svr4,* | *,yes) # use import file
12889 # The Import File defines what to hardcode.
12890 hardcode_direct=no
12891 hardcode_direct_absolute=no
12892 ;;
12893 esac
12894
12895 if test yes = "$GCC"; then
12896 case $host_os in aix4.[012]|aix4.[012].*)
12897 # We only want to do this on AIX 4.2 and lower, the check
12898 # below for broken collect2 doesn't work under 4.3+
12899 collect2name=`$CC -print-prog-name=collect2`
12900 if test -f "$collect2name" &&
12901 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12902 then
12903 # We have reworked collect2
12904 :
12905 else
12906 # We have old collect2
12907 hardcode_direct=unsupported
12908 # It fails to find uninstalled libraries when the uninstalled
12909 # path is not listed in the libpath. Setting hardcode_minus_L
12910 # to unsupported forces relinking
12911 hardcode_minus_L=yes
12912 hardcode_libdir_flag_spec='-L$libdir'
12913 hardcode_libdir_separator=
12914 fi
12915 ;;
12916 esac
12917 shared_flag='-shared'
12918 if test yes = "$aix_use_runtimelinking"; then
12919 shared_flag="$shared_flag "'$wl-G'
12920 fi
12921 # Need to ensure runtime linking is disabled for the traditional
12922 # shared library, or the linker may eventually find shared libraries
12923 # /with/ Import File - we do not want to mix them.
12924 shared_flag_aix='-shared'
12925 shared_flag_svr4='-shared $wl-G'
12926 else
12927 # not using gcc
12928 if test ia64 = "$host_cpu"; then
12929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12930 # chokes on -Wl,-G. The following line is correct:
12931 shared_flag='-G'
12932 else
12933 if test yes = "$aix_use_runtimelinking"; then
12934 shared_flag='$wl-G'
12935 else
12936 shared_flag='$wl-bM:SRE'
12937 fi
12938 shared_flag_aix='$wl-bM:SRE'
12939 shared_flag_svr4='$wl-G'
12940 fi
12941 fi
12942
12943 export_dynamic_flag_spec='$wl-bexpall'
12944 # It seems that -bexpall does not export symbols beginning with
12945 # underscore (_), so it is better to generate a list of symbols to export.
12946 always_export_symbols=yes
12947 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12948 # Warning - without using the other runtime loading flags (-brtl),
12949 # -berok will link without error, but may produce a broken library.
12950 allow_undefined_flag='-berok'
12951 # Determine the default libpath from the value encoded in an
12952 # empty executable.
12953 if test set = "${lt_cv_aix_libpath+set}"; then
12954 aix_libpath=$lt_cv_aix_libpath
12955 else
12956 if test ${lt_cv_aix_libpath_+y}
12957 then :
12958 printf %s "(cached) " >&6
12959 else $as_nop
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962
12963 int
12964 main (void)
12965 {
12966
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_link "$LINENO"
12972 then :
12973
12974 lt_aix_libpath_sed='
12975 /Import File Strings/,/^$/ {
12976 /^0/ {
12977 s/^0 *\([^ ]*\) *$/\1/
12978 p
12979 }
12980 }'
12981 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12982 # Check for a 64-bit object if we didn't find anything.
12983 if test -z "$lt_cv_aix_libpath_"; then
12984 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12985 fi
12986 fi
12987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12988 conftest$ac_exeext conftest.$ac_ext
12989 if test -z "$lt_cv_aix_libpath_"; then
12990 lt_cv_aix_libpath_=/usr/lib:/lib
12991 fi
12992
12993 fi
12994
12995 aix_libpath=$lt_cv_aix_libpath_
12996 fi
12997
12998 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12999 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
13000 else
13001 if test ia64 = "$host_cpu"; then
13002 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13003 allow_undefined_flag="-z nodefs"
13004 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"
13005 else
13006 # Determine the default libpath from the value encoded in an
13007 # empty executable.
13008 if test set = "${lt_cv_aix_libpath+set}"; then
13009 aix_libpath=$lt_cv_aix_libpath
13010 else
13011 if test ${lt_cv_aix_libpath_+y}
13012 then :
13013 printf %s "(cached) " >&6
13014 else $as_nop
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017
13018 int
13019 main (void)
13020 {
13021
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"
13027 then :
13028
13029 lt_aix_libpath_sed='
13030 /Import File Strings/,/^$/ {
13031 /^0/ {
13032 s/^0 *\([^ ]*\) *$/\1/
13033 p
13034 }
13035 }'
13036 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13037 # Check for a 64-bit object if we didn't find anything.
13038 if test -z "$lt_cv_aix_libpath_"; then
13039 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13040 fi
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13043 conftest$ac_exeext conftest.$ac_ext
13044 if test -z "$lt_cv_aix_libpath_"; then
13045 lt_cv_aix_libpath_=/usr/lib:/lib
13046 fi
13047
13048 fi
13049
13050 aix_libpath=$lt_cv_aix_libpath_
13051 fi
13052
13053 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13054 # Warning - without using the other run time loading flags,
13055 # -berok will link without error, but may produce a broken library.
13056 no_undefined_flag=' $wl-bernotok'
13057 allow_undefined_flag=' $wl-berok'
13058 if test yes = "$with_gnu_ld"; then
13059 # We only use this code for GNU lds that support --whole-archive.
13060 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13061 else
13062 # Exported symbols can be pulled into shared objects from archives
13063 whole_archive_flag_spec='$convenience'
13064 fi
13065 archive_cmds_need_lc=yes
13066 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13067 # -brtl affects multiple linker settings, -berok does not and is overridden later
13068 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13069 if test svr4 != "$with_aix_soname"; then
13070 # This is similar to how AIX traditionally builds its shared libraries.
13071 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'
13072 fi
13073 if test aix != "$with_aix_soname"; then
13074 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'
13075 else
13076 # used by -dlpreopen to get the symbols
13077 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13078 fi
13079 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13080 fi
13081 fi
13082 ;;
13083
13084 amigaos*)
13085 case $host_cpu in
13086 powerpc)
13087 # see comment about AmigaOS4 .so support
13088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13089 archive_expsym_cmds=''
13090 ;;
13091 m68k)
13092 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)'
13093 hardcode_libdir_flag_spec='-L$libdir'
13094 hardcode_minus_L=yes
13095 ;;
13096 esac
13097 ;;
13098
13099 bsdi[45]*)
13100 export_dynamic_flag_spec=-rdynamic
13101 ;;
13102
13103 cygwin* | mingw* | pw32* | cegcc*)
13104 # When not using gcc, we currently assume that we are using
13105 # Microsoft Visual C++.
13106 # hardcode_libdir_flag_spec is actually meaningless, as there is
13107 # no search path for DLLs.
13108 case $cc_basename in
13109 cl*)
13110 # Native MSVC
13111 hardcode_libdir_flag_spec=' '
13112 allow_undefined_flag=unsupported
13113 always_export_symbols=yes
13114 file_list_spec='@'
13115 # Tell ltmain to make .lib files, not .a files.
13116 libext=lib
13117 # Tell ltmain to make .dll files, not .so files.
13118 shrext_cmds=.dll
13119 # FIXME: Setting linknames here is a bad hack.
13120 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13121 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13122 cp "$export_symbols" "$output_objdir/$soname.def";
13123 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13124 else
13125 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13126 fi~
13127 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13128 linknames='
13129 # The linker will not automatically build a static lib if we build a DLL.
13130 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13131 enable_shared_with_static_runtimes=yes
13132 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13134 # Don't use ranlib
13135 old_postinstall_cmds='chmod 644 $oldlib'
13136 postlink_cmds='lt_outputfile="@OUTPUT@"~
13137 lt_tool_outputfile="@TOOL_OUTPUT@"~
13138 case $lt_outputfile in
13139 *.exe|*.EXE) ;;
13140 *)
13141 lt_outputfile=$lt_outputfile.exe
13142 lt_tool_outputfile=$lt_tool_outputfile.exe
13143 ;;
13144 esac~
13145 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13146 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13147 $RM "$lt_outputfile.manifest";
13148 fi'
13149 ;;
13150 *)
13151 # Assume MSVC wrapper
13152 hardcode_libdir_flag_spec=' '
13153 allow_undefined_flag=unsupported
13154 # Tell ltmain to make .lib files, not .a files.
13155 libext=lib
13156 # Tell ltmain to make .dll files, not .so files.
13157 shrext_cmds=.dll
13158 # FIXME: Setting linknames here is a bad hack.
13159 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13160 # The linker will automatically build a .lib file if we build a DLL.
13161 old_archive_from_new_cmds='true'
13162 # FIXME: Should let the user specify the lib program.
13163 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13164 enable_shared_with_static_runtimes=yes
13165 ;;
13166 esac
13167 ;;
13168
13169 darwin* | rhapsody*)
13170
13171
13172 archive_cmds_need_lc=no
13173 hardcode_direct=no
13174 hardcode_automatic=yes
13175 hardcode_shlibpath_var=unsupported
13176 if test yes = "$lt_cv_ld_force_load"; then
13177 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\"`'
13178
13179 else
13180 whole_archive_flag_spec=''
13181 fi
13182 link_all_deplibs=yes
13183 allow_undefined_flag=$_lt_dar_allow_undefined
13184 case $cc_basename in
13185 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13186 *) _lt_dar_can_shared=$GCC ;;
13187 esac
13188 if test yes = "$_lt_dar_can_shared"; then
13189 output_verbose_link_cmd=func_echo_all
13190 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13191 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13192 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"
13193 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"
13194
13195 else
13196 ld_shlibs=no
13197 fi
13198
13199 ;;
13200
13201 dgux*)
13202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13203 hardcode_libdir_flag_spec='-L$libdir'
13204 hardcode_shlibpath_var=no
13205 ;;
13206
13207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13208 # support. Future versions do this automatically, but an explicit c++rt0.o
13209 # does not break anything, and helps significantly (at the cost of a little
13210 # extra space).
13211 freebsd2.2*)
13212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13213 hardcode_libdir_flag_spec='-R$libdir'
13214 hardcode_direct=yes
13215 hardcode_shlibpath_var=no
13216 ;;
13217
13218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13219 freebsd2.*)
13220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_direct=yes
13222 hardcode_minus_L=yes
13223 hardcode_shlibpath_var=no
13224 ;;
13225
13226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13227 freebsd* | dragonfly*)
13228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13229 hardcode_libdir_flag_spec='-R$libdir'
13230 hardcode_direct=yes
13231 hardcode_shlibpath_var=no
13232 ;;
13233
13234 hpux9*)
13235 if test yes = "$GCC"; then
13236 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'
13237 else
13238 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'
13239 fi
13240 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13241 hardcode_libdir_separator=:
13242 hardcode_direct=yes
13243
13244 # hardcode_minus_L: Not really in the search PATH,
13245 # but as the default location of the library.
13246 hardcode_minus_L=yes
13247 export_dynamic_flag_spec='$wl-E'
13248 ;;
13249
13250 hpux10*)
13251 if test yes,no = "$GCC,$with_gnu_ld"; then
13252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13253 else
13254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13255 fi
13256 if test no = "$with_gnu_ld"; then
13257 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13258 hardcode_libdir_separator=:
13259 hardcode_direct=yes
13260 hardcode_direct_absolute=yes
13261 export_dynamic_flag_spec='$wl-E'
13262 # hardcode_minus_L: Not really in the search PATH,
13263 # but as the default location of the library.
13264 hardcode_minus_L=yes
13265 fi
13266 ;;
13267
13268 hpux11*)
13269 if test yes,no = "$GCC,$with_gnu_ld"; then
13270 case $host_cpu in
13271 hppa*64*)
13272 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 ;;
13274 ia64*)
13275 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13276 ;;
13277 *)
13278 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13279 ;;
13280 esac
13281 else
13282 case $host_cpu in
13283 hppa*64*)
13284 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13285 ;;
13286 ia64*)
13287 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13288 ;;
13289 *)
13290
13291 # Older versions of the 11.00 compiler do not understand -b yet
13292 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13294 printf %s "checking if $CC understands -b... " >&6; }
13295 if test ${lt_cv_prog_compiler__b+y}
13296 then :
13297 printf %s "(cached) " >&6
13298 else $as_nop
13299 lt_cv_prog_compiler__b=no
13300 save_LDFLAGS=$LDFLAGS
13301 LDFLAGS="$LDFLAGS -b"
13302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13304 # The linker can only warn and ignore the option if not recognized
13305 # So say no if there are warnings
13306 if test -s conftest.err; then
13307 # Append any errors to the config.log.
13308 cat conftest.err 1>&5
13309 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13311 if diff conftest.exp conftest.er2 >/dev/null; then
13312 lt_cv_prog_compiler__b=yes
13313 fi
13314 else
13315 lt_cv_prog_compiler__b=yes
13316 fi
13317 fi
13318 $RM -r conftest*
13319 LDFLAGS=$save_LDFLAGS
13320
13321 fi
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13323 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13324
13325 if test yes = "$lt_cv_prog_compiler__b"; then
13326 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13327 else
13328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13329 fi
13330
13331 ;;
13332 esac
13333 fi
13334 if test no = "$with_gnu_ld"; then
13335 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13336 hardcode_libdir_separator=:
13337
13338 case $host_cpu in
13339 hppa*64*|ia64*)
13340 hardcode_direct=no
13341 hardcode_shlibpath_var=no
13342 ;;
13343 *)
13344 hardcode_direct=yes
13345 hardcode_direct_absolute=yes
13346 export_dynamic_flag_spec='$wl-E'
13347
13348 # hardcode_minus_L: Not really in the search PATH,
13349 # but as the default location of the library.
13350 hardcode_minus_L=yes
13351 ;;
13352 esac
13353 fi
13354 ;;
13355
13356 irix5* | irix6* | nonstopux*)
13357 if test yes = "$GCC"; then
13358 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'
13359 # Try to use the -exported_symbol ld option, if it does not
13360 # work, assume that -exports_file does not work either and
13361 # implicitly export all symbols.
13362 # This should be the same for all languages, so no per-tag cache variable.
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13364 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13365 if test ${lt_cv_irix_exported_symbol+y}
13366 then :
13367 printf %s "(cached) " >&6
13368 else $as_nop
13369 save_LDFLAGS=$LDFLAGS
13370 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 int foo (void) { return 0; }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"
13376 then :
13377 lt_cv_irix_exported_symbol=yes
13378 else $as_nop
13379 lt_cv_irix_exported_symbol=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LDFLAGS=$save_LDFLAGS
13384 fi
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13386 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13387 if test yes = "$lt_cv_irix_exported_symbol"; then
13388 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'
13389 fi
13390 else
13391 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'
13392 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'
13393 fi
13394 archive_cmds_need_lc='no'
13395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13396 hardcode_libdir_separator=:
13397 inherit_rpath=yes
13398 link_all_deplibs=yes
13399 ;;
13400
13401 linux*)
13402 case $cc_basename in
13403 tcc*)
13404 # Fabrice Bellard et al's Tiny C Compiler
13405 ld_shlibs=yes
13406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13407 ;;
13408 esac
13409 ;;
13410
13411 netbsd*)
13412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13414 else
13415 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13416 fi
13417 hardcode_libdir_flag_spec='-R$libdir'
13418 hardcode_direct=yes
13419 hardcode_shlibpath_var=no
13420 ;;
13421
13422 newsos6)
13423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_direct=yes
13425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13426 hardcode_libdir_separator=:
13427 hardcode_shlibpath_var=no
13428 ;;
13429
13430 *nto* | *qnx*)
13431 ;;
13432
13433 openbsd* | bitrig*)
13434 if test -f /usr/libexec/ld.so; then
13435 hardcode_direct=yes
13436 hardcode_shlibpath_var=no
13437 hardcode_direct_absolute=yes
13438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13440 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13441 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13442 export_dynamic_flag_spec='$wl-E'
13443 else
13444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13445 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13446 fi
13447 else
13448 ld_shlibs=no
13449 fi
13450 ;;
13451
13452 os2*)
13453 hardcode_libdir_flag_spec='-L$libdir'
13454 hardcode_minus_L=yes
13455 allow_undefined_flag=unsupported
13456 shrext_cmds=.dll
13457 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13458 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13459 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13460 $ECHO EXPORTS >> $output_objdir/$libname.def~
13461 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13462 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13463 emximp -o $lib $output_objdir/$libname.def'
13464 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13465 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13466 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13467 $ECHO EXPORTS >> $output_objdir/$libname.def~
13468 prefix_cmds="$SED"~
13469 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13470 prefix_cmds="$prefix_cmds -e 1d";
13471 fi~
13472 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13473 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13474 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13475 emximp -o $lib $output_objdir/$libname.def'
13476 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13477 enable_shared_with_static_runtimes=yes
13478 ;;
13479
13480 osf3*)
13481 if test yes = "$GCC"; then
13482 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13483 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'
13484 else
13485 allow_undefined_flag=' -expect_unresolved \*'
13486 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'
13487 fi
13488 archive_cmds_need_lc='no'
13489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13490 hardcode_libdir_separator=:
13491 ;;
13492
13493 osf4* | osf5*) # as osf3* with the addition of -msym flag
13494 if test yes = "$GCC"; then
13495 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13496 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'
13497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13498 else
13499 allow_undefined_flag=' -expect_unresolved \*'
13500 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'
13501 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~
13502 $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'
13503
13504 # Both c and cxx compiler support -rpath directly
13505 hardcode_libdir_flag_spec='-rpath $libdir'
13506 fi
13507 archive_cmds_need_lc='no'
13508 hardcode_libdir_separator=:
13509 ;;
13510
13511 solaris*)
13512 no_undefined_flag=' -z defs'
13513 if test yes = "$GCC"; then
13514 wlarc='$wl'
13515 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13517 $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'
13518 else
13519 case `$CC -V 2>&1` in
13520 *"Compilers 5.0"*)
13521 wlarc=''
13522 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13524 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13525 ;;
13526 *)
13527 wlarc='$wl'
13528 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13529 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13530 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13531 ;;
13532 esac
13533 fi
13534 hardcode_libdir_flag_spec='-R$libdir'
13535 hardcode_shlibpath_var=no
13536 case $host_os in
13537 solaris2.[0-5] | solaris2.[0-5].*) ;;
13538 *)
13539 # The compiler driver will combine and reorder linker options,
13540 # but understands '-z linker_flag'. GCC discards it without '$wl',
13541 # but is careful enough not to reorder.
13542 # Supported since Solaris 2.6 (maybe 2.5.1?)
13543 if test yes = "$GCC"; then
13544 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13545 else
13546 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13547 fi
13548 ;;
13549 esac
13550 link_all_deplibs=yes
13551 ;;
13552
13553 sunos4*)
13554 if test sequent = "$host_vendor"; then
13555 # Use $CC to link under sequent, because it throws in some extra .o
13556 # files that make .init and .fini sections work.
13557 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13558 else
13559 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13560 fi
13561 hardcode_libdir_flag_spec='-L$libdir'
13562 hardcode_direct=yes
13563 hardcode_minus_L=yes
13564 hardcode_shlibpath_var=no
13565 ;;
13566
13567 sysv4)
13568 case $host_vendor in
13569 sni)
13570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13571 hardcode_direct=yes # is this really true???
13572 ;;
13573 siemens)
13574 ## LD is ld it makes a PLAMLIB
13575 ## CC just makes a GrossModule.
13576 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13577 reload_cmds='$CC -r -o $output$reload_objs'
13578 hardcode_direct=no
13579 ;;
13580 motorola)
13581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13583 ;;
13584 esac
13585 runpath_var='LD_RUN_PATH'
13586 hardcode_shlibpath_var=no
13587 ;;
13588
13589 sysv4.3*)
13590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13591 hardcode_shlibpath_var=no
13592 export_dynamic_flag_spec='-Bexport'
13593 ;;
13594
13595 sysv4*MP*)
13596 if test -d /usr/nec; then
13597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13598 hardcode_shlibpath_var=no
13599 runpath_var=LD_RUN_PATH
13600 hardcode_runpath_var=yes
13601 ld_shlibs=yes
13602 fi
13603 ;;
13604
13605 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13606 no_undefined_flag='$wl-z,text'
13607 archive_cmds_need_lc=no
13608 hardcode_shlibpath_var=no
13609 runpath_var='LD_RUN_PATH'
13610
13611 if test yes = "$GCC"; then
13612 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13613 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614 else
13615 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617 fi
13618 ;;
13619
13620 sysv5* | sco3.2v5* | sco5v6*)
13621 # Note: We CANNOT use -z defs as we might desire, because we do not
13622 # link with -lc, and that would cause any symbols used from libc to
13623 # always be unresolved, which means just about no library would
13624 # ever link correctly. If we're not using GNU ld we use -z text
13625 # though, which does catch some bad symbols but isn't as heavy-handed
13626 # as -z defs.
13627 no_undefined_flag='$wl-z,text'
13628 allow_undefined_flag='$wl-z,nodefs'
13629 archive_cmds_need_lc=no
13630 hardcode_shlibpath_var=no
13631 hardcode_libdir_flag_spec='$wl-R,$libdir'
13632 hardcode_libdir_separator=':'
13633 link_all_deplibs=yes
13634 export_dynamic_flag_spec='$wl-Bexport'
13635 runpath_var='LD_RUN_PATH'
13636
13637 if test yes = "$GCC"; then
13638 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 else
13641 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 fi
13644 ;;
13645
13646 uts4*)
13647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13648 hardcode_libdir_flag_spec='-L$libdir'
13649 hardcode_shlibpath_var=no
13650 ;;
13651
13652 *)
13653 ld_shlibs=no
13654 ;;
13655 esac
13656
13657 if test sni = "$host_vendor"; then
13658 case $host in
13659 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13660 export_dynamic_flag_spec='$wl-Blargedynsym'
13661 ;;
13662 esac
13663 fi
13664 fi
13665
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13667 printf "%s\n" "$ld_shlibs" >&6; }
13668 test no = "$ld_shlibs" && can_build_shared=no
13669
13670 with_gnu_ld=$with_gnu_ld
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686 #
13687 # Do we need to explicitly link libc?
13688 #
13689 case "x$archive_cmds_need_lc" in
13690 x|xyes)
13691 # Assume -lc should be added
13692 archive_cmds_need_lc=yes
13693
13694 if test yes,yes = "$GCC,$enable_shared"; then
13695 case $archive_cmds in
13696 *'~'*)
13697 # FIXME: we may have to deal with multi-command sequences.
13698 ;;
13699 '$CC '*)
13700 # Test whether the compiler implicitly links with -lc since on some
13701 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13702 # to ld, don't add -lc before -lgcc.
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13704 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13705 if test ${lt_cv_archive_cmds_need_lc+y}
13706 then :
13707 printf %s "(cached) " >&6
13708 else $as_nop
13709 $RM conftest*
13710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13711
13712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13713 (eval $ac_compile) 2>&5
13714 ac_status=$?
13715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13716 test $ac_status = 0; } 2>conftest.err; then
13717 soname=conftest
13718 lib=conftest
13719 libobjs=conftest.$ac_objext
13720 deplibs=
13721 wl=$lt_prog_compiler_wl
13722 pic_flag=$lt_prog_compiler_pic
13723 compiler_flags=-v
13724 linker_flags=-v
13725 verstring=
13726 output_objdir=.
13727 libname=conftest
13728 lt_save_allow_undefined_flag=$allow_undefined_flag
13729 allow_undefined_flag=
13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13731 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13732 ac_status=$?
13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; }
13735 then
13736 lt_cv_archive_cmds_need_lc=no
13737 else
13738 lt_cv_archive_cmds_need_lc=yes
13739 fi
13740 allow_undefined_flag=$lt_save_allow_undefined_flag
13741 else
13742 cat conftest.err 1>&5
13743 fi
13744 $RM conftest*
13745
13746 fi
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13748 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13749 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13750 ;;
13751 esac
13752 fi
13753 ;;
13754 esac
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13908 printf %s "checking dynamic linker characteristics... " >&6; }
13909
13910 if test yes = "$GCC"; then
13911 case $host_os in
13912 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13913 *) lt_awk_arg='/^libraries:/' ;;
13914 esac
13915 case $host_os in
13916 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13917 *) lt_sed_strip_eq='s|=/|/|g' ;;
13918 esac
13919 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13920 case $lt_search_path_spec in
13921 *\;*)
13922 # if the path contains ";" then we assume it to be the separator
13923 # otherwise default to the standard path separator (i.e. ":") - it is
13924 # assumed that no part of a normal pathname contains ";" but that should
13925 # okay in the real world where ";" in dirpaths is itself problematic.
13926 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13927 ;;
13928 *)
13929 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13930 ;;
13931 esac
13932 # Ok, now we have the path, separated by spaces, we can step through it
13933 # and add multilib dir if necessary...
13934 lt_tmp_lt_search_path_spec=
13935 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13936 # ...but if some path component already ends with the multilib dir we assume
13937 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13938 case "$lt_multi_os_dir; $lt_search_path_spec " in
13939 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13940 lt_multi_os_dir=
13941 ;;
13942 esac
13943 for lt_sys_path in $lt_search_path_spec; do
13944 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13946 elif test -n "$lt_multi_os_dir"; then
13947 test -d "$lt_sys_path" && \
13948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13949 fi
13950 done
13951 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13952 BEGIN {RS = " "; FS = "/|\n";} {
13953 lt_foo = "";
13954 lt_count = 0;
13955 for (lt_i = NF; lt_i > 0; lt_i--) {
13956 if ($lt_i != "" && $lt_i != ".") {
13957 if ($lt_i == "..") {
13958 lt_count++;
13959 } else {
13960 if (lt_count == 0) {
13961 lt_foo = "/" $lt_i lt_foo;
13962 } else {
13963 lt_count--;
13964 }
13965 }
13966 }
13967 }
13968 if (lt_foo != "") { lt_freq[lt_foo]++; }
13969 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13970 }'`
13971 # AWK program above erroneously prepends '/' to C:/dos/paths
13972 # for these hosts.
13973 case $host_os in
13974 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13975 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13976 esac
13977 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13978 else
13979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13980 fi
13981 library_names_spec=
13982 libname_spec='lib$name'
13983 soname_spec=
13984 shrext_cmds=.so
13985 postinstall_cmds=
13986 postuninstall_cmds=
13987 finish_cmds=
13988 finish_eval=
13989 shlibpath_var=
13990 shlibpath_overrides_runpath=unknown
13991 version_type=none
13992 dynamic_linker="$host_os ld.so"
13993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13994 need_lib_prefix=unknown
13995 hardcode_into_libs=no
13996
13997 # when you set need_version to no, make sure it does not cause -set_version
13998 # flags to be left without arguments
13999 need_version=unknown
14000
14001
14002
14003 case $host_os in
14004 aix3*)
14005 version_type=linux # correct to gnu/linux during the next big refactor
14006 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14007 shlibpath_var=LIBPATH
14008
14009 # AIX 3 has no versioning support, so we append a major version to the name.
14010 soname_spec='$libname$release$shared_ext$major'
14011 ;;
14012
14013 aix[4-9]*)
14014 version_type=linux # correct to gnu/linux during the next big refactor
14015 need_lib_prefix=no
14016 need_version=no
14017 hardcode_into_libs=yes
14018 if test ia64 = "$host_cpu"; then
14019 # AIX 5 supports IA64
14020 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 else
14023 # With GCC up to 2.95.x, collect2 would create an import file
14024 # for dependence libraries. The import file would start with
14025 # the line '#! .'. This would cause the generated library to
14026 # depend on '.', always an invalid library. This was fixed in
14027 # development snapshots of GCC prior to 3.0.
14028 case $host_os in
14029 aix4 | aix4.[01] | aix4.[01].*)
14030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14031 echo ' yes '
14032 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14033 :
14034 else
14035 can_build_shared=no
14036 fi
14037 ;;
14038 esac
14039 # Using Import Files as archive members, it is possible to support
14040 # filename-based versioning of shared library archives on AIX. While
14041 # this would work for both with and without runtime linking, it will
14042 # prevent static linking of such archives. So we do filename-based
14043 # shared library versioning with .so extension only, which is used
14044 # when both runtime linking and shared linking is enabled.
14045 # Unfortunately, runtime linking may impact performance, so we do
14046 # not want this to be the default eventually. Also, we use the
14047 # versioned .so libs for executables only if there is the -brtl
14048 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14049 # To allow for filename-based versioning support, we need to create
14050 # libNAME.so.V as an archive file, containing:
14051 # *) an Import File, referring to the versioned filename of the
14052 # archive as well as the shared archive member, telling the
14053 # bitwidth (32 or 64) of that shared object, and providing the
14054 # list of exported symbols of that shared object, eventually
14055 # decorated with the 'weak' keyword
14056 # *) the shared object with the F_LOADONLY flag set, to really avoid
14057 # it being seen by the linker.
14058 # At run time we better use the real file rather than another symlink,
14059 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14060
14061 case $with_aix_soname,$aix_use_runtimelinking in
14062 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14063 # soname into executable. Probably we can add versioning support to
14064 # collect2, so additional links can be useful in future.
14065 aix,yes) # traditional libtool
14066 dynamic_linker='AIX unversionable lib.so'
14067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14068 # instead of lib<name>.a to let people know that these are not
14069 # typical AIX shared libraries.
14070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14071 ;;
14072 aix,no) # traditional AIX only
14073 dynamic_linker='AIX lib.a(lib.so.V)'
14074 # We preserve .a as extension for shared libraries through AIX4.2
14075 # and later when we are not doing run time linking.
14076 library_names_spec='$libname$release.a $libname.a'
14077 soname_spec='$libname$release$shared_ext$major'
14078 ;;
14079 svr4,*) # full svr4 only
14080 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14081 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14082 # We do not specify a path in Import Files, so LIBPATH fires.
14083 shlibpath_overrides_runpath=yes
14084 ;;
14085 *,yes) # both, prefer svr4
14086 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14087 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14088 # unpreferred sharedlib libNAME.a needs extra handling
14089 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"'
14090 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"'
14091 # We do not specify a path in Import Files, so LIBPATH fires.
14092 shlibpath_overrides_runpath=yes
14093 ;;
14094 *,no) # both, prefer aix
14095 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14096 library_names_spec='$libname$release.a $libname.a'
14097 soname_spec='$libname$release$shared_ext$major'
14098 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14099 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)'
14100 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"'
14101 ;;
14102 esac
14103 shlibpath_var=LIBPATH
14104 fi
14105 ;;
14106
14107 amigaos*)
14108 case $host_cpu in
14109 powerpc)
14110 # Since July 2007 AmigaOS4 officially supports .so libraries.
14111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14113 ;;
14114 m68k)
14115 library_names_spec='$libname.ixlibrary $libname.a'
14116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14117 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'
14118 ;;
14119 esac
14120 ;;
14121
14122 beos*)
14123 library_names_spec='$libname$shared_ext'
14124 dynamic_linker="$host_os ld.so"
14125 shlibpath_var=LIBRARY_PATH
14126 ;;
14127
14128 bsdi[45]*)
14129 version_type=linux # correct to gnu/linux during the next big refactor
14130 need_version=no
14131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14132 soname_spec='$libname$release$shared_ext$major'
14133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14137 # the default ld.so.conf also contains /usr/contrib/lib and
14138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14139 # libtool to hard-code these into programs
14140 ;;
14141
14142 cygwin* | mingw* | pw32* | cegcc*)
14143 version_type=windows
14144 shrext_cmds=.dll
14145 need_version=no
14146 need_lib_prefix=no
14147
14148 case $GCC,$cc_basename in
14149 yes,*)
14150 # gcc
14151 library_names_spec='$libname.dll.a'
14152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14153 postinstall_cmds='base_file=`basename \$file`~
14154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14155 dldir=$destdir/`dirname \$dlpath`~
14156 test -d \$dldir || mkdir -p \$dldir~
14157 $install_prog $dir/$dlname \$dldir/$dlname~
14158 chmod a+x \$dldir/$dlname~
14159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14161 fi'
14162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14163 dlpath=$dir/\$dldll~
14164 $RM \$dlpath'
14165 shlibpath_overrides_runpath=yes
14166
14167 case $host_os in
14168 cygwin*)
14169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14170 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14171
14172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14173 ;;
14174 mingw* | cegcc*)
14175 # MinGW DLLs use traditional 'lib' prefix
14176 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14177 ;;
14178 pw32*)
14179 # pw32 DLLs use 'pw' prefix rather than 'lib'
14180 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14181 ;;
14182 esac
14183 dynamic_linker='Win32 ld.exe'
14184 ;;
14185
14186 *,cl*)
14187 # Native MSVC
14188 libname_spec='$name'
14189 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14190 library_names_spec='$libname.dll.lib'
14191
14192 case $build_os in
14193 mingw*)
14194 sys_lib_search_path_spec=
14195 lt_save_ifs=$IFS
14196 IFS=';'
14197 for lt_path in $LIB
14198 do
14199 IFS=$lt_save_ifs
14200 # Let DOS variable expansion print the short 8.3 style file name.
14201 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14202 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14203 done
14204 IFS=$lt_save_ifs
14205 # Convert to MSYS style.
14206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14207 ;;
14208 cygwin*)
14209 # Convert to unix form, then to dos form, then back to unix form
14210 # but this time dos style (no spaces!) so that the unix form looks
14211 # like /cygdrive/c/PROGRA~1:/cygdr...
14212 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14213 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14214 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14215 ;;
14216 *)
14217 sys_lib_search_path_spec=$LIB
14218 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14219 # It is most probably a Windows format PATH.
14220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14221 else
14222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14223 fi
14224 # FIXME: find the short name or the path components, as spaces are
14225 # common. (e.g. "Program Files" -> "PROGRA~1")
14226 ;;
14227 esac
14228
14229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14230 postinstall_cmds='base_file=`basename \$file`~
14231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14232 dldir=$destdir/`dirname \$dlpath`~
14233 test -d \$dldir || mkdir -p \$dldir~
14234 $install_prog $dir/$dlname \$dldir/$dlname'
14235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14236 dlpath=$dir/\$dldll~
14237 $RM \$dlpath'
14238 shlibpath_overrides_runpath=yes
14239 dynamic_linker='Win32 link.exe'
14240 ;;
14241
14242 *)
14243 # Assume MSVC wrapper
14244 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14245 dynamic_linker='Win32 ld.exe'
14246 ;;
14247 esac
14248 # FIXME: first we should search . and the directory the executable is in
14249 shlibpath_var=PATH
14250 ;;
14251
14252 darwin* | rhapsody*)
14253 dynamic_linker="$host_os dyld"
14254 version_type=darwin
14255 need_lib_prefix=no
14256 need_version=no
14257 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14258 soname_spec='$libname$release$major$shared_ext'
14259 shlibpath_overrides_runpath=yes
14260 shlibpath_var=DYLD_LIBRARY_PATH
14261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14262
14263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14265 ;;
14266
14267 dgux*)
14268 version_type=linux # correct to gnu/linux during the next big refactor
14269 need_lib_prefix=no
14270 need_version=no
14271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14272 soname_spec='$libname$release$shared_ext$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 ;;
14275
14276 freebsd* | dragonfly*)
14277 # DragonFly does not have aout. When/if they implement a new
14278 # versioning mechanism, adjust this.
14279 if test -x /usr/bin/objformat; then
14280 objformat=`/usr/bin/objformat`
14281 else
14282 case $host_os in
14283 freebsd[23].*) objformat=aout ;;
14284 *) objformat=elf ;;
14285 esac
14286 fi
14287 version_type=freebsd-$objformat
14288 case $version_type in
14289 freebsd-elf*)
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14291 soname_spec='$libname$release$shared_ext$major'
14292 need_version=no
14293 need_lib_prefix=no
14294 ;;
14295 freebsd-*)
14296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14297 need_version=yes
14298 ;;
14299 esac
14300 shlibpath_var=LD_LIBRARY_PATH
14301 case $host_os in
14302 freebsd2.*)
14303 shlibpath_overrides_runpath=yes
14304 ;;
14305 freebsd3.[01]* | freebsdelf3.[01]*)
14306 shlibpath_overrides_runpath=yes
14307 hardcode_into_libs=yes
14308 ;;
14309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14311 shlibpath_overrides_runpath=no
14312 hardcode_into_libs=yes
14313 ;;
14314 *) # from 4.6 on, and DragonFly
14315 shlibpath_overrides_runpath=yes
14316 hardcode_into_libs=yes
14317 ;;
14318 esac
14319 ;;
14320
14321 haiku*)
14322 version_type=linux # correct to gnu/linux during the next big refactor
14323 need_lib_prefix=no
14324 need_version=no
14325 dynamic_linker="$host_os runtime_loader"
14326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14327 soname_spec='$libname$release$shared_ext$major'
14328 shlibpath_var=LIBRARY_PATH
14329 shlibpath_overrides_runpath=no
14330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14331 hardcode_into_libs=yes
14332 ;;
14333
14334 hpux9* | hpux10* | hpux11*)
14335 # Give a soname corresponding to the major version so that dld.sl refuses to
14336 # link against other versions.
14337 version_type=sunos
14338 need_lib_prefix=no
14339 need_version=no
14340 case $host_cpu in
14341 ia64*)
14342 shrext_cmds='.so'
14343 hardcode_into_libs=yes
14344 dynamic_linker="$host_os dld.so"
14345 shlibpath_var=LD_LIBRARY_PATH
14346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14348 soname_spec='$libname$release$shared_ext$major'
14349 if test 32 = "$HPUX_IA64_MODE"; then
14350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14351 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14352 else
14353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14354 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14355 fi
14356 ;;
14357 hppa*64*)
14358 shrext_cmds='.sl'
14359 hardcode_into_libs=yes
14360 dynamic_linker="$host_os dld.sl"
14361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14364 soname_spec='$libname$release$shared_ext$major'
14365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14367 ;;
14368 *)
14369 shrext_cmds='.sl'
14370 dynamic_linker="$host_os dld.sl"
14371 shlibpath_var=SHLIB_PATH
14372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14374 soname_spec='$libname$release$shared_ext$major'
14375 ;;
14376 esac
14377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14378 postinstall_cmds='chmod 555 $lib'
14379 # or fails outright, so override atomically:
14380 install_override_mode=555
14381 ;;
14382
14383 interix[3-9]*)
14384 version_type=linux # correct to gnu/linux during the next big refactor
14385 need_lib_prefix=no
14386 need_version=no
14387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14388 soname_spec='$libname$release$shared_ext$major'
14389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 shlibpath_overrides_runpath=no
14392 hardcode_into_libs=yes
14393 ;;
14394
14395 irix5* | irix6* | nonstopux*)
14396 case $host_os in
14397 nonstopux*) version_type=nonstopux ;;
14398 *)
14399 if test yes = "$lt_cv_prog_gnu_ld"; then
14400 version_type=linux # correct to gnu/linux during the next big refactor
14401 else
14402 version_type=irix
14403 fi ;;
14404 esac
14405 need_lib_prefix=no
14406 need_version=no
14407 soname_spec='$libname$release$shared_ext$major'
14408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14409 case $host_os in
14410 irix5* | nonstopux*)
14411 libsuff= shlibsuff=
14412 ;;
14413 *)
14414 case $LD in # libtool.m4 will add one of these switches to LD
14415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14416 libsuff= shlibsuff= libmagic=32-bit;;
14417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14418 libsuff=32 shlibsuff=N32 libmagic=N32;;
14419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14421 *) libsuff= shlibsuff= libmagic=never-match;;
14422 esac
14423 ;;
14424 esac
14425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14426 shlibpath_overrides_runpath=no
14427 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14428 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14429 hardcode_into_libs=yes
14430 ;;
14431
14432 # No shared lib support for Linux oldld, aout, or coff.
14433 linux*oldld* | linux*aout* | linux*coff*)
14434 dynamic_linker=no
14435 ;;
14436
14437 linux*android*)
14438 version_type=none # Android doesn't support versioned libraries.
14439 need_lib_prefix=no
14440 need_version=no
14441 library_names_spec='$libname$release$shared_ext'
14442 soname_spec='$libname$release$shared_ext'
14443 finish_cmds=
14444 shlibpath_var=LD_LIBRARY_PATH
14445 shlibpath_overrides_runpath=yes
14446
14447 # This implies no fast_install, which is unacceptable.
14448 # Some rework will be needed to allow for fast_install
14449 # before this can be enabled.
14450 hardcode_into_libs=yes
14451
14452 dynamic_linker='Android linker'
14453 # Don't embed -rpath directories since the linker doesn't support them.
14454 hardcode_libdir_flag_spec='-L$libdir'
14455 ;;
14456
14457 # This must be glibc/ELF.
14458 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14459 version_type=linux # correct to gnu/linux during the next big refactor
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14463 soname_spec='$libname$release$shared_ext$major'
14464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=no
14467
14468 # Some binutils ld are patched to set DT_RUNPATH
14469 if test ${lt_cv_shlibpath_overrides_runpath+y}
14470 then :
14471 printf %s "(cached) " >&6
14472 else $as_nop
14473 lt_cv_shlibpath_overrides_runpath=no
14474 save_LDFLAGS=$LDFLAGS
14475 save_libdir=$libdir
14476 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14477 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480
14481 int
14482 main (void)
14483 {
14484
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"
14490 then :
14491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14492 then :
14493 lt_cv_shlibpath_overrides_runpath=yes
14494 fi
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497 conftest$ac_exeext conftest.$ac_ext
14498 LDFLAGS=$save_LDFLAGS
14499 libdir=$save_libdir
14500
14501 fi
14502
14503 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14504
14505 # This implies no fast_install, which is unacceptable.
14506 # Some rework will be needed to allow for fast_install
14507 # before this can be enabled.
14508 hardcode_into_libs=yes
14509
14510 # Ideally, we could use ldconfig to report *all* directores which are
14511 # searched for libraries, however this is still not possible. Aside from not
14512 # being certain /sbin/ldconfig is available, command
14513 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14514 # even though it is searched at run-time. Try to do the best guess by
14515 # appending ld.so.conf contents (and includes) to the search path.
14516 if test -f /etc/ld.so.conf; then
14517 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' ' '`
14518 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14519 fi
14520
14521 # We used to test for /lib/ld.so.1 and disable shared libraries on
14522 # powerpc, because MkLinux only supported shared libraries with the
14523 # GNU dynamic linker. Since this was broken with cross compilers,
14524 # most powerpc-linux boxes support dynamic linking these days and
14525 # people can always --disable-shared, the test was removed, and we
14526 # assume the GNU/Linux dynamic linker is in use.
14527 dynamic_linker='GNU/Linux ld.so'
14528 ;;
14529
14530 netbsd*)
14531 version_type=sunos
14532 need_lib_prefix=no
14533 need_version=no
14534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14535 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14537 dynamic_linker='NetBSD (a.out) ld.so'
14538 else
14539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14540 soname_spec='$libname$release$shared_ext$major'
14541 dynamic_linker='NetBSD ld.elf_so'
14542 fi
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=yes
14545 hardcode_into_libs=yes
14546 ;;
14547
14548 newsos6)
14549 version_type=linux # correct to gnu/linux during the next big refactor
14550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 ;;
14554
14555 *nto* | *qnx*)
14556 version_type=qnx
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14560 soname_spec='$libname$release$shared_ext$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=no
14563 hardcode_into_libs=yes
14564 dynamic_linker='ldqnx.so'
14565 ;;
14566
14567 openbsd* | bitrig*)
14568 version_type=sunos
14569 sys_lib_dlsearch_path_spec=/usr/lib
14570 need_lib_prefix=no
14571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14572 need_version=no
14573 else
14574 need_version=yes
14575 fi
14576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14580 ;;
14581
14582 os2*)
14583 libname_spec='$name'
14584 version_type=windows
14585 shrext_cmds=.dll
14586 need_version=no
14587 need_lib_prefix=no
14588 # OS/2 can only load a DLL with a base name of 8 characters or less.
14589 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14590 v=$($ECHO $release$versuffix | tr -d .-);
14591 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14592 $ECHO $n$v`$shared_ext'
14593 library_names_spec='${libname}_dll.$libext'
14594 dynamic_linker='OS/2 ld.exe'
14595 shlibpath_var=BEGINLIBPATH
14596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14598 postinstall_cmds='base_file=`basename \$file`~
14599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14600 dldir=$destdir/`dirname \$dlpath`~
14601 test -d \$dldir || mkdir -p \$dldir~
14602 $install_prog $dir/$dlname \$dldir/$dlname~
14603 chmod a+x \$dldir/$dlname~
14604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14606 fi'
14607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14608 dlpath=$dir/\$dldll~
14609 $RM \$dlpath'
14610 ;;
14611
14612 osf3* | osf4* | osf5*)
14613 version_type=osf
14614 need_lib_prefix=no
14615 need_version=no
14616 soname_spec='$libname$release$shared_ext$major'
14617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14621 ;;
14622
14623 rdos*)
14624 dynamic_linker=no
14625 ;;
14626
14627 solaris*)
14628 version_type=linux # correct to gnu/linux during the next big refactor
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14632 soname_spec='$libname$release$shared_ext$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=yes
14635 hardcode_into_libs=yes
14636 # ldd complains unless libraries are executable
14637 postinstall_cmds='chmod +x $lib'
14638 ;;
14639
14640 sunos4*)
14641 version_type=sunos
14642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 if test yes = "$with_gnu_ld"; then
14647 need_lib_prefix=no
14648 fi
14649 need_version=yes
14650 ;;
14651
14652 sysv4 | sysv4.3*)
14653 version_type=linux # correct to gnu/linux during the next big refactor
14654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14655 soname_spec='$libname$release$shared_ext$major'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 case $host_vendor in
14658 sni)
14659 shlibpath_overrides_runpath=no
14660 need_lib_prefix=no
14661 runpath_var=LD_RUN_PATH
14662 ;;
14663 siemens)
14664 need_lib_prefix=no
14665 ;;
14666 motorola)
14667 need_lib_prefix=no
14668 need_version=no
14669 shlibpath_overrides_runpath=no
14670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14671 ;;
14672 esac
14673 ;;
14674
14675 sysv4*MP*)
14676 if test -d /usr/nec; then
14677 version_type=linux # correct to gnu/linux during the next big refactor
14678 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14679 soname_spec='$libname$shared_ext.$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 fi
14682 ;;
14683
14684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14685 version_type=sco
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14689 soname_spec='$libname$release$shared_ext$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes
14692 hardcode_into_libs=yes
14693 if test yes = "$with_gnu_ld"; then
14694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14695 else
14696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14697 case $host_os in
14698 sco3.2v5*)
14699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14700 ;;
14701 esac
14702 fi
14703 sys_lib_dlsearch_path_spec='/usr/lib'
14704 ;;
14705
14706 tpf*)
14707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14708 version_type=linux # correct to gnu/linux during the next big refactor
14709 need_lib_prefix=no
14710 need_version=no
14711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=no
14714 hardcode_into_libs=yes
14715 ;;
14716
14717 uts4*)
14718 version_type=linux # correct to gnu/linux during the next big refactor
14719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14720 soname_spec='$libname$release$shared_ext$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 ;;
14723
14724 *)
14725 dynamic_linker=no
14726 ;;
14727 esac
14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14729 printf "%s\n" "$dynamic_linker" >&6; }
14730 test no = "$dynamic_linker" && can_build_shared=no
14731
14732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14733 if test yes = "$GCC"; then
14734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14735 fi
14736
14737 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14738 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14739 fi
14740
14741 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14742 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14743 fi
14744
14745 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14746 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14747
14748 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14749 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14750
14751 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14752 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14851 printf %s "checking how to hardcode library paths into programs... " >&6; }
14852 hardcode_action=
14853 if test -n "$hardcode_libdir_flag_spec" ||
14854 test -n "$runpath_var" ||
14855 test yes = "$hardcode_automatic"; then
14856
14857 # We can hardcode non-existent directories.
14858 if test no != "$hardcode_direct" &&
14859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14860 # have to relink, otherwise we might link with an installed library
14861 # when we should be linking with a yet-to-be-installed one
14862 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14863 test no != "$hardcode_minus_L"; then
14864 # Linking always hardcodes the temporary library directory.
14865 hardcode_action=relink
14866 else
14867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14868 hardcode_action=immediate
14869 fi
14870 else
14871 # We cannot hardcode anything, or else we can only hardcode existing
14872 # directories.
14873 hardcode_action=unsupported
14874 fi
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14876 printf "%s\n" "$hardcode_action" >&6; }
14877
14878 if test relink = "$hardcode_action" ||
14879 test yes = "$inherit_rpath"; then
14880 # Fast installation is not supported
14881 enable_fast_install=no
14882 elif test yes = "$shlibpath_overrides_runpath" ||
14883 test no = "$enable_shared"; then
14884 # Fast installation is not necessary
14885 enable_fast_install=needless
14886 fi
14887
14888
14889
14890
14891
14892
14893 if test yes != "$enable_dlopen"; then
14894 enable_dlopen=unknown
14895 enable_dlopen_self=unknown
14896 enable_dlopen_self_static=unknown
14897 else
14898 lt_cv_dlopen=no
14899 lt_cv_dlopen_libs=
14900
14901 case $host_os in
14902 beos*)
14903 lt_cv_dlopen=load_add_on
14904 lt_cv_dlopen_libs=
14905 lt_cv_dlopen_self=yes
14906 ;;
14907
14908 mingw* | pw32* | cegcc*)
14909 lt_cv_dlopen=LoadLibrary
14910 lt_cv_dlopen_libs=
14911 ;;
14912
14913 cygwin*)
14914 lt_cv_dlopen=dlopen
14915 lt_cv_dlopen_libs=
14916 ;;
14917
14918 darwin*)
14919 # if libdl is installed we need to link against it
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14921 printf %s "checking for dlopen in -ldl... " >&6; }
14922 if test ${ac_cv_lib_dl_dlopen+y}
14923 then :
14924 printf %s "(cached) " >&6
14925 else $as_nop
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-ldl $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14934 char dlopen ();
14935 int
14936 main (void)
14937 {
14938 return dlopen ();
14939 ;
14940 return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"
14944 then :
14945 ac_cv_lib_dl_dlopen=yes
14946 else $as_nop
14947 ac_cv_lib_dl_dlopen=no
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14952 fi
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14954 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14955 if test "x$ac_cv_lib_dl_dlopen" = xyes
14956 then :
14957 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14958 else $as_nop
14959
14960 lt_cv_dlopen=dyld
14961 lt_cv_dlopen_libs=
14962 lt_cv_dlopen_self=yes
14963
14964 fi
14965
14966 ;;
14967
14968 tpf*)
14969 # Don't try to run any link tests for TPF. We know it's impossible
14970 # because TPF is a cross-compiler, and we know how we open DSOs.
14971 lt_cv_dlopen=dlopen
14972 lt_cv_dlopen_libs=
14973 lt_cv_dlopen_self=no
14974 ;;
14975
14976 *)
14977 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14978 if test "x$ac_cv_func_shl_load" = xyes
14979 then :
14980 lt_cv_dlopen=shl_load
14981 else $as_nop
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14983 printf %s "checking for shl_load in -ldld... " >&6; }
14984 if test ${ac_cv_lib_dld_shl_load+y}
14985 then :
14986 printf %s "(cached) " >&6
14987 else $as_nop
14988 ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-ldld $LIBS"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
14996 char shl_load ();
14997 int
14998 main (void)
14999 {
15000 return shl_load ();
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"
15006 then :
15007 ac_cv_lib_dld_shl_load=yes
15008 else $as_nop
15009 ac_cv_lib_dld_shl_load=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15012 conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15014 fi
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15016 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15017 if test "x$ac_cv_lib_dld_shl_load" = xyes
15018 then :
15019 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15020 else $as_nop
15021 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15022 if test "x$ac_cv_func_dlopen" = xyes
15023 then :
15024 lt_cv_dlopen=dlopen
15025 else $as_nop
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15027 printf %s "checking for dlopen in -ldl... " >&6; }
15028 if test ${ac_cv_lib_dl_dlopen+y}
15029 then :
15030 printf %s "(cached) " >&6
15031 else $as_nop
15032 ac_check_lib_save_LIBS=$LIBS
15033 LIBS="-ldl $LIBS"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036
15037 /* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
15040 char dlopen ();
15041 int
15042 main (void)
15043 {
15044 return dlopen ();
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"
15050 then :
15051 ac_cv_lib_dl_dlopen=yes
15052 else $as_nop
15053 ac_cv_lib_dl_dlopen=no
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15056 conftest$ac_exeext conftest.$ac_ext
15057 LIBS=$ac_check_lib_save_LIBS
15058 fi
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15060 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15061 if test "x$ac_cv_lib_dl_dlopen" = xyes
15062 then :
15063 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15064 else $as_nop
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15066 printf %s "checking for dlopen in -lsvld... " >&6; }
15067 if test ${ac_cv_lib_svld_dlopen+y}
15068 then :
15069 printf %s "(cached) " >&6
15070 else $as_nop
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-lsvld $LIBS"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075
15076 /* Override any GCC internal prototype to avoid an error.
15077 Use char because int might match the return type of a GCC
15078 builtin and then its argument prototype would still apply. */
15079 char dlopen ();
15080 int
15081 main (void)
15082 {
15083 return dlopen ();
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"
15089 then :
15090 ac_cv_lib_svld_dlopen=yes
15091 else $as_nop
15092 ac_cv_lib_svld_dlopen=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15097 fi
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15099 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15100 if test "x$ac_cv_lib_svld_dlopen" = xyes
15101 then :
15102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15103 else $as_nop
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15105 printf %s "checking for dld_link in -ldld... " >&6; }
15106 if test ${ac_cv_lib_dld_dld_link+y}
15107 then :
15108 printf %s "(cached) " >&6
15109 else $as_nop
15110 ac_check_lib_save_LIBS=$LIBS
15111 LIBS="-ldld $LIBS"
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114
15115 /* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
15118 char dld_link ();
15119 int
15120 main (void)
15121 {
15122 return dld_link ();
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"
15128 then :
15129 ac_cv_lib_dld_dld_link=yes
15130 else $as_nop
15131 ac_cv_lib_dld_dld_link=no
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15134 conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15136 fi
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15138 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15139 if test "x$ac_cv_lib_dld_dld_link" = xyes
15140 then :
15141 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15142 fi
15143
15144
15145 fi
15146
15147
15148 fi
15149
15150
15151 fi
15152
15153
15154 fi
15155
15156
15157 fi
15158
15159 ;;
15160 esac
15161
15162 if test no = "$lt_cv_dlopen"; then
15163 enable_dlopen=no
15164 else
15165 enable_dlopen=yes
15166 fi
15167
15168 case $lt_cv_dlopen in
15169 dlopen)
15170 save_CPPFLAGS=$CPPFLAGS
15171 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15172
15173 save_LDFLAGS=$LDFLAGS
15174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15175
15176 save_LIBS=$LIBS
15177 LIBS="$lt_cv_dlopen_libs $LIBS"
15178
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15180 printf %s "checking whether a program can dlopen itself... " >&6; }
15181 if test ${lt_cv_dlopen_self+y}
15182 then :
15183 printf %s "(cached) " >&6
15184 else $as_nop
15185 if test yes = "$cross_compiling"; then :
15186 lt_cv_dlopen_self=cross
15187 else
15188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15189 lt_status=$lt_dlunknown
15190 cat > conftest.$ac_ext <<_LT_EOF
15191 #line $LINENO "configure"
15192 #include "confdefs.h"
15193
15194 #if HAVE_DLFCN_H
15195 #include <dlfcn.h>
15196 #endif
15197
15198 #include <stdio.h>
15199
15200 #ifdef RTLD_GLOBAL
15201 # define LT_DLGLOBAL RTLD_GLOBAL
15202 #else
15203 # ifdef DL_GLOBAL
15204 # define LT_DLGLOBAL DL_GLOBAL
15205 # else
15206 # define LT_DLGLOBAL 0
15207 # endif
15208 #endif
15209
15210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15211 find out it does not work in some platform. */
15212 #ifndef LT_DLLAZY_OR_NOW
15213 # ifdef RTLD_LAZY
15214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15215 # else
15216 # ifdef DL_LAZY
15217 # define LT_DLLAZY_OR_NOW DL_LAZY
15218 # else
15219 # ifdef RTLD_NOW
15220 # define LT_DLLAZY_OR_NOW RTLD_NOW
15221 # else
15222 # ifdef DL_NOW
15223 # define LT_DLLAZY_OR_NOW DL_NOW
15224 # else
15225 # define LT_DLLAZY_OR_NOW 0
15226 # endif
15227 # endif
15228 # endif
15229 # endif
15230 #endif
15231
15232 /* When -fvisibility=hidden is used, assume the code has been annotated
15233 correspondingly for the symbols needed. */
15234 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15235 int fnord () __attribute__((visibility("default")));
15236 #endif
15237
15238 int fnord () { return 42; }
15239 int main ()
15240 {
15241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15242 int status = $lt_dlunknown;
15243
15244 if (self)
15245 {
15246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15247 else
15248 {
15249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15250 else puts (dlerror ());
15251 }
15252 /* dlclose (self); */
15253 }
15254 else
15255 puts (dlerror ());
15256
15257 return status;
15258 }
15259 _LT_EOF
15260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15261 (eval $ac_link) 2>&5
15262 ac_status=$?
15263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15265 (./conftest; exit; ) >&5 2>/dev/null
15266 lt_status=$?
15267 case x$lt_status in
15268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15270 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15271 esac
15272 else :
15273 # compilation failed
15274 lt_cv_dlopen_self=no
15275 fi
15276 fi
15277 rm -fr conftest*
15278
15279
15280 fi
15281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15282 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15283
15284 if test yes = "$lt_cv_dlopen_self"; then
15285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15287 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15288 if test ${lt_cv_dlopen_self_static+y}
15289 then :
15290 printf %s "(cached) " >&6
15291 else $as_nop
15292 if test yes = "$cross_compiling"; then :
15293 lt_cv_dlopen_self_static=cross
15294 else
15295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15296 lt_status=$lt_dlunknown
15297 cat > conftest.$ac_ext <<_LT_EOF
15298 #line $LINENO "configure"
15299 #include "confdefs.h"
15300
15301 #if HAVE_DLFCN_H
15302 #include <dlfcn.h>
15303 #endif
15304
15305 #include <stdio.h>
15306
15307 #ifdef RTLD_GLOBAL
15308 # define LT_DLGLOBAL RTLD_GLOBAL
15309 #else
15310 # ifdef DL_GLOBAL
15311 # define LT_DLGLOBAL DL_GLOBAL
15312 # else
15313 # define LT_DLGLOBAL 0
15314 # endif
15315 #endif
15316
15317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15318 find out it does not work in some platform. */
15319 #ifndef LT_DLLAZY_OR_NOW
15320 # ifdef RTLD_LAZY
15321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15322 # else
15323 # ifdef DL_LAZY
15324 # define LT_DLLAZY_OR_NOW DL_LAZY
15325 # else
15326 # ifdef RTLD_NOW
15327 # define LT_DLLAZY_OR_NOW RTLD_NOW
15328 # else
15329 # ifdef DL_NOW
15330 # define LT_DLLAZY_OR_NOW DL_NOW
15331 # else
15332 # define LT_DLLAZY_OR_NOW 0
15333 # endif
15334 # endif
15335 # endif
15336 # endif
15337 #endif
15338
15339 /* When -fvisibility=hidden is used, assume the code has been annotated
15340 correspondingly for the symbols needed. */
15341 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15342 int fnord () __attribute__((visibility("default")));
15343 #endif
15344
15345 int fnord () { return 42; }
15346 int main ()
15347 {
15348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15349 int status = $lt_dlunknown;
15350
15351 if (self)
15352 {
15353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15354 else
15355 {
15356 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15357 else puts (dlerror ());
15358 }
15359 /* dlclose (self); */
15360 }
15361 else
15362 puts (dlerror ());
15363
15364 return status;
15365 }
15366 _LT_EOF
15367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15368 (eval $ac_link) 2>&5
15369 ac_status=$?
15370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15371 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15372 (./conftest; exit; ) >&5 2>/dev/null
15373 lt_status=$?
15374 case x$lt_status in
15375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15377 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15378 esac
15379 else :
15380 # compilation failed
15381 lt_cv_dlopen_self_static=no
15382 fi
15383 fi
15384 rm -fr conftest*
15385
15386
15387 fi
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15389 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15390 fi
15391
15392 CPPFLAGS=$save_CPPFLAGS
15393 LDFLAGS=$save_LDFLAGS
15394 LIBS=$save_LIBS
15395 ;;
15396 esac
15397
15398 case $lt_cv_dlopen_self in
15399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15400 *) enable_dlopen_self=unknown ;;
15401 esac
15402
15403 case $lt_cv_dlopen_self_static in
15404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15405 *) enable_dlopen_self_static=unknown ;;
15406 esac
15407 fi
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425 striplib=
15426 old_striplib=
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15428 printf %s "checking whether stripping libraries is possible... " >&6; }
15429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15431 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15433 printf "%s\n" "yes" >&6; }
15434 else
15435 # FIXME - insert some real tests, host_os isn't really good enough
15436 case $host_os in
15437 darwin*)
15438 if test -n "$STRIP"; then
15439 striplib="$STRIP -x"
15440 old_striplib="$STRIP -S"
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15442 printf "%s\n" "yes" >&6; }
15443 else
15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 printf "%s\n" "no" >&6; }
15446 fi
15447 ;;
15448 *)
15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15450 printf "%s\n" "no" >&6; }
15451 ;;
15452 esac
15453 fi
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466 # Report what library types will actually be built
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15468 printf %s "checking if libtool supports shared libraries... " >&6; }
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15470 printf "%s\n" "$can_build_shared" >&6; }
15471
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15473 printf %s "checking whether to build shared libraries... " >&6; }
15474 test no = "$can_build_shared" && enable_shared=no
15475
15476 # On AIX, shared libraries and static libraries use the same namespace, and
15477 # are all built from PIC.
15478 case $host_os in
15479 aix3*)
15480 test yes = "$enable_shared" && enable_static=no
15481 if test -n "$RANLIB"; then
15482 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15483 postinstall_cmds='$RANLIB $lib'
15484 fi
15485 ;;
15486
15487 aix[4-9]*)
15488 if test ia64 != "$host_cpu"; then
15489 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15490 yes,aix,yes) ;; # shared object as lib.so file only
15491 yes,svr4,*) ;; # shared object as lib.so archive member only
15492 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15493 esac
15494 fi
15495 ;;
15496 esac
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15498 printf "%s\n" "$enable_shared" >&6; }
15499
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15501 printf %s "checking whether to build static libraries... " >&6; }
15502 # Make sure either enable_shared or enable_static is yes.
15503 test yes = "$enable_shared" || enable_static=yes
15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15505 printf "%s\n" "$enable_static" >&6; }
15506
15507
15508
15509
15510 fi
15511 ac_ext=cpp
15512 ac_cpp='$CXXCPP $CPPFLAGS'
15513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15516
15517 CC=$lt_save_CC
15518
15519 if test -n "$CXX" && ( test no != "$CXX" &&
15520 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15521 (test g++ != "$CXX"))); then
15522 ac_ext=cpp
15523 ac_cpp='$CXXCPP $CPPFLAGS'
15524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15528 printf %s "checking how to run the C++ preprocessor... " >&6; }
15529 if test -z "$CXXCPP"; then
15530 if test ${ac_cv_prog_CXXCPP+y}
15531 then :
15532 printf %s "(cached) " >&6
15533 else $as_nop
15534 # Double quotes because $CXX needs to be expanded
15535 for CXXCPP in "$CXX -E" cpp /lib/cpp
15536 do
15537 ac_preproc_ok=false
15538 for ac_cxx_preproc_warn_flag in '' yes
15539 do
15540 # Use a header file that comes with gcc, so configuring glibc
15541 # with a fresh cross-compiler works.
15542 # On the NeXT, cc -E runs the code through the compiler's parser,
15543 # not just through cpp. "Syntax error" is here to catch this case.
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546 #include <limits.h>
15547 Syntax error
15548 _ACEOF
15549 if ac_fn_cxx_try_cpp "$LINENO"
15550 then :
15551
15552 else $as_nop
15553 # Broken: fails on valid input.
15554 continue
15555 fi
15556 rm -f conftest.err conftest.i conftest.$ac_ext
15557
15558 # OK, works on sane cases. Now check whether nonexistent headers
15559 # can be detected and how.
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #include <ac_nonexistent.h>
15563 _ACEOF
15564 if ac_fn_cxx_try_cpp "$LINENO"
15565 then :
15566 # Broken: success on invalid input.
15567 continue
15568 else $as_nop
15569 # Passes both tests.
15570 ac_preproc_ok=:
15571 break
15572 fi
15573 rm -f conftest.err conftest.i conftest.$ac_ext
15574
15575 done
15576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15577 rm -f conftest.i conftest.err conftest.$ac_ext
15578 if $ac_preproc_ok
15579 then :
15580 break
15581 fi
15582
15583 done
15584 ac_cv_prog_CXXCPP=$CXXCPP
15585
15586 fi
15587 CXXCPP=$ac_cv_prog_CXXCPP
15588 else
15589 ac_cv_prog_CXXCPP=$CXXCPP
15590 fi
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15592 printf "%s\n" "$CXXCPP" >&6; }
15593 ac_preproc_ok=false
15594 for ac_cxx_preproc_warn_flag in '' yes
15595 do
15596 # Use a header file that comes with gcc, so configuring glibc
15597 # with a fresh cross-compiler works.
15598 # On the NeXT, cc -E runs the code through the compiler's parser,
15599 # not just through cpp. "Syntax error" is here to catch this case.
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <limits.h>
15603 Syntax error
15604 _ACEOF
15605 if ac_fn_cxx_try_cpp "$LINENO"
15606 then :
15607
15608 else $as_nop
15609 # Broken: fails on valid input.
15610 continue
15611 fi
15612 rm -f conftest.err conftest.i conftest.$ac_ext
15613
15614 # OK, works on sane cases. Now check whether nonexistent headers
15615 # can be detected and how.
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 #include <ac_nonexistent.h>
15619 _ACEOF
15620 if ac_fn_cxx_try_cpp "$LINENO"
15621 then :
15622 # Broken: success on invalid input.
15623 continue
15624 else $as_nop
15625 # Passes both tests.
15626 ac_preproc_ok=:
15627 break
15628 fi
15629 rm -f conftest.err conftest.i conftest.$ac_ext
15630
15631 done
15632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15633 rm -f conftest.i conftest.err conftest.$ac_ext
15634 if $ac_preproc_ok
15635 then :
15636
15637 else $as_nop
15638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15640 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15641 See \`config.log' for more details" "$LINENO" 5; }
15642 fi
15643
15644 ac_ext=cpp
15645 ac_cpp='$CXXCPP $CPPFLAGS'
15646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15649
15650 else
15651 _lt_caught_CXX_error=yes
15652 fi
15653
15654 ac_ext=cpp
15655 ac_cpp='$CXXCPP $CPPFLAGS'
15656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15659
15660 archive_cmds_need_lc_CXX=no
15661 allow_undefined_flag_CXX=
15662 always_export_symbols_CXX=no
15663 archive_expsym_cmds_CXX=
15664 compiler_needs_object_CXX=no
15665 export_dynamic_flag_spec_CXX=
15666 hardcode_direct_CXX=no
15667 hardcode_direct_absolute_CXX=no
15668 hardcode_libdir_flag_spec_CXX=
15669 hardcode_libdir_separator_CXX=
15670 hardcode_minus_L_CXX=no
15671 hardcode_shlibpath_var_CXX=unsupported
15672 hardcode_automatic_CXX=no
15673 inherit_rpath_CXX=no
15674 module_cmds_CXX=
15675 module_expsym_cmds_CXX=
15676 link_all_deplibs_CXX=unknown
15677 old_archive_cmds_CXX=$old_archive_cmds
15678 reload_flag_CXX=$reload_flag
15679 reload_cmds_CXX=$reload_cmds
15680 no_undefined_flag_CXX=
15681 whole_archive_flag_spec_CXX=
15682 enable_shared_with_static_runtimes_CXX=no
15683
15684 # Source file extension for C++ test sources.
15685 ac_ext=cpp
15686
15687 # Object file extension for compiled C++ test sources.
15688 objext=o
15689 objext_CXX=$objext
15690
15691 # No sense in running all these tests if we already determined that
15692 # the CXX compiler isn't working. Some variables (like enable_shared)
15693 # are currently assumed to apply to all compilers on this platform,
15694 # and will be corrupted by setting them based on a non-working compiler.
15695 if test yes != "$_lt_caught_CXX_error"; then
15696 # Code to be used in simple compile tests
15697 lt_simple_compile_test_code="int some_variable = 0;"
15698
15699 # Code to be used in simple link tests
15700 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15701
15702 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15703
15704
15705
15706
15707
15708
15709 # If no C compiler was specified, use CC.
15710 LTCC=${LTCC-"$CC"}
15711
15712 # If no C compiler flags were specified, use CFLAGS.
15713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15714
15715 # Allow CC to be a program name with arguments.
15716 compiler=$CC
15717
15718
15719 # save warnings/boilerplate of simple test code
15720 ac_outfile=conftest.$ac_objext
15721 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15723 _lt_compiler_boilerplate=`cat conftest.err`
15724 $RM conftest*
15725
15726 ac_outfile=conftest.$ac_objext
15727 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15729 _lt_linker_boilerplate=`cat conftest.err`
15730 $RM -r conftest*
15731
15732
15733 # Allow CC to be a program name with arguments.
15734 lt_save_CC=$CC
15735 lt_save_CFLAGS=$CFLAGS
15736 lt_save_LD=$LD
15737 lt_save_GCC=$GCC
15738 GCC=$GXX
15739 lt_save_with_gnu_ld=$with_gnu_ld
15740 lt_save_path_LD=$lt_cv_path_LD
15741 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15742 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15743 else
15744 $as_unset lt_cv_prog_gnu_ld
15745 fi
15746 if test -n "${lt_cv_path_LDCXX+set}"; then
15747 lt_cv_path_LD=$lt_cv_path_LDCXX
15748 else
15749 $as_unset lt_cv_path_LD
15750 fi
15751 test -z "${LDCXX+set}" || LD=$LDCXX
15752 CC=${CXX-"c++"}
15753 CFLAGS=$CXXFLAGS
15754 compiler=$CC
15755 compiler_CXX=$CC
15756 func_cc_basename $compiler
15757 cc_basename=$func_cc_basename_result
15758
15759
15760 if test -n "$compiler"; then
15761 # We don't want -fno-exception when compiling C++ code, so set the
15762 # no_builtin_flag separately
15763 if test yes = "$GXX"; then
15764 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15765 else
15766 lt_prog_compiler_no_builtin_flag_CXX=
15767 fi
15768
15769 if test yes = "$GXX"; then
15770 # Set up default GNU C++ configuration
15771
15772
15773
15774 # Check whether --with-gnu-ld was given.
15775 if test ${with_gnu_ld+y}
15776 then :
15777 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15778 else $as_nop
15779 with_gnu_ld=no
15780 fi
15781
15782 ac_prog=ld
15783 if test yes = "$GCC"; then
15784 # Check if gcc -print-prog-name=ld gives a path.
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15786 printf %s "checking for ld used by $CC... " >&6; }
15787 case $host in
15788 *-*-mingw*)
15789 # gcc leaves a trailing carriage return, which upsets mingw
15790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15791 *)
15792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15793 esac
15794 case $ac_prog in
15795 # Accept absolute paths.
15796 [\\/]* | ?:[\\/]*)
15797 re_direlt='/[^/][^/]*/\.\./'
15798 # Canonicalize the pathname of ld
15799 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15800 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15801 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15802 done
15803 test -z "$LD" && LD=$ac_prog
15804 ;;
15805 "")
15806 # If it fails, then pretend we aren't using GCC.
15807 ac_prog=ld
15808 ;;
15809 *)
15810 # If it is relative, then search for the first ld in PATH.
15811 with_gnu_ld=unknown
15812 ;;
15813 esac
15814 elif test yes = "$with_gnu_ld"; then
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15816 printf %s "checking for GNU ld... " >&6; }
15817 else
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15819 printf %s "checking for non-GNU ld... " >&6; }
15820 fi
15821 if test ${lt_cv_path_LD+y}
15822 then :
15823 printf %s "(cached) " >&6
15824 else $as_nop
15825 if test -z "$LD"; then
15826 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15827 for ac_dir in $PATH; do
15828 IFS=$lt_save_ifs
15829 test -z "$ac_dir" && ac_dir=.
15830 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15831 lt_cv_path_LD=$ac_dir/$ac_prog
15832 # Check to see if the program is GNU ld. I'd rather use --version,
15833 # but apparently some variants of GNU ld only accept -v.
15834 # Break only if it was the GNU/non-GNU ld that we prefer.
15835 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15836 *GNU* | *'with BFD'*)
15837 test no != "$with_gnu_ld" && break
15838 ;;
15839 *)
15840 test yes != "$with_gnu_ld" && break
15841 ;;
15842 esac
15843 fi
15844 done
15845 IFS=$lt_save_ifs
15846 else
15847 lt_cv_path_LD=$LD # Let the user override the test with a path.
15848 fi
15849 fi
15850
15851 LD=$lt_cv_path_LD
15852 if test -n "$LD"; then
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15854 printf "%s\n" "$LD" >&6; }
15855 else
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857 printf "%s\n" "no" >&6; }
15858 fi
15859 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15861 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15862 if test ${lt_cv_prog_gnu_ld+y}
15863 then :
15864 printf %s "(cached) " >&6
15865 else $as_nop
15866 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15867 case `$LD -v 2>&1 </dev/null` in
15868 *GNU* | *'with BFD'*)
15869 lt_cv_prog_gnu_ld=yes
15870 ;;
15871 *)
15872 lt_cv_prog_gnu_ld=no
15873 ;;
15874 esac
15875 fi
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15877 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15878 with_gnu_ld=$lt_cv_prog_gnu_ld
15879
15880
15881
15882
15883
15884
15885
15886 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15887 # archiving commands below assume that GNU ld is being used.
15888 if test yes = "$with_gnu_ld"; then
15889 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15890 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'
15891
15892 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15893 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15894
15895 # If archive_cmds runs LD, not CC, wlarc should be empty
15896 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15897 # investigate it a little bit more. (MM)
15898 wlarc='$wl'
15899
15900 # ancient GNU ld didn't support --whole-archive et. al.
15901 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15902 $GREP 'no-whole-archive' > /dev/null; then
15903 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15904 else
15905 whole_archive_flag_spec_CXX=
15906 fi
15907 else
15908 with_gnu_ld=no
15909 wlarc=
15910
15911 # A generic and very simple default shared library creation
15912 # command for GNU C++ for the case where it uses the native
15913 # linker, instead of GNU ld. If possible, this setting should
15914 # overridden to take advantage of the native linker features on
15915 # the platform it is being used on.
15916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15917 fi
15918
15919 # Commands to make compiler produce verbose output that lists
15920 # what "hidden" libraries, object files and flags are used when
15921 # linking a shared library.
15922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15923
15924 else
15925 GXX=no
15926 with_gnu_ld=no
15927 wlarc=
15928 fi
15929
15930 # PORTME: fill in a description of your system's C++ link characteristics
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15932 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15933 ld_shlibs_CXX=yes
15934 case $host_os in
15935 aix3*)
15936 # FIXME: insert proper C++ library support
15937 ld_shlibs_CXX=no
15938 ;;
15939 aix[4-9]*)
15940 if test ia64 = "$host_cpu"; then
15941 # On IA64, the linker does run time linking by default, so we don't
15942 # have to do anything special.
15943 aix_use_runtimelinking=no
15944 exp_sym_flag='-Bexport'
15945 no_entry_flag=
15946 else
15947 aix_use_runtimelinking=no
15948
15949 # Test if we are trying to use run time linking or normal
15950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951 # have runtime linking enabled, and use it for executables.
15952 # For shared libraries, we enable/disable runtime linking
15953 # depending on the kind of the shared library created -
15954 # when "with_aix_soname,aix_use_runtimelinking" is:
15955 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15956 # "aix,yes" lib.so shared, rtl:yes, for executables
15957 # lib.a static archive
15958 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15959 # lib.a(lib.so.V) shared, rtl:no, for executables
15960 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15961 # lib.a(lib.so.V) shared, rtl:no
15962 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15963 # lib.a static archive
15964 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15965 for ld_flag in $LDFLAGS; do
15966 case $ld_flag in
15967 *-brtl*)
15968 aix_use_runtimelinking=yes
15969 break
15970 ;;
15971 esac
15972 done
15973 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15974 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15975 # so we don't have lib.a shared libs to link our executables.
15976 # We have to force runtime linking in this case.
15977 aix_use_runtimelinking=yes
15978 LDFLAGS="$LDFLAGS -Wl,-brtl"
15979 fi
15980 ;;
15981 esac
15982
15983 exp_sym_flag='-bexport'
15984 no_entry_flag='-bnoentry'
15985 fi
15986
15987 # When large executables or shared objects are built, AIX ld can
15988 # have problems creating the table of contents. If linking a library
15989 # or program results in "error TOC overflow" add -mminimal-toc to
15990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15992
15993 archive_cmds_CXX=''
15994 hardcode_direct_CXX=yes
15995 hardcode_direct_absolute_CXX=yes
15996 hardcode_libdir_separator_CXX=':'
15997 link_all_deplibs_CXX=yes
15998 file_list_spec_CXX='$wl-f,'
15999 case $with_aix_soname,$aix_use_runtimelinking in
16000 aix,*) ;; # no import file
16001 svr4,* | *,yes) # use import file
16002 # The Import File defines what to hardcode.
16003 hardcode_direct_CXX=no
16004 hardcode_direct_absolute_CXX=no
16005 ;;
16006 esac
16007
16008 if test yes = "$GXX"; then
16009 case $host_os in aix4.[012]|aix4.[012].*)
16010 # We only want to do this on AIX 4.2 and lower, the check
16011 # below for broken collect2 doesn't work under 4.3+
16012 collect2name=`$CC -print-prog-name=collect2`
16013 if test -f "$collect2name" &&
16014 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16015 then
16016 # We have reworked collect2
16017 :
16018 else
16019 # We have old collect2
16020 hardcode_direct_CXX=unsupported
16021 # It fails to find uninstalled libraries when the uninstalled
16022 # path is not listed in the libpath. Setting hardcode_minus_L
16023 # to unsupported forces relinking
16024 hardcode_minus_L_CXX=yes
16025 hardcode_libdir_flag_spec_CXX='-L$libdir'
16026 hardcode_libdir_separator_CXX=
16027 fi
16028 esac
16029 shared_flag='-shared'
16030 if test yes = "$aix_use_runtimelinking"; then
16031 shared_flag=$shared_flag' $wl-G'
16032 fi
16033 # Need to ensure runtime linking is disabled for the traditional
16034 # shared library, or the linker may eventually find shared libraries
16035 # /with/ Import File - we do not want to mix them.
16036 shared_flag_aix='-shared'
16037 shared_flag_svr4='-shared $wl-G'
16038 else
16039 # not using gcc
16040 if test ia64 = "$host_cpu"; then
16041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16042 # chokes on -Wl,-G. The following line is correct:
16043 shared_flag='-G'
16044 else
16045 if test yes = "$aix_use_runtimelinking"; then
16046 shared_flag='$wl-G'
16047 else
16048 shared_flag='$wl-bM:SRE'
16049 fi
16050 shared_flag_aix='$wl-bM:SRE'
16051 shared_flag_svr4='$wl-G'
16052 fi
16053 fi
16054
16055 export_dynamic_flag_spec_CXX='$wl-bexpall'
16056 # It seems that -bexpall does not export symbols beginning with
16057 # underscore (_), so it is better to generate a list of symbols to
16058 # export.
16059 always_export_symbols_CXX=yes
16060 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16061 # Warning - without using the other runtime loading flags (-brtl),
16062 # -berok will link without error, but may produce a broken library.
16063 # The "-G" linker flag allows undefined symbols.
16064 no_undefined_flag_CXX='-bernotok'
16065 # Determine the default libpath from the value encoded in an empty
16066 # executable.
16067 if test set = "${lt_cv_aix_libpath+set}"; then
16068 aix_libpath=$lt_cv_aix_libpath
16069 else
16070 if test ${lt_cv_aix_libpath__CXX+y}
16071 then :
16072 printf %s "(cached) " >&6
16073 else $as_nop
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16076
16077 int
16078 main (void)
16079 {
16080
16081 ;
16082 return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_cxx_try_link "$LINENO"
16086 then :
16087
16088 lt_aix_libpath_sed='
16089 /Import File Strings/,/^$/ {
16090 /^0/ {
16091 s/^0 *\([^ ]*\) *$/\1/
16092 p
16093 }
16094 }'
16095 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16096 # Check for a 64-bit object if we didn't find anything.
16097 if test -z "$lt_cv_aix_libpath__CXX"; then
16098 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16099 fi
16100 fi
16101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16102 conftest$ac_exeext conftest.$ac_ext
16103 if test -z "$lt_cv_aix_libpath__CXX"; then
16104 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16105 fi
16106
16107 fi
16108
16109 aix_libpath=$lt_cv_aix_libpath__CXX
16110 fi
16111
16112 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16113
16114 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
16115 else
16116 if test ia64 = "$host_cpu"; then
16117 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16118 allow_undefined_flag_CXX="-z nodefs"
16119 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"
16120 else
16121 # Determine the default libpath from the value encoded in an
16122 # empty executable.
16123 if test set = "${lt_cv_aix_libpath+set}"; then
16124 aix_libpath=$lt_cv_aix_libpath
16125 else
16126 if test ${lt_cv_aix_libpath__CXX+y}
16127 then :
16128 printf %s "(cached) " >&6
16129 else $as_nop
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132
16133 int
16134 main (void)
16135 {
16136
16137 ;
16138 return 0;
16139 }
16140 _ACEOF
16141 if ac_fn_cxx_try_link "$LINENO"
16142 then :
16143
16144 lt_aix_libpath_sed='
16145 /Import File Strings/,/^$/ {
16146 /^0/ {
16147 s/^0 *\([^ ]*\) *$/\1/
16148 p
16149 }
16150 }'
16151 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16152 # Check for a 64-bit object if we didn't find anything.
16153 if test -z "$lt_cv_aix_libpath__CXX"; then
16154 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16155 fi
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16158 conftest$ac_exeext conftest.$ac_ext
16159 if test -z "$lt_cv_aix_libpath__CXX"; then
16160 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16161 fi
16162
16163 fi
16164
16165 aix_libpath=$lt_cv_aix_libpath__CXX
16166 fi
16167
16168 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16169 # Warning - without using the other run time loading flags,
16170 # -berok will link without error, but may produce a broken library.
16171 no_undefined_flag_CXX=' $wl-bernotok'
16172 allow_undefined_flag_CXX=' $wl-berok'
16173 if test yes = "$with_gnu_ld"; then
16174 # We only use this code for GNU lds that support --whole-archive.
16175 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16176 else
16177 # Exported symbols can be pulled into shared objects from archives
16178 whole_archive_flag_spec_CXX='$convenience'
16179 fi
16180 archive_cmds_need_lc_CXX=yes
16181 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16182 # -brtl affects multiple linker settings, -berok does not and is overridden later
16183 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16184 if test svr4 != "$with_aix_soname"; then
16185 # This is similar to how AIX traditionally builds its shared
16186 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16187 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'
16188 fi
16189 if test aix != "$with_aix_soname"; then
16190 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'
16191 else
16192 # used by -dlpreopen to get the symbols
16193 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16194 fi
16195 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16196 fi
16197 fi
16198 ;;
16199
16200 beos*)
16201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16202 allow_undefined_flag_CXX=unsupported
16203 # Joseph Beckenbach <[email protected]> says some releases of gcc
16204 # support --undefined. This deserves some investigation. FIXME
16205 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16206 else
16207 ld_shlibs_CXX=no
16208 fi
16209 ;;
16210
16211 chorus*)
16212 case $cc_basename in
16213 *)
16214 # FIXME: insert proper C++ library support
16215 ld_shlibs_CXX=no
16216 ;;
16217 esac
16218 ;;
16219
16220 cygwin* | mingw* | pw32* | cegcc*)
16221 case $GXX,$cc_basename in
16222 ,cl* | no,cl*)
16223 # Native MSVC
16224 # hardcode_libdir_flag_spec is actually meaningless, as there is
16225 # no search path for DLLs.
16226 hardcode_libdir_flag_spec_CXX=' '
16227 allow_undefined_flag_CXX=unsupported
16228 always_export_symbols_CXX=yes
16229 file_list_spec_CXX='@'
16230 # Tell ltmain to make .lib files, not .a files.
16231 libext=lib
16232 # Tell ltmain to make .dll files, not .so files.
16233 shrext_cmds=.dll
16234 # FIXME: Setting linknames here is a bad hack.
16235 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16236 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16237 cp "$export_symbols" "$output_objdir/$soname.def";
16238 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16239 else
16240 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16241 fi~
16242 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16243 linknames='
16244 # The linker will not automatically build a static lib if we build a DLL.
16245 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16246 enable_shared_with_static_runtimes_CXX=yes
16247 # Don't use ranlib
16248 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16249 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16250 lt_tool_outputfile="@TOOL_OUTPUT@"~
16251 case $lt_outputfile in
16252 *.exe|*.EXE) ;;
16253 *)
16254 lt_outputfile=$lt_outputfile.exe
16255 lt_tool_outputfile=$lt_tool_outputfile.exe
16256 ;;
16257 esac~
16258 func_to_tool_file "$lt_outputfile"~
16259 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16260 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16261 $RM "$lt_outputfile.manifest";
16262 fi'
16263 ;;
16264 *)
16265 # g++
16266 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16267 # as there is no search path for DLLs.
16268 hardcode_libdir_flag_spec_CXX='-L$libdir'
16269 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16270 allow_undefined_flag_CXX=unsupported
16271 always_export_symbols_CXX=no
16272 enable_shared_with_static_runtimes_CXX=yes
16273
16274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16275 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'
16276 # If the export-symbols file already is a .def file, use it as
16277 # is; otherwise, prepend EXPORTS...
16278 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16279 cp $export_symbols $output_objdir/$soname.def;
16280 else
16281 echo EXPORTS > $output_objdir/$soname.def;
16282 cat $export_symbols >> $output_objdir/$soname.def;
16283 fi~
16284 $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'
16285 else
16286 ld_shlibs_CXX=no
16287 fi
16288 ;;
16289 esac
16290 ;;
16291 darwin* | rhapsody*)
16292
16293
16294 archive_cmds_need_lc_CXX=no
16295 hardcode_direct_CXX=no
16296 hardcode_automatic_CXX=yes
16297 hardcode_shlibpath_var_CXX=unsupported
16298 if test yes = "$lt_cv_ld_force_load"; then
16299 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\"`'
16300
16301 else
16302 whole_archive_flag_spec_CXX=''
16303 fi
16304 link_all_deplibs_CXX=yes
16305 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16306 case $cc_basename in
16307 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16308 *) _lt_dar_can_shared=$GCC ;;
16309 esac
16310 if test yes = "$_lt_dar_can_shared"; then
16311 output_verbose_link_cmd=func_echo_all
16312 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"
16313 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16314 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"
16315 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"
16316 if test yes != "$lt_cv_apple_cc_single_mod"; then
16317 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"
16318 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"
16319 fi
16320
16321 else
16322 ld_shlibs_CXX=no
16323 fi
16324
16325 ;;
16326
16327 os2*)
16328 hardcode_libdir_flag_spec_CXX='-L$libdir'
16329 hardcode_minus_L_CXX=yes
16330 allow_undefined_flag_CXX=unsupported
16331 shrext_cmds=.dll
16332 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16333 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16334 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16335 $ECHO EXPORTS >> $output_objdir/$libname.def~
16336 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16337 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16338 emximp -o $lib $output_objdir/$libname.def'
16339 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16342 $ECHO EXPORTS >> $output_objdir/$libname.def~
16343 prefix_cmds="$SED"~
16344 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16345 prefix_cmds="$prefix_cmds -e 1d";
16346 fi~
16347 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16348 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16349 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16350 emximp -o $lib $output_objdir/$libname.def'
16351 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16352 enable_shared_with_static_runtimes_CXX=yes
16353 ;;
16354
16355 dgux*)
16356 case $cc_basename in
16357 ec++*)
16358 # FIXME: insert proper C++ library support
16359 ld_shlibs_CXX=no
16360 ;;
16361 ghcx*)
16362 # Green Hills C++ Compiler
16363 # FIXME: insert proper C++ library support
16364 ld_shlibs_CXX=no
16365 ;;
16366 *)
16367 # FIXME: insert proper C++ library support
16368 ld_shlibs_CXX=no
16369 ;;
16370 esac
16371 ;;
16372
16373 freebsd2.*)
16374 # C++ shared libraries reported to be fairly broken before
16375 # switch to ELF
16376 ld_shlibs_CXX=no
16377 ;;
16378
16379 freebsd-elf*)
16380 archive_cmds_need_lc_CXX=no
16381 ;;
16382
16383 freebsd* | dragonfly*)
16384 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16385 # conventions
16386 ld_shlibs_CXX=yes
16387 ;;
16388
16389 haiku*)
16390 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16391 link_all_deplibs_CXX=yes
16392 ;;
16393
16394 hpux9*)
16395 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16396 hardcode_libdir_separator_CXX=:
16397 export_dynamic_flag_spec_CXX='$wl-E'
16398 hardcode_direct_CXX=yes
16399 hardcode_minus_L_CXX=yes # Not in the search PATH,
16400 # but as the default
16401 # location of the library.
16402
16403 case $cc_basename in
16404 CC*)
16405 # FIXME: insert proper C++ library support
16406 ld_shlibs_CXX=no
16407 ;;
16408 aCC*)
16409 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'
16410 # Commands to make compiler produce verbose output that lists
16411 # what "hidden" libraries, object files and flags are used when
16412 # linking a shared library.
16413 #
16414 # There doesn't appear to be a way to prevent this compiler from
16415 # explicitly linking system object files so we need to strip them
16416 # from the output so that they don't get included in the library
16417 # dependencies.
16418 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"'
16419 ;;
16420 *)
16421 if test yes = "$GXX"; then
16422 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'
16423 else
16424 # FIXME: insert proper C++ library support
16425 ld_shlibs_CXX=no
16426 fi
16427 ;;
16428 esac
16429 ;;
16430
16431 hpux10*|hpux11*)
16432 if test no = "$with_gnu_ld"; then
16433 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16434 hardcode_libdir_separator_CXX=:
16435
16436 case $host_cpu in
16437 hppa*64*|ia64*)
16438 ;;
16439 *)
16440 export_dynamic_flag_spec_CXX='$wl-E'
16441 ;;
16442 esac
16443 fi
16444 case $host_cpu in
16445 hppa*64*|ia64*)
16446 hardcode_direct_CXX=no
16447 hardcode_shlibpath_var_CXX=no
16448 ;;
16449 *)
16450 hardcode_direct_CXX=yes
16451 hardcode_direct_absolute_CXX=yes
16452 hardcode_minus_L_CXX=yes # Not in the search PATH,
16453 # but as the default
16454 # location of the library.
16455 ;;
16456 esac
16457
16458 case $cc_basename in
16459 CC*)
16460 # FIXME: insert proper C++ library support
16461 ld_shlibs_CXX=no
16462 ;;
16463 aCC*)
16464 case $host_cpu in
16465 hppa*64*)
16466 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16467 ;;
16468 ia64*)
16469 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16470 ;;
16471 *)
16472 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16473 ;;
16474 esac
16475 # Commands to make compiler produce verbose output that lists
16476 # what "hidden" libraries, object files and flags are used when
16477 # linking a shared library.
16478 #
16479 # There doesn't appear to be a way to prevent this compiler from
16480 # explicitly linking system object files so we need to strip them
16481 # from the output so that they don't get included in the library
16482 # dependencies.
16483 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"'
16484 ;;
16485 *)
16486 if test yes = "$GXX"; then
16487 if test no = "$with_gnu_ld"; then
16488 case $host_cpu in
16489 hppa*64*)
16490 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16491 ;;
16492 ia64*)
16493 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16494 ;;
16495 *)
16496 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'
16497 ;;
16498 esac
16499 fi
16500 else
16501 # FIXME: insert proper C++ library support
16502 ld_shlibs_CXX=no
16503 fi
16504 ;;
16505 esac
16506 ;;
16507
16508 interix[3-9]*)
16509 hardcode_direct_CXX=no
16510 hardcode_shlibpath_var_CXX=no
16511 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16512 export_dynamic_flag_spec_CXX='$wl-E'
16513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16514 # Instead, shared libraries are loaded at an image base (0x10000000 by
16515 # default) and relocated if they conflict, which is a slow very memory
16516 # consuming and fragmenting process. To avoid this, we pick a random,
16517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16519 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'
16520 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'
16521 ;;
16522 irix5* | irix6*)
16523 case $cc_basename in
16524 CC*)
16525 # SGI C++
16526 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'
16527
16528 # Archives containing C++ object files must be created using
16529 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16530 # necessary to make sure instantiated templates are included
16531 # in the archive.
16532 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16533 ;;
16534 *)
16535 if test yes = "$GXX"; then
16536 if test no = "$with_gnu_ld"; then
16537 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'
16538 else
16539 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'
16540 fi
16541 fi
16542 link_all_deplibs_CXX=yes
16543 ;;
16544 esac
16545 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16546 hardcode_libdir_separator_CXX=:
16547 inherit_rpath_CXX=yes
16548 ;;
16549
16550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16551 case $cc_basename in
16552 KCC*)
16553 # Kuck and Associates, Inc. (KAI) C++ Compiler
16554
16555 # KCC will only create a shared library if the output file
16556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16557 # to its proper name (with version) after linking.
16558 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'
16559 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'
16560 # Commands to make compiler produce verbose output that lists
16561 # what "hidden" libraries, object files and flags are used when
16562 # linking a shared library.
16563 #
16564 # There doesn't appear to be a way to prevent this compiler from
16565 # explicitly linking system object files so we need to strip them
16566 # from the output so that they don't get included in the library
16567 # dependencies.
16568 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"'
16569
16570 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16571 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16572
16573 # Archives containing C++ object files must be created using
16574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16576 ;;
16577 icpc* | ecpc* )
16578 # Intel C++
16579 with_gnu_ld=yes
16580 # version 8.0 and above of icpc choke on multiply defined symbols
16581 # if we add $predep_objects and $postdep_objects, however 7.1 and
16582 # earlier do not add the objects themselves.
16583 case `$CC -V 2>&1` in
16584 *"Version 7."*)
16585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16586 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'
16587 ;;
16588 *) # Version 8.0 or newer
16589 tmp_idyn=
16590 case $host_cpu in
16591 ia64*) tmp_idyn=' -i_dynamic';;
16592 esac
16593 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16594 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'
16595 ;;
16596 esac
16597 archive_cmds_need_lc_CXX=no
16598 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16599 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16600 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16601 ;;
16602 pgCC* | pgcpp*)
16603 # Portland Group C++ compiler
16604 case `$CC -V` in
16605 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16606 prelink_cmds_CXX='tpldir=Template.dir~
16607 rm -rf $tpldir~
16608 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16609 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16610 old_archive_cmds_CXX='tpldir=Template.dir~
16611 rm -rf $tpldir~
16612 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16613 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16614 $RANLIB $oldlib'
16615 archive_cmds_CXX='tpldir=Template.dir~
16616 rm -rf $tpldir~
16617 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16618 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16619 archive_expsym_cmds_CXX='tpldir=Template.dir~
16620 rm -rf $tpldir~
16621 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16622 $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'
16623 ;;
16624 *) # Version 6 and above use weak symbols
16625 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16626 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'
16627 ;;
16628 esac
16629
16630 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16631 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16632 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'
16633 ;;
16634 cxx*)
16635 # Compaq C++
16636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16637 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'
16638
16639 runpath_var=LD_RUN_PATH
16640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16641 hardcode_libdir_separator_CXX=:
16642
16643 # Commands to make compiler produce verbose output that lists
16644 # what "hidden" libraries, object files and flags are used when
16645 # linking a shared library.
16646 #
16647 # There doesn't appear to be a way to prevent this compiler from
16648 # explicitly linking system object files so we need to strip them
16649 # from the output so that they don't get included in the library
16650 # dependencies.
16651 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'
16652 ;;
16653 xl* | mpixl* | bgxl*)
16654 # IBM XL 8.0 on PPC, with GNU ld
16655 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16656 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16657 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16658 if test yes = "$supports_anon_versioning"; then
16659 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16661 echo "local: *; };" >> $output_objdir/$libname.ver~
16662 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16663 fi
16664 ;;
16665 *)
16666 case `$CC -V 2>&1 | sed 5q` in
16667 *Sun\ C*)
16668 # Sun C++ 5.9
16669 no_undefined_flag_CXX=' -zdefs'
16670 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16671 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'
16672 hardcode_libdir_flag_spec_CXX='-R$libdir'
16673 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'
16674 compiler_needs_object_CXX=yes
16675
16676 # Not sure whether something based on
16677 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16678 # would be better.
16679 output_verbose_link_cmd='func_echo_all'
16680
16681 # Archives containing C++ object files must be created using
16682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16683 # necessary to make sure instantiated templates are included
16684 # in the archive.
16685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16686 ;;
16687 esac
16688 ;;
16689 esac
16690 ;;
16691
16692 lynxos*)
16693 # FIXME: insert proper C++ library support
16694 ld_shlibs_CXX=no
16695 ;;
16696
16697 m88k*)
16698 # FIXME: insert proper C++ library support
16699 ld_shlibs_CXX=no
16700 ;;
16701
16702 mvs*)
16703 case $cc_basename in
16704 cxx*)
16705 # FIXME: insert proper C++ library support
16706 ld_shlibs_CXX=no
16707 ;;
16708 *)
16709 # FIXME: insert proper C++ library support
16710 ld_shlibs_CXX=no
16711 ;;
16712 esac
16713 ;;
16714
16715 netbsd*)
16716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16717 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16718 wlarc=
16719 hardcode_libdir_flag_spec_CXX='-R$libdir'
16720 hardcode_direct_CXX=yes
16721 hardcode_shlibpath_var_CXX=no
16722 fi
16723 # Workaround some broken pre-1.5 toolchains
16724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16725 ;;
16726
16727 *nto* | *qnx*)
16728 ld_shlibs_CXX=yes
16729 ;;
16730
16731 openbsd* | bitrig*)
16732 if test -f /usr/libexec/ld.so; then
16733 hardcode_direct_CXX=yes
16734 hardcode_shlibpath_var_CXX=no
16735 hardcode_direct_absolute_CXX=yes
16736 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16737 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16739 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16740 export_dynamic_flag_spec_CXX='$wl-E'
16741 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16742 fi
16743 output_verbose_link_cmd=func_echo_all
16744 else
16745 ld_shlibs_CXX=no
16746 fi
16747 ;;
16748
16749 osf3* | osf4* | osf5*)
16750 case $cc_basename in
16751 KCC*)
16752 # Kuck and Associates, Inc. (KAI) C++ Compiler
16753
16754 # KCC will only create a shared library if the output file
16755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16756 # to its proper name (with version) after linking.
16757 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'
16758
16759 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16760 hardcode_libdir_separator_CXX=:
16761
16762 # Archives containing C++ object files must be created using
16763 # the KAI C++ compiler.
16764 case $host in
16765 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16766 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16767 esac
16768 ;;
16769 RCC*)
16770 # Rational C++ 2.4.1
16771 # FIXME: insert proper C++ library support
16772 ld_shlibs_CXX=no
16773 ;;
16774 cxx*)
16775 case $host in
16776 osf3*)
16777 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16778 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'
16779 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16780 ;;
16781 *)
16782 allow_undefined_flag_CXX=' -expect_unresolved \*'
16783 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'
16784 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16785 echo "-hidden">> $lib.exp~
16786 $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~
16787 $RM $lib.exp'
16788 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16789 ;;
16790 esac
16791
16792 hardcode_libdir_separator_CXX=:
16793
16794 # Commands to make compiler produce verbose output that lists
16795 # what "hidden" libraries, object files and flags are used when
16796 # linking a shared library.
16797 #
16798 # There doesn't appear to be a way to prevent this compiler from
16799 # explicitly linking system object files so we need to strip them
16800 # from the output so that they don't get included in the library
16801 # dependencies.
16802 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"'
16803 ;;
16804 *)
16805 if test yes,no = "$GXX,$with_gnu_ld"; then
16806 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16807 case $host in
16808 osf3*)
16809 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'
16810 ;;
16811 *)
16812 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'
16813 ;;
16814 esac
16815
16816 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16817 hardcode_libdir_separator_CXX=:
16818
16819 # Commands to make compiler produce verbose output that lists
16820 # what "hidden" libraries, object files and flags are used when
16821 # linking a shared library.
16822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16823
16824 else
16825 # FIXME: insert proper C++ library support
16826 ld_shlibs_CXX=no
16827 fi
16828 ;;
16829 esac
16830 ;;
16831
16832 psos*)
16833 # FIXME: insert proper C++ library support
16834 ld_shlibs_CXX=no
16835 ;;
16836
16837 sunos4*)
16838 case $cc_basename in
16839 CC*)
16840 # Sun C++ 4.x
16841 # FIXME: insert proper C++ library support
16842 ld_shlibs_CXX=no
16843 ;;
16844 lcc*)
16845 # Lucid
16846 # FIXME: insert proper C++ library support
16847 ld_shlibs_CXX=no
16848 ;;
16849 *)
16850 # FIXME: insert proper C++ library support
16851 ld_shlibs_CXX=no
16852 ;;
16853 esac
16854 ;;
16855
16856 solaris*)
16857 case $cc_basename in
16858 CC* | sunCC*)
16859 # Sun C++ 4.2, 5.x and Centerline C++
16860 archive_cmds_need_lc_CXX=yes
16861 no_undefined_flag_CXX=' -zdefs'
16862 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16863 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16864 $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'
16865
16866 hardcode_libdir_flag_spec_CXX='-R$libdir'
16867 hardcode_shlibpath_var_CXX=no
16868 case $host_os in
16869 solaris2.[0-5] | solaris2.[0-5].*) ;;
16870 *)
16871 # The compiler driver will combine and reorder linker options,
16872 # but understands '-z linker_flag'.
16873 # Supported since Solaris 2.6 (maybe 2.5.1?)
16874 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16875 ;;
16876 esac
16877 link_all_deplibs_CXX=yes
16878
16879 output_verbose_link_cmd='func_echo_all'
16880
16881 # Archives containing C++ object files must be created using
16882 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16883 # necessary to make sure instantiated templates are included
16884 # in the archive.
16885 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16886 ;;
16887 gcx*)
16888 # Green Hills C++ Compiler
16889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16890
16891 # The C++ compiler must be used to create the archive.
16892 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16893 ;;
16894 *)
16895 # GNU C++ compiler with Solaris linker
16896 if test yes,no = "$GXX,$with_gnu_ld"; then
16897 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16898 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16899 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16900 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16901 $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'
16902
16903 # Commands to make compiler produce verbose output that lists
16904 # what "hidden" libraries, object files and flags are used when
16905 # linking a shared library.
16906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16907 else
16908 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16909 # platform.
16910 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16911 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16912 $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'
16913
16914 # Commands to make compiler produce verbose output that lists
16915 # what "hidden" libraries, object files and flags are used when
16916 # linking a shared library.
16917 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16918 fi
16919
16920 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16921 case $host_os in
16922 solaris2.[0-5] | solaris2.[0-5].*) ;;
16923 *)
16924 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16925 ;;
16926 esac
16927 fi
16928 ;;
16929 esac
16930 ;;
16931
16932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16933 no_undefined_flag_CXX='$wl-z,text'
16934 archive_cmds_need_lc_CXX=no
16935 hardcode_shlibpath_var_CXX=no
16936 runpath_var='LD_RUN_PATH'
16937
16938 case $cc_basename in
16939 CC*)
16940 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16942 ;;
16943 *)
16944 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16945 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16946 ;;
16947 esac
16948 ;;
16949
16950 sysv5* | sco3.2v5* | sco5v6*)
16951 # Note: We CANNOT use -z defs as we might desire, because we do not
16952 # link with -lc, and that would cause any symbols used from libc to
16953 # always be unresolved, which means just about no library would
16954 # ever link correctly. If we're not using GNU ld we use -z text
16955 # though, which does catch some bad symbols but isn't as heavy-handed
16956 # as -z defs.
16957 no_undefined_flag_CXX='$wl-z,text'
16958 allow_undefined_flag_CXX='$wl-z,nodefs'
16959 archive_cmds_need_lc_CXX=no
16960 hardcode_shlibpath_var_CXX=no
16961 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16962 hardcode_libdir_separator_CXX=':'
16963 link_all_deplibs_CXX=yes
16964 export_dynamic_flag_spec_CXX='$wl-Bexport'
16965 runpath_var='LD_RUN_PATH'
16966
16967 case $cc_basename in
16968 CC*)
16969 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16971 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16972 '"$old_archive_cmds_CXX"
16973 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16974 '"$reload_cmds_CXX"
16975 ;;
16976 *)
16977 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 ;;
16980 esac
16981 ;;
16982
16983 tandem*)
16984 case $cc_basename in
16985 NCC*)
16986 # NonStop-UX NCC 3.20
16987 # FIXME: insert proper C++ library support
16988 ld_shlibs_CXX=no
16989 ;;
16990 *)
16991 # FIXME: insert proper C++ library support
16992 ld_shlibs_CXX=no
16993 ;;
16994 esac
16995 ;;
16996
16997 vxworks*)
16998 # FIXME: insert proper C++ library support
16999 ld_shlibs_CXX=no
17000 ;;
17001
17002 *)
17003 # FIXME: insert proper C++ library support
17004 ld_shlibs_CXX=no
17005 ;;
17006 esac
17007
17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17009 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17010 test no = "$ld_shlibs_CXX" && can_build_shared=no
17011
17012 GCC_CXX=$GXX
17013 LD_CXX=$LD
17014
17015 ## CAVEAT EMPTOR:
17016 ## There is no encapsulation within the following macros, do not change
17017 ## the running order or otherwise move them around unless you know exactly
17018 ## what you are doing...
17019 # Dependencies to place before and after the object being linked:
17020 predep_objects_CXX=
17021 postdep_objects_CXX=
17022 predeps_CXX=
17023 postdeps_CXX=
17024 compiler_lib_search_path_CXX=
17025
17026 cat > conftest.$ac_ext <<_LT_EOF
17027 class Foo
17028 {
17029 public:
17030 Foo (void) { a = 0; }
17031 private:
17032 int a;
17033 };
17034 _LT_EOF
17035
17036
17037 _lt_libdeps_save_CFLAGS=$CFLAGS
17038 case "$CC $CFLAGS " in #(
17039 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17040 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17041 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17042 esac
17043
17044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17045 (eval $ac_compile) 2>&5
17046 ac_status=$?
17047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17048 test $ac_status = 0; }; then
17049 # Parse the compiler output and extract the necessary
17050 # objects, libraries and library flags.
17051
17052 # Sentinel used to keep track of whether or not we are before
17053 # the conftest object file.
17054 pre_test_object_deps_done=no
17055
17056 for p in `eval "$output_verbose_link_cmd"`; do
17057 case $prev$p in
17058
17059 -L* | -R* | -l*)
17060 # Some compilers place space between "-{L,R}" and the path.
17061 # Remove the space.
17062 if test x-L = "$p" ||
17063 test x-R = "$p"; then
17064 prev=$p
17065 continue
17066 fi
17067
17068 # Expand the sysroot to ease extracting the directories later.
17069 if test -z "$prev"; then
17070 case $p in
17071 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17072 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17073 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17074 esac
17075 fi
17076 case $p in
17077 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17078 esac
17079 if test no = "$pre_test_object_deps_done"; then
17080 case $prev in
17081 -L | -R)
17082 # Internal compiler library paths should come after those
17083 # provided the user. The postdeps already come after the
17084 # user supplied libs so there is no need to process them.
17085 if test -z "$compiler_lib_search_path_CXX"; then
17086 compiler_lib_search_path_CXX=$prev$p
17087 else
17088 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17089 fi
17090 ;;
17091 # The "-l" case would never come before the object being
17092 # linked, so don't bother handling this case.
17093 esac
17094 else
17095 if test -z "$postdeps_CXX"; then
17096 postdeps_CXX=$prev$p
17097 else
17098 postdeps_CXX="${postdeps_CXX} $prev$p"
17099 fi
17100 fi
17101 prev=
17102 ;;
17103
17104 *.lto.$objext) ;; # Ignore GCC LTO objects
17105 *.$objext)
17106 # This assumes that the test object file only shows up
17107 # once in the compiler output.
17108 if test "$p" = "conftest.$objext"; then
17109 pre_test_object_deps_done=yes
17110 continue
17111 fi
17112
17113 if test no = "$pre_test_object_deps_done"; then
17114 if test -z "$predep_objects_CXX"; then
17115 predep_objects_CXX=$p
17116 else
17117 predep_objects_CXX="$predep_objects_CXX $p"
17118 fi
17119 else
17120 if test -z "$postdep_objects_CXX"; then
17121 postdep_objects_CXX=$p
17122 else
17123 postdep_objects_CXX="$postdep_objects_CXX $p"
17124 fi
17125 fi
17126 ;;
17127
17128 *) ;; # Ignore the rest.
17129
17130 esac
17131 done
17132
17133 # Clean up.
17134 rm -f a.out a.exe
17135 else
17136 echo "libtool.m4: error: problem compiling CXX test program"
17137 fi
17138
17139 $RM -f confest.$objext
17140 CFLAGS=$_lt_libdeps_save_CFLAGS
17141
17142 # PORTME: override above test on systems where it is broken
17143 case $host_os in
17144 interix[3-9]*)
17145 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17146 # hack all around it, let's just trust "g++" to DTRT.
17147 predep_objects_CXX=
17148 postdep_objects_CXX=
17149 postdeps_CXX=
17150 ;;
17151 esac
17152
17153
17154 case " $postdeps_CXX " in
17155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17156 esac
17157 compiler_lib_search_dirs_CXX=
17158 if test -n "${compiler_lib_search_path_CXX}"; then
17159 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17160 fi
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192 lt_prog_compiler_wl_CXX=
17193 lt_prog_compiler_pic_CXX=
17194 lt_prog_compiler_static_CXX=
17195
17196
17197 # C++ specific cases for pic, static, wl, etc.
17198 if test yes = "$GXX"; then
17199 lt_prog_compiler_wl_CXX='-Wl,'
17200 lt_prog_compiler_static_CXX='-static'
17201
17202 case $host_os in
17203 aix*)
17204 # All AIX code is PIC.
17205 if test ia64 = "$host_cpu"; then
17206 # AIX 5 now supports IA64 processor
17207 lt_prog_compiler_static_CXX='-Bstatic'
17208 fi
17209 lt_prog_compiler_pic_CXX='-fPIC'
17210 ;;
17211
17212 amigaos*)
17213 case $host_cpu in
17214 powerpc)
17215 # see comment about AmigaOS4 .so support
17216 lt_prog_compiler_pic_CXX='-fPIC'
17217 ;;
17218 m68k)
17219 # FIXME: we need at least 68020 code to build shared libraries, but
17220 # adding the '-m68020' flag to GCC prevents building anything better,
17221 # like '-m68040'.
17222 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17223 ;;
17224 esac
17225 ;;
17226
17227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17228 # PIC is the default for these OSes.
17229 ;;
17230 mingw* | cygwin* | os2* | pw32* | cegcc*)
17231 # This hack is so that the source file can tell whether it is being
17232 # built for inclusion in a dll (and should export symbols for example).
17233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17234 # (--disable-auto-import) libraries
17235 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17236 case $host_os in
17237 os2*)
17238 lt_prog_compiler_static_CXX='$wl-static'
17239 ;;
17240 esac
17241 ;;
17242 darwin* | rhapsody*)
17243 # PIC is the default on this platform
17244 # Common symbols not allowed in MH_DYLIB files
17245 lt_prog_compiler_pic_CXX='-fno-common'
17246 ;;
17247 *djgpp*)
17248 # DJGPP does not support shared libraries at all
17249 lt_prog_compiler_pic_CXX=
17250 ;;
17251 haiku*)
17252 # PIC is the default for Haiku.
17253 # The "-static" flag exists, but is broken.
17254 lt_prog_compiler_static_CXX=
17255 ;;
17256 interix[3-9]*)
17257 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17258 # Instead, we relocate shared libraries at runtime.
17259 ;;
17260 sysv4*MP*)
17261 if test -d /usr/nec; then
17262 lt_prog_compiler_pic_CXX=-Kconform_pic
17263 fi
17264 ;;
17265 hpux*)
17266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17268 # sets the default TLS model and affects inlining.
17269 case $host_cpu in
17270 hppa*64*)
17271 ;;
17272 *)
17273 lt_prog_compiler_pic_CXX='-fPIC'
17274 ;;
17275 esac
17276 ;;
17277 *qnx* | *nto*)
17278 # QNX uses GNU C++, but need to define -shared option too, otherwise
17279 # it will coredump.
17280 lt_prog_compiler_pic_CXX='-fPIC -shared'
17281 ;;
17282 *)
17283 lt_prog_compiler_pic_CXX='-fPIC'
17284 ;;
17285 esac
17286 else
17287 case $host_os in
17288 aix[4-9]*)
17289 # All AIX code is PIC.
17290 if test ia64 = "$host_cpu"; then
17291 # AIX 5 now supports IA64 processor
17292 lt_prog_compiler_static_CXX='-Bstatic'
17293 else
17294 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17295 fi
17296 ;;
17297 chorus*)
17298 case $cc_basename in
17299 cxch68*)
17300 # Green Hills C++ Compiler
17301 # _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"
17302 ;;
17303 esac
17304 ;;
17305 mingw* | cygwin* | os2* | pw32* | cegcc*)
17306 # This hack is so that the source file can tell whether it is being
17307 # built for inclusion in a dll (and should export symbols for example).
17308 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17309 ;;
17310 dgux*)
17311 case $cc_basename in
17312 ec++*)
17313 lt_prog_compiler_pic_CXX='-KPIC'
17314 ;;
17315 ghcx*)
17316 # Green Hills C++ Compiler
17317 lt_prog_compiler_pic_CXX='-pic'
17318 ;;
17319 *)
17320 ;;
17321 esac
17322 ;;
17323 freebsd* | dragonfly*)
17324 # FreeBSD uses GNU C++
17325 ;;
17326 hpux9* | hpux10* | hpux11*)
17327 case $cc_basename in
17328 CC*)
17329 lt_prog_compiler_wl_CXX='-Wl,'
17330 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17331 if test ia64 != "$host_cpu"; then
17332 lt_prog_compiler_pic_CXX='+Z'
17333 fi
17334 ;;
17335 aCC*)
17336 lt_prog_compiler_wl_CXX='-Wl,'
17337 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17338 case $host_cpu in
17339 hppa*64*|ia64*)
17340 # +Z the default
17341 ;;
17342 *)
17343 lt_prog_compiler_pic_CXX='+Z'
17344 ;;
17345 esac
17346 ;;
17347 *)
17348 ;;
17349 esac
17350 ;;
17351 interix*)
17352 # This is c89, which is MS Visual C++ (no shared libs)
17353 # Anyone wants to do a port?
17354 ;;
17355 irix5* | irix6* | nonstopux*)
17356 case $cc_basename in
17357 CC*)
17358 lt_prog_compiler_wl_CXX='-Wl,'
17359 lt_prog_compiler_static_CXX='-non_shared'
17360 # CC pic flag -KPIC is the default.
17361 ;;
17362 *)
17363 ;;
17364 esac
17365 ;;
17366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17367 case $cc_basename in
17368 KCC*)
17369 # KAI C++ Compiler
17370 lt_prog_compiler_wl_CXX='--backend -Wl,'
17371 lt_prog_compiler_pic_CXX='-fPIC'
17372 ;;
17373 ecpc* )
17374 # old Intel C++ for x86_64, which still supported -KPIC.
17375 lt_prog_compiler_wl_CXX='-Wl,'
17376 lt_prog_compiler_pic_CXX='-KPIC'
17377 lt_prog_compiler_static_CXX='-static'
17378 ;;
17379 icpc* )
17380 # Intel C++, used to be incompatible with GCC.
17381 # ICC 10 doesn't accept -KPIC any more.
17382 lt_prog_compiler_wl_CXX='-Wl,'
17383 lt_prog_compiler_pic_CXX='-fPIC'
17384 lt_prog_compiler_static_CXX='-static'
17385 ;;
17386 pgCC* | pgcpp*)
17387 # Portland Group C++ compiler
17388 lt_prog_compiler_wl_CXX='-Wl,'
17389 lt_prog_compiler_pic_CXX='-fpic'
17390 lt_prog_compiler_static_CXX='-Bstatic'
17391 ;;
17392 cxx*)
17393 # Compaq C++
17394 # Make sure the PIC flag is empty. It appears that all Alpha
17395 # Linux and Compaq Tru64 Unix objects are PIC.
17396 lt_prog_compiler_pic_CXX=
17397 lt_prog_compiler_static_CXX='-non_shared'
17398 ;;
17399 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17400 # IBM XL 8.0, 9.0 on PPC and BlueGene
17401 lt_prog_compiler_wl_CXX='-Wl,'
17402 lt_prog_compiler_pic_CXX='-qpic'
17403 lt_prog_compiler_static_CXX='-qstaticlink'
17404 ;;
17405 *)
17406 case `$CC -V 2>&1 | sed 5q` in
17407 *Sun\ C*)
17408 # Sun C++ 5.9
17409 lt_prog_compiler_pic_CXX='-KPIC'
17410 lt_prog_compiler_static_CXX='-Bstatic'
17411 lt_prog_compiler_wl_CXX='-Qoption ld '
17412 ;;
17413 esac
17414 ;;
17415 esac
17416 ;;
17417 lynxos*)
17418 ;;
17419 m88k*)
17420 ;;
17421 mvs*)
17422 case $cc_basename in
17423 cxx*)
17424 lt_prog_compiler_pic_CXX='-W c,exportall'
17425 ;;
17426 *)
17427 ;;
17428 esac
17429 ;;
17430 netbsd*)
17431 ;;
17432 *qnx* | *nto*)
17433 # QNX uses GNU C++, but need to define -shared option too, otherwise
17434 # it will coredump.
17435 lt_prog_compiler_pic_CXX='-fPIC -shared'
17436 ;;
17437 osf3* | osf4* | osf5*)
17438 case $cc_basename in
17439 KCC*)
17440 lt_prog_compiler_wl_CXX='--backend -Wl,'
17441 ;;
17442 RCC*)
17443 # Rational C++ 2.4.1
17444 lt_prog_compiler_pic_CXX='-pic'
17445 ;;
17446 cxx*)
17447 # Digital/Compaq C++
17448 lt_prog_compiler_wl_CXX='-Wl,'
17449 # Make sure the PIC flag is empty. It appears that all Alpha
17450 # Linux and Compaq Tru64 Unix objects are PIC.
17451 lt_prog_compiler_pic_CXX=
17452 lt_prog_compiler_static_CXX='-non_shared'
17453 ;;
17454 *)
17455 ;;
17456 esac
17457 ;;
17458 psos*)
17459 ;;
17460 solaris*)
17461 case $cc_basename in
17462 CC* | sunCC*)
17463 # Sun C++ 4.2, 5.x and Centerline C++
17464 lt_prog_compiler_pic_CXX='-KPIC'
17465 lt_prog_compiler_static_CXX='-Bstatic'
17466 lt_prog_compiler_wl_CXX='-Qoption ld '
17467 ;;
17468 gcx*)
17469 # Green Hills C++ Compiler
17470 lt_prog_compiler_pic_CXX='-PIC'
17471 ;;
17472 *)
17473 ;;
17474 esac
17475 ;;
17476 sunos4*)
17477 case $cc_basename in
17478 CC*)
17479 # Sun C++ 4.x
17480 lt_prog_compiler_pic_CXX='-pic'
17481 lt_prog_compiler_static_CXX='-Bstatic'
17482 ;;
17483 lcc*)
17484 # Lucid
17485 lt_prog_compiler_pic_CXX='-pic'
17486 ;;
17487 *)
17488 ;;
17489 esac
17490 ;;
17491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17492 case $cc_basename in
17493 CC*)
17494 lt_prog_compiler_wl_CXX='-Wl,'
17495 lt_prog_compiler_pic_CXX='-KPIC'
17496 lt_prog_compiler_static_CXX='-Bstatic'
17497 ;;
17498 esac
17499 ;;
17500 tandem*)
17501 case $cc_basename in
17502 NCC*)
17503 # NonStop-UX NCC 3.20
17504 lt_prog_compiler_pic_CXX='-KPIC'
17505 ;;
17506 *)
17507 ;;
17508 esac
17509 ;;
17510 vxworks*)
17511 ;;
17512 *)
17513 lt_prog_compiler_can_build_shared_CXX=no
17514 ;;
17515 esac
17516 fi
17517
17518 case $host_os in
17519 # For platforms that do not support PIC, -DPIC is meaningless:
17520 *djgpp*)
17521 lt_prog_compiler_pic_CXX=
17522 ;;
17523 *)
17524 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17525 ;;
17526 esac
17527
17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17529 printf %s "checking for $compiler option to produce PIC... " >&6; }
17530 if test ${lt_cv_prog_compiler_pic_CXX+y}
17531 then :
17532 printf %s "(cached) " >&6
17533 else $as_nop
17534 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17535 fi
17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17537 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17538 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17539
17540 #
17541 # Check to make sure the PIC flag actually works.
17542 #
17543 if test -n "$lt_prog_compiler_pic_CXX"; then
17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17545 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17546 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17547 then :
17548 printf %s "(cached) " >&6
17549 else $as_nop
17550 lt_cv_prog_compiler_pic_works_CXX=no
17551 ac_outfile=conftest.$ac_objext
17552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17553 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17554 # Insert the option either (1) after the last *FLAGS variable, or
17555 # (2) before a word containing "conftest.", or (3) at the end.
17556 # Note that $ac_compile itself does not contain backslashes and begins
17557 # with a dollar sign (not a hyphen), so the echo should work correctly.
17558 # The option is referenced via a variable to avoid confusing sed.
17559 lt_compile=`echo "$ac_compile" | $SED \
17560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17562 -e 's:$: $lt_compiler_flag:'`
17563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17564 (eval "$lt_compile" 2>conftest.err)
17565 ac_status=$?
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 if (exit $ac_status) && test -s "$ac_outfile"; then
17569 # The compiler can only warn and ignore the option if not recognized
17570 # So say no if there are warnings other than the usual output.
17571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17574 lt_cv_prog_compiler_pic_works_CXX=yes
17575 fi
17576 fi
17577 $RM conftest*
17578
17579 fi
17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17581 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17582
17583 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17584 case $lt_prog_compiler_pic_CXX in
17585 "" | " "*) ;;
17586 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17587 esac
17588 else
17589 lt_prog_compiler_pic_CXX=
17590 lt_prog_compiler_can_build_shared_CXX=no
17591 fi
17592
17593 fi
17594
17595
17596
17597
17598
17599 #
17600 # Check to make sure the static flag actually works.
17601 #
17602 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17604 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17605 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17606 then :
17607 printf %s "(cached) " >&6
17608 else $as_nop
17609 lt_cv_prog_compiler_static_works_CXX=no
17610 save_LDFLAGS=$LDFLAGS
17611 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17614 # The linker can only warn and ignore the option if not recognized
17615 # So say no if there are warnings
17616 if test -s conftest.err; then
17617 # Append any errors to the config.log.
17618 cat conftest.err 1>&5
17619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17621 if diff conftest.exp conftest.er2 >/dev/null; then
17622 lt_cv_prog_compiler_static_works_CXX=yes
17623 fi
17624 else
17625 lt_cv_prog_compiler_static_works_CXX=yes
17626 fi
17627 fi
17628 $RM -r conftest*
17629 LDFLAGS=$save_LDFLAGS
17630
17631 fi
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17633 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17634
17635 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17636 :
17637 else
17638 lt_prog_compiler_static_CXX=
17639 fi
17640
17641
17642
17643
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17645 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17646 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17647 then :
17648 printf %s "(cached) " >&6
17649 else $as_nop
17650 lt_cv_prog_compiler_c_o_CXX=no
17651 $RM -r conftest 2>/dev/null
17652 mkdir conftest
17653 cd conftest
17654 mkdir out
17655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17656
17657 lt_compiler_flag="-o out/conftest2.$ac_objext"
17658 # Insert the option either (1) after the last *FLAGS variable, or
17659 # (2) before a word containing "conftest.", or (3) at the end.
17660 # Note that $ac_compile itself does not contain backslashes and begins
17661 # with a dollar sign (not a hyphen), so the echo should work correctly.
17662 lt_compile=`echo "$ac_compile" | $SED \
17663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17665 -e 's:$: $lt_compiler_flag:'`
17666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17667 (eval "$lt_compile" 2>out/conftest.err)
17668 ac_status=$?
17669 cat out/conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17672 then
17673 # The compiler can only warn and ignore the option if not recognized
17674 # So say no if there are warnings
17675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17678 lt_cv_prog_compiler_c_o_CXX=yes
17679 fi
17680 fi
17681 chmod u+w . 2>&5
17682 $RM conftest*
17683 # SGI C++ compiler will create directory out/ii_files/ for
17684 # template instantiation
17685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17686 $RM out/* && rmdir out
17687 cd ..
17688 $RM -r conftest
17689 $RM conftest*
17690
17691 fi
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17693 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17694
17695
17696
17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17698 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17699 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17700 then :
17701 printf %s "(cached) " >&6
17702 else $as_nop
17703 lt_cv_prog_compiler_c_o_CXX=no
17704 $RM -r conftest 2>/dev/null
17705 mkdir conftest
17706 cd conftest
17707 mkdir out
17708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17709
17710 lt_compiler_flag="-o out/conftest2.$ac_objext"
17711 # Insert the option either (1) after the last *FLAGS variable, or
17712 # (2) before a word containing "conftest.", or (3) at the end.
17713 # Note that $ac_compile itself does not contain backslashes and begins
17714 # with a dollar sign (not a hyphen), so the echo should work correctly.
17715 lt_compile=`echo "$ac_compile" | $SED \
17716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17718 -e 's:$: $lt_compiler_flag:'`
17719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17720 (eval "$lt_compile" 2>out/conftest.err)
17721 ac_status=$?
17722 cat out/conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17725 then
17726 # The compiler can only warn and ignore the option if not recognized
17727 # So say no if there are warnings
17728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17731 lt_cv_prog_compiler_c_o_CXX=yes
17732 fi
17733 fi
17734 chmod u+w . 2>&5
17735 $RM conftest*
17736 # SGI C++ compiler will create directory out/ii_files/ for
17737 # template instantiation
17738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17739 $RM out/* && rmdir out
17740 cd ..
17741 $RM -r conftest
17742 $RM conftest*
17743
17744 fi
17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17746 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17747
17748
17749
17750
17751 hard_links=nottested
17752 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17753 # do not overwrite the value of need_locks provided by the user
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17755 printf %s "checking if we can lock with hard links... " >&6; }
17756 hard_links=yes
17757 $RM conftest*
17758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17759 touch conftest.a
17760 ln conftest.a conftest.b 2>&5 || hard_links=no
17761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17763 printf "%s\n" "$hard_links" >&6; }
17764 if test no = "$hard_links"; then
17765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17766 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17767 need_locks=warn
17768 fi
17769 else
17770 need_locks=no
17771 fi
17772
17773
17774
17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17776 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17777
17778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17779 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17780 case $host_os in
17781 aix[4-9]*)
17782 # If we're using GNU nm, then we don't want the "-C" option.
17783 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17784 # Without the "-l" option, or with the "-B" option, AIX nm treats
17785 # weak defined symbols like other global defined symbols, whereas
17786 # GNU nm marks them as "W".
17787 # While the 'weak' keyword is ignored in the Export File, we need
17788 # it in the Import File for the 'aix-soname' feature, so we have
17789 # to replace the "-B" option with "-P" for AIX nm.
17790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17791 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'
17792 else
17793 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 == "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'
17794 fi
17795 ;;
17796 pw32*)
17797 export_symbols_cmds_CXX=$ltdll_cmds
17798 ;;
17799 cygwin* | mingw* | cegcc*)
17800 case $cc_basename in
17801 cl*)
17802 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17803 ;;
17804 *)
17805 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'
17806 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17807 ;;
17808 esac
17809 ;;
17810 *)
17811 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17812 ;;
17813 esac
17814
17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17816 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17817 test no = "$ld_shlibs_CXX" && can_build_shared=no
17818
17819 with_gnu_ld_CXX=$with_gnu_ld
17820
17821
17822
17823
17824
17825
17826 #
17827 # Do we need to explicitly link libc?
17828 #
17829 case "x$archive_cmds_need_lc_CXX" in
17830 x|xyes)
17831 # Assume -lc should be added
17832 archive_cmds_need_lc_CXX=yes
17833
17834 if test yes,yes = "$GCC,$enable_shared"; then
17835 case $archive_cmds_CXX in
17836 *'~'*)
17837 # FIXME: we may have to deal with multi-command sequences.
17838 ;;
17839 '$CC '*)
17840 # Test whether the compiler implicitly links with -lc since on some
17841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17842 # to ld, don't add -lc before -lgcc.
17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17844 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17845 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17846 then :
17847 printf %s "(cached) " >&6
17848 else $as_nop
17849 $RM conftest*
17850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17851
17852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17853 (eval $ac_compile) 2>&5
17854 ac_status=$?
17855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17856 test $ac_status = 0; } 2>conftest.err; then
17857 soname=conftest
17858 lib=conftest
17859 libobjs=conftest.$ac_objext
17860 deplibs=
17861 wl=$lt_prog_compiler_wl_CXX
17862 pic_flag=$lt_prog_compiler_pic_CXX
17863 compiler_flags=-v
17864 linker_flags=-v
17865 verstring=
17866 output_objdir=.
17867 libname=conftest
17868 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17869 allow_undefined_flag_CXX=
17870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17871 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17872 ac_status=$?
17873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17874 test $ac_status = 0; }
17875 then
17876 lt_cv_archive_cmds_need_lc_CXX=no
17877 else
17878 lt_cv_archive_cmds_need_lc_CXX=yes
17879 fi
17880 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17881 else
17882 cat conftest.err 1>&5
17883 fi
17884 $RM conftest*
17885
17886 fi
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17888 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17889 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17890 ;;
17891 esac
17892 fi
17893 ;;
17894 esac
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17958 printf %s "checking dynamic linker characteristics... " >&6; }
17959
17960 library_names_spec=
17961 libname_spec='lib$name'
17962 soname_spec=
17963 shrext_cmds=.so
17964 postinstall_cmds=
17965 postuninstall_cmds=
17966 finish_cmds=
17967 finish_eval=
17968 shlibpath_var=
17969 shlibpath_overrides_runpath=unknown
17970 version_type=none
17971 dynamic_linker="$host_os ld.so"
17972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17973 need_lib_prefix=unknown
17974 hardcode_into_libs=no
17975
17976 # when you set need_version to no, make sure it does not cause -set_version
17977 # flags to be left without arguments
17978 need_version=unknown
17979
17980
17981
17982 case $host_os in
17983 aix3*)
17984 version_type=linux # correct to gnu/linux during the next big refactor
17985 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17986 shlibpath_var=LIBPATH
17987
17988 # AIX 3 has no versioning support, so we append a major version to the name.
17989 soname_spec='$libname$release$shared_ext$major'
17990 ;;
17991
17992 aix[4-9]*)
17993 version_type=linux # correct to gnu/linux during the next big refactor
17994 need_lib_prefix=no
17995 need_version=no
17996 hardcode_into_libs=yes
17997 if test ia64 = "$host_cpu"; then
17998 # AIX 5 supports IA64
17999 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 else
18002 # With GCC up to 2.95.x, collect2 would create an import file
18003 # for dependence libraries. The import file would start with
18004 # the line '#! .'. This would cause the generated library to
18005 # depend on '.', always an invalid library. This was fixed in
18006 # development snapshots of GCC prior to 3.0.
18007 case $host_os in
18008 aix4 | aix4.[01] | aix4.[01].*)
18009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18010 echo ' yes '
18011 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18012 :
18013 else
18014 can_build_shared=no
18015 fi
18016 ;;
18017 esac
18018 # Using Import Files as archive members, it is possible to support
18019 # filename-based versioning of shared library archives on AIX. While
18020 # this would work for both with and without runtime linking, it will
18021 # prevent static linking of such archives. So we do filename-based
18022 # shared library versioning with .so extension only, which is used
18023 # when both runtime linking and shared linking is enabled.
18024 # Unfortunately, runtime linking may impact performance, so we do
18025 # not want this to be the default eventually. Also, we use the
18026 # versioned .so libs for executables only if there is the -brtl
18027 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18028 # To allow for filename-based versioning support, we need to create
18029 # libNAME.so.V as an archive file, containing:
18030 # *) an Import File, referring to the versioned filename of the
18031 # archive as well as the shared archive member, telling the
18032 # bitwidth (32 or 64) of that shared object, and providing the
18033 # list of exported symbols of that shared object, eventually
18034 # decorated with the 'weak' keyword
18035 # *) the shared object with the F_LOADONLY flag set, to really avoid
18036 # it being seen by the linker.
18037 # At run time we better use the real file rather than another symlink,
18038 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18039
18040 case $with_aix_soname,$aix_use_runtimelinking in
18041 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18042 # soname into executable. Probably we can add versioning support to
18043 # collect2, so additional links can be useful in future.
18044 aix,yes) # traditional libtool
18045 dynamic_linker='AIX unversionable lib.so'
18046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18047 # instead of lib<name>.a to let people know that these are not
18048 # typical AIX shared libraries.
18049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18050 ;;
18051 aix,no) # traditional AIX only
18052 dynamic_linker='AIX lib.a(lib.so.V)'
18053 # We preserve .a as extension for shared libraries through AIX4.2
18054 # and later when we are not doing run time linking.
18055 library_names_spec='$libname$release.a $libname.a'
18056 soname_spec='$libname$release$shared_ext$major'
18057 ;;
18058 svr4,*) # full svr4 only
18059 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18060 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18061 # We do not specify a path in Import Files, so LIBPATH fires.
18062 shlibpath_overrides_runpath=yes
18063 ;;
18064 *,yes) # both, prefer svr4
18065 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18066 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18067 # unpreferred sharedlib libNAME.a needs extra handling
18068 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"'
18069 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"'
18070 # We do not specify a path in Import Files, so LIBPATH fires.
18071 shlibpath_overrides_runpath=yes
18072 ;;
18073 *,no) # both, prefer aix
18074 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18075 library_names_spec='$libname$release.a $libname.a'
18076 soname_spec='$libname$release$shared_ext$major'
18077 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18078 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)'
18079 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"'
18080 ;;
18081 esac
18082 shlibpath_var=LIBPATH
18083 fi
18084 ;;
18085
18086 amigaos*)
18087 case $host_cpu in
18088 powerpc)
18089 # Since July 2007 AmigaOS4 officially supports .so libraries.
18090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18092 ;;
18093 m68k)
18094 library_names_spec='$libname.ixlibrary $libname.a'
18095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18096 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'
18097 ;;
18098 esac
18099 ;;
18100
18101 beos*)
18102 library_names_spec='$libname$shared_ext'
18103 dynamic_linker="$host_os ld.so"
18104 shlibpath_var=LIBRARY_PATH
18105 ;;
18106
18107 bsdi[45]*)
18108 version_type=linux # correct to gnu/linux during the next big refactor
18109 need_version=no
18110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18111 soname_spec='$libname$release$shared_ext$major'
18112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18113 shlibpath_var=LD_LIBRARY_PATH
18114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18116 # the default ld.so.conf also contains /usr/contrib/lib and
18117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18118 # libtool to hard-code these into programs
18119 ;;
18120
18121 cygwin* | mingw* | pw32* | cegcc*)
18122 version_type=windows
18123 shrext_cmds=.dll
18124 need_version=no
18125 need_lib_prefix=no
18126
18127 case $GCC,$cc_basename in
18128 yes,*)
18129 # gcc
18130 library_names_spec='$libname.dll.a'
18131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18132 postinstall_cmds='base_file=`basename \$file`~
18133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18134 dldir=$destdir/`dirname \$dlpath`~
18135 test -d \$dldir || mkdir -p \$dldir~
18136 $install_prog $dir/$dlname \$dldir/$dlname~
18137 chmod a+x \$dldir/$dlname~
18138 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18139 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18140 fi'
18141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18142 dlpath=$dir/\$dldll~
18143 $RM \$dlpath'
18144 shlibpath_overrides_runpath=yes
18145
18146 case $host_os in
18147 cygwin*)
18148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18149 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18150
18151 ;;
18152 mingw* | cegcc*)
18153 # MinGW DLLs use traditional 'lib' prefix
18154 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18155 ;;
18156 pw32*)
18157 # pw32 DLLs use 'pw' prefix rather than 'lib'
18158 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18159 ;;
18160 esac
18161 dynamic_linker='Win32 ld.exe'
18162 ;;
18163
18164 *,cl*)
18165 # Native MSVC
18166 libname_spec='$name'
18167 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18168 library_names_spec='$libname.dll.lib'
18169
18170 case $build_os in
18171 mingw*)
18172 sys_lib_search_path_spec=
18173 lt_save_ifs=$IFS
18174 IFS=';'
18175 for lt_path in $LIB
18176 do
18177 IFS=$lt_save_ifs
18178 # Let DOS variable expansion print the short 8.3 style file name.
18179 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18180 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18181 done
18182 IFS=$lt_save_ifs
18183 # Convert to MSYS style.
18184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18185 ;;
18186 cygwin*)
18187 # Convert to unix form, then to dos form, then back to unix form
18188 # but this time dos style (no spaces!) so that the unix form looks
18189 # like /cygdrive/c/PROGRA~1:/cygdr...
18190 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18191 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18192 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18193 ;;
18194 *)
18195 sys_lib_search_path_spec=$LIB
18196 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18197 # It is most probably a Windows format PATH.
18198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18199 else
18200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18201 fi
18202 # FIXME: find the short name or the path components, as spaces are
18203 # common. (e.g. "Program Files" -> "PROGRA~1")
18204 ;;
18205 esac
18206
18207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18208 postinstall_cmds='base_file=`basename \$file`~
18209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18210 dldir=$destdir/`dirname \$dlpath`~
18211 test -d \$dldir || mkdir -p \$dldir~
18212 $install_prog $dir/$dlname \$dldir/$dlname'
18213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18214 dlpath=$dir/\$dldll~
18215 $RM \$dlpath'
18216 shlibpath_overrides_runpath=yes
18217 dynamic_linker='Win32 link.exe'
18218 ;;
18219
18220 *)
18221 # Assume MSVC wrapper
18222 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18223 dynamic_linker='Win32 ld.exe'
18224 ;;
18225 esac
18226 # FIXME: first we should search . and the directory the executable is in
18227 shlibpath_var=PATH
18228 ;;
18229
18230 darwin* | rhapsody*)
18231 dynamic_linker="$host_os dyld"
18232 version_type=darwin
18233 need_lib_prefix=no
18234 need_version=no
18235 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18236 soname_spec='$libname$release$major$shared_ext'
18237 shlibpath_overrides_runpath=yes
18238 shlibpath_var=DYLD_LIBRARY_PATH
18239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18240
18241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18242 ;;
18243
18244 dgux*)
18245 version_type=linux # correct to gnu/linux during the next big refactor
18246 need_lib_prefix=no
18247 need_version=no
18248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18249 soname_spec='$libname$release$shared_ext$major'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 ;;
18252
18253 freebsd* | dragonfly*)
18254 # DragonFly does not have aout. When/if they implement a new
18255 # versioning mechanism, adjust this.
18256 if test -x /usr/bin/objformat; then
18257 objformat=`/usr/bin/objformat`
18258 else
18259 case $host_os in
18260 freebsd[23].*) objformat=aout ;;
18261 *) objformat=elf ;;
18262 esac
18263 fi
18264 version_type=freebsd-$objformat
18265 case $version_type in
18266 freebsd-elf*)
18267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18268 soname_spec='$libname$release$shared_ext$major'
18269 need_version=no
18270 need_lib_prefix=no
18271 ;;
18272 freebsd-*)
18273 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18274 need_version=yes
18275 ;;
18276 esac
18277 shlibpath_var=LD_LIBRARY_PATH
18278 case $host_os in
18279 freebsd2.*)
18280 shlibpath_overrides_runpath=yes
18281 ;;
18282 freebsd3.[01]* | freebsdelf3.[01]*)
18283 shlibpath_overrides_runpath=yes
18284 hardcode_into_libs=yes
18285 ;;
18286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18288 shlibpath_overrides_runpath=no
18289 hardcode_into_libs=yes
18290 ;;
18291 *) # from 4.6 on, and DragonFly
18292 shlibpath_overrides_runpath=yes
18293 hardcode_into_libs=yes
18294 ;;
18295 esac
18296 ;;
18297
18298 haiku*)
18299 version_type=linux # correct to gnu/linux during the next big refactor
18300 need_lib_prefix=no
18301 need_version=no
18302 dynamic_linker="$host_os runtime_loader"
18303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18304 soname_spec='$libname$release$shared_ext$major'
18305 shlibpath_var=LIBRARY_PATH
18306 shlibpath_overrides_runpath=no
18307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18308 hardcode_into_libs=yes
18309 ;;
18310
18311 hpux9* | hpux10* | hpux11*)
18312 # Give a soname corresponding to the major version so that dld.sl refuses to
18313 # link against other versions.
18314 version_type=sunos
18315 need_lib_prefix=no
18316 need_version=no
18317 case $host_cpu in
18318 ia64*)
18319 shrext_cmds='.so'
18320 hardcode_into_libs=yes
18321 dynamic_linker="$host_os dld.so"
18322 shlibpath_var=LD_LIBRARY_PATH
18323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18325 soname_spec='$libname$release$shared_ext$major'
18326 if test 32 = "$HPUX_IA64_MODE"; then
18327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18328 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18329 else
18330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18331 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18332 fi
18333 ;;
18334 hppa*64*)
18335 shrext_cmds='.sl'
18336 hardcode_into_libs=yes
18337 dynamic_linker="$host_os dld.sl"
18338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18341 soname_spec='$libname$release$shared_ext$major'
18342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18344 ;;
18345 *)
18346 shrext_cmds='.sl'
18347 dynamic_linker="$host_os dld.sl"
18348 shlibpath_var=SHLIB_PATH
18349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18351 soname_spec='$libname$release$shared_ext$major'
18352 ;;
18353 esac
18354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18355 postinstall_cmds='chmod 555 $lib'
18356 # or fails outright, so override atomically:
18357 install_override_mode=555
18358 ;;
18359
18360 interix[3-9]*)
18361 version_type=linux # correct to gnu/linux during the next big refactor
18362 need_lib_prefix=no
18363 need_version=no
18364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18365 soname_spec='$libname$release$shared_ext$major'
18366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=no
18369 hardcode_into_libs=yes
18370 ;;
18371
18372 irix5* | irix6* | nonstopux*)
18373 case $host_os in
18374 nonstopux*) version_type=nonstopux ;;
18375 *)
18376 if test yes = "$lt_cv_prog_gnu_ld"; then
18377 version_type=linux # correct to gnu/linux during the next big refactor
18378 else
18379 version_type=irix
18380 fi ;;
18381 esac
18382 need_lib_prefix=no
18383 need_version=no
18384 soname_spec='$libname$release$shared_ext$major'
18385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18386 case $host_os in
18387 irix5* | nonstopux*)
18388 libsuff= shlibsuff=
18389 ;;
18390 *)
18391 case $LD in # libtool.m4 will add one of these switches to LD
18392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18393 libsuff= shlibsuff= libmagic=32-bit;;
18394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18395 libsuff=32 shlibsuff=N32 libmagic=N32;;
18396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18398 *) libsuff= shlibsuff= libmagic=never-match;;
18399 esac
18400 ;;
18401 esac
18402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18403 shlibpath_overrides_runpath=no
18404 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18405 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18406 hardcode_into_libs=yes
18407 ;;
18408
18409 # No shared lib support for Linux oldld, aout, or coff.
18410 linux*oldld* | linux*aout* | linux*coff*)
18411 dynamic_linker=no
18412 ;;
18413
18414 linux*android*)
18415 version_type=none # Android doesn't support versioned libraries.
18416 need_lib_prefix=no
18417 need_version=no
18418 library_names_spec='$libname$release$shared_ext'
18419 soname_spec='$libname$release$shared_ext'
18420 finish_cmds=
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes
18423
18424 # This implies no fast_install, which is unacceptable.
18425 # Some rework will be needed to allow for fast_install
18426 # before this can be enabled.
18427 hardcode_into_libs=yes
18428
18429 dynamic_linker='Android linker'
18430 # Don't embed -rpath directories since the linker doesn't support them.
18431 hardcode_libdir_flag_spec_CXX='-L$libdir'
18432 ;;
18433
18434 # This must be glibc/ELF.
18435 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18436 version_type=linux # correct to gnu/linux during the next big refactor
18437 need_lib_prefix=no
18438 need_version=no
18439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18440 soname_spec='$libname$release$shared_ext$major'
18441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18442 shlibpath_var=LD_LIBRARY_PATH
18443 shlibpath_overrides_runpath=no
18444
18445 # Some binutils ld are patched to set DT_RUNPATH
18446 if test ${lt_cv_shlibpath_overrides_runpath+y}
18447 then :
18448 printf %s "(cached) " >&6
18449 else $as_nop
18450 lt_cv_shlibpath_overrides_runpath=no
18451 save_LDFLAGS=$LDFLAGS
18452 save_libdir=$libdir
18453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457
18458 int
18459 main (void)
18460 {
18461
18462 ;
18463 return 0;
18464 }
18465 _ACEOF
18466 if ac_fn_cxx_try_link "$LINENO"
18467 then :
18468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18469 then :
18470 lt_cv_shlibpath_overrides_runpath=yes
18471 fi
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18474 conftest$ac_exeext conftest.$ac_ext
18475 LDFLAGS=$save_LDFLAGS
18476 libdir=$save_libdir
18477
18478 fi
18479
18480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18481
18482 # This implies no fast_install, which is unacceptable.
18483 # Some rework will be needed to allow for fast_install
18484 # before this can be enabled.
18485 hardcode_into_libs=yes
18486
18487 # Ideally, we could use ldconfig to report *all* directores which are
18488 # searched for libraries, however this is still not possible. Aside from not
18489 # being certain /sbin/ldconfig is available, command
18490 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18491 # even though it is searched at run-time. Try to do the best guess by
18492 # appending ld.so.conf contents (and includes) to the search path.
18493 if test -f /etc/ld.so.conf; then
18494 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' ' '`
18495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18496 fi
18497
18498 # We used to test for /lib/ld.so.1 and disable shared libraries on
18499 # powerpc, because MkLinux only supported shared libraries with the
18500 # GNU dynamic linker. Since this was broken with cross compilers,
18501 # most powerpc-linux boxes support dynamic linking these days and
18502 # people can always --disable-shared, the test was removed, and we
18503 # assume the GNU/Linux dynamic linker is in use.
18504 dynamic_linker='GNU/Linux ld.so'
18505 ;;
18506
18507 netbsd*)
18508 version_type=sunos
18509 need_lib_prefix=no
18510 need_version=no
18511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18512 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514 dynamic_linker='NetBSD (a.out) ld.so'
18515 else
18516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18517 soname_spec='$libname$release$shared_ext$major'
18518 dynamic_linker='NetBSD ld.elf_so'
18519 fi
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=yes
18522 hardcode_into_libs=yes
18523 ;;
18524
18525 newsos6)
18526 version_type=linux # correct to gnu/linux during the next big refactor
18527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18530 ;;
18531
18532 *nto* | *qnx*)
18533 version_type=qnx
18534 need_lib_prefix=no
18535 need_version=no
18536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18537 soname_spec='$libname$release$shared_ext$major'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=no
18540 hardcode_into_libs=yes
18541 dynamic_linker='ldqnx.so'
18542 ;;
18543
18544 openbsd* | bitrig*)
18545 version_type=sunos
18546 sys_lib_dlsearch_path_spec=/usr/lib
18547 need_lib_prefix=no
18548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18549 need_version=no
18550 else
18551 need_version=yes
18552 fi
18553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=yes
18557 ;;
18558
18559 os2*)
18560 libname_spec='$name'
18561 version_type=windows
18562 shrext_cmds=.dll
18563 need_version=no
18564 need_lib_prefix=no
18565 # OS/2 can only load a DLL with a base name of 8 characters or less.
18566 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18567 v=$($ECHO $release$versuffix | tr -d .-);
18568 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18569 $ECHO $n$v`$shared_ext'
18570 library_names_spec='${libname}_dll.$libext'
18571 dynamic_linker='OS/2 ld.exe'
18572 shlibpath_var=BEGINLIBPATH
18573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18575 postinstall_cmds='base_file=`basename \$file`~
18576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18577 dldir=$destdir/`dirname \$dlpath`~
18578 test -d \$dldir || mkdir -p \$dldir~
18579 $install_prog $dir/$dlname \$dldir/$dlname~
18580 chmod a+x \$dldir/$dlname~
18581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18583 fi'
18584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18585 dlpath=$dir/\$dldll~
18586 $RM \$dlpath'
18587 ;;
18588
18589 osf3* | osf4* | osf5*)
18590 version_type=osf
18591 need_lib_prefix=no
18592 need_version=no
18593 soname_spec='$libname$release$shared_ext$major'
18594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18595 shlibpath_var=LD_LIBRARY_PATH
18596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18598 ;;
18599
18600 rdos*)
18601 dynamic_linker=no
18602 ;;
18603
18604 solaris*)
18605 version_type=linux # correct to gnu/linux during the next big refactor
18606 need_lib_prefix=no
18607 need_version=no
18608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18609 soname_spec='$libname$release$shared_ext$major'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=yes
18612 hardcode_into_libs=yes
18613 # ldd complains unless libraries are executable
18614 postinstall_cmds='chmod +x $lib'
18615 ;;
18616
18617 sunos4*)
18618 version_type=sunos
18619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=yes
18623 if test yes = "$with_gnu_ld"; then
18624 need_lib_prefix=no
18625 fi
18626 need_version=yes
18627 ;;
18628
18629 sysv4 | sysv4.3*)
18630 version_type=linux # correct to gnu/linux during the next big refactor
18631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18632 soname_spec='$libname$release$shared_ext$major'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 case $host_vendor in
18635 sni)
18636 shlibpath_overrides_runpath=no
18637 need_lib_prefix=no
18638 runpath_var=LD_RUN_PATH
18639 ;;
18640 siemens)
18641 need_lib_prefix=no
18642 ;;
18643 motorola)
18644 need_lib_prefix=no
18645 need_version=no
18646 shlibpath_overrides_runpath=no
18647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18648 ;;
18649 esac
18650 ;;
18651
18652 sysv4*MP*)
18653 if test -d /usr/nec; then
18654 version_type=linux # correct to gnu/linux during the next big refactor
18655 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18656 soname_spec='$libname$shared_ext.$major'
18657 shlibpath_var=LD_LIBRARY_PATH
18658 fi
18659 ;;
18660
18661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18662 version_type=sco
18663 need_lib_prefix=no
18664 need_version=no
18665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18666 soname_spec='$libname$release$shared_ext$major'
18667 shlibpath_var=LD_LIBRARY_PATH
18668 shlibpath_overrides_runpath=yes
18669 hardcode_into_libs=yes
18670 if test yes = "$with_gnu_ld"; then
18671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18672 else
18673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18674 case $host_os in
18675 sco3.2v5*)
18676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18677 ;;
18678 esac
18679 fi
18680 sys_lib_dlsearch_path_spec='/usr/lib'
18681 ;;
18682
18683 tpf*)
18684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18685 version_type=linux # correct to gnu/linux during the next big refactor
18686 need_lib_prefix=no
18687 need_version=no
18688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18689 shlibpath_var=LD_LIBRARY_PATH
18690 shlibpath_overrides_runpath=no
18691 hardcode_into_libs=yes
18692 ;;
18693
18694 uts4*)
18695 version_type=linux # correct to gnu/linux during the next big refactor
18696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18697 soname_spec='$libname$release$shared_ext$major'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 ;;
18700
18701 *)
18702 dynamic_linker=no
18703 ;;
18704 esac
18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18706 printf "%s\n" "$dynamic_linker" >&6; }
18707 test no = "$dynamic_linker" && can_build_shared=no
18708
18709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18710 if test yes = "$GCC"; then
18711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18712 fi
18713
18714 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18715 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18716 fi
18717
18718 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18719 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18720 fi
18721
18722 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18723 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18724
18725 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18726 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18727
18728 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18729 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18771 printf %s "checking how to hardcode library paths into programs... " >&6; }
18772 hardcode_action_CXX=
18773 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18774 test -n "$runpath_var_CXX" ||
18775 test yes = "$hardcode_automatic_CXX"; then
18776
18777 # We can hardcode non-existent directories.
18778 if test no != "$hardcode_direct_CXX" &&
18779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18780 # have to relink, otherwise we might link with an installed library
18781 # when we should be linking with a yet-to-be-installed one
18782 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18783 test no != "$hardcode_minus_L_CXX"; then
18784 # Linking always hardcodes the temporary library directory.
18785 hardcode_action_CXX=relink
18786 else
18787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18788 hardcode_action_CXX=immediate
18789 fi
18790 else
18791 # We cannot hardcode anything, or else we can only hardcode existing
18792 # directories.
18793 hardcode_action_CXX=unsupported
18794 fi
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18796 printf "%s\n" "$hardcode_action_CXX" >&6; }
18797
18798 if test relink = "$hardcode_action_CXX" ||
18799 test yes = "$inherit_rpath_CXX"; then
18800 # Fast installation is not supported
18801 enable_fast_install=no
18802 elif test yes = "$shlibpath_overrides_runpath" ||
18803 test no = "$enable_shared"; then
18804 # Fast installation is not necessary
18805 enable_fast_install=needless
18806 fi
18807
18808
18809
18810
18811
18812
18813
18814 fi # test -n "$compiler"
18815
18816 CC=$lt_save_CC
18817 CFLAGS=$lt_save_CFLAGS
18818 LDCXX=$LD
18819 LD=$lt_save_LD
18820 GCC=$lt_save_GCC
18821 with_gnu_ld=$lt_save_with_gnu_ld
18822 lt_cv_path_LDCXX=$lt_cv_path_LD
18823 lt_cv_path_LD=$lt_save_path_LD
18824 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18825 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18826 fi # test yes != "$_lt_caught_CXX_error"
18827
18828 ac_ext=cpp
18829 ac_cpp='$CXXCPP $CPPFLAGS'
18830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848 ac_config_commands="$ac_config_commands libtool"
18849
18850
18851
18852
18853 # Only expand once:
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18866 if test -n "$ac_tool_prefix"; then
18867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18868 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18870 printf %s "checking for $ac_word... " >&6; }
18871 if test ${ac_cv_path_PKG_CONFIG+y}
18872 then :
18873 printf %s "(cached) " >&6
18874 else $as_nop
18875 case $PKG_CONFIG in
18876 [\\/]* | ?:[\\/]*)
18877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18878 ;;
18879 *)
18880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18881 for as_dir in $PATH
18882 do
18883 IFS=$as_save_IFS
18884 case $as_dir in #(((
18885 '') as_dir=./ ;;
18886 */) ;;
18887 *) as_dir=$as_dir/ ;;
18888 esac
18889 for ac_exec_ext in '' $ac_executable_extensions; do
18890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18891 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18893 break 2
18894 fi
18895 done
18896 done
18897 IFS=$as_save_IFS
18898
18899 ;;
18900 esac
18901 fi
18902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18903 if test -n "$PKG_CONFIG"; then
18904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18905 printf "%s\n" "$PKG_CONFIG" >&6; }
18906 else
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 printf "%s\n" "no" >&6; }
18909 fi
18910
18911
18912 fi
18913 if test -z "$ac_cv_path_PKG_CONFIG"; then
18914 ac_pt_PKG_CONFIG=$PKG_CONFIG
18915 # Extract the first word of "pkg-config", so it can be a program name with args.
18916 set dummy pkg-config; ac_word=$2
18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18918 printf %s "checking for $ac_word... " >&6; }
18919 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18920 then :
18921 printf %s "(cached) " >&6
18922 else $as_nop
18923 case $ac_pt_PKG_CONFIG in
18924 [\\/]* | ?:[\\/]*)
18925 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18926 ;;
18927 *)
18928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18929 for as_dir in $PATH
18930 do
18931 IFS=$as_save_IFS
18932 case $as_dir in #(((
18933 '') as_dir=./ ;;
18934 */) ;;
18935 *) as_dir=$as_dir/ ;;
18936 esac
18937 for ac_exec_ext in '' $ac_executable_extensions; do
18938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18939 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18941 break 2
18942 fi
18943 done
18944 done
18945 IFS=$as_save_IFS
18946
18947 ;;
18948 esac
18949 fi
18950 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18951 if test -n "$ac_pt_PKG_CONFIG"; then
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18953 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18954 else
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 printf "%s\n" "no" >&6; }
18957 fi
18958
18959 if test "x$ac_pt_PKG_CONFIG" = x; then
18960 PKG_CONFIG=""
18961 else
18962 case $cross_compiling:$ac_tool_warned in
18963 yes:)
18964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18966 ac_tool_warned=yes ;;
18967 esac
18968 PKG_CONFIG=$ac_pt_PKG_CONFIG
18969 fi
18970 else
18971 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18972 fi
18973
18974 fi
18975 if test -n "$PKG_CONFIG"; then
18976 _pkg_min_version=0.20
18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18978 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18979 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18981 printf "%s\n" "yes" >&6; }
18982 else
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984 printf "%s\n" "no" >&6; }
18985 PKG_CONFIG=""
18986 fi
18987 fi
18988
18989 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
18990 ac_ext=cpp
18991 ac_cpp='$CXXCPP $CPPFLAGS'
18992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18995 ac_success=no
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18997 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
18998 if test ${ax_cv_cxx_compile_cxx11+y}
18999 then :
19000 printf %s "(cached) " >&6
19001 else $as_nop
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004
19005
19006 // If the compiler admits that it is not ready for C++11, why torture it?
19007 // Hopefully, this will speed up the test.
19008
19009 #ifndef __cplusplus
19010
19011 #error "This is not a C++ compiler"
19012
19013 #elif __cplusplus < 201103L && !(defined _MSC_VER)
19014
19015 #error "This is not a C++11 compiler"
19016
19017 #else
19018
19019 namespace cxx11
19020 {
19021
19022 namespace test_static_assert
19023 {
19024
19025 template <typename T>
19026 struct check
19027 {
19028 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19029 };
19030
19031 }
19032
19033 namespace test_final_override
19034 {
19035
19036 struct Base
19037 {
19038 virtual void f() {}
19039 };
19040
19041 struct Derived : public Base
19042 {
19043 virtual void f() override {}
19044 };
19045
19046 }
19047
19048 namespace test_double_right_angle_brackets
19049 {
19050
19051 template < typename T >
19052 struct check {};
19053
19054 typedef check<void> single_type;
19055 typedef check<check<void>> double_type;
19056 typedef check<check<check<void>>> triple_type;
19057 typedef check<check<check<check<void>>>> quadruple_type;
19058
19059 }
19060
19061 namespace test_decltype
19062 {
19063
19064 int
19065 f()
19066 {
19067 int a = 1;
19068 decltype(a) b = 2;
19069 return a + b;
19070 }
19071
19072 }
19073
19074 namespace test_type_deduction
19075 {
19076
19077 template < typename T1, typename T2 >
19078 struct is_same
19079 {
19080 static const bool value = false;
19081 };
19082
19083 template < typename T >
19084 struct is_same<T, T>
19085 {
19086 static const bool value = true;
19087 };
19088
19089 template < typename T1, typename T2 >
19090 auto
19091 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19092 {
19093 return a1 + a2;
19094 }
19095
19096 int
19097 test(const int c, volatile int v)
19098 {
19099 static_assert(is_same<int, decltype(0)>::value == true, "");
19100 static_assert(is_same<int, decltype(c)>::value == false, "");
19101 static_assert(is_same<int, decltype(v)>::value == false, "");
19102 auto ac = c;
19103 auto av = v;
19104 auto sumi = ac + av + 'x';
19105 auto sumf = ac + av + 1.0;
19106 static_assert(is_same<int, decltype(ac)>::value == true, "");
19107 static_assert(is_same<int, decltype(av)>::value == true, "");
19108 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19109 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19110 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19111 return (sumf > 0.0) ? sumi : add(c, v);
19112 }
19113
19114 }
19115
19116 namespace test_noexcept
19117 {
19118
19119 int f() { return 0; }
19120 int g() noexcept { return 0; }
19121
19122 static_assert(noexcept(f()) == false, "");
19123 static_assert(noexcept(g()) == true, "");
19124
19125 }
19126
19127 namespace test_constexpr
19128 {
19129
19130 template < typename CharT >
19131 unsigned long constexpr
19132 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19133 {
19134 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19135 }
19136
19137 template < typename CharT >
19138 unsigned long constexpr
19139 strlen_c(const CharT *const s) noexcept
19140 {
19141 return strlen_c_r(s, 0UL);
19142 }
19143
19144 static_assert(strlen_c("") == 0UL, "");
19145 static_assert(strlen_c("1") == 1UL, "");
19146 static_assert(strlen_c("example") == 7UL, "");
19147 static_assert(strlen_c("another\0example") == 7UL, "");
19148
19149 }
19150
19151 namespace test_rvalue_references
19152 {
19153
19154 template < int N >
19155 struct answer
19156 {
19157 static constexpr int value = N;
19158 };
19159
19160 answer<1> f(int&) { return answer<1>(); }
19161 answer<2> f(const int&) { return answer<2>(); }
19162 answer<3> f(int&&) { return answer<3>(); }
19163
19164 void
19165 test()
19166 {
19167 int i = 0;
19168 const int c = 0;
19169 static_assert(decltype(f(i))::value == 1, "");
19170 static_assert(decltype(f(c))::value == 2, "");
19171 static_assert(decltype(f(0))::value == 3, "");
19172 }
19173
19174 }
19175
19176 namespace test_uniform_initialization
19177 {
19178
19179 struct test
19180 {
19181 static const int zero {};
19182 static const int one {1};
19183 };
19184
19185 static_assert(test::zero == 0, "");
19186 static_assert(test::one == 1, "");
19187
19188 }
19189
19190 namespace test_lambdas
19191 {
19192
19193 void
19194 test1()
19195 {
19196 auto lambda1 = [](){};
19197 auto lambda2 = lambda1;
19198 lambda1();
19199 lambda2();
19200 }
19201
19202 int
19203 test2()
19204 {
19205 auto a = [](int i, int j){ return i + j; }(1, 2);
19206 auto b = []() -> int { return '0'; }();
19207 auto c = [=](){ return a + b; }();
19208 auto d = [&](){ return c; }();
19209 auto e = [a, &b](int x) mutable {
19210 const auto identity = [](int y){ return y; };
19211 for (auto i = 0; i < a; ++i)
19212 a += b--;
19213 return x + identity(a + b);
19214 }(0);
19215 return a + b + c + d + e;
19216 }
19217
19218 int
19219 test3()
19220 {
19221 const auto nullary = [](){ return 0; };
19222 const auto unary = [](int x){ return x; };
19223 using nullary_t = decltype(nullary);
19224 using unary_t = decltype(unary);
19225 const auto higher1st = [](nullary_t f){ return f(); };
19226 const auto higher2nd = [unary](nullary_t f1){
19227 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19228 };
19229 return higher1st(nullary) + higher2nd(nullary)(unary);
19230 }
19231
19232 }
19233
19234 namespace test_variadic_templates
19235 {
19236
19237 template <int...>
19238 struct sum;
19239
19240 template <int N0, int... N1toN>
19241 struct sum<N0, N1toN...>
19242 {
19243 static constexpr auto value = N0 + sum<N1toN...>::value;
19244 };
19245
19246 template <>
19247 struct sum<>
19248 {
19249 static constexpr auto value = 0;
19250 };
19251
19252 static_assert(sum<>::value == 0, "");
19253 static_assert(sum<1>::value == 1, "");
19254 static_assert(sum<23>::value == 23, "");
19255 static_assert(sum<1, 2>::value == 3, "");
19256 static_assert(sum<5, 5, 11>::value == 21, "");
19257 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19258
19259 }
19260
19261 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19262 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19263 // because of this.
19264 namespace test_template_alias_sfinae
19265 {
19266
19267 struct foo {};
19268
19269 template<typename T>
19270 using member = typename T::member_type;
19271
19272 template<typename T>
19273 void func(...) {}
19274
19275 template<typename T>
19276 void func(member<T>*) {}
19277
19278 void test();
19279
19280 void test() { func<foo>(0); }
19281
19282 }
19283
19284 } // namespace cxx11
19285
19286 #endif // __cplusplus >= 201103L
19287
19288
19289
19290 _ACEOF
19291 if ac_fn_cxx_try_compile "$LINENO"
19292 then :
19293 ax_cv_cxx_compile_cxx11=yes
19294 else $as_nop
19295 ax_cv_cxx_compile_cxx11=no
19296 fi
19297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19298 fi
19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
19300 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
19301 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
19302 ac_success=yes
19303 fi
19304
19305 if test x$ac_success = xno; then
19306 for alternative in ${ax_cxx_compile_alternatives}; do
19307 switch="-std=gnu++${alternative}"
19308 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
19309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
19310 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
19311 if eval test \${$cachevar+y}
19312 then :
19313 printf %s "(cached) " >&6
19314 else $as_nop
19315 ac_save_CXX="$CXX"
19316 CXX="$CXX $switch"
19317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318 /* end confdefs.h. */
19319
19320
19321 // If the compiler admits that it is not ready for C++11, why torture it?
19322 // Hopefully, this will speed up the test.
19323
19324 #ifndef __cplusplus
19325
19326 #error "This is not a C++ compiler"
19327
19328 #elif __cplusplus < 201103L && !(defined _MSC_VER)
19329
19330 #error "This is not a C++11 compiler"
19331
19332 #else
19333
19334 namespace cxx11
19335 {
19336
19337 namespace test_static_assert
19338 {
19339
19340 template <typename T>
19341 struct check
19342 {
19343 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19344 };
19345
19346 }
19347
19348 namespace test_final_override
19349 {
19350
19351 struct Base
19352 {
19353 virtual void f() {}
19354 };
19355
19356 struct Derived : public Base
19357 {
19358 virtual void f() override {}
19359 };
19360
19361 }
19362
19363 namespace test_double_right_angle_brackets
19364 {
19365
19366 template < typename T >
19367 struct check {};
19368
19369 typedef check<void> single_type;
19370 typedef check<check<void>> double_type;
19371 typedef check<check<check<void>>> triple_type;
19372 typedef check<check<check<check<void>>>> quadruple_type;
19373
19374 }
19375
19376 namespace test_decltype
19377 {
19378
19379 int
19380 f()
19381 {
19382 int a = 1;
19383 decltype(a) b = 2;
19384 return a + b;
19385 }
19386
19387 }
19388
19389 namespace test_type_deduction
19390 {
19391
19392 template < typename T1, typename T2 >
19393 struct is_same
19394 {
19395 static const bool value = false;
19396 };
19397
19398 template < typename T >
19399 struct is_same<T, T>
19400 {
19401 static const bool value = true;
19402 };
19403
19404 template < typename T1, typename T2 >
19405 auto
19406 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19407 {
19408 return a1 + a2;
19409 }
19410
19411 int
19412 test(const int c, volatile int v)
19413 {
19414 static_assert(is_same<int, decltype(0)>::value == true, "");
19415 static_assert(is_same<int, decltype(c)>::value == false, "");
19416 static_assert(is_same<int, decltype(v)>::value == false, "");
19417 auto ac = c;
19418 auto av = v;
19419 auto sumi = ac + av + 'x';
19420 auto sumf = ac + av + 1.0;
19421 static_assert(is_same<int, decltype(ac)>::value == true, "");
19422 static_assert(is_same<int, decltype(av)>::value == true, "");
19423 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19424 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19425 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19426 return (sumf > 0.0) ? sumi : add(c, v);
19427 }
19428
19429 }
19430
19431 namespace test_noexcept
19432 {
19433
19434 int f() { return 0; }
19435 int g() noexcept { return 0; }
19436
19437 static_assert(noexcept(f()) == false, "");
19438 static_assert(noexcept(g()) == true, "");
19439
19440 }
19441
19442 namespace test_constexpr
19443 {
19444
19445 template < typename CharT >
19446 unsigned long constexpr
19447 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19448 {
19449 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19450 }
19451
19452 template < typename CharT >
19453 unsigned long constexpr
19454 strlen_c(const CharT *const s) noexcept
19455 {
19456 return strlen_c_r(s, 0UL);
19457 }
19458
19459 static_assert(strlen_c("") == 0UL, "");
19460 static_assert(strlen_c("1") == 1UL, "");
19461 static_assert(strlen_c("example") == 7UL, "");
19462 static_assert(strlen_c("another\0example") == 7UL, "");
19463
19464 }
19465
19466 namespace test_rvalue_references
19467 {
19468
19469 template < int N >
19470 struct answer
19471 {
19472 static constexpr int value = N;
19473 };
19474
19475 answer<1> f(int&) { return answer<1>(); }
19476 answer<2> f(const int&) { return answer<2>(); }
19477 answer<3> f(int&&) { return answer<3>(); }
19478
19479 void
19480 test()
19481 {
19482 int i = 0;
19483 const int c = 0;
19484 static_assert(decltype(f(i))::value == 1, "");
19485 static_assert(decltype(f(c))::value == 2, "");
19486 static_assert(decltype(f(0))::value == 3, "");
19487 }
19488
19489 }
19490
19491 namespace test_uniform_initialization
19492 {
19493
19494 struct test
19495 {
19496 static const int zero {};
19497 static const int one {1};
19498 };
19499
19500 static_assert(test::zero == 0, "");
19501 static_assert(test::one == 1, "");
19502
19503 }
19504
19505 namespace test_lambdas
19506 {
19507
19508 void
19509 test1()
19510 {
19511 auto lambda1 = [](){};
19512 auto lambda2 = lambda1;
19513 lambda1();
19514 lambda2();
19515 }
19516
19517 int
19518 test2()
19519 {
19520 auto a = [](int i, int j){ return i + j; }(1, 2);
19521 auto b = []() -> int { return '0'; }();
19522 auto c = [=](){ return a + b; }();
19523 auto d = [&](){ return c; }();
19524 auto e = [a, &b](int x) mutable {
19525 const auto identity = [](int y){ return y; };
19526 for (auto i = 0; i < a; ++i)
19527 a += b--;
19528 return x + identity(a + b);
19529 }(0);
19530 return a + b + c + d + e;
19531 }
19532
19533 int
19534 test3()
19535 {
19536 const auto nullary = [](){ return 0; };
19537 const auto unary = [](int x){ return x; };
19538 using nullary_t = decltype(nullary);
19539 using unary_t = decltype(unary);
19540 const auto higher1st = [](nullary_t f){ return f(); };
19541 const auto higher2nd = [unary](nullary_t f1){
19542 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19543 };
19544 return higher1st(nullary) + higher2nd(nullary)(unary);
19545 }
19546
19547 }
19548
19549 namespace test_variadic_templates
19550 {
19551
19552 template <int...>
19553 struct sum;
19554
19555 template <int N0, int... N1toN>
19556 struct sum<N0, N1toN...>
19557 {
19558 static constexpr auto value = N0 + sum<N1toN...>::value;
19559 };
19560
19561 template <>
19562 struct sum<>
19563 {
19564 static constexpr auto value = 0;
19565 };
19566
19567 static_assert(sum<>::value == 0, "");
19568 static_assert(sum<1>::value == 1, "");
19569 static_assert(sum<23>::value == 23, "");
19570 static_assert(sum<1, 2>::value == 3, "");
19571 static_assert(sum<5, 5, 11>::value == 21, "");
19572 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19573
19574 }
19575
19576 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19577 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19578 // because of this.
19579 namespace test_template_alias_sfinae
19580 {
19581
19582 struct foo {};
19583
19584 template<typename T>
19585 using member = typename T::member_type;
19586
19587 template<typename T>
19588 void func(...) {}
19589
19590 template<typename T>
19591 void func(member<T>*) {}
19592
19593 void test();
19594
19595 void test() { func<foo>(0); }
19596
19597 }
19598
19599 } // namespace cxx11
19600
19601 #endif // __cplusplus >= 201103L
19602
19603
19604
19605 _ACEOF
19606 if ac_fn_cxx_try_compile "$LINENO"
19607 then :
19608 eval $cachevar=yes
19609 else $as_nop
19610 eval $cachevar=no
19611 fi
19612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19613 CXX="$ac_save_CXX"
19614 fi
19615 eval ac_res=\$$cachevar
19616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19617 printf "%s\n" "$ac_res" >&6; }
19618 if eval test x\$$cachevar = xyes; then
19619 CXX="$CXX $switch"
19620 if test -n "$CXXCPP" ; then
19621 CXXCPP="$CXXCPP $switch"
19622 fi
19623 ac_success=yes
19624 break
19625 fi
19626 done
19627 fi
19628
19629 if test x$ac_success = xno; then
19630 for alternative in ${ax_cxx_compile_alternatives}; do
19631 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19632 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
19634 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
19635 if eval test \${$cachevar+y}
19636 then :
19637 printf %s "(cached) " >&6
19638 else $as_nop
19639 ac_save_CXX="$CXX"
19640 CXX="$CXX $switch"
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19643
19644
19645 // If the compiler admits that it is not ready for C++11, why torture it?
19646 // Hopefully, this will speed up the test.
19647
19648 #ifndef __cplusplus
19649
19650 #error "This is not a C++ compiler"
19651
19652 #elif __cplusplus < 201103L && !(defined _MSC_VER)
19653
19654 #error "This is not a C++11 compiler"
19655
19656 #else
19657
19658 namespace cxx11
19659 {
19660
19661 namespace test_static_assert
19662 {
19663
19664 template <typename T>
19665 struct check
19666 {
19667 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19668 };
19669
19670 }
19671
19672 namespace test_final_override
19673 {
19674
19675 struct Base
19676 {
19677 virtual void f() {}
19678 };
19679
19680 struct Derived : public Base
19681 {
19682 virtual void f() override {}
19683 };
19684
19685 }
19686
19687 namespace test_double_right_angle_brackets
19688 {
19689
19690 template < typename T >
19691 struct check {};
19692
19693 typedef check<void> single_type;
19694 typedef check<check<void>> double_type;
19695 typedef check<check<check<void>>> triple_type;
19696 typedef check<check<check<check<void>>>> quadruple_type;
19697
19698 }
19699
19700 namespace test_decltype
19701 {
19702
19703 int
19704 f()
19705 {
19706 int a = 1;
19707 decltype(a) b = 2;
19708 return a + b;
19709 }
19710
19711 }
19712
19713 namespace test_type_deduction
19714 {
19715
19716 template < typename T1, typename T2 >
19717 struct is_same
19718 {
19719 static const bool value = false;
19720 };
19721
19722 template < typename T >
19723 struct is_same<T, T>
19724 {
19725 static const bool value = true;
19726 };
19727
19728 template < typename T1, typename T2 >
19729 auto
19730 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19731 {
19732 return a1 + a2;
19733 }
19734
19735 int
19736 test(const int c, volatile int v)
19737 {
19738 static_assert(is_same<int, decltype(0)>::value == true, "");
19739 static_assert(is_same<int, decltype(c)>::value == false, "");
19740 static_assert(is_same<int, decltype(v)>::value == false, "");
19741 auto ac = c;
19742 auto av = v;
19743 auto sumi = ac + av + 'x';
19744 auto sumf = ac + av + 1.0;
19745 static_assert(is_same<int, decltype(ac)>::value == true, "");
19746 static_assert(is_same<int, decltype(av)>::value == true, "");
19747 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19748 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19749 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19750 return (sumf > 0.0) ? sumi : add(c, v);
19751 }
19752
19753 }
19754
19755 namespace test_noexcept
19756 {
19757
19758 int f() { return 0; }
19759 int g() noexcept { return 0; }
19760
19761 static_assert(noexcept(f()) == false, "");
19762 static_assert(noexcept(g()) == true, "");
19763
19764 }
19765
19766 namespace test_constexpr
19767 {
19768
19769 template < typename CharT >
19770 unsigned long constexpr
19771 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19772 {
19773 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19774 }
19775
19776 template < typename CharT >
19777 unsigned long constexpr
19778 strlen_c(const CharT *const s) noexcept
19779 {
19780 return strlen_c_r(s, 0UL);
19781 }
19782
19783 static_assert(strlen_c("") == 0UL, "");
19784 static_assert(strlen_c("1") == 1UL, "");
19785 static_assert(strlen_c("example") == 7UL, "");
19786 static_assert(strlen_c("another\0example") == 7UL, "");
19787
19788 }
19789
19790 namespace test_rvalue_references
19791 {
19792
19793 template < int N >
19794 struct answer
19795 {
19796 static constexpr int value = N;
19797 };
19798
19799 answer<1> f(int&) { return answer<1>(); }
19800 answer<2> f(const int&) { return answer<2>(); }
19801 answer<3> f(int&&) { return answer<3>(); }
19802
19803 void
19804 test()
19805 {
19806 int i = 0;
19807 const int c = 0;
19808 static_assert(decltype(f(i))::value == 1, "");
19809 static_assert(decltype(f(c))::value == 2, "");
19810 static_assert(decltype(f(0))::value == 3, "");
19811 }
19812
19813 }
19814
19815 namespace test_uniform_initialization
19816 {
19817
19818 struct test
19819 {
19820 static const int zero {};
19821 static const int one {1};
19822 };
19823
19824 static_assert(test::zero == 0, "");
19825 static_assert(test::one == 1, "");
19826
19827 }
19828
19829 namespace test_lambdas
19830 {
19831
19832 void
19833 test1()
19834 {
19835 auto lambda1 = [](){};
19836 auto lambda2 = lambda1;
19837 lambda1();
19838 lambda2();
19839 }
19840
19841 int
19842 test2()
19843 {
19844 auto a = [](int i, int j){ return i + j; }(1, 2);
19845 auto b = []() -> int { return '0'; }();
19846 auto c = [=](){ return a + b; }();
19847 auto d = [&](){ return c; }();
19848 auto e = [a, &b](int x) mutable {
19849 const auto identity = [](int y){ return y; };
19850 for (auto i = 0; i < a; ++i)
19851 a += b--;
19852 return x + identity(a + b);
19853 }(0);
19854 return a + b + c + d + e;
19855 }
19856
19857 int
19858 test3()
19859 {
19860 const auto nullary = [](){ return 0; };
19861 const auto unary = [](int x){ return x; };
19862 using nullary_t = decltype(nullary);
19863 using unary_t = decltype(unary);
19864 const auto higher1st = [](nullary_t f){ return f(); };
19865 const auto higher2nd = [unary](nullary_t f1){
19866 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19867 };
19868 return higher1st(nullary) + higher2nd(nullary)(unary);
19869 }
19870
19871 }
19872
19873 namespace test_variadic_templates
19874 {
19875
19876 template <int...>
19877 struct sum;
19878
19879 template <int N0, int... N1toN>
19880 struct sum<N0, N1toN...>
19881 {
19882 static constexpr auto value = N0 + sum<N1toN...>::value;
19883 };
19884
19885 template <>
19886 struct sum<>
19887 {
19888 static constexpr auto value = 0;
19889 };
19890
19891 static_assert(sum<>::value == 0, "");
19892 static_assert(sum<1>::value == 1, "");
19893 static_assert(sum<23>::value == 23, "");
19894 static_assert(sum<1, 2>::value == 3, "");
19895 static_assert(sum<5, 5, 11>::value == 21, "");
19896 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19897
19898 }
19899
19900 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19901 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19902 // because of this.
19903 namespace test_template_alias_sfinae
19904 {
19905
19906 struct foo {};
19907
19908 template<typename T>
19909 using member = typename T::member_type;
19910
19911 template<typename T>
19912 void func(...) {}
19913
19914 template<typename T>
19915 void func(member<T>*) {}
19916
19917 void test();
19918
19919 void test() { func<foo>(0); }
19920
19921 }
19922
19923 } // namespace cxx11
19924
19925 #endif // __cplusplus >= 201103L
19926
19927
19928
19929 _ACEOF
19930 if ac_fn_cxx_try_compile "$LINENO"
19931 then :
19932 eval $cachevar=yes
19933 else $as_nop
19934 eval $cachevar=no
19935 fi
19936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19937 CXX="$ac_save_CXX"
19938 fi
19939 eval ac_res=\$$cachevar
19940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19941 printf "%s\n" "$ac_res" >&6; }
19942 if eval test x\$$cachevar = xyes; then
19943 CXX="$CXX $switch"
19944 if test -n "$CXXCPP" ; then
19945 CXXCPP="$CXXCPP $switch"
19946 fi
19947 ac_success=yes
19948 break
19949 fi
19950 done
19951 if test x$ac_success = xyes; then
19952 break
19953 fi
19954 done
19955 fi
19956 ac_ext=cpp
19957 ac_cpp='$CXXCPP $CPPFLAGS'
19958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19961
19962 if test x$ax_cxx_compile_cxx11_required = xtrue; then
19963 if test x$ac_success = xno; then
19964 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19965 fi
19966 fi
19967 if test x$ac_success = xno; then
19968 HAVE_CXX11=0
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19970 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
19971 else
19972 HAVE_CXX11=1
19973
19974 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
19975
19976 fi
19977
19978
19979
19980
19981
19982
19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
19984 printf %s "checking for __attribute__((format))... " >&6; }
19985 if test ${ax_cv_have_func_attribute_format+y}
19986 then :
19987 printf %s "(cached) " >&6
19988 else $as_nop
19989
19990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
19992
19993
19994 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
19995
19996 int
19997 main (void)
19998 {
19999
20000 ;
20001 return 0;
20002 }
20003
20004 _ACEOF
20005 if ac_fn_cxx_try_link "$LINENO"
20006 then :
20007 if test -s conftest.err
20008 then :
20009 ax_cv_have_func_attribute_format=no
20010 else $as_nop
20011 ax_cv_have_func_attribute_format=yes
20012 fi
20013 else $as_nop
20014 ax_cv_have_func_attribute_format=no
20015 fi
20016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20017 conftest$ac_exeext conftest.$ac_ext
20018
20019 fi
20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
20021 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
20022
20023 if test yes = $ax_cv_have_func_attribute_format
20024 then :
20025
20026 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
20027
20028 fi
20029
20030
20031
20032
20033
20034
20035
20036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
20037 printf %s "checking for __attribute__((fallthrough))... " >&6; }
20038 if test ${ax_cv_have_gcc_attribute_falltrough+y}
20039 then :
20040 printf %s "(cached) " >&6
20041 else $as_nop
20042
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045
20046 void foo(int &i)
20047 {
20048 switch (i)
20049 {
20050 case 0:
20051 i += 1;
20052 __attribute__((fallthrough));
20053 default:
20054 i += 1;
20055 }
20056 }
20057
20058 int
20059 main (void)
20060 {
20061
20062 ;
20063 return 0;
20064 }
20065
20066 _ACEOF
20067 if ac_fn_cxx_try_link "$LINENO"
20068 then :
20069 if test -s conftest.err
20070 then :
20071 ax_cv_have_gcc_attribute_falltrough=no
20072 else $as_nop
20073 ax_cv_have_gcc_attribute_falltrough=yes
20074 fi
20075 else $as_nop
20076 ax_cv_have_gcc_attribute_falltrough=no
20077 fi
20078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20079 conftest$ac_exeext conftest.$ac_ext
20080
20081 fi
20082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gcc_attribute_falltrough" >&5
20083 printf "%s\n" "$ax_cv_have_gcc_attribute_falltrough" >&6; }
20084
20085 if test yes = $ax_cv_have_gcc_attribute_falltrough
20086 then :
20087
20088 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
20089
20090 fi
20091
20092
20093
20094
20095
20096
20097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for [[clang::fallthrough]]" >&5
20098 printf %s "checking for [[clang::fallthrough]]... " >&6; }
20099 if test ${ax_cv_have_clang_attribute_falltrough+y}
20100 then :
20101 printf %s "(cached) " >&6
20102 else $as_nop
20103
20104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h. */
20106
20107 void foo(int &i)
20108 {
20109 switch (i)
20110 {
20111 case 0:
20112 i += 1;
20113 [[clang::fallthrough]];
20114 default:
20115 i += 1;
20116 }
20117 }
20118
20119 int
20120 main (void)
20121 {
20122
20123 ;
20124 return 0;
20125 }
20126
20127 _ACEOF
20128 if ac_fn_cxx_try_link "$LINENO"
20129 then :
20130 if test -s conftest.err
20131 then :
20132 ax_cv_have_clang_attribute_falltrough=no
20133 else $as_nop
20134 ax_cv_have_clang_attribute_falltrough=yes
20135 fi
20136 else $as_nop
20137 ax_cv_have_clang_attribute_falltrough=no
20138 fi
20139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20140 conftest$ac_exeext conftest.$ac_ext
20141
20142 fi
20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_clang_attribute_falltrough" >&5
20144 printf "%s\n" "$ax_cv_have_clang_attribute_falltrough" >&6; }
20145
20146 if test yes = $ax_cv_have_clang_attribute_falltrough
20147 then :
20148
20149 printf "%s\n" "#define HAVE_CLANG_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
20150
20151 fi
20152
20153
20154
20155
20156
20157 # =================================
20158 # Libtool/Version Makefile settings
20159 # =================================
20160 MWAW_MAJOR_VERSION=0
20161
20162 MWAW_MINOR_VERSION=3
20163
20164 MWAW_MICRO_VERSION=22
20165
20166 MWAW_VERSION=0.3.22
20167
20168 # AC_SUBST(LT_RELEASE, [libmwaw_version_major.libmwaw_version_minor])
20169 LT_CURRENT=`expr 100 '*' 0 + 3`
20170 # For 1.0.0 comment the first line and uncomment the second
20171 LT_AGE=0
20172 # LT_AGE=libmwaw_version_minor
20173
20174 LT_REVISION=22
20175
20176
20177
20178 # ==========================
20179 # Platform check for windows
20180 # ==========================
20181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
20182 printf %s "checking for native Win32... " >&6; }
20183 case $host in #(
20184 *-*-mingw*) :
20185
20186 native_win32=yes
20187 if test -n "$ac_tool_prefix"; then
20188 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20189 set dummy ${ac_tool_prefix}windres; ac_word=$2
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20191 printf %s "checking for $ac_word... " >&6; }
20192 if test ${ac_cv_prog_WINDRES+y}
20193 then :
20194 printf %s "(cached) " >&6
20195 else $as_nop
20196 if test -n "$WINDRES"; then
20197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20198 else
20199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200 for as_dir in $PATH
20201 do
20202 IFS=$as_save_IFS
20203 case $as_dir in #(((
20204 '') as_dir=./ ;;
20205 */) ;;
20206 *) as_dir=$as_dir/ ;;
20207 esac
20208 for ac_exec_ext in '' $ac_executable_extensions; do
20209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20210 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20212 break 2
20213 fi
20214 done
20215 done
20216 IFS=$as_save_IFS
20217
20218 fi
20219 fi
20220 WINDRES=$ac_cv_prog_WINDRES
20221 if test -n "$WINDRES"; then
20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20223 printf "%s\n" "$WINDRES" >&6; }
20224 else
20225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20226 printf "%s\n" "no" >&6; }
20227 fi
20228
20229
20230 fi
20231 if test -z "$ac_cv_prog_WINDRES"; then
20232 ac_ct_WINDRES=$WINDRES
20233 # Extract the first word of "windres", so it can be a program name with args.
20234 set dummy windres; ac_word=$2
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20236 printf %s "checking for $ac_word... " >&6; }
20237 if test ${ac_cv_prog_ac_ct_WINDRES+y}
20238 then :
20239 printf %s "(cached) " >&6
20240 else $as_nop
20241 if test -n "$ac_ct_WINDRES"; then
20242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20243 else
20244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20245 for as_dir in $PATH
20246 do
20247 IFS=$as_save_IFS
20248 case $as_dir in #(((
20249 '') as_dir=./ ;;
20250 */) ;;
20251 *) as_dir=$as_dir/ ;;
20252 esac
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20255 ac_cv_prog_ac_ct_WINDRES="windres"
20256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20257 break 2
20258 fi
20259 done
20260 done
20261 IFS=$as_save_IFS
20262
20263 fi
20264 fi
20265 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20266 if test -n "$ac_ct_WINDRES"; then
20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20268 printf "%s\n" "$ac_ct_WINDRES" >&6; }
20269 else
20270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20271 printf "%s\n" "no" >&6; }
20272 fi
20273
20274 if test "x$ac_ct_WINDRES" = x; then
20275 WINDRES=""
20276 else
20277 case $cross_compiling:$ac_tool_warned in
20278 yes:)
20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20281 ac_tool_warned=yes ;;
20282 esac
20283 WINDRES=$ac_ct_WINDRES
20284 fi
20285 else
20286 WINDRES="$ac_cv_prog_WINDRES"
20287 fi
20288
20289 LIBMWAW_WIN32_RESOURCE=libmwaw-win32res.lo
20290 LIBMWAW_STREAM_WIN32_RESOURCE=libmwaw-stream-win32res.lo
20291 MWAW2CSV_WIN32_RESOURCE=mwaw2csv-win32res.lo
20292 MWAW2HTML_WIN32_RESOURCE=mwaw2html-win32res.lo
20293 MWAW2RAW_WIN32_RESOURCE=mwaw2raw-win32res.lo
20294 MWAW2SVG_WIN32_RESOURCE=mwaw2cvg-win32res.lo
20295 MWAW2TEXT_WIN32_RESOURCE=mwaw2text-win32res.lo
20296 MWAWFILE_WIN32_RESOURCE=mwawFile-win32res.lo
20297 MWAWZIP_WIN32_RESOURCE=mwawZip-win32res.lo
20298 ;; #(
20299 *) :
20300
20301 native_win32=no
20302 LIBMWAW_WIN32_RESOURCE=
20303 LIBMWAW_STREAM_WIN32_RESOURCE=
20304 MWAW2CSV_WIN32_RESOURCE=
20305 MWAW2HTML_WIN32_RESOURCE=
20306 MWAW2RAW_WIN32_RESOURCE=
20307 MWAW2SVG_WIN32_RESOURCE=
20308 MWAW2TEXT_WIN32_RESOURCE=
20309 MWAWFILE_WIN32_RESOURCE=
20310 MWAWZIP_WIN32_RESOURCE=
20311
20312 ;;
20313 esac
20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
20315 printf "%s\n" "$native_win32" >&6; }
20316 if test "x$native_win32" = "xyes"; then
20317 OS_WIN32_TRUE=
20318 OS_WIN32_FALSE='#'
20319 else
20320 OS_WIN32_TRUE='#'
20321 OS_WIN32_FALSE=
20322 fi
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
20335 printf %s "checking for Win32 platform in general... " >&6; }
20336 case $host in #(
20337 *-*-mingw*|*-*-cygwin*) :
20338 platform_win32=yes ;; #(
20339 *) :
20340 platform_win32=no
20341 ;;
20342 esac
20343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
20344 printf "%s\n" "$platform_win32" >&6; }
20345 if test "x$platform_win32" = "xyes"; then
20346 PLATFORM_WIN32_TRUE=
20347 PLATFORM_WIN32_FALSE='#'
20348 else
20349 PLATFORM_WIN32_TRUE='#'
20350 PLATFORM_WIN32_FALSE=
20351 fi
20352
20353
20354 if test "x$platform_win32" = "xyes"
20355 then :
20356
20357 else $as_nop
20358
20359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
20360 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
20361 saved_CXXFLAGS="$CXXFLAGS"
20362 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20365
20366 int
20367 main (void)
20368 {
20369
20370 ;
20371 return 0;
20372 }
20373 _ACEOF
20374 if ac_fn_cxx_try_compile "$LINENO"
20375 then :
20376
20377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20378 printf "%s\n" "yes" >&6; }
20379 CXXFLAGS="$CXXFLAGS -DLIBMWAW_VISIBILITY"
20380
20381 else $as_nop
20382
20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20384 printf "%s\n" "no" >&6; }
20385 CXXFLAGS="$saved_CXXFLAGS"
20386
20387
20388 fi
20389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20390
20391
20392 fi
20393
20394 # Check whether --enable-def-files was given.
20395 if test ${enable_def_files+y}
20396 then :
20397 enableval=$enable_def_files; enable_def_files="$enableval"
20398 else $as_nop
20399 enable_def_files=no
20400
20401 fi
20402
20403 if test "x$enable_def_files" = "xyes" -a "x$native_win32" = "xyes"; then
20404 DEF_FILES_TRUE=
20405 DEF_FILES_FALSE='#'
20406 else
20407 DEF_FILES_TRUE='#'
20408 DEF_FILES_FALSE=
20409 fi
20410
20411
20412 # =========================
20413 # Platform check for darwin
20414 # =========================
20415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X) platform" >&5
20416 printf %s "checking for Darwin (Mac OS X) platform... " >&6; }
20417 case $host in #(
20418 *-*-darwin*) :
20419 platform_darwin=yes ;; #(
20420 *) :
20421 platform_darwin=no
20422 ;;
20423 esac
20424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_darwin" >&5
20425 printf "%s\n" "$platform_darwin" >&6; }
20426 if test "x$platform_darwin" = "xyes"; then
20427 PLATFORM_DARWIN_TRUE=
20428 PLATFORM_DARWIN_FALSE='#'
20429 else
20430 PLATFORM_DARWIN_TRUE='#'
20431 PLATFORM_DARWIN_FALSE=
20432 fi
20433
20434
20435 # ================
20436 # Check for cflags
20437 # ================
20438 # Check whether --enable-werror was given.
20439 if test ${enable_werror+y}
20440 then :
20441 enableval=$enable_werror; enable_werror="$enableval"
20442 else $as_nop
20443 enable_werror=no
20444
20445 fi
20446
20447 if test x"$enable_werror" != "xno"
20448 then :
20449
20450 CFLAGS="$CFLAGS -Werror"
20451 CXXFLAGS="$CXXFLAGS -Werror"
20452
20453 fi
20454 # Check whether --enable-weffc was given.
20455 if test ${enable_weffc+y}
20456 then :
20457 enableval=$enable_weffc; enable_weffc="$enableval"
20458 else $as_nop
20459 enable_weffc=yes
20460
20461 fi
20462
20463 # Check whether --enable-wparanoic was given.
20464 if test ${enable_wparanoic+y}
20465 then :
20466 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
20467 else $as_nop
20468 enable_wparanoic=no
20469
20470 fi
20471
20472 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
20473 # is used when compiling for Win32 with gcc.
20474 if test "x$native_win32" = "xyes"
20475 then :
20476
20477 if test -n "$ac_tool_prefix"; then
20478 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20479 set dummy ${ac_tool_prefix}windres; ac_word=$2
20480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20481 printf %s "checking for $ac_word... " >&6; }
20482 if test ${ac_cv_prog_WINDRES+y}
20483 then :
20484 printf %s "(cached) " >&6
20485 else $as_nop
20486 if test -n "$WINDRES"; then
20487 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20488 else
20489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20490 for as_dir in $PATH
20491 do
20492 IFS=$as_save_IFS
20493 case $as_dir in #(((
20494 '') as_dir=./ ;;
20495 */) ;;
20496 *) as_dir=$as_dir/ ;;
20497 esac
20498 for ac_exec_ext in '' $ac_executable_extensions; do
20499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20500 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20502 break 2
20503 fi
20504 done
20505 done
20506 IFS=$as_save_IFS
20507
20508 fi
20509 fi
20510 WINDRES=$ac_cv_prog_WINDRES
20511 if test -n "$WINDRES"; then
20512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20513 printf "%s\n" "$WINDRES" >&6; }
20514 else
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20516 printf "%s\n" "no" >&6; }
20517 fi
20518
20519
20520 fi
20521 if test -z "$ac_cv_prog_WINDRES"; then
20522 ac_ct_WINDRES=$WINDRES
20523 # Extract the first word of "windres", so it can be a program name with args.
20524 set dummy windres; ac_word=$2
20525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20526 printf %s "checking for $ac_word... " >&6; }
20527 if test ${ac_cv_prog_ac_ct_WINDRES+y}
20528 then :
20529 printf %s "(cached) " >&6
20530 else $as_nop
20531 if test -n "$ac_ct_WINDRES"; then
20532 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20533 else
20534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535 for as_dir in $PATH
20536 do
20537 IFS=$as_save_IFS
20538 case $as_dir in #(((
20539 '') as_dir=./ ;;
20540 */) ;;
20541 *) as_dir=$as_dir/ ;;
20542 esac
20543 for ac_exec_ext in '' $ac_executable_extensions; do
20544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20545 ac_cv_prog_ac_ct_WINDRES="windres"
20546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20547 break 2
20548 fi
20549 done
20550 done
20551 IFS=$as_save_IFS
20552
20553 fi
20554 fi
20555 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20556 if test -n "$ac_ct_WINDRES"; then
20557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20558 printf "%s\n" "$ac_ct_WINDRES" >&6; }
20559 else
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 printf "%s\n" "no" >&6; }
20562 fi
20563
20564 if test "x$ac_ct_WINDRES" = x; then
20565 WINDRES=""
20566 else
20567 case $cross_compiling:$ac_tool_warned in
20568 yes:)
20569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20571 ac_tool_warned=yes ;;
20572 esac
20573 WINDRES=$ac_ct_WINDRES
20574 fi
20575 else
20576 WINDRES="$ac_cv_prog_WINDRES"
20577 fi
20578
20579 if test x"$GCC" = xyes
20580 then :
20581
20582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
20583 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
20584 if test -z "$ac_cv_prog_CC"
20585 then :
20586
20587 our_gcc="$CC"
20588
20589 else $as_nop
20590
20591 our_gcc="$ac_cv_prog_CC"
20592
20593 fi
20594 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
20595 then :
20596
20597 msnative_struct="-mms-bitfields"
20598 CFLAGS="$CFLAGS $msnative_struct"
20599 CXXFLAGS="$CXXFLAGS $msnative_struct"
20600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
20601 printf "%s\n" "${msnative_struct}" >&6; }
20602
20603 else $as_nop
20604
20605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
20606 printf "%s\n" "no way" >&6; }
20607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
20608 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
20609
20610 fi
20611
20612 fi
20613 CFLAGS="$CFLAGS -Wall -pedantic"
20614 CXXFLAGS="$CXXFLAGS -Wall -pedantic"
20615
20616 else $as_nop
20617
20618 if test x"$GCC" = xyes
20619 then :
20620
20621 # clang or gcc, check if the compiler is clang
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20624
20625 int
20626 main (void)
20627 {
20628 #ifndef __clang__
20629 not clang
20630 #endif
20631
20632 ;
20633 return 0;
20634 }
20635 _ACEOF
20636 if ac_fn_cxx_try_compile "$LINENO"
20637 then :
20638 CLANG=yes
20639 else $as_nop
20640 CLANG=no
20641 fi
20642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20643 # Be tough with warnings and produce less careless code
20644 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
20645 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
20646 if test x"$enable_weffc" != "xno"
20647 then :
20648
20649 CXXFLAGS="$CXXFLAGS -Weffc++"
20650
20651 fi
20652 if test x"$enable_wparanoic" != "xno"
20653 then :
20654
20655 # uncomment the 5 following comments to compile with Weverything
20656 #AS_IF([test x"$CLANG" = "xyes"], [
20657 # CXXFLAGS="$CXXFLAGS -Weverything -Wno-padded"
20658 # ],
20659 # [
20660 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
20661 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
20662 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
20663 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
20664 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
20665 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
20666 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
20667 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
20668 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
20669 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
20670 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
20671 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
20672 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
20673 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
20674 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
20675 # ])
20676
20677 fi
20678
20679 fi
20680
20681 fi
20682
20683
20684 # ============
20685 # Debug switch
20686 # ============
20687 # Check whether --enable-debug was given.
20688 if test ${enable_debug+y}
20689 then :
20690 enableval=$enable_debug; enable_debug="$enableval"
20691 else $as_nop
20692 enable_debug=no
20693
20694 fi
20695
20696 # Check whether --enable-full-debug was given.
20697 if test ${enable_full_debug+y}
20698 then :
20699 enableval=$enable_full_debug; enable_full_debug="$enableval"
20700 else $as_nop
20701 enable_full_debug=no
20702
20703 fi
20704
20705 if test "x$enable_full_debug" = "xyes"
20706 then :
20707 DEBUG_CXXFLAGS="-DDEBUG -DDEBUG_WITH_FILES -g"
20708 else $as_nop
20709 if test "x$enable_debug" = "xyes"
20710 then :
20711 DEBUG_CXXFLAGS="-DDEBUG -g"
20712 else $as_nop
20713 DEBUG_CXXFLAGS="-DNDEBUG"
20714 fi
20715
20716
20717 fi
20718
20719
20720 # ============
20721 # Static tools
20722 # ============
20723 # Check whether --enable-static-tools was given.
20724 if test ${enable_static_tools+y}
20725 then :
20726 enableval=$enable_static_tools; enable_static_tools="$enableval"
20727 else $as_nop
20728 enable_static_tools=no
20729
20730 fi
20731
20732 if test "x$enable_static_tools" = "xyes"
20733 then :
20734
20735 enable_static="yes"
20736
20737 else $as_nop
20738
20739 # Check whether --enable-static was given.
20740 if test ${enable_static+y}
20741 then :
20742 enableval=$enable_static; p=${PACKAGE-default}
20743 case $enableval in
20744 yes) enable_static=yes ;;
20745 no) enable_static=no ;;
20746 *)
20747 enable_static=no
20748 # Look at the argument we got. We use all the common list separators.
20749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
20750 for pkg in $enableval; do
20751 IFS=$lt_save_ifs
20752 if test "X$pkg" = "X$p"; then
20753 enable_static=yes
20754 fi
20755 done
20756 IFS=$lt_save_ifs
20757 ;;
20758 esac
20759 else $as_nop
20760 enable_static=no
20761 fi
20762
20763
20764
20765
20766
20767
20768
20769 fi
20770 if test "x$enable_static_tools" = "xyes"; then
20771 STATIC_TOOLS_TRUE=
20772 STATIC_TOOLS_FALSE='#'
20773 else
20774 STATIC_TOOLS_TRUE='#'
20775 STATIC_TOOLS_FALSE=
20776 fi
20777
20778
20779 # =========
20780 # check for file extended attribute functions
20781 # =========
20782 XATTR_LIBS=
20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended file system attributes" >&5
20784 printf %s "checking for extended file system attributes... " >&6; }
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20787
20788 #include <sys/xattr.h>
20789 int
20790 main (void)
20791 {
20792 getxattr("/tmp/toto", "com.apple.FinderInfo", 0, 0, 0, XATTR_SHOWCOMPRESSION);
20793
20794 ;
20795 return 0;
20796 }
20797
20798 _ACEOF
20799 if ac_fn_cxx_try_compile "$LINENO"
20800 then :
20801
20802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, find Darwin getxattr" >&5
20803 printf "%s\n" "yes, find Darwin getxattr" >&6; }
20804 XATTR_CFLAGS="-DWITH_EXTENDED_FS=1"
20805
20806 else $as_nop
20807
20808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20810
20811 #include <sys/types.h>
20812 #include <sys/xattr.h>
20813 int
20814 main (void)
20815 {
20816 getxattr("/tmp/toto", "com.apple.FinderInfo", 0, 0);
20817
20818 ;
20819 return 0;
20820 }
20821
20822 _ACEOF
20823 if ac_fn_cxx_try_compile "$LINENO"
20824 then :
20825
20826 # on some system, we must link with -lgnu, so check if we can link
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20829
20830 #include <sys/types.h>
20831 #include <sys/xattr.h>
20832 int
20833 main (void)
20834 {
20835 getxattr("/tmp/toto", "com.apple.FinderInfo", 0, 0);
20836
20837 ;
20838 return 0;
20839 }
20840
20841 _ACEOF
20842 if ac_fn_cxx_try_link "$LINENO"
20843 then :
20844
20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, find Linux getxattr" >&5
20846 printf "%s\n" "yes, find Linux getxattr" >&6; }
20847 XATTR_CFLAGS="-DWITH_EXTENDED_FS=2"
20848
20849 else $as_nop
20850
20851 saved_LDFLAGS="$LDFLAGS"
20852 LDFLAGS="$LDFLAGS -lgnu"
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20855
20856 #include <sys/types.h>
20857 #include <sys/xattr.h>
20858 int
20859 main (void)
20860 {
20861 getxattr("/tmp/toto", "com.apple.FinderInfo", 0, 0);
20862
20863 ;
20864 return 0;
20865 }
20866
20867 _ACEOF
20868 if ac_fn_cxx_try_link "$LINENO"
20869 then :
20870
20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, find Linux getxattr with -lgnu" >&5
20872 printf "%s\n" "yes, find Linux getxattr with -lgnu" >&6; }
20873 XATTR_CFLAGS="-DWITH_EXTENDED_FS=2"
20874 XATTR_LIBS="-lgnu"
20875
20876 else $as_nop
20877
20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, find Linux getxattr but no sure how to link the executable" >&5
20879 printf "%s\n" "no, find Linux getxattr but no sure how to link the executable" >&6; }
20880 XATTR_CFLAGS="-DWITH_EXTENDED_FS=0"
20881
20882 fi
20883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20884 conftest$ac_exeext conftest.$ac_ext
20885 LDFLAGS="$saved_LDFLAGS"
20886
20887 fi
20888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20889 conftest$ac_exeext conftest.$ac_ext
20890
20891 else $as_nop
20892
20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20894 printf "%s\n" "no" >&6; }
20895 XATTR_CFLAGS="-DWITH_EXTENDED_FS=0"
20896
20897 fi
20898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20899
20900 fi
20901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20902
20903
20904
20905 # =========
20906 # Find zlib
20907 # =========
20908 # Check whether --enable-zip was given.
20909 if test ${enable_zip+y}
20910 then :
20911 enableval=$enable_zip; with_zip="$enableval"
20912 else $as_nop
20913 with_zip=yes
20914
20915 fi
20916
20917 if test "x$with_zip" != "xno"; then
20918
20919 pkg_failed=no
20920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
20921 printf %s "checking for zlib... " >&6; }
20922
20923 if test -n "$ZLIB_CFLAGS"; then
20924 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20925 elif test -n "$PKG_CONFIG"; then
20926 if test -n "$PKG_CONFIG" && \
20927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20928 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20929 ac_status=$?
20930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20931 test $ac_status = 0; }; then
20932 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20933 test "x$?" != "x0" && pkg_failed=yes
20934 else
20935 pkg_failed=yes
20936 fi
20937 else
20938 pkg_failed=untried
20939 fi
20940 if test -n "$ZLIB_LIBS"; then
20941 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20942 elif test -n "$PKG_CONFIG"; then
20943 if test -n "$PKG_CONFIG" && \
20944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20945 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20946 ac_status=$?
20947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20948 test $ac_status = 0; }; then
20949 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20950 test "x$?" != "x0" && pkg_failed=yes
20951 else
20952 pkg_failed=yes
20953 fi
20954 else
20955 pkg_failed=untried
20956 fi
20957
20958
20959
20960 if test $pkg_failed = yes; then
20961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20962 printf "%s\n" "no" >&6; }
20963
20964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20965 _pkg_short_errors_supported=yes
20966 else
20967 _pkg_short_errors_supported=no
20968 fi
20969 if test $_pkg_short_errors_supported = yes; then
20970 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20971 else
20972 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20973 fi
20974 # Put the nasty error message in config.log where it belongs
20975 echo "$ZLIB_PKG_ERRORS" >&5
20976
20977 as_fn_error $? "Package requirements (zlib) were not met:
20978
20979 $ZLIB_PKG_ERRORS
20980
20981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20982 installed software in a non-standard prefix.
20983
20984 Alternatively, you may set the environment variables ZLIB_CFLAGS
20985 and ZLIB_LIBS to avoid the need to call pkg-config.
20986 See the pkg-config man page for more details." "$LINENO" 5
20987 elif test $pkg_failed = untried; then
20988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20989 printf "%s\n" "no" >&6; }
20990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20991 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20992 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20993 is in your PATH or set the PKG_CONFIG environment variable to the full
20994 path to pkg-config.
20995
20996 Alternatively, you may set the environment variables ZLIB_CFLAGS
20997 and ZLIB_LIBS to avoid the need to call pkg-config.
20998 See the pkg-config man page for more details.
20999
21000 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21001 See \`config.log' for more details" "$LINENO" 5; }
21002 else
21003 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
21004 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
21005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21006 printf "%s\n" "yes" >&6; }
21007
21008 fi
21009 else
21010 ZLIB_CFLAGS=
21011 ZLIB_LIBS=
21012 fi
21013
21014
21015 if test "x$with_zip" != "xno"; then
21016 WITH_LIBMWAW_ZIP_TRUE=
21017 WITH_LIBMWAW_ZIP_FALSE='#'
21018 else
21019 WITH_LIBMWAW_ZIP_TRUE='#'
21020 WITH_LIBMWAW_ZIP_FALSE=
21021 fi
21022
21023 # ====================
21024 # Find librevenge
21025 # ====================
21026
21027 pkg_failed=no
21028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-0.0 " >&5
21029 printf %s "checking for librevenge-0.0 ... " >&6; }
21030
21031 if test -n "$REVENGE_CFLAGS"; then
21032 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
21033 elif test -n "$PKG_CONFIG"; then
21034 if test -n "$PKG_CONFIG" && \
21035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-0.0 \""; } >&5
21036 ($PKG_CONFIG --exists --print-errors " librevenge-0.0 ") 2>&5
21037 ac_status=$?
21038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21039 test $ac_status = 0; }; then
21040 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags " librevenge-0.0 " 2>/dev/null`
21041 test "x$?" != "x0" && pkg_failed=yes
21042 else
21043 pkg_failed=yes
21044 fi
21045 else
21046 pkg_failed=untried
21047 fi
21048 if test -n "$REVENGE_LIBS"; then
21049 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
21050 elif test -n "$PKG_CONFIG"; then
21051 if test -n "$PKG_CONFIG" && \
21052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-0.0 \""; } >&5
21053 ($PKG_CONFIG --exists --print-errors " librevenge-0.0 ") 2>&5
21054 ac_status=$?
21055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21056 test $ac_status = 0; }; then
21057 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs " librevenge-0.0 " 2>/dev/null`
21058 test "x$?" != "x0" && pkg_failed=yes
21059 else
21060 pkg_failed=yes
21061 fi
21062 else
21063 pkg_failed=untried
21064 fi
21065
21066
21067
21068 if test $pkg_failed = yes; then
21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21070 printf "%s\n" "no" >&6; }
21071
21072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21073 _pkg_short_errors_supported=yes
21074 else
21075 _pkg_short_errors_supported=no
21076 fi
21077 if test $_pkg_short_errors_supported = yes; then
21078 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " librevenge-0.0 " 2>&1`
21079 else
21080 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " librevenge-0.0 " 2>&1`
21081 fi
21082 # Put the nasty error message in config.log where it belongs
21083 echo "$REVENGE_PKG_ERRORS" >&5
21084
21085 as_fn_error $? "Package requirements ( librevenge-0.0 ) were not met:
21086
21087 $REVENGE_PKG_ERRORS
21088
21089 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21090 installed software in a non-standard prefix.
21091
21092 Alternatively, you may set the environment variables REVENGE_CFLAGS
21093 and REVENGE_LIBS to avoid the need to call pkg-config.
21094 See the pkg-config man page for more details." "$LINENO" 5
21095 elif test $pkg_failed = untried; then
21096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21097 printf "%s\n" "no" >&6; }
21098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21100 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21101 is in your PATH or set the PKG_CONFIG environment variable to the full
21102 path to pkg-config.
21103
21104 Alternatively, you may set the environment variables REVENGE_CFLAGS
21105 and REVENGE_LIBS to avoid the need to call pkg-config.
21106 See the pkg-config man page for more details.
21107
21108 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21109 See \`config.log' for more details" "$LINENO" 5; }
21110 else
21111 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
21112 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
21113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21114 printf "%s\n" "yes" >&6; }
21115
21116 fi
21117
21118
21119
21120 # ====================
21121 # asan
21122 # ====================
21123 if test "x$native_win32" = "xyes"
21124 then :
21125 enable_asan=no
21126 else $as_nop
21127
21128 # Check whether --enable-asan was given.
21129 if test ${enable_asan+y}
21130 then :
21131 enableval=$enable_asan;
21132 fi
21133
21134
21135 if test "x$enable_asan" = "xyes"; then
21136 enable_asan=yes
21137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __asan_init in -lasan" >&5
21138 printf %s "checking for __asan_init in -lasan... " >&6; }
21139 if test ${ac_cv_lib_asan___asan_init+y}
21140 then :
21141 printf %s "(cached) " >&6
21142 else $as_nop
21143 ac_check_lib_save_LIBS=$LIBS
21144 LIBS="-lasan $LIBS"
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147
21148 namespace conftest {
21149 extern "C" int __asan_init ();
21150 }
21151 int
21152 main (void)
21153 {
21154 return conftest::__asan_init ();
21155 ;
21156 return 0;
21157 }
21158 _ACEOF
21159 if ac_fn_cxx_try_link "$LINENO"
21160 then :
21161 ac_cv_lib_asan___asan_init=yes
21162 else $as_nop
21163 ac_cv_lib_asan___asan_init=no
21164 fi
21165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21166 conftest$ac_exeext conftest.$ac_ext
21167 LIBS=$ac_check_lib_save_LIBS
21168 fi
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_init" >&5
21170 printf "%s\n" "$ac_cv_lib_asan___asan_init" >&6; }
21171 if test "x$ac_cv_lib_asan___asan_init" = xyes
21172 then :
21173 asan_lib=asan
21174 else $as_nop
21175 # linux
21176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __asan_init in -lclang_rt.asan_osx_dynamic" >&5
21177 printf %s "checking for __asan_init in -lclang_rt.asan_osx_dynamic... " >&6; }
21178 if test ${ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init+y}
21179 then :
21180 printf %s "(cached) " >&6
21181 else $as_nop
21182 ac_check_lib_save_LIBS=$LIBS
21183 LIBS="-lclang_rt.asan_osx_dynamic $LIBS"
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h. */
21186
21187 namespace conftest {
21188 extern "C" int __asan_init ();
21189 }
21190 int
21191 main (void)
21192 {
21193 return conftest::__asan_init ();
21194 ;
21195 return 0;
21196 }
21197 _ACEOF
21198 if ac_fn_cxx_try_link "$LINENO"
21199 then :
21200 ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init=yes
21201 else $as_nop
21202 ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init=no
21203 fi
21204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21205 conftest$ac_exeext conftest.$ac_ext
21206 LIBS=$ac_check_lib_save_LIBS
21207 fi
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init" >&5
21209 printf "%s\n" "$ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init" >&6; }
21210 if test "x$ac_cv_lib_clang_rt_asan_osx_dynamic___asan_init" = xyes
21211 then :
21212 asan_lib=clang_rt.asan_osx_dynamic
21213 else $as_nop
21214 # osx and clang
21215 as_fn_error $? "libasan not found, this is required for --enable-asan" "$LINENO" 5
21216
21217 fi
21218
21219
21220 fi
21221
21222 CXXFLAGS="${CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer"
21223 LDFLAGS="-l${asan_lib} ${LDFLAGS}"
21224 else
21225 enable_asan=no
21226 fi
21227
21228 fi
21229
21230 # =====
21231 # Tools
21232 # =====
21233 # Check whether --enable-tools was given.
21234 if test ${enable_tools+y}
21235 then :
21236 enableval=$enable_tools; enable_tools="$enableval"
21237 else $as_nop
21238 enable_tools=yes
21239
21240 fi
21241
21242 if test "x$enable_tools" = "xyes"; then
21243 BUILD_CONVERTISSORS_TRUE=
21244 BUILD_CONVERTISSORS_FALSE='#'
21245 else
21246 BUILD_CONVERTISSORS_TRUE='#'
21247 BUILD_CONVERTISSORS_FALSE=
21248 fi
21249
21250
21251 # =======
21252 # Fuzzers
21253 # =======
21254 # Check whether --enable-fuzzers was given.
21255 if test ${enable_fuzzers+y}
21256 then :
21257 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
21258 else $as_nop
21259 enable_fuzzers=no
21260
21261 fi
21262
21263 if test "x$enable_fuzzers" = "xyes"; then
21264 BUILD_FUZZERS_TRUE=
21265 BUILD_FUZZERS_FALSE='#'
21266 else
21267 BUILD_FUZZERS_TRUE='#'
21268 BUILD_FUZZERS_FALSE=
21269 fi
21270
21271
21272 if test "x$enable_tools" = "xyes" -o "x$enable_fuzzers" = "xyes"
21273 then :
21274
21275
21276 pkg_failed=no
21277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-generators-0.0 " >&5
21278 printf %s "checking for librevenge-generators-0.0 ... " >&6; }
21279
21280 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
21281 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
21282 elif test -n "$PKG_CONFIG"; then
21283 if test -n "$PKG_CONFIG" && \
21284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-generators-0.0 \""; } >&5
21285 ($PKG_CONFIG --exists --print-errors " librevenge-generators-0.0 ") 2>&5
21286 ac_status=$?
21287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21288 test $ac_status = 0; }; then
21289 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags " librevenge-generators-0.0 " 2>/dev/null`
21290 test "x$?" != "x0" && pkg_failed=yes
21291 else
21292 pkg_failed=yes
21293 fi
21294 else
21295 pkg_failed=untried
21296 fi
21297 if test -n "$REVENGE_GENERATORS_LIBS"; then
21298 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
21299 elif test -n "$PKG_CONFIG"; then
21300 if test -n "$PKG_CONFIG" && \
21301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-generators-0.0 \""; } >&5
21302 ($PKG_CONFIG --exists --print-errors " librevenge-generators-0.0 ") 2>&5
21303 ac_status=$?
21304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21305 test $ac_status = 0; }; then
21306 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs " librevenge-generators-0.0 " 2>/dev/null`
21307 test "x$?" != "x0" && pkg_failed=yes
21308 else
21309 pkg_failed=yes
21310 fi
21311 else
21312 pkg_failed=untried
21313 fi
21314
21315
21316
21317 if test $pkg_failed = yes; then
21318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 printf "%s\n" "no" >&6; }
21320
21321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21322 _pkg_short_errors_supported=yes
21323 else
21324 _pkg_short_errors_supported=no
21325 fi
21326 if test $_pkg_short_errors_supported = yes; then
21327 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " librevenge-generators-0.0 " 2>&1`
21328 else
21329 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " librevenge-generators-0.0 " 2>&1`
21330 fi
21331 # Put the nasty error message in config.log where it belongs
21332 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
21333
21334 as_fn_error $? "Package requirements ( librevenge-generators-0.0 ) were not met:
21335
21336 $REVENGE_GENERATORS_PKG_ERRORS
21337
21338 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21339 installed software in a non-standard prefix.
21340
21341 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21342 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21343 See the pkg-config man page for more details." "$LINENO" 5
21344 elif test $pkg_failed = untried; then
21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 printf "%s\n" "no" >&6; }
21347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21349 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21350 is in your PATH or set the PKG_CONFIG environment variable to the full
21351 path to pkg-config.
21352
21353 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21354 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21355 See the pkg-config man page for more details.
21356
21357 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21358 See \`config.log' for more details" "$LINENO" 5; }
21359 else
21360 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
21361 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
21362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21363 printf "%s\n" "yes" >&6; }
21364
21365 fi
21366
21367 pkg_failed=no
21368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-stream-0.0 " >&5
21369 printf %s "checking for librevenge-stream-0.0 ... " >&6; }
21370
21371 if test -n "$REVENGE_STREAM_CFLAGS"; then
21372 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
21373 elif test -n "$PKG_CONFIG"; then
21374 if test -n "$PKG_CONFIG" && \
21375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-stream-0.0 \""; } >&5
21376 ($PKG_CONFIG --exists --print-errors " librevenge-stream-0.0 ") 2>&5
21377 ac_status=$?
21378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21379 test $ac_status = 0; }; then
21380 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags " librevenge-stream-0.0 " 2>/dev/null`
21381 test "x$?" != "x0" && pkg_failed=yes
21382 else
21383 pkg_failed=yes
21384 fi
21385 else
21386 pkg_failed=untried
21387 fi
21388 if test -n "$REVENGE_STREAM_LIBS"; then
21389 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
21390 elif test -n "$PKG_CONFIG"; then
21391 if test -n "$PKG_CONFIG" && \
21392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" librevenge-stream-0.0 \""; } >&5
21393 ($PKG_CONFIG --exists --print-errors " librevenge-stream-0.0 ") 2>&5
21394 ac_status=$?
21395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21396 test $ac_status = 0; }; then
21397 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs " librevenge-stream-0.0 " 2>/dev/null`
21398 test "x$?" != "x0" && pkg_failed=yes
21399 else
21400 pkg_failed=yes
21401 fi
21402 else
21403 pkg_failed=untried
21404 fi
21405
21406
21407
21408 if test $pkg_failed = yes; then
21409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21410 printf "%s\n" "no" >&6; }
21411
21412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21413 _pkg_short_errors_supported=yes
21414 else
21415 _pkg_short_errors_supported=no
21416 fi
21417 if test $_pkg_short_errors_supported = yes; then
21418 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " librevenge-stream-0.0 " 2>&1`
21419 else
21420 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " librevenge-stream-0.0 " 2>&1`
21421 fi
21422 # Put the nasty error message in config.log where it belongs
21423 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
21424
21425 as_fn_error $? "Package requirements ( librevenge-stream-0.0 ) were not met:
21426
21427 $REVENGE_STREAM_PKG_ERRORS
21428
21429 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21430 installed software in a non-standard prefix.
21431
21432 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21433 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21434 See the pkg-config man page for more details." "$LINENO" 5
21435 elif test $pkg_failed = untried; then
21436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21437 printf "%s\n" "no" >&6; }
21438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21440 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21441 is in your PATH or set the PKG_CONFIG environment variable to the full
21442 path to pkg-config.
21443
21444 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21445 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21446 See the pkg-config man page for more details.
21447
21448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21449 See \`config.log' for more details" "$LINENO" 5; }
21450 else
21451 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
21452 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
21453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21454 printf "%s\n" "yes" >&6; }
21455
21456 fi
21457
21458 fi
21459
21460
21461
21462
21463
21464 # =============
21465 # Documentation
21466 # =============
21467
21468 # Check whether --with-docs was given.
21469 if test ${with_docs+y}
21470 then :
21471 withval=$with_docs; with_docs="$withval"
21472 else $as_nop
21473 if test "x$native_win32" = "xyes"
21474 then :
21475 with_docs=no
21476 else $as_nop
21477 with_docs=full
21478 fi
21479
21480 fi
21481
21482 if test "x$with_docs" != "xno"
21483 then :
21484
21485 # Extract the first word of "doxygen", so it can be a program name with args.
21486 set dummy doxygen; ac_word=$2
21487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21488 printf %s "checking for $ac_word... " >&6; }
21489 if test ${ac_cv_path_DOXYGEN+y}
21490 then :
21491 printf %s "(cached) " >&6
21492 else $as_nop
21493 case $DOXYGEN in
21494 [\\/]* | ?:[\\/]*)
21495 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
21496 ;;
21497 *)
21498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21499 for as_dir in $PATH
21500 do
21501 IFS=$as_save_IFS
21502 case $as_dir in #(((
21503 '') as_dir=./ ;;
21504 */) ;;
21505 *) as_dir=$as_dir/ ;;
21506 esac
21507 for ac_exec_ext in '' $ac_executable_extensions; do
21508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21509 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
21510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21511 break 2
21512 fi
21513 done
21514 done
21515 IFS=$as_save_IFS
21516
21517 ;;
21518 esac
21519 fi
21520 DOXYGEN=$ac_cv_path_DOXYGEN
21521 if test -n "$DOXYGEN"; then
21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
21523 printf "%s\n" "$DOXYGEN" >&6; }
21524 else
21525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526 printf "%s\n" "no" >&6; }
21527 fi
21528
21529
21530 if test -z "$DOXYGEN"
21531 then :
21532
21533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
21534 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
21536 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
21537 build_docs=no
21538
21539 else $as_nop
21540 build_docs="$with_docs"
21541 fi
21542
21543 else $as_nop
21544 build_docs=no
21545 fi
21546 if test "x$build_docs" != "xno"; then
21547 WITH_LIBMWAW_DOCS_TRUE=
21548 WITH_LIBMWAW_DOCS_FALSE='#'
21549 else
21550 WITH_LIBMWAW_DOCS_TRUE='#'
21551 WITH_LIBMWAW_DOCS_FALSE=
21552 fi
21553
21554 if test "x$build_docs" = "xapi"; then
21555 WITH_LIBMWAW_API_DOCS_TRUE=
21556 WITH_LIBMWAW_API_DOCS_FALSE='#'
21557 else
21558 WITH_LIBMWAW_API_DOCS_TRUE='#'
21559 WITH_LIBMWAW_API_DOCS_FALSE=
21560 fi
21561
21562
21563 # =====================
21564 # Prepare all .in files
21565 # =====================
21566 ac_config_files="$ac_config_files Makefile src/Makefile src/conv/Makefile src/conv/csv/Makefile src/conv/csv/mwaw2csv.rc src/conv/helper/Makefile src/conv/html/Makefile src/conv/html/mwaw2html.rc src/conv/raw/Makefile src/conv/raw/mwaw2raw.rc src/conv/svg/Makefile src/conv/svg/mwaw2svg.rc src/conv/text/Makefile src/conv/text/mwaw2text.rc src/tools/Makefile src/tools/file/Makefile src/tools/file/mwawFile.rc src/tools/zip/Makefile src/tools/zip/mwawZip.rc src/fuzz/Makefile src/lib/Makefile src/lib/libmwaw.rc docs/Makefile docs/doxygen/Makefile build/Makefile build/win32/Makefile inc/Makefile inc/libmwaw/Makefile libmwaw-$MWAW_MAJOR_VERSION.$MWAW_MINOR_VERSION.pc:libmwaw.pc.in libmwaw.spec libmwaw-zip"
21567
21568 cat >confcache <<\_ACEOF
21569 # This file is a shell script that caches the results of configure
21570 # tests run on this system so they can be shared between configure
21571 # scripts and configure runs, see configure's option --config-cache.
21572 # It is not useful on other systems. If it contains results you don't
21573 # want to keep, you may remove or edit it.
21574 #
21575 # config.status only pays attention to the cache file if you give it
21576 # the --recheck option to rerun configure.
21577 #
21578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21580 # following values.
21581
21582 _ACEOF
21583
21584 # The following way of writing the cache mishandles newlines in values,
21585 # but we know of no workaround that is simple, portable, and efficient.
21586 # So, we kill variables containing newlines.
21587 # Ultrix sh set writes to stderr and can't be redirected directly,
21588 # and sets the high bit in the cache file unless we assign to the vars.
21589 (
21590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21591 eval ac_val=\$$ac_var
21592 case $ac_val in #(
21593 *${as_nl}*)
21594 case $ac_var in #(
21595 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21596 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21597 esac
21598 case $ac_var in #(
21599 _ | IFS | as_nl) ;; #(
21600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21601 *) { eval $ac_var=; unset $ac_var;} ;;
21602 esac ;;
21603 esac
21604 done
21605
21606 (set) 2>&1 |
21607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21608 *${as_nl}ac_space=\ *)
21609 # `set' does not quote correctly, so add quotes: double-quote
21610 # substitution turns \\\\ into \\, and sed turns \\ into \.
21611 sed -n \
21612 "s/'/'\\\\''/g;
21613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21614 ;; #(
21615 *)
21616 # `set' quotes correctly as required by POSIX, so do not add quotes.
21617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21618 ;;
21619 esac |
21620 sort
21621 ) |
21622 sed '
21623 /^ac_cv_env_/b end
21624 t clear
21625 :clear
21626 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21627 t end
21628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21629 :end' >>confcache
21630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21631 if test -w "$cache_file"; then
21632 if test "x$cache_file" != "x/dev/null"; then
21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21634 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21635 if test ! -f "$cache_file" || test -h "$cache_file"; then
21636 cat confcache >"$cache_file"
21637 else
21638 case $cache_file in #(
21639 */* | ?:*)
21640 mv -f confcache "$cache_file"$$ &&
21641 mv -f "$cache_file"$$ "$cache_file" ;; #(
21642 *)
21643 mv -f confcache "$cache_file" ;;
21644 esac
21645 fi
21646 fi
21647 else
21648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21649 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21650 fi
21651 fi
21652 rm -f confcache
21653
21654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21655 # Let make expand exec_prefix.
21656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21657
21658 DEFS=-DHAVE_CONFIG_H
21659
21660 ac_libobjs=
21661 ac_ltlibobjs=
21662 U=
21663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21664 # 1. Remove the extension, and $U if already installed.
21665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21666 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21668 # will be set to the directory where LIBOBJS objects are built.
21669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21671 done
21672 LIBOBJS=$ac_libobjs
21673
21674 LTLIBOBJS=$ac_ltlibobjs
21675
21676
21677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21678 printf %s "checking that generated files are newer than configure... " >&6; }
21679 if test -n "$am_sleep_pid"; then
21680 # Hide warnings about reused PIDs.
21681 wait $am_sleep_pid 2>/dev/null
21682 fi
21683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21684 printf "%s\n" "done" >&6; }
21685 if test -n "$EXEEXT"; then
21686 am__EXEEXT_TRUE=
21687 am__EXEEXT_FALSE='#'
21688 else
21689 am__EXEEXT_TRUE='#'
21690 am__EXEEXT_FALSE=
21691 fi
21692
21693 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21694 as_fn_error $? "conditional \"AMDEP\" was never defined.
21695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21696 fi
21697 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21698 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21700 fi
21701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21704 fi
21705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21706 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21708 fi
21709 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21710 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21712 fi
21713 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21714 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21716 fi
21717 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
21718 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
21719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21720 fi
21721 if test -z "${DEF_FILES_TRUE}" && test -z "${DEF_FILES_FALSE}"; then
21722 as_fn_error $? "conditional \"DEF_FILES\" was never defined.
21723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21724 fi
21725 if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
21726 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
21727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21728 fi
21729 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
21730 as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
21731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21732 fi
21733 if test -z "${WITH_LIBMWAW_ZIP_TRUE}" && test -z "${WITH_LIBMWAW_ZIP_FALSE}"; then
21734 as_fn_error $? "conditional \"WITH_LIBMWAW_ZIP\" was never defined.
21735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21736 fi
21737 if test -z "${BUILD_CONVERTISSORS_TRUE}" && test -z "${BUILD_CONVERTISSORS_FALSE}"; then
21738 as_fn_error $? "conditional \"BUILD_CONVERTISSORS\" was never defined.
21739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21740 fi
21741 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
21742 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
21743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21744 fi
21745 if test -z "${WITH_LIBMWAW_DOCS_TRUE}" && test -z "${WITH_LIBMWAW_DOCS_FALSE}"; then
21746 as_fn_error $? "conditional \"WITH_LIBMWAW_DOCS\" was never defined.
21747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21748 fi
21749 if test -z "${WITH_LIBMWAW_API_DOCS_TRUE}" && test -z "${WITH_LIBMWAW_API_DOCS_FALSE}"; then
21750 as_fn_error $? "conditional \"WITH_LIBMWAW_API_DOCS\" was never defined.
21751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21752 fi
21753
21754 : "${CONFIG_STATUS=./config.status}"
21755 ac_write_fail=0
21756 ac_clean_files_save=$ac_clean_files
21757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21759 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21760 as_write_fail=0
21761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21762 #! $SHELL
21763 # Generated by $as_me.
21764 # Run this file to recreate the current configuration.
21765 # Compiler output produced by configure, useful for debugging
21766 # configure, is in config.log if it exists.
21767
21768 debug=false
21769 ac_cs_recheck=false
21770 ac_cs_silent=false
21771
21772 SHELL=\${CONFIG_SHELL-$SHELL}
21773 export SHELL
21774 _ASEOF
21775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21776 ## -------------------- ##
21777 ## M4sh Initialization. ##
21778 ## -------------------- ##
21779
21780 # Be more Bourne compatible
21781 DUALCASE=1; export DUALCASE # for MKS sh
21782 as_nop=:
21783 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21784 then :
21785 emulate sh
21786 NULLCMD=:
21787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21788 # is contrary to our usage. Disable this feature.
21789 alias -g '${1+"$@"}'='"$@"'
21790 setopt NO_GLOB_SUBST
21791 else $as_nop
21792 case `(set -o) 2>/dev/null` in #(
21793 *posix*) :
21794 set -o posix ;; #(
21795 *) :
21796 ;;
21797 esac
21798 fi
21799
21800
21801
21802 # Reset variables that may have inherited troublesome values from
21803 # the environment.
21804
21805 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21806 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21807 # side effect of setting IFS to empty, thus disabling word splitting.)
21808 # Quoting is to prevent editors from complaining about space-tab.
21809 as_nl='
21810 '
21811 export as_nl
21812 IFS=" "" $as_nl"
21813
21814 PS1='$ '
21815 PS2='> '
21816 PS4='+ '
21817
21818 # Ensure predictable behavior from utilities with locale-dependent output.
21819 LC_ALL=C
21820 export LC_ALL
21821 LANGUAGE=C
21822 export LANGUAGE
21823
21824 # We cannot yet rely on "unset" to work, but we need these variables
21825 # to be unset--not just set to an empty or harmless value--now, to
21826 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21827 # also avoids known problems related to "unset" and subshell syntax
21828 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21829 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21830 do eval test \${$as_var+y} \
21831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21832 done
21833
21834 # Ensure that fds 0, 1, and 2 are open.
21835 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21836 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21837 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21838
21839 # The user is always right.
21840 if ${PATH_SEPARATOR+false} :; then
21841 PATH_SEPARATOR=:
21842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21844 PATH_SEPARATOR=';'
21845 }
21846 fi
21847
21848
21849 # Find who we are. Look in the path if we contain no directory separator.
21850 as_myself=
21851 case $0 in #((
21852 *[\\/]* ) as_myself=$0 ;;
21853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21854 for as_dir in $PATH
21855 do
21856 IFS=$as_save_IFS
21857 case $as_dir in #(((
21858 '') as_dir=./ ;;
21859 */) ;;
21860 *) as_dir=$as_dir/ ;;
21861 esac
21862 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21863 done
21864 IFS=$as_save_IFS
21865
21866 ;;
21867 esac
21868 # We did not find ourselves, most probably we were run as `sh COMMAND'
21869 # in which case we are not to be found in the path.
21870 if test "x$as_myself" = x; then
21871 as_myself=$0
21872 fi
21873 if test ! -f "$as_myself"; then
21874 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21875 exit 1
21876 fi
21877
21878
21879
21880 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21881 # ----------------------------------------
21882 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21883 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21884 # script with STATUS, using 1 if that was 0.
21885 as_fn_error ()
21886 {
21887 as_status=$1; test $as_status -eq 0 && as_status=1
21888 if test "$4"; then
21889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21891 fi
21892 printf "%s\n" "$as_me: error: $2" >&2
21893 as_fn_exit $as_status
21894 } # as_fn_error
21895
21896
21897
21898 # as_fn_set_status STATUS
21899 # -----------------------
21900 # Set $? to STATUS, without forking.
21901 as_fn_set_status ()
21902 {
21903 return $1
21904 } # as_fn_set_status
21905
21906 # as_fn_exit STATUS
21907 # -----------------
21908 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21909 as_fn_exit ()
21910 {
21911 set +e
21912 as_fn_set_status $1
21913 exit $1
21914 } # as_fn_exit
21915
21916 # as_fn_unset VAR
21917 # ---------------
21918 # Portably unset VAR.
21919 as_fn_unset ()
21920 {
21921 { eval $1=; unset $1;}
21922 }
21923 as_unset=as_fn_unset
21924
21925 # as_fn_append VAR VALUE
21926 # ----------------------
21927 # Append the text in VALUE to the end of the definition contained in VAR. Take
21928 # advantage of any shell optimizations that allow amortized linear growth over
21929 # repeated appends, instead of the typical quadratic growth present in naive
21930 # implementations.
21931 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21932 then :
21933 eval 'as_fn_append ()
21934 {
21935 eval $1+=\$2
21936 }'
21937 else $as_nop
21938 as_fn_append ()
21939 {
21940 eval $1=\$$1\$2
21941 }
21942 fi # as_fn_append
21943
21944 # as_fn_arith ARG...
21945 # ------------------
21946 # Perform arithmetic evaluation on the ARGs, and store the result in the
21947 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21948 # must be portable across $(()) and expr.
21949 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21950 then :
21951 eval 'as_fn_arith ()
21952 {
21953 as_val=$(( $* ))
21954 }'
21955 else $as_nop
21956 as_fn_arith ()
21957 {
21958 as_val=`expr "$@" || test $? -eq 1`
21959 }
21960 fi # as_fn_arith
21961
21962
21963 if expr a : '\(a\)' >/dev/null 2>&1 &&
21964 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21965 as_expr=expr
21966 else
21967 as_expr=false
21968 fi
21969
21970 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21971 as_basename=basename
21972 else
21973 as_basename=false
21974 fi
21975
21976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21977 as_dirname=dirname
21978 else
21979 as_dirname=false
21980 fi
21981
21982 as_me=`$as_basename -- "$0" ||
21983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21984 X"$0" : 'X\(//\)$' \| \
21985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21986 printf "%s\n" X/"$0" |
21987 sed '/^.*\/\([^/][^/]*\)\/*$/{
21988 s//\1/
21989 q
21990 }
21991 /^X\/\(\/\/\)$/{
21992 s//\1/
21993 q
21994 }
21995 /^X\/\(\/\).*/{
21996 s//\1/
21997 q
21998 }
21999 s/.*/./; q'`
22000
22001 # Avoid depending upon Character Ranges.
22002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22005 as_cr_digits='0123456789'
22006 as_cr_alnum=$as_cr_Letters$as_cr_digits
22007
22008
22009 # Determine whether it's possible to make 'echo' print without a newline.
22010 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22011 # for compatibility with existing Makefiles.
22012 ECHO_C= ECHO_N= ECHO_T=
22013 case `echo -n x` in #(((((
22014 -n*)
22015 case `echo 'xy\c'` in
22016 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22017 xy) ECHO_C='\c';;
22018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22019 ECHO_T=' ';;
22020 esac;;
22021 *)
22022 ECHO_N='-n';;
22023 esac
22024
22025 # For backward compatibility with old third-party macros, we provide
22026 # the shell variables $as_echo and $as_echo_n. New code should use
22027 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22028 as_echo='printf %s\n'
22029 as_echo_n='printf %s'
22030
22031 rm -f conf$$ conf$$.exe conf$$.file
22032 if test -d conf$$.dir; then
22033 rm -f conf$$.dir/conf$$.file
22034 else
22035 rm -f conf$$.dir
22036 mkdir conf$$.dir 2>/dev/null
22037 fi
22038 if (echo >conf$$.file) 2>/dev/null; then
22039 if ln -s conf$$.file conf$$ 2>/dev/null; then
22040 as_ln_s='ln -s'
22041 # ... but there are two gotchas:
22042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22044 # In both cases, we have to default to `cp -pR'.
22045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22046 as_ln_s='cp -pR'
22047 elif ln conf$$.file conf$$ 2>/dev/null; then
22048 as_ln_s=ln
22049 else
22050 as_ln_s='cp -pR'
22051 fi
22052 else
22053 as_ln_s='cp -pR'
22054 fi
22055 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22056 rmdir conf$$.dir 2>/dev/null
22057
22058
22059 # as_fn_mkdir_p
22060 # -------------
22061 # Create "$as_dir" as a directory, including parents if necessary.
22062 as_fn_mkdir_p ()
22063 {
22064
22065 case $as_dir in #(
22066 -*) as_dir=./$as_dir;;
22067 esac
22068 test -d "$as_dir" || eval $as_mkdir_p || {
22069 as_dirs=
22070 while :; do
22071 case $as_dir in #(
22072 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22073 *) as_qdir=$as_dir;;
22074 esac
22075 as_dirs="'$as_qdir' $as_dirs"
22076 as_dir=`$as_dirname -- "$as_dir" ||
22077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22078 X"$as_dir" : 'X\(//\)[^/]' \| \
22079 X"$as_dir" : 'X\(//\)$' \| \
22080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22081 printf "%s\n" X"$as_dir" |
22082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22083 s//\1/
22084 q
22085 }
22086 /^X\(\/\/\)[^/].*/{
22087 s//\1/
22088 q
22089 }
22090 /^X\(\/\/\)$/{
22091 s//\1/
22092 q
22093 }
22094 /^X\(\/\).*/{
22095 s//\1/
22096 q
22097 }
22098 s/.*/./; q'`
22099 test -d "$as_dir" && break
22100 done
22101 test -z "$as_dirs" || eval "mkdir $as_dirs"
22102 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22103
22104
22105 } # as_fn_mkdir_p
22106 if mkdir -p . 2>/dev/null; then
22107 as_mkdir_p='mkdir -p "$as_dir"'
22108 else
22109 test -d ./-p && rmdir ./-p
22110 as_mkdir_p=false
22111 fi
22112
22113
22114 # as_fn_executable_p FILE
22115 # -----------------------
22116 # Test if FILE is an executable regular file.
22117 as_fn_executable_p ()
22118 {
22119 test -f "$1" && test -x "$1"
22120 } # as_fn_executable_p
22121 as_test_x='test -x'
22122 as_executable_p=as_fn_executable_p
22123
22124 # Sed expression to map a string onto a valid CPP name.
22125 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22126
22127 # Sed expression to map a string onto a valid variable name.
22128 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22129
22130
22131 exec 6>&1
22132 ## ----------------------------------- ##
22133 ## Main body of $CONFIG_STATUS script. ##
22134 ## ----------------------------------- ##
22135 _ASEOF
22136 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22137
22138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22139 # Save the log message, to keep $0 and so on meaningful, and to
22140 # report actual input values of CONFIG_FILES etc. instead of their
22141 # values after options handling.
22142 ac_log="
22143 This file was extended by libmwaw $as_me 0.3.22, which was
22144 generated by GNU Autoconf 2.71. Invocation command line was
22145
22146 CONFIG_FILES = $CONFIG_FILES
22147 CONFIG_HEADERS = $CONFIG_HEADERS
22148 CONFIG_LINKS = $CONFIG_LINKS
22149 CONFIG_COMMANDS = $CONFIG_COMMANDS
22150 $ $0 $@
22151
22152 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22153 "
22154
22155 _ACEOF
22156
22157 case $ac_config_files in *"
22158 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22159 esac
22160
22161 case $ac_config_headers in *"
22162 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22163 esac
22164
22165
22166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22167 # Files that config.status was made for.
22168 config_files="$ac_config_files"
22169 config_headers="$ac_config_headers"
22170 config_commands="$ac_config_commands"
22171
22172 _ACEOF
22173
22174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22175 ac_cs_usage="\
22176 \`$as_me' instantiates files and other configuration actions
22177 from templates according to the current configuration. Unless the files
22178 and actions are specified as TAGs, all are instantiated by default.
22179
22180 Usage: $0 [OPTION]... [TAG]...
22181
22182 -h, --help print this help, then exit
22183 -V, --version print version number and configuration settings, then exit
22184 --config print configuration, then exit
22185 -q, --quiet, --silent
22186 do not print progress messages
22187 -d, --debug don't remove temporary files
22188 --recheck update $as_me by reconfiguring in the same conditions
22189 --file=FILE[:TEMPLATE]
22190 instantiate the configuration file FILE
22191 --header=FILE[:TEMPLATE]
22192 instantiate the configuration header FILE
22193
22194 Configuration files:
22195 $config_files
22196
22197 Configuration headers:
22198 $config_headers
22199
22200 Configuration commands:
22201 $config_commands
22202
22203 Report bugs to the package provider."
22204
22205 _ACEOF
22206 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22207 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22209 ac_cs_config='$ac_cs_config_escaped'
22210 ac_cs_version="\\
22211 libmwaw config.status 0.3.22
22212 configured by $0, generated by GNU Autoconf 2.71,
22213 with options \\"\$ac_cs_config\\"
22214
22215 Copyright (C) 2021 Free Software Foundation, Inc.
22216 This config.status script is free software; the Free Software Foundation
22217 gives unlimited permission to copy, distribute and modify it."
22218
22219 ac_pwd='$ac_pwd'
22220 srcdir='$srcdir'
22221 INSTALL='$INSTALL'
22222 MKDIR_P='$MKDIR_P'
22223 AWK='$AWK'
22224 test -n "\$AWK" || AWK=awk
22225 _ACEOF
22226
22227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22228 # The default lists apply if the user does not specify any file.
22229 ac_need_defaults=:
22230 while test $# != 0
22231 do
22232 case $1 in
22233 --*=?*)
22234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22235 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22236 ac_shift=:
22237 ;;
22238 --*=)
22239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22240 ac_optarg=
22241 ac_shift=:
22242 ;;
22243 *)
22244 ac_option=$1
22245 ac_optarg=$2
22246 ac_shift=shift
22247 ;;
22248 esac
22249
22250 case $ac_option in
22251 # Handling of the options.
22252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22253 ac_cs_recheck=: ;;
22254 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22255 printf "%s\n" "$ac_cs_version"; exit ;;
22256 --config | --confi | --conf | --con | --co | --c )
22257 printf "%s\n" "$ac_cs_config"; exit ;;
22258 --debug | --debu | --deb | --de | --d | -d )
22259 debug=: ;;
22260 --file | --fil | --fi | --f )
22261 $ac_shift
22262 case $ac_optarg in
22263 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22264 '') as_fn_error $? "missing file argument" ;;
22265 esac
22266 as_fn_append CONFIG_FILES " '$ac_optarg'"
22267 ac_need_defaults=false;;
22268 --header | --heade | --head | --hea )
22269 $ac_shift
22270 case $ac_optarg in
22271 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22272 esac
22273 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22274 ac_need_defaults=false;;
22275 --he | --h)
22276 # Conflict between --help and --header
22277 as_fn_error $? "ambiguous option: \`$1'
22278 Try \`$0 --help' for more information.";;
22279 --help | --hel | -h )
22280 printf "%s\n" "$ac_cs_usage"; exit ;;
22281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22283 ac_cs_silent=: ;;
22284
22285 # This is an error.
22286 -*) as_fn_error $? "unrecognized option: \`$1'
22287 Try \`$0 --help' for more information." ;;
22288
22289 *) as_fn_append ac_config_targets " $1"
22290 ac_need_defaults=false ;;
22291
22292 esac
22293 shift
22294 done
22295
22296 ac_configure_extra_args=
22297
22298 if $ac_cs_silent; then
22299 exec 6>/dev/null
22300 ac_configure_extra_args="$ac_configure_extra_args --silent"
22301 fi
22302
22303 _ACEOF
22304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22305 if \$ac_cs_recheck; then
22306 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22307 shift
22308 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22309 CONFIG_SHELL='$SHELL'
22310 export CONFIG_SHELL
22311 exec "\$@"
22312 fi
22313
22314 _ACEOF
22315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22316 exec 5>>config.log
22317 {
22318 echo
22319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22320 ## Running $as_me. ##
22321 _ASBOX
22322 printf "%s\n" "$ac_log"
22323 } >&5
22324
22325 _ACEOF
22326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22327 #
22328 # INIT-COMMANDS
22329 #
22330 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22331
22332
22333 # The HP-UX ksh and POSIX shell print the target directory to stdout
22334 # if CDPATH is set.
22335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22336
22337 sed_quote_subst='$sed_quote_subst'
22338 double_quote_subst='$double_quote_subst'
22339 delay_variable_subst='$delay_variable_subst'
22340 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22341 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22342 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22343 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22344 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22345 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22346 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22347 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22348 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22349 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22350 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22351 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22352 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22353 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22354 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22355 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22356 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22357 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22358 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22359 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22360 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22361 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22362 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22363 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22364 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22365 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22366 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22367 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22368 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22369 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22370 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22371 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22372 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22373 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22374 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22375 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22376 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22377 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22378 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22379 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22380 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22381 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22382 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22383 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22384 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22385 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22386 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22387 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22388 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22389 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22390 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22391 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22392 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22393 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22394 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22395 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22396 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22397 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22398 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22399 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"`'
22400 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22401 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22402 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22403 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22404 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22405 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22406 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22407 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22408 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22409 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22410 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22411 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22412 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22413 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22414 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22415 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22416 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22417 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22418 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22419 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22420 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22421 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22422 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22423 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22424 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22425 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22426 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22427 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22428 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22429 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22430 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22431 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22432 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22433 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22434 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22435 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22436 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22437 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22438 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22439 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22440 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22441 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22442 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22443 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22444 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22445 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22446 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22447 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22448 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22449 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22450 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22451 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22452 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22453 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22454 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22455 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22456 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22457 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22458 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22459 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22460 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22461 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22462 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22463 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22464 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22465 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22466 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22467 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22468 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22469 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22470 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22471 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22472 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22473 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22474 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22475 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22476 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22477 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22478 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22479 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22480 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22481 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22482 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22483 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22484 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22485 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22486 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22487 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22488 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22489 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22490 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22491 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22492 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22493 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22494 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22495 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22496 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22497 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22498 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22499 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22500 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22501 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22502 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22503 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22504 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22505 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22506 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22507 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22508 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22509 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22510 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22511 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22512 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22513 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22514 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22515 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22516 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22517 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22518 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22519 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22520 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22521 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22522 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22523 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22524 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22525 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22526 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22527 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22528 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22529 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22530
22531 LTCC='$LTCC'
22532 LTCFLAGS='$LTCFLAGS'
22533 compiler='$compiler_DEFAULT'
22534
22535 # A function that is used when there is no print builtin or printf.
22536 func_fallback_echo ()
22537 {
22538 eval 'cat <<_LTECHO_EOF
22539 \$1
22540 _LTECHO_EOF'
22541 }
22542
22543 # Quote evaled strings.
22544 for var in AS \
22545 DLLTOOL \
22546 OBJDUMP \
22547 SHELL \
22548 ECHO \
22549 PATH_SEPARATOR \
22550 SED \
22551 GREP \
22552 EGREP \
22553 FGREP \
22554 LD \
22555 NM \
22556 LN_S \
22557 lt_SP2NL \
22558 lt_NL2SP \
22559 reload_flag \
22560 deplibs_check_method \
22561 file_magic_cmd \
22562 file_magic_glob \
22563 want_nocaseglob \
22564 sharedlib_from_linklib_cmd \
22565 AR \
22566 AR_FLAGS \
22567 archiver_list_spec \
22568 STRIP \
22569 RANLIB \
22570 CC \
22571 CFLAGS \
22572 compiler \
22573 lt_cv_sys_global_symbol_pipe \
22574 lt_cv_sys_global_symbol_to_cdecl \
22575 lt_cv_sys_global_symbol_to_import \
22576 lt_cv_sys_global_symbol_to_c_name_address \
22577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22578 lt_cv_nm_interface \
22579 nm_file_list_spec \
22580 lt_cv_truncate_bin \
22581 lt_prog_compiler_no_builtin_flag \
22582 lt_prog_compiler_pic \
22583 lt_prog_compiler_wl \
22584 lt_prog_compiler_static \
22585 lt_cv_prog_compiler_c_o \
22586 need_locks \
22587 MANIFEST_TOOL \
22588 DSYMUTIL \
22589 NMEDIT \
22590 LIPO \
22591 OTOOL \
22592 OTOOL64 \
22593 shrext_cmds \
22594 export_dynamic_flag_spec \
22595 whole_archive_flag_spec \
22596 compiler_needs_object \
22597 with_gnu_ld \
22598 allow_undefined_flag \
22599 no_undefined_flag \
22600 hardcode_libdir_flag_spec \
22601 hardcode_libdir_separator \
22602 exclude_expsyms \
22603 include_expsyms \
22604 file_list_spec \
22605 variables_saved_for_relink \
22606 libname_spec \
22607 library_names_spec \
22608 soname_spec \
22609 install_override_mode \
22610 finish_eval \
22611 old_striplib \
22612 striplib \
22613 compiler_lib_search_dirs \
22614 predep_objects \
22615 postdep_objects \
22616 predeps \
22617 postdeps \
22618 compiler_lib_search_path \
22619 LD_CXX \
22620 reload_flag_CXX \
22621 compiler_CXX \
22622 lt_prog_compiler_no_builtin_flag_CXX \
22623 lt_prog_compiler_pic_CXX \
22624 lt_prog_compiler_wl_CXX \
22625 lt_prog_compiler_static_CXX \
22626 lt_cv_prog_compiler_c_o_CXX \
22627 export_dynamic_flag_spec_CXX \
22628 whole_archive_flag_spec_CXX \
22629 compiler_needs_object_CXX \
22630 with_gnu_ld_CXX \
22631 allow_undefined_flag_CXX \
22632 no_undefined_flag_CXX \
22633 hardcode_libdir_flag_spec_CXX \
22634 hardcode_libdir_separator_CXX \
22635 exclude_expsyms_CXX \
22636 include_expsyms_CXX \
22637 file_list_spec_CXX \
22638 compiler_lib_search_dirs_CXX \
22639 predep_objects_CXX \
22640 postdep_objects_CXX \
22641 predeps_CXX \
22642 postdeps_CXX \
22643 compiler_lib_search_path_CXX; do
22644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22645 *[\\\\\\\`\\"\\\$]*)
22646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22647 ;;
22648 *)
22649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22650 ;;
22651 esac
22652 done
22653
22654 # Double-quote double-evaled strings.
22655 for var in reload_cmds \
22656 old_postinstall_cmds \
22657 old_postuninstall_cmds \
22658 old_archive_cmds \
22659 extract_expsyms_cmds \
22660 old_archive_from_new_cmds \
22661 old_archive_from_expsyms_cmds \
22662 archive_cmds \
22663 archive_expsym_cmds \
22664 module_cmds \
22665 module_expsym_cmds \
22666 export_symbols_cmds \
22667 prelink_cmds \
22668 postlink_cmds \
22669 postinstall_cmds \
22670 postuninstall_cmds \
22671 finish_cmds \
22672 sys_lib_search_path_spec \
22673 configure_time_dlsearch_path \
22674 configure_time_lt_sys_library_path \
22675 reload_cmds_CXX \
22676 old_archive_cmds_CXX \
22677 old_archive_from_new_cmds_CXX \
22678 old_archive_from_expsyms_cmds_CXX \
22679 archive_cmds_CXX \
22680 archive_expsym_cmds_CXX \
22681 module_cmds_CXX \
22682 module_expsym_cmds_CXX \
22683 export_symbols_cmds_CXX \
22684 prelink_cmds_CXX \
22685 postlink_cmds_CXX; do
22686 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22687 *[\\\\\\\`\\"\\\$]*)
22688 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22689 ;;
22690 *)
22691 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22692 ;;
22693 esac
22694 done
22695
22696 ac_aux_dir='$ac_aux_dir'
22697
22698 # See if we are running on zsh, and set the options that allow our
22699 # commands through without removal of \ escapes INIT.
22700 if test -n "\${ZSH_VERSION+set}"; then
22701 setopt NO_GLOB_SUBST
22702 fi
22703
22704
22705 PACKAGE='$PACKAGE'
22706 VERSION='$VERSION'
22707 RM='$RM'
22708 ofile='$ofile'
22709
22710
22711
22712
22713
22714
22715 _ACEOF
22716
22717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22718
22719 # Handling of arguments.
22720 for ac_config_target in $ac_config_targets
22721 do
22722 case $ac_config_target in
22723 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22724 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22725 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22726 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22727 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22728 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
22729 "src/conv/csv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/csv/Makefile" ;;
22730 "src/conv/csv/mwaw2csv.rc") CONFIG_FILES="$CONFIG_FILES src/conv/csv/mwaw2csv.rc" ;;
22731 "src/conv/helper/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/helper/Makefile" ;;
22732 "src/conv/html/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/html/Makefile" ;;
22733 "src/conv/html/mwaw2html.rc") CONFIG_FILES="$CONFIG_FILES src/conv/html/mwaw2html.rc" ;;
22734 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
22735 "src/conv/raw/mwaw2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/mwaw2raw.rc" ;;
22736 "src/conv/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/svg/Makefile" ;;
22737 "src/conv/svg/mwaw2svg.rc") CONFIG_FILES="$CONFIG_FILES src/conv/svg/mwaw2svg.rc" ;;
22738 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
22739 "src/conv/text/mwaw2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/mwaw2text.rc" ;;
22740 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22741 "src/tools/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/file/Makefile" ;;
22742 "src/tools/file/mwawFile.rc") CONFIG_FILES="$CONFIG_FILES src/tools/file/mwawFile.rc" ;;
22743 "src/tools/zip/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/zip/Makefile" ;;
22744 "src/tools/zip/mwawZip.rc") CONFIG_FILES="$CONFIG_FILES src/tools/zip/mwawZip.rc" ;;
22745 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
22746 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22747 "src/lib/libmwaw.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libmwaw.rc" ;;
22748 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22749 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
22750 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
22751 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
22752 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
22753 "inc/libmwaw/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libmwaw/Makefile" ;;
22754 "libmwaw-$MWAW_MAJOR_VERSION.$MWAW_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libmwaw-$MWAW_MAJOR_VERSION.$MWAW_MINOR_VERSION.pc:libmwaw.pc.in" ;;
22755 "libmwaw.spec") CONFIG_FILES="$CONFIG_FILES libmwaw.spec" ;;
22756 "libmwaw-zip") CONFIG_FILES="$CONFIG_FILES libmwaw-zip" ;;
22757
22758 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22759 esac
22760 done
22761
22762
22763 # If the user did not use the arguments to specify the items to instantiate,
22764 # then the envvar interface is used. Set only those that are not.
22765 # We use the long form for the default assignment because of an extremely
22766 # bizarre bug on SunOS 4.1.3.
22767 if $ac_need_defaults; then
22768 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22769 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22770 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22771 fi
22772
22773 # Have a temporary directory for convenience. Make it in the build tree
22774 # simply because there is no reason against having it here, and in addition,
22775 # creating and moving files from /tmp can sometimes cause problems.
22776 # Hook for its removal unless debugging.
22777 # Note that there is a small window in which the directory will not be cleaned:
22778 # after its creation but before its name has been assigned to `$tmp'.
22779 $debug ||
22780 {
22781 tmp= ac_tmp=
22782 trap 'exit_status=$?
22783 : "${ac_tmp:=$tmp}"
22784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22785 ' 0
22786 trap 'as_fn_exit 1' 1 2 13 15
22787 }
22788 # Create a (secure) tmp directory for tmp files.
22789
22790 {
22791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22792 test -d "$tmp"
22793 } ||
22794 {
22795 tmp=./conf$$-$RANDOM
22796 (umask 077 && mkdir "$tmp")
22797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22798 ac_tmp=$tmp
22799
22800 # Set up the scripts for CONFIG_FILES section.
22801 # No need to generate them if there are no CONFIG_FILES.
22802 # This happens for instance with `./config.status config.h'.
22803 if test -n "$CONFIG_FILES"; then
22804
22805
22806 ac_cr=`echo X | tr X '\015'`
22807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22808 # But we know of no other shell where ac_cr would be empty at this
22809 # point, so we can use a bashism as a fallback.
22810 if test "x$ac_cr" = x; then
22811 eval ac_cr=\$\'\\r\'
22812 fi
22813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22815 ac_cs_awk_cr='\\r'
22816 else
22817 ac_cs_awk_cr=$ac_cr
22818 fi
22819
22820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22821 _ACEOF
22822
22823
22824 {
22825 echo "cat >conf$$subs.awk <<_ACEOF" &&
22826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22827 echo "_ACEOF"
22828 } >conf$$subs.sh ||
22829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22831 ac_delim='%!_!# '
22832 for ac_last_try in false false false false false :; do
22833 . ./conf$$subs.sh ||
22834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22835
22836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22837 if test $ac_delim_n = $ac_delim_num; then
22838 break
22839 elif $ac_last_try; then
22840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22841 else
22842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22843 fi
22844 done
22845 rm -f conf$$subs.sh
22846
22847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22849 _ACEOF
22850 sed -n '
22851 h
22852 s/^/S["/; s/!.*/"]=/
22853 p
22854 g
22855 s/^[^!]*!//
22856 :repl
22857 t repl
22858 s/'"$ac_delim"'$//
22859 t delim
22860 :nl
22861 h
22862 s/\(.\{148\}\)..*/\1/
22863 t more1
22864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22865 p
22866 n
22867 b repl
22868 :more1
22869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22870 p
22871 g
22872 s/.\{148\}//
22873 t nl
22874 :delim
22875 h
22876 s/\(.\{148\}\)..*/\1/
22877 t more2
22878 s/["\\]/\\&/g; s/^/"/; s/$/"/
22879 p
22880 b
22881 :more2
22882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22883 p
22884 g
22885 s/.\{148\}//
22886 t delim
22887 ' <conf$$subs.awk | sed '
22888 /^[^""]/{
22889 N
22890 s/\n//
22891 }
22892 ' >>$CONFIG_STATUS || ac_write_fail=1
22893 rm -f conf$$subs.awk
22894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22895 _ACAWK
22896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22897 for (key in S) S_is_set[key] = 1
22898 FS = ""
22899
22900 }
22901 {
22902 line = $ 0
22903 nfields = split(line, field, "@")
22904 substed = 0
22905 len = length(field[1])
22906 for (i = 2; i < nfields; i++) {
22907 key = field[i]
22908 keylen = length(key)
22909 if (S_is_set[key]) {
22910 value = S[key]
22911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22912 len += length(value) + length(field[++i])
22913 substed = 1
22914 } else
22915 len += 1 + keylen
22916 }
22917
22918 print line
22919 }
22920
22921 _ACAWK
22922 _ACEOF
22923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22926 else
22927 cat
22928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22929 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22930 _ACEOF
22931
22932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22934 # trailing colons and then remove the whole line if VPATH becomes empty
22935 # (actually we leave an empty line to preserve line numbers).
22936 if test "x$srcdir" = x.; then
22937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22938 h
22939 s///
22940 s/^/:/
22941 s/[ ]*$/:/
22942 s/:\$(srcdir):/:/g
22943 s/:\${srcdir}:/:/g
22944 s/:@srcdir@:/:/g
22945 s/^:*//
22946 s/:*$//
22947 x
22948 s/\(=[ ]*\).*/\1/
22949 G
22950 s/\n//
22951 s/^[^=]*=[ ]*$//
22952 }'
22953 fi
22954
22955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22956 fi # test -n "$CONFIG_FILES"
22957
22958 # Set up the scripts for CONFIG_HEADERS section.
22959 # No need to generate them if there are no CONFIG_HEADERS.
22960 # This happens for instance with `./config.status Makefile'.
22961 if test -n "$CONFIG_HEADERS"; then
22962 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22963 BEGIN {
22964 _ACEOF
22965
22966 # Transform confdefs.h into an awk script `defines.awk', embedded as
22967 # here-document in config.status, that substitutes the proper values into
22968 # config.h.in to produce config.h.
22969
22970 # Create a delimiter string that does not exist in confdefs.h, to ease
22971 # handling of long lines.
22972 ac_delim='%!_!# '
22973 for ac_last_try in false false :; do
22974 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22975 if test -z "$ac_tt"; then
22976 break
22977 elif $ac_last_try; then
22978 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22979 else
22980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22981 fi
22982 done
22983
22984 # For the awk script, D is an array of macro values keyed by name,
22985 # likewise P contains macro parameters if any. Preserve backslash
22986 # newline sequences.
22987
22988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22989 sed -n '
22990 s/.\{148\}/&'"$ac_delim"'/g
22991 t rset
22992 :rset
22993 s/^[ ]*#[ ]*define[ ][ ]*/ /
22994 t def
22995 d
22996 :def
22997 s/\\$//
22998 t bsnl
22999 s/["\\]/\\&/g
23000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23001 D["\1"]=" \3"/p
23002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23003 d
23004 :bsnl
23005 s/["\\]/\\&/g
23006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23007 D["\1"]=" \3\\\\\\n"\\/p
23008 t cont
23009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23010 t cont
23011 d
23012 :cont
23013 n
23014 s/.\{148\}/&'"$ac_delim"'/g
23015 t clear
23016 :clear
23017 s/\\$//
23018 t bsnlc
23019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23020 d
23021 :bsnlc
23022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23023 b cont
23024 ' <confdefs.h | sed '
23025 s/'"$ac_delim"'/"\\\
23026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23027
23028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23029 for (key in D) D_is_set[key] = 1
23030 FS = ""
23031 }
23032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23033 line = \$ 0
23034 split(line, arg, " ")
23035 if (arg[1] == "#") {
23036 defundef = arg[2]
23037 mac1 = arg[3]
23038 } else {
23039 defundef = substr(arg[1], 2)
23040 mac1 = arg[2]
23041 }
23042 split(mac1, mac2, "(") #)
23043 macro = mac2[1]
23044 prefix = substr(line, 1, index(line, defundef) - 1)
23045 if (D_is_set[macro]) {
23046 # Preserve the white space surrounding the "#".
23047 print prefix "define", macro P[macro] D[macro]
23048 next
23049 } else {
23050 # Replace #undef with comments. This is necessary, for example,
23051 # in the case of _POSIX_SOURCE, which is predefined and required
23052 # on some systems where configure will not decide to define it.
23053 if (defundef == "undef") {
23054 print "/*", prefix defundef, macro, "*/"
23055 next
23056 }
23057 }
23058 }
23059 { print }
23060 _ACAWK
23061 _ACEOF
23062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23063 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23064 fi # test -n "$CONFIG_HEADERS"
23065
23066
23067 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23068 shift
23069 for ac_tag
23070 do
23071 case $ac_tag in
23072 :[FHLC]) ac_mode=$ac_tag; continue;;
23073 esac
23074 case $ac_mode$ac_tag in
23075 :[FHL]*:*);;
23076 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23077 :[FH]-) ac_tag=-:-;;
23078 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23079 esac
23080 ac_save_IFS=$IFS
23081 IFS=:
23082 set x $ac_tag
23083 IFS=$ac_save_IFS
23084 shift
23085 ac_file=$1
23086 shift
23087
23088 case $ac_mode in
23089 :L) ac_source=$1;;
23090 :[FH])
23091 ac_file_inputs=
23092 for ac_f
23093 do
23094 case $ac_f in
23095 -) ac_f="$ac_tmp/stdin";;
23096 *) # Look for the file first in the build tree, then in the source tree
23097 # (if the path is not absolute). The absolute path cannot be DOS-style,
23098 # because $ac_f cannot contain `:'.
23099 test -f "$ac_f" ||
23100 case $ac_f in
23101 [\\/$]*) false;;
23102 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23103 esac ||
23104 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23105 esac
23106 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23107 as_fn_append ac_file_inputs " '$ac_f'"
23108 done
23109
23110 # Let's still pretend it is `configure' which instantiates (i.e., don't
23111 # use $as_me), people would be surprised to read:
23112 # /* config.h. Generated by config.status. */
23113 configure_input='Generated from '`
23114 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23115 `' by configure.'
23116 if test x"$ac_file" != x-; then
23117 configure_input="$ac_file. $configure_input"
23118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23119 printf "%s\n" "$as_me: creating $ac_file" >&6;}
23120 fi
23121 # Neutralize special characters interpreted by sed in replacement strings.
23122 case $configure_input in #(
23123 *\&* | *\|* | *\\* )
23124 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23126 *) ac_sed_conf_input=$configure_input;;
23127 esac
23128
23129 case $ac_tag in
23130 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23132 esac
23133 ;;
23134 esac
23135
23136 ac_dir=`$as_dirname -- "$ac_file" ||
23137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23138 X"$ac_file" : 'X\(//\)[^/]' \| \
23139 X"$ac_file" : 'X\(//\)$' \| \
23140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23141 printf "%s\n" X"$ac_file" |
23142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23143 s//\1/
23144 q
23145 }
23146 /^X\(\/\/\)[^/].*/{
23147 s//\1/
23148 q
23149 }
23150 /^X\(\/\/\)$/{
23151 s//\1/
23152 q
23153 }
23154 /^X\(\/\).*/{
23155 s//\1/
23156 q
23157 }
23158 s/.*/./; q'`
23159 as_dir="$ac_dir"; as_fn_mkdir_p
23160 ac_builddir=.
23161
23162 case "$ac_dir" in
23163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23164 *)
23165 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23166 # A ".." for each directory in $ac_dir_suffix.
23167 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23168 case $ac_top_builddir_sub in
23169 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23170 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23171 esac ;;
23172 esac
23173 ac_abs_top_builddir=$ac_pwd
23174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23175 # for backward compatibility:
23176 ac_top_builddir=$ac_top_build_prefix
23177
23178 case $srcdir in
23179 .) # We are building in place.
23180 ac_srcdir=.
23181 ac_top_srcdir=$ac_top_builddir_sub
23182 ac_abs_top_srcdir=$ac_pwd ;;
23183 [\\/]* | ?:[\\/]* ) # Absolute name.
23184 ac_srcdir=$srcdir$ac_dir_suffix;
23185 ac_top_srcdir=$srcdir
23186 ac_abs_top_srcdir=$srcdir ;;
23187 *) # Relative name.
23188 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23189 ac_top_srcdir=$ac_top_build_prefix$srcdir
23190 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23191 esac
23192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23193
23194
23195 case $ac_mode in
23196 :F)
23197 #
23198 # CONFIG_FILE
23199 #
23200
23201 case $INSTALL in
23202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23203 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23204 esac
23205 ac_MKDIR_P=$MKDIR_P
23206 case $MKDIR_P in
23207 [\\/$]* | ?:[\\/]* ) ;;
23208 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23209 esac
23210 _ACEOF
23211
23212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23213 # If the template does not know about datarootdir, expand it.
23214 # FIXME: This hack should be removed a few years after 2.60.
23215 ac_datarootdir_hack=; ac_datarootdir_seen=
23216 ac_sed_dataroot='
23217 /datarootdir/ {
23218 p
23219 q
23220 }
23221 /@datadir@/p
23222 /@docdir@/p
23223 /@infodir@/p
23224 /@localedir@/p
23225 /@mandir@/p'
23226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23227 *datarootdir*) ac_datarootdir_seen=yes;;
23228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23230 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23231 _ACEOF
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233 ac_datarootdir_hack='
23234 s&@datadir@&$datadir&g
23235 s&@docdir@&$docdir&g
23236 s&@infodir@&$infodir&g
23237 s&@localedir@&$localedir&g
23238 s&@mandir@&$mandir&g
23239 s&\\\${datarootdir}&$datarootdir&g' ;;
23240 esac
23241 _ACEOF
23242
23243 # Neutralize VPATH when `$srcdir' = `.'.
23244 # Shell code in configure.ac might set extrasub.
23245 # FIXME: do we really want to maintain this feature?
23246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23247 ac_sed_extra="$ac_vpsub
23248 $extrasub
23249 _ACEOF
23250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23251 :t
23252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23253 s|@configure_input@|$ac_sed_conf_input|;t t
23254 s&@top_builddir@&$ac_top_builddir_sub&;t t
23255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23256 s&@srcdir@&$ac_srcdir&;t t
23257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23258 s&@top_srcdir@&$ac_top_srcdir&;t t
23259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23260 s&@builddir@&$ac_builddir&;t t
23261 s&@abs_builddir@&$ac_abs_builddir&;t t
23262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23263 s&@INSTALL@&$ac_INSTALL&;t t
23264 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23265 $ac_datarootdir_hack
23266 "
23267 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23268 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23269
23270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23271 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23273 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23275 which seems to be undefined. Please make sure it is defined" >&5
23276 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23277 which seems to be undefined. Please make sure it is defined" >&2;}
23278
23279 rm -f "$ac_tmp/stdin"
23280 case $ac_file in
23281 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23282 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23283 esac \
23284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23285 ;;
23286 :H)
23287 #
23288 # CONFIG_HEADER
23289 #
23290 if test x"$ac_file" != x-; then
23291 {
23292 printf "%s\n" "/* $configure_input */" >&1 \
23293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23294 } >"$ac_tmp/config.h" \
23295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23296 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23298 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23299 else
23300 rm -f "$ac_file"
23301 mv "$ac_tmp/config.h" "$ac_file" \
23302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23303 fi
23304 else
23305 printf "%s\n" "/* $configure_input */" >&1 \
23306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23307 || as_fn_error $? "could not create -" "$LINENO" 5
23308 fi
23309 # Compute "$ac_file"'s index in $config_headers.
23310 _am_arg="$ac_file"
23311 _am_stamp_count=1
23312 for _am_header in $config_headers :; do
23313 case $_am_header in
23314 $_am_arg | $_am_arg:* )
23315 break ;;
23316 * )
23317 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23318 esac
23319 done
23320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$_am_arg" : 'X\(//\)[^/]' \| \
23323 X"$_am_arg" : 'X\(//\)$' \| \
23324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23325 printf "%s\n" X"$_am_arg" |
23326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23327 s//\1/
23328 q
23329 }
23330 /^X\(\/\/\)[^/].*/{
23331 s//\1/
23332 q
23333 }
23334 /^X\(\/\/\)$/{
23335 s//\1/
23336 q
23337 }
23338 /^X\(\/\).*/{
23339 s//\1/
23340 q
23341 }
23342 s/.*/./; q'`/stamp-h$_am_stamp_count
23343 ;;
23344
23345 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23346 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23347 ;;
23348 esac
23349
23350
23351 case $ac_file$ac_mode in
23352 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23353 # Older Autoconf quotes --file arguments for eval, but not when files
23354 # are listed without --file. Let's play safe and only enable the eval
23355 # if we detect the quoting.
23356 # TODO: see whether this extra hack can be removed once we start
23357 # requiring Autoconf 2.70 or later.
23358 case $CONFIG_FILES in #(
23359 *\'*) :
23360 eval set x "$CONFIG_FILES" ;; #(
23361 *) :
23362 set x $CONFIG_FILES ;; #(
23363 *) :
23364 ;;
23365 esac
23366 shift
23367 # Used to flag and report bootstrapping failures.
23368 am_rc=0
23369 for am_mf
23370 do
23371 # Strip MF so we end up with the name of the file.
23372 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23373 # Check whether this is an Automake generated Makefile which includes
23374 # dependency-tracking related rules and includes.
23375 # Grep'ing the whole file directly is not great: AIX grep has a line
23376 # limit of 2048, but all sed's we know have understand at least 4000.
23377 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23378 || continue
23379 am_dirpart=`$as_dirname -- "$am_mf" ||
23380 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$am_mf" : 'X\(//\)[^/]' \| \
23382 X"$am_mf" : 'X\(//\)$' \| \
23383 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23384 printf "%s\n" X"$am_mf" |
23385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23386 s//\1/
23387 q
23388 }
23389 /^X\(\/\/\)[^/].*/{
23390 s//\1/
23391 q
23392 }
23393 /^X\(\/\/\)$/{
23394 s//\1/
23395 q
23396 }
23397 /^X\(\/\).*/{
23398 s//\1/
23399 q
23400 }
23401 s/.*/./; q'`
23402 am_filepart=`$as_basename -- "$am_mf" ||
23403 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23404 X"$am_mf" : 'X\(//\)$' \| \
23405 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23406 printf "%s\n" X/"$am_mf" |
23407 sed '/^.*\/\([^/][^/]*\)\/*$/{
23408 s//\1/
23409 q
23410 }
23411 /^X\/\(\/\/\)$/{
23412 s//\1/
23413 q
23414 }
23415 /^X\/\(\/\).*/{
23416 s//\1/
23417 q
23418 }
23419 s/.*/./; q'`
23420 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23421 && sed -e '/# am--include-marker/d' "$am_filepart" \
23422 | $MAKE -f - am--depfiles" >&5
23423 (cd "$am_dirpart" \
23424 && sed -e '/# am--include-marker/d' "$am_filepart" \
23425 | $MAKE -f - am--depfiles) >&5 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } || am_rc=$?
23429 done
23430 if test $am_rc -ne 0; then
23431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23433 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23434 for automatic dependency tracking. If GNU make was not used, consider
23435 re-running the configure script with MAKE=\"gmake\" (or whatever is
23436 necessary). You can also try re-running configure with the
23437 '--disable-dependency-tracking' option to at least be able to build
23438 the package (albeit without support for automatic dependency tracking).
23439 See \`config.log' for more details" "$LINENO" 5; }
23440 fi
23441 { am_dirpart=; unset am_dirpart;}
23442 { am_filepart=; unset am_filepart;}
23443 { am_mf=; unset am_mf;}
23444 { am_rc=; unset am_rc;}
23445 rm -f conftest-deps.mk
23446 }
23447 ;;
23448 "libtool":C)
23449
23450 # See if we are running on zsh, and set the options that allow our
23451 # commands through without removal of \ escapes.
23452 if test -n "${ZSH_VERSION+set}"; then
23453 setopt NO_GLOB_SUBST
23454 fi
23455
23456 cfgfile=${ofile}T
23457 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23458 $RM "$cfgfile"
23459
23460 cat <<_LT_EOF >> "$cfgfile"
23461 #! $SHELL
23462 # Generated automatically by $as_me ($PACKAGE) $VERSION
23463 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23464 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23465
23466 # Provide generalized library-building support services.
23467 # Written by Gordon Matzigkeit, 1996
23468
23469 # Copyright (C) 2014 Free Software Foundation, Inc.
23470 # This is free software; see the source for copying conditions. There is NO
23471 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23472
23473 # GNU Libtool is free software; you can redistribute it and/or modify
23474 # it under the terms of the GNU General Public License as published by
23475 # the Free Software Foundation; either version 2 of of the License, or
23476 # (at your option) any later version.
23477 #
23478 # As a special exception to the GNU General Public License, if you
23479 # distribute this file as part of a program or library that is built
23480 # using GNU Libtool, you may include this file under the same
23481 # distribution terms that you use for the rest of that program.
23482 #
23483 # GNU Libtool is distributed in the hope that it will be useful, but
23484 # WITHOUT ANY WARRANTY; without even the implied warranty of
23485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23486 # GNU General Public License for more details.
23487 #
23488 # You should have received a copy of the GNU General Public License
23489 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23490
23491
23492 # The names of the tagged configurations supported by this script.
23493 available_tags='CXX '
23494
23495 # Configured defaults for sys_lib_dlsearch_path munging.
23496 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23497
23498 # ### BEGIN LIBTOOL CONFIG
23499
23500 # Which release of libtool.m4 was used?
23501 macro_version=$macro_version
23502 macro_revision=$macro_revision
23503
23504 # Assembler program.
23505 AS=$lt_AS
23506
23507 # DLL creation program.
23508 DLLTOOL=$lt_DLLTOOL
23509
23510 # Object dumper program.
23511 OBJDUMP=$lt_OBJDUMP
23512
23513 # Whether or not to build static libraries.
23514 build_old_libs=$enable_static
23515
23516 # What type of objects to build.
23517 pic_mode=$pic_mode
23518
23519 # Whether or not to build shared libraries.
23520 build_libtool_libs=$enable_shared
23521
23522 # Whether or not to optimize for fast installation.
23523 fast_install=$enable_fast_install
23524
23525 # Shared archive member basename,for filename based shared library versioning on AIX.
23526 shared_archive_member_spec=$shared_archive_member_spec
23527
23528 # Shell to use when invoking shell scripts.
23529 SHELL=$lt_SHELL
23530
23531 # An echo program that protects backslashes.
23532 ECHO=$lt_ECHO
23533
23534 # The PATH separator for the build system.
23535 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23536
23537 # The host system.
23538 host_alias=$host_alias
23539 host=$host
23540 host_os=$host_os
23541
23542 # The build system.
23543 build_alias=$build_alias
23544 build=$build
23545 build_os=$build_os
23546
23547 # A sed program that does not truncate output.
23548 SED=$lt_SED
23549
23550 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23551 Xsed="\$SED -e 1s/^X//"
23552
23553 # A grep program that handles long lines.
23554 GREP=$lt_GREP
23555
23556 # An ERE matcher.
23557 EGREP=$lt_EGREP
23558
23559 # A literal string matcher.
23560 FGREP=$lt_FGREP
23561
23562 # A BSD- or MS-compatible name lister.
23563 NM=$lt_NM
23564
23565 # Whether we need soft or hard links.
23566 LN_S=$lt_LN_S
23567
23568 # What is the maximum length of a command?
23569 max_cmd_len=$max_cmd_len
23570
23571 # Object file suffix (normally "o").
23572 objext=$ac_objext
23573
23574 # Executable file suffix (normally "").
23575 exeext=$exeext
23576
23577 # whether the shell understands "unset".
23578 lt_unset=$lt_unset
23579
23580 # turn spaces into newlines.
23581 SP2NL=$lt_lt_SP2NL
23582
23583 # turn newlines into spaces.
23584 NL2SP=$lt_lt_NL2SP
23585
23586 # convert \$build file names to \$host format.
23587 to_host_file_cmd=$lt_cv_to_host_file_cmd
23588
23589 # convert \$build files to toolchain format.
23590 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23591
23592 # Method to check whether dependent libraries are shared objects.
23593 deplibs_check_method=$lt_deplibs_check_method
23594
23595 # Command to use when deplibs_check_method = "file_magic".
23596 file_magic_cmd=$lt_file_magic_cmd
23597
23598 # How to find potential files when deplibs_check_method = "file_magic".
23599 file_magic_glob=$lt_file_magic_glob
23600
23601 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23602 want_nocaseglob=$lt_want_nocaseglob
23603
23604 # Command to associate shared and link libraries.
23605 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23606
23607 # The archiver.
23608 AR=$lt_AR
23609
23610 # Flags to create an archive.
23611 AR_FLAGS=$lt_AR_FLAGS
23612
23613 # How to feed a file listing to the archiver.
23614 archiver_list_spec=$lt_archiver_list_spec
23615
23616 # A symbol stripping program.
23617 STRIP=$lt_STRIP
23618
23619 # Commands used to install an old-style archive.
23620 RANLIB=$lt_RANLIB
23621 old_postinstall_cmds=$lt_old_postinstall_cmds
23622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23623
23624 # Whether to use a lock for old archive extraction.
23625 lock_old_archive_extraction=$lock_old_archive_extraction
23626
23627 # A C compiler.
23628 LTCC=$lt_CC
23629
23630 # LTCC compiler flags.
23631 LTCFLAGS=$lt_CFLAGS
23632
23633 # Take the output of nm and produce a listing of raw symbols and C names.
23634 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23635
23636 # Transform the output of nm in a proper C declaration.
23637 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23638
23639 # Transform the output of nm into a list of symbols to manually relocate.
23640 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23641
23642 # Transform the output of nm in a C name address pair.
23643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23644
23645 # Transform the output of nm in a C name address pair when lib prefix is needed.
23646 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23647
23648 # The name lister interface.
23649 nm_interface=$lt_lt_cv_nm_interface
23650
23651 # Specify filename containing input files for \$NM.
23652 nm_file_list_spec=$lt_nm_file_list_spec
23653
23654 # The root where to search for dependent libraries,and where our libraries should be installed.
23655 lt_sysroot=$lt_sysroot
23656
23657 # Command to truncate a binary pipe.
23658 lt_truncate_bin=$lt_lt_cv_truncate_bin
23659
23660 # The name of the directory that contains temporary libtool files.
23661 objdir=$objdir
23662
23663 # Used to examine libraries when file_magic_cmd begins with "file".
23664 MAGIC_CMD=$MAGIC_CMD
23665
23666 # Must we lock files when doing compilation?
23667 need_locks=$lt_need_locks
23668
23669 # Manifest tool.
23670 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23671
23672 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23673 DSYMUTIL=$lt_DSYMUTIL
23674
23675 # Tool to change global to local symbols on Mac OS X.
23676 NMEDIT=$lt_NMEDIT
23677
23678 # Tool to manipulate fat objects and archives on Mac OS X.
23679 LIPO=$lt_LIPO
23680
23681 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23682 OTOOL=$lt_OTOOL
23683
23684 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23685 OTOOL64=$lt_OTOOL64
23686
23687 # Old archive suffix (normally "a").
23688 libext=$libext
23689
23690 # Shared library suffix (normally ".so").
23691 shrext_cmds=$lt_shrext_cmds
23692
23693 # The commands to extract the exported symbol list from a shared archive.
23694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23695
23696 # Variables whose values should be saved in libtool wrapper scripts and
23697 # restored at link time.
23698 variables_saved_for_relink=$lt_variables_saved_for_relink
23699
23700 # Do we need the "lib" prefix for modules?
23701 need_lib_prefix=$need_lib_prefix
23702
23703 # Do we need a version for libraries?
23704 need_version=$need_version
23705
23706 # Library versioning type.
23707 version_type=$version_type
23708
23709 # Shared library runtime path variable.
23710 runpath_var=$runpath_var
23711
23712 # Shared library path variable.
23713 shlibpath_var=$shlibpath_var
23714
23715 # Is shlibpath searched before the hard-coded library search path?
23716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23717
23718 # Format of library name prefix.
23719 libname_spec=$lt_libname_spec
23720
23721 # List of archive names. First name is the real one, the rest are links.
23722 # The last name is the one that the linker finds with -lNAME
23723 library_names_spec=$lt_library_names_spec
23724
23725 # The coded name of the library, if different from the real name.
23726 soname_spec=$lt_soname_spec
23727
23728 # Permission mode override for installation of shared libraries.
23729 install_override_mode=$lt_install_override_mode
23730
23731 # Command to use after installation of a shared archive.
23732 postinstall_cmds=$lt_postinstall_cmds
23733
23734 # Command to use after uninstallation of a shared archive.
23735 postuninstall_cmds=$lt_postuninstall_cmds
23736
23737 # Commands used to finish a libtool library installation in a directory.
23738 finish_cmds=$lt_finish_cmds
23739
23740 # As "finish_cmds", except a single script fragment to be evaled but
23741 # not shown.
23742 finish_eval=$lt_finish_eval
23743
23744 # Whether we should hardcode library paths into libraries.
23745 hardcode_into_libs=$hardcode_into_libs
23746
23747 # Compile-time system search path for libraries.
23748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23749
23750 # Detected run-time system search path for libraries.
23751 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23752
23753 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23754 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23755
23756 # Whether dlopen is supported.
23757 dlopen_support=$enable_dlopen
23758
23759 # Whether dlopen of programs is supported.
23760 dlopen_self=$enable_dlopen_self
23761
23762 # Whether dlopen of statically linked programs is supported.
23763 dlopen_self_static=$enable_dlopen_self_static
23764
23765 # Commands to strip libraries.
23766 old_striplib=$lt_old_striplib
23767 striplib=$lt_striplib
23768
23769
23770 # The linker used to build libraries.
23771 LD=$lt_LD
23772
23773 # How to create reloadable object files.
23774 reload_flag=$lt_reload_flag
23775 reload_cmds=$lt_reload_cmds
23776
23777 # Commands used to build an old-style archive.
23778 old_archive_cmds=$lt_old_archive_cmds
23779
23780 # A language specific compiler.
23781 CC=$lt_compiler
23782
23783 # Is the compiler the GNU compiler?
23784 with_gcc=$GCC
23785
23786 # Compiler flag to turn off builtin functions.
23787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23788
23789 # Additional compiler flags for building library objects.
23790 pic_flag=$lt_lt_prog_compiler_pic
23791
23792 # How to pass a linker flag through the compiler.
23793 wl=$lt_lt_prog_compiler_wl
23794
23795 # Compiler flag to prevent dynamic linking.
23796 link_static_flag=$lt_lt_prog_compiler_static
23797
23798 # Does compiler simultaneously support -c and -o options?
23799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23800
23801 # Whether or not to add -lc for building shared libraries.
23802 build_libtool_need_lc=$archive_cmds_need_lc
23803
23804 # Whether or not to disallow shared libs when runtime libs are static.
23805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23806
23807 # Compiler flag to allow reflexive dlopens.
23808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23809
23810 # Compiler flag to generate shared objects directly from archives.
23811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23812
23813 # Whether the compiler copes with passing no objects directly.
23814 compiler_needs_object=$lt_compiler_needs_object
23815
23816 # Create an old-style archive from a shared archive.
23817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23818
23819 # Create a temporary old-style archive to link instead of a shared archive.
23820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23821
23822 # Commands used to build a shared archive.
23823 archive_cmds=$lt_archive_cmds
23824 archive_expsym_cmds=$lt_archive_expsym_cmds
23825
23826 # Commands used to build a loadable module if different from building
23827 # a shared archive.
23828 module_cmds=$lt_module_cmds
23829 module_expsym_cmds=$lt_module_expsym_cmds
23830
23831 # Whether we are building with GNU ld or not.
23832 with_gnu_ld=$lt_with_gnu_ld
23833
23834 # Flag that allows shared libraries with undefined symbols to be built.
23835 allow_undefined_flag=$lt_allow_undefined_flag
23836
23837 # Flag that enforces no undefined symbols.
23838 no_undefined_flag=$lt_no_undefined_flag
23839
23840 # Flag to hardcode \$libdir into a binary during linking.
23841 # This must work even if \$libdir does not exist
23842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23843
23844 # Whether we need a single "-rpath" flag with a separated argument.
23845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23846
23847 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23848 # DIR into the resulting binary.
23849 hardcode_direct=$hardcode_direct
23850
23851 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23852 # DIR into the resulting binary and the resulting library dependency is
23853 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23854 # library is relocated.
23855 hardcode_direct_absolute=$hardcode_direct_absolute
23856
23857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23858 # into the resulting binary.
23859 hardcode_minus_L=$hardcode_minus_L
23860
23861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23862 # into the resulting binary.
23863 hardcode_shlibpath_var=$hardcode_shlibpath_var
23864
23865 # Set to "yes" if building a shared library automatically hardcodes DIR
23866 # into the library and all subsequent libraries and executables linked
23867 # against it.
23868 hardcode_automatic=$hardcode_automatic
23869
23870 # Set to yes if linker adds runtime paths of dependent libraries
23871 # to runtime path list.
23872 inherit_rpath=$inherit_rpath
23873
23874 # Whether libtool must link a program against all its dependency libraries.
23875 link_all_deplibs=$link_all_deplibs
23876
23877 # Set to "yes" if exported symbols are required.
23878 always_export_symbols=$always_export_symbols
23879
23880 # The commands to list exported symbols.
23881 export_symbols_cmds=$lt_export_symbols_cmds
23882
23883 # Symbols that should not be listed in the preloaded symbols.
23884 exclude_expsyms=$lt_exclude_expsyms
23885
23886 # Symbols that must always be exported.
23887 include_expsyms=$lt_include_expsyms
23888
23889 # Commands necessary for linking programs (against libraries) with templates.
23890 prelink_cmds=$lt_prelink_cmds
23891
23892 # Commands necessary for finishing linking programs.
23893 postlink_cmds=$lt_postlink_cmds
23894
23895 # Specify filename containing input files.
23896 file_list_spec=$lt_file_list_spec
23897
23898 # How to hardcode a shared library path into an executable.
23899 hardcode_action=$hardcode_action
23900
23901 # The directories searched by this compiler when creating a shared library.
23902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23903
23904 # Dependencies to place before and after the objects being linked to
23905 # create a shared library.
23906 predep_objects=$lt_predep_objects
23907 postdep_objects=$lt_postdep_objects
23908 predeps=$lt_predeps
23909 postdeps=$lt_postdeps
23910
23911 # The library search path used internally by the compiler when linking
23912 # a shared library.
23913 compiler_lib_search_path=$lt_compiler_lib_search_path
23914
23915 # ### END LIBTOOL CONFIG
23916
23917 _LT_EOF
23918
23919 cat <<'_LT_EOF' >> "$cfgfile"
23920
23921 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23922
23923 # func_munge_path_list VARIABLE PATH
23924 # -----------------------------------
23925 # VARIABLE is name of variable containing _space_ separated list of
23926 # directories to be munged by the contents of PATH, which is string
23927 # having a format:
23928 # "DIR[:DIR]:"
23929 # string "DIR[ DIR]" will be prepended to VARIABLE
23930 # ":DIR[:DIR]"
23931 # string "DIR[ DIR]" will be appended to VARIABLE
23932 # "DIRP[:DIRP]::[DIRA:]DIRA"
23933 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23934 # "DIRA[ DIRA]" will be appended to VARIABLE
23935 # "DIR[:DIR]"
23936 # VARIABLE will be replaced by "DIR[ DIR]"
23937 func_munge_path_list ()
23938 {
23939 case x$2 in
23940 x)
23941 ;;
23942 *:)
23943 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23944 ;;
23945 x:*)
23946 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23947 ;;
23948 *::*)
23949 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23950 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23951 ;;
23952 *)
23953 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23954 ;;
23955 esac
23956 }
23957
23958
23959 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23960 func_cc_basename ()
23961 {
23962 for cc_temp in $*""; do
23963 case $cc_temp in
23964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23966 \-*) ;;
23967 *) break;;
23968 esac
23969 done
23970 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23971 }
23972
23973
23974 # ### END FUNCTIONS SHARED WITH CONFIGURE
23975
23976 _LT_EOF
23977
23978 case $host_os in
23979 aix3*)
23980 cat <<\_LT_EOF >> "$cfgfile"
23981 # AIX sometimes has problems with the GCC collect2 program. For some
23982 # reason, if we set the COLLECT_NAMES environment variable, the problems
23983 # vanish in a puff of smoke.
23984 if test set != "${COLLECT_NAMES+set}"; then
23985 COLLECT_NAMES=
23986 export COLLECT_NAMES
23987 fi
23988 _LT_EOF
23989 ;;
23990 esac
23991
23992
23993
23994 ltmain=$ac_aux_dir/ltmain.sh
23995
23996
23997 # We use sed instead of cat because bash on DJGPP gets confused if
23998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23999 # text mode, it properly converts lines to CR/LF. This bash problem
24000 # is reportedly fixed, but why not run on old versions too?
24001 sed '$q' "$ltmain" >> "$cfgfile" \
24002 || (rm -f "$cfgfile"; exit 1)
24003
24004 mv -f "$cfgfile" "$ofile" ||
24005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24006 chmod +x "$ofile"
24007
24008
24009 cat <<_LT_EOF >> "$ofile"
24010
24011 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24012
24013 # The linker used to build libraries.
24014 LD=$lt_LD_CXX
24015
24016 # How to create reloadable object files.
24017 reload_flag=$lt_reload_flag_CXX
24018 reload_cmds=$lt_reload_cmds_CXX
24019
24020 # Commands used to build an old-style archive.
24021 old_archive_cmds=$lt_old_archive_cmds_CXX
24022
24023 # A language specific compiler.
24024 CC=$lt_compiler_CXX
24025
24026 # Is the compiler the GNU compiler?
24027 with_gcc=$GCC_CXX
24028
24029 # Compiler flag to turn off builtin functions.
24030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24031
24032 # Additional compiler flags for building library objects.
24033 pic_flag=$lt_lt_prog_compiler_pic_CXX
24034
24035 # How to pass a linker flag through the compiler.
24036 wl=$lt_lt_prog_compiler_wl_CXX
24037
24038 # Compiler flag to prevent dynamic linking.
24039 link_static_flag=$lt_lt_prog_compiler_static_CXX
24040
24041 # Does compiler simultaneously support -c and -o options?
24042 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24043
24044 # Whether or not to add -lc for building shared libraries.
24045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24046
24047 # Whether or not to disallow shared libs when runtime libs are static.
24048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24049
24050 # Compiler flag to allow reflexive dlopens.
24051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24052
24053 # Compiler flag to generate shared objects directly from archives.
24054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24055
24056 # Whether the compiler copes with passing no objects directly.
24057 compiler_needs_object=$lt_compiler_needs_object_CXX
24058
24059 # Create an old-style archive from a shared archive.
24060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24061
24062 # Create a temporary old-style archive to link instead of a shared archive.
24063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24064
24065 # Commands used to build a shared archive.
24066 archive_cmds=$lt_archive_cmds_CXX
24067 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24068
24069 # Commands used to build a loadable module if different from building
24070 # a shared archive.
24071 module_cmds=$lt_module_cmds_CXX
24072 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24073
24074 # Whether we are building with GNU ld or not.
24075 with_gnu_ld=$lt_with_gnu_ld_CXX
24076
24077 # Flag that allows shared libraries with undefined symbols to be built.
24078 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24079
24080 # Flag that enforces no undefined symbols.
24081 no_undefined_flag=$lt_no_undefined_flag_CXX
24082
24083 # Flag to hardcode \$libdir into a binary during linking.
24084 # This must work even if \$libdir does not exist
24085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24086
24087 # Whether we need a single "-rpath" flag with a separated argument.
24088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24089
24090 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24091 # DIR into the resulting binary.
24092 hardcode_direct=$hardcode_direct_CXX
24093
24094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24095 # DIR into the resulting binary and the resulting library dependency is
24096 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24097 # library is relocated.
24098 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24099
24100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24101 # into the resulting binary.
24102 hardcode_minus_L=$hardcode_minus_L_CXX
24103
24104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24105 # into the resulting binary.
24106 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24107
24108 # Set to "yes" if building a shared library automatically hardcodes DIR
24109 # into the library and all subsequent libraries and executables linked
24110 # against it.
24111 hardcode_automatic=$hardcode_automatic_CXX
24112
24113 # Set to yes if linker adds runtime paths of dependent libraries
24114 # to runtime path list.
24115 inherit_rpath=$inherit_rpath_CXX
24116
24117 # Whether libtool must link a program against all its dependency libraries.
24118 link_all_deplibs=$link_all_deplibs_CXX
24119
24120 # Set to "yes" if exported symbols are required.
24121 always_export_symbols=$always_export_symbols_CXX
24122
24123 # The commands to list exported symbols.
24124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24125
24126 # Symbols that should not be listed in the preloaded symbols.
24127 exclude_expsyms=$lt_exclude_expsyms_CXX
24128
24129 # Symbols that must always be exported.
24130 include_expsyms=$lt_include_expsyms_CXX
24131
24132 # Commands necessary for linking programs (against libraries) with templates.
24133 prelink_cmds=$lt_prelink_cmds_CXX
24134
24135 # Commands necessary for finishing linking programs.
24136 postlink_cmds=$lt_postlink_cmds_CXX
24137
24138 # Specify filename containing input files.
24139 file_list_spec=$lt_file_list_spec_CXX
24140
24141 # How to hardcode a shared library path into an executable.
24142 hardcode_action=$hardcode_action_CXX
24143
24144 # The directories searched by this compiler when creating a shared library.
24145 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24146
24147 # Dependencies to place before and after the objects being linked to
24148 # create a shared library.
24149 predep_objects=$lt_predep_objects_CXX
24150 postdep_objects=$lt_postdep_objects_CXX
24151 predeps=$lt_predeps_CXX
24152 postdeps=$lt_postdeps_CXX
24153
24154 # The library search path used internally by the compiler when linking
24155 # a shared library.
24156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24157
24158 # ### END LIBTOOL TAG CONFIG: CXX
24159 _LT_EOF
24160
24161 ;;
24162
24163 esac
24164 done # for ac_tag
24165
24166
24167 as_fn_exit 0
24168 _ACEOF
24169 ac_clean_files=$ac_clean_files_save
24170
24171 test $ac_write_fail = 0 ||
24172 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24173
24174
24175 # configure is writing to config.log, and then calls config.status.
24176 # config.status does its own redirection, appending to config.log.
24177 # Unfortunately, on DOS this fails, as config.log is still kept open
24178 # by configure, so config.status won't be able to write to it; its
24179 # output is simply discarded. So we exec the FD to /dev/null,
24180 # effectively closing config.log, so it can be properly (re)opened and
24181 # appended to by config.status. When coming back to configure, we
24182 # need to make the FD available again.
24183 if test "$no_create" != yes; then
24184 ac_cs_success=:
24185 ac_config_status_args=
24186 test "$silent" = yes &&
24187 ac_config_status_args="$ac_config_status_args --quiet"
24188 exec 5>/dev/null
24189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24190 exec 5>>config.log
24191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24192 # would make configure fail if this is the last instruction.
24193 $ac_cs_success || as_fn_exit 1
24194 fi
24195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24197 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24198 fi
24199
24200
24201 # ==============================================
24202 # Display final informations about configuration
24203 # ==============================================
24204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
24205 ==============================================================================
24206 Build configuration:
24207 asan: ${enable_asan}
24208 debug: ${enable_debug}
24209 full-debug: ${enable_full_debug}
24210 docs: ${build_docs}
24211 fuzzers: ${enable_fuzzers}
24212 zip: ${with_zip}
24213 static-tools: ${enable_static_tools}
24214 werror: ${enable_werror}
24215 ==============================================================================
24216 " >&5
24217 printf "%s\n" "$as_me:
24218 ==============================================================================
24219 Build configuration:
24220 asan: ${enable_asan}
24221 debug: ${enable_debug}
24222 full-debug: ${enable_full_debug}
24223 docs: ${build_docs}
24224 fuzzers: ${enable_fuzzers}
24225 zip: ${with_zip}
24226 static-tools: ${enable_static_tools}
24227 werror: ${enable_werror}
24228 ==============================================================================
24229 " >&6;}
24230