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 libkate 0.4.3.
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='libkate'
620 PACKAGE_TARNAME='libkate'
621 PACKAGE_VERSION='0.4.3'
622 PACKAGE_STRING='libkate 0.4.3'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="include/kate/kate.h.in"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 LIBOBJS
663 STREAMS
664 CFLAGS_FORTIFY_SOURCE
665 CFLAGS_DEBUG
666 CWARNFLAGS_FULL
667 CWARNFLAGS_LIGHT
668 CONST
669 UINT64_T
670 INT64_T
671 UINT32_T
672 INT32_T
673 VERSION_PATCH
674 VERSION_MINOR
675 VERSION_MAJOR
676 INCLUDE_INT_HEADER
677 LIBOGGKATE_SHARED_VERSION
678 LIBKATE_SHARED_VERSION
679 HAVE_PNG_FALSE
680 HAVE_PNG_TRUE
681 PNG_LIBS
682 PNG_CFLAGS
683 HAVE_OGG_FALSE
684 HAVE_OGG_TRUE
685 OGG_LIBS
686 OGG_CFLAGS
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 GENHASH
691 HAVE_WXPYTHON_FALSE
692 HAVE_WXPYTHON_TRUE
693 HAVE_PYTHON_FALSE
694 HAVE_PYTHON_TRUE
695 pkgpyexecdir
696 pyexecdir
697 pkgpythondir
698 pythondir
699 PYTHON_EXEC_PREFIX
700 PYTHON_PREFIX
701 PYTHON_PLATFORM
702 PYTHON_VERSION
703 PYTHON
704 HAVE_OGG_MERGE_FALSE
705 HAVE_OGG_MERGE_TRUE
706 HAVE_OGGZ_TOOLS_FALSE
707 HAVE_OGGZ_TOOLS_TRUE
708 OGG_DIFF
709 OGG_MERGE
710 OGGZ
711 VALGRIND
712 HAVE_DOXYGEN_FALSE
713 HAVE_DOXYGEN_TRUE
714 HAVE_DOXYGEN
715 HAVE_PKG_CONFIG
716 YFLAGS
717 YACC
718 LEXLIB
719 LEX_OUTPUT_ROOT
720 LEX
721 LT_SYS_LIBRARY_PATH
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 RANLIB
729 DLLTOOL
730 OBJDUMP
731 FILECMD
732 LN_S
733 NM
734 ac_ct_DUMPBIN
735 DUMPBIN
736 LD
737 FGREP
738 EGREP
739 GREP
740 SED
741 LIBTOOL
742 ac_ct_AR
743 AR
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 CSCOPE
765 ETAGS
766 CTAGS
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_os
791 target_vendor
792 target_cpu
793 target
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 runstatedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL
841 am__quote'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_silent_rules
846 enable_dependency_tracking
847 enable_shared
848 enable_static
849 with_pic
850 enable_fast_install
851 with_aix_soname
852 with_gnu_ld
853 with_sysroot
854 enable_libtool_lock
855 enable_doc
856 enable_valgrind
857 with_python_sys_prefix
858 with_python_prefix
859 with_python_exec_prefix
860 enable_gcc_werror
861 enable_more_warnings
862 enable_debug
863 enable_fortify_source
864 '
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 LT_SYS_LIBRARY_PATH
874 YACC
875 YFLAGS
876 PYTHON
877 PKG_CONFIG
878 PKG_CONFIG_PATH
879 PKG_CONFIG_LIBDIR
880 OGG_CFLAGS
881 OGG_LIBS
882 PNG_CFLAGS
883 PNG_LIBS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 runstatedir='${localstatedir}/run'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
960
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
975
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
980
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: \`$ac_useropt'"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1013
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -runstatedir | --runstatedir | --runstatedi | --runstated \
1174 | --runstate | --runstat | --runsta | --runst | --runs \
1175 | --run | --ru | --r)
1176 ac_prev=runstatedir ;;
1177 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179 | --run=* | --ru=* | --r=*)
1180 runstatedir=$ac_optarg ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: \`$ac_useropt'"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir runstatedir
1320 do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 printf "%s\n" X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397 else
1398 ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures libkate 0.4.3 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/libkate]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of libkate 0.4.3:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-silent-rules less verbose build output (undo: "make V=1")
1513 --disable-silent-rules verbose build output (undo: "make V=0")
1514 --enable-dependency-tracking
1515 do not reject slow dependency extractors
1516 --disable-dependency-tracking
1517 speeds up one-time build
1518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --disable-doc Disable building documentation (default enabled)
1524 --enable-valgrind Run the tests with Valgrind (default disabled)
1525 --enable-gcc-werror enable -Werror in all Makefiles
1526 --enable-more-warnings Enable more warnings (default disabled)
1527 --enable-debug Enable debug code and logs (default disabled)
1528 --enable-fortify-source Build with -D_FORTIFY_SOURCE=2 (default disabled)
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1534 both]
1535 --with-aix-soname=aix|svr4|both
1536 shared library versioning (aka "SONAME") variant to
1537 provide on AIX, [default=aix].
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1540 compiler's sysroot if not specified).
1541 --with-python-sys-prefix
1542 use Python's sys.prefix and sys.exec_prefix values
1543 --with-python_prefix override the default PYTHON_PREFIX
1544 --with-python_exec_prefix
1545 override the default PYTHON_EXEC_PREFIX
1546
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 LT_SYS_LIBRARY_PATH
1556 User-defined run-time library search path.
1557 YACC The `Yet Another Compiler Compiler' implementation to use.
1558 Defaults to the first program found out of: `bison -y', `byacc',
1559 `yacc'.
1560 YFLAGS The list of arguments that will be passed by default to $YACC.
1561 This script will default YFLAGS to the empty string to avoid a
1562 default value of `-d' given by some make applications.
1563 PYTHON the Python interpreter
1564 PKG_CONFIG path to pkg-config utility
1565 PKG_CONFIG_PATH
1566 directories to add to pkg-config's search path
1567 PKG_CONFIG_LIBDIR
1568 path overriding pkg-config's built-in search path
1569 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1570 OGG_LIBS linker flags for OGG, overriding pkg-config
1571 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1572 PNG_LIBS linker flags for PNG, overriding pkg-config
1573
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1576
1577 Report bugs to the package provider.
1578 _ACEOF
1579 ac_status=$?
1580 fi
1581
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1589
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *)
1593 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1605
1606 case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for configure.gnu first; this name is used for a wrapper for
1624 # Metaconfig's "Configure" on case-insensitive file systems.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 libkate configure 0.4.3
1642 generated by GNU Autoconf 2.71
1643
1644 Copyright (C) 2021 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648 exit
1649 fi
1650
1651 ## ------------------------ ##
1652 ## Autoconf initialization. ##
1653 ## ------------------------ ##
1654
1655 # ac_fn_c_try_compile LINENO
1656 # --------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest.beam
1662 if { { ac_try="$ac_compile"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 printf "%s\n" "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext
1681 then :
1682 ac_retval=0
1683 else $as_nop
1684 printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_compile
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 printf "%s\n" "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }
1723 then :
1724 ac_retval=0
1725 else $as_nop
1726 printf "%s\n" "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 printf %s "checking for $2... " >&6; }
1750 if eval test \${$3+y}
1751 then :
1752 printf %s "(cached) " >&6
1753 else $as_nop
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else $as_nop
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_header_compile
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 printf %s "checking for $2... " >&6; }
1782 if eval test \${$3+y}
1783 then :
1784 printf %s "(cached) " >&6
1785 else $as_nop
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1790 #define $2 innocuous_$2
1791
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char $2 (); below. */
1794
1795 #include <limits.h>
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main (void)
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"
1821 then :
1822 eval "$3=yes"
1823 else $as_nop
1824 eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1827 conftest$ac_exeext conftest.$ac_ext
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_func
1835
1836 # ac_fn_c_find_intX_t LINENO BITS VAR
1837 # -----------------------------------
1838 # Finds a signed integer type with width BITS, setting cache variable VAR
1839 # accordingly.
1840 ac_fn_c_find_intX_t ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1844 printf %s "checking for int$2_t... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847 printf %s "(cached) " >&6
1848 else $as_nop
1849 eval "$3=no"
1850 # Order is important - never check a type that is potentially smaller
1851 # than half of the expected target width.
1852 for ac_type in int$2_t 'int' 'long int' \
1853 'long long int' 'short int' 'signed char'; do
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $ac_includes_default
1857 enum { N = $2 / 2 - 1 };
1858 int
1859 main (void)
1860 {
1861 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1862 test_array [0] = 0;
1863 return test_array [0];
1864
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"
1870 then :
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 $ac_includes_default
1874 enum { N = $2 / 2 - 1 };
1875 int
1876 main (void)
1877 {
1878 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1879 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1880 test_array [0] = 0;
1881 return test_array [0];
1882
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"
1888 then :
1889
1890 else $as_nop
1891 case $ac_type in #(
1892 int$2_t) :
1893 eval "$3=yes" ;; #(
1894 *) :
1895 eval "$3=\$ac_type" ;;
1896 esac
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1901 if eval test \"x\$"$3"\" = x"no"
1902 then :
1903
1904 else $as_nop
1905 break
1906 fi
1907 done
1908 fi
1909 eval ac_res=\$$3
1910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 printf "%s\n" "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_find_intX_t
1915
1916 # ac_fn_c_find_uintX_t LINENO BITS VAR
1917 # ------------------------------------
1918 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1919 # accordingly.
1920 ac_fn_c_find_uintX_t ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1924 printf %s "checking for uint$2_t... " >&6; }
1925 if eval test \${$3+y}
1926 then :
1927 printf %s "(cached) " >&6
1928 else $as_nop
1929 eval "$3=no"
1930 # Order is important - never check a type that is potentially smaller
1931 # than half of the expected target width.
1932 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1933 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $ac_includes_default
1937 int
1938 main (void)
1939 {
1940 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1941 test_array [0] = 0;
1942 return test_array [0];
1943
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"
1949 then :
1950 case $ac_type in #(
1951 uint$2_t) :
1952 eval "$3=yes" ;; #(
1953 *) :
1954 eval "$3=\$ac_type" ;;
1955 esac
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1958 if eval test \"x\$"$3"\" = x"no"
1959 then :
1960
1961 else $as_nop
1962 break
1963 fi
1964 done
1965 fi
1966 eval ac_res=\$$3
1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 printf "%s\n" "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_find_uintX_t
1972
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 printf %s "checking for $2... " >&6; }
1982 if eval test \${$3+y}
1983 then :
1984 printf %s "(cached) " >&6
1985 else $as_nop
1986 eval "$3=no"
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 int
1991 main (void)
1992 {
1993 if (sizeof ($2))
1994 return 0;
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"
2000 then :
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main (void)
2006 {
2007 if (sizeof (($2)))
2008 return 0;
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"
2014 then :
2015
2016 else $as_nop
2017 eval "$3=yes"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2022 fi
2023 eval ac_res=\$$3
2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 printf "%s\n" "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027
2028 } # ac_fn_c_check_type
2029 ac_configure_args_raw=
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 *\'*)
2034 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 as_fn_append ac_configure_args_raw " '$ac_arg'"
2037 done
2038
2039 case $ac_configure_args_raw in
2040 *$as_nl*)
2041 ac_safe_unquote= ;;
2042 *)
2043 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2044 ac_unsafe_a="$ac_unsafe_z#~"
2045 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2046 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2047 esac
2048
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2052
2053 It was created by libkate $as_me 0.4.3, which was
2054 generated by GNU Autoconf 2.71. Invocation command line was
2055
2056 $ $0$ac_configure_args_raw
2057
2058 _ACEOF
2059 exec 5>>config.log
2060 {
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2065
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2074
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2082
2083 _ASUNAME
2084
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 case $as_dir in #(((
2090 '') as_dir=./ ;;
2091 */) ;;
2092 *) as_dir=$as_dir/ ;;
2093 esac
2094 printf "%s\n" "PATH: $as_dir"
2095 done
2096 IFS=$as_save_IFS
2097
2098 } >&5
2099
2100 cat >&5 <<_ACEOF
2101
2102
2103 ## ----------- ##
2104 ## Core tests. ##
2105 ## ----------- ##
2106
2107 _ACEOF
2108
2109
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_configure_args=
2116 ac_configure_args0=
2117 ac_configure_args1=
2118 ac_must_keep_next=false
2119 for ac_pass in 1 2
2120 do
2121 for ac_arg
2122 do
2123 case $ac_arg in
2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126 | -silent | --silent | --silen | --sile | --sil)
2127 continue ;;
2128 *\'*)
2129 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 esac
2131 case $ac_pass in
2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133 2)
2134 as_fn_append ac_configure_args1 " '$ac_arg'"
2135 if test $ac_must_keep_next = true; then
2136 ac_must_keep_next=false # Got value, back to normal.
2137 else
2138 case $ac_arg in
2139 *=* | --config-cache | -C | -disable-* | --disable-* \
2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142 | -with-* | --with-* | -without-* | --without-* | --x)
2143 case "$ac_configure_args0 " in
2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145 esac
2146 ;;
2147 -* ) ac_must_keep_next=true ;;
2148 esac
2149 fi
2150 as_fn_append ac_configure_args " '$ac_arg'"
2151 ;;
2152 esac
2153 done
2154 done
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2157
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log. We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164 # Sanitize IFS.
2165 IFS=" "" $as_nl"
2166 # Save into config.log some information that might help in debugging.
2167 {
2168 echo
2169
2170 printf "%s\n" "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173 echo
2174 # The following way of writing the cache mishandles newlines in values,
2175 (
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in #(
2179 *${as_nl}*)
2180 case $ac_var in #(
2181 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183 esac
2184 case $ac_var in #(
2185 _ | IFS | as_nl) ;; #(
2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187 *) { eval $ac_var=; unset $ac_var;} ;;
2188 esac ;;
2189 esac
2190 done
2191 (set) 2>&1 |
2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
2194 sed -n \
2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 ;; #(
2198 *)
2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200 ;;
2201 esac |
2202 sort
2203 )
2204 echo
2205
2206 printf "%s\n" "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 printf "%s\n" "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
2221 printf "%s\n" "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224 echo
2225 for ac_var in $ac_subst_files
2226 do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 printf "%s\n" "$ac_var='\''$ac_val'\''"
2232 done | sort
2233 echo
2234 fi
2235
2236 if test -s confdefs.h; then
2237 printf "%s\n" "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240 echo
2241 cat confdefs.h
2242 echo
2243 fi
2244 test "$ac_signal" != 0 &&
2245 printf "%s\n" "$as_me: caught signal $ac_signal"
2246 printf "%s\n" "$as_me: exit $exit_status"
2247 } >&5
2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250 exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 printf "%s\n" "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2265
2266 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2267
2268 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2269
2270 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2271
2272 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2273
2274 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2275
2276
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2279 if test -n "$CONFIG_SITE"; then
2280 ac_site_files="$CONFIG_SITE"
2281 elif test "x$prefix" != xNONE; then
2282 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2283 else
2284 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2285 fi
2286
2287 for ac_site_file in $ac_site_files
2288 do
2289 case $ac_site_file in #(
2290 */*) :
2291 ;; #(
2292 *) :
2293 ac_site_file=./$ac_site_file ;;
2294 esac
2295 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2298 sed 's/^/| /' "$ac_site_file" >&5
2299 . "$ac_site_file" \
2300 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2302 as_fn_error $? "failed to load site script $ac_site_file
2303 See \`config.log' for more details" "$LINENO" 5; }
2304 fi
2305 done
2306
2307 if test -r "$cache_file"; then
2308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2313 case $cache_file in
2314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
2316 esac
2317 fi
2318 else
2319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2321 >$cache_file
2322 fi
2323
2324 # Test code for whether the C compiler supports C89 (global declarations)
2325 ac_c_conftest_c89_globals='
2326 /* Does the compiler advertise C89 conformance?
2327 Do not test the value of __STDC__, because some compilers set it to 0
2328 while being otherwise adequately conformant. */
2329 #if !defined __STDC__
2330 # error "Compiler does not advertise C89 conformance"
2331 #endif
2332
2333 #include <stddef.h>
2334 #include <stdarg.h>
2335 struct stat;
2336 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2337 struct buf { int x; };
2338 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2339 static char *e (p, i)
2340 char **p;
2341 int i;
2342 {
2343 return p[i];
2344 }
2345 static char *f (char * (*g) (char **, int), char **p, ...)
2346 {
2347 char *s;
2348 va_list v;
2349 va_start (v,p);
2350 s = g (p, va_arg (v,int));
2351 va_end (v);
2352 return s;
2353 }
2354
2355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2356 function prototypes and stuff, but not \xHH hex character constants.
2357 These do not provoke an error unfortunately, instead are silently treated
2358 as an "x". The following induces an error, until -std is added to get
2359 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2360 array size at least. It is necessary to write \x00 == 0 to get something
2361 that is true only with -std. */
2362 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2363
2364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2365 inside strings and character constants. */
2366 #define FOO(x) '\''x'\''
2367 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2368
2369 int test (int i, double x);
2370 struct s1 {int (*f) (int a);};
2371 struct s2 {int (*f) (double a);};
2372 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2373 int, int);'
2374
2375 # Test code for whether the C compiler supports C89 (body of main).
2376 ac_c_conftest_c89_main='
2377 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2378 '
2379
2380 # Test code for whether the C compiler supports C99 (global declarations)
2381 ac_c_conftest_c99_globals='
2382 // Does the compiler advertise C99 conformance?
2383 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2384 # error "Compiler does not advertise C99 conformance"
2385 #endif
2386
2387 #include <stdbool.h>
2388 extern int puts (const char *);
2389 extern int printf (const char *, ...);
2390 extern int dprintf (int, const char *, ...);
2391 extern void *malloc (size_t);
2392
2393 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2394 // dprintf is used instead of fprintf to avoid needing to declare
2395 // FILE and stderr.
2396 #define debug(...) dprintf (2, __VA_ARGS__)
2397 #define showlist(...) puts (#__VA_ARGS__)
2398 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2399 static void
2400 test_varargs_macros (void)
2401 {
2402 int x = 1234;
2403 int y = 5678;
2404 debug ("Flag");
2405 debug ("X = %d\n", x);
2406 showlist (The first, second, and third items.);
2407 report (x>y, "x is %d but y is %d", x, y);
2408 }
2409
2410 // Check long long types.
2411 #define BIG64 18446744073709551615ull
2412 #define BIG32 4294967295ul
2413 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2414 #if !BIG_OK
2415 #error "your preprocessor is broken"
2416 #endif
2417 #if BIG_OK
2418 #else
2419 #error "your preprocessor is broken"
2420 #endif
2421 static long long int bignum = -9223372036854775807LL;
2422 static unsigned long long int ubignum = BIG64;
2423
2424 struct incomplete_array
2425 {
2426 int datasize;
2427 double data[];
2428 };
2429
2430 struct named_init {
2431 int number;
2432 const wchar_t *name;
2433 double average;
2434 };
2435
2436 typedef const char *ccp;
2437
2438 static inline int
2439 test_restrict (ccp restrict text)
2440 {
2441 // See if C++-style comments work.
2442 // Iterate through items via the restricted pointer.
2443 // Also check for declarations in for loops.
2444 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2445 continue;
2446 return 0;
2447 }
2448
2449 // Check varargs and va_copy.
2450 static bool
2451 test_varargs (const char *format, ...)
2452 {
2453 va_list args;
2454 va_start (args, format);
2455 va_list args_copy;
2456 va_copy (args_copy, args);
2457
2458 const char *str = "";
2459 int number = 0;
2460 float fnumber = 0;
2461
2462 while (*format)
2463 {
2464 switch (*format++)
2465 {
2466 case '\''s'\'': // string
2467 str = va_arg (args_copy, const char *);
2468 break;
2469 case '\''d'\'': // int
2470 number = va_arg (args_copy, int);
2471 break;
2472 case '\''f'\'': // float
2473 fnumber = va_arg (args_copy, double);
2474 break;
2475 default:
2476 break;
2477 }
2478 }
2479 va_end (args_copy);
2480 va_end (args);
2481
2482 return *str && number && fnumber;
2483 }
2484 '
2485
2486 # Test code for whether the C compiler supports C99 (body of main).
2487 ac_c_conftest_c99_main='
2488 // Check bool.
2489 _Bool success = false;
2490 success |= (argc != 0);
2491
2492 // Check restrict.
2493 if (test_restrict ("String literal") == 0)
2494 success = true;
2495 char *restrict newvar = "Another string";
2496
2497 // Check varargs.
2498 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2499 test_varargs_macros ();
2500
2501 // Check flexible array members.
2502 struct incomplete_array *ia =
2503 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2504 ia->datasize = 10;
2505 for (int i = 0; i < ia->datasize; ++i)
2506 ia->data[i] = i * 1.234;
2507
2508 // Check named initializers.
2509 struct named_init ni = {
2510 .number = 34,
2511 .name = L"Test wide string",
2512 .average = 543.34343,
2513 };
2514
2515 ni.number = 58;
2516
2517 int dynamic_array[ni.number];
2518 dynamic_array[0] = argv[0][0];
2519 dynamic_array[ni.number - 1] = 543;
2520
2521 // work around unused variable warnings
2522 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2523 || dynamic_array[ni.number - 1] != 543);
2524 '
2525
2526 # Test code for whether the C compiler supports C11 (global declarations)
2527 ac_c_conftest_c11_globals='
2528 // Does the compiler advertise C11 conformance?
2529 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2530 # error "Compiler does not advertise C11 conformance"
2531 #endif
2532
2533 // Check _Alignas.
2534 char _Alignas (double) aligned_as_double;
2535 char _Alignas (0) no_special_alignment;
2536 extern char aligned_as_int;
2537 char _Alignas (0) _Alignas (int) aligned_as_int;
2538
2539 // Check _Alignof.
2540 enum
2541 {
2542 int_alignment = _Alignof (int),
2543 int_array_alignment = _Alignof (int[100]),
2544 char_alignment = _Alignof (char)
2545 };
2546 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2547
2548 // Check _Noreturn.
2549 int _Noreturn does_not_return (void) { for (;;) continue; }
2550
2551 // Check _Static_assert.
2552 struct test_static_assert
2553 {
2554 int x;
2555 _Static_assert (sizeof (int) <= sizeof (long int),
2556 "_Static_assert does not work in struct");
2557 long int y;
2558 };
2559
2560 // Check UTF-8 literals.
2561 #define u8 syntax error!
2562 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2563
2564 // Check duplicate typedefs.
2565 typedef long *long_ptr;
2566 typedef long int *long_ptr;
2567 typedef long_ptr long_ptr;
2568
2569 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2570 struct anonymous
2571 {
2572 union {
2573 struct { int i; int j; };
2574 struct { int k; long int l; } w;
2575 };
2576 int m;
2577 } v1;
2578 '
2579
2580 # Test code for whether the C compiler supports C11 (body of main).
2581 ac_c_conftest_c11_main='
2582 _Static_assert ((offsetof (struct anonymous, i)
2583 == offsetof (struct anonymous, w.k)),
2584 "Anonymous union alignment botch");
2585 v1.i = 2;
2586 v1.w.k = 5;
2587 ok |= v1.i != 5;
2588 '
2589
2590 # Test code for whether the C compiler supports C11 (complete).
2591 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2592 ${ac_c_conftest_c99_globals}
2593 ${ac_c_conftest_c11_globals}
2594
2595 int
2596 main (int argc, char **argv)
2597 {
2598 int ok = 0;
2599 ${ac_c_conftest_c89_main}
2600 ${ac_c_conftest_c99_main}
2601 ${ac_c_conftest_c11_main}
2602 return ok;
2603 }
2604 "
2605
2606 # Test code for whether the C compiler supports C99 (complete).
2607 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2608 ${ac_c_conftest_c99_globals}
2609
2610 int
2611 main (int argc, char **argv)
2612 {
2613 int ok = 0;
2614 ${ac_c_conftest_c89_main}
2615 ${ac_c_conftest_c99_main}
2616 return ok;
2617 }
2618 "
2619
2620 # Test code for whether the C compiler supports C89 (complete).
2621 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2622
2623 int
2624 main (int argc, char **argv)
2625 {
2626 int ok = 0;
2627 ${ac_c_conftest_c89_main}
2628 return ok;
2629 }
2630 "
2631
2632 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2633 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2634 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2635 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2636 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2637 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2638 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2639 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2640 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2641
2642 # Auxiliary files required by this configure script.
2643 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2644
2645 # Locations in which to look for auxiliary files.
2646 ac_aux_dir_candidates="${srcdir}/misc/autotools"
2647
2648 # Search for a directory containing all of the required auxiliary files,
2649 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2650 # If we don't find one directory that contains all the files we need,
2651 # we report the set of missing files from the *first* directory in
2652 # $ac_aux_dir_candidates and give up.
2653 ac_missing_aux_files=""
2654 ac_first_candidate=:
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 as_found=false
2658 for as_dir in $ac_aux_dir_candidates
2659 do
2660 IFS=$as_save_IFS
2661 case $as_dir in #(((
2662 '') as_dir=./ ;;
2663 */) ;;
2664 *) as_dir=$as_dir/ ;;
2665 esac
2666 as_found=:
2667
2668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2669 ac_aux_dir_found=yes
2670 ac_install_sh=
2671 for ac_aux in $ac_aux_files
2672 do
2673 # As a special case, if "install-sh" is required, that requirement
2674 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2675 # and $ac_install_sh is set appropriately for whichever one is found.
2676 if test x"$ac_aux" = x"install-sh"
2677 then
2678 if test -f "${as_dir}install-sh"; then
2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2680 ac_install_sh="${as_dir}install-sh -c"
2681 elif test -f "${as_dir}install.sh"; then
2682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2683 ac_install_sh="${as_dir}install.sh -c"
2684 elif test -f "${as_dir}shtool"; then
2685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2686 ac_install_sh="${as_dir}shtool install -c"
2687 else
2688 ac_aux_dir_found=no
2689 if $ac_first_candidate; then
2690 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2691 else
2692 break
2693 fi
2694 fi
2695 else
2696 if test -f "${as_dir}${ac_aux}"; then
2697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2698 else
2699 ac_aux_dir_found=no
2700 if $ac_first_candidate; then
2701 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2702 else
2703 break
2704 fi
2705 fi
2706 fi
2707 done
2708 if test "$ac_aux_dir_found" = yes; then
2709 ac_aux_dir="$as_dir"
2710 break
2711 fi
2712 ac_first_candidate=false
2713
2714 as_found=false
2715 done
2716 IFS=$as_save_IFS
2717 if $as_found
2718 then :
2719
2720 else $as_nop
2721 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2722 fi
2723
2724
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 if test -f "${ac_aux_dir}config.guess"; then
2730 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2731 fi
2732 if test -f "${ac_aux_dir}config.sub"; then
2733 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2734 fi
2735 if test -f "$ac_aux_dir/configure"; then
2736 ac_configure="$SHELL ${ac_aux_dir}configure"
2737 fi
2738
2739 # Check that the precious variables saved in the cache have kept the same
2740 # value.
2741 ac_cache_corrupted=false
2742 for ac_var in $ac_precious_vars; do
2743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744 eval ac_new_set=\$ac_env_${ac_var}_set
2745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746 eval ac_new_val=\$ac_env_${ac_var}_value
2747 case $ac_old_set,$ac_new_set in
2748 set,)
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751 ac_cache_corrupted=: ;;
2752 ,set)
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755 ac_cache_corrupted=: ;;
2756 ,);;
2757 *)
2758 if test "x$ac_old_val" != "x$ac_new_val"; then
2759 # differences in whitespace do not lead to failure.
2760 ac_old_val_w=`echo x $ac_old_val`
2761 ac_new_val_w=`echo x $ac_new_val`
2762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765 ac_cache_corrupted=:
2766 else
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769 eval $ac_var=\$ac_old_val
2770 fi
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2772 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2774 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2775 fi;;
2776 esac
2777 # Pass precious variables to config.status.
2778 if test "$ac_new_set" = set; then
2779 case $ac_new_val in
2780 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781 *) ac_arg=$ac_var=$ac_new_val ;;
2782 esac
2783 case " $ac_configure_args " in
2784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2785 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786 esac
2787 fi
2788 done
2789 if $ac_cache_corrupted; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2794 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2795 and start over" "$LINENO" 5
2796 fi
2797 ## -------------------- ##
2798 ## Main body of script. ##
2799 ## -------------------- ##
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817 # Make sure we can run config.sub.
2818 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2819 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2820
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2822 printf %s "checking build system type... " >&6; }
2823 if test ${ac_cv_build+y}
2824 then :
2825 printf %s "(cached) " >&6
2826 else $as_nop
2827 ac_build_alias=$build_alias
2828 test "x$ac_build_alias" = x &&
2829 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2830 test "x$ac_build_alias" = x &&
2831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2832 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2834
2835 fi
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2837 printf "%s\n" "$ac_cv_build" >&6; }
2838 case $ac_cv_build in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2841 esac
2842 build=$ac_cv_build
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_build
2845 shift
2846 build_cpu=$1
2847 build_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 build_os=$*
2852 IFS=$ac_save_IFS
2853 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854
2855
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2857 printf %s "checking host system type... " >&6; }
2858 if test ${ac_cv_host+y}
2859 then :
2860 printf %s "(cached) " >&6
2861 else $as_nop
2862 if test "x$host_alias" = x; then
2863 ac_cv_host=$ac_cv_build
2864 else
2865 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2866 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2867 fi
2868
2869 fi
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2871 printf "%s\n" "$ac_cv_host" >&6; }
2872 case $ac_cv_host in
2873 *-*-*) ;;
2874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2875 esac
2876 host=$ac_cv_host
2877 ac_save_IFS=$IFS; IFS='-'
2878 set x $ac_cv_host
2879 shift
2880 host_cpu=$1
2881 host_vendor=$2
2882 shift; shift
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2885 host_os=$*
2886 IFS=$ac_save_IFS
2887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2888
2889
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2891 printf %s "checking target system type... " >&6; }
2892 if test ${ac_cv_target+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else $as_nop
2896 if test "x$target_alias" = x; then
2897 ac_cv_target=$ac_cv_host
2898 else
2899 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2900 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2901 fi
2902
2903 fi
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2905 printf "%s\n" "$ac_cv_target" >&6; }
2906 case $ac_cv_target in
2907 *-*-*) ;;
2908 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2909 esac
2910 target=$ac_cv_target
2911 ac_save_IFS=$IFS; IFS='-'
2912 set x $ac_cv_target
2913 shift
2914 target_cpu=$1
2915 target_vendor=$2
2916 shift; shift
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2919 target_os=$*
2920 IFS=$ac_save_IFS
2921 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2922
2923
2924 # The aliases save the names the user supplied, while $host etc.
2925 # will get canonicalized.
2926 test -n "$target_alias" &&
2927 test "$program_prefix$program_suffix$program_transform_name" = \
2928 NONENONEs,x,x, &&
2929 program_prefix=${target_alias}-
2930
2931 am__api_version='1.16'
2932
2933
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2940 # AIX /bin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 # Reject install programs that cannot install multiple files.
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2949 printf %s "checking for a BSD-compatible install... " >&6; }
2950 if test -z "$INSTALL"; then
2951 if test ${ac_cv_path_install+y}
2952 then :
2953 printf %s "(cached) " >&6
2954 else $as_nop
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 # Account for fact that we put trailing slashes in our PATH walk.
2965 case $as_dir in #((
2966 ./ | /[cC]/* | \
2967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2968 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2969 /usr/ucb/* ) ;;
2970 *)
2971 # OSF1 and SCO ODT 3.0 have their own names for install.
2972 # Don't use installbsd from OSF since it installs stuff as root
2973 # by default.
2974 for ac_prog in ginstall scoinst install; do
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2977 if test $ac_prog = install &&
2978 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # AIX install. It has an incompatible calling convention.
2980 :
2981 elif test $ac_prog = install &&
2982 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983 # program-specific install script used by HP pwplus--don't use.
2984 :
2985 else
2986 rm -rf conftest.one conftest.two conftest.dir
2987 echo one > conftest.one
2988 echo two > conftest.two
2989 mkdir conftest.dir
2990 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2991 test -s conftest.one && test -s conftest.two &&
2992 test -s conftest.dir/conftest.one &&
2993 test -s conftest.dir/conftest.two
2994 then
2995 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2996 break 3
2997 fi
2998 fi
2999 fi
3000 done
3001 done
3002 ;;
3003 esac
3004
3005 done
3006 IFS=$as_save_IFS
3007
3008 rm -rf conftest.one conftest.two conftest.dir
3009
3010 fi
3011 if test ${ac_cv_path_install+y}; then
3012 INSTALL=$ac_cv_path_install
3013 else
3014 # As a last resort, use the slow shell script. Don't cache a
3015 # value for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the value is a relative name.
3018 INSTALL=$ac_install_sh
3019 fi
3020 fi
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3022 printf "%s\n" "$INSTALL" >&6; }
3023
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3029
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3031
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3033 printf %s "checking whether build environment is sane... " >&6; }
3034 # Reject unsafe characters in $srcdir or the absolute working directory
3035 # name. Accept space and tab only in the latter.
3036 am_lf='
3037 '
3038 case `pwd` in
3039 *[\\\"\#\$\&\'\`$am_lf]*)
3040 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3041 esac
3042 case $srcdir in
3043 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3044 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3045 esac
3046
3047 # Do 'set' in a subshell so we don't clobber the current shell's
3048 # arguments. Must try -L first in case configure is actually a
3049 # symlink; some systems play weird games with the mod time of symlinks
3050 # (eg FreeBSD returns the mod time of the symlink's containing
3051 # directory).
3052 if (
3053 am_has_slept=no
3054 for am_try in 1 2; do
3055 echo "timestamp, slept: $am_has_slept" > conftest.file
3056 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3057 if test "$*" = "X"; then
3058 # -L didn't work.
3059 set X `ls -t "$srcdir/configure" conftest.file`
3060 fi
3061 if test "$*" != "X $srcdir/configure conftest.file" \
3062 && test "$*" != "X conftest.file $srcdir/configure"; then
3063
3064 # If neither matched, then we have a broken ls. This can happen
3065 # if, for instance, CONFIG_SHELL is bash and it inherits a
3066 # broken ls alias from the environment. This has actually
3067 # happened. Such a system could not be considered "sane".
3068 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3069 alias in your environment" "$LINENO" 5
3070 fi
3071 if test "$2" = conftest.file || test $am_try -eq 2; then
3072 break
3073 fi
3074 # Just in case.
3075 sleep 1
3076 am_has_slept=yes
3077 done
3078 test "$2" = conftest.file
3079 )
3080 then
3081 # Ok.
3082 :
3083 else
3084 as_fn_error $? "newly created file is older than distributed files!
3085 Check your system clock" "$LINENO" 5
3086 fi
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 printf "%s\n" "yes" >&6; }
3089 # If we didn't sleep, we still need to ensure time stamps of config.status and
3090 # generated files are strictly newer.
3091 am_sleep_pid=
3092 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3093 ( sleep 1 ) &
3094 am_sleep_pid=$!
3095 fi
3096
3097 rm -f conftest.file
3098
3099 test "$program_prefix" != NONE &&
3100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3101 # Use a double $ so make ignores it.
3102 test "$program_suffix" != NONE &&
3103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3104 # Double any \ or $.
3105 # By default was `s,x,x', remove it if useless.
3106 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3107 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3108
3109
3110 # Expand $ac_aux_dir to an absolute path.
3111 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3112
3113
3114 if test x"${MISSING+set}" != xset; then
3115 MISSING="\${SHELL} '$am_aux_dir/missing'"
3116 fi
3117 # Use eval to expand $SHELL
3118 if eval "$MISSING --is-lightweight"; then
3119 am_missing_run="$MISSING "
3120 else
3121 am_missing_run=
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3123 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3124 fi
3125
3126 if test x"${install_sh+set}" != xset; then
3127 case $am_aux_dir in
3128 *\ * | *\ *)
3129 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130 *)
3131 install_sh="\${SHELL} $am_aux_dir/install-sh"
3132 esac
3133 fi
3134
3135 # Installed binaries are usually stripped using 'strip' when the user
3136 # run "make install-strip". However 'strip' might not be the right
3137 # tool to use in cross-compilation environments, therefore Automake
3138 # will honor the 'STRIP' environment variable to overrule this program.
3139 if test "$cross_compiling" != no; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}strip; ac_word=$2
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 printf %s "checking for $ac_word... " >&6; }
3145 if test ${ac_cv_prog_STRIP+y}
3146 then :
3147 printf %s "(cached) " >&6
3148 else $as_nop
3149 if test -n "$STRIP"; then
3150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 case $as_dir in #(((
3157 '') as_dir=./ ;;
3158 */) ;;
3159 *) as_dir=$as_dir/ ;;
3160 esac
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 STRIP=$ac_cv_prog_STRIP
3174 if test -n "$STRIP"; then
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3176 printf "%s\n" "$STRIP" >&6; }
3177 else
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 printf "%s\n" "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$ac_cv_prog_STRIP"; then
3185 ac_ct_STRIP=$STRIP
3186 # Extract the first word of "strip", so it can be a program name with args.
3187 set dummy strip; ac_word=$2
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 printf %s "checking for $ac_word... " >&6; }
3190 if test ${ac_cv_prog_ac_ct_STRIP+y}
3191 then :
3192 printf %s "(cached) " >&6
3193 else $as_nop
3194 if test -n "$ac_ct_STRIP"; then
3195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 case $as_dir in #(((
3202 '') as_dir=./ ;;
3203 */) ;;
3204 *) as_dir=$as_dir/ ;;
3205 esac
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_STRIP="strip"
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3219 if test -n "$ac_ct_STRIP"; then
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3221 printf "%s\n" "$ac_ct_STRIP" >&6; }
3222 else
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 printf "%s\n" "no" >&6; }
3225 fi
3226
3227 if test "x$ac_ct_STRIP" = x; then
3228 STRIP=":"
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236 STRIP=$ac_ct_STRIP
3237 fi
3238 else
3239 STRIP="$ac_cv_prog_STRIP"
3240 fi
3241
3242 fi
3243 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3244
3245
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3247 printf %s "checking for a race-free mkdir -p... " >&6; }
3248 if test -z "$MKDIR_P"; then
3249 if test ${ac_cv_path_mkdir+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else $as_nop
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3255 do
3256 IFS=$as_save_IFS
3257 case $as_dir in #(((
3258 '') as_dir=./ ;;
3259 */) ;;
3260 *) as_dir=$as_dir/ ;;
3261 esac
3262 for ac_prog in mkdir gmkdir; do
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3265 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3266 'mkdir ('*'coreutils) '* | \
3267 'BusyBox '* | \
3268 'mkdir (fileutils) '4.1*)
3269 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3270 break 3;;
3271 esac
3272 done
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278
3279 test -d ./--version && rmdir ./--version
3280 if test ${ac_cv_path_mkdir+y}; then
3281 MKDIR_P="$ac_cv_path_mkdir -p"
3282 else
3283 # As a last resort, use the slow shell script. Don't cache a
3284 # value for MKDIR_P within a source directory, because that will
3285 # break other packages using the cache if that directory is
3286 # removed, or if the value is a relative name.
3287 MKDIR_P="$ac_install_sh -d"
3288 fi
3289 fi
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3291 printf "%s\n" "$MKDIR_P" >&6; }
3292
3293 for ac_prog in gawk mawk nawk awk
3294 do
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s "checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_AWK+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else $as_nop
3303 if test -n "$AWK"; then
3304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 case $as_dir in #(((
3311 '') as_dir=./ ;;
3312 */) ;;
3313 *) as_dir=$as_dir/ ;;
3314 esac
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_AWK="$ac_prog"
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 AWK=$ac_cv_prog_AWK
3328 if test -n "$AWK"; then
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3330 printf "%s\n" "$AWK" >&6; }
3331 else
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 printf "%s\n" "no" >&6; }
3334 fi
3335
3336
3337 test -n "$AWK" && break
3338 done
3339
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3341 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3342 set x ${MAKE-make}
3343 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3344 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else $as_nop
3348 cat >conftest.make <<\_ACEOF
3349 SHELL = /bin/sh
3350 all:
3351 @echo '@@@%%%=$(MAKE)=@@@%%%'
3352 _ACEOF
3353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3355 *@@@%%%=?*=@@@%%%*)
3356 eval ac_cv_prog_make_${ac_make}_set=yes;;
3357 *)
3358 eval ac_cv_prog_make_${ac_make}_set=no;;
3359 esac
3360 rm -f conftest.make
3361 fi
3362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 printf "%s\n" "yes" >&6; }
3365 SET_MAKE=
3366 else
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 printf "%s\n" "no" >&6; }
3369 SET_MAKE="MAKE=${MAKE-make}"
3370 fi
3371
3372 rm -rf .tst 2>/dev/null
3373 mkdir .tst 2>/dev/null
3374 if test -d .tst; then
3375 am__leading_dot=.
3376 else
3377 am__leading_dot=_
3378 fi
3379 rmdir .tst 2>/dev/null
3380
3381 # Check whether --enable-silent-rules was given.
3382 if test ${enable_silent_rules+y}
3383 then :
3384 enableval=$enable_silent_rules;
3385 fi
3386
3387 case $enable_silent_rules in # (((
3388 yes) AM_DEFAULT_VERBOSITY=0;;
3389 no) AM_DEFAULT_VERBOSITY=1;;
3390 *) AM_DEFAULT_VERBOSITY=1;;
3391 esac
3392 am_make=${MAKE-make}
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3394 printf %s "checking whether $am_make supports nested variables... " >&6; }
3395 if test ${am_cv_make_support_nested_variables+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else $as_nop
3399 if printf "%s\n" 'TRUE=$(BAR$(V))
3400 BAR0=false
3401 BAR1=true
3402 V=1
3403 am__doit:
3404 @$(TRUE)
3405 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3406 am_cv_make_support_nested_variables=yes
3407 else
3408 am_cv_make_support_nested_variables=no
3409 fi
3410 fi
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3412 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3413 if test $am_cv_make_support_nested_variables = yes; then
3414 AM_V='$(V)'
3415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3416 else
3417 AM_V=$AM_DEFAULT_VERBOSITY
3418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3419 fi
3420 AM_BACKSLASH='\'
3421
3422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3424 # is not polluted with repeated "-I."
3425 am__isrc=' -I$(srcdir)'
3426 # test to see if srcdir already configured
3427 if test -f $srcdir/config.status; then
3428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3429 fi
3430 fi
3431
3432 # test whether we have cygpath
3433 if test -z "$CYGPATH_W"; then
3434 if (cygpath --version) >/dev/null 2>/dev/null; then
3435 CYGPATH_W='cygpath -w'
3436 else
3437 CYGPATH_W=echo
3438 fi
3439 fi
3440
3441
3442 # Define the identity of the package.
3443 PACKAGE='libkate'
3444 VERSION='0.4.3'
3445
3446
3447 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3448
3449
3450 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3451
3452 # Some tools Automake needs.
3453
3454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3455
3456
3457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3458
3459
3460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3461
3462
3463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3464
3465
3466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3467
3468 # For better backward compatibility. To be removed once Automake 1.9.x
3469 # dies out for good. For more background, see:
3470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3472 mkdir_p='$(MKDIR_P)'
3473
3474 # We need awk for the "check" target (and possibly the TAP driver). The
3475 # system "awk" is bad on some platforms.
3476 # Always define AMTAR for backward compatibility. Yes, it's still used
3477 # in the wild :-( We should find a proper way to deprecate it ...
3478 AMTAR='$${TAR-tar}'
3479
3480
3481 # We'll loop over all known methods to create a tar archive until one works.
3482 _am_tools='gnutar pax cpio none'
3483
3484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3485
3486
3487
3488
3489
3490 # Variables for tags utilities; see am/tags.am
3491 if test -z "$CTAGS"; then
3492 CTAGS=ctags
3493 fi
3494
3495 if test -z "$ETAGS"; then
3496 ETAGS=etags
3497 fi
3498
3499 if test -z "$CSCOPE"; then
3500 CSCOPE=cscope
3501 fi
3502
3503
3504
3505 # POSIX will say in a future version that running "rm -f" with no argument
3506 # is OK; and we want to be able to make that assumption in our Makefile
3507 # recipes. So use an aggressive probe to check that the usage we want is
3508 # actually supported "in the wild" to an acceptable degree.
3509 # See automake bug#10828.
3510 # To make any issue more visible, cause the running configure to be aborted
3511 # by default if the 'rm' program in use doesn't match our expectations; the
3512 # user can still override this though.
3513 if rm -f && rm -fr && rm -rf; then : OK; else
3514 cat >&2 <<'END'
3515 Oops!
3516
3517 Your 'rm' program seems unable to run without file operands specified
3518 on the command line, even when the '-f' option is present. This is contrary
3519 to the behaviour of most rm programs out there, and not conforming with
3520 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3521
3522 Please tell [email protected] about your system, including the value
3523 of your $PATH and any error possibly output before this message. This
3524 can help us improve future automake versions.
3525
3526 END
3527 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3528 echo 'Configuration will proceed anyway, since you have set the' >&2
3529 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3530 echo >&2
3531 else
3532 cat >&2 <<'END'
3533 Aborting the configuration process, to ensure you take notice of the issue.
3534
3535 You can download and install GNU coreutils to get an 'rm' implementation
3536 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3537
3538 If you want to complete the configuration process using your problematic
3539 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3540 to "yes", and re-run configure.
3541
3542 END
3543 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3544 fi
3545 fi
3546
3547 ac_config_headers="$ac_config_headers include/config.h"
3548
3549
3550 # Check whether --enable-silent-rules was given.
3551 if test ${enable_silent_rules+y}
3552 then :
3553 enableval=$enable_silent_rules;
3554 fi
3555
3556 case $enable_silent_rules in # (((
3557 yes) AM_DEFAULT_VERBOSITY=0;;
3558 no) AM_DEFAULT_VERBOSITY=1;;
3559 *) AM_DEFAULT_VERBOSITY=1;;
3560 esac
3561 am_make=${MAKE-make}
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3563 printf %s "checking whether $am_make supports nested variables... " >&6; }
3564 if test ${am_cv_make_support_nested_variables+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else $as_nop
3568 if printf "%s\n" 'TRUE=$(BAR$(V))
3569 BAR0=false
3570 BAR1=true
3571 V=1
3572 am__doit:
3573 @$(TRUE)
3574 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3575 am_cv_make_support_nested_variables=yes
3576 else
3577 am_cv_make_support_nested_variables=no
3578 fi
3579 fi
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3581 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3582 if test $am_cv_make_support_nested_variables = yes; then
3583 AM_V='$(V)'
3584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3585 else
3586 AM_V=$AM_DEFAULT_VERBOSITY
3587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3588 fi
3589 AM_BACKSLASH='\'
3590
3591
3592 ################################################################################
3593 # Set the shared versioning info, according to section 6.3 of the libtool info #
3594 # pages. CURRENT:REVISION:AGE must be updated immediately before each release: #
3595 # #
3596 # * If the library source code has changed at all since the last #
3597 # update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). #
3598 # #
3599 # * If any interfaces have been added, removed, or changed since the #
3600 # last update, increment CURRENT, and set REVISION to 0. #
3601 # #
3602 # * If any interfaces have been added since the last public release, #
3603 # then increment AGE. #
3604 # #
3605 # * If any interfaces have been removed since the last public release, #
3606 # then set AGE to 0. #
3607 # #
3608 ################################################################################
3609 LIBKATE_SHARED_VERSION="4:2:3"
3610 LIBOGGKATE_SHARED_VERSION="3:4:2"
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621 DEPDIR="${am__leading_dot}deps"
3622
3623 ac_config_commands="$ac_config_commands depfiles"
3624
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3626 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3627 cat > confinc.mk << 'END'
3628 am__doit:
3629 @echo this is the am__doit target >confinc.out
3630 .PHONY: am__doit
3631 END
3632 am__include="#"
3633 am__quote=
3634 # BSD make does it like this.
3635 echo '.include "confinc.mk" # ignored' > confmf.BSD
3636 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3637 echo 'include confinc.mk # ignored' > confmf.GNU
3638 _am_result=no
3639 for s in GNU BSD; do
3640 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3641 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645 case $?:`cat confinc.out 2>/dev/null` in #(
3646 '0:this is the am__doit target') :
3647 case $s in #(
3648 BSD) :
3649 am__include='.include' am__quote='"' ;; #(
3650 *) :
3651 am__include='include' am__quote='' ;;
3652 esac ;; #(
3653 *) :
3654 ;;
3655 esac
3656 if test "$am__include" != "#"; then
3657 _am_result="yes ($s style)"
3658 break
3659 fi
3660 done
3661 rm -f confinc.* confmf.*
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3663 printf "%s\n" "${_am_result}" >&6; }
3664
3665 # Check whether --enable-dependency-tracking was given.
3666 if test ${enable_dependency_tracking+y}
3667 then :
3668 enableval=$enable_dependency_tracking;
3669 fi
3670
3671 if test "x$enable_dependency_tracking" != xno; then
3672 am_depcomp="$ac_aux_dir/depcomp"
3673 AMDEPBACKSLASH='\'
3674 am__nodep='_no'
3675 fi
3676 if test "x$enable_dependency_tracking" != xno; then
3677 AMDEP_TRUE=
3678 AMDEP_FALSE='#'
3679 else
3680 AMDEP_TRUE='#'
3681 AMDEP_FALSE=
3682 fi
3683
3684
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 printf %s "checking for $ac_word... " >&6; }
3695 if test ${ac_cv_prog_CC+y}
3696 then :
3697 printf %s "(cached) " >&6
3698 else $as_nop
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 printf "%s\n" "$CC" >&6; }
3727 else
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3730 fi
3731
3732
3733 fi
3734 if test -z "$ac_cv_prog_CC"; then
3735 ac_ct_CC=$CC
3736 # Extract the first word of "gcc", so it can be a program name with args.
3737 set dummy gcc; ac_word=$2
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_prog_ac_ct_CC+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750 IFS=$as_save_IFS
3751 case $as_dir in #(((
3752 '') as_dir=./ ;;
3753 */) ;;
3754 *) as_dir=$as_dir/ ;;
3755 esac
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC="gcc"
3759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 printf "%s\n" "$ac_ct_CC" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777 if test "x$ac_ct_CC" = x; then
3778 CC=""
3779 else
3780 case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786 CC=$ac_ct_CC
3787 fi
3788 else
3789 CC="$ac_cv_prog_CC"
3790 fi
3791
3792 if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}cc; ac_word=$2
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 printf %s "checking for $ac_word... " >&6; }
3798 if test ${ac_cv_prog_CC+y}
3799 then :
3800 printf %s "(cached) " >&6
3801 else $as_nop
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CC="${ac_tool_prefix}cc"
3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 printf "%s\n" "$CC" >&6; }
3830 else
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 printf "%s\n" "no" >&6; }
3833 fi
3834
3835
3836 fi
3837 fi
3838 if test -z "$CC"; then
3839 # Extract the first word of "cc", so it can be a program name with args.
3840 set dummy cc; ac_word=$2
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 printf %s "checking for $ac_word... " >&6; }
3843 if test ${ac_cv_prog_CC+y}
3844 then :
3845 printf %s "(cached) " >&6
3846 else $as_nop
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 ac_prog_rejected=no
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 case $as_dir in #(((
3856 '') as_dir=./ ;;
3857 */) ;;
3858 *) as_dir=$as_dir/ ;;
3859 esac
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3862 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3863 ac_prog_rejected=yes
3864 continue
3865 fi
3866 ac_cv_prog_CC="cc"
3867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 if test $ac_prog_rejected = yes; then
3875 # We found a bogon in the path, so make sure we never use it.
3876 set dummy $ac_cv_prog_CC
3877 shift
3878 if test $# != 0; then
3879 # We chose a different compiler from the bogus one.
3880 # However, it has the same basename, so the bogon will be chosen
3881 # first if we set CC to just the basename; use the full file name.
3882 shift
3883 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3884 fi
3885 fi
3886 fi
3887 fi
3888 CC=$ac_cv_prog_CC
3889 if test -n "$CC"; then
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3891 printf "%s\n" "$CC" >&6; }
3892 else
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 printf "%s\n" "no" >&6; }
3895 fi
3896
3897
3898 fi
3899 if test -z "$CC"; then
3900 if test -n "$ac_tool_prefix"; then
3901 for ac_prog in cl.exe
3902 do
3903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 printf %s "checking for $ac_word... " >&6; }
3907 if test ${ac_cv_prog_CC+y}
3908 then :
3909 printf %s "(cached) " >&6
3910 else $as_nop
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 case $as_dir in #(((
3919 '') as_dir=./ ;;
3920 */) ;;
3921 *) as_dir=$as_dir/ ;;
3922 esac
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 CC=$ac_cv_prog_CC
3936 if test -n "$CC"; then
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 printf "%s\n" "$CC" >&6; }
3939 else
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 printf "%s\n" "no" >&6; }
3942 fi
3943
3944
3945 test -n "$CC" && break
3946 done
3947 fi
3948 if test -z "$CC"; then
3949 ac_ct_CC=$CC
3950 for ac_prog in cl.exe
3951 do
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 printf %s "checking for $ac_word... " >&6; }
3956 if test ${ac_cv_prog_ac_ct_CC+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else $as_nop
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 case $as_dir in #(((
3968 '') as_dir=./ ;;
3969 */) ;;
3970 *) as_dir=$as_dir/ ;;
3971 esac
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CC="$ac_prog"
3975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3985 if test -n "$ac_ct_CC"; then
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3987 printf "%s\n" "$ac_ct_CC" >&6; }
3988 else
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 printf "%s\n" "no" >&6; }
3991 fi
3992
3993
3994 test -n "$ac_ct_CC" && break
3995 done
3996
3997 if test "x$ac_ct_CC" = x; then
3998 CC=""
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CC=$ac_ct_CC
4007 fi
4008 fi
4009
4010 fi
4011 if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}clang; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_CC+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else $as_nop
4021 if test -n "$CC"; then
4022 ac_cv_prog_CC="$CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 case $as_dir in #(((
4029 '') as_dir=./ ;;
4030 */) ;;
4031 *) as_dir=$as_dir/ ;;
4032 esac
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_CC="${ac_tool_prefix}clang"
4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 printf "%s\n" "$CC" >&6; }
4049 else
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4052 fi
4053
4054
4055 fi
4056 if test -z "$ac_cv_prog_CC"; then
4057 ac_ct_CC=$CC
4058 # Extract the first word of "clang", so it can be a program name with args.
4059 set dummy clang; ac_word=$2
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 printf %s "checking for $ac_word... " >&6; }
4062 if test ${ac_cv_prog_ac_ct_CC+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else $as_nop
4066 if test -n "$ac_ct_CC"; then
4067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072 IFS=$as_save_IFS
4073 case $as_dir in #(((
4074 '') as_dir=./ ;;
4075 */) ;;
4076 *) as_dir=$as_dir/ ;;
4077 esac
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="clang"
4081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084 done
4085 done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 printf "%s\n" "$ac_ct_CC" >&6; }
4094 else
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 printf "%s\n" "no" >&6; }
4097 fi
4098
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103 yes:)
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 CC=$ac_ct_CC
4109 fi
4110 else
4111 CC="$ac_cv_prog_CC"
4112 fi
4113
4114 fi
4115
4116
4117 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "no acceptable C compiler found in \$PATH
4120 See \`config.log' for more details" "$LINENO" 5; }
4121
4122 # Provide some information about the compiler.
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4124 set X $ac_compile
4125 ac_compiler=$2
4126 for ac_option in --version -v -V -qversion -version; do
4127 { { ac_try="$ac_compiler $ac_option >&5"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 printf "%s\n" "$ac_try_echo"; } >&5
4134 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4135 ac_status=$?
4136 if test -s conftest.err; then
4137 sed '10a\
4138 ... rest of stderr output deleted ...
4139 10q' conftest.err >conftest.er1
4140 cat conftest.er1 >&5
4141 fi
4142 rm -f conftest.er1 conftest.err
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }
4145 done
4146
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main (void)
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 ac_clean_files_save=$ac_clean_files
4159 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4160 # Try to create an executable without -o first, disregard a.out.
4161 # It will help us diagnose broken compilers, and finding out an intuition
4162 # of exeext.
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4164 printf %s "checking whether the C compiler works... " >&6; }
4165 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4166
4167 # The possible output files:
4168 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4169
4170 ac_rmfiles=
4171 for ac_file in $ac_files
4172 do
4173 case $ac_file in
4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4175 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4176 esac
4177 done
4178 rm -f $ac_rmfiles
4179
4180 if { { ac_try="$ac_link_default"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 printf "%s\n" "$ac_try_echo"; } >&5
4187 (eval "$ac_link_default") 2>&5
4188 ac_status=$?
4189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }
4191 then :
4192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4195 # so that the user can short-circuit this test for compilers unknown to
4196 # Autoconf.
4197 for ac_file in $ac_files ''
4198 do
4199 test -f "$ac_file" || continue
4200 case $ac_file in
4201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4202 ;;
4203 [ab].out )
4204 # We found the default executable, but exeext='' is most
4205 # certainly right.
4206 break;;
4207 *.* )
4208 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4209 then :; else
4210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4211 fi
4212 # We set ac_cv_exeext here because the later test for it is not
4213 # safe: cross compilers may not add the suffix if given an `-o'
4214 # argument, so we may need to know it at that point already.
4215 # Even if this section looks crufty: it has the advantage of
4216 # actually working.
4217 break;;
4218 * )
4219 break;;
4220 esac
4221 done
4222 test "$ac_cv_exeext" = no && ac_cv_exeext=
4223
4224 else $as_nop
4225 ac_file=''
4226 fi
4227 if test -z "$ac_file"
4228 then :
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 printf "%s\n" "no" >&6; }
4231 printf "%s\n" "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error 77 "C compiler cannot create executables
4237 See \`config.log' for more details" "$LINENO" 5; }
4238 else $as_nop
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4240 printf "%s\n" "yes" >&6; }
4241 fi
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4243 printf %s "checking for C compiler default output file name... " >&6; }
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4245 printf "%s\n" "$ac_file" >&6; }
4246 ac_exeext=$ac_cv_exeext
4247
4248 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4249 ac_clean_files=$ac_clean_files_save
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4251 printf %s "checking for suffix of executables... " >&6; }
4252 if { { ac_try="$ac_link"
4253 case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 printf "%s\n" "$ac_try_echo"; } >&5
4259 (eval "$ac_link") 2>&5
4260 ac_status=$?
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }
4263 then :
4264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4266 # work properly (i.e., refer to `conftest.exe'), while it won't with
4267 # `rm'.
4268 for ac_file in conftest.exe conftest conftest.*; do
4269 test -f "$ac_file" || continue
4270 case $ac_file in
4271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4273 break;;
4274 * ) break;;
4275 esac
4276 done
4277 else $as_nop
4278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4281 See \`config.log' for more details" "$LINENO" 5; }
4282 fi
4283 rm -f conftest conftest$ac_cv_exeext
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4285 printf "%s\n" "$ac_cv_exeext" >&6; }
4286
4287 rm -f conftest.$ac_ext
4288 EXEEXT=$ac_cv_exeext
4289 ac_exeext=$EXEEXT
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <stdio.h>
4293 int
4294 main (void)
4295 {
4296 FILE *f = fopen ("conftest.out", "w");
4297 return ferror (f) || fclose (f) != 0;
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 ac_clean_files="$ac_clean_files conftest.out"
4304 # Check that the compiler produces executables we can run. If not, either
4305 # the compiler is broken, or we cross compile.
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4307 printf %s "checking whether we are cross compiling... " >&6; }
4308 if test "$cross_compiling" != yes; then
4309 { { ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 printf "%s\n" "$ac_try_echo"; } >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 if { ac_try='./conftest$ac_cv_exeext'
4321 { { case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 printf "%s\n" "$ac_try_echo"; } >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; }; then
4331 cross_compiling=no
4332 else
4333 if test "$cross_compiling" = maybe; then
4334 cross_compiling=yes
4335 else
4336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4338 as_fn_error 77 "cannot run C compiled programs.
4339 If you meant to cross compile, use \`--host'.
4340 See \`config.log' for more details" "$LINENO" 5; }
4341 fi
4342 fi
4343 fi
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4345 printf "%s\n" "$cross_compiling" >&6; }
4346
4347 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4348 ac_clean_files=$ac_clean_files_save
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4350 printf %s "checking for suffix of object files... " >&6; }
4351 if test ${ac_cv_objext+y}
4352 then :
4353 printf %s "(cached) " >&6
4354 else $as_nop
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main (void)
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.o conftest.obj
4367 if { { ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 printf "%s\n" "$ac_try_echo"; } >&5
4374 (eval "$ac_compile") 2>&5
4375 ac_status=$?
4376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4378 then :
4379 for ac_file in conftest.o conftest.obj conftest.*; do
4380 test -f "$ac_file" || continue;
4381 case $ac_file in
4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4384 break;;
4385 esac
4386 done
4387 else $as_nop
4388 printf "%s\n" "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4393 as_fn_error $? "cannot compute suffix of object files: cannot compile
4394 See \`config.log' for more details" "$LINENO" 5; }
4395 fi
4396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4397 fi
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4399 printf "%s\n" "$ac_cv_objext" >&6; }
4400 OBJEXT=$ac_cv_objext
4401 ac_objext=$OBJEXT
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4403 printf %s "checking whether the compiler supports GNU C... " >&6; }
4404 if test ${ac_cv_c_compiler_gnu+y}
4405 then :
4406 printf %s "(cached) " >&6
4407 else $as_nop
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410
4411 int
4412 main (void)
4413 {
4414 #ifndef __GNUC__
4415 choke me
4416 #endif
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_compile "$LINENO"
4423 then :
4424 ac_compiler_gnu=yes
4425 else $as_nop
4426 ac_compiler_gnu=no
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4430
4431 fi
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4433 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
4436 if test $ac_compiler_gnu = yes; then
4437 GCC=yes
4438 else
4439 GCC=
4440 fi
4441 ac_test_CFLAGS=${CFLAGS+y}
4442 ac_save_CFLAGS=$CFLAGS
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4444 printf %s "checking whether $CC accepts -g... " >&6; }
4445 if test ${ac_cv_prog_cc_g+y}
4446 then :
4447 printf %s "(cached) " >&6
4448 else $as_nop
4449 ac_save_c_werror_flag=$ac_c_werror_flag
4450 ac_c_werror_flag=yes
4451 ac_cv_prog_cc_g=no
4452 CFLAGS="-g"
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455
4456 int
4457 main (void)
4458 {
4459
4460 ;
4461 return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"
4465 then :
4466 ac_cv_prog_cc_g=yes
4467 else $as_nop
4468 CFLAGS=""
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471
4472 int
4473 main (void)
4474 {
4475
4476 ;
4477 return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"
4481 then :
4482
4483 else $as_nop
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="-g"
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488
4489 int
4490 main (void)
4491 {
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"
4498 then :
4499 ac_cv_prog_cc_g=yes
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4506 ac_c_werror_flag=$ac_save_c_werror_flag
4507 fi
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4509 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4510 if test $ac_test_CFLAGS; then
4511 CFLAGS=$ac_save_CFLAGS
4512 elif test $ac_cv_prog_cc_g = yes; then
4513 if test "$GCC" = yes; then
4514 CFLAGS="-g -O2"
4515 else
4516 CFLAGS="-g"
4517 fi
4518 else
4519 if test "$GCC" = yes; then
4520 CFLAGS="-O2"
4521 else
4522 CFLAGS=
4523 fi
4524 fi
4525 ac_prog_cc_stdc=no
4526 if test x$ac_prog_cc_stdc = xno
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4529 printf %s "checking for $CC option to enable C11 features... " >&6; }
4530 if test ${ac_cv_prog_cc_c11+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else $as_nop
4534 ac_cv_prog_cc_c11=no
4535 ac_save_CC=$CC
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 $ac_c_conftest_c11_program
4539 _ACEOF
4540 for ac_arg in '' -std=gnu11
4541 do
4542 CC="$ac_save_CC $ac_arg"
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4545 ac_cv_prog_cc_c11=$ac_arg
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.beam
4548 test "x$ac_cv_prog_cc_c11" != "xno" && break
4549 done
4550 rm -f conftest.$ac_ext
4551 CC=$ac_save_CC
4552 fi
4553
4554 if test "x$ac_cv_prog_cc_c11" = xno
4555 then :
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4557 printf "%s\n" "unsupported" >&6; }
4558 else $as_nop
4559 if test "x$ac_cv_prog_cc_c11" = x
4560 then :
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4562 printf "%s\n" "none needed" >&6; }
4563 else $as_nop
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4565 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4566 CC="$CC $ac_cv_prog_cc_c11"
4567 fi
4568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4569 ac_prog_cc_stdc=c11
4570 fi
4571 fi
4572 if test x$ac_prog_cc_stdc = xno
4573 then :
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4575 printf %s "checking for $CC option to enable C99 features... " >&6; }
4576 if test ${ac_cv_prog_cc_c99+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else $as_nop
4580 ac_cv_prog_cc_c99=no
4581 ac_save_CC=$CC
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 $ac_c_conftest_c99_program
4585 _ACEOF
4586 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4587 do
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591 ac_cv_prog_cc_c99=$ac_arg
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam
4594 test "x$ac_cv_prog_cc_c99" != "xno" && break
4595 done
4596 rm -f conftest.$ac_ext
4597 CC=$ac_save_CC
4598 fi
4599
4600 if test "x$ac_cv_prog_cc_c99" = xno
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4603 printf "%s\n" "unsupported" >&6; }
4604 else $as_nop
4605 if test "x$ac_cv_prog_cc_c99" = x
4606 then :
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4608 printf "%s\n" "none needed" >&6; }
4609 else $as_nop
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4611 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4612 CC="$CC $ac_cv_prog_cc_c99"
4613 fi
4614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4615 ac_prog_cc_stdc=c99
4616 fi
4617 fi
4618 if test x$ac_prog_cc_stdc = xno
4619 then :
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4621 printf %s "checking for $CC option to enable C89 features... " >&6; }
4622 if test ${ac_cv_prog_cc_c89+y}
4623 then :
4624 printf %s "(cached) " >&6
4625 else $as_nop
4626 ac_cv_prog_cc_c89=no
4627 ac_save_CC=$CC
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 $ac_c_conftest_c89_program
4631 _ACEOF
4632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633 do
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637 ac_cv_prog_cc_c89=$ac_arg
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam
4640 test "x$ac_cv_prog_cc_c89" != "xno" && break
4641 done
4642 rm -f conftest.$ac_ext
4643 CC=$ac_save_CC
4644 fi
4645
4646 if test "x$ac_cv_prog_cc_c89" = xno
4647 then :
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649 printf "%s\n" "unsupported" >&6; }
4650 else $as_nop
4651 if test "x$ac_cv_prog_cc_c89" = x
4652 then :
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4654 printf "%s\n" "none needed" >&6; }
4655 else $as_nop
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4657 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4658 CC="$CC $ac_cv_prog_cc_c89"
4659 fi
4660 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4661 ac_prog_cc_stdc=c89
4662 fi
4663 fi
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4678 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4679 if test ${am_cv_prog_cc_c_o+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else $as_nop
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685
4686 int
4687 main (void)
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 # Make sure it works both with $CC and with simple cc.
4695 # Following AC_PROG_CC_C_O, we do the test twice because some
4696 # compilers refuse to overwrite an existing .o file with -o,
4697 # though they will create one.
4698 am_cv_prog_cc_c_o=yes
4699 for am_i in 1 2; do
4700 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4701 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } \
4705 && test -f conftest2.$ac_objext; then
4706 : OK
4707 else
4708 am_cv_prog_cc_c_o=no
4709 break
4710 fi
4711 done
4712 rm -f core conftest*
4713 unset am_i
4714 fi
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4716 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4717 if test "$am_cv_prog_cc_c_o" != yes; then
4718 # Losing compiler, so override with the script.
4719 # FIXME: It is wrong to rewrite CC.
4720 # But if we don't then we get into trouble of one sort or another.
4721 # A longer-term fix would be to have automake use am__CC in this case,
4722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4723 CC="$am_aux_dir/compile $CC"
4724 fi
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731
4732 depcc="$CC" am_compiler_list=
4733
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4735 printf %s "checking dependency style of $depcc... " >&6; }
4736 if test ${am_cv_CC_dependencies_compiler_type+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else $as_nop
4740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4741 # We make a subdir and do the tests there. Otherwise we can end up
4742 # making bogus files that we don't know about and never remove. For
4743 # instance it was reported that on HP-UX the gcc test will end up
4744 # making a dummy file named 'D' -- because '-MD' means "put the output
4745 # in D".
4746 rm -rf conftest.dir
4747 mkdir conftest.dir
4748 # Copy depcomp to subdir because otherwise we won't find it if we're
4749 # using a relative directory.
4750 cp "$am_depcomp" conftest.dir
4751 cd conftest.dir
4752 # We will build objects and dependencies in a subdirectory because
4753 # it helps to detect inapplicable dependency modes. For instance
4754 # both Tru64's cc and ICC support -MD to output dependencies as a
4755 # side effect of compilation, but ICC will put the dependencies in
4756 # the current directory while Tru64 will put them in the object
4757 # directory.
4758 mkdir sub
4759
4760 am_cv_CC_dependencies_compiler_type=none
4761 if test "$am_compiler_list" = ""; then
4762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4763 fi
4764 am__universal=false
4765 case " $depcc " in #(
4766 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4767 esac
4768
4769 for depmode in $am_compiler_list; do
4770 # Setup a source with many dependencies, because some compilers
4771 # like to wrap large dependency lists on column 80 (with \), and
4772 # we should not choose a depcomp mode which is confused by this.
4773 #
4774 # We need to recreate these files for each test, as the compiler may
4775 # overwrite some of them when testing with obscure command lines.
4776 # This happens at least with the AIX C compiler.
4777 : > sub/conftest.c
4778 for i in 1 2 3 4 5 6; do
4779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4781 # Solaris 10 /bin/sh.
4782 echo '/* dummy */' > sub/conftst$i.h
4783 done
4784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785
4786 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4787 # mode. It turns out that the SunPro C++ compiler does not properly
4788 # handle '-M -o', and we need to detect this. Also, some Intel
4789 # versions had trouble with output in subdirs.
4790 am__obj=sub/conftest.${OBJEXT-o}
4791 am__minus_obj="-o $am__obj"
4792 case $depmode in
4793 gcc)
4794 # This depmode causes a compiler race in universal mode.
4795 test "$am__universal" = false || continue
4796 ;;
4797 nosideeffect)
4798 # After this tag, mechanisms are not by side-effect, so they'll
4799 # only be used when explicitly requested.
4800 if test "x$enable_dependency_tracking" = xyes; then
4801 continue
4802 else
4803 break
4804 fi
4805 ;;
4806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4807 # This compiler won't grok '-c -o', but also, the minuso test has
4808 # not run yet. These depmodes are late enough in the game, and
4809 # so weak that their functioning should not be impacted.
4810 am__obj=conftest.${OBJEXT-o}
4811 am__minus_obj=
4812 ;;
4813 none) break ;;
4814 esac
4815 if depmode=$depmode \
4816 source=sub/conftest.c object=$am__obj \
4817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4819 >/dev/null 2>conftest.err &&
4820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4824 # icc doesn't choke on unknown options, it will just issue warnings
4825 # or remarks (even with -Werror). So we grep stderr for any message
4826 # that says an option was ignored or not supported.
4827 # When given -MP, icc 7.0 and 7.1 complain thusly:
4828 # icc: Command line warning: ignoring option '-M'; no argument required
4829 # The diagnosis changed in icc 8.0:
4830 # icc: Command line remark: option '-MP' not supported
4831 if (grep 'ignoring option' conftest.err ||
4832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4833 am_cv_CC_dependencies_compiler_type=$depmode
4834 break
4835 fi
4836 fi
4837 done
4838
4839 cd ..
4840 rm -rf conftest.dir
4841 else
4842 am_cv_CC_dependencies_compiler_type=none
4843 fi
4844
4845 fi
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4847 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4848 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4849
4850 if
4851 test "x$enable_dependency_tracking" != xno \
4852 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4853 am__fastdepCC_TRUE=
4854 am__fastdepCC_FALSE='#'
4855 else
4856 am__fastdepCC_TRUE='#'
4857 am__fastdepCC_FALSE=
4858 fi
4859
4860
4861 if test "x$CC" != xcc; then
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4863 printf %s "checking whether $CC and cc understand -c and -o together... " >&6; }
4864 else
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4866 printf %s "checking whether cc understands -c and -o together... " >&6; }
4867 fi
4868 set dummy $CC; ac_cc=`printf "%s\n" "$2" |
4869 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4870 if eval test \${ac_cv_prog_cc_${ac_cc}_c_o+y}
4871 then :
4872 printf %s "(cached) " >&6
4873 else $as_nop
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 int
4878 main (void)
4879 {
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 # Make sure it works both with $CC and with simple cc.
4886 # We do the test twice because some compilers refuse to overwrite an
4887 # existing .o file with -o, though they will create one.
4888 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4889 rm -f conftest2.*
4890 if { { case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893 esac
4894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4895 printf "%s\n" "$ac_try_echo"; } >&5
4896 (eval "$ac_try") 2>&5
4897 ac_status=$?
4898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899 test $ac_status = 0; } &&
4900 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905 printf "%s\n" "$ac_try_echo"; } >&5
4906 (eval "$ac_try") 2>&5
4907 ac_status=$?
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909 test $ac_status = 0; };
4910 then
4911 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4912 if test "x$CC" != xcc; then
4913 # Test first that cc exists at all.
4914 if { ac_try='cc -c conftest.$ac_ext >&5'
4915 { { case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 printf "%s\n" "$ac_try_echo"; } >&5
4921 (eval "$ac_try") 2>&5
4922 ac_status=$?
4923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }; }; then
4925 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4926 rm -f conftest2.*
4927 if { { case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4932 printf "%s\n" "$ac_try_echo"; } >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; } &&
4937 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940 esac
4941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942 printf "%s\n" "$ac_try_echo"; } >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; };
4947 then
4948 # cc works too.
4949 :
4950 else
4951 # cc exists but doesn't like -o.
4952 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4953 fi
4954 fi
4955 fi
4956 else
4957 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4958 fi
4959 rm -rf core conftest*
4960
4961 fi
4962 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4964 printf "%s\n" "yes" >&6; }
4965 else
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 printf "%s\n" "no" >&6; }
4968
4969 printf "%s\n" "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4970
4971 fi
4972
4973
4974
4975 if test -n "$ac_tool_prefix"; then
4976 for ac_prog in ar lib "link -lib"
4977 do
4978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 printf %s "checking for $ac_word... " >&6; }
4982 if test ${ac_cv_prog_AR+y}
4983 then :
4984 printf %s "(cached) " >&6
4985 else $as_nop
4986 if test -n "$AR"; then
4987 ac_cv_prog_AR="$AR" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992 IFS=$as_save_IFS
4993 case $as_dir in #(((
4994 '') as_dir=./ ;;
4995 */) ;;
4996 *) as_dir=$as_dir/ ;;
4997 esac
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 AR=$ac_cv_prog_AR
5011 if test -n "$AR"; then
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5013 printf "%s\n" "$AR" >&6; }
5014 else
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 printf "%s\n" "no" >&6; }
5017 fi
5018
5019
5020 test -n "$AR" && break
5021 done
5022 fi
5023 if test -z "$AR"; then
5024 ac_ct_AR=$AR
5025 for ac_prog in ar lib "link -lib"
5026 do
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 printf %s "checking for $ac_word... " >&6; }
5031 if test ${ac_cv_prog_ac_ct_AR+y}
5032 then :
5033 printf %s "(cached) " >&6
5034 else $as_nop
5035 if test -n "$ac_ct_AR"; then
5036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 case $as_dir in #(((
5043 '') as_dir=./ ;;
5044 */) ;;
5045 *) as_dir=$as_dir/ ;;
5046 esac
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_ac_ct_AR="$ac_prog"
5050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5060 if test -n "$ac_ct_AR"; then
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5062 printf "%s\n" "$ac_ct_AR" >&6; }
5063 else
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 printf "%s\n" "no" >&6; }
5066 fi
5067
5068
5069 test -n "$ac_ct_AR" && break
5070 done
5071
5072 if test "x$ac_ct_AR" = x; then
5073 AR="false"
5074 else
5075 case $cross_compiling:$ac_tool_warned in
5076 yes:)
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5078 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5079 ac_tool_warned=yes ;;
5080 esac
5081 AR=$ac_ct_AR
5082 fi
5083 fi
5084
5085 : ${AR=ar}
5086
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5088 printf %s "checking the archiver ($AR) interface... " >&6; }
5089 if test ${am_cv_ar_interface+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else $as_nop
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 am_cv_ar_interface=ar
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int some_variable = 0;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"
5105 then :
5106 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5108 (eval $am_ar_try) 2>&5
5109 ac_status=$?
5110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if test "$ac_status" -eq 0; then
5113 am_cv_ar_interface=ar
5114 else
5115 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5117 (eval $am_ar_try) 2>&5
5118 ac_status=$?
5119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }
5121 if test "$ac_status" -eq 0; then
5122 am_cv_ar_interface=lib
5123 else
5124 am_cv_ar_interface=unknown
5125 fi
5126 fi
5127 rm -f conftest.lib libconftest.a
5128
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 fi
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5139 printf "%s\n" "$am_cv_ar_interface" >&6; }
5140
5141 case $am_cv_ar_interface in
5142 ar)
5143 ;;
5144 lib)
5145 # Microsoft lib, so override with the ar-lib wrapper script.
5146 # FIXME: It is wrong to rewrite AR.
5147 # But if we don't then we get into trouble of one sort or another.
5148 # A longer-term fix would be to have automake use am__AR in this case,
5149 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5150 # similar.
5151 AR="$am_aux_dir/ar-lib $AR"
5152 ;;
5153 unknown)
5154 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5155 ;;
5156 esac
5157
5158 case `pwd` in
5159 *\ * | *\ *)
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5161 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5162 esac
5163
5164
5165
5166 macro_version='2.4.7'
5167 macro_revision='2.4.7'
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182 ltmain=$ac_aux_dir/ltmain.sh
5183
5184 # Backslashify metacharacters that are still active within
5185 # double-quoted strings.
5186 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5187
5188 # Same as above, but do not quote variable references.
5189 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5190
5191 # Sed substitution to delay expansion of an escaped shell variable in a
5192 # double_quote_subst'ed string.
5193 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5194
5195 # Sed substitution to delay expansion of an escaped single quote.
5196 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5197
5198 # Sed substitution to avoid accidental globbing in evaled expressions
5199 no_glob_subst='s/\*/\\\*/g'
5200
5201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5202 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5203 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5204
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5206 printf %s "checking how to print strings... " >&6; }
5207 # Test print first, because it will be a builtin if present.
5208 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5209 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5210 ECHO='print -r --'
5211 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5212 ECHO='printf %s\n'
5213 else
5214 # Use this function as a fallback that always works.
5215 func_fallback_echo ()
5216 {
5217 eval 'cat <<_LTECHO_EOF
5218 $1
5219 _LTECHO_EOF'
5220 }
5221 ECHO='func_fallback_echo'
5222 fi
5223
5224 # func_echo_all arg...
5225 # Invoke $ECHO with all args, space-separated.
5226 func_echo_all ()
5227 {
5228 $ECHO ""
5229 }
5230
5231 case $ECHO in
5232 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5233 printf "%s\n" "printf" >&6; } ;;
5234 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5235 printf "%s\n" "print -r" >&6; } ;;
5236 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5237 printf "%s\n" "cat" >&6; } ;;
5238 esac
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5254 printf %s "checking for a sed that does not truncate output... " >&6; }
5255 if test ${ac_cv_path_SED+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else $as_nop
5259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5260 for ac_i in 1 2 3 4 5 6 7; do
5261 ac_script="$ac_script$as_nl$ac_script"
5262 done
5263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5264 { ac_script=; unset ac_script;}
5265 if test -z "$SED"; then
5266 ac_path_SED_found=false
5267 # Loop through the user's path and test for each of PROGNAME-LIST
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 case $as_dir in #(((
5273 '') as_dir=./ ;;
5274 */) ;;
5275 *) as_dir=$as_dir/ ;;
5276 esac
5277 for ac_prog in sed gsed
5278 do
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5281 as_fn_executable_p "$ac_path_SED" || continue
5282 # Check for GNU ac_path_SED and select it if it is found.
5283 # Check for GNU $ac_path_SED
5284 case `"$ac_path_SED" --version 2>&1` in
5285 *GNU*)
5286 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5287 *)
5288 ac_count=0
5289 printf %s 0123456789 >"conftest.in"
5290 while :
5291 do
5292 cat "conftest.in" "conftest.in" >"conftest.tmp"
5293 mv "conftest.tmp" "conftest.in"
5294 cp "conftest.in" "conftest.nl"
5295 printf "%s\n" '' >> "conftest.nl"
5296 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298 as_fn_arith $ac_count + 1 && ac_count=$as_val
5299 if test $ac_count -gt ${ac_path_SED_max-0}; then
5300 # Best one so far, save it but keep looking for a better one
5301 ac_cv_path_SED="$ac_path_SED"
5302 ac_path_SED_max=$ac_count
5303 fi
5304 # 10*(2^10) chars as input seems more than enough
5305 test $ac_count -gt 10 && break
5306 done
5307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308 esac
5309
5310 $ac_path_SED_found && break 3
5311 done
5312 done
5313 done
5314 IFS=$as_save_IFS
5315 if test -z "$ac_cv_path_SED"; then
5316 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5317 fi
5318 else
5319 ac_cv_path_SED=$SED
5320 fi
5321
5322 fi
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5324 printf "%s\n" "$ac_cv_path_SED" >&6; }
5325 SED="$ac_cv_path_SED"
5326 rm -f conftest.sed
5327
5328 test -z "$SED" && SED=sed
5329 Xsed="$SED -e 1s/^X//"
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5342 printf %s "checking for grep that handles long lines and -e... " >&6; }
5343 if test ${ac_cv_path_GREP+y}
5344 then :
5345 printf %s "(cached) " >&6
5346 else $as_nop
5347 if test -z "$GREP"; then
5348 ac_path_GREP_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5352 do
5353 IFS=$as_save_IFS
5354 case $as_dir in #(((
5355 '') as_dir=./ ;;
5356 */) ;;
5357 *) as_dir=$as_dir/ ;;
5358 esac
5359 for ac_prog in grep ggrep
5360 do
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5363 as_fn_executable_p "$ac_path_GREP" || continue
5364 # Check for GNU ac_path_GREP and select it if it is found.
5365 # Check for GNU $ac_path_GREP
5366 case `"$ac_path_GREP" --version 2>&1` in
5367 *GNU*)
5368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5369 *)
5370 ac_count=0
5371 printf %s 0123456789 >"conftest.in"
5372 while :
5373 do
5374 cat "conftest.in" "conftest.in" >"conftest.tmp"
5375 mv "conftest.tmp" "conftest.in"
5376 cp "conftest.in" "conftest.nl"
5377 printf "%s\n" 'GREP' >> "conftest.nl"
5378 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5380 as_fn_arith $ac_count + 1 && ac_count=$as_val
5381 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5382 # Best one so far, save it but keep looking for a better one
5383 ac_cv_path_GREP="$ac_path_GREP"
5384 ac_path_GREP_max=$ac_count
5385 fi
5386 # 10*(2^10) chars as input seems more than enough
5387 test $ac_count -gt 10 && break
5388 done
5389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5390 esac
5391
5392 $ac_path_GREP_found && break 3
5393 done
5394 done
5395 done
5396 IFS=$as_save_IFS
5397 if test -z "$ac_cv_path_GREP"; then
5398 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5399 fi
5400 else
5401 ac_cv_path_GREP=$GREP
5402 fi
5403
5404 fi
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5406 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5407 GREP="$ac_cv_path_GREP"
5408
5409
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5411 printf %s "checking for egrep... " >&6; }
5412 if test ${ac_cv_path_EGREP+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else $as_nop
5416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5417 then ac_cv_path_EGREP="$GREP -E"
5418 else
5419 if test -z "$EGREP"; then
5420 ac_path_EGREP_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5424 do
5425 IFS=$as_save_IFS
5426 case $as_dir in #(((
5427 '') as_dir=./ ;;
5428 */) ;;
5429 *) as_dir=$as_dir/ ;;
5430 esac
5431 for ac_prog in egrep
5432 do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5435 as_fn_executable_p "$ac_path_EGREP" || continue
5436 # Check for GNU ac_path_EGREP and select it if it is found.
5437 # Check for GNU $ac_path_EGREP
5438 case `"$ac_path_EGREP" --version 2>&1` in
5439 *GNU*)
5440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5441 *)
5442 ac_count=0
5443 printf %s 0123456789 >"conftest.in"
5444 while :
5445 do
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 printf "%s\n" 'EGREP' >> "conftest.nl"
5450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_EGREP="$ac_path_EGREP"
5456 ac_path_EGREP_max=$ac_count
5457 fi
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5463
5464 $ac_path_EGREP_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_EGREP"; then
5470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471 fi
5472 else
5473 ac_cv_path_EGREP=$EGREP
5474 fi
5475
5476 fi
5477 fi
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5479 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5480 EGREP="$ac_cv_path_EGREP"
5481
5482
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5484 printf %s "checking for fgrep... " >&6; }
5485 if test ${ac_cv_path_FGREP+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else $as_nop
5489 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5490 then ac_cv_path_FGREP="$GREP -F"
5491 else
5492 if test -z "$FGREP"; then
5493 ac_path_FGREP_found=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497 do
5498 IFS=$as_save_IFS
5499 case $as_dir in #(((
5500 '') as_dir=./ ;;
5501 */) ;;
5502 *) as_dir=$as_dir/ ;;
5503 esac
5504 for ac_prog in fgrep
5505 do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5508 as_fn_executable_p "$ac_path_FGREP" || continue
5509 # Check for GNU ac_path_FGREP and select it if it is found.
5510 # Check for GNU $ac_path_FGREP
5511 case `"$ac_path_FGREP" --version 2>&1` in
5512 *GNU*)
5513 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5514 *)
5515 ac_count=0
5516 printf %s 0123456789 >"conftest.in"
5517 while :
5518 do
5519 cat "conftest.in" "conftest.in" >"conftest.tmp"
5520 mv "conftest.tmp" "conftest.in"
5521 cp "conftest.in" "conftest.nl"
5522 printf "%s\n" 'FGREP' >> "conftest.nl"
5523 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525 as_fn_arith $ac_count + 1 && ac_count=$as_val
5526 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5527 # Best one so far, save it but keep looking for a better one
5528 ac_cv_path_FGREP="$ac_path_FGREP"
5529 ac_path_FGREP_max=$ac_count
5530 fi
5531 # 10*(2^10) chars as input seems more than enough
5532 test $ac_count -gt 10 && break
5533 done
5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535 esac
5536
5537 $ac_path_FGREP_found && break 3
5538 done
5539 done
5540 done
5541 IFS=$as_save_IFS
5542 if test -z "$ac_cv_path_FGREP"; then
5543 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5544 fi
5545 else
5546 ac_cv_path_FGREP=$FGREP
5547 fi
5548
5549 fi
5550 fi
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5552 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5553 FGREP="$ac_cv_path_FGREP"
5554
5555
5556 test -z "$GREP" && GREP=grep
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 # Check whether --with-gnu-ld was given.
5577 if test ${with_gnu_ld+y}
5578 then :
5579 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5580 else $as_nop
5581 with_gnu_ld=no
5582 fi
5583
5584 ac_prog=ld
5585 if test yes = "$GCC"; then
5586 # Check if gcc -print-prog-name=ld gives a path.
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5588 printf %s "checking for ld used by $CC... " >&6; }
5589 case $host in
5590 *-*-mingw*)
5591 # gcc leaves a trailing carriage return, which upsets mingw
5592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5593 *)
5594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5595 esac
5596 case $ac_prog in
5597 # Accept absolute paths.
5598 [\\/]* | ?:[\\/]*)
5599 re_direlt='/[^/][^/]*/\.\./'
5600 # Canonicalize the pathname of ld
5601 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5602 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5603 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5604 done
5605 test -z "$LD" && LD=$ac_prog
5606 ;;
5607 "")
5608 # If it fails, then pretend we aren't using GCC.
5609 ac_prog=ld
5610 ;;
5611 *)
5612 # If it is relative, then search for the first ld in PATH.
5613 with_gnu_ld=unknown
5614 ;;
5615 esac
5616 elif test yes = "$with_gnu_ld"; then
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5618 printf %s "checking for GNU ld... " >&6; }
5619 else
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5621 printf %s "checking for non-GNU ld... " >&6; }
5622 fi
5623 if test ${lt_cv_path_LD+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else $as_nop
5627 if test -z "$LD"; then
5628 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5629 for ac_dir in $PATH; do
5630 IFS=$lt_save_ifs
5631 test -z "$ac_dir" && ac_dir=.
5632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5633 lt_cv_path_LD=$ac_dir/$ac_prog
5634 # Check to see if the program is GNU ld. I'd rather use --version,
5635 # but apparently some variants of GNU ld only accept -v.
5636 # Break only if it was the GNU/non-GNU ld that we prefer.
5637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5638 *GNU* | *'with BFD'*)
5639 test no != "$with_gnu_ld" && break
5640 ;;
5641 *)
5642 test yes != "$with_gnu_ld" && break
5643 ;;
5644 esac
5645 fi
5646 done
5647 IFS=$lt_save_ifs
5648 else
5649 lt_cv_path_LD=$LD # Let the user override the test with a path.
5650 fi
5651 fi
5652
5653 LD=$lt_cv_path_LD
5654 if test -n "$LD"; then
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5656 printf "%s\n" "$LD" >&6; }
5657 else
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 printf "%s\n" "no" >&6; }
5660 fi
5661 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5663 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5664 if test ${lt_cv_prog_gnu_ld+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else $as_nop
5668 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5669 case `$LD -v 2>&1 </dev/null` in
5670 *GNU* | *'with BFD'*)
5671 lt_cv_prog_gnu_ld=yes
5672 ;;
5673 *)
5674 lt_cv_prog_gnu_ld=no
5675 ;;
5676 esac
5677 fi
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5679 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5680 with_gnu_ld=$lt_cv_prog_gnu_ld
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5691 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5692 if test ${lt_cv_path_NM+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else $as_nop
5696 if test -n "$NM"; then
5697 # Let the user override the test.
5698 lt_cv_path_NM=$NM
5699 else
5700 lt_nm_to_check=${ac_tool_prefix}nm
5701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5702 lt_nm_to_check="$lt_nm_to_check nm"
5703 fi
5704 for lt_tmp_nm in $lt_nm_to_check; do
5705 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5707 IFS=$lt_save_ifs
5708 test -z "$ac_dir" && ac_dir=.
5709 tmp_nm=$ac_dir/$lt_tmp_nm
5710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5711 # Check to see if the nm accepts a BSD-compat flag.
5712 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5713 # nm: unknown option "B" ignored
5714 # Tru64's nm complains that /dev/null is an invalid object file
5715 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5716 case $build_os in
5717 mingw*) lt_bad_file=conftest.nm/nofile ;;
5718 *) lt_bad_file=/dev/null ;;
5719 esac
5720 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5721 *$lt_bad_file* | *'Invalid file or object type'*)
5722 lt_cv_path_NM="$tmp_nm -B"
5723 break 2
5724 ;;
5725 *)
5726 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5727 */dev/null*)
5728 lt_cv_path_NM="$tmp_nm -p"
5729 break 2
5730 ;;
5731 *)
5732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5733 continue # so that we can try to find one that supports BSD flags
5734 ;;
5735 esac
5736 ;;
5737 esac
5738 fi
5739 done
5740 IFS=$lt_save_ifs
5741 done
5742 : ${lt_cv_path_NM=no}
5743 fi
5744 fi
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5746 printf "%s\n" "$lt_cv_path_NM" >&6; }
5747 if test no != "$lt_cv_path_NM"; then
5748 NM=$lt_cv_path_NM
5749 else
5750 # Didn't find any BSD compatible name lister, look for dumpbin.
5751 if test -n "$DUMPBIN"; then :
5752 # Let the user override the test.
5753 else
5754 if test -n "$ac_tool_prefix"; then
5755 for ac_prog in dumpbin "link -dump"
5756 do
5757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 printf %s "checking for $ac_word... " >&6; }
5761 if test ${ac_cv_prog_DUMPBIN+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
5765 if test -n "$DUMPBIN"; then
5766 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 case $as_dir in #(((
5773 '') as_dir=./ ;;
5774 */) ;;
5775 *) as_dir=$as_dir/ ;;
5776 esac
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 DUMPBIN=$ac_cv_prog_DUMPBIN
5790 if test -n "$DUMPBIN"; then
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5792 printf "%s\n" "$DUMPBIN" >&6; }
5793 else
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 printf "%s\n" "no" >&6; }
5796 fi
5797
5798
5799 test -n "$DUMPBIN" && break
5800 done
5801 fi
5802 if test -z "$DUMPBIN"; then
5803 ac_ct_DUMPBIN=$DUMPBIN
5804 for ac_prog in dumpbin "link -dump"
5805 do
5806 # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 printf %s "checking for $ac_word... " >&6; }
5810 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5811 then :
5812 printf %s "(cached) " >&6
5813 else $as_nop
5814 if test -n "$ac_ct_DUMPBIN"; then
5815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 case $as_dir in #(((
5822 '') as_dir=./ ;;
5823 */) ;;
5824 *) as_dir=$as_dir/ ;;
5825 esac
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5839 if test -n "$ac_ct_DUMPBIN"; then
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5841 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5842 else
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 printf "%s\n" "no" >&6; }
5845 fi
5846
5847
5848 test -n "$ac_ct_DUMPBIN" && break
5849 done
5850
5851 if test "x$ac_ct_DUMPBIN" = x; then
5852 DUMPBIN=":"
5853 else
5854 case $cross_compiling:$ac_tool_warned in
5855 yes:)
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5858 ac_tool_warned=yes ;;
5859 esac
5860 DUMPBIN=$ac_ct_DUMPBIN
5861 fi
5862 fi
5863
5864 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5865 *COFF*)
5866 DUMPBIN="$DUMPBIN -symbols -headers"
5867 ;;
5868 *)
5869 DUMPBIN=:
5870 ;;
5871 esac
5872 fi
5873
5874 if test : != "$DUMPBIN"; then
5875 NM=$DUMPBIN
5876 fi
5877 fi
5878 test -z "$NM" && NM=nm
5879
5880
5881
5882
5883
5884
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5886 printf %s "checking the name lister ($NM) interface... " >&6; }
5887 if test ${lt_cv_nm_interface+y}
5888 then :
5889 printf %s "(cached) " >&6
5890 else $as_nop
5891 lt_cv_nm_interface="BSD nm"
5892 echo "int some_variable = 0;" > conftest.$ac_ext
5893 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5894 (eval "$ac_compile" 2>conftest.err)
5895 cat conftest.err >&5
5896 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5897 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5898 cat conftest.err >&5
5899 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5900 cat conftest.out >&5
5901 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5902 lt_cv_nm_interface="MS dumpbin"
5903 fi
5904 rm -f conftest*
5905 fi
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5907 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5908
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5910 printf %s "checking whether ln -s works... " >&6; }
5911 LN_S=$as_ln_s
5912 if test "$LN_S" = "ln -s"; then
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5914 printf "%s\n" "yes" >&6; }
5915 else
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5917 printf "%s\n" "no, using $LN_S" >&6; }
5918 fi
5919
5920 # find the maximum length of command line arguments
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5922 printf %s "checking the maximum length of command line arguments... " >&6; }
5923 if test ${lt_cv_sys_max_cmd_len+y}
5924 then :
5925 printf %s "(cached) " >&6
5926 else $as_nop
5927 i=0
5928 teststring=ABCD
5929
5930 case $build_os in
5931 msdosdjgpp*)
5932 # On DJGPP, this test can blow up pretty badly due to problems in libc
5933 # (any single argument exceeding 2000 bytes causes a buffer overrun
5934 # during glob expansion). Even if it were fixed, the result of this
5935 # check would be larger than it should be.
5936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5937 ;;
5938
5939 gnu*)
5940 # Under GNU Hurd, this test is not required because there is
5941 # no limit to the length of command line arguments.
5942 # Libtool will interpret -1 as no limit whatsoever
5943 lt_cv_sys_max_cmd_len=-1;
5944 ;;
5945
5946 cygwin* | mingw* | cegcc*)
5947 # On Win9x/ME, this test blows up -- it succeeds, but takes
5948 # about 5 minutes as the teststring grows exponentially.
5949 # Worse, since 9x/ME are not pre-emptively multitasking,
5950 # you end up with a "frozen" computer, even though with patience
5951 # the test eventually succeeds (with a max line length of 256k).
5952 # Instead, let's just punt: use the minimum linelength reported by
5953 # all of the supported platforms: 8192 (on NT/2K/XP).
5954 lt_cv_sys_max_cmd_len=8192;
5955 ;;
5956
5957 mint*)
5958 # On MiNT this can take a long time and run out of memory.
5959 lt_cv_sys_max_cmd_len=8192;
5960 ;;
5961
5962 amigaos*)
5963 # On AmigaOS with pdksh, this test takes hours, literally.
5964 # So we just punt and use a minimum line length of 8192.
5965 lt_cv_sys_max_cmd_len=8192;
5966 ;;
5967
5968 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5969 # This has been around since 386BSD, at least. Likely further.
5970 if test -x /sbin/sysctl; then
5971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5972 elif test -x /usr/sbin/sysctl; then
5973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5974 else
5975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5976 fi
5977 # And add a safety zone
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5980 ;;
5981
5982 interix*)
5983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5984 lt_cv_sys_max_cmd_len=196608
5985 ;;
5986
5987 os2*)
5988 # The test takes a long time on OS/2.
5989 lt_cv_sys_max_cmd_len=8192
5990 ;;
5991
5992 osf*)
5993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5995 # nice to cause kernel panics so lets avoid the loop below.
5996 # First set a reasonable default.
5997 lt_cv_sys_max_cmd_len=16384
5998 #
5999 if test -x /sbin/sysconfig; then
6000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6002 esac
6003 fi
6004 ;;
6005 sco3.2v5*)
6006 lt_cv_sys_max_cmd_len=102400
6007 ;;
6008 sysv5* | sco5v6* | sysv4.2uw2*)
6009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6010 if test -n "$kargmax"; then
6011 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6012 else
6013 lt_cv_sys_max_cmd_len=32768
6014 fi
6015 ;;
6016 *)
6017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6018 if test -n "$lt_cv_sys_max_cmd_len" && \
6019 test undefined != "$lt_cv_sys_max_cmd_len"; then
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6022 else
6023 # Make teststring a little bigger before we do anything with it.
6024 # a 1K string should be a reasonable start.
6025 for i in 1 2 3 4 5 6 7 8; do
6026 teststring=$teststring$teststring
6027 done
6028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6029 # If test is not a shell built-in, we'll probably end up computing a
6030 # maximum length that is only half of the actual maximum length, but
6031 # we can't tell.
6032 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6033 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6034 test 17 != "$i" # 1/2 MB should be enough
6035 do
6036 i=`expr $i + 1`
6037 teststring=$teststring$teststring
6038 done
6039 # Only check the string length outside the loop.
6040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6041 teststring=
6042 # Add a significant safety factor because C++ compilers can tack on
6043 # massive amounts of additional arguments before passing them to the
6044 # linker. It appears as though 1/2 is a usable value.
6045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6046 fi
6047 ;;
6048 esac
6049
6050 fi
6051
6052 if test -n "$lt_cv_sys_max_cmd_len"; then
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6054 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6055 else
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6057 printf "%s\n" "none" >&6; }
6058 fi
6059 max_cmd_len=$lt_cv_sys_max_cmd_len
6060
6061
6062
6063
6064
6065
6066 : ${CP="cp -f"}
6067 : ${MV="mv -f"}
6068 : ${RM="rm -f"}
6069
6070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6071 lt_unset=unset
6072 else
6073 lt_unset=false
6074 fi
6075
6076
6077
6078
6079
6080 # test EBCDIC or ASCII
6081 case `echo X|tr X '\101'` in
6082 A) # ASCII based system
6083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6084 lt_SP2NL='tr \040 \012'
6085 lt_NL2SP='tr \015\012 \040\040'
6086 ;;
6087 *) # EBCDIC based system
6088 lt_SP2NL='tr \100 \n'
6089 lt_NL2SP='tr \r\n \100\100'
6090 ;;
6091 esac
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6102 printf %s "checking how to convert $build file names to $host format... " >&6; }
6103 if test ${lt_cv_to_host_file_cmd+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 case $host in
6108 *-*-mingw* )
6109 case $build in
6110 *-*-mingw* ) # actually msys
6111 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6112 ;;
6113 *-*-cygwin* )
6114 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6115 ;;
6116 * ) # otherwise, assume *nix
6117 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6118 ;;
6119 esac
6120 ;;
6121 *-*-cygwin* )
6122 case $build in
6123 *-*-mingw* ) # actually msys
6124 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6125 ;;
6126 *-*-cygwin* )
6127 lt_cv_to_host_file_cmd=func_convert_file_noop
6128 ;;
6129 * ) # otherwise, assume *nix
6130 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6131 ;;
6132 esac
6133 ;;
6134 * ) # unhandled hosts (and "normal" native builds)
6135 lt_cv_to_host_file_cmd=func_convert_file_noop
6136 ;;
6137 esac
6138
6139 fi
6140
6141 to_host_file_cmd=$lt_cv_to_host_file_cmd
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6143 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6144
6145
6146
6147
6148
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6150 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6151 if test ${lt_cv_to_tool_file_cmd+y}
6152 then :
6153 printf %s "(cached) " >&6
6154 else $as_nop
6155 #assume ordinary cross tools, or native build.
6156 lt_cv_to_tool_file_cmd=func_convert_file_noop
6157 case $host in
6158 *-*-mingw* )
6159 case $build in
6160 *-*-mingw* ) # actually msys
6161 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6162 ;;
6163 esac
6164 ;;
6165 esac
6166
6167 fi
6168
6169 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6171 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6172
6173
6174
6175
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6178 printf %s "checking for $LD option to reload object files... " >&6; }
6179 if test ${lt_cv_ld_reload_flag+y}
6180 then :
6181 printf %s "(cached) " >&6
6182 else $as_nop
6183 lt_cv_ld_reload_flag='-r'
6184 fi
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6186 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6187 reload_flag=$lt_cv_ld_reload_flag
6188 case $reload_flag in
6189 "" | " "*) ;;
6190 *) reload_flag=" $reload_flag" ;;
6191 esac
6192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 case $host_os in
6194 cygwin* | mingw* | pw32* | cegcc*)
6195 if test yes != "$GCC"; then
6196 reload_cmds=false
6197 fi
6198 ;;
6199 darwin*)
6200 if test yes = "$GCC"; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6202 else
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204 fi
6205 ;;
6206 esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}file; ac_word=$2
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 printf %s "checking for $ac_word... " >&6; }
6221 if test ${ac_cv_prog_FILECMD+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else $as_nop
6225 if test -n "$FILECMD"; then
6226 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 case $as_dir in #(((
6233 '') as_dir=./ ;;
6234 */) ;;
6235 *) as_dir=$as_dir/ ;;
6236 esac
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 FILECMD=$ac_cv_prog_FILECMD
6250 if test -n "$FILECMD"; then
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6252 printf "%s\n" "$FILECMD" >&6; }
6253 else
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 printf "%s\n" "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_FILECMD"; then
6261 ac_ct_FILECMD=$FILECMD
6262 # Extract the first word of "file", so it can be a program name with args.
6263 set dummy file; ac_word=$2
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 printf %s "checking for $ac_word... " >&6; }
6266 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else $as_nop
6270 if test -n "$ac_ct_FILECMD"; then
6271 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 case $as_dir in #(((
6278 '') as_dir=./ ;;
6279 */) ;;
6280 *) as_dir=$as_dir/ ;;
6281 esac
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_FILECMD="file"
6285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6295 if test -n "$ac_ct_FILECMD"; then
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6297 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6298 else
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 printf "%s\n" "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_FILECMD" = x; then
6304 FILECMD=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 FILECMD=$ac_ct_FILECMD
6313 fi
6314 else
6315 FILECMD="$ac_cv_prog_FILECMD"
6316 fi
6317
6318
6319
6320
6321
6322
6323
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 printf %s "checking for $ac_word... " >&6; }
6329 if test ${ac_cv_prog_OBJDUMP+y}
6330 then :
6331 printf %s "(cached) " >&6
6332 else $as_nop
6333 if test -n "$OBJDUMP"; then
6334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 case $as_dir in #(((
6341 '') as_dir=./ ;;
6342 */) ;;
6343 *) as_dir=$as_dir/ ;;
6344 esac
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 OBJDUMP=$ac_cv_prog_OBJDUMP
6358 if test -n "$OBJDUMP"; then
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6360 printf "%s\n" "$OBJDUMP" >&6; }
6361 else
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 printf "%s\n" "no" >&6; }
6364 fi
6365
6366
6367 fi
6368 if test -z "$ac_cv_prog_OBJDUMP"; then
6369 ac_ct_OBJDUMP=$OBJDUMP
6370 # Extract the first word of "objdump", so it can be a program name with args.
6371 set dummy objdump; ac_word=$2
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 printf %s "checking for $ac_word... " >&6; }
6374 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6375 then :
6376 printf %s "(cached) " >&6
6377 else $as_nop
6378 if test -n "$ac_ct_OBJDUMP"; then
6379 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 case $as_dir in #(((
6386 '') as_dir=./ ;;
6387 */) ;;
6388 *) as_dir=$as_dir/ ;;
6389 esac
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6403 if test -n "$ac_ct_OBJDUMP"; then
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6405 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6406 else
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 printf "%s\n" "no" >&6; }
6409 fi
6410
6411 if test "x$ac_ct_OBJDUMP" = x; then
6412 OBJDUMP="false"
6413 else
6414 case $cross_compiling:$ac_tool_warned in
6415 yes:)
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418 ac_tool_warned=yes ;;
6419 esac
6420 OBJDUMP=$ac_ct_OBJDUMP
6421 fi
6422 else
6423 OBJDUMP="$ac_cv_prog_OBJDUMP"
6424 fi
6425
6426 test -z "$OBJDUMP" && OBJDUMP=objdump
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6437 printf %s "checking how to recognize dependent libraries... " >&6; }
6438 if test ${lt_cv_deplibs_check_method+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else $as_nop
6442 lt_cv_file_magic_cmd='$MAGIC_CMD'
6443 lt_cv_file_magic_test_file=
6444 lt_cv_deplibs_check_method='unknown'
6445 # Need to set the preceding variable on all platforms that support
6446 # interlibrary dependencies.
6447 # 'none' -- dependencies not supported.
6448 # 'unknown' -- same as none, but documents that we really don't know.
6449 # 'pass_all' -- all dependencies passed with no checks.
6450 # 'test_compile' -- check by making test program.
6451 # 'file_magic [[regex]]' -- check by looking for files in library path
6452 # that responds to the $file_magic_cmd with a given extended regex.
6453 # If you have 'file' or equivalent on your system and you're not sure
6454 # whether 'pass_all' will *always* work, you probably want this one.
6455
6456 case $host_os in
6457 aix[4-9]*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 beos*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 bsdi[45]*)
6466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6467 lt_cv_file_magic_cmd='$FILECMD -L'
6468 lt_cv_file_magic_test_file=/shlib/libc.so
6469 ;;
6470
6471 cygwin*)
6472 # func_win32_libid is a shell function defined in ltmain.sh
6473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6474 lt_cv_file_magic_cmd='func_win32_libid'
6475 ;;
6476
6477 mingw* | pw32*)
6478 # Base MSYS/MinGW do not provide the 'file' command needed by
6479 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6480 # unless we find 'file', for example because we are cross-compiling.
6481 if ( file / ) >/dev/null 2>&1; then
6482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6483 lt_cv_file_magic_cmd='func_win32_libid'
6484 else
6485 # Keep this pattern in sync with the one in func_win32_libid.
6486 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6487 lt_cv_file_magic_cmd='$OBJDUMP -f'
6488 fi
6489 ;;
6490
6491 cegcc*)
6492 # use the weaker test based on 'objdump'. See mingw*.
6493 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6494 lt_cv_file_magic_cmd='$OBJDUMP -f'
6495 ;;
6496
6497 darwin* | rhapsody*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501 freebsd* | dragonfly* | midnightbsd*)
6502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6503 case $host_cpu in
6504 i*86 )
6505 # Not sure whether the presence of OpenBSD here was a mistake.
6506 # Let's accept both of them until this is cleared up.
6507 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6508 lt_cv_file_magic_cmd=$FILECMD
6509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6510 ;;
6511 esac
6512 else
6513 lt_cv_deplibs_check_method=pass_all
6514 fi
6515 ;;
6516
6517 haiku*)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521 hpux10.20* | hpux11*)
6522 lt_cv_file_magic_cmd=$FILECMD
6523 case $host_cpu in
6524 ia64*)
6525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6526 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6527 ;;
6528 hppa*64*)
6529 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]'
6530 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6531 ;;
6532 *)
6533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6534 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6535 ;;
6536 esac
6537 ;;
6538
6539 interix[3-9]*)
6540 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6542 ;;
6543
6544 irix5* | irix6* | nonstopux*)
6545 case $LD in
6546 *-32|*"-32 ") libmagic=32-bit;;
6547 *-n32|*"-n32 ") libmagic=N32;;
6548 *-64|*"-64 ") libmagic=64-bit;;
6549 *) libmagic=never-match;;
6550 esac
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553
6554 # This must be glibc/ELF.
6555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558
6559 netbsd* | netbsdelf*-gnu)
6560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6562 else
6563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6564 fi
6565 ;;
6566
6567 newos6*)
6568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6569 lt_cv_file_magic_cmd=$FILECMD
6570 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6571 ;;
6572
6573 *nto* | *qnx*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 openbsd* | bitrig*)
6578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6580 else
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6582 fi
6583 ;;
6584
6585 osf3* | osf4* | osf5*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 rdos*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 solaris*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600
6601 sysv4 | sysv4.3*)
6602 case $host_vendor in
6603 motorola)
6604 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]'
6605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6606 ;;
6607 ncr)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610 sequent)
6611 lt_cv_file_magic_cmd='/bin/file'
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6613 ;;
6614 sni)
6615 lt_cv_file_magic_cmd='/bin/file'
6616 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6617 lt_cv_file_magic_test_file=/lib/libc.so
6618 ;;
6619 siemens)
6620 lt_cv_deplibs_check_method=pass_all
6621 ;;
6622 pc)
6623 lt_cv_deplibs_check_method=pass_all
6624 ;;
6625 esac
6626 ;;
6627
6628 tpf*)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631 os2*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634 esac
6635
6636 fi
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6638 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6639
6640 file_magic_glob=
6641 want_nocaseglob=no
6642 if test "$build" = "$host"; then
6643 case $host_os in
6644 mingw* | pw32*)
6645 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6646 want_nocaseglob=yes
6647 else
6648 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6649 fi
6650 ;;
6651 esac
6652 fi
6653
6654 file_magic_cmd=$lt_cv_file_magic_cmd
6655 deplibs_check_method=$lt_cv_deplibs_check_method
6656 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 printf %s "checking for $ac_word... " >&6; }
6684 if test ${ac_cv_prog_DLLTOOL+y}
6685 then :
6686 printf %s "(cached) " >&6
6687 else $as_nop
6688 if test -n "$DLLTOOL"; then
6689 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 case $as_dir in #(((
6696 '') as_dir=./ ;;
6697 */) ;;
6698 *) as_dir=$as_dir/ ;;
6699 esac
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 DLLTOOL=$ac_cv_prog_DLLTOOL
6713 if test -n "$DLLTOOL"; then
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6715 printf "%s\n" "$DLLTOOL" >&6; }
6716 else
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 printf "%s\n" "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_DLLTOOL"; then
6724 ac_ct_DLLTOOL=$DLLTOOL
6725 # Extract the first word of "dlltool", so it can be a program name with args.
6726 set dummy dlltool; ac_word=$2
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 printf %s "checking for $ac_word... " >&6; }
6729 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6730 then :
6731 printf %s "(cached) " >&6
6732 else $as_nop
6733 if test -n "$ac_ct_DLLTOOL"; then
6734 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 case $as_dir in #(((
6741 '') as_dir=./ ;;
6742 */) ;;
6743 *) as_dir=$as_dir/ ;;
6744 esac
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6758 if test -n "$ac_ct_DLLTOOL"; then
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6760 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6761 else
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 printf "%s\n" "no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_DLLTOOL" = x; then
6767 DLLTOOL="false"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 DLLTOOL=$ac_ct_DLLTOOL
6776 fi
6777 else
6778 DLLTOOL="$ac_cv_prog_DLLTOOL"
6779 fi
6780
6781 test -z "$DLLTOOL" && DLLTOOL=dlltool
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6793 printf %s "checking how to associate runtime and link libraries... " >&6; }
6794 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6795 then :
6796 printf %s "(cached) " >&6
6797 else $as_nop
6798 lt_cv_sharedlib_from_linklib_cmd='unknown'
6799
6800 case $host_os in
6801 cygwin* | mingw* | pw32* | cegcc*)
6802 # two different shell functions defined in ltmain.sh;
6803 # decide which one to use based on capabilities of $DLLTOOL
6804 case `$DLLTOOL --help 2>&1` in
6805 *--identify-strict*)
6806 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6807 ;;
6808 *)
6809 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6810 ;;
6811 esac
6812 ;;
6813 *)
6814 # fallback: assume linklib IS sharedlib
6815 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6816 ;;
6817 esac
6818
6819 fi
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6821 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6822 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6823 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6824
6825
6826
6827
6828
6829
6830
6831 if test -n "$ac_tool_prefix"; then
6832 for ac_prog in ar
6833 do
6834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 printf %s "checking for $ac_word... " >&6; }
6838 if test ${ac_cv_prog_AR+y}
6839 then :
6840 printf %s "(cached) " >&6
6841 else $as_nop
6842 if test -n "$AR"; then
6843 ac_cv_prog_AR="$AR" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 case $as_dir in #(((
6850 '') as_dir=./ ;;
6851 */) ;;
6852 *) as_dir=$as_dir/ ;;
6853 esac
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 AR=$ac_cv_prog_AR
6867 if test -n "$AR"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6869 printf "%s\n" "$AR" >&6; }
6870 else
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 printf "%s\n" "no" >&6; }
6873 fi
6874
6875
6876 test -n "$AR" && break
6877 done
6878 fi
6879 if test -z "$AR"; then
6880 ac_ct_AR=$AR
6881 for ac_prog in ar
6882 do
6883 # Extract the first word of "$ac_prog", so it can be a program name with args.
6884 set dummy $ac_prog; ac_word=$2
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 printf %s "checking for $ac_word... " >&6; }
6887 if test ${ac_cv_prog_ac_ct_AR+y}
6888 then :
6889 printf %s "(cached) " >&6
6890 else $as_nop
6891 if test -n "$ac_ct_AR"; then
6892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 case $as_dir in #(((
6899 '') as_dir=./ ;;
6900 */) ;;
6901 *) as_dir=$as_dir/ ;;
6902 esac
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_ac_ct_AR="$ac_prog"
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6916 if test -n "$ac_ct_AR"; then
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6918 printf "%s\n" "$ac_ct_AR" >&6; }
6919 else
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 printf "%s\n" "no" >&6; }
6922 fi
6923
6924
6925 test -n "$ac_ct_AR" && break
6926 done
6927
6928 if test "x$ac_ct_AR" = x; then
6929 AR="false"
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937 AR=$ac_ct_AR
6938 fi
6939 fi
6940
6941 : ${AR=ar}
6942
6943
6944
6945
6946
6947
6948 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6949 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6950 # higher priority because thats what people were doing historically (setting
6951 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6952 # variable obsoleted/removed.
6953
6954 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6955 lt_ar_flags=$AR_FLAGS
6956
6957
6958
6959
6960
6961
6962 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6963 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6964
6965
6966
6967
6968
6969
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6971 printf %s "checking for archiver @FILE support... " >&6; }
6972 if test ${lt_cv_ar_at_file+y}
6973 then :
6974 printf %s "(cached) " >&6
6975 else $as_nop
6976 lt_cv_ar_at_file=no
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979
6980 int
6981 main (void)
6982 {
6983
6984 ;
6985 return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"
6989 then :
6990 echo conftest.$ac_objext > conftest.lst
6991 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6993 (eval $lt_ar_try) 2>&5
6994 ac_status=$?
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }
6997 if test 0 -eq "$ac_status"; then
6998 # Ensure the archiver fails upon bogus file names.
6999 rm -f conftest.$ac_objext libconftest.a
7000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7001 (eval $lt_ar_try) 2>&5
7002 ac_status=$?
7003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }
7005 if test 0 -ne "$ac_status"; then
7006 lt_cv_ar_at_file=@
7007 fi
7008 fi
7009 rm -f conftest.* libconftest.a
7010
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7013
7014 fi
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7016 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7017
7018 if test no = "$lt_cv_ar_at_file"; then
7019 archiver_list_spec=
7020 else
7021 archiver_list_spec=$lt_cv_ar_at_file
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}strip; ac_word=$2
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 printf %s "checking for $ac_word... " >&6; }
7035 if test ${ac_cv_prog_STRIP+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else $as_nop
7039 if test -n "$STRIP"; then
7040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 case $as_dir in #(((
7047 '') as_dir=./ ;;
7048 */) ;;
7049 *) as_dir=$as_dir/ ;;
7050 esac
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 STRIP=$ac_cv_prog_STRIP
7064 if test -n "$STRIP"; then
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7066 printf "%s\n" "$STRIP" >&6; }
7067 else
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 printf "%s\n" "no" >&6; }
7070 fi
7071
7072
7073 fi
7074 if test -z "$ac_cv_prog_STRIP"; then
7075 ac_ct_STRIP=$STRIP
7076 # Extract the first word of "strip", so it can be a program name with args.
7077 set dummy strip; ac_word=$2
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 printf %s "checking for $ac_word... " >&6; }
7080 if test ${ac_cv_prog_ac_ct_STRIP+y}
7081 then :
7082 printf %s "(cached) " >&6
7083 else $as_nop
7084 if test -n "$ac_ct_STRIP"; then
7085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 case $as_dir in #(((
7092 '') as_dir=./ ;;
7093 */) ;;
7094 *) as_dir=$as_dir/ ;;
7095 esac
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_ac_ct_STRIP="strip"
7099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7109 if test -n "$ac_ct_STRIP"; then
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7111 printf "%s\n" "$ac_ct_STRIP" >&6; }
7112 else
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 printf "%s\n" "no" >&6; }
7115 fi
7116
7117 if test "x$ac_ct_STRIP" = x; then
7118 STRIP=":"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 STRIP=$ac_ct_STRIP
7127 fi
7128 else
7129 STRIP="$ac_cv_prog_STRIP"
7130 fi
7131
7132 test -z "$STRIP" && STRIP=:
7133
7134
7135
7136
7137
7138
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 printf %s "checking for $ac_word... " >&6; }
7144 if test ${ac_cv_prog_RANLIB+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 if test -n "$RANLIB"; then
7149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154 IFS=$as_save_IFS
7155 case $as_dir in #(((
7156 '') as_dir=./ ;;
7157 */) ;;
7158 *) as_dir=$as_dir/ ;;
7159 esac
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 RANLIB=$ac_cv_prog_RANLIB
7173 if test -n "$RANLIB"; then
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7175 printf "%s\n" "$RANLIB" >&6; }
7176 else
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 printf "%s\n" "no" >&6; }
7179 fi
7180
7181
7182 fi
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184 ac_ct_RANLIB=$RANLIB
7185 # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 printf %s "checking for $ac_word... " >&6; }
7189 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7190 then :
7191 printf %s "(cached) " >&6
7192 else $as_nop
7193 if test -n "$ac_ct_RANLIB"; then
7194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 case $as_dir in #(((
7201 '') as_dir=./ ;;
7202 */) ;;
7203 *) as_dir=$as_dir/ ;;
7204 esac
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_RANLIB="ranlib"
7208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7218 if test -n "$ac_ct_RANLIB"; then
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7220 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7221 else
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 printf "%s\n" "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_RANLIB" = x; then
7227 RANLIB=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 RANLIB=$ac_ct_RANLIB
7236 fi
7237 else
7238 RANLIB="$ac_cv_prog_RANLIB"
7239 fi
7240
7241 test -z "$RANLIB" && RANLIB=:
7242
7243
7244
7245
7246
7247
7248 # Determine commands to create old-style static archives.
7249 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7250 old_postinstall_cmds='chmod 644 $oldlib'
7251 old_postuninstall_cmds=
7252
7253 if test -n "$RANLIB"; then
7254 case $host_os in
7255 bitrig* | openbsd*)
7256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7257 ;;
7258 *)
7259 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7260 ;;
7261 esac
7262 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7263 fi
7264
7265 case $host_os in
7266 darwin*)
7267 lock_old_archive_extraction=yes ;;
7268 *)
7269 lock_old_archive_extraction=no ;;
7270 esac
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 # If no C compiler was specified, use CC.
7311 LTCC=${LTCC-"$CC"}
7312
7313 # If no C compiler flags were specified, use CFLAGS.
7314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7315
7316 # Allow CC to be a program name with arguments.
7317 compiler=$CC
7318
7319
7320 # Check for command to grab the raw symbol name followed by C symbol from nm.
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7322 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7323 if test ${lt_cv_sys_global_symbol_pipe+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else $as_nop
7327
7328 # These are sane defaults that work on at least a few old systems.
7329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7330
7331 # Character class describing NM global symbol codes.
7332 symcode='[BCDEGRST]'
7333
7334 # Regexp to match symbols that can be accessed directly from C.
7335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7336
7337 # Define system-specific variables.
7338 case $host_os in
7339 aix*)
7340 symcode='[BCDT]'
7341 ;;
7342 cygwin* | mingw* | pw32* | cegcc*)
7343 symcode='[ABCDGISTW]'
7344 ;;
7345 hpux*)
7346 if test ia64 = "$host_cpu"; then
7347 symcode='[ABCDEGRST]'
7348 fi
7349 ;;
7350 irix* | nonstopux*)
7351 symcode='[BCDEGRST]'
7352 ;;
7353 osf*)
7354 symcode='[BCDEGQRST]'
7355 ;;
7356 solaris*)
7357 symcode='[BDRT]'
7358 ;;
7359 sco3.2v5*)
7360 symcode='[DT]'
7361 ;;
7362 sysv4.2uw2*)
7363 symcode='[DT]'
7364 ;;
7365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7366 symcode='[ABDT]'
7367 ;;
7368 sysv4)
7369 symcode='[DFNSTU]'
7370 ;;
7371 esac
7372
7373 # If we're using GNU nm, then use its standard symbol codes.
7374 case `$NM -V 2>&1` in
7375 *GNU* | *'with BFD'*)
7376 symcode='[ABCDGIRSTW]' ;;
7377 esac
7378
7379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7380 # Gets list of data symbols to import.
7381 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7382 # Adjust the below global symbol transforms to fixup imported variables.
7383 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7384 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7385 lt_c_name_lib_hook="\
7386 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7387 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7388 else
7389 # Disable hooks by default.
7390 lt_cv_sys_global_symbol_to_import=
7391 lt_cdecl_hook=
7392 lt_c_name_hook=
7393 lt_c_name_lib_hook=
7394 fi
7395
7396 # Transform an extracted symbol line into a proper C declaration.
7397 # Some systems (esp. on ia64) link data and code symbols differently,
7398 # so use this general approach.
7399 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7400 $lt_cdecl_hook\
7401 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7402 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7403
7404 # Transform an extracted symbol line into symbol name and symbol address
7405 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7406 $lt_c_name_hook\
7407 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7408 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7409
7410 # Transform an extracted symbol line into symbol name with lib prefix and
7411 # symbol address.
7412 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7413 $lt_c_name_lib_hook\
7414 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7415 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7416 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7417
7418 # Handle CRLF in mingw tool chain
7419 opt_cr=
7420 case $build_os in
7421 mingw*)
7422 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7423 ;;
7424 esac
7425
7426 # Try without a prefix underscore, then with it.
7427 for ac_symprfx in "" "_"; do
7428
7429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7430 symxfrm="\\1 $ac_symprfx\\2 \\2"
7431
7432 # Write the raw and C identifiers.
7433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7434 # Fake it for dumpbin and say T for any non-static function,
7435 # D for any global variable and I for any imported variable.
7436 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7437 # which start with @ or ?.
7438 lt_cv_sys_global_symbol_pipe="$AWK '"\
7439 " {last_section=section; section=\$ 3};"\
7440 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7441 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7442 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7443 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7444 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7445 " \$ 0!~/External *\|/{next};"\
7446 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7447 " {if(hide[section]) next};"\
7448 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7449 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7450 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7451 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7452 " ' prfx=^$ac_symprfx"
7453 else
7454 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7455 fi
7456 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7457
7458 # Check to see that the pipe works correctly.
7459 pipe_works=no
7460
7461 rm -f conftest*
7462 cat > conftest.$ac_ext <<_LT_EOF
7463 #ifdef __cplusplus
7464 extern "C" {
7465 #endif
7466 char nm_test_var;
7467 void nm_test_func(void);
7468 void nm_test_func(void){}
7469 #ifdef __cplusplus
7470 }
7471 #endif
7472 int main(){nm_test_var='a';nm_test_func();return(0);}
7473 _LT_EOF
7474
7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476 (eval $ac_compile) 2>&5
7477 ac_status=$?
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7480 # Now try to grab the symbols.
7481 nlist=conftest.nm
7482 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7483 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7484 # Try sorting and uniquifying the output.
7485 if sort "$nlist" | uniq > "$nlist"T; then
7486 mv -f "$nlist"T "$nlist"
7487 else
7488 rm -f "$nlist"T
7489 fi
7490
7491 # Make sure that we snagged all the symbols we need.
7492 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7493 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7494 cat <<_LT_EOF > conftest.$ac_ext
7495 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7496 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7497 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7498 relocations are performed -- see ld's documentation on pseudo-relocs. */
7499 # define LT_DLSYM_CONST
7500 #elif defined __osf__
7501 /* This system does not cope well with relocations in const data. */
7502 # define LT_DLSYM_CONST
7503 #else
7504 # define LT_DLSYM_CONST const
7505 #endif
7506
7507 #ifdef __cplusplus
7508 extern "C" {
7509 #endif
7510
7511 _LT_EOF
7512 # Now generate the symbol file.
7513 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7514
7515 cat <<_LT_EOF >> conftest.$ac_ext
7516
7517 /* The mapping between symbol names and symbols. */
7518 LT_DLSYM_CONST struct {
7519 const char *name;
7520 void *address;
7521 }
7522 lt__PROGRAM__LTX_preloaded_symbols[] =
7523 {
7524 { "@PROGRAM@", (void *) 0 },
7525 _LT_EOF
7526 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7527 cat <<\_LT_EOF >> conftest.$ac_ext
7528 {0, (void *) 0}
7529 };
7530
7531 /* This works around a problem in FreeBSD linker */
7532 #ifdef FREEBSD_WORKAROUND
7533 static const void *lt_preloaded_setup() {
7534 return lt__PROGRAM__LTX_preloaded_symbols;
7535 }
7536 #endif
7537
7538 #ifdef __cplusplus
7539 }
7540 #endif
7541 _LT_EOF
7542 # Now try linking the two files.
7543 mv conftest.$ac_objext conftstm.$ac_objext
7544 lt_globsym_save_LIBS=$LIBS
7545 lt_globsym_save_CFLAGS=$CFLAGS
7546 LIBS=conftstm.$ac_objext
7547 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7549 (eval $ac_link) 2>&5
7550 ac_status=$?
7551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7553 pipe_works=yes
7554 fi
7555 LIBS=$lt_globsym_save_LIBS
7556 CFLAGS=$lt_globsym_save_CFLAGS
7557 else
7558 echo "cannot find nm_test_func in $nlist" >&5
7559 fi
7560 else
7561 echo "cannot find nm_test_var in $nlist" >&5
7562 fi
7563 else
7564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7565 fi
7566 else
7567 echo "$progname: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 fi
7570 rm -rf conftest* conftst*
7571
7572 # Do not use the global_symbol_pipe unless it works.
7573 if test yes = "$pipe_works"; then
7574 break
7575 else
7576 lt_cv_sys_global_symbol_pipe=
7577 fi
7578 done
7579
7580 fi
7581
7582 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7583 lt_cv_sys_global_symbol_to_cdecl=
7584 fi
7585 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7587 printf "%s\n" "failed" >&6; }
7588 else
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7590 printf "%s\n" "ok" >&6; }
7591 fi
7592
7593 # Response file support.
7594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7595 nm_file_list_spec='@'
7596 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7597 nm_file_list_spec='@'
7598 fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7637 printf %s "checking for sysroot... " >&6; }
7638
7639 # Check whether --with-sysroot was given.
7640 if test ${with_sysroot+y}
7641 then :
7642 withval=$with_sysroot;
7643 else $as_nop
7644 with_sysroot=no
7645 fi
7646
7647
7648 lt_sysroot=
7649 case $with_sysroot in #(
7650 yes)
7651 if test yes = "$GCC"; then
7652 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7653 fi
7654 ;; #(
7655 /*)
7656 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7657 ;; #(
7658 no|'')
7659 ;; #(
7660 *)
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7662 printf "%s\n" "$with_sysroot" >&6; }
7663 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7664 ;;
7665 esac
7666
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7668 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7669
7670
7671
7672
7673
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7675 printf %s "checking for a working dd... " >&6; }
7676 if test ${ac_cv_path_lt_DD+y}
7677 then :
7678 printf %s "(cached) " >&6
7679 else $as_nop
7680 printf 0123456789abcdef0123456789abcdef >conftest.i
7681 cat conftest.i conftest.i >conftest2.i
7682 : ${lt_DD:=$DD}
7683 if test -z "$lt_DD"; then
7684 ac_path_lt_DD_found=false
7685 # Loop through the user's path and test for each of PROGNAME-LIST
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689 IFS=$as_save_IFS
7690 case $as_dir in #(((
7691 '') as_dir=./ ;;
7692 */) ;;
7693 *) as_dir=$as_dir/ ;;
7694 esac
7695 for ac_prog in dd
7696 do
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7699 as_fn_executable_p "$ac_path_lt_DD" || continue
7700 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7701 cmp -s conftest.i conftest.out \
7702 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7703 fi
7704 $ac_path_lt_DD_found && break 3
7705 done
7706 done
7707 done
7708 IFS=$as_save_IFS
7709 if test -z "$ac_cv_path_lt_DD"; then
7710 :
7711 fi
7712 else
7713 ac_cv_path_lt_DD=$lt_DD
7714 fi
7715
7716 rm -f conftest.i conftest2.i conftest.out
7717 fi
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7719 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7720
7721
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7723 printf %s "checking how to truncate binary pipes... " >&6; }
7724 if test ${lt_cv_truncate_bin+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else $as_nop
7728 printf 0123456789abcdef0123456789abcdef >conftest.i
7729 cat conftest.i conftest.i >conftest2.i
7730 lt_cv_truncate_bin=
7731 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7732 cmp -s conftest.i conftest.out \
7733 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7734 fi
7735 rm -f conftest.i conftest2.i conftest.out
7736 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7737 fi
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7739 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7740
7741
7742
7743
7744
7745
7746
7747 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7748 func_cc_basename ()
7749 {
7750 for cc_temp in $*""; do
7751 case $cc_temp in
7752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7754 \-*) ;;
7755 *) break;;
7756 esac
7757 done
7758 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7759 }
7760
7761 # Check whether --enable-libtool-lock was given.
7762 if test ${enable_libtool_lock+y}
7763 then :
7764 enableval=$enable_libtool_lock;
7765 fi
7766
7767 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7768
7769 # Some flags need to be propagated to the compiler or linker for good
7770 # libtool support.
7771 case $host in
7772 ia64-*-hpux*)
7773 # Find out what ABI is being produced by ac_compile, and set mode
7774 # options accordingly.
7775 echo 'int i;' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 case `$FILECMD conftest.$ac_objext` in
7782 *ELF-32*)
7783 HPUX_IA64_MODE=32
7784 ;;
7785 *ELF-64*)
7786 HPUX_IA64_MODE=64
7787 ;;
7788 esac
7789 fi
7790 rm -rf conftest*
7791 ;;
7792 *-*-irix6*)
7793 # Find out what ABI is being produced by ac_compile, and set linker
7794 # options accordingly.
7795 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7797 (eval $ac_compile) 2>&5
7798 ac_status=$?
7799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }; then
7801 if test yes = "$lt_cv_prog_gnu_ld"; then
7802 case `$FILECMD conftest.$ac_objext` in
7803 *32-bit*)
7804 LD="${LD-ld} -melf32bsmip"
7805 ;;
7806 *N32*)
7807 LD="${LD-ld} -melf32bmipn32"
7808 ;;
7809 *64-bit*)
7810 LD="${LD-ld} -melf64bmip"
7811 ;;
7812 esac
7813 else
7814 case `$FILECMD conftest.$ac_objext` in
7815 *32-bit*)
7816 LD="${LD-ld} -32"
7817 ;;
7818 *N32*)
7819 LD="${LD-ld} -n32"
7820 ;;
7821 *64-bit*)
7822 LD="${LD-ld} -64"
7823 ;;
7824 esac
7825 fi
7826 fi
7827 rm -rf conftest*
7828 ;;
7829
7830 mips64*-*linux*)
7831 # Find out what ABI is being produced by ac_compile, and set linker
7832 # options accordingly.
7833 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7835 (eval $ac_compile) 2>&5
7836 ac_status=$?
7837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; then
7839 emul=elf
7840 case `$FILECMD conftest.$ac_objext` in
7841 *32-bit*)
7842 emul="${emul}32"
7843 ;;
7844 *64-bit*)
7845 emul="${emul}64"
7846 ;;
7847 esac
7848 case `$FILECMD conftest.$ac_objext` in
7849 *MSB*)
7850 emul="${emul}btsmip"
7851 ;;
7852 *LSB*)
7853 emul="${emul}ltsmip"
7854 ;;
7855 esac
7856 case `$FILECMD conftest.$ac_objext` in
7857 *N32*)
7858 emul="${emul}n32"
7859 ;;
7860 esac
7861 LD="${LD-ld} -m $emul"
7862 fi
7863 rm -rf conftest*
7864 ;;
7865
7866 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7867 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7868 # Find out what ABI is being produced by ac_compile, and set linker
7869 # options accordingly. Note that the listed cases only cover the
7870 # situations where additional linker options are needed (such as when
7871 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7872 # vice versa); the common cases where no linker options are needed do
7873 # not appear in the list.
7874 echo 'int i;' > conftest.$ac_ext
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 case `$FILECMD conftest.o` in
7881 *32-bit*)
7882 case $host in
7883 x86_64-*kfreebsd*-gnu)
7884 LD="${LD-ld} -m elf_i386_fbsd"
7885 ;;
7886 x86_64-*linux*)
7887 case `$FILECMD conftest.o` in
7888 *x86-64*)
7889 LD="${LD-ld} -m elf32_x86_64"
7890 ;;
7891 *)
7892 LD="${LD-ld} -m elf_i386"
7893 ;;
7894 esac
7895 ;;
7896 powerpc64le-*linux*)
7897 LD="${LD-ld} -m elf32lppclinux"
7898 ;;
7899 powerpc64-*linux*)
7900 LD="${LD-ld} -m elf32ppclinux"
7901 ;;
7902 s390x-*linux*)
7903 LD="${LD-ld} -m elf_s390"
7904 ;;
7905 sparc64-*linux*)
7906 LD="${LD-ld} -m elf32_sparc"
7907 ;;
7908 esac
7909 ;;
7910 *64-bit*)
7911 case $host in
7912 x86_64-*kfreebsd*-gnu)
7913 LD="${LD-ld} -m elf_x86_64_fbsd"
7914 ;;
7915 x86_64-*linux*)
7916 LD="${LD-ld} -m elf_x86_64"
7917 ;;
7918 powerpcle-*linux*)
7919 LD="${LD-ld} -m elf64lppc"
7920 ;;
7921 powerpc-*linux*)
7922 LD="${LD-ld} -m elf64ppc"
7923 ;;
7924 s390*-*linux*|s390*-*tpf*)
7925 LD="${LD-ld} -m elf64_s390"
7926 ;;
7927 sparc*-*linux*)
7928 LD="${LD-ld} -m elf64_sparc"
7929 ;;
7930 esac
7931 ;;
7932 esac
7933 fi
7934 rm -rf conftest*
7935 ;;
7936
7937 *-*-sco3.2v5*)
7938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7939 SAVE_CFLAGS=$CFLAGS
7940 CFLAGS="$CFLAGS -belf"
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7942 printf %s "checking whether the C compiler needs -belf... " >&6; }
7943 if test ${lt_cv_cc_needs_belf+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else $as_nop
7947 ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955
7956 int
7957 main (void)
7958 {
7959
7960 ;
7961 return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_link "$LINENO"
7965 then :
7966 lt_cv_cc_needs_belf=yes
7967 else $as_nop
7968 lt_cv_cc_needs_belf=no
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7971 conftest$ac_exeext conftest.$ac_ext
7972 ac_ext=c
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977
7978 fi
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7980 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7981 if test yes != "$lt_cv_cc_needs_belf"; then
7982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7983 CFLAGS=$SAVE_CFLAGS
7984 fi
7985 ;;
7986 *-*solaris*)
7987 # Find out what ABI is being produced by ac_compile, and set linker
7988 # options accordingly.
7989 echo 'int i;' > conftest.$ac_ext
7990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7991 (eval $ac_compile) 2>&5
7992 ac_status=$?
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994 test $ac_status = 0; }; then
7995 case `$FILECMD conftest.o` in
7996 *64-bit*)
7997 case $lt_cv_prog_gnu_ld in
7998 yes*)
7999 case $host in
8000 i?86-*-solaris*|x86_64-*-solaris*)
8001 LD="${LD-ld} -m elf_x86_64"
8002 ;;
8003 sparc*-*-solaris*)
8004 LD="${LD-ld} -m elf64_sparc"
8005 ;;
8006 esac
8007 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8008 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8009 LD=${LD-ld}_sol2
8010 fi
8011 ;;
8012 *)
8013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8014 LD="${LD-ld} -64"
8015 fi
8016 ;;
8017 esac
8018 ;;
8019 esac
8020 fi
8021 rm -rf conftest*
8022 ;;
8023 esac
8024
8025 need_locks=$enable_libtool_lock
8026
8027 if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}mt; ac_word=$2
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 printf %s "checking for $ac_word... " >&6; }
8032 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 if test -n "$MANIFEST_TOOL"; then
8037 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 case $as_dir in #(((
8044 '') as_dir=./ ;;
8045 */) ;;
8046 *) as_dir=$as_dir/ ;;
8047 esac
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8061 if test -n "$MANIFEST_TOOL"; then
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8063 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8064 else
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 printf "%s\n" "no" >&6; }
8067 fi
8068
8069
8070 fi
8071 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8072 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8073 # Extract the first word of "mt", so it can be a program name with args.
8074 set dummy mt; ac_word=$2
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 printf %s "checking for $ac_word... " >&6; }
8077 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else $as_nop
8081 if test -n "$ac_ct_MANIFEST_TOOL"; then
8082 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 case $as_dir in #(((
8089 '') as_dir=./ ;;
8090 */) ;;
8091 *) as_dir=$as_dir/ ;;
8092 esac
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8097 break 2
8098 fi
8099 done
8100 done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8106 if test -n "$ac_ct_MANIFEST_TOOL"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8108 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8115 MANIFEST_TOOL=":"
8116 else
8117 case $cross_compiling:$ac_tool_warned in
8118 yes:)
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121 ac_tool_warned=yes ;;
8122 esac
8123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8124 fi
8125 else
8126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8127 fi
8128
8129 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8131 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8132 if test ${lt_cv_path_mainfest_tool+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else $as_nop
8136 lt_cv_path_mainfest_tool=no
8137 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8138 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8139 cat conftest.err >&5
8140 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8141 lt_cv_path_mainfest_tool=yes
8142 fi
8143 rm -f conftest*
8144 fi
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8146 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8147 if test yes != "$lt_cv_path_mainfest_tool"; then
8148 MANIFEST_TOOL=:
8149 fi
8150
8151
8152
8153
8154
8155
8156 case $host_os in
8157 rhapsody* | darwin*)
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8160 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 printf %s "checking for $ac_word... " >&6; }
8163 if test ${ac_cv_prog_DSYMUTIL+y}
8164 then :
8165 printf %s "(cached) " >&6
8166 else $as_nop
8167 if test -n "$DSYMUTIL"; then
8168 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173 IFS=$as_save_IFS
8174 case $as_dir in #(((
8175 '') as_dir=./ ;;
8176 */) ;;
8177 *) as_dir=$as_dir/ ;;
8178 esac
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8192 if test -n "$DSYMUTIL"; then
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8194 printf "%s\n" "$DSYMUTIL" >&6; }
8195 else
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 printf "%s\n" "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_DSYMUTIL"; then
8203 ac_ct_DSYMUTIL=$DSYMUTIL
8204 # Extract the first word of "dsymutil", so it can be a program name with args.
8205 set dummy dsymutil; ac_word=$2
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 printf %s "checking for $ac_word... " >&6; }
8208 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8209 then :
8210 printf %s "(cached) " >&6
8211 else $as_nop
8212 if test -n "$ac_ct_DSYMUTIL"; then
8213 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218 IFS=$as_save_IFS
8219 case $as_dir in #(((
8220 '') as_dir=./ ;;
8221 */) ;;
8222 *) as_dir=$as_dir/ ;;
8223 esac
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8237 if test -n "$ac_ct_DSYMUTIL"; then
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8239 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8240 else
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 printf "%s\n" "no" >&6; }
8243 fi
8244
8245 if test "x$ac_ct_DSYMUTIL" = x; then
8246 DSYMUTIL=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249 yes:)
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254 DSYMUTIL=$ac_ct_DSYMUTIL
8255 fi
8256 else
8257 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8258 fi
8259
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 printf %s "checking for $ac_word... " >&6; }
8265 if test ${ac_cv_prog_NMEDIT+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 if test -n "$NMEDIT"; then
8270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 case $as_dir in #(((
8277 '') as_dir=./ ;;
8278 */) ;;
8279 *) as_dir=$as_dir/ ;;
8280 esac
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 NMEDIT=$ac_cv_prog_NMEDIT
8294 if test -n "$NMEDIT"; then
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8296 printf "%s\n" "$NMEDIT" >&6; }
8297 else
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 printf "%s\n" "no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_NMEDIT"; then
8305 ac_ct_NMEDIT=$NMEDIT
8306 # Extract the first word of "nmedit", so it can be a program name with args.
8307 set dummy nmedit; ac_word=$2
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 printf %s "checking for $ac_word... " >&6; }
8310 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8311 then :
8312 printf %s "(cached) " >&6
8313 else $as_nop
8314 if test -n "$ac_ct_NMEDIT"; then
8315 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 case $as_dir in #(((
8322 '') as_dir=./ ;;
8323 */) ;;
8324 *) as_dir=$as_dir/ ;;
8325 esac
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8339 if test -n "$ac_ct_NMEDIT"; then
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8341 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8342 else
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 printf "%s\n" "no" >&6; }
8345 fi
8346
8347 if test "x$ac_ct_NMEDIT" = x; then
8348 NMEDIT=":"
8349 else
8350 case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356 NMEDIT=$ac_ct_NMEDIT
8357 fi
8358 else
8359 NMEDIT="$ac_cv_prog_NMEDIT"
8360 fi
8361
8362 if test -n "$ac_tool_prefix"; then
8363 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8364 set dummy ${ac_tool_prefix}lipo; 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_LIPO+y}
8368 then :
8369 printf %s "(cached) " >&6
8370 else $as_nop
8371 if test -n "$LIPO"; then
8372 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
8396 if test -n "$LIPO"; then
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8398 printf "%s\n" "$LIPO" >&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
8405 fi
8406 if test -z "$ac_cv_prog_LIPO"; then
8407 ac_ct_LIPO=$LIPO
8408 # Extract the first word of "lipo", so it can be a program name with args.
8409 set dummy lipo; ac_word=$2
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 printf %s "checking for $ac_word... " >&6; }
8412 if test ${ac_cv_prog_ac_ct_LIPO+y}
8413 then :
8414 printf %s "(cached) " >&6
8415 else $as_nop
8416 if test -n "$ac_ct_LIPO"; then
8417 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 case $as_dir in #(((
8424 '') as_dir=./ ;;
8425 */) ;;
8426 *) as_dir=$as_dir/ ;;
8427 esac
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_ac_ct_LIPO="lipo"
8431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8432 break 2
8433 fi
8434 done
8435 done
8436 IFS=$as_save_IFS
8437
8438 fi
8439 fi
8440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8441 if test -n "$ac_ct_LIPO"; then
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8443 printf "%s\n" "$ac_ct_LIPO" >&6; }
8444 else
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 printf "%s\n" "no" >&6; }
8447 fi
8448
8449 if test "x$ac_ct_LIPO" = x; then
8450 LIPO=":"
8451 else
8452 case $cross_compiling:$ac_tool_warned in
8453 yes:)
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456 ac_tool_warned=yes ;;
8457 esac
8458 LIPO=$ac_ct_LIPO
8459 fi
8460 else
8461 LIPO="$ac_cv_prog_LIPO"
8462 fi
8463
8464 if test -n "$ac_tool_prefix"; then
8465 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8466 set dummy ${ac_tool_prefix}otool; ac_word=$2
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 printf %s "checking for $ac_word... " >&6; }
8469 if test ${ac_cv_prog_OTOOL+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else $as_nop
8473 if test -n "$OTOOL"; then
8474 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479 IFS=$as_save_IFS
8480 case $as_dir in #(((
8481 '') as_dir=./ ;;
8482 */) ;;
8483 *) as_dir=$as_dir/ ;;
8484 esac
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 OTOOL=$ac_cv_prog_OTOOL
8498 if test -n "$OTOOL"; then
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8500 printf "%s\n" "$OTOOL" >&6; }
8501 else
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 printf "%s\n" "no" >&6; }
8504 fi
8505
8506
8507 fi
8508 if test -z "$ac_cv_prog_OTOOL"; then
8509 ac_ct_OTOOL=$OTOOL
8510 # Extract the first word of "otool", so it can be a program name with args.
8511 set dummy otool; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8515 then :
8516 printf %s "(cached) " >&6
8517 else $as_nop
8518 if test -n "$ac_ct_OTOOL"; then
8519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 case $as_dir in #(((
8526 '') as_dir=./ ;;
8527 */) ;;
8528 *) as_dir=$as_dir/ ;;
8529 esac
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ac_ct_OTOOL="otool"
8533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8543 if test -n "$ac_ct_OTOOL"; then
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8545 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8546 else
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 printf "%s\n" "no" >&6; }
8549 fi
8550
8551 if test "x$ac_ct_OTOOL" = x; then
8552 OTOOL=":"
8553 else
8554 case $cross_compiling:$ac_tool_warned in
8555 yes:)
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8557 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8558 ac_tool_warned=yes ;;
8559 esac
8560 OTOOL=$ac_ct_OTOOL
8561 fi
8562 else
8563 OTOOL="$ac_cv_prog_OTOOL"
8564 fi
8565
8566 if test -n "$ac_tool_prefix"; then
8567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 printf %s "checking for $ac_word... " >&6; }
8571 if test ${ac_cv_prog_OTOOL64+y}
8572 then :
8573 printf %s "(cached) " >&6
8574 else $as_nop
8575 if test -n "$OTOOL64"; then
8576 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 case $as_dir in #(((
8583 '') as_dir=./ ;;
8584 */) ;;
8585 *) as_dir=$as_dir/ ;;
8586 esac
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 fi
8598 fi
8599 OTOOL64=$ac_cv_prog_OTOOL64
8600 if test -n "$OTOOL64"; then
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8602 printf "%s\n" "$OTOOL64" >&6; }
8603 else
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 printf "%s\n" "no" >&6; }
8606 fi
8607
8608
8609 fi
8610 if test -z "$ac_cv_prog_OTOOL64"; then
8611 ac_ct_OTOOL64=$OTOOL64
8612 # Extract the first word of "otool64", so it can be a program name with args.
8613 set dummy otool64; ac_word=$2
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 printf %s "checking for $ac_word... " >&6; }
8616 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8617 then :
8618 printf %s "(cached) " >&6
8619 else $as_nop
8620 if test -n "$ac_ct_OTOOL64"; then
8621 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 case $as_dir in #(((
8628 '') as_dir=./ ;;
8629 */) ;;
8630 *) as_dir=$as_dir/ ;;
8631 esac
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_ac_ct_OTOOL64="otool64"
8635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8645 if test -n "$ac_ct_OTOOL64"; then
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8647 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8648 else
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 printf "%s\n" "no" >&6; }
8651 fi
8652
8653 if test "x$ac_ct_OTOOL64" = x; then
8654 OTOOL64=":"
8655 else
8656 case $cross_compiling:$ac_tool_warned in
8657 yes:)
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8661 esac
8662 OTOOL64=$ac_ct_OTOOL64
8663 fi
8664 else
8665 OTOOL64="$ac_cv_prog_OTOOL64"
8666 fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8695 printf %s "checking for -single_module linker flag... " >&6; }
8696 if test ${lt_cv_apple_cc_single_mod+y}
8697 then :
8698 printf %s "(cached) " >&6
8699 else $as_nop
8700 lt_cv_apple_cc_single_mod=no
8701 if test -z "$LT_MULTI_MODULE"; then
8702 # By default we will add the -single_module flag. You can override
8703 # by either setting the environment variable LT_MULTI_MODULE
8704 # non-empty at configure time, or by adding -multi_module to the
8705 # link flags.
8706 rm -rf libconftest.dylib*
8707 echo "int foo(void){return 1;}" > conftest.c
8708 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8709 -dynamiclib -Wl,-single_module conftest.c" >&5
8710 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8711 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8712 _lt_result=$?
8713 # If there is a non-empty error log, and "single_module"
8714 # appears in it, assume the flag caused a linker warning
8715 if test -s conftest.err && $GREP single_module conftest.err; then
8716 cat conftest.err >&5
8717 # Otherwise, if the output was created with a 0 exit code from
8718 # the compiler, it worked.
8719 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8720 lt_cv_apple_cc_single_mod=yes
8721 else
8722 cat conftest.err >&5
8723 fi
8724 rm -rf libconftest.dylib*
8725 rm -f conftest.*
8726 fi
8727 fi
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8729 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8730
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8732 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8733 if test ${lt_cv_ld_exported_symbols_list+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else $as_nop
8737 lt_cv_ld_exported_symbols_list=no
8738 save_LDFLAGS=$LDFLAGS
8739 echo "_main" > conftest.sym
8740 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743
8744 int
8745 main (void)
8746 {
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"
8753 then :
8754 lt_cv_ld_exported_symbols_list=yes
8755 else $as_nop
8756 lt_cv_ld_exported_symbols_list=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LDFLAGS=$save_LDFLAGS
8761
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8764 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8765
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8767 printf %s "checking for -force_load linker flag... " >&6; }
8768 if test ${lt_cv_ld_force_load+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else $as_nop
8772 lt_cv_ld_force_load=no
8773 cat > conftest.c << _LT_EOF
8774 int forced_loaded() { return 2;}
8775 _LT_EOF
8776 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8777 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8778 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8779 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8780 echo "$RANLIB libconftest.a" >&5
8781 $RANLIB libconftest.a 2>&5
8782 cat > conftest.c << _LT_EOF
8783 int main() { return 0;}
8784 _LT_EOF
8785 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8786 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8787 _lt_result=$?
8788 if test -s conftest.err && $GREP force_load conftest.err; then
8789 cat conftest.err >&5
8790 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8791 lt_cv_ld_force_load=yes
8792 else
8793 cat conftest.err >&5
8794 fi
8795 rm -f conftest.err libconftest.a conftest conftest.c
8796 rm -rf conftest.dSYM
8797
8798 fi
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8800 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8801 case $host_os in
8802 rhapsody* | darwin1.[012])
8803 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8804 darwin1.*)
8805 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8806 darwin*)
8807 case $MACOSX_DEPLOYMENT_TARGET,$host in
8808 10.[012],*|,*powerpc*-darwin[5-8]*)
8809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8810 *)
8811 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8812 esac
8813 ;;
8814 esac
8815 if test yes = "$lt_cv_apple_cc_single_mod"; then
8816 _lt_dar_single_mod='$single_module'
8817 fi
8818 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8819 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8820 else
8821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8822 fi
8823 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8824 _lt_dsymutil='~$DSYMUTIL $lib || :'
8825 else
8826 _lt_dsymutil=
8827 fi
8828 ;;
8829 esac
8830
8831 # func_munge_path_list VARIABLE PATH
8832 # -----------------------------------
8833 # VARIABLE is name of variable containing _space_ separated list of
8834 # directories to be munged by the contents of PATH, which is string
8835 # having a format:
8836 # "DIR[:DIR]:"
8837 # string "DIR[ DIR]" will be prepended to VARIABLE
8838 # ":DIR[:DIR]"
8839 # string "DIR[ DIR]" will be appended to VARIABLE
8840 # "DIRP[:DIRP]::[DIRA:]DIRA"
8841 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8842 # "DIRA[ DIRA]" will be appended to VARIABLE
8843 # "DIR[:DIR]"
8844 # VARIABLE will be replaced by "DIR[ DIR]"
8845 func_munge_path_list ()
8846 {
8847 case x$2 in
8848 x)
8849 ;;
8850 *:)
8851 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8852 ;;
8853 x:*)
8854 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8855 ;;
8856 *::*)
8857 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8858 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8859 ;;
8860 *)
8861 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8862 ;;
8863 esac
8864 }
8865
8866 ac_header= ac_cache=
8867 for ac_item in $ac_header_c_list
8868 do
8869 if test $ac_cache; then
8870 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8871 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8872 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8873 fi
8874 ac_header= ac_cache=
8875 elif test $ac_header; then
8876 ac_cache=$ac_item
8877 else
8878 ac_header=$ac_item
8879 fi
8880 done
8881
8882
8883
8884
8885
8886
8887
8888
8889 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8890 then :
8891
8892 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8893
8894 fi
8895 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8896 "
8897 if test "x$ac_cv_header_dlfcn_h" = xyes
8898 then :
8899 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8900
8901 fi
8902
8903
8904
8905
8906
8907 # Set options
8908 enable_dlopen=yes
8909
8910
8911
8912
8913 enable_win32_dll=no
8914
8915
8916 # Check whether --enable-shared was given.
8917 if test ${enable_shared+y}
8918 then :
8919 enableval=$enable_shared; p=${PACKAGE-default}
8920 case $enableval in
8921 yes) enable_shared=yes ;;
8922 no) enable_shared=no ;;
8923 *)
8924 enable_shared=no
8925 # Look at the argument we got. We use all the common list separators.
8926 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8927 for pkg in $enableval; do
8928 IFS=$lt_save_ifs
8929 if test "X$pkg" = "X$p"; then
8930 enable_shared=yes
8931 fi
8932 done
8933 IFS=$lt_save_ifs
8934 ;;
8935 esac
8936 else $as_nop
8937 enable_shared=yes
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948 # Check whether --enable-static was given.
8949 if test ${enable_static+y}
8950 then :
8951 enableval=$enable_static; p=${PACKAGE-default}
8952 case $enableval in
8953 yes) enable_static=yes ;;
8954 no) enable_static=no ;;
8955 *)
8956 enable_static=no
8957 # Look at the argument we got. We use all the common list separators.
8958 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8959 for pkg in $enableval; do
8960 IFS=$lt_save_ifs
8961 if test "X$pkg" = "X$p"; then
8962 enable_static=yes
8963 fi
8964 done
8965 IFS=$lt_save_ifs
8966 ;;
8967 esac
8968 else $as_nop
8969 enable_static=yes
8970 fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981 # Check whether --with-pic was given.
8982 if test ${with_pic+y}
8983 then :
8984 withval=$with_pic; lt_p=${PACKAGE-default}
8985 case $withval in
8986 yes|no) pic_mode=$withval ;;
8987 *)
8988 pic_mode=default
8989 # Look at the argument we got. We use all the common list separators.
8990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8991 for lt_pkg in $withval; do
8992 IFS=$lt_save_ifs
8993 if test "X$lt_pkg" = "X$lt_p"; then
8994 pic_mode=yes
8995 fi
8996 done
8997 IFS=$lt_save_ifs
8998 ;;
8999 esac
9000 else $as_nop
9001 pic_mode=default
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011 # Check whether --enable-fast-install was given.
9012 if test ${enable_fast_install+y}
9013 then :
9014 enableval=$enable_fast_install; p=${PACKAGE-default}
9015 case $enableval in
9016 yes) enable_fast_install=yes ;;
9017 no) enable_fast_install=no ;;
9018 *)
9019 enable_fast_install=no
9020 # Look at the argument we got. We use all the common list separators.
9021 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9022 for pkg in $enableval; do
9023 IFS=$lt_save_ifs
9024 if test "X$pkg" = "X$p"; then
9025 enable_fast_install=yes
9026 fi
9027 done
9028 IFS=$lt_save_ifs
9029 ;;
9030 esac
9031 else $as_nop
9032 enable_fast_install=yes
9033 fi
9034
9035
9036
9037
9038
9039
9040
9041
9042 shared_archive_member_spec=
9043 case $host,$enable_shared in
9044 power*-*-aix[5-9]*,yes)
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9046 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9047
9048 # Check whether --with-aix-soname was given.
9049 if test ${with_aix_soname+y}
9050 then :
9051 withval=$with_aix_soname; case $withval in
9052 aix|svr4|both)
9053 ;;
9054 *)
9055 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9056 ;;
9057 esac
9058 lt_cv_with_aix_soname=$with_aix_soname
9059 else $as_nop
9060 if test ${lt_cv_with_aix_soname+y}
9061 then :
9062 printf %s "(cached) " >&6
9063 else $as_nop
9064 lt_cv_with_aix_soname=aix
9065 fi
9066
9067 with_aix_soname=$lt_cv_with_aix_soname
9068 fi
9069
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9071 printf "%s\n" "$with_aix_soname" >&6; }
9072 if test aix != "$with_aix_soname"; then
9073 # For the AIX way of multilib, we name the shared archive member
9074 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9075 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9076 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9077 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9078 if test 64 = "${OBJECT_MODE-32}"; then
9079 shared_archive_member_spec=shr_64
9080 else
9081 shared_archive_member_spec=shr
9082 fi
9083 fi
9084 ;;
9085 *)
9086 with_aix_soname=aix
9087 ;;
9088 esac
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099 # This can be used to rebuild libtool when needed
9100 LIBTOOL_DEPS=$ltmain
9101
9102 # Always use our own libtool.
9103 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 test -z "$LN_S" && LN_S="ln -s"
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149 if test -n "${ZSH_VERSION+set}"; then
9150 setopt NO_GLOB_SUBST
9151 fi
9152
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9154 printf %s "checking for objdir... " >&6; }
9155 if test ${lt_cv_objdir+y}
9156 then :
9157 printf %s "(cached) " >&6
9158 else $as_nop
9159 rm -f .libs 2>/dev/null
9160 mkdir .libs 2>/dev/null
9161 if test -d .libs; then
9162 lt_cv_objdir=.libs
9163 else
9164 # MS-DOS does not allow filenames that begin with a dot.
9165 lt_cv_objdir=_libs
9166 fi
9167 rmdir .libs 2>/dev/null
9168 fi
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9170 printf "%s\n" "$lt_cv_objdir" >&6; }
9171 objdir=$lt_cv_objdir
9172
9173
9174
9175
9176
9177 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9178
9179
9180
9181
9182 case $host_os in
9183 aix3*)
9184 # AIX sometimes has problems with the GCC collect2 program. For some
9185 # reason, if we set the COLLECT_NAMES environment variable, the problems
9186 # vanish in a puff of smoke.
9187 if test set != "${COLLECT_NAMES+set}"; then
9188 COLLECT_NAMES=
9189 export COLLECT_NAMES
9190 fi
9191 ;;
9192 esac
9193
9194 # Global variables:
9195 ofile=libtool
9196 can_build_shared=yes
9197
9198 # All known linkers require a '.a' archive for static linking (except MSVC and
9199 # ICC, which need '.lib').
9200 libext=a
9201
9202 with_gnu_ld=$lt_cv_prog_gnu_ld
9203
9204 old_CC=$CC
9205 old_CFLAGS=$CFLAGS
9206
9207 # Set sane defaults for various variables
9208 test -z "$CC" && CC=cc
9209 test -z "$LTCC" && LTCC=$CC
9210 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9211 test -z "$LD" && LD=ld
9212 test -z "$ac_objext" && ac_objext=o
9213
9214 func_cc_basename $compiler
9215 cc_basename=$func_cc_basename_result
9216
9217
9218 # Only perform the check for file, if the check method requires it
9219 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9220 case $deplibs_check_method in
9221 file_magic*)
9222 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9224 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9225 if test ${lt_cv_path_MAGIC_CMD+y}
9226 then :
9227 printf %s "(cached) " >&6
9228 else $as_nop
9229 case $MAGIC_CMD in
9230 [\\/*] | ?:[\\/]*)
9231 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9232 ;;
9233 *)
9234 lt_save_MAGIC_CMD=$MAGIC_CMD
9235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9236 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9237 for ac_dir in $ac_dummy; do
9238 IFS=$lt_save_ifs
9239 test -z "$ac_dir" && ac_dir=.
9240 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9241 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9242 if test -n "$file_magic_test_file"; then
9243 case $deplibs_check_method in
9244 "file_magic "*)
9245 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9246 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9247 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9248 $EGREP "$file_magic_regex" > /dev/null; then
9249 :
9250 else
9251 cat <<_LT_EOF 1>&2
9252
9253 *** Warning: the command libtool uses to detect shared libraries,
9254 *** $file_magic_cmd, produces output that libtool cannot recognize.
9255 *** The result is that libtool may fail to recognize shared libraries
9256 *** as such. This will affect the creation of libtool libraries that
9257 *** depend on shared libraries, but programs linked with such libtool
9258 *** libraries will work regardless of this problem. Nevertheless, you
9259 *** may want to report the problem to your system manager and/or to
9260 *** [email protected]
9261
9262 _LT_EOF
9263 fi ;;
9264 esac
9265 fi
9266 break
9267 fi
9268 done
9269 IFS=$lt_save_ifs
9270 MAGIC_CMD=$lt_save_MAGIC_CMD
9271 ;;
9272 esac
9273 fi
9274
9275 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9276 if test -n "$MAGIC_CMD"; then
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9278 printf "%s\n" "$MAGIC_CMD" >&6; }
9279 else
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 printf "%s\n" "no" >&6; }
9282 fi
9283
9284
9285
9286
9287
9288 if test -z "$lt_cv_path_MAGIC_CMD"; then
9289 if test -n "$ac_tool_prefix"; then
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9291 printf %s "checking for file... " >&6; }
9292 if test ${lt_cv_path_MAGIC_CMD+y}
9293 then :
9294 printf %s "(cached) " >&6
9295 else $as_nop
9296 case $MAGIC_CMD in
9297 [\\/*] | ?:[\\/]*)
9298 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9299 ;;
9300 *)
9301 lt_save_MAGIC_CMD=$MAGIC_CMD
9302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9304 for ac_dir in $ac_dummy; do
9305 IFS=$lt_save_ifs
9306 test -z "$ac_dir" && ac_dir=.
9307 if test -f "$ac_dir/file"; then
9308 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9309 if test -n "$file_magic_test_file"; then
9310 case $deplibs_check_method in
9311 "file_magic "*)
9312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9313 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9315 $EGREP "$file_magic_regex" > /dev/null; then
9316 :
9317 else
9318 cat <<_LT_EOF 1>&2
9319
9320 *** Warning: the command libtool uses to detect shared libraries,
9321 *** $file_magic_cmd, produces output that libtool cannot recognize.
9322 *** The result is that libtool may fail to recognize shared libraries
9323 *** as such. This will affect the creation of libtool libraries that
9324 *** depend on shared libraries, but programs linked with such libtool
9325 *** libraries will work regardless of this problem. Nevertheless, you
9326 *** may want to report the problem to your system manager and/or to
9327 *** [email protected]
9328
9329 _LT_EOF
9330 fi ;;
9331 esac
9332 fi
9333 break
9334 fi
9335 done
9336 IFS=$lt_save_ifs
9337 MAGIC_CMD=$lt_save_MAGIC_CMD
9338 ;;
9339 esac
9340 fi
9341
9342 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9343 if test -n "$MAGIC_CMD"; then
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9345 printf "%s\n" "$MAGIC_CMD" >&6; }
9346 else
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 printf "%s\n" "no" >&6; }
9349 fi
9350
9351
9352 else
9353 MAGIC_CMD=:
9354 fi
9355 fi
9356
9357 fi
9358 ;;
9359 esac
9360
9361 # Use C for the default configuration in the libtool script
9362
9363 lt_save_CC=$CC
9364 ac_ext=c
9365 ac_cpp='$CPP $CPPFLAGS'
9366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9369
9370
9371 # Source file extension for C test sources.
9372 ac_ext=c
9373
9374 # Object file extension for compiled C test sources.
9375 objext=o
9376 objext=$objext
9377
9378 # Code to be used in simple compile tests
9379 lt_simple_compile_test_code="int some_variable = 0;"
9380
9381 # Code to be used in simple link tests
9382 lt_simple_link_test_code='int main(){return(0);}'
9383
9384
9385
9386
9387
9388
9389
9390 # If no C compiler was specified, use CC.
9391 LTCC=${LTCC-"$CC"}
9392
9393 # If no C compiler flags were specified, use CFLAGS.
9394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9395
9396 # Allow CC to be a program name with arguments.
9397 compiler=$CC
9398
9399 # Save the default compiler, since it gets overwritten when the other
9400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9401 compiler_DEFAULT=$CC
9402
9403 # save warnings/boilerplate of simple test code
9404 ac_outfile=conftest.$ac_objext
9405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407 _lt_compiler_boilerplate=`cat conftest.err`
9408 $RM conftest*
9409
9410 ac_outfile=conftest.$ac_objext
9411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9413 _lt_linker_boilerplate=`cat conftest.err`
9414 $RM -r conftest*
9415
9416
9417 if test -n "$compiler"; then
9418
9419 lt_prog_compiler_no_builtin_flag=
9420
9421 if test yes = "$GCC"; then
9422 case $cc_basename in
9423 nvcc*)
9424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9425 *)
9426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9427 esac
9428
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9430 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9431 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9432 then :
9433 printf %s "(cached) " >&6
9434 else $as_nop
9435 lt_cv_prog_compiler_rtti_exceptions=no
9436 ac_outfile=conftest.$ac_objext
9437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9438 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9439 # Insert the option either (1) after the last *FLAGS variable, or
9440 # (2) before a word containing "conftest.", or (3) at the end.
9441 # Note that $ac_compile itself does not contain backslashes and begins
9442 # with a dollar sign (not a hyphen), so the echo should work correctly.
9443 # The option is referenced via a variable to avoid confusing sed.
9444 lt_compile=`echo "$ac_compile" | $SED \
9445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9447 -e 's:$: $lt_compiler_flag:'`
9448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9449 (eval "$lt_compile" 2>conftest.err)
9450 ac_status=$?
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 if (exit $ac_status) && test -s "$ac_outfile"; then
9454 # The compiler can only warn and ignore the option if not recognized
9455 # So say no if there are warnings other than the usual output.
9456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9459 lt_cv_prog_compiler_rtti_exceptions=yes
9460 fi
9461 fi
9462 $RM conftest*
9463
9464 fi
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9466 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9467
9468 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9469 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9470 else
9471 :
9472 fi
9473
9474 fi
9475
9476
9477
9478
9479
9480
9481 lt_prog_compiler_wl=
9482 lt_prog_compiler_pic=
9483 lt_prog_compiler_static=
9484
9485
9486 if test yes = "$GCC"; then
9487 lt_prog_compiler_wl='-Wl,'
9488 lt_prog_compiler_static='-static'
9489
9490 case $host_os in
9491 aix*)
9492 # All AIX code is PIC.
9493 if test ia64 = "$host_cpu"; then
9494 # AIX 5 now supports IA64 processor
9495 lt_prog_compiler_static='-Bstatic'
9496 fi
9497 lt_prog_compiler_pic='-fPIC'
9498 ;;
9499
9500 amigaos*)
9501 case $host_cpu in
9502 powerpc)
9503 # see comment about AmigaOS4 .so support
9504 lt_prog_compiler_pic='-fPIC'
9505 ;;
9506 m68k)
9507 # FIXME: we need at least 68020 code to build shared libraries, but
9508 # adding the '-m68020' flag to GCC prevents building anything better,
9509 # like '-m68040'.
9510 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9511 ;;
9512 esac
9513 ;;
9514
9515 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9516 # PIC is the default for these OSes.
9517 ;;
9518
9519 mingw* | cygwin* | pw32* | os2* | cegcc*)
9520 # This hack is so that the source file can tell whether it is being
9521 # built for inclusion in a dll (and should export symbols for example).
9522 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9523 # (--disable-auto-import) libraries
9524 lt_prog_compiler_pic='-DDLL_EXPORT'
9525 case $host_os in
9526 os2*)
9527 lt_prog_compiler_static='$wl-static'
9528 ;;
9529 esac
9530 ;;
9531
9532 darwin* | rhapsody*)
9533 # PIC is the default on this platform
9534 # Common symbols not allowed in MH_DYLIB files
9535 lt_prog_compiler_pic='-fno-common'
9536 ;;
9537
9538 haiku*)
9539 # PIC is the default for Haiku.
9540 # The "-static" flag exists, but is broken.
9541 lt_prog_compiler_static=
9542 ;;
9543
9544 hpux*)
9545 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9546 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9547 # sets the default TLS model and affects inlining.
9548 case $host_cpu in
9549 hppa*64*)
9550 # +Z the default
9551 ;;
9552 *)
9553 lt_prog_compiler_pic='-fPIC'
9554 ;;
9555 esac
9556 ;;
9557
9558 interix[3-9]*)
9559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9560 # Instead, we relocate shared libraries at runtime.
9561 ;;
9562
9563 msdosdjgpp*)
9564 # Just because we use GCC doesn't mean we suddenly get shared libraries
9565 # on systems that don't support them.
9566 lt_prog_compiler_can_build_shared=no
9567 enable_shared=no
9568 ;;
9569
9570 *nto* | *qnx*)
9571 # QNX uses GNU C++, but need to define -shared option too, otherwise
9572 # it will coredump.
9573 lt_prog_compiler_pic='-fPIC -shared'
9574 ;;
9575
9576 sysv4*MP*)
9577 if test -d /usr/nec; then
9578 lt_prog_compiler_pic=-Kconform_pic
9579 fi
9580 ;;
9581
9582 *)
9583 lt_prog_compiler_pic='-fPIC'
9584 ;;
9585 esac
9586
9587 case $cc_basename in
9588 nvcc*) # Cuda Compiler Driver 2.2
9589 lt_prog_compiler_wl='-Xlinker '
9590 if test -n "$lt_prog_compiler_pic"; then
9591 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9592 fi
9593 ;;
9594 esac
9595 else
9596 # PORTME Check for flag to pass linker flags through the system compiler.
9597 case $host_os in
9598 aix*)
9599 lt_prog_compiler_wl='-Wl,'
9600 if test ia64 = "$host_cpu"; then
9601 # AIX 5 now supports IA64 processor
9602 lt_prog_compiler_static='-Bstatic'
9603 else
9604 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9605 fi
9606 ;;
9607
9608 darwin* | rhapsody*)
9609 # PIC is the default on this platform
9610 # Common symbols not allowed in MH_DYLIB files
9611 lt_prog_compiler_pic='-fno-common'
9612 case $cc_basename in
9613 nagfor*)
9614 # NAG Fortran compiler
9615 lt_prog_compiler_wl='-Wl,-Wl,,'
9616 lt_prog_compiler_pic='-PIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619 esac
9620 ;;
9621
9622 mingw* | cygwin* | pw32* | os2* | cegcc*)
9623 # This hack is so that the source file can tell whether it is being
9624 # built for inclusion in a dll (and should export symbols for example).
9625 lt_prog_compiler_pic='-DDLL_EXPORT'
9626 case $host_os in
9627 os2*)
9628 lt_prog_compiler_static='$wl-static'
9629 ;;
9630 esac
9631 ;;
9632
9633 hpux9* | hpux10* | hpux11*)
9634 lt_prog_compiler_wl='-Wl,'
9635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9636 # not for PA HP-UX.
9637 case $host_cpu in
9638 hppa*64*|ia64*)
9639 # +Z the default
9640 ;;
9641 *)
9642 lt_prog_compiler_pic='+Z'
9643 ;;
9644 esac
9645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9646 lt_prog_compiler_static='$wl-a ${wl}archive'
9647 ;;
9648
9649 irix5* | irix6* | nonstopux*)
9650 lt_prog_compiler_wl='-Wl,'
9651 # PIC (with -KPIC) is the default.
9652 lt_prog_compiler_static='-non_shared'
9653 ;;
9654
9655 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9656 case $cc_basename in
9657 # old Intel for x86_64, which still supported -KPIC.
9658 ecc*)
9659 lt_prog_compiler_wl='-Wl,'
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-static'
9662 ;;
9663 # flang / f18. f95 an alias for gfortran or flang on Debian
9664 flang* | f18* | f95*)
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_pic='-fPIC'
9667 lt_prog_compiler_static='-static'
9668 ;;
9669 # icc used to be incompatible with GCC.
9670 # ICC 10 doesn't accept -KPIC any more.
9671 icc* | ifort*)
9672 lt_prog_compiler_wl='-Wl,'
9673 lt_prog_compiler_pic='-fPIC'
9674 lt_prog_compiler_static='-static'
9675 ;;
9676 # Lahey Fortran 8.1.
9677 lf95*)
9678 lt_prog_compiler_wl='-Wl,'
9679 lt_prog_compiler_pic='--shared'
9680 lt_prog_compiler_static='--static'
9681 ;;
9682 nagfor*)
9683 # NAG Fortran compiler
9684 lt_prog_compiler_wl='-Wl,-Wl,,'
9685 lt_prog_compiler_pic='-PIC'
9686 lt_prog_compiler_static='-Bstatic'
9687 ;;
9688 tcc*)
9689 # Fabrice Bellard et al's Tiny C Compiler
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='-fPIC'
9692 lt_prog_compiler_static='-static'
9693 ;;
9694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9695 # Portland Group compilers (*not* the Pentium gcc compiler,
9696 # which looks to be a dead project)
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-fpic'
9699 lt_prog_compiler_static='-Bstatic'
9700 ;;
9701 ccc*)
9702 lt_prog_compiler_wl='-Wl,'
9703 # All Alpha code is PIC.
9704 lt_prog_compiler_static='-non_shared'
9705 ;;
9706 xl* | bgxl* | bgf* | mpixl*)
9707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_pic='-qpic'
9710 lt_prog_compiler_static='-qstaticlink'
9711 ;;
9712 *)
9713 case `$CC -V 2>&1 | $SED 5q` in
9714 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-Bstatic'
9718 lt_prog_compiler_wl=''
9719 ;;
9720 *Sun\ F* | *Sun*Fortran*)
9721 lt_prog_compiler_pic='-KPIC'
9722 lt_prog_compiler_static='-Bstatic'
9723 lt_prog_compiler_wl='-Qoption ld '
9724 ;;
9725 *Sun\ C*)
9726 # Sun C 5.9
9727 lt_prog_compiler_pic='-KPIC'
9728 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_wl='-Wl,'
9730 ;;
9731 *Intel*\ [CF]*Compiler*)
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_pic='-fPIC'
9734 lt_prog_compiler_static='-static'
9735 ;;
9736 *Portland\ Group*)
9737 lt_prog_compiler_wl='-Wl,'
9738 lt_prog_compiler_pic='-fpic'
9739 lt_prog_compiler_static='-Bstatic'
9740 ;;
9741 esac
9742 ;;
9743 esac
9744 ;;
9745
9746 newsos6)
9747 lt_prog_compiler_pic='-KPIC'
9748 lt_prog_compiler_static='-Bstatic'
9749 ;;
9750
9751 *nto* | *qnx*)
9752 # QNX uses GNU C++, but need to define -shared option too, otherwise
9753 # it will coredump.
9754 lt_prog_compiler_pic='-fPIC -shared'
9755 ;;
9756
9757 osf3* | osf4* | osf5*)
9758 lt_prog_compiler_wl='-Wl,'
9759 # All OSF/1 code is PIC.
9760 lt_prog_compiler_static='-non_shared'
9761 ;;
9762
9763 rdos*)
9764 lt_prog_compiler_static='-non_shared'
9765 ;;
9766
9767 solaris*)
9768 lt_prog_compiler_pic='-KPIC'
9769 lt_prog_compiler_static='-Bstatic'
9770 case $cc_basename in
9771 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9772 lt_prog_compiler_wl='-Qoption ld ';;
9773 *)
9774 lt_prog_compiler_wl='-Wl,';;
9775 esac
9776 ;;
9777
9778 sunos4*)
9779 lt_prog_compiler_wl='-Qoption ld '
9780 lt_prog_compiler_pic='-PIC'
9781 lt_prog_compiler_static='-Bstatic'
9782 ;;
9783
9784 sysv4 | sysv4.2uw2* | sysv4.3*)
9785 lt_prog_compiler_wl='-Wl,'
9786 lt_prog_compiler_pic='-KPIC'
9787 lt_prog_compiler_static='-Bstatic'
9788 ;;
9789
9790 sysv4*MP*)
9791 if test -d /usr/nec; then
9792 lt_prog_compiler_pic='-Kconform_pic'
9793 lt_prog_compiler_static='-Bstatic'
9794 fi
9795 ;;
9796
9797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9798 lt_prog_compiler_wl='-Wl,'
9799 lt_prog_compiler_pic='-KPIC'
9800 lt_prog_compiler_static='-Bstatic'
9801 ;;
9802
9803 unicos*)
9804 lt_prog_compiler_wl='-Wl,'
9805 lt_prog_compiler_can_build_shared=no
9806 ;;
9807
9808 uts4*)
9809 lt_prog_compiler_pic='-pic'
9810 lt_prog_compiler_static='-Bstatic'
9811 ;;
9812
9813 *)
9814 lt_prog_compiler_can_build_shared=no
9815 ;;
9816 esac
9817 fi
9818
9819 case $host_os in
9820 # For platforms that do not support PIC, -DPIC is meaningless:
9821 *djgpp*)
9822 lt_prog_compiler_pic=
9823 ;;
9824 *)
9825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9826 ;;
9827 esac
9828
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9830 printf %s "checking for $compiler option to produce PIC... " >&6; }
9831 if test ${lt_cv_prog_compiler_pic+y}
9832 then :
9833 printf %s "(cached) " >&6
9834 else $as_nop
9835 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9838 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9839 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9840
9841 #
9842 # Check to make sure the PIC flag actually works.
9843 #
9844 if test -n "$lt_prog_compiler_pic"; then
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9846 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9847 if test ${lt_cv_prog_compiler_pic_works+y}
9848 then :
9849 printf %s "(cached) " >&6
9850 else $as_nop
9851 lt_cv_prog_compiler_pic_works=no
9852 ac_outfile=conftest.$ac_objext
9853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9855 # Insert the option either (1) after the last *FLAGS variable, or
9856 # (2) before a word containing "conftest.", or (3) at the end.
9857 # Note that $ac_compile itself does not contain backslashes and begins
9858 # with a dollar sign (not a hyphen), so the echo should work correctly.
9859 # The option is referenced via a variable to avoid confusing sed.
9860 lt_compile=`echo "$ac_compile" | $SED \
9861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9863 -e 's:$: $lt_compiler_flag:'`
9864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9865 (eval "$lt_compile" 2>conftest.err)
9866 ac_status=$?
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 if (exit $ac_status) && test -s "$ac_outfile"; then
9870 # The compiler can only warn and ignore the option if not recognized
9871 # So say no if there are warnings other than the usual output.
9872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9875 lt_cv_prog_compiler_pic_works=yes
9876 fi
9877 fi
9878 $RM conftest*
9879
9880 fi
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9882 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9883
9884 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9885 case $lt_prog_compiler_pic in
9886 "" | " "*) ;;
9887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9888 esac
9889 else
9890 lt_prog_compiler_pic=
9891 lt_prog_compiler_can_build_shared=no
9892 fi
9893
9894 fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 #
9907 # Check to make sure the static flag actually works.
9908 #
9909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9911 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9912 if test ${lt_cv_prog_compiler_static_works+y}
9913 then :
9914 printf %s "(cached) " >&6
9915 else $as_nop
9916 lt_cv_prog_compiler_static_works=no
9917 save_LDFLAGS=$LDFLAGS
9918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9919 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9921 # The linker can only warn and ignore the option if not recognized
9922 # So say no if there are warnings
9923 if test -s conftest.err; then
9924 # Append any errors to the config.log.
9925 cat conftest.err 1>&5
9926 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9928 if diff conftest.exp conftest.er2 >/dev/null; then
9929 lt_cv_prog_compiler_static_works=yes
9930 fi
9931 else
9932 lt_cv_prog_compiler_static_works=yes
9933 fi
9934 fi
9935 $RM -r conftest*
9936 LDFLAGS=$save_LDFLAGS
9937
9938 fi
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9940 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9941
9942 if test yes = "$lt_cv_prog_compiler_static_works"; then
9943 :
9944 else
9945 lt_prog_compiler_static=
9946 fi
9947
9948
9949
9950
9951
9952
9953
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9955 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9956 if test ${lt_cv_prog_compiler_c_o+y}
9957 then :
9958 printf %s "(cached) " >&6
9959 else $as_nop
9960 lt_cv_prog_compiler_c_o=no
9961 $RM -r conftest 2>/dev/null
9962 mkdir conftest
9963 cd conftest
9964 mkdir out
9965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9966
9967 lt_compiler_flag="-o out/conftest2.$ac_objext"
9968 # Insert the option either (1) after the last *FLAGS variable, or
9969 # (2) before a word containing "conftest.", or (3) at the end.
9970 # Note that $ac_compile itself does not contain backslashes and begins
9971 # with a dollar sign (not a hyphen), so the echo should work correctly.
9972 lt_compile=`echo "$ac_compile" | $SED \
9973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9975 -e 's:$: $lt_compiler_flag:'`
9976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9977 (eval "$lt_compile" 2>out/conftest.err)
9978 ac_status=$?
9979 cat out/conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9982 then
9983 # The compiler can only warn and ignore the option if not recognized
9984 # So say no if there are warnings
9985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9988 lt_cv_prog_compiler_c_o=yes
9989 fi
9990 fi
9991 chmod u+w . 2>&5
9992 $RM conftest*
9993 # SGI C++ compiler will create directory out/ii_files/ for
9994 # template instantiation
9995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9996 $RM out/* && rmdir out
9997 cd ..
9998 $RM -r conftest
9999 $RM conftest*
10000
10001 fi
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10003 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10004
10005
10006
10007
10008
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10011 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10012 if test ${lt_cv_prog_compiler_c_o+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else $as_nop
10016 lt_cv_prog_compiler_c_o=no
10017 $RM -r conftest 2>/dev/null
10018 mkdir conftest
10019 cd conftest
10020 mkdir out
10021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10022
10023 lt_compiler_flag="-o out/conftest2.$ac_objext"
10024 # Insert the option either (1) after the last *FLAGS variable, or
10025 # (2) before a word containing "conftest.", or (3) at the end.
10026 # Note that $ac_compile itself does not contain backslashes and begins
10027 # with a dollar sign (not a hyphen), so the echo should work correctly.
10028 lt_compile=`echo "$ac_compile" | $SED \
10029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10031 -e 's:$: $lt_compiler_flag:'`
10032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10033 (eval "$lt_compile" 2>out/conftest.err)
10034 ac_status=$?
10035 cat out/conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10038 then
10039 # The compiler can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10044 lt_cv_prog_compiler_c_o=yes
10045 fi
10046 fi
10047 chmod u+w . 2>&5
10048 $RM conftest*
10049 # SGI C++ compiler will create directory out/ii_files/ for
10050 # template instantiation
10051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10052 $RM out/* && rmdir out
10053 cd ..
10054 $RM -r conftest
10055 $RM conftest*
10056
10057 fi
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10059 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10060
10061
10062
10063
10064 hard_links=nottested
10065 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10066 # do not overwrite the value of need_locks provided by the user
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10068 printf %s "checking if we can lock with hard links... " >&6; }
10069 hard_links=yes
10070 $RM conftest*
10071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10072 touch conftest.a
10073 ln conftest.a conftest.b 2>&5 || hard_links=no
10074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10076 printf "%s\n" "$hard_links" >&6; }
10077 if test no = "$hard_links"; then
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10079 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10080 need_locks=warn
10081 fi
10082 else
10083 need_locks=no
10084 fi
10085
10086
10087
10088
10089
10090
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10092 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10093
10094 runpath_var=
10095 allow_undefined_flag=
10096 always_export_symbols=no
10097 archive_cmds=
10098 archive_expsym_cmds=
10099 compiler_needs_object=no
10100 enable_shared_with_static_runtimes=no
10101 export_dynamic_flag_spec=
10102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10103 hardcode_automatic=no
10104 hardcode_direct=no
10105 hardcode_direct_absolute=no
10106 hardcode_libdir_flag_spec=
10107 hardcode_libdir_separator=
10108 hardcode_minus_L=no
10109 hardcode_shlibpath_var=unsupported
10110 inherit_rpath=no
10111 link_all_deplibs=unknown
10112 module_cmds=
10113 module_expsym_cmds=
10114 old_archive_from_new_cmds=
10115 old_archive_from_expsyms_cmds=
10116 thread_safe_flag_spec=
10117 whole_archive_flag_spec=
10118 # include_expsyms should be a list of space-separated symbols to be *always*
10119 # included in the symbol list
10120 include_expsyms=
10121 # exclude_expsyms can be an extended regexp of symbols to exclude
10122 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10123 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10124 # as well as any symbol that contains 'd'.
10125 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10127 # platforms (ab)use it in PIC code, but their linkers get confused if
10128 # the symbol is explicitly referenced. Since portable code cannot
10129 # rely on this symbol name, it's probably fine to never include it in
10130 # preloaded symbol tables.
10131 # Exclude shared library initialization/finalization symbols.
10132 extract_expsyms_cmds=
10133
10134 case $host_os in
10135 cygwin* | mingw* | pw32* | cegcc*)
10136 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10137 # When not using gcc, we currently assume that we are using
10138 # Microsoft Visual C++ or Intel C++ Compiler.
10139 if test yes != "$GCC"; then
10140 with_gnu_ld=no
10141 fi
10142 ;;
10143 interix*)
10144 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10145 with_gnu_ld=yes
10146 ;;
10147 openbsd* | bitrig*)
10148 with_gnu_ld=no
10149 ;;
10150 linux* | k*bsd*-gnu | gnu*)
10151 link_all_deplibs=no
10152 ;;
10153 esac
10154
10155 ld_shlibs=yes
10156
10157 # On some targets, GNU ld is compatible enough with the native linker
10158 # that we're better off using the native interface for both.
10159 lt_use_gnu_ld_interface=no
10160 if test yes = "$with_gnu_ld"; then
10161 case $host_os in
10162 aix*)
10163 # The AIX port of GNU ld has always aspired to compatibility
10164 # with the native linker. However, as the warning in the GNU ld
10165 # block says, versions before 2.19.5* couldn't really create working
10166 # shared libraries, regardless of the interface used.
10167 case `$LD -v 2>&1` in
10168 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10169 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10170 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10171 *)
10172 lt_use_gnu_ld_interface=yes
10173 ;;
10174 esac
10175 ;;
10176 *)
10177 lt_use_gnu_ld_interface=yes
10178 ;;
10179 esac
10180 fi
10181
10182 if test yes = "$lt_use_gnu_ld_interface"; then
10183 # If archive_cmds runs LD, not CC, wlarc should be empty
10184 wlarc='$wl'
10185
10186 # Set some defaults for GNU ld with shared library support. These
10187 # are reset later if shared libraries are not supported. Putting them
10188 # here allows them to be overridden if necessary.
10189 runpath_var=LD_RUN_PATH
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191 export_dynamic_flag_spec='$wl--export-dynamic'
10192 # ancient GNU ld didn't support --whole-archive et. al.
10193 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10194 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10195 else
10196 whole_archive_flag_spec=
10197 fi
10198 supports_anon_versioning=no
10199 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10200 *GNU\ gold*) supports_anon_versioning=yes ;;
10201 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10204 *\ 2.11.*) ;; # other 2.11 versions
10205 *) supports_anon_versioning=yes ;;
10206 esac
10207
10208 # See if GNU ld supports shared libraries.
10209 case $host_os in
10210 aix[3-9]*)
10211 # On AIX/PPC, the GNU linker is very broken
10212 if test ia64 != "$host_cpu"; then
10213 ld_shlibs=no
10214 cat <<_LT_EOF 1>&2
10215
10216 *** Warning: the GNU linker, at least up to release 2.19, is reported
10217 *** to be unable to reliably create shared libraries on AIX.
10218 *** Therefore, libtool is disabling shared libraries support. If you
10219 *** really care for shared libraries, you may want to install binutils
10220 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10221 *** You will then need to restart the configuration process.
10222
10223 _LT_EOF
10224 fi
10225 ;;
10226
10227 amigaos*)
10228 case $host_cpu in
10229 powerpc)
10230 # see comment about AmigaOS4 .so support
10231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10232 archive_expsym_cmds=''
10233 ;;
10234 m68k)
10235 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)'
10236 hardcode_libdir_flag_spec='-L$libdir'
10237 hardcode_minus_L=yes
10238 ;;
10239 esac
10240 ;;
10241
10242 beos*)
10243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244 allow_undefined_flag=unsupported
10245 # Joseph Beckenbach <[email protected]> says some releases of gcc
10246 # support --undefined. This deserves some investigation. FIXME
10247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10248 else
10249 ld_shlibs=no
10250 fi
10251 ;;
10252
10253 cygwin* | mingw* | pw32* | cegcc*)
10254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10255 # as there is no search path for DLLs.
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 export_dynamic_flag_spec='$wl--export-all-symbols'
10258 allow_undefined_flag=unsupported
10259 always_export_symbols=no
10260 enable_shared_with_static_runtimes=yes
10261 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'
10262 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10263
10264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10266 # If the export-symbols file already is a .def file, use it as
10267 # is; otherwise, prepend EXPORTS...
10268 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10269 cp $export_symbols $output_objdir/$soname.def;
10270 else
10271 echo EXPORTS > $output_objdir/$soname.def;
10272 cat $export_symbols >> $output_objdir/$soname.def;
10273 fi~
10274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10275 else
10276 ld_shlibs=no
10277 fi
10278 ;;
10279
10280 haiku*)
10281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10282 link_all_deplibs=yes
10283 ;;
10284
10285 os2*)
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_minus_L=yes
10288 allow_undefined_flag=unsupported
10289 shrext_cmds=.dll
10290 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10293 $ECHO EXPORTS >> $output_objdir/$libname.def~
10294 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10296 emximp -o $lib $output_objdir/$libname.def'
10297 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10300 $ECHO EXPORTS >> $output_objdir/$libname.def~
10301 prefix_cmds="$SED"~
10302 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10303 prefix_cmds="$prefix_cmds -e 1d";
10304 fi~
10305 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10306 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10308 emximp -o $lib $output_objdir/$libname.def'
10309 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10310 enable_shared_with_static_runtimes=yes
10311 file_list_spec='@'
10312 ;;
10313
10314 interix[3-9]*)
10315 hardcode_direct=no
10316 hardcode_shlibpath_var=no
10317 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10318 export_dynamic_flag_spec='$wl-E'
10319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10320 # Instead, shared libraries are loaded at an image base (0x10000000 by
10321 # default) and relocated if they conflict, which is a slow very memory
10322 # consuming and fragmenting process. To avoid this, we pick a random,
10323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10326 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'
10327 ;;
10328
10329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10330 tmp_diet=no
10331 if test linux-dietlibc = "$host_os"; then
10332 case $cc_basename in
10333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10334 esac
10335 fi
10336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10337 && test no = "$tmp_diet"
10338 then
10339 tmp_addflag=' $pic_flag'
10340 tmp_sharedflag='-shared'
10341 case $cc_basename,$host_cpu in
10342 pgcc*) # Portland Group C compiler
10343 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'
10344 tmp_addflag=' $pic_flag'
10345 ;;
10346 pgf77* | pgf90* | pgf95* | pgfortran*)
10347 # Portland Group f77 and f90 compilers
10348 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'
10349 tmp_addflag=' $pic_flag -Mnomain' ;;
10350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10351 tmp_addflag=' -i_dynamic' ;;
10352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10353 tmp_addflag=' -i_dynamic -nofor_main' ;;
10354 ifc* | ifort*) # Intel Fortran compiler
10355 tmp_addflag=' -nofor_main' ;;
10356 lf95*) # Lahey Fortran 8.1
10357 whole_archive_flag_spec=
10358 tmp_sharedflag='--shared' ;;
10359 nagfor*) # NAGFOR 5.3
10360 tmp_sharedflag='-Wl,-shared' ;;
10361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10362 tmp_sharedflag='-qmkshrobj'
10363 tmp_addflag= ;;
10364 nvcc*) # Cuda Compiler Driver 2.2
10365 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'
10366 compiler_needs_object=yes
10367 ;;
10368 esac
10369 case `$CC -V 2>&1 | $SED 5q` in
10370 *Sun\ C*) # Sun C 5.9
10371 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'
10372 compiler_needs_object=yes
10373 tmp_sharedflag='-G' ;;
10374 *Sun\ F*) # Sun Fortran 8.3
10375 tmp_sharedflag='-G' ;;
10376 esac
10377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10378
10379 if test yes = "$supports_anon_versioning"; then
10380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10381 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10382 echo "local: *; };" >> $output_objdir/$libname.ver~
10383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10384 fi
10385
10386 case $cc_basename in
10387 tcc*)
10388 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10389 export_dynamic_flag_spec='-rdynamic'
10390 ;;
10391 xlf* | bgf* | bgxlf* | mpixlf*)
10392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10394 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10395 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10396 if test yes = "$supports_anon_versioning"; then
10397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10398 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10399 echo "local: *; };" >> $output_objdir/$libname.ver~
10400 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10401 fi
10402 ;;
10403 esac
10404 else
10405 ld_shlibs=no
10406 fi
10407 ;;
10408
10409 netbsd* | netbsdelf*-gnu)
10410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10411 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10412 wlarc=
10413 else
10414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10415 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10416 fi
10417 ;;
10418
10419 solaris*)
10420 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10421 ld_shlibs=no
10422 cat <<_LT_EOF 1>&2
10423
10424 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10425 *** create shared libraries on Solaris systems. Therefore, libtool
10426 *** is disabling shared libraries support. We urge you to upgrade GNU
10427 *** binutils to release 2.9.1 or newer. Another option is to modify
10428 *** your PATH or compiler configuration so that the native linker is
10429 *** used, and then restart.
10430
10431 _LT_EOF
10432 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10434 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10435 else
10436 ld_shlibs=no
10437 fi
10438 ;;
10439
10440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10441 case `$LD -v 2>&1` in
10442 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10443 ld_shlibs=no
10444 cat <<_LT_EOF 1>&2
10445
10446 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10447 *** reliably create shared libraries on SCO systems. Therefore, libtool
10448 *** is disabling shared libraries support. We urge you to upgrade GNU
10449 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10450 *** your PATH or compiler configuration so that the native linker is
10451 *** used, and then restart.
10452
10453 _LT_EOF
10454 ;;
10455 *)
10456 # For security reasons, it is highly recommended that you always
10457 # use absolute paths for naming shared libraries, and exclude the
10458 # DT_RUNPATH tag from executables and libraries. But doing so
10459 # requires that you compile everything twice, which is a pain.
10460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10464 else
10465 ld_shlibs=no
10466 fi
10467 ;;
10468 esac
10469 ;;
10470
10471 sunos4*)
10472 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10473 wlarc=
10474 hardcode_direct=yes
10475 hardcode_shlibpath_var=no
10476 ;;
10477
10478 *)
10479 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10482 else
10483 ld_shlibs=no
10484 fi
10485 ;;
10486 esac
10487
10488 if test no = "$ld_shlibs"; then
10489 runpath_var=
10490 hardcode_libdir_flag_spec=
10491 export_dynamic_flag_spec=
10492 whole_archive_flag_spec=
10493 fi
10494 else
10495 # PORTME fill in a description of your system's linker (not GNU ld)
10496 case $host_os in
10497 aix3*)
10498 allow_undefined_flag=unsupported
10499 always_export_symbols=yes
10500 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'
10501 # Note: this linker hardcodes the directories in LIBPATH if there
10502 # are no directories specified by -L.
10503 hardcode_minus_L=yes
10504 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10505 # Neither direct hardcoding nor static linking is supported with a
10506 # broken collect2.
10507 hardcode_direct=unsupported
10508 fi
10509 ;;
10510
10511 aix[4-9]*)
10512 if test ia64 = "$host_cpu"; then
10513 # On IA64, the linker does run time linking by default, so we don't
10514 # have to do anything special.
10515 aix_use_runtimelinking=no
10516 exp_sym_flag='-Bexport'
10517 no_entry_flag=
10518 else
10519 # If we're using GNU nm, then we don't want the "-C" option.
10520 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10521 # Without the "-l" option, or with the "-B" option, AIX nm treats
10522 # weak defined symbols like other global defined symbols, whereas
10523 # GNU nm marks them as "W".
10524 # While the 'weak' keyword is ignored in the Export File, we need
10525 # it in the Import File for the 'aix-soname' feature, so we have
10526 # to replace the "-B" option with "-P" for AIX nm.
10527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10528 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'
10529 else
10530 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10531 fi
10532 aix_use_runtimelinking=no
10533
10534 # Test if we are trying to use run time linking or normal
10535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10536 # have runtime linking enabled, and use it for executables.
10537 # For shared libraries, we enable/disable runtime linking
10538 # depending on the kind of the shared library created -
10539 # when "with_aix_soname,aix_use_runtimelinking" is:
10540 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10541 # "aix,yes" lib.so shared, rtl:yes, for executables
10542 # lib.a static archive
10543 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10544 # lib.a(lib.so.V) shared, rtl:no, for executables
10545 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10546 # lib.a(lib.so.V) shared, rtl:no
10547 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10548 # lib.a static archive
10549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10550 for ld_flag in $LDFLAGS; do
10551 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10552 aix_use_runtimelinking=yes
10553 break
10554 fi
10555 done
10556 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10557 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10558 # so we don't have lib.a shared libs to link our executables.
10559 # We have to force runtime linking in this case.
10560 aix_use_runtimelinking=yes
10561 LDFLAGS="$LDFLAGS -Wl,-brtl"
10562 fi
10563 ;;
10564 esac
10565
10566 exp_sym_flag='-bexport'
10567 no_entry_flag='-bnoentry'
10568 fi
10569
10570 # When large executables or shared objects are built, AIX ld can
10571 # have problems creating the table of contents. If linking a library
10572 # or program results in "error TOC overflow" add -mminimal-toc to
10573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10575
10576 archive_cmds=''
10577 hardcode_direct=yes
10578 hardcode_direct_absolute=yes
10579 hardcode_libdir_separator=':'
10580 link_all_deplibs=yes
10581 file_list_spec='$wl-f,'
10582 case $with_aix_soname,$aix_use_runtimelinking in
10583 aix,*) ;; # traditional, no import file
10584 svr4,* | *,yes) # use import file
10585 # The Import File defines what to hardcode.
10586 hardcode_direct=no
10587 hardcode_direct_absolute=no
10588 ;;
10589 esac
10590
10591 if test yes = "$GCC"; then
10592 case $host_os in aix4.[012]|aix4.[012].*)
10593 # We only want to do this on AIX 4.2 and lower, the check
10594 # below for broken collect2 doesn't work under 4.3+
10595 collect2name=`$CC -print-prog-name=collect2`
10596 if test -f "$collect2name" &&
10597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10598 then
10599 # We have reworked collect2
10600 :
10601 else
10602 # We have old collect2
10603 hardcode_direct=unsupported
10604 # It fails to find uninstalled libraries when the uninstalled
10605 # path is not listed in the libpath. Setting hardcode_minus_L
10606 # to unsupported forces relinking
10607 hardcode_minus_L=yes
10608 hardcode_libdir_flag_spec='-L$libdir'
10609 hardcode_libdir_separator=
10610 fi
10611 ;;
10612 esac
10613 shared_flag='-shared'
10614 if test yes = "$aix_use_runtimelinking"; then
10615 shared_flag="$shared_flag "'$wl-G'
10616 fi
10617 # Need to ensure runtime linking is disabled for the traditional
10618 # shared library, or the linker may eventually find shared libraries
10619 # /with/ Import File - we do not want to mix them.
10620 shared_flag_aix='-shared'
10621 shared_flag_svr4='-shared $wl-G'
10622 else
10623 # not using gcc
10624 if test ia64 = "$host_cpu"; then
10625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10626 # chokes on -Wl,-G. The following line is correct:
10627 shared_flag='-G'
10628 else
10629 if test yes = "$aix_use_runtimelinking"; then
10630 shared_flag='$wl-G'
10631 else
10632 shared_flag='$wl-bM:SRE'
10633 fi
10634 shared_flag_aix='$wl-bM:SRE'
10635 shared_flag_svr4='$wl-G'
10636 fi
10637 fi
10638
10639 export_dynamic_flag_spec='$wl-bexpall'
10640 # It seems that -bexpall does not export symbols beginning with
10641 # underscore (_), so it is better to generate a list of symbols to export.
10642 always_export_symbols=yes
10643 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10644 # Warning - without using the other runtime loading flags (-brtl),
10645 # -berok will link without error, but may produce a broken library.
10646 allow_undefined_flag='-berok'
10647 # Determine the default libpath from the value encoded in an
10648 # empty executable.
10649 if test set = "${lt_cv_aix_libpath+set}"; then
10650 aix_libpath=$lt_cv_aix_libpath
10651 else
10652 if test ${lt_cv_aix_libpath_+y}
10653 then :
10654 printf %s "(cached) " >&6
10655 else $as_nop
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658
10659 int
10660 main (void)
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"
10668 then :
10669
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10672 /^0/ {
10673 s/^0 *\([^ ]*\) *$/\1/
10674 p
10675 }
10676 }'
10677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$lt_cv_aix_libpath_"; then
10680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10684 conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$lt_cv_aix_libpath_"; then
10686 lt_cv_aix_libpath_=/usr/lib:/lib
10687 fi
10688
10689 fi
10690
10691 aix_libpath=$lt_cv_aix_libpath_
10692 fi
10693
10694 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10695 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
10696 else
10697 if test ia64 = "$host_cpu"; then
10698 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10699 allow_undefined_flag="-z nodefs"
10700 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"
10701 else
10702 # Determine the default libpath from the value encoded in an
10703 # empty executable.
10704 if test set = "${lt_cv_aix_libpath+set}"; then
10705 aix_libpath=$lt_cv_aix_libpath
10706 else
10707 if test ${lt_cv_aix_libpath_+y}
10708 then :
10709 printf %s "(cached) " >&6
10710 else $as_nop
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713
10714 int
10715 main (void)
10716 {
10717
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"
10723 then :
10724
10725 lt_aix_libpath_sed='
10726 /Import File Strings/,/^$/ {
10727 /^0/ {
10728 s/^0 *\([^ ]*\) *$/\1/
10729 p
10730 }
10731 }'
10732 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 # Check for a 64-bit object if we didn't find anything.
10734 if test -z "$lt_cv_aix_libpath_"; then
10735 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 fi
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext
10740 if test -z "$lt_cv_aix_libpath_"; then
10741 lt_cv_aix_libpath_=/usr/lib:/lib
10742 fi
10743
10744 fi
10745
10746 aix_libpath=$lt_cv_aix_libpath_
10747 fi
10748
10749 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10750 # Warning - without using the other run time loading flags,
10751 # -berok will link without error, but may produce a broken library.
10752 no_undefined_flag=' $wl-bernotok'
10753 allow_undefined_flag=' $wl-berok'
10754 if test yes = "$with_gnu_ld"; then
10755 # We only use this code for GNU lds that support --whole-archive.
10756 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10757 else
10758 # Exported symbols can be pulled into shared objects from archives
10759 whole_archive_flag_spec='$convenience'
10760 fi
10761 archive_cmds_need_lc=yes
10762 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10763 # -brtl affects multiple linker settings, -berok does not and is overridden later
10764 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10765 if test svr4 != "$with_aix_soname"; then
10766 # This is similar to how AIX traditionally builds its shared libraries.
10767 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'
10768 fi
10769 if test aix != "$with_aix_soname"; then
10770 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'
10771 else
10772 # used by -dlpreopen to get the symbols
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10774 fi
10775 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10776 fi
10777 fi
10778 ;;
10779
10780 amigaos*)
10781 case $host_cpu in
10782 powerpc)
10783 # see comment about AmigaOS4 .so support
10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10785 archive_expsym_cmds=''
10786 ;;
10787 m68k)
10788 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)'
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_minus_L=yes
10791 ;;
10792 esac
10793 ;;
10794
10795 bsdi[45]*)
10796 export_dynamic_flag_spec=-rdynamic
10797 ;;
10798
10799 cygwin* | mingw* | pw32* | cegcc*)
10800 # When not using gcc, we currently assume that we are using
10801 # Microsoft Visual C++ or Intel C++ Compiler.
10802 # hardcode_libdir_flag_spec is actually meaningless, as there is
10803 # no search path for DLLs.
10804 case $cc_basename in
10805 cl* | icl*)
10806 # Native MSVC or ICC
10807 hardcode_libdir_flag_spec=' '
10808 allow_undefined_flag=unsupported
10809 always_export_symbols=yes
10810 file_list_spec='@'
10811 # Tell ltmain to make .lib files, not .a files.
10812 libext=lib
10813 # Tell ltmain to make .dll files, not .so files.
10814 shrext_cmds=.dll
10815 # FIXME: Setting linknames here is a bad hack.
10816 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10817 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10818 cp "$export_symbols" "$output_objdir/$soname.def";
10819 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10820 else
10821 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10822 fi~
10823 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10824 linknames='
10825 # The linker will not automatically build a static lib if we build a DLL.
10826 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10827 enable_shared_with_static_runtimes=yes
10828 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10830 # Don't use ranlib
10831 old_postinstall_cmds='chmod 644 $oldlib'
10832 postlink_cmds='lt_outputfile="@OUTPUT@"~
10833 lt_tool_outputfile="@TOOL_OUTPUT@"~
10834 case $lt_outputfile in
10835 *.exe|*.EXE) ;;
10836 *)
10837 lt_outputfile=$lt_outputfile.exe
10838 lt_tool_outputfile=$lt_tool_outputfile.exe
10839 ;;
10840 esac~
10841 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10842 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10843 $RM "$lt_outputfile.manifest";
10844 fi'
10845 ;;
10846 *)
10847 # Assume MSVC and ICC wrapper
10848 hardcode_libdir_flag_spec=' '
10849 allow_undefined_flag=unsupported
10850 # Tell ltmain to make .lib files, not .a files.
10851 libext=lib
10852 # Tell ltmain to make .dll files, not .so files.
10853 shrext_cmds=.dll
10854 # FIXME: Setting linknames here is a bad hack.
10855 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10856 # The linker will automatically build a .lib file if we build a DLL.
10857 old_archive_from_new_cmds='true'
10858 # FIXME: Should let the user specify the lib program.
10859 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10860 enable_shared_with_static_runtimes=yes
10861 ;;
10862 esac
10863 ;;
10864
10865 darwin* | rhapsody*)
10866
10867
10868 archive_cmds_need_lc=no
10869 hardcode_direct=no
10870 hardcode_automatic=yes
10871 hardcode_shlibpath_var=unsupported
10872 if test yes = "$lt_cv_ld_force_load"; then
10873 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\"`'
10874
10875 else
10876 whole_archive_flag_spec=''
10877 fi
10878 link_all_deplibs=yes
10879 allow_undefined_flag=$_lt_dar_allow_undefined
10880 case $cc_basename in
10881 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10882 *) _lt_dar_can_shared=$GCC ;;
10883 esac
10884 if test yes = "$_lt_dar_can_shared"; then
10885 output_verbose_link_cmd=func_echo_all
10886 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10887 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10888 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"
10889 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"
10890
10891 else
10892 ld_shlibs=no
10893 fi
10894
10895 ;;
10896
10897 dgux*)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_shlibpath_var=no
10901 ;;
10902
10903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10904 # support. Future versions do this automatically, but an explicit c++rt0.o
10905 # does not break anything, and helps significantly (at the cost of a little
10906 # extra space).
10907 freebsd2.2*)
10908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10909 hardcode_libdir_flag_spec='-R$libdir'
10910 hardcode_direct=yes
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10915 freebsd2.*)
10916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_direct=yes
10918 hardcode_minus_L=yes
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10923 freebsd* | dragonfly* | midnightbsd*)
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 hpux9*)
10931 if test yes = "$GCC"; then
10932 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'
10933 else
10934 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'
10935 fi
10936 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10937 hardcode_libdir_separator=:
10938 hardcode_direct=yes
10939
10940 # hardcode_minus_L: Not really in the search PATH,
10941 # but as the default location of the library.
10942 hardcode_minus_L=yes
10943 export_dynamic_flag_spec='$wl-E'
10944 ;;
10945
10946 hpux10*)
10947 if test yes,no = "$GCC,$with_gnu_ld"; then
10948 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10949 else
10950 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10951 fi
10952 if test no = "$with_gnu_ld"; then
10953 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10954 hardcode_libdir_separator=:
10955 hardcode_direct=yes
10956 hardcode_direct_absolute=yes
10957 export_dynamic_flag_spec='$wl-E'
10958 # hardcode_minus_L: Not really in the search PATH,
10959 # but as the default location of the library.
10960 hardcode_minus_L=yes
10961 fi
10962 ;;
10963
10964 hpux11*)
10965 if test yes,no = "$GCC,$with_gnu_ld"; then
10966 case $host_cpu in
10967 hppa*64*)
10968 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 ia64*)
10971 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 *)
10974 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10975 ;;
10976 esac
10977 else
10978 case $host_cpu in
10979 hppa*64*)
10980 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 ;;
10982 ia64*)
10983 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10984 ;;
10985 *)
10986
10987 # Older versions of the 11.00 compiler do not understand -b yet
10988 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10990 printf %s "checking if $CC understands -b... " >&6; }
10991 if test ${lt_cv_prog_compiler__b+y}
10992 then :
10993 printf %s "(cached) " >&6
10994 else $as_nop
10995 lt_cv_prog_compiler__b=no
10996 save_LDFLAGS=$LDFLAGS
10997 LDFLAGS="$LDFLAGS -b"
10998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11000 # The linker can only warn and ignore the option if not recognized
11001 # So say no if there are warnings
11002 if test -s conftest.err; then
11003 # Append any errors to the config.log.
11004 cat conftest.err 1>&5
11005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11007 if diff conftest.exp conftest.er2 >/dev/null; then
11008 lt_cv_prog_compiler__b=yes
11009 fi
11010 else
11011 lt_cv_prog_compiler__b=yes
11012 fi
11013 fi
11014 $RM -r conftest*
11015 LDFLAGS=$save_LDFLAGS
11016
11017 fi
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11019 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11020
11021 if test yes = "$lt_cv_prog_compiler__b"; then
11022 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023 else
11024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11025 fi
11026
11027 ;;
11028 esac
11029 fi
11030 if test no = "$with_gnu_ld"; then
11031 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11032 hardcode_libdir_separator=:
11033
11034 case $host_cpu in
11035 hppa*64*|ia64*)
11036 hardcode_direct=no
11037 hardcode_shlibpath_var=no
11038 ;;
11039 *)
11040 hardcode_direct=yes
11041 hardcode_direct_absolute=yes
11042 export_dynamic_flag_spec='$wl-E'
11043
11044 # hardcode_minus_L: Not really in the search PATH,
11045 # but as the default location of the library.
11046 hardcode_minus_L=yes
11047 ;;
11048 esac
11049 fi
11050 ;;
11051
11052 irix5* | irix6* | nonstopux*)
11053 if test yes = "$GCC"; then
11054 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'
11055 # Try to use the -exported_symbol ld option, if it does not
11056 # work, assume that -exports_file does not work either and
11057 # implicitly export all symbols.
11058 # This should be the same for all languages, so no per-tag cache variable.
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11060 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11061 if test ${lt_cv_irix_exported_symbol+y}
11062 then :
11063 printf %s "(cached) " >&6
11064 else $as_nop
11065 save_LDFLAGS=$LDFLAGS
11066 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 int foo (void) { return 0; }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"
11072 then :
11073 lt_cv_irix_exported_symbol=yes
11074 else $as_nop
11075 lt_cv_irix_exported_symbol=no
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LDFLAGS=$save_LDFLAGS
11080 fi
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11082 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11083 if test yes = "$lt_cv_irix_exported_symbol"; then
11084 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'
11085 fi
11086 link_all_deplibs=no
11087 else
11088 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'
11089 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'
11090 fi
11091 archive_cmds_need_lc='no'
11092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11093 hardcode_libdir_separator=:
11094 inherit_rpath=yes
11095 link_all_deplibs=yes
11096 ;;
11097
11098 linux*)
11099 case $cc_basename in
11100 tcc*)
11101 # Fabrice Bellard et al's Tiny C Compiler
11102 ld_shlibs=yes
11103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11104 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11105 ;;
11106 esac
11107 ;;
11108
11109 netbsd* | netbsdelf*-gnu)
11110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11112 else
11113 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11114 fi
11115 hardcode_libdir_flag_spec='-R$libdir'
11116 hardcode_direct=yes
11117 hardcode_shlibpath_var=no
11118 ;;
11119
11120 newsos6)
11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_direct=yes
11123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11124 hardcode_libdir_separator=:
11125 hardcode_shlibpath_var=no
11126 ;;
11127
11128 *nto* | *qnx*)
11129 ;;
11130
11131 openbsd* | bitrig*)
11132 if test -f /usr/libexec/ld.so; then
11133 hardcode_direct=yes
11134 hardcode_shlibpath_var=no
11135 hardcode_direct_absolute=yes
11136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11139 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11140 export_dynamic_flag_spec='$wl-E'
11141 else
11142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11143 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11144 fi
11145 else
11146 ld_shlibs=no
11147 fi
11148 ;;
11149
11150 os2*)
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 hardcode_minus_L=yes
11153 allow_undefined_flag=unsupported
11154 shrext_cmds=.dll
11155 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158 $ECHO EXPORTS >> $output_objdir/$libname.def~
11159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11161 emximp -o $lib $output_objdir/$libname.def'
11162 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11165 $ECHO EXPORTS >> $output_objdir/$libname.def~
11166 prefix_cmds="$SED"~
11167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11168 prefix_cmds="$prefix_cmds -e 1d";
11169 fi~
11170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11173 emximp -o $lib $output_objdir/$libname.def'
11174 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11175 enable_shared_with_static_runtimes=yes
11176 file_list_spec='@'
11177 ;;
11178
11179 osf3*)
11180 if test yes = "$GCC"; then
11181 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11182 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'
11183 else
11184 allow_undefined_flag=' -expect_unresolved \*'
11185 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'
11186 fi
11187 archive_cmds_need_lc='no'
11188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11189 hardcode_libdir_separator=:
11190 ;;
11191
11192 osf4* | osf5*) # as osf3* with the addition of -msym flag
11193 if test yes = "$GCC"; then
11194 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11195 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'
11196 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11197 else
11198 allow_undefined_flag=' -expect_unresolved \*'
11199 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'
11200 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~
11201 $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'
11202
11203 # Both c and cxx compiler support -rpath directly
11204 hardcode_libdir_flag_spec='-rpath $libdir'
11205 fi
11206 archive_cmds_need_lc='no'
11207 hardcode_libdir_separator=:
11208 ;;
11209
11210 solaris*)
11211 no_undefined_flag=' -z defs'
11212 if test yes = "$GCC"; then
11213 wlarc='$wl'
11214 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11216 $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'
11217 else
11218 case `$CC -V 2>&1` in
11219 *"Compilers 5.0"*)
11220 wlarc=''
11221 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11223 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11224 ;;
11225 *)
11226 wlarc='$wl'
11227 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11229 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11230 ;;
11231 esac
11232 fi
11233 hardcode_libdir_flag_spec='-R$libdir'
11234 hardcode_shlibpath_var=no
11235 case $host_os in
11236 solaris2.[0-5] | solaris2.[0-5].*) ;;
11237 *)
11238 # The compiler driver will combine and reorder linker options,
11239 # but understands '-z linker_flag'. GCC discards it without '$wl',
11240 # but is careful enough not to reorder.
11241 # Supported since Solaris 2.6 (maybe 2.5.1?)
11242 if test yes = "$GCC"; then
11243 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11244 else
11245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11246 fi
11247 ;;
11248 esac
11249 link_all_deplibs=yes
11250 ;;
11251
11252 sunos4*)
11253 if test sequent = "$host_vendor"; then
11254 # Use $CC to link under sequent, because it throws in some extra .o
11255 # files that make .init and .fini sections work.
11256 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11257 else
11258 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11259 fi
11260 hardcode_libdir_flag_spec='-L$libdir'
11261 hardcode_direct=yes
11262 hardcode_minus_L=yes
11263 hardcode_shlibpath_var=no
11264 ;;
11265
11266 sysv4)
11267 case $host_vendor in
11268 sni)
11269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11270 hardcode_direct=yes # is this really true???
11271 ;;
11272 siemens)
11273 ## LD is ld it makes a PLAMLIB
11274 ## CC just makes a GrossModule.
11275 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11276 reload_cmds='$CC -r -o $output$reload_objs'
11277 hardcode_direct=no
11278 ;;
11279 motorola)
11280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11282 ;;
11283 esac
11284 runpath_var='LD_RUN_PATH'
11285 hardcode_shlibpath_var=no
11286 ;;
11287
11288 sysv4.3*)
11289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11290 hardcode_shlibpath_var=no
11291 export_dynamic_flag_spec='-Bexport'
11292 ;;
11293
11294 sysv4*MP*)
11295 if test -d /usr/nec; then
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_shlibpath_var=no
11298 runpath_var=LD_RUN_PATH
11299 hardcode_runpath_var=yes
11300 ld_shlibs=yes
11301 fi
11302 ;;
11303
11304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11305 no_undefined_flag='$wl-z,text'
11306 archive_cmds_need_lc=no
11307 hardcode_shlibpath_var=no
11308 runpath_var='LD_RUN_PATH'
11309
11310 if test yes = "$GCC"; then
11311 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 else
11314 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316 fi
11317 ;;
11318
11319 sysv5* | sco3.2v5* | sco5v6*)
11320 # Note: We CANNOT use -z defs as we might desire, because we do not
11321 # link with -lc, and that would cause any symbols used from libc to
11322 # always be unresolved, which means just about no library would
11323 # ever link correctly. If we're not using GNU ld we use -z text
11324 # though, which does catch some bad symbols but isn't as heavy-handed
11325 # as -z defs.
11326 no_undefined_flag='$wl-z,text'
11327 allow_undefined_flag='$wl-z,nodefs'
11328 archive_cmds_need_lc=no
11329 hardcode_shlibpath_var=no
11330 hardcode_libdir_flag_spec='$wl-R,$libdir'
11331 hardcode_libdir_separator=':'
11332 link_all_deplibs=yes
11333 export_dynamic_flag_spec='$wl-Bexport'
11334 runpath_var='LD_RUN_PATH'
11335
11336 if test yes = "$GCC"; then
11337 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 else
11340 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 fi
11343 ;;
11344
11345 uts4*)
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_shlibpath_var=no
11349 ;;
11350
11351 *)
11352 ld_shlibs=no
11353 ;;
11354 esac
11355
11356 if test sni = "$host_vendor"; then
11357 case $host in
11358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11359 export_dynamic_flag_spec='$wl-Blargedynsym'
11360 ;;
11361 esac
11362 fi
11363 fi
11364
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11366 printf "%s\n" "$ld_shlibs" >&6; }
11367 test no = "$ld_shlibs" && can_build_shared=no
11368
11369 with_gnu_ld=$with_gnu_ld
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 #
11386 # Do we need to explicitly link libc?
11387 #
11388 case "x$archive_cmds_need_lc" in
11389 x|xyes)
11390 # Assume -lc should be added
11391 archive_cmds_need_lc=yes
11392
11393 if test yes,yes = "$GCC,$enable_shared"; then
11394 case $archive_cmds in
11395 *'~'*)
11396 # FIXME: we may have to deal with multi-command sequences.
11397 ;;
11398 '$CC '*)
11399 # Test whether the compiler implicitly links with -lc since on some
11400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11401 # to ld, don't add -lc before -lgcc.
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11403 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11404 if test ${lt_cv_archive_cmds_need_lc+y}
11405 then :
11406 printf %s "(cached) " >&6
11407 else $as_nop
11408 $RM conftest*
11409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11410
11411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11412 (eval $ac_compile) 2>&5
11413 ac_status=$?
11414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415 test $ac_status = 0; } 2>conftest.err; then
11416 soname=conftest
11417 lib=conftest
11418 libobjs=conftest.$ac_objext
11419 deplibs=
11420 wl=$lt_prog_compiler_wl
11421 pic_flag=$lt_prog_compiler_pic
11422 compiler_flags=-v
11423 linker_flags=-v
11424 verstring=
11425 output_objdir=.
11426 libname=conftest
11427 lt_save_allow_undefined_flag=$allow_undefined_flag
11428 allow_undefined_flag=
11429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11430 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11431 ac_status=$?
11432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11433 test $ac_status = 0; }
11434 then
11435 lt_cv_archive_cmds_need_lc=no
11436 else
11437 lt_cv_archive_cmds_need_lc=yes
11438 fi
11439 allow_undefined_flag=$lt_save_allow_undefined_flag
11440 else
11441 cat conftest.err 1>&5
11442 fi
11443 $RM conftest*
11444
11445 fi
11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11447 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11448 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11449 ;;
11450 esac
11451 fi
11452 ;;
11453 esac
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11607 printf %s "checking dynamic linker characteristics... " >&6; }
11608
11609 if test yes = "$GCC"; then
11610 case $host_os in
11611 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11612 *) lt_awk_arg='/^libraries:/' ;;
11613 esac
11614 case $host_os in
11615 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11616 *) lt_sed_strip_eq='s|=/|/|g' ;;
11617 esac
11618 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11619 case $lt_search_path_spec in
11620 *\;*)
11621 # if the path contains ";" then we assume it to be the separator
11622 # otherwise default to the standard path separator (i.e. ":") - it is
11623 # assumed that no part of a normal pathname contains ";" but that should
11624 # okay in the real world where ";" in dirpaths is itself problematic.
11625 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11626 ;;
11627 *)
11628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11629 ;;
11630 esac
11631 # Ok, now we have the path, separated by spaces, we can step through it
11632 # and add multilib dir if necessary...
11633 lt_tmp_lt_search_path_spec=
11634 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11635 # ...but if some path component already ends with the multilib dir we assume
11636 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11637 case "$lt_multi_os_dir; $lt_search_path_spec " in
11638 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11639 lt_multi_os_dir=
11640 ;;
11641 esac
11642 for lt_sys_path in $lt_search_path_spec; do
11643 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11645 elif test -n "$lt_multi_os_dir"; then
11646 test -d "$lt_sys_path" && \
11647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11648 fi
11649 done
11650 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11651 BEGIN {RS = " "; FS = "/|\n";} {
11652 lt_foo = "";
11653 lt_count = 0;
11654 for (lt_i = NF; lt_i > 0; lt_i--) {
11655 if ($lt_i != "" && $lt_i != ".") {
11656 if ($lt_i == "..") {
11657 lt_count++;
11658 } else {
11659 if (lt_count == 0) {
11660 lt_foo = "/" $lt_i lt_foo;
11661 } else {
11662 lt_count--;
11663 }
11664 }
11665 }
11666 }
11667 if (lt_foo != "") { lt_freq[lt_foo]++; }
11668 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11669 }'`
11670 # AWK program above erroneously prepends '/' to C:/dos/paths
11671 # for these hosts.
11672 case $host_os in
11673 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11674 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11675 esac
11676 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11677 else
11678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11679 fi
11680 library_names_spec=
11681 libname_spec='lib$name'
11682 soname_spec=
11683 shrext_cmds=.so
11684 postinstall_cmds=
11685 postuninstall_cmds=
11686 finish_cmds=
11687 finish_eval=
11688 shlibpath_var=
11689 shlibpath_overrides_runpath=unknown
11690 version_type=none
11691 dynamic_linker="$host_os ld.so"
11692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11693 need_lib_prefix=unknown
11694 hardcode_into_libs=no
11695
11696 # when you set need_version to no, make sure it does not cause -set_version
11697 # flags to be left without arguments
11698 need_version=unknown
11699
11700
11701
11702 case $host_os in
11703 aix3*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11706 shlibpath_var=LIBPATH
11707
11708 # AIX 3 has no versioning support, so we append a major version to the name.
11709 soname_spec='$libname$release$shared_ext$major'
11710 ;;
11711
11712 aix[4-9]*)
11713 version_type=linux # correct to gnu/linux during the next big refactor
11714 need_lib_prefix=no
11715 need_version=no
11716 hardcode_into_libs=yes
11717 if test ia64 = "$host_cpu"; then
11718 # AIX 5 supports IA64
11719 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 else
11722 # With GCC up to 2.95.x, collect2 would create an import file
11723 # for dependence libraries. The import file would start with
11724 # the line '#! .'. This would cause the generated library to
11725 # depend on '.', always an invalid library. This was fixed in
11726 # development snapshots of GCC prior to 3.0.
11727 case $host_os in
11728 aix4 | aix4.[01] | aix4.[01].*)
11729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11730 echo ' yes '
11731 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11732 :
11733 else
11734 can_build_shared=no
11735 fi
11736 ;;
11737 esac
11738 # Using Import Files as archive members, it is possible to support
11739 # filename-based versioning of shared library archives on AIX. While
11740 # this would work for both with and without runtime linking, it will
11741 # prevent static linking of such archives. So we do filename-based
11742 # shared library versioning with .so extension only, which is used
11743 # when both runtime linking and shared linking is enabled.
11744 # Unfortunately, runtime linking may impact performance, so we do
11745 # not want this to be the default eventually. Also, we use the
11746 # versioned .so libs for executables only if there is the -brtl
11747 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11748 # To allow for filename-based versioning support, we need to create
11749 # libNAME.so.V as an archive file, containing:
11750 # *) an Import File, referring to the versioned filename of the
11751 # archive as well as the shared archive member, telling the
11752 # bitwidth (32 or 64) of that shared object, and providing the
11753 # list of exported symbols of that shared object, eventually
11754 # decorated with the 'weak' keyword
11755 # *) the shared object with the F_LOADONLY flag set, to really avoid
11756 # it being seen by the linker.
11757 # At run time we better use the real file rather than another symlink,
11758 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11759
11760 case $with_aix_soname,$aix_use_runtimelinking in
11761 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11762 # soname into executable. Probably we can add versioning support to
11763 # collect2, so additional links can be useful in future.
11764 aix,yes) # traditional libtool
11765 dynamic_linker='AIX unversionable lib.so'
11766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11767 # instead of lib<name>.a to let people know that these are not
11768 # typical AIX shared libraries.
11769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770 ;;
11771 aix,no) # traditional AIX only
11772 dynamic_linker='AIX lib.a(lib.so.V)'
11773 # We preserve .a as extension for shared libraries through AIX4.2
11774 # and later when we are not doing run time linking.
11775 library_names_spec='$libname$release.a $libname.a'
11776 soname_spec='$libname$release$shared_ext$major'
11777 ;;
11778 svr4,*) # full svr4 only
11779 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11780 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11781 # We do not specify a path in Import Files, so LIBPATH fires.
11782 shlibpath_overrides_runpath=yes
11783 ;;
11784 *,yes) # both, prefer svr4
11785 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11786 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11787 # unpreferred sharedlib libNAME.a needs extra handling
11788 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"'
11789 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"'
11790 # We do not specify a path in Import Files, so LIBPATH fires.
11791 shlibpath_overrides_runpath=yes
11792 ;;
11793 *,no) # both, prefer aix
11794 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11795 library_names_spec='$libname$release.a $libname.a'
11796 soname_spec='$libname$release$shared_ext$major'
11797 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11798 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)'
11799 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"'
11800 ;;
11801 esac
11802 shlibpath_var=LIBPATH
11803 fi
11804 ;;
11805
11806 amigaos*)
11807 case $host_cpu in
11808 powerpc)
11809 # Since July 2007 AmigaOS4 officially supports .so libraries.
11810 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 ;;
11813 m68k)
11814 library_names_spec='$libname.ixlibrary $libname.a'
11815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11816 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'
11817 ;;
11818 esac
11819 ;;
11820
11821 beos*)
11822 library_names_spec='$libname$shared_ext'
11823 dynamic_linker="$host_os ld.so"
11824 shlibpath_var=LIBRARY_PATH
11825 ;;
11826
11827 bsdi[45]*)
11828 version_type=linux # correct to gnu/linux during the next big refactor
11829 need_version=no
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11831 soname_spec='$libname$release$shared_ext$major'
11832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11836 # the default ld.so.conf also contains /usr/contrib/lib and
11837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11838 # libtool to hard-code these into programs
11839 ;;
11840
11841 cygwin* | mingw* | pw32* | cegcc*)
11842 version_type=windows
11843 shrext_cmds=.dll
11844 need_version=no
11845 need_lib_prefix=no
11846
11847 case $GCC,$cc_basename in
11848 yes,*)
11849 # gcc
11850 library_names_spec='$libname.dll.a'
11851 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11852 postinstall_cmds='base_file=`basename \$file`~
11853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11854 dldir=$destdir/`dirname \$dlpath`~
11855 test -d \$dldir || mkdir -p \$dldir~
11856 $install_prog $dir/$dlname \$dldir/$dlname~
11857 chmod a+x \$dldir/$dlname~
11858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11859 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 fi'
11861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11862 dlpath=$dir/\$dldll~
11863 $RM \$dlpath'
11864 shlibpath_overrides_runpath=yes
11865
11866 case $host_os in
11867 cygwin*)
11868 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11869 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11870
11871 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11872 ;;
11873 mingw* | cegcc*)
11874 # MinGW DLLs use traditional 'lib' prefix
11875 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11876 ;;
11877 pw32*)
11878 # pw32 DLLs use 'pw' prefix rather than 'lib'
11879 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880 ;;
11881 esac
11882 dynamic_linker='Win32 ld.exe'
11883 ;;
11884
11885 *,cl* | *,icl*)
11886 # Native MSVC or ICC
11887 libname_spec='$name'
11888 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11889 library_names_spec='$libname.dll.lib'
11890
11891 case $build_os in
11892 mingw*)
11893 sys_lib_search_path_spec=
11894 lt_save_ifs=$IFS
11895 IFS=';'
11896 for lt_path in $LIB
11897 do
11898 IFS=$lt_save_ifs
11899 # Let DOS variable expansion print the short 8.3 style file name.
11900 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11901 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11902 done
11903 IFS=$lt_save_ifs
11904 # Convert to MSYS style.
11905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11906 ;;
11907 cygwin*)
11908 # Convert to unix form, then to dos form, then back to unix form
11909 # but this time dos style (no spaces!) so that the unix form looks
11910 # like /cygdrive/c/PROGRA~1:/cygdr...
11911 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11912 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11913 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11914 ;;
11915 *)
11916 sys_lib_search_path_spec=$LIB
11917 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11918 # It is most probably a Windows format PATH.
11919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920 else
11921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11922 fi
11923 # FIXME: find the short name or the path components, as spaces are
11924 # common. (e.g. "Program Files" -> "PROGRA~1")
11925 ;;
11926 esac
11927
11928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11929 postinstall_cmds='base_file=`basename \$file`~
11930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11931 dldir=$destdir/`dirname \$dlpath`~
11932 test -d \$dldir || mkdir -p \$dldir~
11933 $install_prog $dir/$dlname \$dldir/$dlname'
11934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11935 dlpath=$dir/\$dldll~
11936 $RM \$dlpath'
11937 shlibpath_overrides_runpath=yes
11938 dynamic_linker='Win32 link.exe'
11939 ;;
11940
11941 *)
11942 # Assume MSVC and ICC wrapper
11943 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11944 dynamic_linker='Win32 ld.exe'
11945 ;;
11946 esac
11947 # FIXME: first we should search . and the directory the executable is in
11948 shlibpath_var=PATH
11949 ;;
11950
11951 darwin* | rhapsody*)
11952 dynamic_linker="$host_os dyld"
11953 version_type=darwin
11954 need_lib_prefix=no
11955 need_version=no
11956 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11957 soname_spec='$libname$release$major$shared_ext'
11958 shlibpath_overrides_runpath=yes
11959 shlibpath_var=DYLD_LIBRARY_PATH
11960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11961
11962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11964 ;;
11965
11966 dgux*)
11967 version_type=linux # correct to gnu/linux during the next big refactor
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11971 soname_spec='$libname$release$shared_ext$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 ;;
11974
11975 freebsd* | dragonfly* | midnightbsd*)
11976 # DragonFly does not have aout. When/if they implement a new
11977 # versioning mechanism, adjust this.
11978 if test -x /usr/bin/objformat; then
11979 objformat=`/usr/bin/objformat`
11980 else
11981 case $host_os in
11982 freebsd[23].*) objformat=aout ;;
11983 *) objformat=elf ;;
11984 esac
11985 fi
11986 version_type=freebsd-$objformat
11987 case $version_type in
11988 freebsd-elf*)
11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11990 soname_spec='$libname$release$shared_ext$major'
11991 need_version=no
11992 need_lib_prefix=no
11993 ;;
11994 freebsd-*)
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11996 need_version=yes
11997 ;;
11998 esac
11999 shlibpath_var=LD_LIBRARY_PATH
12000 case $host_os in
12001 freebsd2.*)
12002 shlibpath_overrides_runpath=yes
12003 ;;
12004 freebsd3.[01]* | freebsdelf3.[01]*)
12005 shlibpath_overrides_runpath=yes
12006 hardcode_into_libs=yes
12007 ;;
12008 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12009 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12010 shlibpath_overrides_runpath=no
12011 hardcode_into_libs=yes
12012 ;;
12013 *) # from 4.6 on, and DragonFly
12014 shlibpath_overrides_runpath=yes
12015 hardcode_into_libs=yes
12016 ;;
12017 esac
12018 ;;
12019
12020 haiku*)
12021 version_type=linux # correct to gnu/linux during the next big refactor
12022 need_lib_prefix=no
12023 need_version=no
12024 dynamic_linker="$host_os runtime_loader"
12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12026 soname_spec='$libname$release$shared_ext$major'
12027 shlibpath_var=LIBRARY_PATH
12028 shlibpath_overrides_runpath=no
12029 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12030 hardcode_into_libs=yes
12031 ;;
12032
12033 hpux9* | hpux10* | hpux11*)
12034 # Give a soname corresponding to the major version so that dld.sl refuses to
12035 # link against other versions.
12036 version_type=sunos
12037 need_lib_prefix=no
12038 need_version=no
12039 case $host_cpu in
12040 ia64*)
12041 shrext_cmds='.so'
12042 hardcode_into_libs=yes
12043 dynamic_linker="$host_os dld.so"
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12047 soname_spec='$libname$release$shared_ext$major'
12048 if test 32 = "$HPUX_IA64_MODE"; then
12049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12051 else
12052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12053 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12054 fi
12055 ;;
12056 hppa*64*)
12057 shrext_cmds='.sl'
12058 hardcode_into_libs=yes
12059 dynamic_linker="$host_os dld.sl"
12060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 soname_spec='$libname$release$shared_ext$major'
12064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12066 ;;
12067 *)
12068 shrext_cmds='.sl'
12069 dynamic_linker="$host_os dld.sl"
12070 shlibpath_var=SHLIB_PATH
12071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073 soname_spec='$libname$release$shared_ext$major'
12074 ;;
12075 esac
12076 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12077 postinstall_cmds='chmod 555 $lib'
12078 # or fails outright, so override atomically:
12079 install_override_mode=555
12080 ;;
12081
12082 interix[3-9]*)
12083 version_type=linux # correct to gnu/linux during the next big refactor
12084 need_lib_prefix=no
12085 need_version=no
12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12087 soname_spec='$libname$release$shared_ext$major'
12088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=no
12091 hardcode_into_libs=yes
12092 ;;
12093
12094 irix5* | irix6* | nonstopux*)
12095 case $host_os in
12096 nonstopux*) version_type=nonstopux ;;
12097 *)
12098 if test yes = "$lt_cv_prog_gnu_ld"; then
12099 version_type=linux # correct to gnu/linux during the next big refactor
12100 else
12101 version_type=irix
12102 fi ;;
12103 esac
12104 need_lib_prefix=no
12105 need_version=no
12106 soname_spec='$libname$release$shared_ext$major'
12107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12108 case $host_os in
12109 irix5* | nonstopux*)
12110 libsuff= shlibsuff=
12111 ;;
12112 *)
12113 case $LD in # libtool.m4 will add one of these switches to LD
12114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12115 libsuff= shlibsuff= libmagic=32-bit;;
12116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12117 libsuff=32 shlibsuff=N32 libmagic=N32;;
12118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12120 *) libsuff= shlibsuff= libmagic=never-match;;
12121 esac
12122 ;;
12123 esac
12124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12125 shlibpath_overrides_runpath=no
12126 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12127 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12128 hardcode_into_libs=yes
12129 ;;
12130
12131 # No shared lib support for Linux oldld, aout, or coff.
12132 linux*oldld* | linux*aout* | linux*coff*)
12133 dynamic_linker=no
12134 ;;
12135
12136 linux*android*)
12137 version_type=none # Android doesn't support versioned libraries.
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='$libname$release$shared_ext'
12141 soname_spec='$libname$release$shared_ext'
12142 finish_cmds=
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12145
12146 # This implies no fast_install, which is unacceptable.
12147 # Some rework will be needed to allow for fast_install
12148 # before this can be enabled.
12149 hardcode_into_libs=yes
12150
12151 dynamic_linker='Android linker'
12152 # Don't embed -rpath directories since the linker doesn't support them.
12153 hardcode_libdir_flag_spec='-L$libdir'
12154 ;;
12155
12156 # This must be glibc/ELF.
12157 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 need_lib_prefix=no
12160 need_version=no
12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 soname_spec='$libname$release$shared_ext$major'
12163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=no
12166
12167 # Some binutils ld are patched to set DT_RUNPATH
12168 if test ${lt_cv_shlibpath_overrides_runpath+y}
12169 then :
12170 printf %s "(cached) " >&6
12171 else $as_nop
12172 lt_cv_shlibpath_overrides_runpath=no
12173 save_LDFLAGS=$LDFLAGS
12174 save_libdir=$libdir
12175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 int
12181 main (void)
12182 {
12183
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"
12189 then :
12190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12191 then :
12192 lt_cv_shlibpath_overrides_runpath=yes
12193 fi
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LDFLAGS=$save_LDFLAGS
12198 libdir=$save_libdir
12199
12200 fi
12201
12202 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12203
12204 # This implies no fast_install, which is unacceptable.
12205 # Some rework will be needed to allow for fast_install
12206 # before this can be enabled.
12207 hardcode_into_libs=yes
12208
12209 # Ideally, we could use ldconfig to report *all* directores which are
12210 # searched for libraries, however this is still not possible. Aside from not
12211 # being certain /sbin/ldconfig is available, command
12212 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12213 # even though it is searched at run-time. Try to do the best guess by
12214 # appending ld.so.conf contents (and includes) to the search path.
12215 if test -f /etc/ld.so.conf; then
12216 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' ' '`
12217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12218 fi
12219
12220 # We used to test for /lib/ld.so.1 and disable shared libraries on
12221 # powerpc, because MkLinux only supported shared libraries with the
12222 # GNU dynamic linker. Since this was broken with cross compilers,
12223 # most powerpc-linux boxes support dynamic linking these days and
12224 # people can always --disable-shared, the test was removed, and we
12225 # assume the GNU/Linux dynamic linker is in use.
12226 dynamic_linker='GNU/Linux ld.so'
12227 ;;
12228
12229 netbsdelf*-gnu)
12230 version_type=linux
12231 need_lib_prefix=no
12232 need_version=no
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=no
12237 hardcode_into_libs=yes
12238 dynamic_linker='NetBSD ld.elf_so'
12239 ;;
12240
12241 netbsd*)
12242 version_type=sunos
12243 need_lib_prefix=no
12244 need_version=no
12245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12248 dynamic_linker='NetBSD (a.out) ld.so'
12249 else
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 soname_spec='$libname$release$shared_ext$major'
12252 dynamic_linker='NetBSD ld.elf_so'
12253 fi
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=yes
12256 hardcode_into_libs=yes
12257 ;;
12258
12259 newsos6)
12260 version_type=linux # correct to gnu/linux during the next big refactor
12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=yes
12264 ;;
12265
12266 *nto* | *qnx*)
12267 version_type=qnx
12268 need_lib_prefix=no
12269 need_version=no
12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12271 soname_spec='$libname$release$shared_ext$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 shlibpath_overrides_runpath=no
12274 hardcode_into_libs=yes
12275 dynamic_linker='ldqnx.so'
12276 ;;
12277
12278 openbsd* | bitrig*)
12279 version_type=sunos
12280 sys_lib_dlsearch_path_spec=/usr/lib
12281 need_lib_prefix=no
12282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12283 need_version=no
12284 else
12285 need_version=yes
12286 fi
12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes
12291 ;;
12292
12293 os2*)
12294 libname_spec='$name'
12295 version_type=windows
12296 shrext_cmds=.dll
12297 need_version=no
12298 need_lib_prefix=no
12299 # OS/2 can only load a DLL with a base name of 8 characters or less.
12300 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12301 v=$($ECHO $release$versuffix | tr -d .-);
12302 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12303 $ECHO $n$v`$shared_ext'
12304 library_names_spec='${libname}_dll.$libext'
12305 dynamic_linker='OS/2 ld.exe'
12306 shlibpath_var=BEGINLIBPATH
12307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12309 postinstall_cmds='base_file=`basename \$file`~
12310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12311 dldir=$destdir/`dirname \$dlpath`~
12312 test -d \$dldir || mkdir -p \$dldir~
12313 $install_prog $dir/$dlname \$dldir/$dlname~
12314 chmod a+x \$dldir/$dlname~
12315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12317 fi'
12318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12319 dlpath=$dir/\$dldll~
12320 $RM \$dlpath'
12321 ;;
12322
12323 osf3* | osf4* | osf5*)
12324 version_type=osf
12325 need_lib_prefix=no
12326 need_version=no
12327 soname_spec='$libname$release$shared_ext$major'
12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12332 ;;
12333
12334 rdos*)
12335 dynamic_linker=no
12336 ;;
12337
12338 solaris*)
12339 version_type=linux # correct to gnu/linux during the next big refactor
12340 need_lib_prefix=no
12341 need_version=no
12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12343 soname_spec='$libname$release$shared_ext$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 hardcode_into_libs=yes
12347 # ldd complains unless libraries are executable
12348 postinstall_cmds='chmod +x $lib'
12349 ;;
12350
12351 sunos4*)
12352 version_type=sunos
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath=yes
12357 if test yes = "$with_gnu_ld"; then
12358 need_lib_prefix=no
12359 fi
12360 need_version=yes
12361 ;;
12362
12363 sysv4 | sysv4.3*)
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366 soname_spec='$libname$release$shared_ext$major'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 case $host_vendor in
12369 sni)
12370 shlibpath_overrides_runpath=no
12371 need_lib_prefix=no
12372 runpath_var=LD_RUN_PATH
12373 ;;
12374 siemens)
12375 need_lib_prefix=no
12376 ;;
12377 motorola)
12378 need_lib_prefix=no
12379 need_version=no
12380 shlibpath_overrides_runpath=no
12381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12382 ;;
12383 esac
12384 ;;
12385
12386 sysv4*MP*)
12387 if test -d /usr/nec; then
12388 version_type=linux # correct to gnu/linux during the next big refactor
12389 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12390 soname_spec='$libname$shared_ext.$major'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 fi
12393 ;;
12394
12395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12396 version_type=sco
12397 need_lib_prefix=no
12398 need_version=no
12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12400 soname_spec='$libname$release$shared_ext$major'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=yes
12403 hardcode_into_libs=yes
12404 if test yes = "$with_gnu_ld"; then
12405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12406 else
12407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12408 case $host_os in
12409 sco3.2v5*)
12410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12411 ;;
12412 esac
12413 fi
12414 sys_lib_dlsearch_path_spec='/usr/lib'
12415 ;;
12416
12417 tpf*)
12418 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12419 version_type=linux # correct to gnu/linux during the next big refactor
12420 need_lib_prefix=no
12421 need_version=no
12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 shlibpath_overrides_runpath=no
12425 hardcode_into_libs=yes
12426 ;;
12427
12428 uts4*)
12429 version_type=linux # correct to gnu/linux during the next big refactor
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 ;;
12434
12435 *)
12436 dynamic_linker=no
12437 ;;
12438 esac
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12440 printf "%s\n" "$dynamic_linker" >&6; }
12441 test no = "$dynamic_linker" && can_build_shared=no
12442
12443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12444 if test yes = "$GCC"; then
12445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12446 fi
12447
12448 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12449 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12450 fi
12451
12452 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12453 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12454 fi
12455
12456 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12457 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12458
12459 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12460 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12461
12462 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12463 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12562 printf %s "checking how to hardcode library paths into programs... " >&6; }
12563 hardcode_action=
12564 if test -n "$hardcode_libdir_flag_spec" ||
12565 test -n "$runpath_var" ||
12566 test yes = "$hardcode_automatic"; then
12567
12568 # We can hardcode non-existent directories.
12569 if test no != "$hardcode_direct" &&
12570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12571 # have to relink, otherwise we might link with an installed library
12572 # when we should be linking with a yet-to-be-installed one
12573 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12574 test no != "$hardcode_minus_L"; then
12575 # Linking always hardcodes the temporary library directory.
12576 hardcode_action=relink
12577 else
12578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12579 hardcode_action=immediate
12580 fi
12581 else
12582 # We cannot hardcode anything, or else we can only hardcode existing
12583 # directories.
12584 hardcode_action=unsupported
12585 fi
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12587 printf "%s\n" "$hardcode_action" >&6; }
12588
12589 if test relink = "$hardcode_action" ||
12590 test yes = "$inherit_rpath"; then
12591 # Fast installation is not supported
12592 enable_fast_install=no
12593 elif test yes = "$shlibpath_overrides_runpath" ||
12594 test no = "$enable_shared"; then
12595 # Fast installation is not necessary
12596 enable_fast_install=needless
12597 fi
12598
12599
12600
12601
12602
12603
12604 if test yes != "$enable_dlopen"; then
12605 enable_dlopen=unknown
12606 enable_dlopen_self=unknown
12607 enable_dlopen_self_static=unknown
12608 else
12609 lt_cv_dlopen=no
12610 lt_cv_dlopen_libs=
12611
12612 case $host_os in
12613 beos*)
12614 lt_cv_dlopen=load_add_on
12615 lt_cv_dlopen_libs=
12616 lt_cv_dlopen_self=yes
12617 ;;
12618
12619 mingw* | pw32* | cegcc*)
12620 lt_cv_dlopen=LoadLibrary
12621 lt_cv_dlopen_libs=
12622 ;;
12623
12624 cygwin*)
12625 lt_cv_dlopen=dlopen
12626 lt_cv_dlopen_libs=
12627 ;;
12628
12629 darwin*)
12630 # if libdl is installed we need to link against it
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12632 printf %s "checking for dlopen in -ldl... " >&6; }
12633 if test ${ac_cv_lib_dl_dlopen+y}
12634 then :
12635 printf %s "(cached) " >&6
12636 else $as_nop
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-ldl $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 char dlopen ();
12646 int
12647 main (void)
12648 {
12649 return dlopen ();
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"
12655 then :
12656 ac_cv_lib_dl_dlopen=yes
12657 else $as_nop
12658 ac_cv_lib_dl_dlopen=no
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12661 conftest$ac_exeext conftest.$ac_ext
12662 LIBS=$ac_check_lib_save_LIBS
12663 fi
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12665 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12666 if test "x$ac_cv_lib_dl_dlopen" = xyes
12667 then :
12668 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12669 else $as_nop
12670
12671 lt_cv_dlopen=dyld
12672 lt_cv_dlopen_libs=
12673 lt_cv_dlopen_self=yes
12674
12675 fi
12676
12677 ;;
12678
12679 tpf*)
12680 # Don't try to run any link tests for TPF. We know it's impossible
12681 # because TPF is a cross-compiler, and we know how we open DSOs.
12682 lt_cv_dlopen=dlopen
12683 lt_cv_dlopen_libs=
12684 lt_cv_dlopen_self=no
12685 ;;
12686
12687 *)
12688 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12689 if test "x$ac_cv_func_shl_load" = xyes
12690 then :
12691 lt_cv_dlopen=shl_load
12692 else $as_nop
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12694 printf %s "checking for shl_load in -ldld... " >&6; }
12695 if test ${ac_cv_lib_dld_shl_load+y}
12696 then :
12697 printf %s "(cached) " >&6
12698 else $as_nop
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-ldld $LIBS"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707 char shl_load ();
12708 int
12709 main (void)
12710 {
12711 return shl_load ();
12712 ;
12713 return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"
12717 then :
12718 ac_cv_lib_dld_shl_load=yes
12719 else $as_nop
12720 ac_cv_lib_dld_shl_load=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12725 fi
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12727 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12728 if test "x$ac_cv_lib_dld_shl_load" = xyes
12729 then :
12730 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12731 else $as_nop
12732 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12733 if test "x$ac_cv_func_dlopen" = xyes
12734 then :
12735 lt_cv_dlopen=dlopen
12736 else $as_nop
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12738 printf %s "checking for dlopen in -ldl... " >&6; }
12739 if test ${ac_cv_lib_dl_dlopen+y}
12740 then :
12741 printf %s "(cached) " >&6
12742 else $as_nop
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-ldl $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12751 char dlopen ();
12752 int
12753 main (void)
12754 {
12755 return dlopen ();
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"
12761 then :
12762 ac_cv_lib_dl_dlopen=yes
12763 else $as_nop
12764 ac_cv_lib_dl_dlopen=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12769 fi
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12771 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12772 if test "x$ac_cv_lib_dl_dlopen" = xyes
12773 then :
12774 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12775 else $as_nop
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12777 printf %s "checking for dlopen in -lsvld... " >&6; }
12778 if test ${ac_cv_lib_svld_dlopen+y}
12779 then :
12780 printf %s "(cached) " >&6
12781 else $as_nop
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lsvld $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12790 char dlopen ();
12791 int
12792 main (void)
12793 {
12794 return dlopen ();
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"
12800 then :
12801 ac_cv_lib_svld_dlopen=yes
12802 else $as_nop
12803 ac_cv_lib_svld_dlopen=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12810 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12811 if test "x$ac_cv_lib_svld_dlopen" = xyes
12812 then :
12813 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12814 else $as_nop
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12816 printf %s "checking for dld_link in -ldld... " >&6; }
12817 if test ${ac_cv_lib_dld_dld_link+y}
12818 then :
12819 printf %s "(cached) " >&6
12820 else $as_nop
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-ldld $LIBS"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 char dld_link ();
12830 int
12831 main (void)
12832 {
12833 return dld_link ();
12834 ;
12835 return 0;
12836 }
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"
12839 then :
12840 ac_cv_lib_dld_dld_link=yes
12841 else $as_nop
12842 ac_cv_lib_dld_dld_link=no
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12847 fi
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12849 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12850 if test "x$ac_cv_lib_dld_dld_link" = xyes
12851 then :
12852 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12853 fi
12854
12855
12856 fi
12857
12858
12859 fi
12860
12861
12862 fi
12863
12864
12865 fi
12866
12867
12868 fi
12869
12870 ;;
12871 esac
12872
12873 if test no = "$lt_cv_dlopen"; then
12874 enable_dlopen=no
12875 else
12876 enable_dlopen=yes
12877 fi
12878
12879 case $lt_cv_dlopen in
12880 dlopen)
12881 save_CPPFLAGS=$CPPFLAGS
12882 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12883
12884 save_LDFLAGS=$LDFLAGS
12885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12886
12887 save_LIBS=$LIBS
12888 LIBS="$lt_cv_dlopen_libs $LIBS"
12889
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12891 printf %s "checking whether a program can dlopen itself... " >&6; }
12892 if test ${lt_cv_dlopen_self+y}
12893 then :
12894 printf %s "(cached) " >&6
12895 else $as_nop
12896 if test yes = "$cross_compiling"; then :
12897 lt_cv_dlopen_self=cross
12898 else
12899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12900 lt_status=$lt_dlunknown
12901 cat > conftest.$ac_ext <<_LT_EOF
12902 #line $LINENO "configure"
12903 #include "confdefs.h"
12904
12905 #if HAVE_DLFCN_H
12906 #include <dlfcn.h>
12907 #endif
12908
12909 #include <stdio.h>
12910
12911 #ifdef RTLD_GLOBAL
12912 # define LT_DLGLOBAL RTLD_GLOBAL
12913 #else
12914 # ifdef DL_GLOBAL
12915 # define LT_DLGLOBAL DL_GLOBAL
12916 # else
12917 # define LT_DLGLOBAL 0
12918 # endif
12919 #endif
12920
12921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12922 find out it does not work in some platform. */
12923 #ifndef LT_DLLAZY_OR_NOW
12924 # ifdef RTLD_LAZY
12925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12926 # else
12927 # ifdef DL_LAZY
12928 # define LT_DLLAZY_OR_NOW DL_LAZY
12929 # else
12930 # ifdef RTLD_NOW
12931 # define LT_DLLAZY_OR_NOW RTLD_NOW
12932 # else
12933 # ifdef DL_NOW
12934 # define LT_DLLAZY_OR_NOW DL_NOW
12935 # else
12936 # define LT_DLLAZY_OR_NOW 0
12937 # endif
12938 # endif
12939 # endif
12940 # endif
12941 #endif
12942
12943 /* When -fvisibility=hidden is used, assume the code has been annotated
12944 correspondingly for the symbols needed. */
12945 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12946 int fnord () __attribute__((visibility("default")));
12947 #endif
12948
12949 int fnord () { return 42; }
12950 int main ()
12951 {
12952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12953 int status = $lt_dlunknown;
12954
12955 if (self)
12956 {
12957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12958 else
12959 {
12960 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12961 else puts (dlerror ());
12962 }
12963 /* dlclose (self); */
12964 }
12965 else
12966 puts (dlerror ());
12967
12968 return status;
12969 }
12970 _LT_EOF
12971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12972 (eval $ac_link) 2>&5
12973 ac_status=$?
12974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12976 (./conftest; exit; ) >&5 2>/dev/null
12977 lt_status=$?
12978 case x$lt_status in
12979 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12980 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12981 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12982 esac
12983 else :
12984 # compilation failed
12985 lt_cv_dlopen_self=no
12986 fi
12987 fi
12988 rm -fr conftest*
12989
12990
12991 fi
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12993 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12994
12995 if test yes = "$lt_cv_dlopen_self"; then
12996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12998 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12999 if test ${lt_cv_dlopen_self_static+y}
13000 then :
13001 printf %s "(cached) " >&6
13002 else $as_nop
13003 if test yes = "$cross_compiling"; then :
13004 lt_cv_dlopen_self_static=cross
13005 else
13006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13007 lt_status=$lt_dlunknown
13008 cat > conftest.$ac_ext <<_LT_EOF
13009 #line $LINENO "configure"
13010 #include "confdefs.h"
13011
13012 #if HAVE_DLFCN_H
13013 #include <dlfcn.h>
13014 #endif
13015
13016 #include <stdio.h>
13017
13018 #ifdef RTLD_GLOBAL
13019 # define LT_DLGLOBAL RTLD_GLOBAL
13020 #else
13021 # ifdef DL_GLOBAL
13022 # define LT_DLGLOBAL DL_GLOBAL
13023 # else
13024 # define LT_DLGLOBAL 0
13025 # endif
13026 #endif
13027
13028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13029 find out it does not work in some platform. */
13030 #ifndef LT_DLLAZY_OR_NOW
13031 # ifdef RTLD_LAZY
13032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13033 # else
13034 # ifdef DL_LAZY
13035 # define LT_DLLAZY_OR_NOW DL_LAZY
13036 # else
13037 # ifdef RTLD_NOW
13038 # define LT_DLLAZY_OR_NOW RTLD_NOW
13039 # else
13040 # ifdef DL_NOW
13041 # define LT_DLLAZY_OR_NOW DL_NOW
13042 # else
13043 # define LT_DLLAZY_OR_NOW 0
13044 # endif
13045 # endif
13046 # endif
13047 # endif
13048 #endif
13049
13050 /* When -fvisibility=hidden is used, assume the code has been annotated
13051 correspondingly for the symbols needed. */
13052 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13053 int fnord () __attribute__((visibility("default")));
13054 #endif
13055
13056 int fnord () { return 42; }
13057 int main ()
13058 {
13059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13060 int status = $lt_dlunknown;
13061
13062 if (self)
13063 {
13064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13065 else
13066 {
13067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13068 else puts (dlerror ());
13069 }
13070 /* dlclose (self); */
13071 }
13072 else
13073 puts (dlerror ());
13074
13075 return status;
13076 }
13077 _LT_EOF
13078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13079 (eval $ac_link) 2>&5
13080 ac_status=$?
13081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13083 (./conftest; exit; ) >&5 2>/dev/null
13084 lt_status=$?
13085 case x$lt_status in
13086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13089 esac
13090 else :
13091 # compilation failed
13092 lt_cv_dlopen_self_static=no
13093 fi
13094 fi
13095 rm -fr conftest*
13096
13097
13098 fi
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13100 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13101 fi
13102
13103 CPPFLAGS=$save_CPPFLAGS
13104 LDFLAGS=$save_LDFLAGS
13105 LIBS=$save_LIBS
13106 ;;
13107 esac
13108
13109 case $lt_cv_dlopen_self in
13110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13111 *) enable_dlopen_self=unknown ;;
13112 esac
13113
13114 case $lt_cv_dlopen_self_static in
13115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13116 *) enable_dlopen_self_static=unknown ;;
13117 esac
13118 fi
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136 striplib=
13137 old_striplib=
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13139 printf %s "checking whether stripping libraries is possible... " >&6; }
13140 if test -z "$STRIP"; then
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 printf "%s\n" "no" >&6; }
13143 else
13144 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13145 old_striplib="$STRIP --strip-debug"
13146 striplib="$STRIP --strip-unneeded"
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 printf "%s\n" "yes" >&6; }
13149 else
13150 case $host_os in
13151 darwin*)
13152 # FIXME - insert some real tests, host_os isn't really good enough
13153 striplib="$STRIP -x"
13154 old_striplib="$STRIP -S"
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13156 printf "%s\n" "yes" >&6; }
13157 ;;
13158 freebsd*)
13159 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13160 old_striplib="$STRIP --strip-debug"
13161 striplib="$STRIP --strip-unneeded"
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163 printf "%s\n" "yes" >&6; }
13164 else
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 printf "%s\n" "no" >&6; }
13167 fi
13168 ;;
13169 *)
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 printf "%s\n" "no" >&6; }
13172 ;;
13173 esac
13174 fi
13175 fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188 # Report what library types will actually be built
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13190 printf %s "checking if libtool supports shared libraries... " >&6; }
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13192 printf "%s\n" "$can_build_shared" >&6; }
13193
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13195 printf %s "checking whether to build shared libraries... " >&6; }
13196 test no = "$can_build_shared" && enable_shared=no
13197
13198 # On AIX, shared libraries and static libraries use the same namespace, and
13199 # are all built from PIC.
13200 case $host_os in
13201 aix3*)
13202 test yes = "$enable_shared" && enable_static=no
13203 if test -n "$RANLIB"; then
13204 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13205 postinstall_cmds='$RANLIB $lib'
13206 fi
13207 ;;
13208
13209 aix[4-9]*)
13210 if test ia64 != "$host_cpu"; then
13211 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13212 yes,aix,yes) ;; # shared object as lib.so file only
13213 yes,svr4,*) ;; # shared object as lib.so archive member only
13214 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13215 esac
13216 fi
13217 ;;
13218 esac
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13220 printf "%s\n" "$enable_shared" >&6; }
13221
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13223 printf %s "checking whether to build static libraries... " >&6; }
13224 # Make sure either enable_shared or enable_static is yes.
13225 test yes = "$enable_shared" || enable_static=yes
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13227 printf "%s\n" "$enable_static" >&6; }
13228
13229
13230
13231
13232 fi
13233 ac_ext=c
13234 ac_cpp='$CPP $CPPFLAGS'
13235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13238
13239 CC=$lt_save_CC
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255 ac_config_commands="$ac_config_commands libtool"
13256
13257
13258
13259
13260 # Only expand once:
13261
13262
13263 for ac_prog in flex lex
13264 do
13265 # Extract the first word of "$ac_prog", so it can be a program name with args.
13266 set dummy $ac_prog; ac_word=$2
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 printf %s "checking for $ac_word... " >&6; }
13269 if test ${ac_cv_prog_LEX+y}
13270 then :
13271 printf %s "(cached) " >&6
13272 else $as_nop
13273 if test -n "$LEX"; then
13274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279 IFS=$as_save_IFS
13280 case $as_dir in #(((
13281 '') as_dir=./ ;;
13282 */) ;;
13283 *) as_dir=$as_dir/ ;;
13284 esac
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13287 ac_cv_prog_LEX="$ac_prog"
13288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13289 break 2
13290 fi
13291 done
13292 done
13293 IFS=$as_save_IFS
13294
13295 fi
13296 fi
13297 LEX=$ac_cv_prog_LEX
13298 if test -n "$LEX"; then
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13300 printf "%s\n" "$LEX" >&6; }
13301 else
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 printf "%s\n" "no" >&6; }
13304 fi
13305
13306
13307 test -n "$LEX" && break
13308 done
13309 test -n "$LEX" || LEX=":"
13310
13311 if test "x$LEX" != "x:"; then
13312 cat >conftest.l <<_ACEOF
13313 %{
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 int yywrap(void);
13318 %}
13319 %%
13320 a { ECHO; }
13321 b { REJECT; }
13322 c { yymore (); }
13323 d { yyless (1); }
13324 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13325 #ifdef __cplusplus
13326 yyless ((yyinput () != 0));
13327 #else
13328 yyless ((input () != 0));
13329 #endif
13330 }
13331 f { unput (yytext[0]); }
13332 . { BEGIN INITIAL; }
13333 %%
13334 #ifdef YYTEXT_POINTER
13335 extern char *yytext;
13336 #endif
13337 int
13338 yywrap (void)
13339 {
13340 return 1;
13341 }
13342 int
13343 main (void)
13344 {
13345 return ! yylex ();
13346 }
13347 _ACEOF
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
13349 printf %s "checking for lex output file root... " >&6; }
13350 if test ${ac_cv_prog_lex_root+y}
13351 then :
13352 printf %s "(cached) " >&6
13353 else $as_nop
13354
13355 ac_cv_prog_lex_root=unknown
13356 { { ac_try="$LEX conftest.l"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360 esac
13361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13362 printf "%s\n" "$ac_try_echo"; } >&5
13363 (eval "$LEX conftest.l") 2>&5
13364 ac_status=$?
13365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; } &&
13367 if test -f lex.yy.c; then
13368 ac_cv_prog_lex_root=lex.yy
13369 elif test -f lexyy.c; then
13370 ac_cv_prog_lex_root=lexyy
13371 fi
13372 fi
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13374 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
13375 if test "$ac_cv_prog_lex_root" = unknown
13376 then :
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
13378 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
13379 LEX=: LEXLIB=
13380 fi
13381 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13382
13383 if test ${LEXLIB+y}
13384 then :
13385
13386 else $as_nop
13387
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
13389 printf %s "checking for lex library... " >&6; }
13390 if test ${ac_cv_lib_lex+y}
13391 then :
13392 printf %s "(cached) " >&6
13393 else $as_nop
13394
13395 ac_save_LIBS="$LIBS"
13396 ac_found=false
13397 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
13398 case $ac_cv_lib_lex in #(
13399 'none needed') :
13400 ;; #(
13401 'not found') :
13402 break ;; #(
13403 *) :
13404 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
13405 *) :
13406 ;;
13407 esac
13408
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 `cat $LEX_OUTPUT_ROOT.c`
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"
13414 then :
13415 ac_found=:
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13418 conftest$ac_exeext conftest.$ac_ext
13419 if $ac_found; then
13420 break
13421 fi
13422 done
13423 LIBS="$ac_save_LIBS"
13424
13425 fi
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13427 printf "%s\n" "$ac_cv_lib_lex" >&6; }
13428 if test "$ac_cv_lib_lex" = 'not found'
13429 then :
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
13431 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
13432 LEX=: LEXLIB=
13433 elif test "$ac_cv_lib_lex" = 'none needed'
13434 then :
13435 LEXLIB=''
13436 else $as_nop
13437 LEXLIB=$ac_cv_lib_lex
13438 fi
13439
13440 fi
13441
13442
13443 if test "$LEX" != :
13444 then :
13445
13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13447 printf %s "checking whether yytext is a pointer... " >&6; }
13448 if test ${ac_cv_prog_lex_yytext_pointer+y}
13449 then :
13450 printf %s "(cached) " >&6
13451 else $as_nop
13452 # POSIX says lex can declare yytext either as a pointer or an array; the
13453 # default is implementation-dependent. Figure out which it is, since
13454 # not all implementations provide the %pointer and %array declarations.
13455 ac_cv_prog_lex_yytext_pointer=no
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458
13459 #define YYTEXT_POINTER 1
13460 `cat $LEX_OUTPUT_ROOT.c`
13461 _ACEOF
13462 if ac_fn_c_try_compile "$LINENO"
13463 then :
13464 ac_cv_prog_lex_yytext_pointer=yes
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13467
13468 fi
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13470 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
13471 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13472
13473 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
13474
13475 fi
13476
13477 fi
13478 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13479
13480 fi
13481 for ac_prog in 'bison -y' byacc
13482 do
13483 # Extract the first word of "$ac_prog", so it can be a program name with args.
13484 set dummy $ac_prog; ac_word=$2
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13486 printf %s "checking for $ac_word... " >&6; }
13487 if test ${ac_cv_prog_YACC+y}
13488 then :
13489 printf %s "(cached) " >&6
13490 else $as_nop
13491 if test -n "$YACC"; then
13492 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13493 else
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497 IFS=$as_save_IFS
13498 case $as_dir in #(((
13499 '') as_dir=./ ;;
13500 */) ;;
13501 *) as_dir=$as_dir/ ;;
13502 esac
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_YACC="$ac_prog"
13506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13507 break 2
13508 fi
13509 done
13510 done
13511 IFS=$as_save_IFS
13512
13513 fi
13514 fi
13515 YACC=$ac_cv_prog_YACC
13516 if test -n "$YACC"; then
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13518 printf "%s\n" "$YACC" >&6; }
13519 else
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 printf "%s\n" "no" >&6; }
13522 fi
13523
13524
13525 test -n "$YACC" && break
13526 done
13527 test -n "$YACC" || YACC="yacc"
13528
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13530 printf %s "checking for grep that handles long lines and -e... " >&6; }
13531 if test ${ac_cv_path_GREP+y}
13532 then :
13533 printf %s "(cached) " >&6
13534 else $as_nop
13535 if test -z "$GREP"; then
13536 ac_path_GREP_found=false
13537 # Loop through the user's path and test for each of PROGNAME-LIST
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13540 do
13541 IFS=$as_save_IFS
13542 case $as_dir in #(((
13543 '') as_dir=./ ;;
13544 */) ;;
13545 *) as_dir=$as_dir/ ;;
13546 esac
13547 for ac_prog in grep ggrep
13548 do
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
13551 as_fn_executable_p "$ac_path_GREP" || continue
13552 # Check for GNU ac_path_GREP and select it if it is found.
13553 # Check for GNU $ac_path_GREP
13554 case `"$ac_path_GREP" --version 2>&1` in
13555 *GNU*)
13556 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13557 *)
13558 ac_count=0
13559 printf %s 0123456789 >"conftest.in"
13560 while :
13561 do
13562 cat "conftest.in" "conftest.in" >"conftest.tmp"
13563 mv "conftest.tmp" "conftest.in"
13564 cp "conftest.in" "conftest.nl"
13565 printf "%s\n" 'GREP' >> "conftest.nl"
13566 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13568 as_fn_arith $ac_count + 1 && ac_count=$as_val
13569 if test $ac_count -gt ${ac_path_GREP_max-0}; then
13570 # Best one so far, save it but keep looking for a better one
13571 ac_cv_path_GREP="$ac_path_GREP"
13572 ac_path_GREP_max=$ac_count
13573 fi
13574 # 10*(2^10) chars as input seems more than enough
13575 test $ac_count -gt 10 && break
13576 done
13577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13578 esac
13579
13580 $ac_path_GREP_found && break 3
13581 done
13582 done
13583 done
13584 IFS=$as_save_IFS
13585 if test -z "$ac_cv_path_GREP"; then
13586 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13587 fi
13588 else
13589 ac_cv_path_GREP=$GREP
13590 fi
13591
13592 fi
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13594 printf "%s\n" "$ac_cv_path_GREP" >&6; }
13595 GREP="$ac_cv_path_GREP"
13596
13597
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13599 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13600 if test ${lt_cv_path_NM+y}
13601 then :
13602 printf %s "(cached) " >&6
13603 else $as_nop
13604 if test -n "$NM"; then
13605 # Let the user override the test.
13606 lt_cv_path_NM=$NM
13607 else
13608 lt_nm_to_check=${ac_tool_prefix}nm
13609 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13610 lt_nm_to_check="$lt_nm_to_check nm"
13611 fi
13612 for lt_tmp_nm in $lt_nm_to_check; do
13613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13614 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13615 IFS=$lt_save_ifs
13616 test -z "$ac_dir" && ac_dir=.
13617 tmp_nm=$ac_dir/$lt_tmp_nm
13618 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13619 # Check to see if the nm accepts a BSD-compat flag.
13620 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13621 # nm: unknown option "B" ignored
13622 # Tru64's nm complains that /dev/null is an invalid object file
13623 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13624 case $build_os in
13625 mingw*) lt_bad_file=conftest.nm/nofile ;;
13626 *) lt_bad_file=/dev/null ;;
13627 esac
13628 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
13629 *$lt_bad_file* | *'Invalid file or object type'*)
13630 lt_cv_path_NM="$tmp_nm -B"
13631 break 2
13632 ;;
13633 *)
13634 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
13635 */dev/null*)
13636 lt_cv_path_NM="$tmp_nm -p"
13637 break 2
13638 ;;
13639 *)
13640 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13641 continue # so that we can try to find one that supports BSD flags
13642 ;;
13643 esac
13644 ;;
13645 esac
13646 fi
13647 done
13648 IFS=$lt_save_ifs
13649 done
13650 : ${lt_cv_path_NM=no}
13651 fi
13652 fi
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13654 printf "%s\n" "$lt_cv_path_NM" >&6; }
13655 if test no != "$lt_cv_path_NM"; then
13656 NM=$lt_cv_path_NM
13657 else
13658 # Didn't find any BSD compatible name lister, look for dumpbin.
13659 if test -n "$DUMPBIN"; then :
13660 # Let the user override the test.
13661 else
13662 if test -n "$ac_tool_prefix"; then
13663 for ac_prog in dumpbin "link -dump"
13664 do
13665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668 printf %s "checking for $ac_word... " >&6; }
13669 if test ${ac_cv_prog_DUMPBIN+y}
13670 then :
13671 printf %s "(cached) " >&6
13672 else $as_nop
13673 if test -n "$DUMPBIN"; then
13674 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679 IFS=$as_save_IFS
13680 case $as_dir in #(((
13681 '') as_dir=./ ;;
13682 */) ;;
13683 *) as_dir=$as_dir/ ;;
13684 esac
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691 done
13692 done
13693 IFS=$as_save_IFS
13694
13695 fi
13696 fi
13697 DUMPBIN=$ac_cv_prog_DUMPBIN
13698 if test -n "$DUMPBIN"; then
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13700 printf "%s\n" "$DUMPBIN" >&6; }
13701 else
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 printf "%s\n" "no" >&6; }
13704 fi
13705
13706
13707 test -n "$DUMPBIN" && break
13708 done
13709 fi
13710 if test -z "$DUMPBIN"; then
13711 ac_ct_DUMPBIN=$DUMPBIN
13712 for ac_prog in dumpbin "link -dump"
13713 do
13714 # Extract the first word of "$ac_prog", so it can be a program name with args.
13715 set dummy $ac_prog; ac_word=$2
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717 printf %s "checking for $ac_word... " >&6; }
13718 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
13719 then :
13720 printf %s "(cached) " >&6
13721 else $as_nop
13722 if test -n "$ac_ct_DUMPBIN"; then
13723 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 case $as_dir in #(((
13730 '') as_dir=./ ;;
13731 */) ;;
13732 *) as_dir=$as_dir/ ;;
13733 esac
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13736 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13738 break 2
13739 fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13747 if test -n "$ac_ct_DUMPBIN"; then
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13749 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
13750 else
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 printf "%s\n" "no" >&6; }
13753 fi
13754
13755
13756 test -n "$ac_ct_DUMPBIN" && break
13757 done
13758
13759 if test "x$ac_ct_DUMPBIN" = x; then
13760 DUMPBIN=":"
13761 else
13762 case $cross_compiling:$ac_tool_warned in
13763 yes:)
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13766 ac_tool_warned=yes ;;
13767 esac
13768 DUMPBIN=$ac_ct_DUMPBIN
13769 fi
13770 fi
13771
13772 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
13773 *COFF*)
13774 DUMPBIN="$DUMPBIN -symbols -headers"
13775 ;;
13776 *)
13777 DUMPBIN=:
13778 ;;
13779 esac
13780 fi
13781
13782 if test : != "$DUMPBIN"; then
13783 NM=$DUMPBIN
13784 fi
13785 fi
13786 test -z "$NM" && NM=nm
13787
13788
13789
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13791 printf %s "checking the name lister ($NM) interface... " >&6; }
13792 if test ${lt_cv_nm_interface+y}
13793 then :
13794 printf %s "(cached) " >&6
13795 else $as_nop
13796 lt_cv_nm_interface="BSD nm"
13797 echo "int some_variable = 0;" > conftest.$ac_ext
13798 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13799 (eval "$ac_compile" 2>conftest.err)
13800 cat conftest.err >&5
13801 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13803 cat conftest.err >&5
13804 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13805 cat conftest.out >&5
13806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13807 lt_cv_nm_interface="MS dumpbin"
13808 fi
13809 rm -f conftest*
13810 fi
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13812 printf "%s\n" "$lt_cv_nm_interface" >&6; }
13813
13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13815 printf %s "checking for a sed that does not truncate output... " >&6; }
13816 if test ${ac_cv_path_SED+y}
13817 then :
13818 printf %s "(cached) " >&6
13819 else $as_nop
13820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13821 for ac_i in 1 2 3 4 5 6 7; do
13822 ac_script="$ac_script$as_nl$ac_script"
13823 done
13824 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13825 { ac_script=; unset ac_script;}
13826 if test -z "$SED"; then
13827 ac_path_SED_found=false
13828 # Loop through the user's path and test for each of PROGNAME-LIST
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 case $as_dir in #(((
13834 '') as_dir=./ ;;
13835 */) ;;
13836 *) as_dir=$as_dir/ ;;
13837 esac
13838 for ac_prog in sed gsed
13839 do
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
13842 as_fn_executable_p "$ac_path_SED" || continue
13843 # Check for GNU ac_path_SED and select it if it is found.
13844 # Check for GNU $ac_path_SED
13845 case `"$ac_path_SED" --version 2>&1` in
13846 *GNU*)
13847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13848 *)
13849 ac_count=0
13850 printf %s 0123456789 >"conftest.in"
13851 while :
13852 do
13853 cat "conftest.in" "conftest.in" >"conftest.tmp"
13854 mv "conftest.tmp" "conftest.in"
13855 cp "conftest.in" "conftest.nl"
13856 printf "%s\n" '' >> "conftest.nl"
13857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13859 as_fn_arith $ac_count + 1 && ac_count=$as_val
13860 if test $ac_count -gt ${ac_path_SED_max-0}; then
13861 # Best one so far, save it but keep looking for a better one
13862 ac_cv_path_SED="$ac_path_SED"
13863 ac_path_SED_max=$ac_count
13864 fi
13865 # 10*(2^10) chars as input seems more than enough
13866 test $ac_count -gt 10 && break
13867 done
13868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13869 esac
13870
13871 $ac_path_SED_found && break 3
13872 done
13873 done
13874 done
13875 IFS=$as_save_IFS
13876 if test -z "$ac_cv_path_SED"; then
13877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13878 fi
13879 else
13880 ac_cv_path_SED=$SED
13881 fi
13882
13883 fi
13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13885 printf "%s\n" "$ac_cv_path_SED" >&6; }
13886 SED="$ac_cv_path_SED"
13887 rm -f conftest.sed
13888
13889
13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13891 printf %s "checking for an ANSI C-conforming const... " >&6; }
13892 if test ${ac_cv_c_const+y}
13893 then :
13894 printf %s "(cached) " >&6
13895 else $as_nop
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898
13899 int
13900 main (void)
13901 {
13902
13903 #ifndef __cplusplus
13904 /* Ultrix mips cc rejects this sort of thing. */
13905 typedef int charset[2];
13906 const charset cs = { 0, 0 };
13907 /* SunOS 4.1.1 cc rejects this. */
13908 char const *const *pcpcc;
13909 char **ppc;
13910 /* NEC SVR4.0.2 mips cc rejects this. */
13911 struct point {int x, y;};
13912 static struct point const zero = {0,0};
13913 /* IBM XL C 1.02.0.0 rejects this.
13914 It does not let you subtract one const X* pointer from another in
13915 an arm of an if-expression whose if-part is not a constant
13916 expression */
13917 const char *g = "string";
13918 pcpcc = &g + (g ? g-g : 0);
13919 /* HPUX 7.0 cc rejects these. */
13920 ++pcpcc;
13921 ppc = (char**) pcpcc;
13922 pcpcc = (char const *const *) ppc;
13923 { /* SCO 3.2v4 cc rejects this sort of thing. */
13924 char tx;
13925 char *t = &tx;
13926 char const *s = 0 ? (char *) 0 : (char const *) 0;
13927
13928 *t++ = 0;
13929 if (s) return 0;
13930 }
13931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13932 int x[] = {25, 17};
13933 const int *foo = &x[0];
13934 ++foo;
13935 }
13936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13937 typedef const int *iptr;
13938 iptr p = 0;
13939 ++p;
13940 }
13941 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13943 struct s { int j; const int *ap[3]; } bx;
13944 struct s *b = &bx; b->j = 5;
13945 }
13946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13947 const int foo = 10;
13948 if (!foo) return 0;
13949 }
13950 return !cs[0] && !zero.x;
13951 #endif
13952
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_compile "$LINENO"
13958 then :
13959 ac_cv_c_const=yes
13960 else $as_nop
13961 ac_cv_c_const=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13964 fi
13965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13966 printf "%s\n" "$ac_cv_c_const" >&6; }
13967 if test $ac_cv_c_const = no; then
13968
13969 printf "%s\n" "#define const /**/" >>confdefs.h
13970
13971 fi
13972
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13974 printf %s "checking for inline... " >&6; }
13975 if test ${ac_cv_c_inline+y}
13976 then :
13977 printf %s "(cached) " >&6
13978 else $as_nop
13979 ac_cv_c_inline=no
13980 for ac_kw in inline __inline__ __inline; do
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983 #ifndef __cplusplus
13984 typedef int foo_t;
13985 static $ac_kw foo_t static_foo (void) {return 0; }
13986 $ac_kw foo_t foo (void) {return 0; }
13987 #endif
13988
13989 _ACEOF
13990 if ac_fn_c_try_compile "$LINENO"
13991 then :
13992 ac_cv_c_inline=$ac_kw
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13995 test "$ac_cv_c_inline" != no && break
13996 done
13997
13998 fi
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14000 printf "%s\n" "$ac_cv_c_inline" >&6; }
14001
14002 case $ac_cv_c_inline in
14003 inline | yes) ;;
14004 *)
14005 case $ac_cv_c_inline in
14006 no) ac_val=;;
14007 *) ac_val=$ac_cv_c_inline;;
14008 esac
14009 cat >>confdefs.h <<_ACEOF
14010 #ifndef __cplusplus
14011 #define inline $ac_val
14012 #endif
14013 _ACEOF
14014 ;;
14015 esac
14016
14017
14018
14019 # headers
14020 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14021 if test "x$ac_cv_header_unistd_h" = xyes
14022 then :
14023 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14024
14025 fi
14026 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
14027 if test "x$ac_cv_header_time_h" = xyes
14028 then :
14029 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
14030
14031 fi
14032 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14033 if test "x$ac_cv_header_limits_h" = xyes
14034 then :
14035 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14036
14037 fi
14038 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
14039 if test "x$ac_cv_header_ctype_h" = xyes
14040 then :
14041 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
14042
14043 fi
14044
14045
14046 for ac_header in stdint.h
14047 do :
14048 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_stdint_h" = xyes
14050 then :
14051 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14052
14053 INCLUDE_INT_HEADER="#include <stdint.h>"
14054 INT32_T="int32_t"
14055 UINT32_T="uint32_t"
14056 INT64_T="int64_t"
14057 UINT64_T="uint64_t"
14058
14059 else $as_nop
14060
14061 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14062 case $ac_cv_c_int32_t in #(
14063 no|yes) ;; #(
14064 *)
14065
14066 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
14067 ;;
14068 esac
14069
14070 test "x$ac_cv_c_int32_t" = "xyes" && INT32_T="int32_t" || INT32_T=$ac_cv_c_int32_t
14071 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14072 case $ac_cv_c_uint32_t in #(
14073 no|yes) ;; #(
14074 *)
14075
14076 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14077
14078
14079 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14080 ;;
14081 esac
14082
14083 test "x$ac_cv_c_uint32_t" = "xyes" && UINT32_T="uint32_t" || INT32_T=$ac_cv_c_uint32_t
14084 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14085 case $ac_cv_c_int64_t in #(
14086 no|yes) ;; #(
14087 *)
14088
14089 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
14090 ;;
14091 esac
14092
14093 test "x$ac_cv_c_int64_t" = "xyes" && INT64_T="int64_t" || INT64_T=$ac_cv_c_int64_t
14094 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14095 case $ac_cv_c_uint64_t in #(
14096 no|yes) ;; #(
14097 *)
14098
14099 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
14100
14101
14102 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
14103 ;;
14104 esac
14105
14106 test "x$ac_cv_c_uint64_t" = "xyes" && UINT64_T="uint64_t" || INT64_T=$ac_cv_c_uint64_t
14107
14108
14109 fi
14110
14111 done
14112
14113 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14114 if test "x$ac_cv_type_size_t" = xyes
14115 then :
14116
14117 else $as_nop
14118
14119 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14120
14121 fi
14122
14123
14124 # Extract the first word of "pkg-config", so it can be a program name with args.
14125 set dummy pkg-config; ac_word=$2
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127 printf %s "checking for $ac_word... " >&6; }
14128 if test ${ac_cv_prog_HAVE_PKG_CONFIG+y}
14129 then :
14130 printf %s "(cached) " >&6
14131 else $as_nop
14132 if test -n "$HAVE_PKG_CONFIG"; then
14133 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14137 do
14138 IFS=$as_save_IFS
14139 case $as_dir in #(((
14140 '') as_dir=./ ;;
14141 */) ;;
14142 *) as_dir=$as_dir/ ;;
14143 esac
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14146 ac_cv_prog_HAVE_PKG_CONFIG="yes"
14147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14148 break 2
14149 fi
14150 done
14151 done
14152 IFS=$as_save_IFS
14153
14154 fi
14155 fi
14156 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
14157 if test -n "$HAVE_PKG_CONFIG"; then
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
14159 printf "%s\n" "$HAVE_PKG_CONFIG" >&6; }
14160 else
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 printf "%s\n" "no" >&6; }
14163 fi
14164
14165
14166
14167 # Check whether --enable-doc was given.
14168 if test ${enable_doc+y}
14169 then :
14170 enableval=$enable_doc;
14171 fi
14172
14173 if test "x$enable_doc" != "xno"
14174 then
14175 # Extract the first word of "doxygen", so it can be a program name with args.
14176 set dummy doxygen; ac_word=$2
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14178 printf %s "checking for $ac_word... " >&6; }
14179 if test ${ac_cv_prog_HAVE_DOXYGEN+y}
14180 then :
14181 printf %s "(cached) " >&6
14182 else $as_nop
14183 if test -n "$HAVE_DOXYGEN"; then
14184 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189 IFS=$as_save_IFS
14190 case $as_dir in #(((
14191 '') as_dir=./ ;;
14192 */) ;;
14193 *) as_dir=$as_dir/ ;;
14194 esac
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_HAVE_DOXYGEN="yes"
14198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201 done
14202 done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
14208 if test -n "$HAVE_DOXYGEN"; then
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
14210 printf "%s\n" "$HAVE_DOXYGEN" >&6; }
14211 else
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 printf "%s\n" "no" >&6; }
14214 fi
14215
14216
14217 else
14218 HAVE_DOXYGEN="no"
14219 fi
14220 if test "${HAVE_DOXYGEN}" = "yes"; then
14221 HAVE_DOXYGEN_TRUE=
14222 HAVE_DOXYGEN_FALSE='#'
14223 else
14224 HAVE_DOXYGEN_TRUE='#'
14225 HAVE_DOXYGEN_FALSE=
14226 fi
14227
14228
14229 # Check whether --enable-valgrind was given.
14230 if test ${enable_valgrind+y}
14231 then :
14232 enableval=$enable_valgrind;
14233 fi
14234
14235 if test "x$enable_valgrind" = "xyes"
14236 then
14237 # Extract the first word of "valgrind", so it can be a program name with args.
14238 set dummy valgrind; ac_word=$2
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 printf %s "checking for $ac_word... " >&6; }
14241 if test ${ac_cv_path_VALGRIND+y}
14242 then :
14243 printf %s "(cached) " >&6
14244 else $as_nop
14245 case $VALGRIND in
14246 [\\/]* | ?:[\\/]*)
14247 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14248 ;;
14249 *)
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 case $as_dir in #(((
14255 '') as_dir=./ ;;
14256 */) ;;
14257 *) as_dir=$as_dir/ ;;
14258 esac
14259 for ac_exec_ext in '' $ac_executable_extensions; do
14260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14261 ac_cv_path_VALGRIND="$as_dir$ac_word$ac_exec_ext"
14262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14263 break 2
14264 fi
14265 done
14266 done
14267 IFS=$as_save_IFS
14268
14269 ;;
14270 esac
14271 fi
14272 VALGRIND=$ac_cv_path_VALGRIND
14273 if test -n "$VALGRIND"; then
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
14275 printf "%s\n" "$VALGRIND" >&6; }
14276 else
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14278 printf "%s\n" "no" >&6; }
14279 fi
14280
14281
14282 if test "x$VALGRIND" != "x"
14283 then
14284 VALGRIND="$VALGRIND -q --error-exitcode=99 --leak-check=full --show-reachable=yes"
14285 fi
14286 fi
14287
14288 # Extract the first word of "oggz", so it can be a program name with args.
14289 set dummy oggz; ac_word=$2
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 printf %s "checking for $ac_word... " >&6; }
14292 if test ${ac_cv_path_OGGZ+y}
14293 then :
14294 printf %s "(cached) " >&6
14295 else $as_nop
14296 case $OGGZ in
14297 [\\/]* | ?:[\\/]*)
14298 ac_cv_path_OGGZ="$OGGZ" # Let the user override the test with a path.
14299 ;;
14300 *)
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302 for as_dir in $PATH
14303 do
14304 IFS=$as_save_IFS
14305 case $as_dir in #(((
14306 '') as_dir=./ ;;
14307 */) ;;
14308 *) as_dir=$as_dir/ ;;
14309 esac
14310 for ac_exec_ext in '' $ac_executable_extensions; do
14311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14312 ac_cv_path_OGGZ="$as_dir$ac_word$ac_exec_ext"
14313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14314 break 2
14315 fi
14316 done
14317 done
14318 IFS=$as_save_IFS
14319
14320 ;;
14321 esac
14322 fi
14323 OGGZ=$ac_cv_path_OGGZ
14324 if test -n "$OGGZ"; then
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGGZ" >&5
14326 printf "%s\n" "$OGGZ" >&6; }
14327 else
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 printf "%s\n" "no" >&6; }
14330 fi
14331
14332
14333 if test "x$OGGZ" != "x"
14334 then
14335 OGG_MERGE="oggz merge"
14336 OGG_DIFF="oggz diff"
14337 else
14338 # Extract the first word of "oggz-merge", so it can be a program name with args.
14339 set dummy oggz-merge; ac_word=$2
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 printf %s "checking for $ac_word... " >&6; }
14342 if test ${ac_cv_path_OGG_MERGE+y}
14343 then :
14344 printf %s "(cached) " >&6
14345 else $as_nop
14346 case $OGG_MERGE in
14347 [\\/]* | ?:[\\/]*)
14348 ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
14349 ;;
14350 *)
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354 IFS=$as_save_IFS
14355 case $as_dir in #(((
14356 '') as_dir=./ ;;
14357 */) ;;
14358 *) as_dir=$as_dir/ ;;
14359 esac
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14362 ac_cv_path_OGG_MERGE="$as_dir$ac_word$ac_exec_ext"
14363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14364 break 2
14365 fi
14366 done
14367 done
14368 IFS=$as_save_IFS
14369
14370 ;;
14371 esac
14372 fi
14373 OGG_MERGE=$ac_cv_path_OGG_MERGE
14374 if test -n "$OGG_MERGE"; then
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
14376 printf "%s\n" "$OGG_MERGE" >&6; }
14377 else
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 printf "%s\n" "no" >&6; }
14380 fi
14381
14382
14383 if test "x$OGG_MERGE" = "x"
14384 then
14385 # Extract the first word of "oggzmerge", so it can be a program name with args.
14386 set dummy oggzmerge; ac_word=$2
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14388 printf %s "checking for $ac_word... " >&6; }
14389 if test ${ac_cv_path_OGG_MERGE+y}
14390 then :
14391 printf %s "(cached) " >&6
14392 else $as_nop
14393 case $OGG_MERGE in
14394 [\\/]* | ?:[\\/]*)
14395 ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
14396 ;;
14397 *)
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14400 do
14401 IFS=$as_save_IFS
14402 case $as_dir in #(((
14403 '') as_dir=./ ;;
14404 */) ;;
14405 *) as_dir=$as_dir/ ;;
14406 esac
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14409 ac_cv_path_OGG_MERGE="$as_dir$ac_word$ac_exec_ext"
14410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413 done
14414 done
14415 IFS=$as_save_IFS
14416
14417 ;;
14418 esac
14419 fi
14420 OGG_MERGE=$ac_cv_path_OGG_MERGE
14421 if test -n "$OGG_MERGE"; then
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
14423 printf "%s\n" "$OGG_MERGE" >&6; }
14424 else
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 printf "%s\n" "no" >&6; }
14427 fi
14428
14429
14430 if test "x$OGG_MERGE" = "x"
14431 then
14432 # Extract the first word of "oggmerge", so it can be a program name with args.
14433 set dummy oggmerge; ac_word=$2
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14435 printf %s "checking for $ac_word... " >&6; }
14436 if test ${ac_cv_path_OGG_MERGE+y}
14437 then :
14438 printf %s "(cached) " >&6
14439 else $as_nop
14440 case $OGG_MERGE in
14441 [\\/]* | ?:[\\/]*)
14442 ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
14443 ;;
14444 *)
14445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14447 do
14448 IFS=$as_save_IFS
14449 case $as_dir in #(((
14450 '') as_dir=./ ;;
14451 */) ;;
14452 *) as_dir=$as_dir/ ;;
14453 esac
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14456 ac_cv_path_OGG_MERGE="$as_dir$ac_word$ac_exec_ext"
14457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14458 break 2
14459 fi
14460 done
14461 done
14462 IFS=$as_save_IFS
14463
14464 ;;
14465 esac
14466 fi
14467 OGG_MERGE=$ac_cv_path_OGG_MERGE
14468 if test -n "$OGG_MERGE"; then
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
14470 printf "%s\n" "$OGG_MERGE" >&6; }
14471 else
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 printf "%s\n" "no" >&6; }
14474 fi
14475
14476
14477 fi
14478 fi
14479 # Extract the first word of "oggz-diff", so it can be a program name with args.
14480 set dummy oggz-diff; ac_word=$2
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14482 printf %s "checking for $ac_word... " >&6; }
14483 if test ${ac_cv_path_OGG_DIFF+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else $as_nop
14487 case $OGG_DIFF in
14488 [\\/]* | ?:[\\/]*)
14489 ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
14490 ;;
14491 *)
14492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493 for as_dir in $PATH
14494 do
14495 IFS=$as_save_IFS
14496 case $as_dir in #(((
14497 '') as_dir=./ ;;
14498 */) ;;
14499 *) as_dir=$as_dir/ ;;
14500 esac
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14503 ac_cv_path_OGG_DIFF="$as_dir$ac_word$ac_exec_ext"
14504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14505 break 2
14506 fi
14507 done
14508 done
14509 IFS=$as_save_IFS
14510
14511 ;;
14512 esac
14513 fi
14514 OGG_DIFF=$ac_cv_path_OGG_DIFF
14515 if test -n "$OGG_DIFF"; then
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
14517 printf "%s\n" "$OGG_DIFF" >&6; }
14518 else
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 printf "%s\n" "no" >&6; }
14521 fi
14522
14523
14524 if test "x$OGG_DIFF" = "x"
14525 then
14526 # Extract the first word of "oggzdiff", so it can be a program name with args.
14527 set dummy oggzdiff; ac_word=$2
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529 printf %s "checking for $ac_word... " >&6; }
14530 if test ${ac_cv_path_OGG_DIFF+y}
14531 then :
14532 printf %s "(cached) " >&6
14533 else $as_nop
14534 case $OGG_DIFF in
14535 [\\/]* | ?:[\\/]*)
14536 ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
14537 ;;
14538 *)
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14541 do
14542 IFS=$as_save_IFS
14543 case $as_dir in #(((
14544 '') as_dir=./ ;;
14545 */) ;;
14546 *) as_dir=$as_dir/ ;;
14547 esac
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14550 ac_cv_path_OGG_DIFF="$as_dir$ac_word$ac_exec_ext"
14551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14552 break 2
14553 fi
14554 done
14555 done
14556 IFS=$as_save_IFS
14557
14558 ;;
14559 esac
14560 fi
14561 OGG_DIFF=$ac_cv_path_OGG_DIFF
14562 if test -n "$OGG_DIFF"; then
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
14564 printf "%s\n" "$OGG_DIFF" >&6; }
14565 else
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 printf "%s\n" "no" >&6; }
14568 fi
14569
14570
14571 if test "x$OGG_DIFF" = "x"
14572 then
14573 # Extract the first word of "cmp", so it can be a program name with args.
14574 set dummy cmp; ac_word=$2
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576 printf %s "checking for $ac_word... " >&6; }
14577 if test ${ac_cv_path_OGG_DIFF+y}
14578 then :
14579 printf %s "(cached) " >&6
14580 else $as_nop
14581 case $OGG_DIFF in
14582 [\\/]* | ?:[\\/]*)
14583 ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
14584 ;;
14585 *)
14586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14587 for as_dir in $PATH
14588 do
14589 IFS=$as_save_IFS
14590 case $as_dir in #(((
14591 '') as_dir=./ ;;
14592 */) ;;
14593 *) as_dir=$as_dir/ ;;
14594 esac
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14597 ac_cv_path_OGG_DIFF="$as_dir$ac_word$ac_exec_ext"
14598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601 done
14602 done
14603 IFS=$as_save_IFS
14604
14605 ;;
14606 esac
14607 fi
14608 OGG_DIFF=$ac_cv_path_OGG_DIFF
14609 if test -n "$OGG_DIFF"; then
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
14611 printf "%s\n" "$OGG_DIFF" >&6; }
14612 else
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 printf "%s\n" "no" >&6; }
14615 fi
14616
14617
14618 fi
14619 fi
14620 fi
14621 if test "x${OGGZ}" != "x"; then
14622 HAVE_OGGZ_TOOLS_TRUE=
14623 HAVE_OGGZ_TOOLS_FALSE='#'
14624 else
14625 HAVE_OGGZ_TOOLS_TRUE='#'
14626 HAVE_OGGZ_TOOLS_FALSE=
14627 fi
14628
14629 if test "x${OGG_MERGE}" != "x"; then
14630 HAVE_OGG_MERGE_TRUE=
14631 HAVE_OGG_MERGE_FALSE='#'
14632 else
14633 HAVE_OGG_MERGE_TRUE='#'
14634 HAVE_OGG_MERGE_FALSE=
14635 fi
14636
14637
14638
14639
14640
14641
14642
14643
14644 if test -n "$PYTHON"; then
14645 # If the user set $PYTHON, use it and don't search something else.
14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
14647 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
14648 prog="import sys
14649 # split strings by '.' and convert to numeric. Append some zeros
14650 # because we need at least 4 digits for the hex conversion.
14651 # map returns an iterator in Python 3.0 and a list in 2.x
14652 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
14653 minverhex = 0
14654 # xrange is not present in Python 3.0 and range returns an iterator
14655 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14656 sys.exit(sys.hexversion < minverhex)"
14657 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14658 ($PYTHON -c "$prog") >&5 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }
14662 then :
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14664 printf "%s\n" "yes" >&6; }
14665 else $as_nop
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 printf "%s\n" "no" >&6; }
14668 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14669 fi
14670 am_display_PYTHON=$PYTHON
14671 else
14672 # Otherwise, try each interpreter until we find one that satisfies
14673 # VERSION.
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
14675 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
14676 if test ${am_cv_pathless_PYTHON+y}
14677 then :
14678 printf %s "(cached) " >&6
14679 else $as_nop
14680
14681 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14682 test "$am_cv_pathless_PYTHON" = none && break
14683 prog="import sys
14684 # split strings by '.' and convert to numeric. Append some zeros
14685 # because we need at least 4 digits for the hex conversion.
14686 # map returns an iterator in Python 3.0 and a list in 2.x
14687 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
14688 minverhex = 0
14689 # xrange is not present in Python 3.0 and range returns an iterator
14690 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14691 sys.exit(sys.hexversion < minverhex)"
14692 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14693 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }
14697 then :
14698 break
14699 fi
14700 done
14701 fi
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14703 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
14704 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14705 if test "$am_cv_pathless_PYTHON" = none; then
14706 PYTHON=:
14707 else
14708 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14709 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711 printf %s "checking for $ac_word... " >&6; }
14712 if test ${ac_cv_path_PYTHON+y}
14713 then :
14714 printf %s "(cached) " >&6
14715 else $as_nop
14716 case $PYTHON in
14717 [\\/]* | ?:[\\/]*)
14718 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14719 ;;
14720 *)
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724 IFS=$as_save_IFS
14725 case $as_dir in #(((
14726 '') as_dir=./ ;;
14727 */) ;;
14728 *) as_dir=$as_dir/ ;;
14729 esac
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14732 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
14733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14734 break 2
14735 fi
14736 done
14737 done
14738 IFS=$as_save_IFS
14739
14740 ;;
14741 esac
14742 fi
14743 PYTHON=$ac_cv_path_PYTHON
14744 if test -n "$PYTHON"; then
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14746 printf "%s\n" "$PYTHON" >&6; }
14747 else
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 printf "%s\n" "no" >&6; }
14750 fi
14751
14752
14753 fi
14754 am_display_PYTHON=$am_cv_pathless_PYTHON
14755 fi
14756
14757
14758 if test "$PYTHON" = :; then
14759 HAVE_PYTHON=no
14760 else
14761
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14763 printf %s "checking for $am_display_PYTHON version... " >&6; }
14764 if test ${am_cv_python_version+y}
14765 then :
14766 printf %s "(cached) " >&6
14767 else $as_nop
14768 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
14769 fi
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14771 printf "%s\n" "$am_cv_python_version" >&6; }
14772 PYTHON_VERSION=$am_cv_python_version
14773
14774
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14776 printf %s "checking for $am_display_PYTHON platform... " >&6; }
14777 if test ${am_cv_python_platform+y}
14778 then :
14779 printf %s "(cached) " >&6
14780 else $as_nop
14781 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14782 fi
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14784 printf "%s\n" "$am_cv_python_platform" >&6; }
14785 PYTHON_PLATFORM=$am_cv_python_platform
14786
14787
14788 if test "x$prefix" = xNONE; then
14789 am__usable_prefix=$ac_default_prefix
14790 else
14791 am__usable_prefix=$prefix
14792 fi
14793
14794 # Allow user to request using sys.* values from Python,
14795 # instead of the GNU $prefix values.
14796
14797 # Check whether --with-python-sys-prefix was given.
14798 if test ${with_python_sys_prefix+y}
14799 then :
14800 withval=$with_python_sys_prefix; am_use_python_sys=:
14801 else $as_nop
14802 am_use_python_sys=false
14803 fi
14804
14805
14806 # Allow user to override whatever the default Python prefix is.
14807
14808 # Check whether --with-python_prefix was given.
14809 if test ${with_python_prefix+y}
14810 then :
14811 withval=$with_python_prefix; am_python_prefix_subst=$withval
14812 am_cv_python_prefix=$withval
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
14814 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14816 printf "%s\n" "$am_cv_python_prefix" >&6; }
14817 else $as_nop
14818
14819 if $am_use_python_sys; then
14820 # using python sys.prefix value, not GNU
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
14822 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
14823 if test ${am_cv_python_prefix+y}
14824 then :
14825 printf %s "(cached) " >&6
14826 else $as_nop
14827 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
14828 fi
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14830 printf "%s\n" "$am_cv_python_prefix" >&6; }
14831
14832 case $am_cv_python_prefix in
14833 $am__usable_prefix*)
14834 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
14835 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
14836 ;;
14837 *)
14838 am_python_prefix_subst=$am_cv_python_prefix
14839 ;;
14840 esac
14841 else # using GNU prefix value, not python sys.prefix
14842 am_python_prefix_subst='${prefix}'
14843 am_python_prefix=$am_python_prefix_subst
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
14845 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
14847 printf "%s\n" "$am_python_prefix" >&6; }
14848 fi
14849 fi
14850
14851 # Substituting python_prefix_subst value.
14852 PYTHON_PREFIX=$am_python_prefix_subst
14853
14854
14855 # emacs-page Now do it all over again for Python exec_prefix, but with yet
14856 # another conditional: fall back to regular prefix if that was specified.
14857
14858 # Check whether --with-python_exec_prefix was given.
14859 if test ${with_python_exec_prefix+y}
14860 then :
14861 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
14862 am_cv_python_exec_prefix=$withval
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
14864 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14866 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14867 else $as_nop
14868
14869 # no explicit --with-python_exec_prefix, but if
14870 # --with-python_prefix was given, use its value for python_exec_prefix too.
14871 if test -n "$with_python_prefix"
14872 then :
14873 am_python_exec_prefix_subst=$with_python_prefix
14874 am_cv_python_exec_prefix=$with_python_prefix
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
14876 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14878 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14879 else $as_nop
14880
14881 # Set am__usable_exec_prefix whether using GNU or Python values,
14882 # since we use that variable for pyexecdir.
14883 if test "x$exec_prefix" = xNONE; then
14884 am__usable_exec_prefix=$am__usable_prefix
14885 else
14886 am__usable_exec_prefix=$exec_prefix
14887 fi
14888 #
14889 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
14891 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
14892 if test ${am_cv_python_exec_prefix+y}
14893 then :
14894 printf %s "(cached) " >&6
14895 else $as_nop
14896 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
14897 fi
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14899 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14900 case $am_cv_python_exec_prefix in
14901 $am__usable_exec_prefix*)
14902 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
14903 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
14904 ;;
14905 *)
14906 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
14907 ;;
14908 esac
14909 else # using GNU $exec_prefix, not python sys.exec_prefix
14910 am_python_exec_prefix_subst='${exec_prefix}'
14911 am_python_exec_prefix=$am_python_exec_prefix_subst
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
14913 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
14915 printf "%s\n" "$am_python_exec_prefix" >&6; }
14916 fi
14917 fi
14918 fi
14919
14920 # Substituting python_exec_prefix_subst.
14921 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
14922
14923
14924 # Factor out some code duplication into this shell variable.
14925 am_python_setup_sysconfig="\
14926 import sys
14927 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14928 # with python 3.x. See automake bug#10227.
14929 try:
14930 import sysconfig
14931 except ImportError:
14932 can_use_sysconfig = 0
14933 else:
14934 can_use_sysconfig = 1
14935 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14936 # <https://github.com/pypa/virtualenv/issues/118>
14937 try:
14938 from platform import python_implementation
14939 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14940 can_use_sysconfig = 0
14941 except ImportError:
14942 pass"
14943
14944
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
14946 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
14947 if test ${am_cv_python_pythondir+y}
14948 then :
14949 printf %s "(cached) " >&6
14950 else $as_nop
14951 if test "x$am_cv_python_prefix" = x; then
14952 am_py_prefix=$am__usable_prefix
14953 else
14954 am_py_prefix=$am_cv_python_prefix
14955 fi
14956 am_cv_python_pythondir=`$PYTHON -c "
14957 $am_python_setup_sysconfig
14958 if can_use_sysconfig:
14959 if hasattr(sysconfig, 'get_default_scheme'):
14960 scheme = sysconfig.get_default_scheme()
14961 else:
14962 scheme = sysconfig._get_default_scheme()
14963 if scheme == 'posix_local':
14964 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
14965 scheme = 'posix_prefix'
14966 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
14967 else:
14968 from distutils import sysconfig
14969 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14970 sys.stdout.write(sitedir)"`
14971 #
14972 case $am_cv_python_pythondir in
14973 $am_py_prefix*)
14974 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14975 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
14976 ;;
14977 *)
14978 case $am_py_prefix in
14979 /usr|/System*) ;;
14980 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14981 ;;
14982 esac
14983 ;;
14984 esac
14985
14986 fi
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14988 printf "%s\n" "$am_cv_python_pythondir" >&6; }
14989 pythondir=$am_cv_python_pythondir
14990
14991
14992 pkgpythondir=\${pythondir}/$PACKAGE
14993
14994
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
14996 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
14997 if test ${am_cv_python_pyexecdir+y}
14998 then :
14999 printf %s "(cached) " >&6
15000 else $as_nop
15001 if test "x$am_cv_python_exec_prefix" = x; then
15002 am_py_exec_prefix=$am__usable_exec_prefix
15003 else
15004 am_py_exec_prefix=$am_cv_python_exec_prefix
15005 fi
15006 am_cv_python_pyexecdir=`$PYTHON -c "
15007 $am_python_setup_sysconfig
15008 if can_use_sysconfig:
15009 if hasattr(sysconfig, 'get_default_scheme'):
15010 scheme = sysconfig.get_default_scheme()
15011 else:
15012 scheme = sysconfig._get_default_scheme()
15013 if scheme == 'posix_local':
15014 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
15015 scheme = 'posix_prefix'
15016 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
15017 else:
15018 from distutils import sysconfig
15019 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
15020 sys.stdout.write(sitedir)"`
15021 #
15022 case $am_cv_python_pyexecdir in
15023 $am_py_exec_prefix*)
15024 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15025 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
15026 ;;
15027 *)
15028 case $am_py_exec_prefix in
15029 /usr|/System*) ;;
15030 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
15031 ;;
15032 esac
15033 ;;
15034 esac
15035
15036 fi
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15038 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
15039 pyexecdir=$am_cv_python_pyexecdir
15040
15041
15042 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15043
15044
15045 HAVE_PYTHON=yes
15046 fi
15047
15048 if test "${HAVE_PYTHON}" = "yes"; then
15049 HAVE_PYTHON_TRUE=
15050 HAVE_PYTHON_FALSE='#'
15051 else
15052 HAVE_PYTHON_TRUE='#'
15053 HAVE_PYTHON_FALSE=
15054 fi
15055
15056
15057 if test "x$HAVE_PYTHON" = "xyes"
15058 then
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wxpython" >&5
15060 printf %s "checking for wxpython... " >&6; }
15061 "$PYTHON" -c "import wx" >/dev/null 2>&1
15062 if test "$?" = "0"
15063 then
15064 HAVE_WXPYTHON="yes"
15065 else
15066 HAVE_WXPYTHON="no"
15067 fi
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${HAVE_WXPYTHON}" >&5
15069 printf "%s\n" "${HAVE_WXPYTHON}" >&6; }
15070 fi
15071 if test "${HAVE_WXPYTHON}" = "yes"; then
15072 HAVE_WXPYTHON_TRUE=
15073 HAVE_WXPYTHON_FALSE='#'
15074 else
15075 HAVE_WXPYTHON_TRUE='#'
15076 HAVE_WXPYTHON_FALSE=
15077 fi
15078
15079
15080 for ac_prog in md5sum md5 sha1sum
15081 do
15082 # Extract the first word of "$ac_prog", so it can be a program name with args.
15083 set dummy $ac_prog; ac_word=$2
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15085 printf %s "checking for $ac_word... " >&6; }
15086 if test ${ac_cv_prog_GENHASH+y}
15087 then :
15088 printf %s "(cached) " >&6
15089 else $as_nop
15090 if test -n "$GENHASH"; then
15091 ac_cv_prog_GENHASH="$GENHASH" # Let the user override the test.
15092 else
15093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094 for as_dir in $PATH
15095 do
15096 IFS=$as_save_IFS
15097 case $as_dir in #(((
15098 '') as_dir=./ ;;
15099 */) ;;
15100 *) as_dir=$as_dir/ ;;
15101 esac
15102 for ac_exec_ext in '' $ac_executable_extensions; do
15103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15104 ac_cv_prog_GENHASH="$ac_prog"
15105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15106 break 2
15107 fi
15108 done
15109 done
15110 IFS=$as_save_IFS
15111
15112 fi
15113 fi
15114 GENHASH=$ac_cv_prog_GENHASH
15115 if test -n "$GENHASH"; then
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHASH" >&5
15117 printf "%s\n" "$GENHASH" >&6; }
15118 else
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 printf "%s\n" "no" >&6; }
15121 fi
15122
15123
15124 test -n "$GENHASH" && break
15125 done
15126
15127
15128 VERSION_MAJOR=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
15129 VERSION_MINOR=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
15130 VERSION_PATCH=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
15131
15132 if test "x$HAVE_PKG_CONFIG" = "xyes"
15133 then
15134
15135
15136
15137
15138
15139
15140
15141 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15142 if test -n "$ac_tool_prefix"; then
15143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15144 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15146 printf %s "checking for $ac_word... " >&6; }
15147 if test ${ac_cv_path_PKG_CONFIG+y}
15148 then :
15149 printf %s "(cached) " >&6
15150 else $as_nop
15151 case $PKG_CONFIG in
15152 [\\/]* | ?:[\\/]*)
15153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15154 ;;
15155 *)
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $PATH
15158 do
15159 IFS=$as_save_IFS
15160 case $as_dir in #(((
15161 '') as_dir=./ ;;
15162 */) ;;
15163 *) as_dir=$as_dir/ ;;
15164 esac
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15167 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15169 break 2
15170 fi
15171 done
15172 done
15173 IFS=$as_save_IFS
15174
15175 ;;
15176 esac
15177 fi
15178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15179 if test -n "$PKG_CONFIG"; then
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15181 printf "%s\n" "$PKG_CONFIG" >&6; }
15182 else
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 printf "%s\n" "no" >&6; }
15185 fi
15186
15187
15188 fi
15189 if test -z "$ac_cv_path_PKG_CONFIG"; then
15190 ac_pt_PKG_CONFIG=$PKG_CONFIG
15191 # Extract the first word of "pkg-config", so it can be a program name with args.
15192 set dummy pkg-config; ac_word=$2
15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 printf %s "checking for $ac_word... " >&6; }
15195 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15196 then :
15197 printf %s "(cached) " >&6
15198 else $as_nop
15199 case $ac_pt_PKG_CONFIG in
15200 [\\/]* | ?:[\\/]*)
15201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15202 ;;
15203 *)
15204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15205 for as_dir in $PATH
15206 do
15207 IFS=$as_save_IFS
15208 case $as_dir in #(((
15209 '') as_dir=./ ;;
15210 */) ;;
15211 *) as_dir=$as_dir/ ;;
15212 esac
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15215 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15217 break 2
15218 fi
15219 done
15220 done
15221 IFS=$as_save_IFS
15222
15223 ;;
15224 esac
15225 fi
15226 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15227 if test -n "$ac_pt_PKG_CONFIG"; then
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15229 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15230 else
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 printf "%s\n" "no" >&6; }
15233 fi
15234
15235 if test "x$ac_pt_PKG_CONFIG" = x; then
15236 PKG_CONFIG=""
15237 else
15238 case $cross_compiling:$ac_tool_warned in
15239 yes:)
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15242 ac_tool_warned=yes ;;
15243 esac
15244 PKG_CONFIG=$ac_pt_PKG_CONFIG
15245 fi
15246 else
15247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15248 fi
15249
15250 fi
15251 if test -n "$PKG_CONFIG"; then
15252 _pkg_min_version=0.9.0
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15254 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15257 printf "%s\n" "yes" >&6; }
15258 else
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15260 printf "%s\n" "no" >&6; }
15261 PKG_CONFIG=""
15262 fi
15263 fi
15264
15265 pkg_failed=no
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.0" >&5
15267 printf %s "checking for ogg >= 1.0... " >&6; }
15268
15269 if test -n "$OGG_CFLAGS"; then
15270 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
15271 elif test -n "$PKG_CONFIG"; then
15272 if test -n "$PKG_CONFIG" && \
15273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
15274 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
15275 ac_status=$?
15276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277 test $ac_status = 0; }; then
15278 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
15279 test "x$?" != "x0" && pkg_failed=yes
15280 else
15281 pkg_failed=yes
15282 fi
15283 else
15284 pkg_failed=untried
15285 fi
15286 if test -n "$OGG_LIBS"; then
15287 pkg_cv_OGG_LIBS="$OGG_LIBS"
15288 elif test -n "$PKG_CONFIG"; then
15289 if test -n "$PKG_CONFIG" && \
15290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
15291 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
15292 ac_status=$?
15293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; }; then
15295 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
15296 test "x$?" != "x0" && pkg_failed=yes
15297 else
15298 pkg_failed=yes
15299 fi
15300 else
15301 pkg_failed=untried
15302 fi
15303
15304
15305
15306 if test $pkg_failed = yes; then
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 printf "%s\n" "no" >&6; }
15309
15310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15311 _pkg_short_errors_supported=yes
15312 else
15313 _pkg_short_errors_supported=no
15314 fi
15315 if test $_pkg_short_errors_supported = yes; then
15316 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.0" 2>&1`
15317 else
15318 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.0" 2>&1`
15319 fi
15320 # Put the nasty error message in config.log where it belongs
15321 echo "$OGG_PKG_ERRORS" >&5
15322
15323 HAVE_OGG=no
15324 elif test $pkg_failed = untried; then
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 printf "%s\n" "no" >&6; }
15327 HAVE_OGG=no
15328 else
15329 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
15330 OGG_LIBS=$pkg_cv_OGG_LIBS
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15332 printf "%s\n" "yes" >&6; }
15333 HAVE_OGG=yes
15334 fi
15335 fi
15336 if test "x$HAVE_OGG" = "xno"
15337 then
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg_sync_init in -logg" >&5
15339 printf %s "checking for ogg_sync_init in -logg... " >&6; }
15340 if test ${ac_cv_lib_ogg_ogg_sync_init+y}
15341 then :
15342 printf %s "(cached) " >&6
15343 else $as_nop
15344 ac_check_lib_save_LIBS=$LIBS
15345 LIBS="-logg $LIBS"
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352 char ogg_sync_init ();
15353 int
15354 main (void)
15355 {
15356 return ogg_sync_init ();
15357 ;
15358 return 0;
15359 }
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"
15362 then :
15363 ac_cv_lib_ogg_ogg_sync_init=yes
15364 else $as_nop
15365 ac_cv_lib_ogg_ogg_sync_init=no
15366 fi
15367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15370 fi
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
15372 printf "%s\n" "$ac_cv_lib_ogg_ogg_sync_init" >&6; }
15373 if test "x$ac_cv_lib_ogg_ogg_sync_init" = xyes
15374 then :
15375
15376 ac_fn_c_check_header_compile "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
15377 if test "x$ac_cv_header_ogg_ogg_h" = xyes
15378 then :
15379 HAVE_OGG=yes
15380 else $as_nop
15381 HAVE_OGG=no
15382 fi
15383
15384
15385 else $as_nop
15386 HAVE_OGG=no
15387
15388 fi
15389
15390 fi
15391 if test "x${HAVE_OGG}" = "xyes"; then
15392 HAVE_OGG_TRUE=
15393 HAVE_OGG_FALSE='#'
15394 else
15395 HAVE_OGG_TRUE='#'
15396 HAVE_OGG_FALSE=
15397 fi
15398
15399
15400 if test "x$HAVE_PKG_CONFIG" = "xyes"
15401 then
15402
15403 pkg_failed=no
15404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
15405 printf %s "checking for libpng... " >&6; }
15406
15407 if test -n "$PNG_CFLAGS"; then
15408 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
15409 elif test -n "$PKG_CONFIG"; then
15410 if test -n "$PKG_CONFIG" && \
15411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15412 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15413 ac_status=$?
15414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15415 test $ac_status = 0; }; then
15416 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
15417 test "x$?" != "x0" && pkg_failed=yes
15418 else
15419 pkg_failed=yes
15420 fi
15421 else
15422 pkg_failed=untried
15423 fi
15424 if test -n "$PNG_LIBS"; then
15425 pkg_cv_PNG_LIBS="$PNG_LIBS"
15426 elif test -n "$PKG_CONFIG"; then
15427 if test -n "$PKG_CONFIG" && \
15428 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15429 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15430 ac_status=$?
15431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15432 test $ac_status = 0; }; then
15433 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
15434 test "x$?" != "x0" && pkg_failed=yes
15435 else
15436 pkg_failed=yes
15437 fi
15438 else
15439 pkg_failed=untried
15440 fi
15441
15442
15443
15444 if test $pkg_failed = yes; then
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15446 printf "%s\n" "no" >&6; }
15447
15448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15449 _pkg_short_errors_supported=yes
15450 else
15451 _pkg_short_errors_supported=no
15452 fi
15453 if test $_pkg_short_errors_supported = yes; then
15454 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
15455 else
15456 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
15457 fi
15458 # Put the nasty error message in config.log where it belongs
15459 echo "$PNG_PKG_ERRORS" >&5
15460
15461 HAVE_PNG=no
15462 elif test $pkg_failed = untried; then
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 printf "%s\n" "no" >&6; }
15465 HAVE_PNG=no
15466 else
15467 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
15468 PNG_LIBS=$pkg_cv_PNG_LIBS
15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15470 printf "%s\n" "yes" >&6; }
15471 HAVE_PNG=yes
15472 fi
15473 fi
15474 if test "x$HAVE_PNG" = "xno"
15475 then
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng" >&5
15477 printf %s "checking for png_read_init in -lpng... " >&6; }
15478 if test ${ac_cv_lib_png_png_read_init+y}
15479 then :
15480 printf %s "(cached) " >&6
15481 else $as_nop
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lpng $LIBS"
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15490 char png_read_init ();
15491 int
15492 main (void)
15493 {
15494 return png_read_init ();
15495 ;
15496 return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_link "$LINENO"
15500 then :
15501 ac_cv_lib_png_png_read_init=yes
15502 else $as_nop
15503 ac_cv_lib_png_png_read_init=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15508 fi
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_init" >&5
15510 printf "%s\n" "$ac_cv_lib_png_png_read_init" >&6; }
15511 if test "x$ac_cv_lib_png_png_read_init" = xyes
15512 then :
15513
15514 ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
15515 if test "x$ac_cv_header_png_h" = xyes
15516 then :
15517 HAVE_PNG=yes
15518 else $as_nop
15519 HAVE_PNG=no
15520 fi
15521
15522
15523 else $as_nop
15524 HAVE_PNG=no
15525
15526 fi
15527
15528 fi
15529 if test "x$HAVE_PNG" = "xyes"
15530 then
15531
15532 printf "%s\n" "#define HAVE_PNG 1" >>confdefs.h
15533
15534 fi
15535 if test "${HAVE_PNG}" = "yes"; then
15536 HAVE_PNG_TRUE=
15537 HAVE_PNG_FALSE='#'
15538 else
15539 HAVE_PNG_TRUE='#'
15540 HAVE_PNG_FALSE=
15541 fi
15542
15543
15544 CWARNFLAGS_LIGHT=""
15545 if test "x$GCC" = "xyes"
15546 then
15547 CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wall -W"
15548 fi
15549
15550 CWARNFLAGS_FULL="$CWARNFLAGS_LIGHT"
15551
15552 # Check whether --enable-gcc-werror was given.
15553 if test ${enable_gcc_werror+y}
15554 then :
15555 enableval=$enable_gcc_werror; ac_enable_gcc_werror=yes
15556 else $as_nop
15557 ac_enable_gcc_werror=no
15558 fi
15559
15560
15561 if test "x${ac_enable_gcc_werror}" = xyes ; then
15562 CFLAGS="-Werror $CFLAGS"
15563 fi
15564
15565 # Check whether --enable-more_warnings was given.
15566 if test ${enable_more_warnings+y}
15567 then :
15568 enableval=$enable_more_warnings;
15569 fi
15570
15571 if test "x$enable_more_warnings" = "xyes"
15572 then
15573 if test "x$GCC" = "xyes"
15574 then
15575 CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wdeclaration-after-statement -Wcast-qual -Wcast-align"
15576 CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Winit-self -Wcast-align -pedantic -Wformat=2 -Wunused"
15577 CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wstrict-aliasing=2 -Wpointer-arith -Wbad-function-cast -Waggregate-return"
15578
15579 CWARNFLAGS_FULL="$CWARNFLAGS_LIGHT"
15580 CWARNFLAGS_FULL="$CWARNFLAGS_FULL -Wshadow -Wsign-compare -Wredundant-decls -Wmissing-prototypes -Wundef -Wmissing-declarations"
15581 fi
15582 fi
15583
15584 #ifeq ($(SPAMMY_WARNINGS),1)
15585 #CWARNFLAGS_FULL="$CWARNFLAGS_FULL -Wconversion"
15586 #CWARNFLAGS_LIGHT="$CWARNFLAGS_FULL"
15587 #endif
15588
15589 # Check whether --enable-debug was given.
15590 if test ${enable_debug+y}
15591 then :
15592 enableval=$enable_debug;
15593 fi
15594
15595 if test "x$enable_debug" = "xyes"
15596 then
15597 CFLAGS_DEBUG="-DDEBUG"
15598 fi
15599
15600 # Check whether --enable-fortify_source was given.
15601 if test ${enable_fortify_source+y}
15602 then :
15603 enableval=$enable_fortify_source;
15604 fi
15605
15606 if test "x$enable_fortify_source" = "xyes"
15607 then
15608 CFLAGS_FORTIFY_SOURCE="-D_FORTIFY_SOURCE=2"
15609 fi
15610
15611 STREAMS="bspline kate empty demo minimal karaoke unicode path bom markup font utf8test z metadata"
15612 STREAMS="$STREAMS style periodic granule justify"
15613 if test "x$HAVE_PNG" = "xyes"
15614 then
15615 STREAMS="$STREAMS png"
15616 fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 ac_config_files="$ac_config_files Makefile tools/Makefile tools/KateDJ/Makefile tools/KateDJ/kdj/constants.py doc/Makefile doc/man/kateenc.1 doc/man/katedec.1 doc/man/katalyzer.1 doc/man/KateDJ.1 include/kate/kate.h tests/Makefile misc/pkgconfig/kate.pc misc/pkgconfig/kate-uninstalled.pc misc/pkgconfig/oggkate.pc misc/pkgconfig/oggkate-uninstalled.pc doc/kate.doxygen"
15638
15639 cat >confcache <<\_ACEOF
15640 # This file is a shell script that caches the results of configure
15641 # tests run on this system so they can be shared between configure
15642 # scripts and configure runs, see configure's option --config-cache.
15643 # It is not useful on other systems. If it contains results you don't
15644 # want to keep, you may remove or edit it.
15645 #
15646 # config.status only pays attention to the cache file if you give it
15647 # the --recheck option to rerun configure.
15648 #
15649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15651 # following values.
15652
15653 _ACEOF
15654
15655 # The following way of writing the cache mishandles newlines in values,
15656 # but we know of no workaround that is simple, portable, and efficient.
15657 # So, we kill variables containing newlines.
15658 # Ultrix sh set writes to stderr and can't be redirected directly,
15659 # and sets the high bit in the cache file unless we assign to the vars.
15660 (
15661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15662 eval ac_val=\$$ac_var
15663 case $ac_val in #(
15664 *${as_nl}*)
15665 case $ac_var in #(
15666 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15667 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15668 esac
15669 case $ac_var in #(
15670 _ | IFS | as_nl) ;; #(
15671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15672 *) { eval $ac_var=; unset $ac_var;} ;;
15673 esac ;;
15674 esac
15675 done
15676
15677 (set) 2>&1 |
15678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15679 *${as_nl}ac_space=\ *)
15680 # `set' does not quote correctly, so add quotes: double-quote
15681 # substitution turns \\\\ into \\, and sed turns \\ into \.
15682 sed -n \
15683 "s/'/'\\\\''/g;
15684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15685 ;; #(
15686 *)
15687 # `set' quotes correctly as required by POSIX, so do not add quotes.
15688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15689 ;;
15690 esac |
15691 sort
15692 ) |
15693 sed '
15694 /^ac_cv_env_/b end
15695 t clear
15696 :clear
15697 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15698 t end
15699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15700 :end' >>confcache
15701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15702 if test -w "$cache_file"; then
15703 if test "x$cache_file" != "x/dev/null"; then
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15705 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15706 if test ! -f "$cache_file" || test -h "$cache_file"; then
15707 cat confcache >"$cache_file"
15708 else
15709 case $cache_file in #(
15710 */* | ?:*)
15711 mv -f confcache "$cache_file"$$ &&
15712 mv -f "$cache_file"$$ "$cache_file" ;; #(
15713 *)
15714 mv -f confcache "$cache_file" ;;
15715 esac
15716 fi
15717 fi
15718 else
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15720 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15721 fi
15722 fi
15723 rm -f confcache
15724
15725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15726 # Let make expand exec_prefix.
15727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15728
15729 DEFS=-DHAVE_CONFIG_H
15730
15731 ac_libobjs=
15732 ac_ltlibobjs=
15733 U=
15734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15735 # 1. Remove the extension, and $U if already installed.
15736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15737 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15739 # will be set to the directory where LIBOBJS objects are built.
15740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15742 done
15743 LIBOBJS=$ac_libobjs
15744
15745 LTLIBOBJS=$ac_ltlibobjs
15746
15747
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15749 printf %s "checking that generated files are newer than configure... " >&6; }
15750 if test -n "$am_sleep_pid"; then
15751 # Hide warnings about reused PIDs.
15752 wait $am_sleep_pid 2>/dev/null
15753 fi
15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15755 printf "%s\n" "done" >&6; }
15756 if test -n "$EXEEXT"; then
15757 am__EXEEXT_TRUE=
15758 am__EXEEXT_FALSE='#'
15759 else
15760 am__EXEEXT_TRUE='#'
15761 am__EXEEXT_FALSE=
15762 fi
15763
15764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15765 as_fn_error $? "conditional \"AMDEP\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 fi
15768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 fi
15772 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
15773 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 fi
15776 if test -z "${HAVE_OGGZ_TOOLS_TRUE}" && test -z "${HAVE_OGGZ_TOOLS_FALSE}"; then
15777 as_fn_error $? "conditional \"HAVE_OGGZ_TOOLS\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 fi
15780 if test -z "${HAVE_OGG_MERGE_TRUE}" && test -z "${HAVE_OGG_MERGE_FALSE}"; then
15781 as_fn_error $? "conditional \"HAVE_OGG_MERGE\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15783 fi
15784 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15785 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15787 fi
15788 if test -z "${HAVE_WXPYTHON_TRUE}" && test -z "${HAVE_WXPYTHON_FALSE}"; then
15789 as_fn_error $? "conditional \"HAVE_WXPYTHON\" was never defined.
15790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15791 fi
15792 if test -z "${HAVE_OGG_TRUE}" && test -z "${HAVE_OGG_FALSE}"; then
15793 as_fn_error $? "conditional \"HAVE_OGG\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15795 fi
15796 if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then
15797 as_fn_error $? "conditional \"HAVE_PNG\" was never defined.
15798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799 fi
15800
15801 : "${CONFIG_STATUS=./config.status}"
15802 ac_write_fail=0
15803 ac_clean_files_save=$ac_clean_files
15804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15806 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15807 as_write_fail=0
15808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15809 #! $SHELL
15810 # Generated by $as_me.
15811 # Run this file to recreate the current configuration.
15812 # Compiler output produced by configure, useful for debugging
15813 # configure, is in config.log if it exists.
15814
15815 debug=false
15816 ac_cs_recheck=false
15817 ac_cs_silent=false
15818
15819 SHELL=\${CONFIG_SHELL-$SHELL}
15820 export SHELL
15821 _ASEOF
15822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15823 ## -------------------- ##
15824 ## M4sh Initialization. ##
15825 ## -------------------- ##
15826
15827 # Be more Bourne compatible
15828 DUALCASE=1; export DUALCASE # for MKS sh
15829 as_nop=:
15830 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15831 then :
15832 emulate sh
15833 NULLCMD=:
15834 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15835 # is contrary to our usage. Disable this feature.
15836 alias -g '${1+"$@"}'='"$@"'
15837 setopt NO_GLOB_SUBST
15838 else $as_nop
15839 case `(set -o) 2>/dev/null` in #(
15840 *posix*) :
15841 set -o posix ;; #(
15842 *) :
15843 ;;
15844 esac
15845 fi
15846
15847
15848
15849 # Reset variables that may have inherited troublesome values from
15850 # the environment.
15851
15852 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15853 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15854 # side effect of setting IFS to empty, thus disabling word splitting.)
15855 # Quoting is to prevent editors from complaining about space-tab.
15856 as_nl='
15857 '
15858 export as_nl
15859 IFS=" "" $as_nl"
15860
15861 PS1='$ '
15862 PS2='> '
15863 PS4='+ '
15864
15865 # Ensure predictable behavior from utilities with locale-dependent output.
15866 LC_ALL=C
15867 export LC_ALL
15868 LANGUAGE=C
15869 export LANGUAGE
15870
15871 # We cannot yet rely on "unset" to work, but we need these variables
15872 # to be unset--not just set to an empty or harmless value--now, to
15873 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15874 # also avoids known problems related to "unset" and subshell syntax
15875 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15876 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15877 do eval test \${$as_var+y} \
15878 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15879 done
15880
15881 # Ensure that fds 0, 1, and 2 are open.
15882 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15883 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15884 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15885
15886 # The user is always right.
15887 if ${PATH_SEPARATOR+false} :; then
15888 PATH_SEPARATOR=:
15889 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15890 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15891 PATH_SEPARATOR=';'
15892 }
15893 fi
15894
15895
15896 # Find who we are. Look in the path if we contain no directory separator.
15897 as_myself=
15898 case $0 in #((
15899 *[\\/]* ) as_myself=$0 ;;
15900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15901 for as_dir in $PATH
15902 do
15903 IFS=$as_save_IFS
15904 case $as_dir in #(((
15905 '') as_dir=./ ;;
15906 */) ;;
15907 *) as_dir=$as_dir/ ;;
15908 esac
15909 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15910 done
15911 IFS=$as_save_IFS
15912
15913 ;;
15914 esac
15915 # We did not find ourselves, most probably we were run as `sh COMMAND'
15916 # in which case we are not to be found in the path.
15917 if test "x$as_myself" = x; then
15918 as_myself=$0
15919 fi
15920 if test ! -f "$as_myself"; then
15921 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15922 exit 1
15923 fi
15924
15925
15926
15927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15928 # ----------------------------------------
15929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15931 # script with STATUS, using 1 if that was 0.
15932 as_fn_error ()
15933 {
15934 as_status=$1; test $as_status -eq 0 && as_status=1
15935 if test "$4"; then
15936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15938 fi
15939 printf "%s\n" "$as_me: error: $2" >&2
15940 as_fn_exit $as_status
15941 } # as_fn_error
15942
15943
15944
15945 # as_fn_set_status STATUS
15946 # -----------------------
15947 # Set $? to STATUS, without forking.
15948 as_fn_set_status ()
15949 {
15950 return $1
15951 } # as_fn_set_status
15952
15953 # as_fn_exit STATUS
15954 # -----------------
15955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15956 as_fn_exit ()
15957 {
15958 set +e
15959 as_fn_set_status $1
15960 exit $1
15961 } # as_fn_exit
15962
15963 # as_fn_unset VAR
15964 # ---------------
15965 # Portably unset VAR.
15966 as_fn_unset ()
15967 {
15968 { eval $1=; unset $1;}
15969 }
15970 as_unset=as_fn_unset
15971
15972 # as_fn_append VAR VALUE
15973 # ----------------------
15974 # Append the text in VALUE to the end of the definition contained in VAR. Take
15975 # advantage of any shell optimizations that allow amortized linear growth over
15976 # repeated appends, instead of the typical quadratic growth present in naive
15977 # implementations.
15978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15979 then :
15980 eval 'as_fn_append ()
15981 {
15982 eval $1+=\$2
15983 }'
15984 else $as_nop
15985 as_fn_append ()
15986 {
15987 eval $1=\$$1\$2
15988 }
15989 fi # as_fn_append
15990
15991 # as_fn_arith ARG...
15992 # ------------------
15993 # Perform arithmetic evaluation on the ARGs, and store the result in the
15994 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15995 # must be portable across $(()) and expr.
15996 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15997 then :
15998 eval 'as_fn_arith ()
15999 {
16000 as_val=$(( $* ))
16001 }'
16002 else $as_nop
16003 as_fn_arith ()
16004 {
16005 as_val=`expr "$@" || test $? -eq 1`
16006 }
16007 fi # as_fn_arith
16008
16009
16010 if expr a : '\(a\)' >/dev/null 2>&1 &&
16011 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16012 as_expr=expr
16013 else
16014 as_expr=false
16015 fi
16016
16017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16018 as_basename=basename
16019 else
16020 as_basename=false
16021 fi
16022
16023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16024 as_dirname=dirname
16025 else
16026 as_dirname=false
16027 fi
16028
16029 as_me=`$as_basename -- "$0" ||
16030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16031 X"$0" : 'X\(//\)$' \| \
16032 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16033 printf "%s\n" X/"$0" |
16034 sed '/^.*\/\([^/][^/]*\)\/*$/{
16035 s//\1/
16036 q
16037 }
16038 /^X\/\(\/\/\)$/{
16039 s//\1/
16040 q
16041 }
16042 /^X\/\(\/\).*/{
16043 s//\1/
16044 q
16045 }
16046 s/.*/./; q'`
16047
16048 # Avoid depending upon Character Ranges.
16049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16052 as_cr_digits='0123456789'
16053 as_cr_alnum=$as_cr_Letters$as_cr_digits
16054
16055
16056 # Determine whether it's possible to make 'echo' print without a newline.
16057 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16058 # for compatibility with existing Makefiles.
16059 ECHO_C= ECHO_N= ECHO_T=
16060 case `echo -n x` in #(((((
16061 -n*)
16062 case `echo 'xy\c'` in
16063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16064 xy) ECHO_C='\c';;
16065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16066 ECHO_T=' ';;
16067 esac;;
16068 *)
16069 ECHO_N='-n';;
16070 esac
16071
16072 # For backward compatibility with old third-party macros, we provide
16073 # the shell variables $as_echo and $as_echo_n. New code should use
16074 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16075 as_echo='printf %s\n'
16076 as_echo_n='printf %s'
16077
16078 rm -f conf$$ conf$$.exe conf$$.file
16079 if test -d conf$$.dir; then
16080 rm -f conf$$.dir/conf$$.file
16081 else
16082 rm -f conf$$.dir
16083 mkdir conf$$.dir 2>/dev/null
16084 fi
16085 if (echo >conf$$.file) 2>/dev/null; then
16086 if ln -s conf$$.file conf$$ 2>/dev/null; then
16087 as_ln_s='ln -s'
16088 # ... but there are two gotchas:
16089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16091 # In both cases, we have to default to `cp -pR'.
16092 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16093 as_ln_s='cp -pR'
16094 elif ln conf$$.file conf$$ 2>/dev/null; then
16095 as_ln_s=ln
16096 else
16097 as_ln_s='cp -pR'
16098 fi
16099 else
16100 as_ln_s='cp -pR'
16101 fi
16102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16103 rmdir conf$$.dir 2>/dev/null
16104
16105
16106 # as_fn_mkdir_p
16107 # -------------
16108 # Create "$as_dir" as a directory, including parents if necessary.
16109 as_fn_mkdir_p ()
16110 {
16111
16112 case $as_dir in #(
16113 -*) as_dir=./$as_dir;;
16114 esac
16115 test -d "$as_dir" || eval $as_mkdir_p || {
16116 as_dirs=
16117 while :; do
16118 case $as_dir in #(
16119 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16120 *) as_qdir=$as_dir;;
16121 esac
16122 as_dirs="'$as_qdir' $as_dirs"
16123 as_dir=`$as_dirname -- "$as_dir" ||
16124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16125 X"$as_dir" : 'X\(//\)[^/]' \| \
16126 X"$as_dir" : 'X\(//\)$' \| \
16127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16128 printf "%s\n" X"$as_dir" |
16129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16130 s//\1/
16131 q
16132 }
16133 /^X\(\/\/\)[^/].*/{
16134 s//\1/
16135 q
16136 }
16137 /^X\(\/\/\)$/{
16138 s//\1/
16139 q
16140 }
16141 /^X\(\/\).*/{
16142 s//\1/
16143 q
16144 }
16145 s/.*/./; q'`
16146 test -d "$as_dir" && break
16147 done
16148 test -z "$as_dirs" || eval "mkdir $as_dirs"
16149 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16150
16151
16152 } # as_fn_mkdir_p
16153 if mkdir -p . 2>/dev/null; then
16154 as_mkdir_p='mkdir -p "$as_dir"'
16155 else
16156 test -d ./-p && rmdir ./-p
16157 as_mkdir_p=false
16158 fi
16159
16160
16161 # as_fn_executable_p FILE
16162 # -----------------------
16163 # Test if FILE is an executable regular file.
16164 as_fn_executable_p ()
16165 {
16166 test -f "$1" && test -x "$1"
16167 } # as_fn_executable_p
16168 as_test_x='test -x'
16169 as_executable_p=as_fn_executable_p
16170
16171 # Sed expression to map a string onto a valid CPP name.
16172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16173
16174 # Sed expression to map a string onto a valid variable name.
16175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16176
16177
16178 exec 6>&1
16179 ## ----------------------------------- ##
16180 ## Main body of $CONFIG_STATUS script. ##
16181 ## ----------------------------------- ##
16182 _ASEOF
16183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16184
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16186 # Save the log message, to keep $0 and so on meaningful, and to
16187 # report actual input values of CONFIG_FILES etc. instead of their
16188 # values after options handling.
16189 ac_log="
16190 This file was extended by libkate $as_me 0.4.3, which was
16191 generated by GNU Autoconf 2.71. Invocation command line was
16192
16193 CONFIG_FILES = $CONFIG_FILES
16194 CONFIG_HEADERS = $CONFIG_HEADERS
16195 CONFIG_LINKS = $CONFIG_LINKS
16196 CONFIG_COMMANDS = $CONFIG_COMMANDS
16197 $ $0 $@
16198
16199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16200 "
16201
16202 _ACEOF
16203
16204 case $ac_config_files in *"
16205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16206 esac
16207
16208 case $ac_config_headers in *"
16209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16210 esac
16211
16212
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214 # Files that config.status was made for.
16215 config_files="$ac_config_files"
16216 config_headers="$ac_config_headers"
16217 config_commands="$ac_config_commands"
16218
16219 _ACEOF
16220
16221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222 ac_cs_usage="\
16223 \`$as_me' instantiates files and other configuration actions
16224 from templates according to the current configuration. Unless the files
16225 and actions are specified as TAGs, all are instantiated by default.
16226
16227 Usage: $0 [OPTION]... [TAG]...
16228
16229 -h, --help print this help, then exit
16230 -V, --version print version number and configuration settings, then exit
16231 --config print configuration, then exit
16232 -q, --quiet, --silent
16233 do not print progress messages
16234 -d, --debug don't remove temporary files
16235 --recheck update $as_me by reconfiguring in the same conditions
16236 --file=FILE[:TEMPLATE]
16237 instantiate the configuration file FILE
16238 --header=FILE[:TEMPLATE]
16239 instantiate the configuration header FILE
16240
16241 Configuration files:
16242 $config_files
16243
16244 Configuration headers:
16245 $config_headers
16246
16247 Configuration commands:
16248 $config_commands
16249
16250 Report bugs to the package provider."
16251
16252 _ACEOF
16253 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16254 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256 ac_cs_config='$ac_cs_config_escaped'
16257 ac_cs_version="\\
16258 libkate config.status 0.4.3
16259 configured by $0, generated by GNU Autoconf 2.71,
16260 with options \\"\$ac_cs_config\\"
16261
16262 Copyright (C) 2021 Free Software Foundation, Inc.
16263 This config.status script is free software; the Free Software Foundation
16264 gives unlimited permission to copy, distribute and modify it."
16265
16266 ac_pwd='$ac_pwd'
16267 srcdir='$srcdir'
16268 INSTALL='$INSTALL'
16269 MKDIR_P='$MKDIR_P'
16270 AWK='$AWK'
16271 test -n "\$AWK" || AWK=awk
16272 _ACEOF
16273
16274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 # The default lists apply if the user does not specify any file.
16276 ac_need_defaults=:
16277 while test $# != 0
16278 do
16279 case $1 in
16280 --*=?*)
16281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16283 ac_shift=:
16284 ;;
16285 --*=)
16286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16287 ac_optarg=
16288 ac_shift=:
16289 ;;
16290 *)
16291 ac_option=$1
16292 ac_optarg=$2
16293 ac_shift=shift
16294 ;;
16295 esac
16296
16297 case $ac_option in
16298 # Handling of the options.
16299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16300 ac_cs_recheck=: ;;
16301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16302 printf "%s\n" "$ac_cs_version"; exit ;;
16303 --config | --confi | --conf | --con | --co | --c )
16304 printf "%s\n" "$ac_cs_config"; exit ;;
16305 --debug | --debu | --deb | --de | --d | -d )
16306 debug=: ;;
16307 --file | --fil | --fi | --f )
16308 $ac_shift
16309 case $ac_optarg in
16310 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16311 '') as_fn_error $? "missing file argument" ;;
16312 esac
16313 as_fn_append CONFIG_FILES " '$ac_optarg'"
16314 ac_need_defaults=false;;
16315 --header | --heade | --head | --hea )
16316 $ac_shift
16317 case $ac_optarg in
16318 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16319 esac
16320 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16321 ac_need_defaults=false;;
16322 --he | --h)
16323 # Conflict between --help and --header
16324 as_fn_error $? "ambiguous option: \`$1'
16325 Try \`$0 --help' for more information.";;
16326 --help | --hel | -h )
16327 printf "%s\n" "$ac_cs_usage"; exit ;;
16328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16330 ac_cs_silent=: ;;
16331
16332 # This is an error.
16333 -*) as_fn_error $? "unrecognized option: \`$1'
16334 Try \`$0 --help' for more information." ;;
16335
16336 *) as_fn_append ac_config_targets " $1"
16337 ac_need_defaults=false ;;
16338
16339 esac
16340 shift
16341 done
16342
16343 ac_configure_extra_args=
16344
16345 if $ac_cs_silent; then
16346 exec 6>/dev/null
16347 ac_configure_extra_args="$ac_configure_extra_args --silent"
16348 fi
16349
16350 _ACEOF
16351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 if \$ac_cs_recheck; then
16353 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16354 shift
16355 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16356 CONFIG_SHELL='$SHELL'
16357 export CONFIG_SHELL
16358 exec "\$@"
16359 fi
16360
16361 _ACEOF
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 exec 5>>config.log
16364 {
16365 echo
16366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16367 ## Running $as_me. ##
16368 _ASBOX
16369 printf "%s\n" "$ac_log"
16370 } >&5
16371
16372 _ACEOF
16373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16374 #
16375 # INIT-COMMANDS
16376 #
16377 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16378
16379
16380 # The HP-UX ksh and POSIX shell print the target directory to stdout
16381 # if CDPATH is set.
16382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16383
16384 sed_quote_subst='$sed_quote_subst'
16385 double_quote_subst='$double_quote_subst'
16386 delay_variable_subst='$delay_variable_subst'
16387 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16388 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16389 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16390 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16391 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16392 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16393 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16394 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16395 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16396 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16397 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16398 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16399 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16400 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16401 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16402 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16403 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16404 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16405 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16406 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16407 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16408 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16409 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16410 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16411 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16412 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16413 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16414 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16415 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16416 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16419 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16420 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16421 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16422 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16423 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16424 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16425 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16426 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16427 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16428 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16429 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16430 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16445 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16446 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16447 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"`'
16448 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16449 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16450 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16451 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16452 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16453 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16454 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16455 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16456 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16457 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16458 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16459 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16460 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16461 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16462 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16463 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16464 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16465 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16466 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16467 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16468 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16469 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16470 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16471 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16472 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16473 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16474 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16475 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16476 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16477 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16478 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16479 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16480 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16481 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16482 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16483 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16484 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16485 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16486 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16487 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16488 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16489 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16490 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16491 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16492 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16493 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16494 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16495 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16496 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16497 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16498 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16499 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16500 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16501 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16502 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16503 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16504 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16505 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16506 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16507 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16508 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16509 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16510 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16511 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16512 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16513 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16514 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16515 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16516 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16517 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16518 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16519 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16520 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16521 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16522 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16523 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16524
16525 LTCC='$LTCC'
16526 LTCFLAGS='$LTCFLAGS'
16527 compiler='$compiler_DEFAULT'
16528
16529 # A function that is used when there is no print builtin or printf.
16530 func_fallback_echo ()
16531 {
16532 eval 'cat <<_LTECHO_EOF
16533 \$1
16534 _LTECHO_EOF'
16535 }
16536
16537 # Quote evaled strings.
16538 for var in SHELL \
16539 ECHO \
16540 PATH_SEPARATOR \
16541 SED \
16542 GREP \
16543 EGREP \
16544 FGREP \
16545 LD \
16546 NM \
16547 LN_S \
16548 lt_SP2NL \
16549 lt_NL2SP \
16550 reload_flag \
16551 FILECMD \
16552 OBJDUMP \
16553 deplibs_check_method \
16554 file_magic_cmd \
16555 file_magic_glob \
16556 want_nocaseglob \
16557 DLLTOOL \
16558 sharedlib_from_linklib_cmd \
16559 AR \
16560 archiver_list_spec \
16561 STRIP \
16562 RANLIB \
16563 CC \
16564 CFLAGS \
16565 compiler \
16566 lt_cv_sys_global_symbol_pipe \
16567 lt_cv_sys_global_symbol_to_cdecl \
16568 lt_cv_sys_global_symbol_to_import \
16569 lt_cv_sys_global_symbol_to_c_name_address \
16570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16571 lt_cv_nm_interface \
16572 nm_file_list_spec \
16573 lt_cv_truncate_bin \
16574 lt_prog_compiler_no_builtin_flag \
16575 lt_prog_compiler_pic \
16576 lt_prog_compiler_wl \
16577 lt_prog_compiler_static \
16578 lt_cv_prog_compiler_c_o \
16579 need_locks \
16580 MANIFEST_TOOL \
16581 DSYMUTIL \
16582 NMEDIT \
16583 LIPO \
16584 OTOOL \
16585 OTOOL64 \
16586 shrext_cmds \
16587 export_dynamic_flag_spec \
16588 whole_archive_flag_spec \
16589 compiler_needs_object \
16590 with_gnu_ld \
16591 allow_undefined_flag \
16592 no_undefined_flag \
16593 hardcode_libdir_flag_spec \
16594 hardcode_libdir_separator \
16595 exclude_expsyms \
16596 include_expsyms \
16597 file_list_spec \
16598 variables_saved_for_relink \
16599 libname_spec \
16600 library_names_spec \
16601 soname_spec \
16602 install_override_mode \
16603 finish_eval \
16604 old_striplib \
16605 striplib; do
16606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16607 *[\\\\\\\`\\"\\\$]*)
16608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16609 ;;
16610 *)
16611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16612 ;;
16613 esac
16614 done
16615
16616 # Double-quote double-evaled strings.
16617 for var in reload_cmds \
16618 old_postinstall_cmds \
16619 old_postuninstall_cmds \
16620 old_archive_cmds \
16621 extract_expsyms_cmds \
16622 old_archive_from_new_cmds \
16623 old_archive_from_expsyms_cmds \
16624 archive_cmds \
16625 archive_expsym_cmds \
16626 module_cmds \
16627 module_expsym_cmds \
16628 export_symbols_cmds \
16629 prelink_cmds \
16630 postlink_cmds \
16631 postinstall_cmds \
16632 postuninstall_cmds \
16633 finish_cmds \
16634 sys_lib_search_path_spec \
16635 configure_time_dlsearch_path \
16636 configure_time_lt_sys_library_path; do
16637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16638 *[\\\\\\\`\\"\\\$]*)
16639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16640 ;;
16641 *)
16642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16643 ;;
16644 esac
16645 done
16646
16647 ac_aux_dir='$ac_aux_dir'
16648
16649 # See if we are running on zsh, and set the options that allow our
16650 # commands through without removal of \ escapes INIT.
16651 if test -n "\${ZSH_VERSION+set}"; then
16652 setopt NO_GLOB_SUBST
16653 fi
16654
16655
16656 PACKAGE='$PACKAGE'
16657 VERSION='$VERSION'
16658 RM='$RM'
16659 ofile='$ofile'
16660
16661
16662
16663
16664 _ACEOF
16665
16666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16667
16668 # Handling of arguments.
16669 for ac_config_target in $ac_config_targets
16670 do
16671 case $ac_config_target in
16672 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16673 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16674 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16676 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16677 "tools/KateDJ/Makefile") CONFIG_FILES="$CONFIG_FILES tools/KateDJ/Makefile" ;;
16678 "tools/KateDJ/kdj/constants.py") CONFIG_FILES="$CONFIG_FILES tools/KateDJ/kdj/constants.py" ;;
16679 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16680 "doc/man/kateenc.1") CONFIG_FILES="$CONFIG_FILES doc/man/kateenc.1" ;;
16681 "doc/man/katedec.1") CONFIG_FILES="$CONFIG_FILES doc/man/katedec.1" ;;
16682 "doc/man/katalyzer.1") CONFIG_FILES="$CONFIG_FILES doc/man/katalyzer.1" ;;
16683 "doc/man/KateDJ.1") CONFIG_FILES="$CONFIG_FILES doc/man/KateDJ.1" ;;
16684 "include/kate/kate.h") CONFIG_FILES="$CONFIG_FILES include/kate/kate.h" ;;
16685 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16686 "misc/pkgconfig/kate.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/kate.pc" ;;
16687 "misc/pkgconfig/kate-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/kate-uninstalled.pc" ;;
16688 "misc/pkgconfig/oggkate.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/oggkate.pc" ;;
16689 "misc/pkgconfig/oggkate-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/oggkate-uninstalled.pc" ;;
16690 "doc/kate.doxygen") CONFIG_FILES="$CONFIG_FILES doc/kate.doxygen" ;;
16691
16692 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16693 esac
16694 done
16695
16696
16697 # If the user did not use the arguments to specify the items to instantiate,
16698 # then the envvar interface is used. Set only those that are not.
16699 # We use the long form for the default assignment because of an extremely
16700 # bizarre bug on SunOS 4.1.3.
16701 if $ac_need_defaults; then
16702 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16703 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16704 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16705 fi
16706
16707 # Have a temporary directory for convenience. Make it in the build tree
16708 # simply because there is no reason against having it here, and in addition,
16709 # creating and moving files from /tmp can sometimes cause problems.
16710 # Hook for its removal unless debugging.
16711 # Note that there is a small window in which the directory will not be cleaned:
16712 # after its creation but before its name has been assigned to `$tmp'.
16713 $debug ||
16714 {
16715 tmp= ac_tmp=
16716 trap 'exit_status=$?
16717 : "${ac_tmp:=$tmp}"
16718 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16719 ' 0
16720 trap 'as_fn_exit 1' 1 2 13 15
16721 }
16722 # Create a (secure) tmp directory for tmp files.
16723
16724 {
16725 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16726 test -d "$tmp"
16727 } ||
16728 {
16729 tmp=./conf$$-$RANDOM
16730 (umask 077 && mkdir "$tmp")
16731 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16732 ac_tmp=$tmp
16733
16734 # Set up the scripts for CONFIG_FILES section.
16735 # No need to generate them if there are no CONFIG_FILES.
16736 # This happens for instance with `./config.status config.h'.
16737 if test -n "$CONFIG_FILES"; then
16738
16739
16740 ac_cr=`echo X | tr X '\015'`
16741 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16742 # But we know of no other shell where ac_cr would be empty at this
16743 # point, so we can use a bashism as a fallback.
16744 if test "x$ac_cr" = x; then
16745 eval ac_cr=\$\'\\r\'
16746 fi
16747 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16748 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16749 ac_cs_awk_cr='\\r'
16750 else
16751 ac_cs_awk_cr=$ac_cr
16752 fi
16753
16754 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16755 _ACEOF
16756
16757
16758 {
16759 echo "cat >conf$$subs.awk <<_ACEOF" &&
16760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16761 echo "_ACEOF"
16762 } >conf$$subs.sh ||
16763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16764 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16765 ac_delim='%!_!# '
16766 for ac_last_try in false false false false false :; do
16767 . ./conf$$subs.sh ||
16768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16769
16770 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16771 if test $ac_delim_n = $ac_delim_num; then
16772 break
16773 elif $ac_last_try; then
16774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16775 else
16776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16777 fi
16778 done
16779 rm -f conf$$subs.sh
16780
16781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16782 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16783 _ACEOF
16784 sed -n '
16785 h
16786 s/^/S["/; s/!.*/"]=/
16787 p
16788 g
16789 s/^[^!]*!//
16790 :repl
16791 t repl
16792 s/'"$ac_delim"'$//
16793 t delim
16794 :nl
16795 h
16796 s/\(.\{148\}\)..*/\1/
16797 t more1
16798 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16799 p
16800 n
16801 b repl
16802 :more1
16803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16804 p
16805 g
16806 s/.\{148\}//
16807 t nl
16808 :delim
16809 h
16810 s/\(.\{148\}\)..*/\1/
16811 t more2
16812 s/["\\]/\\&/g; s/^/"/; s/$/"/
16813 p
16814 b
16815 :more2
16816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16817 p
16818 g
16819 s/.\{148\}//
16820 t delim
16821 ' <conf$$subs.awk | sed '
16822 /^[^""]/{
16823 N
16824 s/\n//
16825 }
16826 ' >>$CONFIG_STATUS || ac_write_fail=1
16827 rm -f conf$$subs.awk
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 _ACAWK
16830 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16831 for (key in S) S_is_set[key] = 1
16832 FS = ""
16833
16834 }
16835 {
16836 line = $ 0
16837 nfields = split(line, field, "@")
16838 substed = 0
16839 len = length(field[1])
16840 for (i = 2; i < nfields; i++) {
16841 key = field[i]
16842 keylen = length(key)
16843 if (S_is_set[key]) {
16844 value = S[key]
16845 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16846 len += length(value) + length(field[++i])
16847 substed = 1
16848 } else
16849 len += 1 + keylen
16850 }
16851
16852 print line
16853 }
16854
16855 _ACAWK
16856 _ACEOF
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16859 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16860 else
16861 cat
16862 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16863 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16864 _ACEOF
16865
16866 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16867 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16868 # trailing colons and then remove the whole line if VPATH becomes empty
16869 # (actually we leave an empty line to preserve line numbers).
16870 if test "x$srcdir" = x.; then
16871 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16872 h
16873 s///
16874 s/^/:/
16875 s/[ ]*$/:/
16876 s/:\$(srcdir):/:/g
16877 s/:\${srcdir}:/:/g
16878 s/:@srcdir@:/:/g
16879 s/^:*//
16880 s/:*$//
16881 x
16882 s/\(=[ ]*\).*/\1/
16883 G
16884 s/\n//
16885 s/^[^=]*=[ ]*$//
16886 }'
16887 fi
16888
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 fi # test -n "$CONFIG_FILES"
16891
16892 # Set up the scripts for CONFIG_HEADERS section.
16893 # No need to generate them if there are no CONFIG_HEADERS.
16894 # This happens for instance with `./config.status Makefile'.
16895 if test -n "$CONFIG_HEADERS"; then
16896 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16897 BEGIN {
16898 _ACEOF
16899
16900 # Transform confdefs.h into an awk script `defines.awk', embedded as
16901 # here-document in config.status, that substitutes the proper values into
16902 # config.h.in to produce config.h.
16903
16904 # Create a delimiter string that does not exist in confdefs.h, to ease
16905 # handling of long lines.
16906 ac_delim='%!_!# '
16907 for ac_last_try in false false :; do
16908 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16909 if test -z "$ac_tt"; then
16910 break
16911 elif $ac_last_try; then
16912 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16913 else
16914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16915 fi
16916 done
16917
16918 # For the awk script, D is an array of macro values keyed by name,
16919 # likewise P contains macro parameters if any. Preserve backslash
16920 # newline sequences.
16921
16922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16923 sed -n '
16924 s/.\{148\}/&'"$ac_delim"'/g
16925 t rset
16926 :rset
16927 s/^[ ]*#[ ]*define[ ][ ]*/ /
16928 t def
16929 d
16930 :def
16931 s/\\$//
16932 t bsnl
16933 s/["\\]/\\&/g
16934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16935 D["\1"]=" \3"/p
16936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16937 d
16938 :bsnl
16939 s/["\\]/\\&/g
16940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16941 D["\1"]=" \3\\\\\\n"\\/p
16942 t cont
16943 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16944 t cont
16945 d
16946 :cont
16947 n
16948 s/.\{148\}/&'"$ac_delim"'/g
16949 t clear
16950 :clear
16951 s/\\$//
16952 t bsnlc
16953 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16954 d
16955 :bsnlc
16956 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16957 b cont
16958 ' <confdefs.h | sed '
16959 s/'"$ac_delim"'/"\\\
16960 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16961
16962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16963 for (key in D) D_is_set[key] = 1
16964 FS = ""
16965 }
16966 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16967 line = \$ 0
16968 split(line, arg, " ")
16969 if (arg[1] == "#") {
16970 defundef = arg[2]
16971 mac1 = arg[3]
16972 } else {
16973 defundef = substr(arg[1], 2)
16974 mac1 = arg[2]
16975 }
16976 split(mac1, mac2, "(") #)
16977 macro = mac2[1]
16978 prefix = substr(line, 1, index(line, defundef) - 1)
16979 if (D_is_set[macro]) {
16980 # Preserve the white space surrounding the "#".
16981 print prefix "define", macro P[macro] D[macro]
16982 next
16983 } else {
16984 # Replace #undef with comments. This is necessary, for example,
16985 # in the case of _POSIX_SOURCE, which is predefined and required
16986 # on some systems where configure will not decide to define it.
16987 if (defundef == "undef") {
16988 print "/*", prefix defundef, macro, "*/"
16989 next
16990 }
16991 }
16992 }
16993 { print }
16994 _ACAWK
16995 _ACEOF
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16998 fi # test -n "$CONFIG_HEADERS"
16999
17000
17001 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17002 shift
17003 for ac_tag
17004 do
17005 case $ac_tag in
17006 :[FHLC]) ac_mode=$ac_tag; continue;;
17007 esac
17008 case $ac_mode$ac_tag in
17009 :[FHL]*:*);;
17010 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17011 :[FH]-) ac_tag=-:-;;
17012 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17013 esac
17014 ac_save_IFS=$IFS
17015 IFS=:
17016 set x $ac_tag
17017 IFS=$ac_save_IFS
17018 shift
17019 ac_file=$1
17020 shift
17021
17022 case $ac_mode in
17023 :L) ac_source=$1;;
17024 :[FH])
17025 ac_file_inputs=
17026 for ac_f
17027 do
17028 case $ac_f in
17029 -) ac_f="$ac_tmp/stdin";;
17030 *) # Look for the file first in the build tree, then in the source tree
17031 # (if the path is not absolute). The absolute path cannot be DOS-style,
17032 # because $ac_f cannot contain `:'.
17033 test -f "$ac_f" ||
17034 case $ac_f in
17035 [\\/$]*) false;;
17036 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17037 esac ||
17038 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17039 esac
17040 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17041 as_fn_append ac_file_inputs " '$ac_f'"
17042 done
17043
17044 # Let's still pretend it is `configure' which instantiates (i.e., don't
17045 # use $as_me), people would be surprised to read:
17046 # /* config.h. Generated by config.status. */
17047 configure_input='Generated from '`
17048 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17049 `' by configure.'
17050 if test x"$ac_file" != x-; then
17051 configure_input="$ac_file. $configure_input"
17052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17053 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17054 fi
17055 # Neutralize special characters interpreted by sed in replacement strings.
17056 case $configure_input in #(
17057 *\&* | *\|* | *\\* )
17058 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17059 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17060 *) ac_sed_conf_input=$configure_input;;
17061 esac
17062
17063 case $ac_tag in
17064 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17066 esac
17067 ;;
17068 esac
17069
17070 ac_dir=`$as_dirname -- "$ac_file" ||
17071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17072 X"$ac_file" : 'X\(//\)[^/]' \| \
17073 X"$ac_file" : 'X\(//\)$' \| \
17074 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17075 printf "%s\n" X"$ac_file" |
17076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17077 s//\1/
17078 q
17079 }
17080 /^X\(\/\/\)[^/].*/{
17081 s//\1/
17082 q
17083 }
17084 /^X\(\/\/\)$/{
17085 s//\1/
17086 q
17087 }
17088 /^X\(\/\).*/{
17089 s//\1/
17090 q
17091 }
17092 s/.*/./; q'`
17093 as_dir="$ac_dir"; as_fn_mkdir_p
17094 ac_builddir=.
17095
17096 case "$ac_dir" in
17097 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17098 *)
17099 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17100 # A ".." for each directory in $ac_dir_suffix.
17101 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17102 case $ac_top_builddir_sub in
17103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17105 esac ;;
17106 esac
17107 ac_abs_top_builddir=$ac_pwd
17108 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17109 # for backward compatibility:
17110 ac_top_builddir=$ac_top_build_prefix
17111
17112 case $srcdir in
17113 .) # We are building in place.
17114 ac_srcdir=.
17115 ac_top_srcdir=$ac_top_builddir_sub
17116 ac_abs_top_srcdir=$ac_pwd ;;
17117 [\\/]* | ?:[\\/]* ) # Absolute name.
17118 ac_srcdir=$srcdir$ac_dir_suffix;
17119 ac_top_srcdir=$srcdir
17120 ac_abs_top_srcdir=$srcdir ;;
17121 *) # Relative name.
17122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17123 ac_top_srcdir=$ac_top_build_prefix$srcdir
17124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17125 esac
17126 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17127
17128
17129 case $ac_mode in
17130 :F)
17131 #
17132 # CONFIG_FILE
17133 #
17134
17135 case $INSTALL in
17136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17137 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17138 esac
17139 ac_MKDIR_P=$MKDIR_P
17140 case $MKDIR_P in
17141 [\\/$]* | ?:[\\/]* ) ;;
17142 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17143 esac
17144 _ACEOF
17145
17146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17147 # If the template does not know about datarootdir, expand it.
17148 # FIXME: This hack should be removed a few years after 2.60.
17149 ac_datarootdir_hack=; ac_datarootdir_seen=
17150 ac_sed_dataroot='
17151 /datarootdir/ {
17152 p
17153 q
17154 }
17155 /@datadir@/p
17156 /@docdir@/p
17157 /@infodir@/p
17158 /@localedir@/p
17159 /@mandir@/p'
17160 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17161 *datarootdir*) ac_datarootdir_seen=yes;;
17162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17164 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17165 _ACEOF
17166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17167 ac_datarootdir_hack='
17168 s&@datadir@&$datadir&g
17169 s&@docdir@&$docdir&g
17170 s&@infodir@&$infodir&g
17171 s&@localedir@&$localedir&g
17172 s&@mandir@&$mandir&g
17173 s&\\\${datarootdir}&$datarootdir&g' ;;
17174 esac
17175 _ACEOF
17176
17177 # Neutralize VPATH when `$srcdir' = `.'.
17178 # Shell code in configure.ac might set extrasub.
17179 # FIXME: do we really want to maintain this feature?
17180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17181 ac_sed_extra="$ac_vpsub
17182 $extrasub
17183 _ACEOF
17184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17185 :t
17186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17187 s|@configure_input@|$ac_sed_conf_input|;t t
17188 s&@top_builddir@&$ac_top_builddir_sub&;t t
17189 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17190 s&@srcdir@&$ac_srcdir&;t t
17191 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17192 s&@top_srcdir@&$ac_top_srcdir&;t t
17193 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17194 s&@builddir@&$ac_builddir&;t t
17195 s&@abs_builddir@&$ac_abs_builddir&;t t
17196 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17197 s&@INSTALL@&$ac_INSTALL&;t t
17198 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17199 $ac_datarootdir_hack
17200 "
17201 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17203
17204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17207 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17209 which seems to be undefined. Please make sure it is defined" >&5
17210 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17211 which seems to be undefined. Please make sure it is defined" >&2;}
17212
17213 rm -f "$ac_tmp/stdin"
17214 case $ac_file in
17215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17217 esac \
17218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17219 ;;
17220 :H)
17221 #
17222 # CONFIG_HEADER
17223 #
17224 if test x"$ac_file" != x-; then
17225 {
17226 printf "%s\n" "/* $configure_input */" >&1 \
17227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17228 } >"$ac_tmp/config.h" \
17229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17232 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17233 else
17234 rm -f "$ac_file"
17235 mv "$ac_tmp/config.h" "$ac_file" \
17236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17237 fi
17238 else
17239 printf "%s\n" "/* $configure_input */" >&1 \
17240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17241 || as_fn_error $? "could not create -" "$LINENO" 5
17242 fi
17243 # Compute "$ac_file"'s index in $config_headers.
17244 _am_arg="$ac_file"
17245 _am_stamp_count=1
17246 for _am_header in $config_headers :; do
17247 case $_am_header in
17248 $_am_arg | $_am_arg:* )
17249 break ;;
17250 * )
17251 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17252 esac
17253 done
17254 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17255 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17256 X"$_am_arg" : 'X\(//\)[^/]' \| \
17257 X"$_am_arg" : 'X\(//\)$' \| \
17258 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17259 printf "%s\n" X"$_am_arg" |
17260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17261 s//\1/
17262 q
17263 }
17264 /^X\(\/\/\)[^/].*/{
17265 s//\1/
17266 q
17267 }
17268 /^X\(\/\/\)$/{
17269 s//\1/
17270 q
17271 }
17272 /^X\(\/\).*/{
17273 s//\1/
17274 q
17275 }
17276 s/.*/./; q'`/stamp-h$_am_stamp_count
17277 ;;
17278
17279 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17280 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17281 ;;
17282 esac
17283
17284
17285 case $ac_file$ac_mode in
17286 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17287 # Older Autoconf quotes --file arguments for eval, but not when files
17288 # are listed without --file. Let's play safe and only enable the eval
17289 # if we detect the quoting.
17290 # TODO: see whether this extra hack can be removed once we start
17291 # requiring Autoconf 2.70 or later.
17292 case $CONFIG_FILES in #(
17293 *\'*) :
17294 eval set x "$CONFIG_FILES" ;; #(
17295 *) :
17296 set x $CONFIG_FILES ;; #(
17297 *) :
17298 ;;
17299 esac
17300 shift
17301 # Used to flag and report bootstrapping failures.
17302 am_rc=0
17303 for am_mf
17304 do
17305 # Strip MF so we end up with the name of the file.
17306 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17307 # Check whether this is an Automake generated Makefile which includes
17308 # dependency-tracking related rules and includes.
17309 # Grep'ing the whole file directly is not great: AIX grep has a line
17310 # limit of 2048, but all sed's we know have understand at least 4000.
17311 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17312 || continue
17313 am_dirpart=`$as_dirname -- "$am_mf" ||
17314 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17315 X"$am_mf" : 'X\(//\)[^/]' \| \
17316 X"$am_mf" : 'X\(//\)$' \| \
17317 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17318 printf "%s\n" X"$am_mf" |
17319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17320 s//\1/
17321 q
17322 }
17323 /^X\(\/\/\)[^/].*/{
17324 s//\1/
17325 q
17326 }
17327 /^X\(\/\/\)$/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\).*/{
17332 s//\1/
17333 q
17334 }
17335 s/.*/./; q'`
17336 am_filepart=`$as_basename -- "$am_mf" ||
17337 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17338 X"$am_mf" : 'X\(//\)$' \| \
17339 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17340 printf "%s\n" X/"$am_mf" |
17341 sed '/^.*\/\([^/][^/]*\)\/*$/{
17342 s//\1/
17343 q
17344 }
17345 /^X\/\(\/\/\)$/{
17346 s//\1/
17347 q
17348 }
17349 /^X\/\(\/\).*/{
17350 s//\1/
17351 q
17352 }
17353 s/.*/./; q'`
17354 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17355 && sed -e '/# am--include-marker/d' "$am_filepart" \
17356 | $MAKE -f - am--depfiles" >&5
17357 (cd "$am_dirpart" \
17358 && sed -e '/# am--include-marker/d' "$am_filepart" \
17359 | $MAKE -f - am--depfiles) >&5 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } || am_rc=$?
17363 done
17364 if test $am_rc -ne 0; then
17365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17366 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17367 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17368 for automatic dependency tracking. If GNU make was not used, consider
17369 re-running the configure script with MAKE=\"gmake\" (or whatever is
17370 necessary). You can also try re-running configure with the
17371 '--disable-dependency-tracking' option to at least be able to build
17372 the package (albeit without support for automatic dependency tracking).
17373 See \`config.log' for more details" "$LINENO" 5; }
17374 fi
17375 { am_dirpart=; unset am_dirpart;}
17376 { am_filepart=; unset am_filepart;}
17377 { am_mf=; unset am_mf;}
17378 { am_rc=; unset am_rc;}
17379 rm -f conftest-deps.mk
17380 }
17381 ;;
17382 "libtool":C)
17383
17384 # See if we are running on zsh, and set the options that allow our
17385 # commands through without removal of \ escapes.
17386 if test -n "${ZSH_VERSION+set}"; then
17387 setopt NO_GLOB_SUBST
17388 fi
17389
17390 cfgfile=${ofile}T
17391 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17392 $RM "$cfgfile"
17393
17394 cat <<_LT_EOF >> "$cfgfile"
17395 #! $SHELL
17396 # Generated automatically by $as_me ($PACKAGE) $VERSION
17397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17398
17399 # Provide generalized library-building support services.
17400 # Written by Gordon Matzigkeit, 1996
17401
17402 # Copyright (C) 2014 Free Software Foundation, Inc.
17403 # This is free software; see the source for copying conditions. There is NO
17404 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17405
17406 # GNU Libtool is free software; you can redistribute it and/or modify
17407 # it under the terms of the GNU General Public License as published by
17408 # the Free Software Foundation; either version 2 of of the License, or
17409 # (at your option) any later version.
17410 #
17411 # As a special exception to the GNU General Public License, if you
17412 # distribute this file as part of a program or library that is built
17413 # using GNU Libtool, you may include this file under the same
17414 # distribution terms that you use for the rest of that program.
17415 #
17416 # GNU Libtool is distributed in the hope that it will be useful, but
17417 # WITHOUT ANY WARRANTY; without even the implied warranty of
17418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17419 # GNU General Public License for more details.
17420 #
17421 # You should have received a copy of the GNU General Public License
17422 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17423
17424
17425 # The names of the tagged configurations supported by this script.
17426 available_tags=''
17427
17428 # Configured defaults for sys_lib_dlsearch_path munging.
17429 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17430
17431 # ### BEGIN LIBTOOL CONFIG
17432
17433 # Which release of libtool.m4 was used?
17434 macro_version=$macro_version
17435 macro_revision=$macro_revision
17436
17437 # Whether or not to build shared libraries.
17438 build_libtool_libs=$enable_shared
17439
17440 # Whether or not to build static libraries.
17441 build_old_libs=$enable_static
17442
17443 # What type of objects to build.
17444 pic_mode=$pic_mode
17445
17446 # Whether or not to optimize for fast installation.
17447 fast_install=$enable_fast_install
17448
17449 # Shared archive member basename,for filename based shared library versioning on AIX.
17450 shared_archive_member_spec=$shared_archive_member_spec
17451
17452 # Shell to use when invoking shell scripts.
17453 SHELL=$lt_SHELL
17454
17455 # An echo program that protects backslashes.
17456 ECHO=$lt_ECHO
17457
17458 # The PATH separator for the build system.
17459 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17460
17461 # The host system.
17462 host_alias=$host_alias
17463 host=$host
17464 host_os=$host_os
17465
17466 # The build system.
17467 build_alias=$build_alias
17468 build=$build
17469 build_os=$build_os
17470
17471 # A sed program that does not truncate output.
17472 SED=$lt_SED
17473
17474 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17475 Xsed="\$SED -e 1s/^X//"
17476
17477 # A grep program that handles long lines.
17478 GREP=$lt_GREP
17479
17480 # An ERE matcher.
17481 EGREP=$lt_EGREP
17482
17483 # A literal string matcher.
17484 FGREP=$lt_FGREP
17485
17486 # A BSD- or MS-compatible name lister.
17487 NM=$lt_NM
17488
17489 # Whether we need soft or hard links.
17490 LN_S=$lt_LN_S
17491
17492 # What is the maximum length of a command?
17493 max_cmd_len=$max_cmd_len
17494
17495 # Object file suffix (normally "o").
17496 objext=$ac_objext
17497
17498 # Executable file suffix (normally "").
17499 exeext=$exeext
17500
17501 # whether the shell understands "unset".
17502 lt_unset=$lt_unset
17503
17504 # turn spaces into newlines.
17505 SP2NL=$lt_lt_SP2NL
17506
17507 # turn newlines into spaces.
17508 NL2SP=$lt_lt_NL2SP
17509
17510 # convert \$build file names to \$host format.
17511 to_host_file_cmd=$lt_cv_to_host_file_cmd
17512
17513 # convert \$build files to toolchain format.
17514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17515
17516 # A file(cmd) program that detects file types.
17517 FILECMD=$lt_FILECMD
17518
17519 # An object symbol dumper.
17520 OBJDUMP=$lt_OBJDUMP
17521
17522 # Method to check whether dependent libraries are shared objects.
17523 deplibs_check_method=$lt_deplibs_check_method
17524
17525 # Command to use when deplibs_check_method = "file_magic".
17526 file_magic_cmd=$lt_file_magic_cmd
17527
17528 # How to find potential files when deplibs_check_method = "file_magic".
17529 file_magic_glob=$lt_file_magic_glob
17530
17531 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17532 want_nocaseglob=$lt_want_nocaseglob
17533
17534 # DLL creation program.
17535 DLLTOOL=$lt_DLLTOOL
17536
17537 # Command to associate shared and link libraries.
17538 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17539
17540 # The archiver.
17541 AR=$lt_AR
17542
17543 # Flags to create an archive (by configure).
17544 lt_ar_flags=$lt_ar_flags
17545
17546 # Flags to create an archive.
17547 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17548
17549 # How to feed a file listing to the archiver.
17550 archiver_list_spec=$lt_archiver_list_spec
17551
17552 # A symbol stripping program.
17553 STRIP=$lt_STRIP
17554
17555 # Commands used to install an old-style archive.
17556 RANLIB=$lt_RANLIB
17557 old_postinstall_cmds=$lt_old_postinstall_cmds
17558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17559
17560 # Whether to use a lock for old archive extraction.
17561 lock_old_archive_extraction=$lock_old_archive_extraction
17562
17563 # A C compiler.
17564 LTCC=$lt_CC
17565
17566 # LTCC compiler flags.
17567 LTCFLAGS=$lt_CFLAGS
17568
17569 # Take the output of nm and produce a listing of raw symbols and C names.
17570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17571
17572 # Transform the output of nm in a proper C declaration.
17573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17574
17575 # Transform the output of nm into a list of symbols to manually relocate.
17576 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17577
17578 # Transform the output of nm in a C name address pair.
17579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17580
17581 # Transform the output of nm in a C name address pair when lib prefix is needed.
17582 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17583
17584 # The name lister interface.
17585 nm_interface=$lt_lt_cv_nm_interface
17586
17587 # Specify filename containing input files for \$NM.
17588 nm_file_list_spec=$lt_nm_file_list_spec
17589
17590 # The root where to search for dependent libraries,and where our libraries should be installed.
17591 lt_sysroot=$lt_sysroot
17592
17593 # Command to truncate a binary pipe.
17594 lt_truncate_bin=$lt_lt_cv_truncate_bin
17595
17596 # The name of the directory that contains temporary libtool files.
17597 objdir=$objdir
17598
17599 # Used to examine libraries when file_magic_cmd begins with "file".
17600 MAGIC_CMD=$MAGIC_CMD
17601
17602 # Must we lock files when doing compilation?
17603 need_locks=$lt_need_locks
17604
17605 # Manifest tool.
17606 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17607
17608 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17609 DSYMUTIL=$lt_DSYMUTIL
17610
17611 # Tool to change global to local symbols on Mac OS X.
17612 NMEDIT=$lt_NMEDIT
17613
17614 # Tool to manipulate fat objects and archives on Mac OS X.
17615 LIPO=$lt_LIPO
17616
17617 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17618 OTOOL=$lt_OTOOL
17619
17620 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17621 OTOOL64=$lt_OTOOL64
17622
17623 # Old archive suffix (normally "a").
17624 libext=$libext
17625
17626 # Shared library suffix (normally ".so").
17627 shrext_cmds=$lt_shrext_cmds
17628
17629 # The commands to extract the exported symbol list from a shared archive.
17630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17631
17632 # Variables whose values should be saved in libtool wrapper scripts and
17633 # restored at link time.
17634 variables_saved_for_relink=$lt_variables_saved_for_relink
17635
17636 # Do we need the "lib" prefix for modules?
17637 need_lib_prefix=$need_lib_prefix
17638
17639 # Do we need a version for libraries?
17640 need_version=$need_version
17641
17642 # Library versioning type.
17643 version_type=$version_type
17644
17645 # Shared library runtime path variable.
17646 runpath_var=$runpath_var
17647
17648 # Shared library path variable.
17649 shlibpath_var=$shlibpath_var
17650
17651 # Is shlibpath searched before the hard-coded library search path?
17652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17653
17654 # Format of library name prefix.
17655 libname_spec=$lt_libname_spec
17656
17657 # List of archive names. First name is the real one, the rest are links.
17658 # The last name is the one that the linker finds with -lNAME
17659 library_names_spec=$lt_library_names_spec
17660
17661 # The coded name of the library, if different from the real name.
17662 soname_spec=$lt_soname_spec
17663
17664 # Permission mode override for installation of shared libraries.
17665 install_override_mode=$lt_install_override_mode
17666
17667 # Command to use after installation of a shared archive.
17668 postinstall_cmds=$lt_postinstall_cmds
17669
17670 # Command to use after uninstallation of a shared archive.
17671 postuninstall_cmds=$lt_postuninstall_cmds
17672
17673 # Commands used to finish a libtool library installation in a directory.
17674 finish_cmds=$lt_finish_cmds
17675
17676 # As "finish_cmds", except a single script fragment to be evaled but
17677 # not shown.
17678 finish_eval=$lt_finish_eval
17679
17680 # Whether we should hardcode library paths into libraries.
17681 hardcode_into_libs=$hardcode_into_libs
17682
17683 # Compile-time system search path for libraries.
17684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17685
17686 # Detected run-time system search path for libraries.
17687 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17688
17689 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17690 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17691
17692 # Whether dlopen is supported.
17693 dlopen_support=$enable_dlopen
17694
17695 # Whether dlopen of programs is supported.
17696 dlopen_self=$enable_dlopen_self
17697
17698 # Whether dlopen of statically linked programs is supported.
17699 dlopen_self_static=$enable_dlopen_self_static
17700
17701 # Commands to strip libraries.
17702 old_striplib=$lt_old_striplib
17703 striplib=$lt_striplib
17704
17705
17706 # The linker used to build libraries.
17707 LD=$lt_LD
17708
17709 # How to create reloadable object files.
17710 reload_flag=$lt_reload_flag
17711 reload_cmds=$lt_reload_cmds
17712
17713 # Commands used to build an old-style archive.
17714 old_archive_cmds=$lt_old_archive_cmds
17715
17716 # A language specific compiler.
17717 CC=$lt_compiler
17718
17719 # Is the compiler the GNU compiler?
17720 with_gcc=$GCC
17721
17722 # Compiler flag to turn off builtin functions.
17723 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17724
17725 # Additional compiler flags for building library objects.
17726 pic_flag=$lt_lt_prog_compiler_pic
17727
17728 # How to pass a linker flag through the compiler.
17729 wl=$lt_lt_prog_compiler_wl
17730
17731 # Compiler flag to prevent dynamic linking.
17732 link_static_flag=$lt_lt_prog_compiler_static
17733
17734 # Does compiler simultaneously support -c and -o options?
17735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17736
17737 # Whether or not to add -lc for building shared libraries.
17738 build_libtool_need_lc=$archive_cmds_need_lc
17739
17740 # Whether or not to disallow shared libs when runtime libs are static.
17741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17742
17743 # Compiler flag to allow reflexive dlopens.
17744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17745
17746 # Compiler flag to generate shared objects directly from archives.
17747 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17748
17749 # Whether the compiler copes with passing no objects directly.
17750 compiler_needs_object=$lt_compiler_needs_object
17751
17752 # Create an old-style archive from a shared archive.
17753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17754
17755 # Create a temporary old-style archive to link instead of a shared archive.
17756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17757
17758 # Commands used to build a shared archive.
17759 archive_cmds=$lt_archive_cmds
17760 archive_expsym_cmds=$lt_archive_expsym_cmds
17761
17762 # Commands used to build a loadable module if different from building
17763 # a shared archive.
17764 module_cmds=$lt_module_cmds
17765 module_expsym_cmds=$lt_module_expsym_cmds
17766
17767 # Whether we are building with GNU ld or not.
17768 with_gnu_ld=$lt_with_gnu_ld
17769
17770 # Flag that allows shared libraries with undefined symbols to be built.
17771 allow_undefined_flag=$lt_allow_undefined_flag
17772
17773 # Flag that enforces no undefined symbols.
17774 no_undefined_flag=$lt_no_undefined_flag
17775
17776 # Flag to hardcode \$libdir into a binary during linking.
17777 # This must work even if \$libdir does not exist
17778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17779
17780 # Whether we need a single "-rpath" flag with a separated argument.
17781 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17782
17783 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17784 # DIR into the resulting binary.
17785 hardcode_direct=$hardcode_direct
17786
17787 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17788 # DIR into the resulting binary and the resulting library dependency is
17789 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17790 # library is relocated.
17791 hardcode_direct_absolute=$hardcode_direct_absolute
17792
17793 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17794 # into the resulting binary.
17795 hardcode_minus_L=$hardcode_minus_L
17796
17797 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17798 # into the resulting binary.
17799 hardcode_shlibpath_var=$hardcode_shlibpath_var
17800
17801 # Set to "yes" if building a shared library automatically hardcodes DIR
17802 # into the library and all subsequent libraries and executables linked
17803 # against it.
17804 hardcode_automatic=$hardcode_automatic
17805
17806 # Set to yes if linker adds runtime paths of dependent libraries
17807 # to runtime path list.
17808 inherit_rpath=$inherit_rpath
17809
17810 # Whether libtool must link a program against all its dependency libraries.
17811 link_all_deplibs=$link_all_deplibs
17812
17813 # Set to "yes" if exported symbols are required.
17814 always_export_symbols=$always_export_symbols
17815
17816 # The commands to list exported symbols.
17817 export_symbols_cmds=$lt_export_symbols_cmds
17818
17819 # Symbols that should not be listed in the preloaded symbols.
17820 exclude_expsyms=$lt_exclude_expsyms
17821
17822 # Symbols that must always be exported.
17823 include_expsyms=$lt_include_expsyms
17824
17825 # Commands necessary for linking programs (against libraries) with templates.
17826 prelink_cmds=$lt_prelink_cmds
17827
17828 # Commands necessary for finishing linking programs.
17829 postlink_cmds=$lt_postlink_cmds
17830
17831 # Specify filename containing input files.
17832 file_list_spec=$lt_file_list_spec
17833
17834 # How to hardcode a shared library path into an executable.
17835 hardcode_action=$hardcode_action
17836
17837 # ### END LIBTOOL CONFIG
17838
17839 _LT_EOF
17840
17841 cat <<'_LT_EOF' >> "$cfgfile"
17842
17843 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17844
17845 # func_munge_path_list VARIABLE PATH
17846 # -----------------------------------
17847 # VARIABLE is name of variable containing _space_ separated list of
17848 # directories to be munged by the contents of PATH, which is string
17849 # having a format:
17850 # "DIR[:DIR]:"
17851 # string "DIR[ DIR]" will be prepended to VARIABLE
17852 # ":DIR[:DIR]"
17853 # string "DIR[ DIR]" will be appended to VARIABLE
17854 # "DIRP[:DIRP]::[DIRA:]DIRA"
17855 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17856 # "DIRA[ DIRA]" will be appended to VARIABLE
17857 # "DIR[:DIR]"
17858 # VARIABLE will be replaced by "DIR[ DIR]"
17859 func_munge_path_list ()
17860 {
17861 case x$2 in
17862 x)
17863 ;;
17864 *:)
17865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17866 ;;
17867 x:*)
17868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17869 ;;
17870 *::*)
17871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17873 ;;
17874 *)
17875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17876 ;;
17877 esac
17878 }
17879
17880
17881 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17882 func_cc_basename ()
17883 {
17884 for cc_temp in $*""; do
17885 case $cc_temp in
17886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17888 \-*) ;;
17889 *) break;;
17890 esac
17891 done
17892 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17893 }
17894
17895
17896 # ### END FUNCTIONS SHARED WITH CONFIGURE
17897
17898 _LT_EOF
17899
17900 case $host_os in
17901 aix3*)
17902 cat <<\_LT_EOF >> "$cfgfile"
17903 # AIX sometimes has problems with the GCC collect2 program. For some
17904 # reason, if we set the COLLECT_NAMES environment variable, the problems
17905 # vanish in a puff of smoke.
17906 if test set != "${COLLECT_NAMES+set}"; then
17907 COLLECT_NAMES=
17908 export COLLECT_NAMES
17909 fi
17910 _LT_EOF
17911 ;;
17912 esac
17913
17914
17915
17916 ltmain=$ac_aux_dir/ltmain.sh
17917
17918
17919 # We use sed instead of cat because bash on DJGPP gets confused if
17920 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17921 # text mode, it properly converts lines to CR/LF. This bash problem
17922 # is reportedly fixed, but why not run on old versions too?
17923 $SED '$q' "$ltmain" >> "$cfgfile" \
17924 || (rm -f "$cfgfile"; exit 1)
17925
17926 mv -f "$cfgfile" "$ofile" ||
17927 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17928 chmod +x "$ofile"
17929
17930 ;;
17931
17932 esac
17933 done # for ac_tag
17934
17935
17936 as_fn_exit 0
17937 _ACEOF
17938 ac_clean_files=$ac_clean_files_save
17939
17940 test $ac_write_fail = 0 ||
17941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17942
17943
17944 # configure is writing to config.log, and then calls config.status.
17945 # config.status does its own redirection, appending to config.log.
17946 # Unfortunately, on DOS this fails, as config.log is still kept open
17947 # by configure, so config.status won't be able to write to it; its
17948 # output is simply discarded. So we exec the FD to /dev/null,
17949 # effectively closing config.log, so it can be properly (re)opened and
17950 # appended to by config.status. When coming back to configure, we
17951 # need to make the FD available again.
17952 if test "$no_create" != yes; then
17953 ac_cs_success=:
17954 ac_config_status_args=
17955 test "$silent" = yes &&
17956 ac_config_status_args="$ac_config_status_args --quiet"
17957 exec 5>/dev/null
17958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17959 exec 5>>config.log
17960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17961 # would make configure fail if this is the last instruction.
17962 $ac_cs_success || as_fn_exit 1
17963 fi
17964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17966 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17967 fi
17968
17969
17970 katedj_deps=
17971 if test "x$HAVE_WXPYTHON" != "xyes"; then katedj_deps="${katedj_deps}, wxPython"; fi
17972 if test "x$OGGZ" = "x"; then katedj_deps="${katedj_deps}, oggz tools"; fi
17973 if test "x$katedj_deps" != "x"
17974 then
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: KateDJ will not be installed due to dependencies not being found$katedj_deps." >&5
17976 printf "%s\n" "$as_me: WARNING: KateDJ will not be installed due to dependencies not being found$katedj_deps." >&2;}
17977 fi
17978
17979