Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libassuan 3.0.2.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://bugs.gnupg.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libassuan'
623 PACKAGE_TARNAME='libassuan'
624 PACKAGE_VERSION='3.0.2'
625 PACKAGE_STRING='libassuan 3.0.2'
626 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/assuan.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 BUILD_DOC_FALSE
666 BUILD_DOC_TRUE
667 LIBOBJS
668 USE_GPGRT_CONFIG_FALSE
669 USE_GPGRT_CONFIG_TRUE
670 GPG_ERROR_MT_LIBS
671 GPG_ERROR_MT_CFLAGS
672 GPG_ERROR_LIBS
673 GPG_ERROR_CFLAGS
674 GPGRT_CONFIG
675 GPG_ERROR_CONFIG
676 USE_DESCRIPTOR_PASSING_FALSE
677 USE_DESCRIPTOR_PASSING_TRUE
678 LIBASSUAN_CONFIG_API_VERSION
679 LIBASSUAN_CONFIG_HOST
680 LIBASSUAN_CONFIG_CFLAGS
681 LIBASSUAN_CONFIG_LIBS
682 NETLIBS
683 BUILD_TIMESTAMP
684 BUILD_FILEVERSION
685 BUILD_REVISION
686 HAVE_W64_SYSTEM_FALSE
687 HAVE_W64_SYSTEM_TRUE
688 HAVE_W32_SYSTEM_FALSE
689 HAVE_W32_SYSTEM_TRUE
690 EXEEXT_FOR_BUILD
691 CC_FOR_BUILD
692 CPP
693 HAVE_LD_VERSION_SCRIPT_FALSE
694 HAVE_LD_VERSION_SCRIPT_TRUE
695 RC
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 ac_ct_AR
704 AR
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 LIBTOOL
715 OBJDUMP
716 DLLTOOL
717 AS
718 VERSION_NUMBER
719 LDADD_FOR_TESTS_KLUDGE
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 AM_BACKSLASH
748 AM_DEFAULT_VERBOSITY
749 AM_DEFAULT_V
750 AM_V
751 CSCOPE
752 ETAGS
753 CTAGS
754 am__untar
755 am__tar
756 AMTAR
757 am__leading_dot
758 SET_MAKE
759 AWK
760 mkdir_p
761 MKDIR_P
762 INSTALL_STRIP_PROGRAM
763 STRIP
764 install_sh
765 MAKEINFO
766 AUTOHEADER
767 AUTOMAKE
768 AUTOCONF
769 ACLOCAL
770 VERSION
771 PACKAGE
772 CYGPATH_W
773 am__isrc
774 INSTALL_DATA
775 INSTALL_SCRIPT
776 INSTALL_PROGRAM
777 LIBASSUAN_LT_REVISION
778 LIBASSUAN_LT_AGE
779 LIBASSUAN_LT_CURRENT
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 runstatedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL
819 am__quote'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_maintainer_mode
825 enable_dependency_tracking
826 enable_static
827 enable_shared
828 with_pic
829 enable_fast_install
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 with_libtool_modification
834 enable_build_timestamp
835 with_libgpg_error_prefix
836 with_gpg_error_prefix
837 enable_doc
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CPP'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 runstatedir='${localstatedir}/run'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 case $ac_dashdash$ac_option in
917 --)
918 ac_dashdash=yes ;;
919
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
924
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
929
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
936
937 --config-cache | -C)
938 cache_file=config.cache ;;
939
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
944
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
951
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: \`$ac_useropt'"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
967
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
972
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
977
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: \`$ac_useropt'"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
993
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1002
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1006
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1013
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1018
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1024
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1031
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1036
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1041
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1048
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1053
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1060
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1065
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1069
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1073
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1077
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1086
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1091
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1098
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1105
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1122
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1127
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1132
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1136
1137 -runstatedir | --runstatedir | --runstatedi | --runstated \
1138 | --runstate | --runstat | --runsta | --runst | --runs \
1139 | --run | --ru | --r)
1140 ac_prev=runstatedir ;;
1141 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1142 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1143 | --run=* | --ru=* | --r=*)
1144 runstatedir=$ac_optarg ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: \`$ac_useropt'"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: \`$ac_useropt'"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir runstatedir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 printf "%s\n" X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures libassuan 3.0.2 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libassuan]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of libassuan 3.0.2:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-build-timestamp
1490 set an explicit build timestamp for reproducibility.
1491 (default is the current time in ISO-8601 format)
1492 --disable-doc do not build the documentation
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot=DIR Search for dependent libraries within DIR
1501 (or the compiler's sysroot if not specified).
1502 --with-libtool-modification=apply|never|try
1503 how to handle libtool modification (default=never)
1504 --with-libgpg-error-prefix=PFX
1505 prefix where GPG Error is installed (optional)
1506
1507
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <https://bugs.gnupg.org>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for configure.gnu first; this name is used for a wrapper for
1568 # Metaconfig's "Configure" on case-insensitive file systems.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 libassuan configure 3.0.2
1586 generated by GNU Autoconf 2.71
1587
1588 Copyright (C) 2021 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592 exit
1593 fi
1594
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1598
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest.beam
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 printf "%s\n" "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext
1625 then :
1626 ac_retval=0
1627 else $as_nop
1628 printf "%s\n" "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 printf %s "checking for $2... " >&6; }
1647 if eval test \${$3+y}
1648 then :
1649 printf %s "(cached) " >&6
1650 else $as_nop
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"
1657 then :
1658 eval "$3=yes"
1659 else $as_nop
1660 eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 printf "%s\n" "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 printf "%s\n" "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }
1700 then :
1701 ac_retval=0
1702 else $as_nop
1703 printf "%s\n" "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_link
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else $as_nop
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below. */
1738
1739 #include <limits.h>
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main (void)
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"
1765 then :
1766 eval "$3=yes"
1767 else $as_nop
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1771 conftest$ac_exeext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 printf "%s\n" "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_func
1779
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_cpp ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }
1805 then :
1806 ac_retval=0
1807 else $as_nop
1808 printf "%s\n" "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812 fi
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_cpp
1817
1818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1819 # -------------------------------------------
1820 # Tests whether TYPE exists after having included INCLUDES, setting cache
1821 # variable VAR accordingly.
1822 ac_fn_c_check_type ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 printf %s "checking for $2... " >&6; }
1827 if eval test \${$3+y}
1828 then :
1829 printf %s "(cached) " >&6
1830 else $as_nop
1831 eval "$3=no"
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 int
1836 main (void)
1837 {
1838 if (sizeof ($2))
1839 return 0;
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"
1845 then :
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 int
1850 main (void)
1851 {
1852 if (sizeof (($2)))
1853 return 0;
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"
1859 then :
1860
1861 else $as_nop
1862 eval "$3=yes"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 printf "%s\n" "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_type
1874
1875 # ac_fn_c_find_uintX_t LINENO BITS VAR
1876 # ------------------------------------
1877 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1878 # accordingly.
1879 ac_fn_c_find_uintX_t ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1883 printf %s "checking for uint$2_t... " >&6; }
1884 if eval test \${$3+y}
1885 then :
1886 printf %s "(cached) " >&6
1887 else $as_nop
1888 eval "$3=no"
1889 # Order is important - never check a type that is potentially smaller
1890 # than half of the expected target width.
1891 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1892 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 $ac_includes_default
1896 int
1897 main (void)
1898 {
1899 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1900 test_array [0] = 0;
1901 return test_array [0];
1902
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"
1908 then :
1909 case $ac_type in #(
1910 uint$2_t) :
1911 eval "$3=yes" ;; #(
1912 *) :
1913 eval "$3=\$ac_type" ;;
1914 esac
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1917 if eval test \"x\$"$3"\" = x"no"
1918 then :
1919
1920 else $as_nop
1921 break
1922 fi
1923 done
1924 fi
1925 eval ac_res=\$$3
1926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 printf "%s\n" "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_find_uintX_t
1931
1932 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1933 # ----------------------------------------------------
1934 # Tries to find if the field MEMBER exists in type AGGR, after including
1935 # INCLUDES, setting cache variable VAR accordingly.
1936 ac_fn_c_check_member ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1940 printf %s "checking for $2.$3... " >&6; }
1941 if eval test \${$4+y}
1942 then :
1943 printf %s "(cached) " >&6
1944 else $as_nop
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $5
1948 int
1949 main (void)
1950 {
1951 static $2 ac_aggr;
1952 if (ac_aggr.$3)
1953 return 0;
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 eval "$4=yes"
1961 else $as_nop
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $5
1965 int
1966 main (void)
1967 {
1968 static $2 ac_aggr;
1969 if (sizeof ac_aggr.$3)
1970 return 0;
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"
1976 then :
1977 eval "$4=yes"
1978 else $as_nop
1979 eval "$4=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$4
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 printf "%s\n" "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_member
1991 ac_configure_args_raw=
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 *\'*)
1996 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 as_fn_append ac_configure_args_raw " '$ac_arg'"
1999 done
2000
2001 case $ac_configure_args_raw in
2002 *$as_nl*)
2003 ac_safe_unquote= ;;
2004 *)
2005 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2006 ac_unsafe_a="$ac_unsafe_z#~"
2007 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2008 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2009 esac
2010
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2014
2015 It was created by libassuan $as_me 3.0.2, which was
2016 generated by GNU Autoconf 2.71. Invocation command line was
2017
2018 $ $0$ac_configure_args_raw
2019
2020 _ACEOF
2021 exec 5>>config.log
2022 {
2023 cat <<_ASUNAME
2024 ## --------- ##
2025 ## Platform. ##
2026 ## --------- ##
2027
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045 _ASUNAME
2046
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 case $as_dir in #(((
2052 '') as_dir=./ ;;
2053 */) ;;
2054 *) as_dir=$as_dir/ ;;
2055 esac
2056 printf "%s\n" "PATH: $as_dir"
2057 done
2058 IFS=$as_save_IFS
2059
2060 } >&5
2061
2062 cat >&5 <<_ACEOF
2063
2064
2065 ## ----------- ##
2066 ## Core tests. ##
2067 ## ----------- ##
2068
2069 _ACEOF
2070
2071
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_configure_args=
2078 ac_configure_args0=
2079 ac_configure_args1=
2080 ac_must_keep_next=false
2081 for ac_pass in 1 2
2082 do
2083 for ac_arg
2084 do
2085 case $ac_arg in
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2089 continue ;;
2090 *\'*)
2091 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 esac
2093 case $ac_pass in
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 2)
2096 as_fn_append ac_configure_args1 " '$ac_arg'"
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2099 else
2100 case $ac_arg in
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 esac
2108 ;;
2109 -* ) ac_must_keep_next=true ;;
2110 esac
2111 fi
2112 as_fn_append ac_configure_args " '$ac_arg'"
2113 ;;
2114 esac
2115 done
2116 done
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2119
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log. We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126 # Sanitize IFS.
2127 IFS=" "" $as_nl"
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
2132 printf "%s\n" "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2137 (
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2160 *)
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 ;;
2163 esac |
2164 sort
2165 )
2166 echo
2167
2168 printf "%s\n" "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2171 echo
2172 for ac_var in $ac_subst_vars
2173 do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 printf "%s\n" "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
2183 printf "%s\n" "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2186 echo
2187 for ac_var in $ac_subst_files
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 printf "%s\n" "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
2199 printf "%s\n" "## ----------- ##
2200 ## confdefs.h. ##
2201 ## ----------- ##"
2202 echo
2203 cat confdefs.h
2204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
2207 printf "%s\n" "$as_me: caught signal $ac_signal"
2208 printf "%s\n" "$as_me: exit $exit_status"
2209 } >&5
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 exit $exit_status
2213 ' 0
2214 for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2216 done
2217 ac_signal=0
2218
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2221
2222 printf "%s\n" "/* confdefs.h */" > confdefs.h
2223
2224 # Predefined preprocessor variables.
2225
2226 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2227
2228 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2229
2230 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2231
2232 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2233
2234 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2235
2236 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2237
2238
2239 # Let the site file select an alternate cache file if it wants to.
2240 # Prefer an explicitly selected file to automatically selected ones.
2241 if test -n "$CONFIG_SITE"; then
2242 ac_site_files="$CONFIG_SITE"
2243 elif test "x$prefix" != xNONE; then
2244 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2245 else
2246 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2247 fi
2248
2249 for ac_site_file in $ac_site_files
2250 do
2251 case $ac_site_file in #(
2252 */*) :
2253 ;; #(
2254 *) :
2255 ac_site_file=./$ac_site_file ;;
2256 esac
2257 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2259 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2260 sed 's/^/| /' "$ac_site_file" >&5
2261 . "$ac_site_file" \
2262 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2264 as_fn_error $? "failed to load site script $ac_site_file
2265 See \`config.log' for more details" "$LINENO" 5; }
2266 fi
2267 done
2268
2269 if test -r "$cache_file"; then
2270 # Some versions of bash will fail to source /dev/null (special files
2271 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2272 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2274 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2275 case $cache_file in
2276 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2277 *) . "./$cache_file";;
2278 esac
2279 fi
2280 else
2281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2282 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2283 >$cache_file
2284 fi
2285
2286 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2287 # Test code for whether the C compiler supports C89 (global declarations)
2288 ac_c_conftest_c89_globals='
2289 /* Does the compiler advertise C89 conformance?
2290 Do not test the value of __STDC__, because some compilers set it to 0
2291 while being otherwise adequately conformant. */
2292 #if !defined __STDC__
2293 # error "Compiler does not advertise C89 conformance"
2294 #endif
2295
2296 #include <stddef.h>
2297 #include <stdarg.h>
2298 struct stat;
2299 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2300 struct buf { int x; };
2301 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2302 static char *e (p, i)
2303 char **p;
2304 int i;
2305 {
2306 return p[i];
2307 }
2308 static char *f (char * (*g) (char **, int), char **p, ...)
2309 {
2310 char *s;
2311 va_list v;
2312 va_start (v,p);
2313 s = g (p, va_arg (v,int));
2314 va_end (v);
2315 return s;
2316 }
2317
2318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2319 function prototypes and stuff, but not \xHH hex character constants.
2320 These do not provoke an error unfortunately, instead are silently treated
2321 as an "x". The following induces an error, until -std is added to get
2322 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2323 array size at least. It is necessary to write \x00 == 0 to get something
2324 that is true only with -std. */
2325 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2326
2327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2328 inside strings and character constants. */
2329 #define FOO(x) '\''x'\''
2330 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2331
2332 int test (int i, double x);
2333 struct s1 {int (*f) (int a);};
2334 struct s2 {int (*f) (double a);};
2335 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2336 int, int);'
2337
2338 # Test code for whether the C compiler supports C89 (body of main).
2339 ac_c_conftest_c89_main='
2340 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2341 '
2342
2343 # Test code for whether the C compiler supports C99 (global declarations)
2344 ac_c_conftest_c99_globals='
2345 // Does the compiler advertise C99 conformance?
2346 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2347 # error "Compiler does not advertise C99 conformance"
2348 #endif
2349
2350 #include <stdbool.h>
2351 extern int puts (const char *);
2352 extern int printf (const char *, ...);
2353 extern int dprintf (int, const char *, ...);
2354 extern void *malloc (size_t);
2355
2356 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2357 // dprintf is used instead of fprintf to avoid needing to declare
2358 // FILE and stderr.
2359 #define debug(...) dprintf (2, __VA_ARGS__)
2360 #define showlist(...) puts (#__VA_ARGS__)
2361 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2362 static void
2363 test_varargs_macros (void)
2364 {
2365 int x = 1234;
2366 int y = 5678;
2367 debug ("Flag");
2368 debug ("X = %d\n", x);
2369 showlist (The first, second, and third items.);
2370 report (x>y, "x is %d but y is %d", x, y);
2371 }
2372
2373 // Check long long types.
2374 #define BIG64 18446744073709551615ull
2375 #define BIG32 4294967295ul
2376 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2377 #if !BIG_OK
2378 #error "your preprocessor is broken"
2379 #endif
2380 #if BIG_OK
2381 #else
2382 #error "your preprocessor is broken"
2383 #endif
2384 static long long int bignum = -9223372036854775807LL;
2385 static unsigned long long int ubignum = BIG64;
2386
2387 struct incomplete_array
2388 {
2389 int datasize;
2390 double data[];
2391 };
2392
2393 struct named_init {
2394 int number;
2395 const wchar_t *name;
2396 double average;
2397 };
2398
2399 typedef const char *ccp;
2400
2401 static inline int
2402 test_restrict (ccp restrict text)
2403 {
2404 // See if C++-style comments work.
2405 // Iterate through items via the restricted pointer.
2406 // Also check for declarations in for loops.
2407 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2408 continue;
2409 return 0;
2410 }
2411
2412 // Check varargs and va_copy.
2413 static bool
2414 test_varargs (const char *format, ...)
2415 {
2416 va_list args;
2417 va_start (args, format);
2418 va_list args_copy;
2419 va_copy (args_copy, args);
2420
2421 const char *str = "";
2422 int number = 0;
2423 float fnumber = 0;
2424
2425 while (*format)
2426 {
2427 switch (*format++)
2428 {
2429 case '\''s'\'': // string
2430 str = va_arg (args_copy, const char *);
2431 break;
2432 case '\''d'\'': // int
2433 number = va_arg (args_copy, int);
2434 break;
2435 case '\''f'\'': // float
2436 fnumber = va_arg (args_copy, double);
2437 break;
2438 default:
2439 break;
2440 }
2441 }
2442 va_end (args_copy);
2443 va_end (args);
2444
2445 return *str && number && fnumber;
2446 }
2447 '
2448
2449 # Test code for whether the C compiler supports C99 (body of main).
2450 ac_c_conftest_c99_main='
2451 // Check bool.
2452 _Bool success = false;
2453 success |= (argc != 0);
2454
2455 // Check restrict.
2456 if (test_restrict ("String literal") == 0)
2457 success = true;
2458 char *restrict newvar = "Another string";
2459
2460 // Check varargs.
2461 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2462 test_varargs_macros ();
2463
2464 // Check flexible array members.
2465 struct incomplete_array *ia =
2466 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2467 ia->datasize = 10;
2468 for (int i = 0; i < ia->datasize; ++i)
2469 ia->data[i] = i * 1.234;
2470
2471 // Check named initializers.
2472 struct named_init ni = {
2473 .number = 34,
2474 .name = L"Test wide string",
2475 .average = 543.34343,
2476 };
2477
2478 ni.number = 58;
2479
2480 int dynamic_array[ni.number];
2481 dynamic_array[0] = argv[0][0];
2482 dynamic_array[ni.number - 1] = 543;
2483
2484 // work around unused variable warnings
2485 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2486 || dynamic_array[ni.number - 1] != 543);
2487 '
2488
2489 # Test code for whether the C compiler supports C11 (global declarations)
2490 ac_c_conftest_c11_globals='
2491 // Does the compiler advertise C11 conformance?
2492 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2493 # error "Compiler does not advertise C11 conformance"
2494 #endif
2495
2496 // Check _Alignas.
2497 char _Alignas (double) aligned_as_double;
2498 char _Alignas (0) no_special_alignment;
2499 extern char aligned_as_int;
2500 char _Alignas (0) _Alignas (int) aligned_as_int;
2501
2502 // Check _Alignof.
2503 enum
2504 {
2505 int_alignment = _Alignof (int),
2506 int_array_alignment = _Alignof (int[100]),
2507 char_alignment = _Alignof (char)
2508 };
2509 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2510
2511 // Check _Noreturn.
2512 int _Noreturn does_not_return (void) { for (;;) continue; }
2513
2514 // Check _Static_assert.
2515 struct test_static_assert
2516 {
2517 int x;
2518 _Static_assert (sizeof (int) <= sizeof (long int),
2519 "_Static_assert does not work in struct");
2520 long int y;
2521 };
2522
2523 // Check UTF-8 literals.
2524 #define u8 syntax error!
2525 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2526
2527 // Check duplicate typedefs.
2528 typedef long *long_ptr;
2529 typedef long int *long_ptr;
2530 typedef long_ptr long_ptr;
2531
2532 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2533 struct anonymous
2534 {
2535 union {
2536 struct { int i; int j; };
2537 struct { int k; long int l; } w;
2538 };
2539 int m;
2540 } v1;
2541 '
2542
2543 # Test code for whether the C compiler supports C11 (body of main).
2544 ac_c_conftest_c11_main='
2545 _Static_assert ((offsetof (struct anonymous, i)
2546 == offsetof (struct anonymous, w.k)),
2547 "Anonymous union alignment botch");
2548 v1.i = 2;
2549 v1.w.k = 5;
2550 ok |= v1.i != 5;
2551 '
2552
2553 # Test code for whether the C compiler supports C11 (complete).
2554 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2555 ${ac_c_conftest_c99_globals}
2556 ${ac_c_conftest_c11_globals}
2557
2558 int
2559 main (int argc, char **argv)
2560 {
2561 int ok = 0;
2562 ${ac_c_conftest_c89_main}
2563 ${ac_c_conftest_c99_main}
2564 ${ac_c_conftest_c11_main}
2565 return ok;
2566 }
2567 "
2568
2569 # Test code for whether the C compiler supports C99 (complete).
2570 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2571 ${ac_c_conftest_c99_globals}
2572
2573 int
2574 main (int argc, char **argv)
2575 {
2576 int ok = 0;
2577 ${ac_c_conftest_c89_main}
2578 ${ac_c_conftest_c99_main}
2579 return ok;
2580 }
2581 "
2582
2583 # Test code for whether the C compiler supports C89 (complete).
2584 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2585
2586 int
2587 main (int argc, char **argv)
2588 {
2589 int ok = 0;
2590 ${ac_c_conftest_c89_main}
2591 return ok;
2592 }
2593 "
2594
2595 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2596 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2597 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2598 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2599 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2600 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2601 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2602 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2603 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2604 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2605 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2606
2607 # Auxiliary files required by this configure script.
2608 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2609
2610 # Locations in which to look for auxiliary files.
2611 ac_aux_dir_candidates="${srcdir}/build-aux"
2612
2613 # Search for a directory containing all of the required auxiliary files,
2614 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2615 # If we don't find one directory that contains all the files we need,
2616 # we report the set of missing files from the *first* directory in
2617 # $ac_aux_dir_candidates and give up.
2618 ac_missing_aux_files=""
2619 ac_first_candidate=:
2620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 as_found=false
2623 for as_dir in $ac_aux_dir_candidates
2624 do
2625 IFS=$as_save_IFS
2626 case $as_dir in #(((
2627 '') as_dir=./ ;;
2628 */) ;;
2629 *) as_dir=$as_dir/ ;;
2630 esac
2631 as_found=:
2632
2633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2634 ac_aux_dir_found=yes
2635 ac_install_sh=
2636 for ac_aux in $ac_aux_files
2637 do
2638 # As a special case, if "install-sh" is required, that requirement
2639 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2640 # and $ac_install_sh is set appropriately for whichever one is found.
2641 if test x"$ac_aux" = x"install-sh"
2642 then
2643 if test -f "${as_dir}install-sh"; then
2644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2645 ac_install_sh="${as_dir}install-sh -c"
2646 elif test -f "${as_dir}install.sh"; then
2647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2648 ac_install_sh="${as_dir}install.sh -c"
2649 elif test -f "${as_dir}shtool"; then
2650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2651 ac_install_sh="${as_dir}shtool install -c"
2652 else
2653 ac_aux_dir_found=no
2654 if $ac_first_candidate; then
2655 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2656 else
2657 break
2658 fi
2659 fi
2660 else
2661 if test -f "${as_dir}${ac_aux}"; then
2662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2663 else
2664 ac_aux_dir_found=no
2665 if $ac_first_candidate; then
2666 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2667 else
2668 break
2669 fi
2670 fi
2671 fi
2672 done
2673 if test "$ac_aux_dir_found" = yes; then
2674 ac_aux_dir="$as_dir"
2675 break
2676 fi
2677 ac_first_candidate=false
2678
2679 as_found=false
2680 done
2681 IFS=$as_save_IFS
2682 if $as_found
2683 then :
2684
2685 else $as_nop
2686 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2687 fi
2688
2689
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 if test -f "${ac_aux_dir}config.guess"; then
2695 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2696 fi
2697 if test -f "${ac_aux_dir}config.sub"; then
2698 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2699 fi
2700 if test -f "$ac_aux_dir/configure"; then
2701 ac_configure="$SHELL ${ac_aux_dir}configure"
2702 fi
2703
2704 # Check that the precious variables saved in the cache have kept the same
2705 # value.
2706 ac_cache_corrupted=false
2707 for ac_var in $ac_precious_vars; do
2708 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2709 eval ac_new_set=\$ac_env_${ac_var}_set
2710 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2711 eval ac_new_val=\$ac_env_${ac_var}_value
2712 case $ac_old_set,$ac_new_set in
2713 set,)
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2715 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2716 ac_cache_corrupted=: ;;
2717 ,set)
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2719 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2720 ac_cache_corrupted=: ;;
2721 ,);;
2722 *)
2723 if test "x$ac_old_val" != "x$ac_new_val"; then
2724 # differences in whitespace do not lead to failure.
2725 ac_old_val_w=`echo x $ac_old_val`
2726 ac_new_val_w=`echo x $ac_new_val`
2727 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2729 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2730 ac_cache_corrupted=:
2731 else
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2733 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2734 eval $ac_var=\$ac_old_val
2735 fi
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2737 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2739 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2740 fi;;
2741 esac
2742 # Pass precious variables to config.status.
2743 if test "$ac_new_set" = set; then
2744 case $ac_new_val in
2745 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2746 *) ac_arg=$ac_var=$ac_new_val ;;
2747 esac
2748 case " $ac_configure_args " in
2749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2750 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2751 esac
2752 fi
2753 done
2754 if $ac_cache_corrupted; then
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2758 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2759 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2760 and start over" "$LINENO" 5
2761 fi
2762 ## -------------------- ##
2763 ## Main body of script. ##
2764 ## -------------------- ##
2765
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772
2773
2774 # LT Version numbers, remember to change them just *before* a release.
2775 # (Code changed: REVISION++)
2776 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2777 # (Interfaces added: AGE++)
2778 # (Interfaces removed/changed: AGE=0)
2779 #
2780 LIBASSUAN_LT_CURRENT=9
2781 LIBASSUAN_LT_AGE=0
2782 LIBASSUAN_LT_REVISION=2
2783
2784 # If the API is changed in an incompatible way: increment the next counter.
2785 LIBASSUAN_CONFIG_API_VERSION=3
2786 ##############################################
2787
2788
2789
2790
2791
2792
2793 am__api_version='1.16'
2794
2795
2796
2797 # Find a good install program. We prefer a C program (faster),
2798 # so one script is as good as another. But avoid the broken or
2799 # incompatible versions:
2800 # SysV /etc/install, /usr/sbin/install
2801 # SunOS /usr/etc/install
2802 # IRIX /sbin/install
2803 # AIX /bin/install
2804 # AmigaOS /C/install, which installs bootblocks on floppy discs
2805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2808 # OS/2's system install, which has a completely different semantic
2809 # ./install, which can be erroneously created by make from ./install.sh.
2810 # Reject install programs that cannot install multiple files.
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2812 printf %s "checking for a BSD-compatible install... " >&6; }
2813 if test -z "$INSTALL"; then
2814 if test ${ac_cv_path_install+y}
2815 then :
2816 printf %s "(cached) " >&6
2817 else $as_nop
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 # Account for fact that we put trailing slashes in our PATH walk.
2828 case $as_dir in #((
2829 ./ | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 /usr/ucb/* ) ;;
2833 *)
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2843 :
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2847 :
2848 else
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2852 mkdir conftest.dir
2853 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2857 then
2858 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2859 break 3
2860 fi
2861 fi
2862 fi
2863 done
2864 done
2865 ;;
2866 esac
2867
2868 done
2869 IFS=$as_save_IFS
2870
2871 rm -rf conftest.one conftest.two conftest.dir
2872
2873 fi
2874 if test ${ac_cv_path_install+y}; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2882 fi
2883 fi
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 printf "%s\n" "$INSTALL" >&6; }
2886
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896 printf %s "checking whether build environment is sane... " >&6; }
2897 # Reject unsafe characters in $srcdir or the absolute working directory
2898 # name. Accept space and tab only in the latter.
2899 am_lf='
2900 '
2901 case `pwd` in
2902 *[\\\"\#\$\&\'\`$am_lf]*)
2903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2904 esac
2905 case $srcdir in
2906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908 esac
2909
2910 # Do 'set' in a subshell so we don't clobber the current shell's
2911 # arguments. Must try -L first in case configure is actually a
2912 # symlink; some systems play weird games with the mod time of symlinks
2913 # (eg FreeBSD returns the mod time of the symlink's containing
2914 # directory).
2915 if (
2916 am_has_slept=no
2917 for am_try in 1 2; do
2918 echo "timestamp, slept: $am_has_slept" > conftest.file
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2923 fi
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2926
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932 alias in your environment" "$LINENO" 5
2933 fi
2934 if test "$2" = conftest.file || test $am_try -eq 2; then
2935 break
2936 fi
2937 # Just in case.
2938 sleep 1
2939 am_has_slept=yes
2940 done
2941 test "$2" = conftest.file
2942 )
2943 then
2944 # Ok.
2945 :
2946 else
2947 as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2949 fi
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 printf "%s\n" "yes" >&6; }
2952 # If we didn't sleep, we still need to ensure time stamps of config.status and
2953 # generated files are strictly newer.
2954 am_sleep_pid=
2955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2956 ( sleep 1 ) &
2957 am_sleep_pid=$!
2958 fi
2959
2960 rm -f conftest.file
2961
2962 test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2971
2972
2973 # Expand $ac_aux_dir to an absolute path.
2974 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2975
2976
2977 if test x"${MISSING+set}" != xset; then
2978 MISSING="\${SHELL} '$am_aux_dir/missing'"
2979 fi
2980 # Use eval to expand $SHELL
2981 if eval "$MISSING --is-lightweight"; then
2982 am_missing_run="$MISSING "
2983 else
2984 am_missing_run=
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2986 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2987 fi
2988
2989 if test x"${install_sh+set}" != xset; then
2990 case $am_aux_dir in
2991 *\ * | *\ *)
2992 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2993 *)
2994 install_sh="\${SHELL} $am_aux_dir/install-sh"
2995 esac
2996 fi
2997
2998 # Installed binaries are usually stripped using 'strip' when the user
2999 # run "make install-strip". However 'strip' might not be the right
3000 # tool to use in cross-compilation environments, therefore Automake
3001 # will honor the 'STRIP' environment variable to overrule this program.
3002 if test "$cross_compiling" != no; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}strip; ac_word=$2
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 printf %s "checking for $ac_word... " >&6; }
3008 if test ${ac_cv_prog_STRIP+y}
3009 then :
3010 printf %s "(cached) " >&6
3011 else $as_nop
3012 if test -n "$STRIP"; then
3013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 case $as_dir in #(((
3020 '') as_dir=./ ;;
3021 */) ;;
3022 *) as_dir=$as_dir/ ;;
3023 esac
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 STRIP=$ac_cv_prog_STRIP
3037 if test -n "$STRIP"; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3039 printf "%s\n" "$STRIP" >&6; }
3040 else
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 printf "%s\n" "no" >&6; }
3043 fi
3044
3045
3046 fi
3047 if test -z "$ac_cv_prog_STRIP"; then
3048 ac_ct_STRIP=$STRIP
3049 # Extract the first word of "strip", so it can be a program name with args.
3050 set dummy strip; ac_word=$2
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 printf %s "checking for $ac_word... " >&6; }
3053 if test ${ac_cv_prog_ac_ct_STRIP+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else $as_nop
3057 if test -n "$ac_ct_STRIP"; then
3058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_ac_ct_STRIP="strip"
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3082 if test -n "$ac_ct_STRIP"; then
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3084 printf "%s\n" "$ac_ct_STRIP" >&6; }
3085 else
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 printf "%s\n" "no" >&6; }
3088 fi
3089
3090 if test "x$ac_ct_STRIP" = x; then
3091 STRIP=":"
3092 else
3093 case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099 STRIP=$ac_ct_STRIP
3100 fi
3101 else
3102 STRIP="$ac_cv_prog_STRIP"
3103 fi
3104
3105 fi
3106 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3107
3108
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3110 printf %s "checking for a race-free mkdir -p... " >&6; }
3111 if test -z "$MKDIR_P"; then
3112 if test ${ac_cv_path_mkdir+y}
3113 then :
3114 printf %s "(cached) " >&6
3115 else $as_nop
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3118 do
3119 IFS=$as_save_IFS
3120 case $as_dir in #(((
3121 '') as_dir=./ ;;
3122 */) ;;
3123 *) as_dir=$as_dir/ ;;
3124 esac
3125 for ac_prog in mkdir gmkdir; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3128 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3129 'mkdir ('*'coreutils) '* | \
3130 'BusyBox '* | \
3131 'mkdir (fileutils) '4.1*)
3132 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3133 break 3;;
3134 esac
3135 done
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141
3142 test -d ./--version && rmdir ./--version
3143 if test ${ac_cv_path_mkdir+y}; then
3144 MKDIR_P="$ac_cv_path_mkdir -p"
3145 else
3146 # As a last resort, use the slow shell script. Don't cache a
3147 # value for MKDIR_P within a source directory, because that will
3148 # break other packages using the cache if that directory is
3149 # removed, or if the value is a relative name.
3150 MKDIR_P="$ac_install_sh -d"
3151 fi
3152 fi
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3154 printf "%s\n" "$MKDIR_P" >&6; }
3155
3156 for ac_prog in gawk mawk nawk awk
3157 do
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 printf %s "checking for $ac_word... " >&6; }
3162 if test ${ac_cv_prog_AWK+y}
3163 then :
3164 printf %s "(cached) " >&6
3165 else $as_nop
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 case $as_dir in #(((
3174 '') as_dir=./ ;;
3175 */) ;;
3176 *) as_dir=$as_dir/ ;;
3177 esac
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_AWK="$ac_prog"
3181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 AWK=$ac_cv_prog_AWK
3191 if test -n "$AWK"; then
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 printf "%s\n" "$AWK" >&6; }
3194 else
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 printf "%s\n" "no" >&6; }
3197 fi
3198
3199
3200 test -n "$AWK" && break
3201 done
3202
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 set x ${MAKE-make}
3206 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3208 then :
3209 printf %s "(cached) " >&6
3210 else $as_nop
3211 cat >conftest.make <<\_ACEOF
3212 SHELL = /bin/sh
3213 all:
3214 @echo '@@@%%%=$(MAKE)=@@@%%%'
3215 _ACEOF
3216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 *@@@%%%=?*=@@@%%%*)
3219 eval ac_cv_prog_make_${ac_make}_set=yes;;
3220 *)
3221 eval ac_cv_prog_make_${ac_make}_set=no;;
3222 esac
3223 rm -f conftest.make
3224 fi
3225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 printf "%s\n" "yes" >&6; }
3228 SET_MAKE=
3229 else
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 printf "%s\n" "no" >&6; }
3232 SET_MAKE="MAKE=${MAKE-make}"
3233 fi
3234
3235 rm -rf .tst 2>/dev/null
3236 mkdir .tst 2>/dev/null
3237 if test -d .tst; then
3238 am__leading_dot=.
3239 else
3240 am__leading_dot=_
3241 fi
3242 rmdir .tst 2>/dev/null
3243
3244 # Check whether --enable-silent-rules was given.
3245 if test ${enable_silent_rules+y}
3246 then :
3247 enableval=$enable_silent_rules;
3248 fi
3249
3250 case $enable_silent_rules in # (((
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no) AM_DEFAULT_VERBOSITY=1;;
3253 *) AM_DEFAULT_VERBOSITY=1;;
3254 esac
3255 am_make=${MAKE-make}
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3257 printf %s "checking whether $am_make supports nested variables... " >&6; }
3258 if test ${am_cv_make_support_nested_variables+y}
3259 then :
3260 printf %s "(cached) " >&6
3261 else $as_nop
3262 if printf "%s\n" 'TRUE=$(BAR$(V))
3263 BAR0=false
3264 BAR1=true
3265 V=1
3266 am__doit:
3267 @$(TRUE)
3268 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3269 am_cv_make_support_nested_variables=yes
3270 else
3271 am_cv_make_support_nested_variables=no
3272 fi
3273 fi
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3275 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3276 if test $am_cv_make_support_nested_variables = yes; then
3277 AM_V='$(V)'
3278 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3279 else
3280 AM_V=$AM_DEFAULT_VERBOSITY
3281 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3282 fi
3283 AM_BACKSLASH='\'
3284
3285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3287 # is not polluted with repeated "-I."
3288 am__isrc=' -I$(srcdir)'
3289 # test to see if srcdir already configured
3290 if test -f $srcdir/config.status; then
3291 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3292 fi
3293 fi
3294
3295 # test whether we have cygpath
3296 if test -z "$CYGPATH_W"; then
3297 if (cygpath --version) >/dev/null 2>/dev/null; then
3298 CYGPATH_W='cygpath -w'
3299 else
3300 CYGPATH_W=echo
3301 fi
3302 fi
3303
3304
3305 # Define the identity of the package.
3306 PACKAGE='libassuan'
3307 VERSION='3.0.2'
3308
3309
3310 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3311
3312
3313 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3314
3315 # Some tools Automake needs.
3316
3317 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318
3319
3320 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321
3322
3323 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324
3325
3326 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327
3328
3329 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3330
3331 # For better backward compatibility. To be removed once Automake 1.9.x
3332 # dies out for good. For more background, see:
3333 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3334 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3335 mkdir_p='$(MKDIR_P)'
3336
3337 # We need awk for the "check" target (and possibly the TAP driver). The
3338 # system "awk" is bad on some platforms.
3339 # Always define AMTAR for backward compatibility. Yes, it's still used
3340 # in the wild :-( We should find a proper way to deprecate it ...
3341 AMTAR='$${TAR-tar}'
3342
3343
3344 # We'll loop over all known methods to create a tar archive until one works.
3345 _am_tools='gnutar pax cpio none'
3346
3347 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3348
3349
3350
3351
3352
3353 # Variables for tags utilities; see am/tags.am
3354 if test -z "$CTAGS"; then
3355 CTAGS=ctags
3356 fi
3357
3358 if test -z "$ETAGS"; then
3359 ETAGS=etags
3360 fi
3361
3362 if test -z "$CSCOPE"; then
3363 CSCOPE=cscope
3364 fi
3365
3366
3367
3368 # POSIX will say in a future version that running "rm -f" with no argument
3369 # is OK; and we want to be able to make that assumption in our Makefile
3370 # recipes. So use an aggressive probe to check that the usage we want is
3371 # actually supported "in the wild" to an acceptable degree.
3372 # See automake bug#10828.
3373 # To make any issue more visible, cause the running configure to be aborted
3374 # by default if the 'rm' program in use doesn't match our expectations; the
3375 # user can still override this though.
3376 if rm -f && rm -fr && rm -rf; then : OK; else
3377 cat >&2 <<'END'
3378 Oops!
3379
3380 Your 'rm' program seems unable to run without file operands specified
3381 on the command line, even when the '-f' option is present. This is contrary
3382 to the behaviour of most rm programs out there, and not conforming with
3383 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3384
3385 Please tell [email protected] about your system, including the value
3386 of your $PATH and any error possibly output before this message. This
3387 can help us improve future automake versions.
3388
3389 END
3390 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3391 echo 'Configuration will proceed anyway, since you have set the' >&2
3392 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3393 echo >&2
3394 else
3395 cat >&2 <<'END'
3396 Aborting the configuration process, to ensure you take notice of the issue.
3397
3398 You can download and install GNU coreutils to get an 'rm' implementation
3399 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3400
3401 If you want to complete the configuration process using your problematic
3402 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3403 to "yes", and re-run configure.
3404
3405 END
3406 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3407 fi
3408 fi
3409
3410
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test ${enable_maintainer_mode+y}
3415 then :
3416 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3417 else $as_nop
3418 USE_MAINTAINER_MODE=no
3419 fi
3420
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3422 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3423 if test $USE_MAINTAINER_MODE = yes; then
3424 MAINTAINER_MODE_TRUE=
3425 MAINTAINER_MODE_FALSE='#'
3426 else
3427 MAINTAINER_MODE_TRUE='#'
3428 MAINTAINER_MODE_FALSE=
3429 fi
3430
3431 MAINT=$MAINTAINER_MODE_TRUE
3432
3433
3434
3435
3436 ac_config_headers="$ac_config_headers config.h"
3437
3438
3439
3440 # Make sure we can run config.sub.
3441 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3442 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3443
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3445 printf %s "checking build system type... " >&6; }
3446 if test ${ac_cv_build+y}
3447 then :
3448 printf %s "(cached) " >&6
3449 else $as_nop
3450 ac_build_alias=$build_alias
3451 test "x$ac_build_alias" = x &&
3452 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3453 test "x$ac_build_alias" = x &&
3454 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3455 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3456 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3457
3458 fi
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3460 printf "%s\n" "$ac_cv_build" >&6; }
3461 case $ac_cv_build in
3462 *-*-*) ;;
3463 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3464 esac
3465 build=$ac_cv_build
3466 ac_save_IFS=$IFS; IFS='-'
3467 set x $ac_cv_build
3468 shift
3469 build_cpu=$1
3470 build_vendor=$2
3471 shift; shift
3472 # Remember, the first character of IFS is used to create $*,
3473 # except with old shells:
3474 build_os=$*
3475 IFS=$ac_save_IFS
3476 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3477
3478
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3480 printf %s "checking host system type... " >&6; }
3481 if test ${ac_cv_host+y}
3482 then :
3483 printf %s "(cached) " >&6
3484 else $as_nop
3485 if test "x$host_alias" = x; then
3486 ac_cv_host=$ac_cv_build
3487 else
3488 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3489 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3490 fi
3491
3492 fi
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3494 printf "%s\n" "$ac_cv_host" >&6; }
3495 case $ac_cv_host in
3496 *-*-*) ;;
3497 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3498 esac
3499 host=$ac_cv_host
3500 ac_save_IFS=$IFS; IFS='-'
3501 set x $ac_cv_host
3502 shift
3503 host_cpu=$1
3504 host_vendor=$2
3505 shift; shift
3506 # Remember, the first character of IFS is used to create $*,
3507 # except with old shells:
3508 host_os=$*
3509 IFS=$ac_save_IFS
3510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3511
3512
3513 # Check whether --enable-silent-rules was given.
3514 if test ${enable_silent_rules+y}
3515 then :
3516 enableval=$enable_silent_rules;
3517 fi
3518
3519 case $enable_silent_rules in # (((
3520 yes) AM_DEFAULT_VERBOSITY=0;;
3521 no) AM_DEFAULT_VERBOSITY=1;;
3522 *) AM_DEFAULT_VERBOSITY=1;;
3523 esac
3524 am_make=${MAKE-make}
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3526 printf %s "checking whether $am_make supports nested variables... " >&6; }
3527 if test ${am_cv_make_support_nested_variables+y}
3528 then :
3529 printf %s "(cached) " >&6
3530 else $as_nop
3531 if printf "%s\n" 'TRUE=$(BAR$(V))
3532 BAR0=false
3533 BAR1=true
3534 V=1
3535 am__doit:
3536 @$(TRUE)
3537 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3538 am_cv_make_support_nested_variables=yes
3539 else
3540 am_cv_make_support_nested_variables=no
3541 fi
3542 fi
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3544 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3545 if test $am_cv_make_support_nested_variables = yes; then
3546 AM_V='$(V)'
3547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3548 else
3549 AM_V=$AM_DEFAULT_VERBOSITY
3550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3551 fi
3552 AM_BACKSLASH='\'
3553
3554
3555
3556
3557
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3559 printf "%s\n" "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3561 printf "%s\n" "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3562 hostname=`hostname`
3563 if test "$hostname"; then
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3565 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
3566 fi
3567
3568 date=`date +%Y%m%d-%H%M%S`
3569 if test "$?" != 0; then
3570 date=`date`
3571 fi
3572 if test "$date"; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3574 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
3575 fi
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587 DEPDIR="${am__leading_dot}deps"
3588
3589 ac_config_commands="$ac_config_commands depfiles"
3590
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3592 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3593 cat > confinc.mk << 'END'
3594 am__doit:
3595 @echo this is the am__doit target >confinc.out
3596 .PHONY: am__doit
3597 END
3598 am__include="#"
3599 am__quote=
3600 # BSD make does it like this.
3601 echo '.include "confinc.mk" # ignored' > confmf.BSD
3602 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3603 echo 'include confinc.mk # ignored' > confmf.GNU
3604 _am_result=no
3605 for s in GNU BSD; do
3606 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3607 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }
3611 case $?:`cat confinc.out 2>/dev/null` in #(
3612 '0:this is the am__doit target') :
3613 case $s in #(
3614 BSD) :
3615 am__include='.include' am__quote='"' ;; #(
3616 *) :
3617 am__include='include' am__quote='' ;;
3618 esac ;; #(
3619 *) :
3620 ;;
3621 esac
3622 if test "$am__include" != "#"; then
3623 _am_result="yes ($s style)"
3624 break
3625 fi
3626 done
3627 rm -f confinc.* confmf.*
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3629 printf "%s\n" "${_am_result}" >&6; }
3630
3631 # Check whether --enable-dependency-tracking was given.
3632 if test ${enable_dependency_tracking+y}
3633 then :
3634 enableval=$enable_dependency_tracking;
3635 fi
3636
3637 if test "x$enable_dependency_tracking" != xno; then
3638 am_depcomp="$ac_aux_dir/depcomp"
3639 AMDEPBACKSLASH='\'
3640 am__nodep='_no'
3641 fi
3642 if test "x$enable_dependency_tracking" != xno; then
3643 AMDEP_TRUE=
3644 AMDEP_FALSE='#'
3645 else
3646 AMDEP_TRUE='#'
3647 AMDEP_FALSE=
3648 fi
3649
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 printf %s "checking for $ac_word... " >&6; }
3661 if test ${ac_cv_prog_CC+y}
3662 then :
3663 printf %s "(cached) " >&6
3664 else $as_nop
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671 IFS=$as_save_IFS
3672 case $as_dir in #(((
3673 '') as_dir=./ ;;
3674 */) ;;
3675 *) as_dir=$as_dir/ ;;
3676 esac
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 printf "%s\n" "$CC" >&6; }
3693 else
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 printf "%s\n" "no" >&6; }
3696 fi
3697
3698
3699 fi
3700 if test -z "$ac_cv_prog_CC"; then
3701 ac_ct_CC=$CC
3702 # Extract the first word of "gcc", so it can be a program name with args.
3703 set dummy gcc; ac_word=$2
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 printf %s "checking for $ac_word... " >&6; }
3706 if test ${ac_cv_prog_ac_ct_CC+y}
3707 then :
3708 printf %s "(cached) " >&6
3709 else $as_nop
3710 if test -n "$ac_ct_CC"; then
3711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716 IFS=$as_save_IFS
3717 case $as_dir in #(((
3718 '') as_dir=./ ;;
3719 */) ;;
3720 *) as_dir=$as_dir/ ;;
3721 esac
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_ac_ct_CC="gcc"
3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3735 if test -n "$ac_ct_CC"; then
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3737 printf "%s\n" "$ac_ct_CC" >&6; }
3738 else
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 printf "%s\n" "no" >&6; }
3741 fi
3742
3743 if test "x$ac_ct_CC" = x; then
3744 CC=""
3745 else
3746 case $cross_compiling:$ac_tool_warned in
3747 yes:)
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3751 esac
3752 CC=$ac_ct_CC
3753 fi
3754 else
3755 CC="$ac_cv_prog_CC"
3756 fi
3757
3758 if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}cc; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_CC+y}
3765 then :
3766 printf %s "(cached) " >&6
3767 else $as_nop
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 case $as_dir in #(((
3776 '') as_dir=./ ;;
3777 */) ;;
3778 *) as_dir=$as_dir/ ;;
3779 esac
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_CC="${ac_tool_prefix}cc"
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786 done
3787 done
3788 IFS=$as_save_IFS
3789
3790 fi
3791 fi
3792 CC=$ac_cv_prog_CC
3793 if test -n "$CC"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795 printf "%s\n" "$CC" >&6; }
3796 else
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3799 fi
3800
3801
3802 fi
3803 fi
3804 if test -z "$CC"; then
3805 # Extract the first word of "cc", so it can be a program name with args.
3806 set dummy cc; ac_word=$2
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_CC+y}
3810 then :
3811 printf %s "(cached) " >&6
3812 else $as_nop
3813 if test -n "$CC"; then
3814 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 else
3816 ac_prog_rejected=no
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 case $as_dir in #(((
3822 '') as_dir=./ ;;
3823 */) ;;
3824 *) as_dir=$as_dir/ ;;
3825 esac
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3828 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829 ac_prog_rejected=yes
3830 continue
3831 fi
3832 ac_cv_prog_CC="cc"
3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836 done
3837 done
3838 IFS=$as_save_IFS
3839
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3843 shift
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3848 shift
3849 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3850 fi
3851 fi
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 printf "%s\n" "$CC" >&6; }
3858 else
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 printf "%s\n" "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 for ac_prog in cl.exe
3868 do
3869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 printf %s "checking for $ac_word... " >&6; }
3873 if test ${ac_cv_prog_CC+y}
3874 then :
3875 printf %s "(cached) " >&6
3876 else $as_nop
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC="$CC" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883 IFS=$as_save_IFS
3884 case $as_dir in #(((
3885 '') as_dir=./ ;;
3886 */) ;;
3887 *) as_dir=$as_dir/ ;;
3888 esac
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 printf "%s\n" "$CC" >&6; }
3905 else
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 printf "%s\n" "no" >&6; }
3908 fi
3909
3910
3911 test -n "$CC" && break
3912 done
3913 fi
3914 if test -z "$CC"; then
3915 ac_ct_CC=$CC
3916 for ac_prog in cl.exe
3917 do
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 printf %s "checking for $ac_word... " >&6; }
3922 if test ${ac_cv_prog_ac_ct_CC+y}
3923 then :
3924 printf %s "(cached) " >&6
3925 else $as_nop
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 case $as_dir in #(((
3934 '') as_dir=./ ;;
3935 */) ;;
3936 *) as_dir=$as_dir/ ;;
3937 esac
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_CC="$ac_prog"
3941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944 done
3945 done
3946 IFS=$as_save_IFS
3947
3948 fi
3949 fi
3950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3951 if test -n "$ac_ct_CC"; then
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3953 printf "%s\n" "$ac_ct_CC" >&6; }
3954 else
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 printf "%s\n" "no" >&6; }
3957 fi
3958
3959
3960 test -n "$ac_ct_CC" && break
3961 done
3962
3963 if test "x$ac_ct_CC" = x; then
3964 CC=""
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972 CC=$ac_ct_CC
3973 fi
3974 fi
3975
3976 fi
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}clang; ac_word=$2
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 printf %s "checking for $ac_word... " >&6; }
3983 if test ${ac_cv_prog_CC+y}
3984 then :
3985 printf %s "(cached) " >&6
3986 else $as_nop
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 case $as_dir in #(((
3995 '') as_dir=./ ;;
3996 */) ;;
3997 *) as_dir=$as_dir/ ;;
3998 esac
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_CC="${ac_tool_prefix}clang"
4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 printf "%s\n" "$CC" >&6; }
4015 else
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 printf "%s\n" "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 if test -z "$ac_cv_prog_CC"; then
4023 ac_ct_CC=$CC
4024 # Extract the first word of "clang", so it can be a program name with args.
4025 set dummy clang; ac_word=$2
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 printf %s "checking for $ac_word... " >&6; }
4028 if test ${ac_cv_prog_ac_ct_CC+y}
4029 then :
4030 printf %s "(cached) " >&6
4031 else $as_nop
4032 if test -n "$ac_ct_CC"; then
4033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 case $as_dir in #(((
4040 '') as_dir=./ ;;
4041 */) ;;
4042 *) as_dir=$as_dir/ ;;
4043 esac
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_CC="clang"
4047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 printf "%s\n" "$ac_ct_CC" >&6; }
4060 else
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 printf "%s\n" "no" >&6; }
4063 fi
4064
4065 if test "x$ac_ct_CC" = x; then
4066 CC=""
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 CC=$ac_ct_CC
4075 fi
4076 else
4077 CC="$ac_cv_prog_CC"
4078 fi
4079
4080 fi
4081
4082
4083 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "no acceptable C compiler found in \$PATH
4086 See \`config.log' for more details" "$LINENO" 5; }
4087
4088 # Provide some information about the compiler.
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4090 set X $ac_compile
4091 ac_compiler=$2
4092 for ac_option in --version -v -V -qversion -version; do
4093 { { ac_try="$ac_compiler $ac_option >&5"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 printf "%s\n" "$ac_try_echo"; } >&5
4100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4101 ac_status=$?
4102 if test -s conftest.err; then
4103 sed '10a\
4104 ... rest of stderr output deleted ...
4105 10q' conftest.err >conftest.er1
4106 cat conftest.er1 >&5
4107 fi
4108 rm -f conftest.er1 conftest.err
4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 done
4112
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main (void)
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 ac_clean_files_save=$ac_clean_files
4125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126 # Try to create an executable without -o first, disregard a.out.
4127 # It will help us diagnose broken compilers, and finding out an intuition
4128 # of exeext.
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4130 printf %s "checking whether the C compiler works... " >&6; }
4131 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4132
4133 # The possible output files:
4134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4135
4136 ac_rmfiles=
4137 for ac_file in $ac_files
4138 do
4139 case $ac_file in
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4142 esac
4143 done
4144 rm -f $ac_rmfiles
4145
4146 if { { ac_try="$ac_link_default"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 printf "%s\n" "$ac_try_echo"; } >&5
4153 (eval "$ac_link_default") 2>&5
4154 ac_status=$?
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }
4157 then :
4158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4161 # so that the user can short-circuit this test for compilers unknown to
4162 # Autoconf.
4163 for ac_file in $ac_files ''
4164 do
4165 test -f "$ac_file" || continue
4166 case $ac_file in
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4168 ;;
4169 [ab].out )
4170 # We found the default executable, but exeext='' is most
4171 # certainly right.
4172 break;;
4173 *.* )
4174 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4175 then :; else
4176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4177 fi
4178 # We set ac_cv_exeext here because the later test for it is not
4179 # safe: cross compilers may not add the suffix if given an `-o'
4180 # argument, so we may need to know it at that point already.
4181 # Even if this section looks crufty: it has the advantage of
4182 # actually working.
4183 break;;
4184 * )
4185 break;;
4186 esac
4187 done
4188 test "$ac_cv_exeext" = no && ac_cv_exeext=
4189
4190 else $as_nop
4191 ac_file=''
4192 fi
4193 if test -z "$ac_file"
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 printf "%s\n" "no" >&6; }
4197 printf "%s\n" "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4202 as_fn_error 77 "C compiler cannot create executables
4203 See \`config.log' for more details" "$LINENO" 5; }
4204 else $as_nop
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4206 printf "%s\n" "yes" >&6; }
4207 fi
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4209 printf %s "checking for C compiler default output file name... " >&6; }
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4211 printf "%s\n" "$ac_file" >&6; }
4212 ac_exeext=$ac_cv_exeext
4213
4214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4215 ac_clean_files=$ac_clean_files_save
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4217 printf %s "checking for suffix of executables... " >&6; }
4218 if { { ac_try="$ac_link"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 printf "%s\n" "$ac_try_echo"; } >&5
4225 (eval "$ac_link") 2>&5
4226 ac_status=$?
4227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4229 then :
4230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4232 # work properly (i.e., refer to `conftest.exe'), while it won't with
4233 # `rm'.
4234 for ac_file in conftest.exe conftest conftest.*; do
4235 test -f "$ac_file" || continue
4236 case $ac_file in
4237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 break;;
4240 * ) break;;
4241 esac
4242 done
4243 else $as_nop
4244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4245 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4247 See \`config.log' for more details" "$LINENO" 5; }
4248 fi
4249 rm -f conftest conftest$ac_cv_exeext
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4251 printf "%s\n" "$ac_cv_exeext" >&6; }
4252
4253 rm -f conftest.$ac_ext
4254 EXEEXT=$ac_cv_exeext
4255 ac_exeext=$EXEEXT
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdio.h>
4259 int
4260 main (void)
4261 {
4262 FILE *f = fopen ("conftest.out", "w");
4263 return ferror (f) || fclose (f) != 0;
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 ac_clean_files="$ac_clean_files conftest.out"
4270 # Check that the compiler produces executables we can run. If not, either
4271 # the compiler is broken, or we cross compile.
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4273 printf %s "checking whether we are cross compiling... " >&6; }
4274 if test "$cross_compiling" != yes; then
4275 { { ac_try="$ac_link"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 printf "%s\n" "$ac_try_echo"; } >&5
4282 (eval "$ac_link") 2>&5
4283 ac_status=$?
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4286 if { ac_try='./conftest$ac_cv_exeext'
4287 { { case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 printf "%s\n" "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; }; then
4297 cross_compiling=no
4298 else
4299 if test "$cross_compiling" = maybe; then
4300 cross_compiling=yes
4301 else
4302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error 77 "cannot run C compiled programs.
4305 If you meant to cross compile, use \`--host'.
4306 See \`config.log' for more details" "$LINENO" 5; }
4307 fi
4308 fi
4309 fi
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4311 printf "%s\n" "$cross_compiling" >&6; }
4312
4313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4314 ac_clean_files=$ac_clean_files_save
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4316 printf %s "checking for suffix of object files... " >&6; }
4317 if test ${ac_cv_objext+y}
4318 then :
4319 printf %s "(cached) " >&6
4320 else $as_nop
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323
4324 int
4325 main (void)
4326 {
4327
4328 ;
4329 return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.o conftest.obj
4333 if { { ac_try="$ac_compile"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf "%s\n" "$ac_try_echo"; } >&5
4340 (eval "$ac_compile") 2>&5
4341 ac_status=$?
4342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 then :
4345 for ac_file in conftest.o conftest.obj conftest.*; do
4346 test -f "$ac_file" || continue;
4347 case $ac_file in
4348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4350 break;;
4351 esac
4352 done
4353 else $as_nop
4354 printf "%s\n" "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4359 as_fn_error $? "cannot compute suffix of object files: cannot compile
4360 See \`config.log' for more details" "$LINENO" 5; }
4361 fi
4362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4363 fi
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4365 printf "%s\n" "$ac_cv_objext" >&6; }
4366 OBJEXT=$ac_cv_objext
4367 ac_objext=$OBJEXT
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4369 printf %s "checking whether the compiler supports GNU C... " >&6; }
4370 if test ${ac_cv_c_compiler_gnu+y}
4371 then :
4372 printf %s "(cached) " >&6
4373 else $as_nop
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main (void)
4379 {
4380 #ifndef __GNUC__
4381 choke me
4382 #endif
4383
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"
4389 then :
4390 ac_compiler_gnu=yes
4391 else $as_nop
4392 ac_compiler_gnu=no
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4396
4397 fi
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4399 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402 if test $ac_compiler_gnu = yes; then
4403 GCC=yes
4404 else
4405 GCC=
4406 fi
4407 ac_test_CFLAGS=${CFLAGS+y}
4408 ac_save_CFLAGS=$CFLAGS
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4410 printf %s "checking whether $CC accepts -g... " >&6; }
4411 if test ${ac_cv_prog_cc_g+y}
4412 then :
4413 printf %s "(cached) " >&6
4414 else $as_nop
4415 ac_save_c_werror_flag=$ac_c_werror_flag
4416 ac_c_werror_flag=yes
4417 ac_cv_prog_cc_g=no
4418 CFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421
4422 int
4423 main (void)
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"
4431 then :
4432 ac_cv_prog_cc_g=yes
4433 else $as_nop
4434 CFLAGS=""
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"
4447 then :
4448
4449 else $as_nop
4450 ac_c_werror_flag=$ac_save_c_werror_flag
4451 CFLAGS="-g"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454
4455 int
4456 main (void)
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"
4464 then :
4465 ac_cv_prog_cc_g=yes
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4472 ac_c_werror_flag=$ac_save_c_werror_flag
4473 fi
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4475 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4476 if test $ac_test_CFLAGS; then
4477 CFLAGS=$ac_save_CFLAGS
4478 elif test $ac_cv_prog_cc_g = yes; then
4479 if test "$GCC" = yes; then
4480 CFLAGS="-g -O2"
4481 else
4482 CFLAGS="-g"
4483 fi
4484 else
4485 if test "$GCC" = yes; then
4486 CFLAGS="-O2"
4487 else
4488 CFLAGS=
4489 fi
4490 fi
4491 ac_prog_cc_stdc=no
4492 if test x$ac_prog_cc_stdc = xno
4493 then :
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4495 printf %s "checking for $CC option to enable C11 features... " >&6; }
4496 if test ${ac_cv_prog_cc_c11+y}
4497 then :
4498 printf %s "(cached) " >&6
4499 else $as_nop
4500 ac_cv_prog_cc_c11=no
4501 ac_save_CC=$CC
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 $ac_c_conftest_c11_program
4505 _ACEOF
4506 for ac_arg in '' -std=gnu11
4507 do
4508 CC="$ac_save_CC $ac_arg"
4509 if ac_fn_c_try_compile "$LINENO"
4510 then :
4511 ac_cv_prog_cc_c11=$ac_arg
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.beam
4514 test "x$ac_cv_prog_cc_c11" != "xno" && break
4515 done
4516 rm -f conftest.$ac_ext
4517 CC=$ac_save_CC
4518 fi
4519
4520 if test "x$ac_cv_prog_cc_c11" = xno
4521 then :
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4523 printf "%s\n" "unsupported" >&6; }
4524 else $as_nop
4525 if test "x$ac_cv_prog_cc_c11" = x
4526 then :
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528 printf "%s\n" "none needed" >&6; }
4529 else $as_nop
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4531 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4532 CC="$CC $ac_cv_prog_cc_c11"
4533 fi
4534 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4535 ac_prog_cc_stdc=c11
4536 fi
4537 fi
4538 if test x$ac_prog_cc_stdc = xno
4539 then :
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4541 printf %s "checking for $CC option to enable C99 features... " >&6; }
4542 if test ${ac_cv_prog_cc_c99+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else $as_nop
4546 ac_cv_prog_cc_c99=no
4547 ac_save_CC=$CC
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 $ac_c_conftest_c99_program
4551 _ACEOF
4552 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4553 do
4554 CC="$ac_save_CC $ac_arg"
4555 if ac_fn_c_try_compile "$LINENO"
4556 then :
4557 ac_cv_prog_cc_c99=$ac_arg
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.beam
4560 test "x$ac_cv_prog_cc_c99" != "xno" && break
4561 done
4562 rm -f conftest.$ac_ext
4563 CC=$ac_save_CC
4564 fi
4565
4566 if test "x$ac_cv_prog_cc_c99" = xno
4567 then :
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4569 printf "%s\n" "unsupported" >&6; }
4570 else $as_nop
4571 if test "x$ac_cv_prog_cc_c99" = x
4572 then :
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574 printf "%s\n" "none needed" >&6; }
4575 else $as_nop
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4577 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4578 CC="$CC $ac_cv_prog_cc_c99"
4579 fi
4580 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4581 ac_prog_cc_stdc=c99
4582 fi
4583 fi
4584 if test x$ac_prog_cc_stdc = xno
4585 then :
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4587 printf %s "checking for $CC option to enable C89 features... " >&6; }
4588 if test ${ac_cv_prog_cc_c89+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 ac_cv_prog_cc_c89=no
4593 ac_save_CC=$CC
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 $ac_c_conftest_c89_program
4597 _ACEOF
4598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4599 do
4600 CC="$ac_save_CC $ac_arg"
4601 if ac_fn_c_try_compile "$LINENO"
4602 then :
4603 ac_cv_prog_cc_c89=$ac_arg
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.beam
4606 test "x$ac_cv_prog_cc_c89" != "xno" && break
4607 done
4608 rm -f conftest.$ac_ext
4609 CC=$ac_save_CC
4610 fi
4611
4612 if test "x$ac_cv_prog_cc_c89" = xno
4613 then :
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4615 printf "%s\n" "unsupported" >&6; }
4616 else $as_nop
4617 if test "x$ac_cv_prog_cc_c89" = x
4618 then :
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 printf "%s\n" "none needed" >&6; }
4621 else $as_nop
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4623 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4624 CC="$CC $ac_cv_prog_cc_c89"
4625 fi
4626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4627 ac_prog_cc_stdc=c89
4628 fi
4629 fi
4630
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637
4638 ac_ext=c
4639 ac_cpp='$CPP $CPPFLAGS'
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4644 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4645 if test ${am_cv_prog_cc_c_o+y}
4646 then :
4647 printf %s "(cached) " >&6
4648 else $as_nop
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651
4652 int
4653 main (void)
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 # Make sure it works both with $CC and with simple cc.
4661 # Following AC_PROG_CC_C_O, we do the test twice because some
4662 # compilers refuse to overwrite an existing .o file with -o,
4663 # though they will create one.
4664 am_cv_prog_cc_c_o=yes
4665 for am_i in 1 2; do
4666 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4667 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } \
4671 && test -f conftest2.$ac_objext; then
4672 : OK
4673 else
4674 am_cv_prog_cc_c_o=no
4675 break
4676 fi
4677 done
4678 rm -f core conftest*
4679 unset am_i
4680 fi
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4682 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4683 if test "$am_cv_prog_cc_c_o" != yes; then
4684 # Losing compiler, so override with the script.
4685 # FIXME: It is wrong to rewrite CC.
4686 # But if we don't then we get into trouble of one sort or another.
4687 # A longer-term fix would be to have automake use am__CC in this case,
4688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4689 CC="$am_aux_dir/compile $CC"
4690 fi
4691 ac_ext=c
4692 ac_cpp='$CPP $CPPFLAGS'
4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696
4697
4698 depcc="$CC" am_compiler_list=
4699
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4701 printf %s "checking dependency style of $depcc... " >&6; }
4702 if test ${am_cv_CC_dependencies_compiler_type+y}
4703 then :
4704 printf %s "(cached) " >&6
4705 else $as_nop
4706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4707 # We make a subdir and do the tests there. Otherwise we can end up
4708 # making bogus files that we don't know about and never remove. For
4709 # instance it was reported that on HP-UX the gcc test will end up
4710 # making a dummy file named 'D' -- because '-MD' means "put the output
4711 # in D".
4712 rm -rf conftest.dir
4713 mkdir conftest.dir
4714 # Copy depcomp to subdir because otherwise we won't find it if we're
4715 # using a relative directory.
4716 cp "$am_depcomp" conftest.dir
4717 cd conftest.dir
4718 # We will build objects and dependencies in a subdirectory because
4719 # it helps to detect inapplicable dependency modes. For instance
4720 # both Tru64's cc and ICC support -MD to output dependencies as a
4721 # side effect of compilation, but ICC will put the dependencies in
4722 # the current directory while Tru64 will put them in the object
4723 # directory.
4724 mkdir sub
4725
4726 am_cv_CC_dependencies_compiler_type=none
4727 if test "$am_compiler_list" = ""; then
4728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4729 fi
4730 am__universal=false
4731 case " $depcc " in #(
4732 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4733 esac
4734
4735 for depmode in $am_compiler_list; do
4736 # Setup a source with many dependencies, because some compilers
4737 # like to wrap large dependency lists on column 80 (with \), and
4738 # we should not choose a depcomp mode which is confused by this.
4739 #
4740 # We need to recreate these files for each test, as the compiler may
4741 # overwrite some of them when testing with obscure command lines.
4742 # This happens at least with the AIX C compiler.
4743 : > sub/conftest.c
4744 for i in 1 2 3 4 5 6; do
4745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4746 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4747 # Solaris 10 /bin/sh.
4748 echo '/* dummy */' > sub/conftst$i.h
4749 done
4750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4751
4752 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4753 # mode. It turns out that the SunPro C++ compiler does not properly
4754 # handle '-M -o', and we need to detect this. Also, some Intel
4755 # versions had trouble with output in subdirs.
4756 am__obj=sub/conftest.${OBJEXT-o}
4757 am__minus_obj="-o $am__obj"
4758 case $depmode in
4759 gcc)
4760 # This depmode causes a compiler race in universal mode.
4761 test "$am__universal" = false || continue
4762 ;;
4763 nosideeffect)
4764 # After this tag, mechanisms are not by side-effect, so they'll
4765 # only be used when explicitly requested.
4766 if test "x$enable_dependency_tracking" = xyes; then
4767 continue
4768 else
4769 break
4770 fi
4771 ;;
4772 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4773 # This compiler won't grok '-c -o', but also, the minuso test has
4774 # not run yet. These depmodes are late enough in the game, and
4775 # so weak that their functioning should not be impacted.
4776 am__obj=conftest.${OBJEXT-o}
4777 am__minus_obj=
4778 ;;
4779 none) break ;;
4780 esac
4781 if depmode=$depmode \
4782 source=sub/conftest.c object=$am__obj \
4783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4785 >/dev/null 2>conftest.err &&
4786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4790 # icc doesn't choke on unknown options, it will just issue warnings
4791 # or remarks (even with -Werror). So we grep stderr for any message
4792 # that says an option was ignored or not supported.
4793 # When given -MP, icc 7.0 and 7.1 complain thusly:
4794 # icc: Command line warning: ignoring option '-M'; no argument required
4795 # The diagnosis changed in icc 8.0:
4796 # icc: Command line remark: option '-MP' not supported
4797 if (grep 'ignoring option' conftest.err ||
4798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4799 am_cv_CC_dependencies_compiler_type=$depmode
4800 break
4801 fi
4802 fi
4803 done
4804
4805 cd ..
4806 rm -rf conftest.dir
4807 else
4808 am_cv_CC_dependencies_compiler_type=none
4809 fi
4810
4811 fi
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4813 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4815
4816 if
4817 test "x$enable_dependency_tracking" != xno \
4818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4819 am__fastdepCC_TRUE=
4820 am__fastdepCC_FALSE='#'
4821 else
4822 am__fastdepCC_TRUE='#'
4823 am__fastdepCC_FALSE=
4824 fi
4825
4826
4827
4828 ac_header= ac_cache=
4829 for ac_item in $ac_header_c_list
4830 do
4831 if test $ac_cache; then
4832 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4833 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4834 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4835 fi
4836 ac_header= ac_cache=
4837 elif test $ac_header; then
4838 ac_cache=$ac_item
4839 else
4840 ac_header=$ac_item
4841 fi
4842 done
4843
4844
4845
4846
4847
4848
4849
4850
4851 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4852 then :
4853
4854 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4855
4856 fi
4857
4858
4859
4860
4861
4862
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4864 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4865 if test ${ac_cv_safe_to_define___extensions__+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 # define __EXTENSIONS__ 1
4873 $ac_includes_default
4874 int
4875 main (void)
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884 ac_cv_safe_to_define___extensions__=yes
4885 else $as_nop
4886 ac_cv_safe_to_define___extensions__=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4889 fi
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4892
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4894 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4895 if test ${ac_cv_should_define__xopen_source+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else $as_nop
4899 ac_cv_should_define__xopen_source=no
4900 if test $ac_cv_header_wchar_h = yes
4901 then :
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904
4905 #include <wchar.h>
4906 mbstate_t x;
4907 int
4908 main (void)
4909 {
4910
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_compile "$LINENO"
4916 then :
4917
4918 else $as_nop
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921
4922 #define _XOPEN_SOURCE 500
4923 #include <wchar.h>
4924 mbstate_t x;
4925 int
4926 main (void)
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"
4934 then :
4935 ac_cv_should_define__xopen_source=yes
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4940 fi
4941 fi
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4943 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4944
4945 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4946
4947 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4948
4949 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4950
4951 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4952
4953 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4954
4955 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4956
4957 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4958
4959 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4960
4961 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4962
4963 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4964
4965 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4966
4967 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4968
4969 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4970
4971 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4972
4973 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4974
4975 if test $ac_cv_header_minix_config_h = yes
4976 then :
4977 MINIX=yes
4978 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4979
4980 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4981
4982 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4983
4984 else $as_nop
4985 MINIX=
4986 fi
4987 if test $ac_cv_safe_to_define___extensions__ = yes
4988 then :
4989 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4990
4991 fi
4992 if test $ac_cv_should_define__xopen_source = yes
4993 then :
4994 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4995
4996 fi
4997
4998
4999 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5000 case $host in
5001 *-*-linux*)
5002 if test -n "$LD_LIBRARY_PATH"; then
5003 saved_LDFLAGS="$LDFLAGS"
5004 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5005 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5007 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int main (void) { return 0; }
5012
5013 _ACEOF
5014 if ac_fn_c_try_link "$LINENO"
5015 then :
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5017 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5018 else $as_nop
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 printf "%s\n" "no" >&6; }
5021 LDADD_FOR_TESTS_KLUDGE=""
5022
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5025 conftest$ac_exeext conftest.$ac_ext
5026 LDFLAGS="$saved_LDFLAGS"
5027 fi
5028 ;;
5029 esac
5030
5031
5032 VERSION_NUMBER=0x030002
5033
5034
5035 # Don't default to build static libs.
5036
5037 case `pwd` in
5038 *\ * | *\ *)
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5040 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5041 esac
5042
5043
5044
5045 macro_version='2.4.2'
5046 macro_revision='1.3337'
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061 ltmain="$ac_aux_dir/ltmain.sh"
5062
5063 # Backslashify metacharacters that are still active within
5064 # double-quoted strings.
5065 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5066
5067 # Same as above, but do not quote variable references.
5068 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5069
5070 # Sed substitution to delay expansion of an escaped shell variable in a
5071 # double_quote_subst'ed string.
5072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5073
5074 # Sed substitution to delay expansion of an escaped single quote.
5075 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5076
5077 # Sed substitution to avoid accidental globbing in evaled expressions
5078 no_glob_subst='s/\*/\\\*/g'
5079
5080 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5082 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5083
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5085 printf %s "checking how to print strings... " >&6; }
5086 # Test print first, because it will be a builtin if present.
5087 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5088 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 ECHO='print -r --'
5090 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5091 ECHO='printf %s\n'
5092 else
5093 # Use this function as a fallback that always works.
5094 func_fallback_echo ()
5095 {
5096 eval 'cat <<_LTECHO_EOF
5097 $1
5098 _LTECHO_EOF'
5099 }
5100 ECHO='func_fallback_echo'
5101 fi
5102
5103 # func_echo_all arg...
5104 # Invoke $ECHO with all args, space-separated.
5105 func_echo_all ()
5106 {
5107 $ECHO ""
5108 }
5109
5110 case "$ECHO" in
5111 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5112 printf "%s\n" "printf" >&6; } ;;
5113 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5114 printf "%s\n" "print -r" >&6; } ;;
5115 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5116 printf "%s\n" "cat" >&6; } ;;
5117 esac
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5133 printf %s "checking for a sed that does not truncate output... " >&6; }
5134 if test ${ac_cv_path_SED+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else $as_nop
5138 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5139 for ac_i in 1 2 3 4 5 6 7; do
5140 ac_script="$ac_script$as_nl$ac_script"
5141 done
5142 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5143 { ac_script=; unset ac_script;}
5144 if test -z "$SED"; then
5145 ac_path_SED_found=false
5146 # Loop through the user's path and test for each of PROGNAME-LIST
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 case $as_dir in #(((
5152 '') as_dir=./ ;;
5153 */) ;;
5154 *) as_dir=$as_dir/ ;;
5155 esac
5156 for ac_prog in sed gsed
5157 do
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5160 as_fn_executable_p "$ac_path_SED" || continue
5161 # Check for GNU ac_path_SED and select it if it is found.
5162 # Check for GNU $ac_path_SED
5163 case `"$ac_path_SED" --version 2>&1` in
5164 *GNU*)
5165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5166 *)
5167 ac_count=0
5168 printf %s 0123456789 >"conftest.in"
5169 while :
5170 do
5171 cat "conftest.in" "conftest.in" >"conftest.tmp"
5172 mv "conftest.tmp" "conftest.in"
5173 cp "conftest.in" "conftest.nl"
5174 printf "%s\n" '' >> "conftest.nl"
5175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5177 as_fn_arith $ac_count + 1 && ac_count=$as_val
5178 if test $ac_count -gt ${ac_path_SED_max-0}; then
5179 # Best one so far, save it but keep looking for a better one
5180 ac_cv_path_SED="$ac_path_SED"
5181 ac_path_SED_max=$ac_count
5182 fi
5183 # 10*(2^10) chars as input seems more than enough
5184 test $ac_count -gt 10 && break
5185 done
5186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5187 esac
5188
5189 $ac_path_SED_found && break 3
5190 done
5191 done
5192 done
5193 IFS=$as_save_IFS
5194 if test -z "$ac_cv_path_SED"; then
5195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5196 fi
5197 else
5198 ac_cv_path_SED=$SED
5199 fi
5200
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5203 printf "%s\n" "$ac_cv_path_SED" >&6; }
5204 SED="$ac_cv_path_SED"
5205 rm -f conftest.sed
5206
5207 test -z "$SED" && SED=sed
5208 Xsed="$SED -e 1s/^X//"
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 printf %s "checking for grep that handles long lines and -e... " >&6; }
5222 if test ${ac_cv_path_GREP+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else $as_nop
5226 if test -z "$GREP"; then
5227 ac_path_GREP_found=false
5228 # Loop through the user's path and test for each of PROGNAME-LIST
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 do
5232 IFS=$as_save_IFS
5233 case $as_dir in #(((
5234 '') as_dir=./ ;;
5235 */) ;;
5236 *) as_dir=$as_dir/ ;;
5237 esac
5238 for ac_prog in grep ggrep
5239 do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5242 as_fn_executable_p "$ac_path_GREP" || continue
5243 # Check for GNU ac_path_GREP and select it if it is found.
5244 # Check for GNU $ac_path_GREP
5245 case `"$ac_path_GREP" --version 2>&1` in
5246 *GNU*)
5247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5248 *)
5249 ac_count=0
5250 printf %s 0123456789 >"conftest.in"
5251 while :
5252 do
5253 cat "conftest.in" "conftest.in" >"conftest.tmp"
5254 mv "conftest.tmp" "conftest.in"
5255 cp "conftest.in" "conftest.nl"
5256 printf "%s\n" 'GREP' >> "conftest.nl"
5257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259 as_fn_arith $ac_count + 1 && ac_count=$as_val
5260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5261 # Best one so far, save it but keep looking for a better one
5262 ac_cv_path_GREP="$ac_path_GREP"
5263 ac_path_GREP_max=$ac_count
5264 fi
5265 # 10*(2^10) chars as input seems more than enough
5266 test $ac_count -gt 10 && break
5267 done
5268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 esac
5270
5271 $ac_path_GREP_found && break 3
5272 done
5273 done
5274 done
5275 IFS=$as_save_IFS
5276 if test -z "$ac_cv_path_GREP"; then
5277 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5278 fi
5279 else
5280 ac_cv_path_GREP=$GREP
5281 fi
5282
5283 fi
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5285 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5286 GREP="$ac_cv_path_GREP"
5287
5288
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5290 printf %s "checking for egrep... " >&6; }
5291 if test ${ac_cv_path_EGREP+y}
5292 then :
5293 printf %s "(cached) " >&6
5294 else $as_nop
5295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5296 then ac_cv_path_EGREP="$GREP -E"
5297 else
5298 if test -z "$EGREP"; then
5299 ac_path_EGREP_found=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5303 do
5304 IFS=$as_save_IFS
5305 case $as_dir in #(((
5306 '') as_dir=./ ;;
5307 */) ;;
5308 *) as_dir=$as_dir/ ;;
5309 esac
5310 for ac_prog in egrep
5311 do
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5314 as_fn_executable_p "$ac_path_EGREP" || continue
5315 # Check for GNU ac_path_EGREP and select it if it is found.
5316 # Check for GNU $ac_path_EGREP
5317 case `"$ac_path_EGREP" --version 2>&1` in
5318 *GNU*)
5319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5320 *)
5321 ac_count=0
5322 printf %s 0123456789 >"conftest.in"
5323 while :
5324 do
5325 cat "conftest.in" "conftest.in" >"conftest.tmp"
5326 mv "conftest.tmp" "conftest.in"
5327 cp "conftest.in" "conftest.nl"
5328 printf "%s\n" 'EGREP' >> "conftest.nl"
5329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331 as_fn_arith $ac_count + 1 && ac_count=$as_val
5332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5333 # Best one so far, save it but keep looking for a better one
5334 ac_cv_path_EGREP="$ac_path_EGREP"
5335 ac_path_EGREP_max=$ac_count
5336 fi
5337 # 10*(2^10) chars as input seems more than enough
5338 test $ac_count -gt 10 && break
5339 done
5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341 esac
5342
5343 $ac_path_EGREP_found && break 3
5344 done
5345 done
5346 done
5347 IFS=$as_save_IFS
5348 if test -z "$ac_cv_path_EGREP"; then
5349 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5350 fi
5351 else
5352 ac_cv_path_EGREP=$EGREP
5353 fi
5354
5355 fi
5356 fi
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5358 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5359 EGREP="$ac_cv_path_EGREP"
5360
5361
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5363 printf %s "checking for fgrep... " >&6; }
5364 if test ${ac_cv_path_FGREP+y}
5365 then :
5366 printf %s "(cached) " >&6
5367 else $as_nop
5368 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5369 then ac_cv_path_FGREP="$GREP -F"
5370 else
5371 if test -z "$FGREP"; then
5372 ac_path_FGREP_found=false
5373 # Loop through the user's path and test for each of PROGNAME-LIST
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5376 do
5377 IFS=$as_save_IFS
5378 case $as_dir in #(((
5379 '') as_dir=./ ;;
5380 */) ;;
5381 *) as_dir=$as_dir/ ;;
5382 esac
5383 for ac_prog in fgrep
5384 do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5387 as_fn_executable_p "$ac_path_FGREP" || continue
5388 # Check for GNU ac_path_FGREP and select it if it is found.
5389 # Check for GNU $ac_path_FGREP
5390 case `"$ac_path_FGREP" --version 2>&1` in
5391 *GNU*)
5392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5393 *)
5394 ac_count=0
5395 printf %s 0123456789 >"conftest.in"
5396 while :
5397 do
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 printf "%s\n" 'FGREP' >> "conftest.nl"
5402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_FGREP="$ac_path_FGREP"
5408 ac_path_FGREP_max=$ac_count
5409 fi
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5415
5416 $ac_path_FGREP_found && break 3
5417 done
5418 done
5419 done
5420 IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_FGREP"; then
5422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423 fi
5424 else
5425 ac_cv_path_FGREP=$FGREP
5426 fi
5427
5428 fi
5429 fi
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5431 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5432 FGREP="$ac_cv_path_FGREP"
5433
5434
5435 test -z "$GREP" && GREP=grep
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 # Check whether --with-gnu-ld was given.
5456 if test ${with_gnu_ld+y}
5457 then :
5458 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5459 else $as_nop
5460 with_gnu_ld=no
5461 fi
5462
5463 ac_prog=ld
5464 if test "$GCC" = yes; then
5465 # Check if gcc -print-prog-name=ld gives a path.
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5467 printf %s "checking for ld used by $CC... " >&6; }
5468 case $host in
5469 *-*-mingw*)
5470 # gcc leaves a trailing carriage return which upsets mingw
5471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5472 *)
5473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5474 esac
5475 case $ac_prog in
5476 # Accept absolute paths.
5477 [\\/]* | ?:[\\/]*)
5478 re_direlt='/[^/][^/]*/\.\./'
5479 # Canonicalize the pathname of ld
5480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5483 done
5484 test -z "$LD" && LD="$ac_prog"
5485 ;;
5486 "")
5487 # If it fails, then pretend we aren't using GCC.
5488 ac_prog=ld
5489 ;;
5490 *)
5491 # If it is relative, then search for the first ld in PATH.
5492 with_gnu_ld=unknown
5493 ;;
5494 esac
5495 elif test "$with_gnu_ld" = yes; then
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5497 printf %s "checking for GNU ld... " >&6; }
5498 else
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5500 printf %s "checking for non-GNU ld... " >&6; }
5501 fi
5502 if test ${lt_cv_path_LD+y}
5503 then :
5504 printf %s "(cached) " >&6
5505 else $as_nop
5506 if test -z "$LD"; then
5507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5508 for ac_dir in $PATH; do
5509 IFS="$lt_save_ifs"
5510 test -z "$ac_dir" && ac_dir=.
5511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5512 lt_cv_path_LD="$ac_dir/$ac_prog"
5513 # Check to see if the program is GNU ld. I'd rather use --version,
5514 # but apparently some variants of GNU ld only accept -v.
5515 # Break only if it was the GNU/non-GNU ld that we prefer.
5516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5517 *GNU* | *'with BFD'*)
5518 test "$with_gnu_ld" != no && break
5519 ;;
5520 *)
5521 test "$with_gnu_ld" != yes && break
5522 ;;
5523 esac
5524 fi
5525 done
5526 IFS="$lt_save_ifs"
5527 else
5528 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5529 fi
5530 fi
5531
5532 LD="$lt_cv_path_LD"
5533 if test -n "$LD"; then
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5535 printf "%s\n" "$LD" >&6; }
5536 else
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 printf "%s\n" "no" >&6; }
5539 fi
5540 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5542 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5543 if test ${lt_cv_prog_gnu_ld+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
5547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5548 case `$LD -v 2>&1 </dev/null` in
5549 *GNU* | *'with BFD'*)
5550 lt_cv_prog_gnu_ld=yes
5551 ;;
5552 *)
5553 lt_cv_prog_gnu_ld=no
5554 ;;
5555 esac
5556 fi
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5558 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5559 with_gnu_ld=$lt_cv_prog_gnu_ld
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5570 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5571 if test ${lt_cv_path_NM+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else $as_nop
5575 if test -n "$NM"; then
5576 # Let the user override the test.
5577 lt_cv_path_NM="$NM"
5578 else
5579 lt_nm_to_check="${ac_tool_prefix}nm"
5580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581 lt_nm_to_check="$lt_nm_to_check nm"
5582 fi
5583 for lt_tmp_nm in $lt_nm_to_check; do
5584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586 IFS="$lt_save_ifs"
5587 test -z "$ac_dir" && ac_dir=.
5588 tmp_nm="$ac_dir/$lt_tmp_nm"
5589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5590 # Check to see if the nm accepts a BSD-compat flag.
5591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5592 # nm: unknown option "B" ignored
5593 # Tru64's nm complains that /dev/null is an invalid object file
5594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5595 */dev/null* | *'Invalid file or object type'*)
5596 lt_cv_path_NM="$tmp_nm -B"
5597 break
5598 ;;
5599 *)
5600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5601 */dev/null*)
5602 lt_cv_path_NM="$tmp_nm -p"
5603 break
5604 ;;
5605 *)
5606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5607 continue # so that we can try to find one that supports BSD flags
5608 ;;
5609 esac
5610 ;;
5611 esac
5612 fi
5613 done
5614 IFS="$lt_save_ifs"
5615 done
5616 : ${lt_cv_path_NM=no}
5617 fi
5618 fi
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5620 printf "%s\n" "$lt_cv_path_NM" >&6; }
5621 if test "$lt_cv_path_NM" != "no"; then
5622 NM="$lt_cv_path_NM"
5623 else
5624 # Didn't find any BSD compatible name lister, look for dumpbin.
5625 if test -n "$DUMPBIN"; then :
5626 # Let the user override the test.
5627 else
5628 if test -n "$ac_tool_prefix"; then
5629 for ac_prog in dumpbin "link -dump"
5630 do
5631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 printf %s "checking for $ac_word... " >&6; }
5635 if test ${ac_cv_prog_DUMPBIN+y}
5636 then :
5637 printf %s "(cached) " >&6
5638 else $as_nop
5639 if test -n "$DUMPBIN"; then
5640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 case $as_dir in #(((
5647 '') as_dir=./ ;;
5648 */) ;;
5649 *) as_dir=$as_dir/ ;;
5650 esac
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 DUMPBIN=$ac_cv_prog_DUMPBIN
5664 if test -n "$DUMPBIN"; then
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5666 printf "%s\n" "$DUMPBIN" >&6; }
5667 else
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 printf "%s\n" "no" >&6; }
5670 fi
5671
5672
5673 test -n "$DUMPBIN" && break
5674 done
5675 fi
5676 if test -z "$DUMPBIN"; then
5677 ac_ct_DUMPBIN=$DUMPBIN
5678 for ac_prog in dumpbin "link -dump"
5679 do
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 printf %s "checking for $ac_word... " >&6; }
5684 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else $as_nop
5688 if test -n "$ac_ct_DUMPBIN"; then
5689 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694 IFS=$as_save_IFS
5695 case $as_dir in #(((
5696 '') as_dir=./ ;;
5697 */) ;;
5698 *) as_dir=$as_dir/ ;;
5699 esac
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706 done
5707 done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5713 if test -n "$ac_ct_DUMPBIN"; then
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5715 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5716 else
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 printf "%s\n" "no" >&6; }
5719 fi
5720
5721
5722 test -n "$ac_ct_DUMPBIN" && break
5723 done
5724
5725 if test "x$ac_ct_DUMPBIN" = x; then
5726 DUMPBIN=":"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732 ac_tool_warned=yes ;;
5733 esac
5734 DUMPBIN=$ac_ct_DUMPBIN
5735 fi
5736 fi
5737
5738 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5739 *COFF*)
5740 DUMPBIN="$DUMPBIN -symbols"
5741 ;;
5742 *)
5743 DUMPBIN=:
5744 ;;
5745 esac
5746 fi
5747
5748 if test "$DUMPBIN" != ":"; then
5749 NM="$DUMPBIN"
5750 fi
5751 fi
5752 test -z "$NM" && NM=nm
5753
5754
5755
5756
5757
5758
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5760 printf %s "checking the name lister ($NM) interface... " >&6; }
5761 if test ${lt_cv_nm_interface+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
5765 lt_cv_nm_interface="BSD nm"
5766 echo "int some_variable = 0;" > conftest.$ac_ext
5767 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5768 (eval "$ac_compile" 2>conftest.err)
5769 cat conftest.err >&5
5770 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5772 cat conftest.err >&5
5773 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5774 cat conftest.out >&5
5775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5776 lt_cv_nm_interface="MS dumpbin"
5777 fi
5778 rm -f conftest*
5779 fi
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5781 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5782
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5784 printf %s "checking whether ln -s works... " >&6; }
5785 LN_S=$as_ln_s
5786 if test "$LN_S" = "ln -s"; then
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5788 printf "%s\n" "yes" >&6; }
5789 else
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5791 printf "%s\n" "no, using $LN_S" >&6; }
5792 fi
5793
5794 # find the maximum length of command line arguments
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5796 printf %s "checking the maximum length of command line arguments... " >&6; }
5797 if test ${lt_cv_sys_max_cmd_len+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 i=0
5802 teststring="ABCD"
5803
5804 case $build_os in
5805 msdosdjgpp*)
5806 # On DJGPP, this test can blow up pretty badly due to problems in libc
5807 # (any single argument exceeding 2000 bytes causes a buffer overrun
5808 # during glob expansion). Even if it were fixed, the result of this
5809 # check would be larger than it should be.
5810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5811 ;;
5812
5813 gnu*)
5814 # Under GNU Hurd, this test is not required because there is
5815 # no limit to the length of command line arguments.
5816 # Libtool will interpret -1 as no limit whatsoever
5817 lt_cv_sys_max_cmd_len=-1;
5818 ;;
5819
5820 cygwin* | mingw* | cegcc*)
5821 # On Win9x/ME, this test blows up -- it succeeds, but takes
5822 # about 5 minutes as the teststring grows exponentially.
5823 # Worse, since 9x/ME are not pre-emptively multitasking,
5824 # you end up with a "frozen" computer, even though with patience
5825 # the test eventually succeeds (with a max line length of 256k).
5826 # Instead, let's just punt: use the minimum linelength reported by
5827 # all of the supported platforms: 8192 (on NT/2K/XP).
5828 lt_cv_sys_max_cmd_len=8192;
5829 ;;
5830
5831 mint*)
5832 # On MiNT this can take a long time and run out of memory.
5833 lt_cv_sys_max_cmd_len=8192;
5834 ;;
5835
5836 amigaos*)
5837 # On AmigaOS with pdksh, this test takes hours, literally.
5838 # So we just punt and use a minimum line length of 8192.
5839 lt_cv_sys_max_cmd_len=8192;
5840 ;;
5841
5842 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5843 # This has been around since 386BSD, at least. Likely further.
5844 if test -x /sbin/sysctl; then
5845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5846 elif test -x /usr/sbin/sysctl; then
5847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5848 else
5849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5850 fi
5851 # And add a safety zone
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5854 ;;
5855
5856 interix*)
5857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5858 lt_cv_sys_max_cmd_len=196608
5859 ;;
5860
5861 os2*)
5862 # The test takes a long time on OS/2.
5863 lt_cv_sys_max_cmd_len=8192
5864 ;;
5865
5866 osf*)
5867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5869 # nice to cause kernel panics so lets avoid the loop below.
5870 # First set a reasonable default.
5871 lt_cv_sys_max_cmd_len=16384
5872 #
5873 if test -x /sbin/sysconfig; then
5874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5875 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5876 esac
5877 fi
5878 ;;
5879 sco3.2v5*)
5880 lt_cv_sys_max_cmd_len=102400
5881 ;;
5882 sysv5* | sco5v6* | sysv4.2uw2*)
5883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5884 if test -n "$kargmax"; then
5885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5886 else
5887 lt_cv_sys_max_cmd_len=32768
5888 fi
5889 ;;
5890 *)
5891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5892 if test -n "$lt_cv_sys_max_cmd_len"; then
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5895 else
5896 # Make teststring a little bigger before we do anything with it.
5897 # a 1K string should be a reasonable start.
5898 for i in 1 2 3 4 5 6 7 8 ; do
5899 teststring=$teststring$teststring
5900 done
5901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5902 # If test is not a shell built-in, we'll probably end up computing a
5903 # maximum length that is only half of the actual maximum length, but
5904 # we can't tell.
5905 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5906 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5907 test $i != 17 # 1/2 MB should be enough
5908 do
5909 i=`expr $i + 1`
5910 teststring=$teststring$teststring
5911 done
5912 # Only check the string length outside the loop.
5913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5914 teststring=
5915 # Add a significant safety factor because C++ compilers can tack on
5916 # massive amounts of additional arguments before passing them to the
5917 # linker. It appears as though 1/2 is a usable value.
5918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5919 fi
5920 ;;
5921 esac
5922
5923 fi
5924
5925 if test -n $lt_cv_sys_max_cmd_len ; then
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5927 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5928 else
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5930 printf "%s\n" "none" >&6; }
5931 fi
5932 max_cmd_len=$lt_cv_sys_max_cmd_len
5933
5934
5935
5936
5937
5938
5939 : ${CP="cp -f"}
5940 : ${MV="mv -f"}
5941 : ${RM="rm -f"}
5942
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5944 printf %s "checking whether the shell understands some XSI constructs... " >&6; }
5945 # Try some XSI features
5946 xsi_shell=no
5947 ( _lt_dummy="a/b/c"
5948 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5949 = c,a/b,b/c, \
5950 && eval 'test $(( 1 + 1 )) -eq 2 \
5951 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5952 && xsi_shell=yes
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5954 printf "%s\n" "$xsi_shell" >&6; }
5955
5956
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5958 printf %s "checking whether the shell understands \"+=\"... " >&6; }
5959 lt_shell_append=no
5960 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5961 >/dev/null 2>&1 \
5962 && lt_shell_append=yes
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5964 printf "%s\n" "$lt_shell_append" >&6; }
5965
5966
5967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5968 lt_unset=unset
5969 else
5970 lt_unset=false
5971 fi
5972
5973
5974
5975
5976
5977 # test EBCDIC or ASCII
5978 case `echo X|tr X '\101'` in
5979 A) # ASCII based system
5980 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5981 lt_SP2NL='tr \040 \012'
5982 lt_NL2SP='tr \015\012 \040\040'
5983 ;;
5984 *) # EBCDIC based system
5985 lt_SP2NL='tr \100 \n'
5986 lt_NL2SP='tr \r\n \100\100'
5987 ;;
5988 esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5999 printf %s "checking how to convert $build file names to $host format... " >&6; }
6000 if test ${lt_cv_to_host_file_cmd+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else $as_nop
6004 case $host in
6005 *-*-mingw* )
6006 case $build in
6007 *-*-mingw* ) # actually msys
6008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6009 ;;
6010 *-*-cygwin* )
6011 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6012 ;;
6013 * ) # otherwise, assume *nix
6014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6015 ;;
6016 esac
6017 ;;
6018 *-*-cygwin* )
6019 case $build in
6020 *-*-mingw* ) # actually msys
6021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6022 ;;
6023 *-*-cygwin* )
6024 lt_cv_to_host_file_cmd=func_convert_file_noop
6025 ;;
6026 * ) # otherwise, assume *nix
6027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6028 ;;
6029 esac
6030 ;;
6031 * ) # unhandled hosts (and "normal" native builds)
6032 lt_cv_to_host_file_cmd=func_convert_file_noop
6033 ;;
6034 esac
6035
6036 fi
6037
6038 to_host_file_cmd=$lt_cv_to_host_file_cmd
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6040 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6041
6042
6043
6044
6045
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6047 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6048 if test ${lt_cv_to_tool_file_cmd+y}
6049 then :
6050 printf %s "(cached) " >&6
6051 else $as_nop
6052 #assume ordinary cross tools, or native build.
6053 lt_cv_to_tool_file_cmd=func_convert_file_noop
6054 case $host in
6055 *-*-mingw* )
6056 case $build in
6057 *-*-mingw* ) # actually msys
6058 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6059 ;;
6060 esac
6061 ;;
6062 esac
6063
6064 fi
6065
6066 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6068 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6069
6070
6071
6072
6073
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6075 printf %s "checking for $LD option to reload object files... " >&6; }
6076 if test ${lt_cv_ld_reload_flag+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else $as_nop
6080 lt_cv_ld_reload_flag='-r'
6081 fi
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6083 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6084 reload_flag=$lt_cv_ld_reload_flag
6085 case $reload_flag in
6086 "" | " "*) ;;
6087 *) reload_flag=" $reload_flag" ;;
6088 esac
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 case $host_os in
6091 cygwin* | mingw* | pw32* | cegcc*)
6092 if test "$GCC" != yes; then
6093 reload_cmds=false
6094 fi
6095 ;;
6096 darwin*)
6097 if test "$GCC" = yes; then
6098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6099 else
6100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6101 fi
6102 ;;
6103 esac
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 printf %s "checking for $ac_word... " >&6; }
6118 if test ${ac_cv_prog_OBJDUMP+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else $as_nop
6122 if test -n "$OBJDUMP"; then
6123 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 case $as_dir in #(((
6130 '') as_dir=./ ;;
6131 */) ;;
6132 *) as_dir=$as_dir/ ;;
6133 esac
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 OBJDUMP=$ac_cv_prog_OBJDUMP
6147 if test -n "$OBJDUMP"; then
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6149 printf "%s\n" "$OBJDUMP" >&6; }
6150 else
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 printf "%s\n" "no" >&6; }
6153 fi
6154
6155
6156 fi
6157 if test -z "$ac_cv_prog_OBJDUMP"; then
6158 ac_ct_OBJDUMP=$OBJDUMP
6159 # Extract the first word of "objdump", so it can be a program name with args.
6160 set dummy objdump; ac_word=$2
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 printf %s "checking for $ac_word... " >&6; }
6163 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 if test -n "$ac_ct_OBJDUMP"; then
6168 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 case $as_dir in #(((
6175 '') as_dir=./ ;;
6176 */) ;;
6177 *) as_dir=$as_dir/ ;;
6178 esac
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6192 if test -n "$ac_ct_OBJDUMP"; then
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6194 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6195 else
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 printf "%s\n" "no" >&6; }
6198 fi
6199
6200 if test "x$ac_ct_OBJDUMP" = x; then
6201 OBJDUMP="false"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209 OBJDUMP=$ac_ct_OBJDUMP
6210 fi
6211 else
6212 OBJDUMP="$ac_cv_prog_OBJDUMP"
6213 fi
6214
6215 test -z "$OBJDUMP" && OBJDUMP=objdump
6216
6217
6218
6219
6220
6221
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6223 printf %s "checking how to recognize dependent libraries... " >&6; }
6224 if test ${lt_cv_deplibs_check_method+y}
6225 then :
6226 printf %s "(cached) " >&6
6227 else $as_nop
6228 lt_cv_file_magic_cmd='$MAGIC_CMD'
6229 lt_cv_file_magic_test_file=
6230 lt_cv_deplibs_check_method='unknown'
6231 # Need to set the preceding variable on all platforms that support
6232 # interlibrary dependencies.
6233 # 'none' -- dependencies not supported.
6234 # `unknown' -- same as none, but documents that we really don't know.
6235 # 'pass_all' -- all dependencies passed with no checks.
6236 # 'test_compile' -- check by making test program.
6237 # 'file_magic [[regex]]' -- check by looking for files in library path
6238 # which responds to the $file_magic_cmd with a given extended regex.
6239 # If you have `file' or equivalent on your system and you're not sure
6240 # whether `pass_all' will *always* work, you probably want this one.
6241
6242 case $host_os in
6243 aix[4-9]*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 beos*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 bsdi[45]*)
6252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6253 lt_cv_file_magic_cmd='/usr/bin/file -L'
6254 lt_cv_file_magic_test_file=/shlib/libc.so
6255 ;;
6256
6257 cygwin*)
6258 # func_win32_libid is a shell function defined in ltmain.sh
6259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6260 lt_cv_file_magic_cmd='func_win32_libid'
6261 ;;
6262
6263 mingw* | pw32*)
6264 # Base MSYS/MinGW do not provide the 'file' command needed by
6265 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6266 # unless we find 'file', for example because we are cross-compiling.
6267 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6268 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6270 lt_cv_file_magic_cmd='func_win32_libid'
6271 else
6272 # Keep this pattern in sync with the one in func_win32_libid.
6273 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6274 lt_cv_file_magic_cmd='$OBJDUMP -f'
6275 fi
6276 ;;
6277
6278 cegcc*)
6279 # use the weaker test based on 'objdump'. See mingw*.
6280 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6281 lt_cv_file_magic_cmd='$OBJDUMP -f'
6282 ;;
6283
6284 darwin* | rhapsody*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 freebsd* | dragonfly*)
6289 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6290 case $host_cpu in
6291 i*86 )
6292 # Not sure whether the presence of OpenBSD here was a mistake.
6293 # Let's accept both of them until this is cleared up.
6294 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6295 lt_cv_file_magic_cmd=/usr/bin/file
6296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6297 ;;
6298 esac
6299 else
6300 lt_cv_deplibs_check_method=pass_all
6301 fi
6302 ;;
6303
6304 gnu*)
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
6307
6308 haiku*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312 hpux10.20* | hpux11*)
6313 lt_cv_file_magic_cmd=/usr/bin/file
6314 case $host_cpu in
6315 ia64*)
6316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6318 ;;
6319 hppa*64*)
6320 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]'
6321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6322 ;;
6323 *)
6324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6326 ;;
6327 esac
6328 ;;
6329
6330 interix[3-9]*)
6331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6333 ;;
6334
6335 irix5* | irix6* | nonstopux*)
6336 case $LD in
6337 *-32|*"-32 ") libmagic=32-bit;;
6338 *-n32|*"-n32 ") libmagic=N32;;
6339 *-64|*"-64 ") libmagic=64-bit;;
6340 *) libmagic=never-match;;
6341 esac
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 # This must be glibc/ELF.
6346 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349
6350 netbsd* | netbsdelf*-gnu)
6351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353 else
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6355 fi
6356 ;;
6357
6358 newos6*)
6359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6360 lt_cv_file_magic_cmd=/usr/bin/file
6361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6362 ;;
6363
6364 *nto* | *qnx*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 openbsd*)
6369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371 else
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373 fi
6374 ;;
6375
6376 osf3* | osf4* | osf5*)
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
6379
6380 rdos*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384 solaris*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 sysv4 | sysv4.3*)
6393 case $host_vendor in
6394 motorola)
6395 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]'
6396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6397 ;;
6398 ncr)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401 sequent)
6402 lt_cv_file_magic_cmd='/bin/file'
6403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6404 ;;
6405 sni)
6406 lt_cv_file_magic_cmd='/bin/file'
6407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408 lt_cv_file_magic_test_file=/lib/libc.so
6409 ;;
6410 siemens)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413 pc)
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
6416 esac
6417 ;;
6418
6419 tpf*)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422 esac
6423
6424 fi
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6426 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6427
6428 file_magic_glob=
6429 want_nocaseglob=no
6430 if test "$build" = "$host"; then
6431 case $host_os in
6432 mingw* | pw32*)
6433 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6434 want_nocaseglob=yes
6435 else
6436 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6437 fi
6438 ;;
6439 esac
6440 fi
6441
6442 file_magic_cmd=$lt_cv_file_magic_cmd
6443 deplibs_check_method=$lt_cv_deplibs_check_method
6444 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 printf %s "checking for $ac_word... " >&6; }
6472 if test ${ac_cv_prog_DLLTOOL+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else $as_nop
6476 if test -n "$DLLTOOL"; then
6477 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 case $as_dir in #(((
6484 '') as_dir=./ ;;
6485 */) ;;
6486 *) as_dir=$as_dir/ ;;
6487 esac
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 DLLTOOL=$ac_cv_prog_DLLTOOL
6501 if test -n "$DLLTOOL"; then
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6503 printf "%s\n" "$DLLTOOL" >&6; }
6504 else
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 printf "%s\n" "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_DLLTOOL"; then
6512 ac_ct_DLLTOOL=$DLLTOOL
6513 # Extract the first word of "dlltool", so it can be a program name with args.
6514 set dummy dlltool; ac_word=$2
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 printf %s "checking for $ac_word... " >&6; }
6517 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6518 then :
6519 printf %s "(cached) " >&6
6520 else $as_nop
6521 if test -n "$ac_ct_DLLTOOL"; then
6522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 case $as_dir in #(((
6529 '') as_dir=./ ;;
6530 */) ;;
6531 *) as_dir=$as_dir/ ;;
6532 esac
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6546 if test -n "$ac_ct_DLLTOOL"; then
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6548 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6549 else
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 printf "%s\n" "no" >&6; }
6552 fi
6553
6554 if test "x$ac_ct_DLLTOOL" = x; then
6555 DLLTOOL="false"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563 DLLTOOL=$ac_ct_DLLTOOL
6564 fi
6565 else
6566 DLLTOOL="$ac_cv_prog_DLLTOOL"
6567 fi
6568
6569 test -z "$DLLTOOL" && DLLTOOL=dlltool
6570
6571
6572
6573
6574
6575
6576
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6578 printf %s "checking how to associate runtime and link libraries... " >&6; }
6579 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else $as_nop
6583 lt_cv_sharedlib_from_linklib_cmd='unknown'
6584
6585 case $host_os in
6586 cygwin* | mingw* | pw32* | cegcc*)
6587 # two different shell functions defined in ltmain.sh
6588 # decide which to use based on capabilities of $DLLTOOL
6589 case `$DLLTOOL --help 2>&1` in
6590 *--identify-strict*)
6591 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6592 ;;
6593 *)
6594 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6595 ;;
6596 esac
6597 ;;
6598 *)
6599 # fallback: assume linklib IS sharedlib
6600 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6601 ;;
6602 esac
6603
6604 fi
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6606 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6607 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6608 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6609
6610
6611
6612
6613
6614
6615
6616 if test -n "$ac_tool_prefix"; then
6617 for ac_prog in ar
6618 do
6619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 printf %s "checking for $ac_word... " >&6; }
6623 if test ${ac_cv_prog_AR+y}
6624 then :
6625 printf %s "(cached) " >&6
6626 else $as_nop
6627 if test -n "$AR"; then
6628 ac_cv_prog_AR="$AR" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 case $as_dir in #(((
6635 '') as_dir=./ ;;
6636 */) ;;
6637 *) as_dir=$as_dir/ ;;
6638 esac
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 AR=$ac_cv_prog_AR
6652 if test -n "$AR"; then
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6654 printf "%s\n" "$AR" >&6; }
6655 else
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 printf "%s\n" "no" >&6; }
6658 fi
6659
6660
6661 test -n "$AR" && break
6662 done
6663 fi
6664 if test -z "$AR"; then
6665 ac_ct_AR=$AR
6666 for ac_prog in ar
6667 do
6668 # Extract the first word of "$ac_prog", so it can be a program name with args.
6669 set dummy $ac_prog; ac_word=$2
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 printf %s "checking for $ac_word... " >&6; }
6672 if test ${ac_cv_prog_ac_ct_AR+y}
6673 then :
6674 printf %s "(cached) " >&6
6675 else $as_nop
6676 if test -n "$ac_ct_AR"; then
6677 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682 IFS=$as_save_IFS
6683 case $as_dir in #(((
6684 '') as_dir=./ ;;
6685 */) ;;
6686 *) as_dir=$as_dir/ ;;
6687 esac
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_AR="$ac_prog"
6691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6703 printf "%s\n" "$ac_ct_AR" >&6; }
6704 else
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 printf "%s\n" "no" >&6; }
6707 fi
6708
6709
6710 test -n "$ac_ct_AR" && break
6711 done
6712
6713 if test "x$ac_ct_AR" = x; then
6714 AR="false"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 AR=$ac_ct_AR
6723 fi
6724 fi
6725
6726 : ${AR=ar}
6727 : ${AR_FLAGS=cru}
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6740 printf %s "checking for archiver @FILE support... " >&6; }
6741 if test ${lt_cv_ar_at_file+y}
6742 then :
6743 printf %s "(cached) " >&6
6744 else $as_nop
6745 lt_cv_ar_at_file=no
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748
6749 int
6750 main (void)
6751 {
6752
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 echo conftest.$ac_objext > conftest.lst
6760 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6762 (eval $lt_ar_try) 2>&5
6763 ac_status=$?
6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }
6766 if test "$ac_status" -eq 0; then
6767 # Ensure the archiver fails upon bogus file names.
6768 rm -f conftest.$ac_objext libconftest.a
6769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6770 (eval $lt_ar_try) 2>&5
6771 ac_status=$?
6772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }
6774 if test "$ac_status" -ne 0; then
6775 lt_cv_ar_at_file=@
6776 fi
6777 fi
6778 rm -f conftest.* libconftest.a
6779
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6782
6783 fi
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6785 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6786
6787 if test "x$lt_cv_ar_at_file" = xno; then
6788 archiver_list_spec=
6789 else
6790 archiver_list_spec=$lt_cv_ar_at_file
6791 fi
6792
6793
6794
6795
6796
6797
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}strip; ac_word=$2
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 printf %s "checking for $ac_word... " >&6; }
6804 if test ${ac_cv_prog_STRIP+y}
6805 then :
6806 printf %s "(cached) " >&6
6807 else $as_nop
6808 if test -n "$STRIP"; then
6809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 case $as_dir in #(((
6816 '') as_dir=./ ;;
6817 */) ;;
6818 *) as_dir=$as_dir/ ;;
6819 esac
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 STRIP=$ac_cv_prog_STRIP
6833 if test -n "$STRIP"; then
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6835 printf "%s\n" "$STRIP" >&6; }
6836 else
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 printf "%s\n" "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_STRIP"; then
6844 ac_ct_STRIP=$STRIP
6845 # Extract the first word of "strip", so it can be a program name with args.
6846 set dummy strip; ac_word=$2
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 printf %s "checking for $ac_word... " >&6; }
6849 if test ${ac_cv_prog_ac_ct_STRIP+y}
6850 then :
6851 printf %s "(cached) " >&6
6852 else $as_nop
6853 if test -n "$ac_ct_STRIP"; then
6854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 case $as_dir in #(((
6861 '') as_dir=./ ;;
6862 */) ;;
6863 *) as_dir=$as_dir/ ;;
6864 esac
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_STRIP="strip"
6868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6878 if test -n "$ac_ct_STRIP"; then
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6880 printf "%s\n" "$ac_ct_STRIP" >&6; }
6881 else
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 printf "%s\n" "no" >&6; }
6884 fi
6885
6886 if test "x$ac_ct_STRIP" = x; then
6887 STRIP=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 STRIP=$ac_ct_STRIP
6896 fi
6897 else
6898 STRIP="$ac_cv_prog_STRIP"
6899 fi
6900
6901 test -z "$STRIP" && STRIP=:
6902
6903
6904
6905
6906
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 printf %s "checking for $ac_word... " >&6; }
6913 if test ${ac_cv_prog_RANLIB+y}
6914 then :
6915 printf %s "(cached) " >&6
6916 else $as_nop
6917 if test -n "$RANLIB"; then
6918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 case $as_dir in #(((
6925 '') as_dir=./ ;;
6926 */) ;;
6927 *) as_dir=$as_dir/ ;;
6928 esac
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 RANLIB=$ac_cv_prog_RANLIB
6942 if test -n "$RANLIB"; then
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6944 printf "%s\n" "$RANLIB" >&6; }
6945 else
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 printf "%s\n" "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_RANLIB"; then
6953 ac_ct_RANLIB=$RANLIB
6954 # Extract the first word of "ranlib", so it can be a program name with args.
6955 set dummy ranlib; ac_word=$2
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 printf %s "checking for $ac_word... " >&6; }
6958 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else $as_nop
6962 if test -n "$ac_ct_RANLIB"; then
6963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 case $as_dir in #(((
6970 '') as_dir=./ ;;
6971 */) ;;
6972 *) as_dir=$as_dir/ ;;
6973 esac
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6976 ac_cv_prog_ac_ct_RANLIB="ranlib"
6977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6987 if test -n "$ac_ct_RANLIB"; then
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6989 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6990 else
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 printf "%s\n" "no" >&6; }
6993 fi
6994
6995 if test "x$ac_ct_RANLIB" = x; then
6996 RANLIB=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 RANLIB=$ac_ct_RANLIB
7005 fi
7006 else
7007 RANLIB="$ac_cv_prog_RANLIB"
7008 fi
7009
7010 test -z "$RANLIB" && RANLIB=:
7011
7012
7013
7014
7015
7016
7017 # Determine commands to create old-style static archives.
7018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7019 old_postinstall_cmds='chmod 644 $oldlib'
7020 old_postuninstall_cmds=
7021
7022 if test -n "$RANLIB"; then
7023 case $host_os in
7024 openbsd*)
7025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7026 ;;
7027 *)
7028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7029 ;;
7030 esac
7031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7032 fi
7033
7034 case $host_os in
7035 darwin*)
7036 lock_old_archive_extraction=yes ;;
7037 *)
7038 lock_old_archive_extraction=no ;;
7039 esac
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 # If no C compiler was specified, use CC.
7080 LTCC=${LTCC-"$CC"}
7081
7082 # If no C compiler flags were specified, use CFLAGS.
7083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7084
7085 # Allow CC to be a program name with arguments.
7086 compiler=$CC
7087
7088
7089 # Check for command to grab the raw symbol name followed by C symbol from nm.
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7091 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7092 if test ${lt_cv_sys_global_symbol_pipe+y}
7093 then :
7094 printf %s "(cached) " >&6
7095 else $as_nop
7096
7097 # These are sane defaults that work on at least a few old systems.
7098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7099
7100 # Character class describing NM global symbol codes.
7101 symcode='[BCDEGRST]'
7102
7103 # Regexp to match symbols that can be accessed directly from C.
7104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7105
7106 # Define system-specific variables.
7107 case $host_os in
7108 aix*)
7109 symcode='[BCDT]'
7110 ;;
7111 cygwin* | mingw* | pw32* | cegcc*)
7112 symcode='[ABCDGISTW]'
7113 ;;
7114 hpux*)
7115 if test "$host_cpu" = ia64; then
7116 symcode='[ABCDEGRST]'
7117 fi
7118 ;;
7119 irix* | nonstopux*)
7120 symcode='[BCDEGRST]'
7121 ;;
7122 osf*)
7123 symcode='[BCDEGQRST]'
7124 ;;
7125 solaris*)
7126 symcode='[BDRT]'
7127 ;;
7128 sco3.2v5*)
7129 symcode='[DT]'
7130 ;;
7131 sysv4.2uw2*)
7132 symcode='[DT]'
7133 ;;
7134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7135 symcode='[ABDT]'
7136 ;;
7137 sysv4)
7138 symcode='[DFNSTU]'
7139 ;;
7140 esac
7141
7142 # If we're using GNU nm, then use its standard symbol codes.
7143 case `$NM -V 2>&1` in
7144 *GNU* | *'with BFD'*)
7145 symcode='[ABCDGIRSTW]' ;;
7146 esac
7147
7148 # Transform an extracted symbol line into a proper C declaration.
7149 # Some systems (esp. on ia64) link data and code symbols differently,
7150 # so use this general approach.
7151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7152
7153 # Transform an extracted symbol line into symbol name and symbol address
7154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7156
7157 # Handle CRLF in mingw tool chain
7158 opt_cr=
7159 case $build_os in
7160 mingw*)
7161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7162 ;;
7163 esac
7164
7165 # Try without a prefix underscore, then with it.
7166 for ac_symprfx in "" "_"; do
7167
7168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7169 symxfrm="\\1 $ac_symprfx\\2 \\2"
7170
7171 # Write the raw and C identifiers.
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173 # Fake it for dumpbin and say T for any non-static function
7174 # and D for any global variable.
7175 # Also find C++ and __fastcall symbols from MSVC++,
7176 # which start with @ or ?.
7177 lt_cv_sys_global_symbol_pipe="$AWK '"\
7178 " {last_section=section; section=\$ 3};"\
7179 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7181 " \$ 0!~/External *\|/{next};"\
7182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7183 " {if(hide[section]) next};"\
7184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7188 " ' prfx=^$ac_symprfx"
7189 else
7190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7191 fi
7192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7193
7194 # Check to see that the pipe works correctly.
7195 pipe_works=no
7196
7197 rm -f conftest*
7198 cat > conftest.$ac_ext <<_LT_EOF
7199 #ifdef __cplusplus
7200 extern "C" {
7201 #endif
7202 char nm_test_var;
7203 void nm_test_func(void);
7204 void nm_test_func(void){}
7205 #ifdef __cplusplus
7206 }
7207 #endif
7208 int main(){nm_test_var='a';nm_test_func();return(0);}
7209 _LT_EOF
7210
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212 (eval $ac_compile) 2>&5
7213 ac_status=$?
7214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; }; then
7216 # Now try to grab the symbols.
7217 nlist=conftest.nm
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7220 ac_status=$?
7221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } && test -s "$nlist"; then
7223 # Try sorting and uniquifying the output.
7224 if sort "$nlist" | uniq > "$nlist"T; then
7225 mv -f "$nlist"T "$nlist"
7226 else
7227 rm -f "$nlist"T
7228 fi
7229
7230 # Make sure that we snagged all the symbols we need.
7231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7233 cat <<_LT_EOF > conftest.$ac_ext
7234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7237 relocations are performed -- see ld's documentation on pseudo-relocs. */
7238 # define LT_DLSYM_CONST
7239 #elif defined(__osf__)
7240 /* This system does not cope well with relocations in const data. */
7241 # define LT_DLSYM_CONST
7242 #else
7243 # define LT_DLSYM_CONST const
7244 #endif
7245
7246 #ifdef __cplusplus
7247 extern "C" {
7248 #endif
7249
7250 _LT_EOF
7251 # Now generate the symbol file.
7252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7253
7254 cat <<_LT_EOF >> conftest.$ac_ext
7255
7256 /* The mapping between symbol names and symbols. */
7257 LT_DLSYM_CONST struct {
7258 const char *name;
7259 void *address;
7260 }
7261 lt__PROGRAM__LTX_preloaded_symbols[] =
7262 {
7263 { "@PROGRAM@", (void *) 0 },
7264 _LT_EOF
7265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7266 cat <<\_LT_EOF >> conftest.$ac_ext
7267 {0, (void *) 0}
7268 };
7269
7270 /* This works around a problem in FreeBSD linker */
7271 #ifdef FREEBSD_WORKAROUND
7272 static const void *lt_preloaded_setup() {
7273 return lt__PROGRAM__LTX_preloaded_symbols;
7274 }
7275 #endif
7276
7277 #ifdef __cplusplus
7278 }
7279 #endif
7280 _LT_EOF
7281 # Now try linking the two files.
7282 mv conftest.$ac_objext conftstm.$ac_objext
7283 lt_globsym_save_LIBS=$LIBS
7284 lt_globsym_save_CFLAGS=$CFLAGS
7285 LIBS="conftstm.$ac_objext"
7286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7288 (eval $ac_link) 2>&5
7289 ac_status=$?
7290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7292 pipe_works=yes
7293 fi
7294 LIBS=$lt_globsym_save_LIBS
7295 CFLAGS=$lt_globsym_save_CFLAGS
7296 else
7297 echo "cannot find nm_test_func in $nlist" >&5
7298 fi
7299 else
7300 echo "cannot find nm_test_var in $nlist" >&5
7301 fi
7302 else
7303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7304 fi
7305 else
7306 echo "$progname: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 fi
7309 rm -rf conftest* conftst*
7310
7311 # Do not use the global_symbol_pipe unless it works.
7312 if test "$pipe_works" = yes; then
7313 break
7314 else
7315 lt_cv_sys_global_symbol_pipe=
7316 fi
7317 done
7318
7319 fi
7320
7321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7322 lt_cv_sys_global_symbol_to_cdecl=
7323 fi
7324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7326 printf "%s\n" "failed" >&6; }
7327 else
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7329 printf "%s\n" "ok" >&6; }
7330 fi
7331
7332 # Response file support.
7333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7334 nm_file_list_spec='@'
7335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7336 nm_file_list_spec='@'
7337 fi
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7366 printf %s "checking for sysroot... " >&6; }
7367
7368 # Check whether --with-sysroot was given.
7369 if test ${with_sysroot+y}
7370 then :
7371 withval=$with_sysroot;
7372 else $as_nop
7373 with_sysroot=no
7374 fi
7375
7376
7377 lt_sysroot=
7378 case ${with_sysroot} in #(
7379 yes)
7380 if test "$GCC" = yes; then
7381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7382 fi
7383 ;; #(
7384 /*)
7385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7386 ;; #(
7387 no|'')
7388 ;; #(
7389 *)
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7391 printf "%s\n" "${with_sysroot}" >&6; }
7392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7393 ;;
7394 esac
7395
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7397 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7398
7399
7400
7401
7402
7403 # Check whether --enable-libtool-lock was given.
7404 if test ${enable_libtool_lock+y}
7405 then :
7406 enableval=$enable_libtool_lock;
7407 fi
7408
7409 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7410
7411 # Some flags need to be propagated to the compiler or linker for good
7412 # libtool support.
7413 case $host in
7414 ia64-*-hpux*)
7415 # Find out which ABI we are using.
7416 echo 'int i;' > conftest.$ac_ext
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 case `/usr/bin/file conftest.$ac_objext` in
7423 *ELF-32*)
7424 HPUX_IA64_MODE="32"
7425 ;;
7426 *ELF-64*)
7427 HPUX_IA64_MODE="64"
7428 ;;
7429 esac
7430 fi
7431 rm -rf conftest*
7432 ;;
7433 *-*-irix6*)
7434 # Find out which ABI we are using.
7435 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7437 (eval $ac_compile) 2>&5
7438 ac_status=$?
7439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440 test $ac_status = 0; }; then
7441 if test "$lt_cv_prog_gnu_ld" = yes; then
7442 case `/usr/bin/file conftest.$ac_objext` in
7443 *32-bit*)
7444 LD="${LD-ld} -melf32bsmip"
7445 ;;
7446 *N32*)
7447 LD="${LD-ld} -melf32bmipn32"
7448 ;;
7449 *64-bit*)
7450 LD="${LD-ld} -melf64bmip"
7451 ;;
7452 esac
7453 else
7454 case `/usr/bin/file conftest.$ac_objext` in
7455 *32-bit*)
7456 LD="${LD-ld} -32"
7457 ;;
7458 *N32*)
7459 LD="${LD-ld} -n32"
7460 ;;
7461 *64-bit*)
7462 LD="${LD-ld} -64"
7463 ;;
7464 esac
7465 fi
7466 fi
7467 rm -rf conftest*
7468 ;;
7469
7470 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7471 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7472 # Find out which ABI we are using.
7473 echo 'int i;' > conftest.$ac_ext
7474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7475 (eval $ac_compile) 2>&5
7476 ac_status=$?
7477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7478 test $ac_status = 0; }; then
7479 case `/usr/bin/file conftest.o` in
7480 *32-bit*)
7481 case $host in
7482 x86_64-*kfreebsd*-gnu)
7483 LD="${LD-ld} -m elf_i386_fbsd"
7484 ;;
7485 x86_64-*linux*)
7486 LD="${LD-ld} -m elf_i386"
7487 ;;
7488 powerpc64le-*)
7489 LD="${LD-ld} -m elf32lppclinux"
7490 ;;
7491 powerpc64-*)
7492 LD="${LD-ld} -m elf32ppclinux"
7493 ;;
7494 s390x-*linux*)
7495 LD="${LD-ld} -m elf_s390"
7496 ;;
7497 sparc64-*linux*)
7498 LD="${LD-ld} -m elf32_sparc"
7499 ;;
7500 esac
7501 ;;
7502 *64-bit*)
7503 case $host in
7504 x86_64-*kfreebsd*-gnu)
7505 LD="${LD-ld} -m elf_x86_64_fbsd"
7506 ;;
7507 x86_64-*linux*)
7508 LD="${LD-ld} -m elf_x86_64"
7509 ;;
7510 powerpcle-*)
7511 LD="${LD-ld} -m elf64lppc"
7512 ;;
7513 powerpc-*)
7514 LD="${LD-ld} -m elf64ppc"
7515 ;;
7516 s390*-*linux*|s390*-*tpf*)
7517 LD="${LD-ld} -m elf64_s390"
7518 ;;
7519 sparc*-*linux*)
7520 LD="${LD-ld} -m elf64_sparc"
7521 ;;
7522 esac
7523 ;;
7524 esac
7525 fi
7526 rm -rf conftest*
7527 ;;
7528
7529 *-*-sco3.2v5*)
7530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7531 SAVE_CFLAGS="$CFLAGS"
7532 CFLAGS="$CFLAGS -belf"
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7534 printf %s "checking whether the C compiler needs -belf... " >&6; }
7535 if test ${lt_cv_cc_needs_belf+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else $as_nop
7539 ac_ext=c
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548 int
7549 main (void)
7550 {
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"
7557 then :
7558 lt_cv_cc_needs_belf=yes
7559 else $as_nop
7560 lt_cv_cc_needs_belf=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7563 conftest$ac_exeext conftest.$ac_ext
7564 ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570 fi
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7572 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7575 CFLAGS="$SAVE_CFLAGS"
7576 fi
7577 ;;
7578 *-*solaris*)
7579 # Find out which ABI we are using.
7580 echo 'int i;' > conftest.$ac_ext
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 case `/usr/bin/file conftest.o` in
7587 *64-bit*)
7588 case $lt_cv_prog_gnu_ld in
7589 yes*)
7590 case $host in
7591 i?86-*-solaris*)
7592 LD="${LD-ld} -m elf_x86_64"
7593 ;;
7594 sparc*-*-solaris*)
7595 LD="${LD-ld} -m elf64_sparc"
7596 ;;
7597 esac
7598 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7599 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7600 LD="${LD-ld}_sol2"
7601 fi
7602 ;;
7603 *)
7604 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7605 LD="${LD-ld} -64"
7606 fi
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612 rm -rf conftest*
7613 ;;
7614 esac
7615
7616 need_locks="$enable_libtool_lock"
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}mt; ac_word=$2
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 printf %s "checking for $ac_word... " >&6; }
7623 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
7627 if test -n "$MANIFEST_TOOL"; then
7628 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 case $as_dir in #(((
7635 '') as_dir=./ ;;
7636 */) ;;
7637 *) as_dir=$as_dir/ ;;
7638 esac
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7643 break 2
7644 fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7652 if test -n "$MANIFEST_TOOL"; then
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7654 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7655 else
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 printf "%s\n" "no" >&6; }
7658 fi
7659
7660
7661 fi
7662 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7663 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7664 # Extract the first word of "mt", so it can be a program name with args.
7665 set dummy mt; ac_word=$2
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 printf %s "checking for $ac_word... " >&6; }
7668 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 if test -n "$ac_ct_MANIFEST_TOOL"; then
7673 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 case $as_dir in #(((
7680 '') as_dir=./ ;;
7681 */) ;;
7682 *) as_dir=$as_dir/ ;;
7683 esac
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7697 if test -n "$ac_ct_MANIFEST_TOOL"; then
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7699 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7700 else
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 printf "%s\n" "no" >&6; }
7703 fi
7704
7705 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7706 MANIFEST_TOOL=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7715 fi
7716 else
7717 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7718 fi
7719
7720 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7722 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7723 if test ${lt_cv_path_mainfest_tool+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else $as_nop
7727 lt_cv_path_mainfest_tool=no
7728 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7729 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7730 cat conftest.err >&5
7731 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7732 lt_cv_path_mainfest_tool=yes
7733 fi
7734 rm -f conftest*
7735 fi
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7737 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7738 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7739 MANIFEST_TOOL=:
7740 fi
7741
7742
7743
7744
7745
7746
7747 case $host_os in
7748 rhapsody* | darwin*)
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 printf %s "checking for $ac_word... " >&6; }
7754 if test ${ac_cv_prog_DSYMUTIL+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else $as_nop
7758 if test -n "$DSYMUTIL"; then
7759 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 case $as_dir in #(((
7766 '') as_dir=./ ;;
7767 */) ;;
7768 *) as_dir=$as_dir/ ;;
7769 esac
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7783 if test -n "$DSYMUTIL"; then
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7785 printf "%s\n" "$DSYMUTIL" >&6; }
7786 else
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 printf "%s\n" "no" >&6; }
7789 fi
7790
7791
7792 fi
7793 if test -z "$ac_cv_prog_DSYMUTIL"; then
7794 ac_ct_DSYMUTIL=$DSYMUTIL
7795 # Extract the first word of "dsymutil", so it can be a program name with args.
7796 set dummy dsymutil; ac_word=$2
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 printf %s "checking for $ac_word... " >&6; }
7799 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7800 then :
7801 printf %s "(cached) " >&6
7802 else $as_nop
7803 if test -n "$ac_ct_DSYMUTIL"; then
7804 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 case $as_dir in #(((
7811 '') as_dir=./ ;;
7812 */) ;;
7813 *) as_dir=$as_dir/ ;;
7814 esac
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7817 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7828 if test -n "$ac_ct_DSYMUTIL"; then
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7830 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7831 else
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 printf "%s\n" "no" >&6; }
7834 fi
7835
7836 if test "x$ac_ct_DSYMUTIL" = x; then
7837 DSYMUTIL=":"
7838 else
7839 case $cross_compiling:$ac_tool_warned in
7840 yes:)
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7844 esac
7845 DSYMUTIL=$ac_ct_DSYMUTIL
7846 fi
7847 else
7848 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7849 fi
7850
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 printf %s "checking for $ac_word... " >&6; }
7856 if test ${ac_cv_prog_NMEDIT+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else $as_nop
7860 if test -n "$NMEDIT"; then
7861 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 case $as_dir in #(((
7868 '') as_dir=./ ;;
7869 */) ;;
7870 *) as_dir=$as_dir/ ;;
7871 esac
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 NMEDIT=$ac_cv_prog_NMEDIT
7885 if test -n "$NMEDIT"; then
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7887 printf "%s\n" "$NMEDIT" >&6; }
7888 else
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 printf "%s\n" "no" >&6; }
7891 fi
7892
7893
7894 fi
7895 if test -z "$ac_cv_prog_NMEDIT"; then
7896 ac_ct_NMEDIT=$NMEDIT
7897 # Extract the first word of "nmedit", so it can be a program name with args.
7898 set dummy nmedit; ac_word=$2
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 printf %s "checking for $ac_word... " >&6; }
7901 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else $as_nop
7905 if test -n "$ac_ct_NMEDIT"; then
7906 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 case $as_dir in #(((
7913 '') as_dir=./ ;;
7914 */) ;;
7915 *) as_dir=$as_dir/ ;;
7916 esac
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7930 if test -n "$ac_ct_NMEDIT"; then
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7932 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7933 else
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 printf "%s\n" "no" >&6; }
7936 fi
7937
7938 if test "x$ac_ct_NMEDIT" = x; then
7939 NMEDIT=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942 yes:)
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947 NMEDIT=$ac_ct_NMEDIT
7948 fi
7949 else
7950 NMEDIT="$ac_cv_prog_NMEDIT"
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 printf %s "checking for $ac_word... " >&6; }
7958 if test ${ac_cv_prog_LIPO+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else $as_nop
7962 if test -n "$LIPO"; then
7963 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 case $as_dir in #(((
7970 '') as_dir=./ ;;
7971 */) ;;
7972 *) as_dir=$as_dir/ ;;
7973 esac
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7976 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 LIPO=$ac_cv_prog_LIPO
7987 if test -n "$LIPO"; then
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7989 printf "%s\n" "$LIPO" >&6; }
7990 else
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 printf "%s\n" "no" >&6; }
7993 fi
7994
7995
7996 fi
7997 if test -z "$ac_cv_prog_LIPO"; then
7998 ac_ct_LIPO=$LIPO
7999 # Extract the first word of "lipo", so it can be a program name with args.
8000 set dummy lipo; ac_word=$2
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 printf %s "checking for $ac_word... " >&6; }
8003 if test ${ac_cv_prog_ac_ct_LIPO+y}
8004 then :
8005 printf %s "(cached) " >&6
8006 else $as_nop
8007 if test -n "$ac_ct_LIPO"; then
8008 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8012 do
8013 IFS=$as_save_IFS
8014 case $as_dir in #(((
8015 '') as_dir=./ ;;
8016 */) ;;
8017 *) as_dir=$as_dir/ ;;
8018 esac
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_ac_ct_LIPO="lipo"
8022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8032 if test -n "$ac_ct_LIPO"; then
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8034 printf "%s\n" "$ac_ct_LIPO" >&6; }
8035 else
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 printf "%s\n" "no" >&6; }
8038 fi
8039
8040 if test "x$ac_ct_LIPO" = x; then
8041 LIPO=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 LIPO=$ac_ct_LIPO
8050 fi
8051 else
8052 LIPO="$ac_cv_prog_LIPO"
8053 fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}otool; ac_word=$2
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 printf %s "checking for $ac_word... " >&6; }
8060 if test ${ac_cv_prog_OTOOL+y}
8061 then :
8062 printf %s "(cached) " >&6
8063 else $as_nop
8064 if test -n "$OTOOL"; then
8065 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 case $as_dir in #(((
8072 '') as_dir=./ ;;
8073 */) ;;
8074 *) as_dir=$as_dir/ ;;
8075 esac
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8078 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8080 break 2
8081 fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 OTOOL=$ac_cv_prog_OTOOL
8089 if test -n "$OTOOL"; then
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8091 printf "%s\n" "$OTOOL" >&6; }
8092 else
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 printf "%s\n" "no" >&6; }
8095 fi
8096
8097
8098 fi
8099 if test -z "$ac_cv_prog_OTOOL"; then
8100 ac_ct_OTOOL=$OTOOL
8101 # Extract the first word of "otool", so it can be a program name with args.
8102 set dummy otool; ac_word=$2
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 printf %s "checking for $ac_word... " >&6; }
8105 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8106 then :
8107 printf %s "(cached) " >&6
8108 else $as_nop
8109 if test -n "$ac_ct_OTOOL"; then
8110 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115 IFS=$as_save_IFS
8116 case $as_dir in #(((
8117 '') as_dir=./ ;;
8118 */) ;;
8119 *) as_dir=$as_dir/ ;;
8120 esac
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_ac_ct_OTOOL="otool"
8124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8125 break 2
8126 fi
8127 done
8128 done
8129 IFS=$as_save_IFS
8130
8131 fi
8132 fi
8133 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8134 if test -n "$ac_ct_OTOOL"; then
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8136 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8137 else
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 printf "%s\n" "no" >&6; }
8140 fi
8141
8142 if test "x$ac_ct_OTOOL" = x; then
8143 OTOOL=":"
8144 else
8145 case $cross_compiling:$ac_tool_warned in
8146 yes:)
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149 ac_tool_warned=yes ;;
8150 esac
8151 OTOOL=$ac_ct_OTOOL
8152 fi
8153 else
8154 OTOOL="$ac_cv_prog_OTOOL"
8155 fi
8156
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8159 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 printf %s "checking for $ac_word... " >&6; }
8162 if test ${ac_cv_prog_OTOOL64+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else $as_nop
8166 if test -n "$OTOOL64"; then
8167 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 case $as_dir in #(((
8174 '') as_dir=./ ;;
8175 */) ;;
8176 *) as_dir=$as_dir/ ;;
8177 esac
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 OTOOL64=$ac_cv_prog_OTOOL64
8191 if test -n "$OTOOL64"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8193 printf "%s\n" "$OTOOL64" >&6; }
8194 else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 printf "%s\n" "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_OTOOL64"; then
8202 ac_ct_OTOOL64=$OTOOL64
8203 # Extract the first word of "otool64", so it can be a program name with args.
8204 set dummy otool64; ac_word=$2
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 printf %s "checking for $ac_word... " >&6; }
8207 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8208 then :
8209 printf %s "(cached) " >&6
8210 else $as_nop
8211 if test -n "$ac_ct_OTOOL64"; then
8212 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217 IFS=$as_save_IFS
8218 case $as_dir in #(((
8219 '') as_dir=./ ;;
8220 */) ;;
8221 *) as_dir=$as_dir/ ;;
8222 esac
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_ac_ct_OTOOL64="otool64"
8226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229 done
8230 done
8231 IFS=$as_save_IFS
8232
8233 fi
8234 fi
8235 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8236 if test -n "$ac_ct_OTOOL64"; then
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8238 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8239 else
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 printf "%s\n" "no" >&6; }
8242 fi
8243
8244 if test "x$ac_ct_OTOOL64" = x; then
8245 OTOOL64=":"
8246 else
8247 case $cross_compiling:$ac_tool_warned in
8248 yes:)
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253 OTOOL64=$ac_ct_OTOOL64
8254 fi
8255 else
8256 OTOOL64="$ac_cv_prog_OTOOL64"
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8286 printf %s "checking for -single_module linker flag... " >&6; }
8287 if test ${lt_cv_apple_cc_single_mod+y}
8288 then :
8289 printf %s "(cached) " >&6
8290 else $as_nop
8291 lt_cv_apple_cc_single_mod=no
8292 if test -z "${LT_MULTI_MODULE}"; then
8293 # By default we will add the -single_module flag. You can override
8294 # by either setting the environment variable LT_MULTI_MODULE
8295 # non-empty at configure time, or by adding -multi_module to the
8296 # link flags.
8297 rm -rf libconftest.dylib*
8298 echo "int foo(void){return 1;}" > conftest.c
8299 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8300 -dynamiclib -Wl,-single_module conftest.c" >&5
8301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8302 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8303 _lt_result=$?
8304 # If there is a non-empty error log, and "single_module"
8305 # appears in it, assume the flag caused a linker warning
8306 if test -s conftest.err && $GREP single_module conftest.err; then
8307 cat conftest.err >&5
8308 # Otherwise, if the output was created with a 0 exit code from
8309 # the compiler, it worked.
8310 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8311 lt_cv_apple_cc_single_mod=yes
8312 else
8313 cat conftest.err >&5
8314 fi
8315 rm -rf libconftest.dylib*
8316 rm -f conftest.*
8317 fi
8318 fi
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8320 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8321
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8323 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8324 if test ${lt_cv_ld_exported_symbols_list+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else $as_nop
8328 lt_cv_ld_exported_symbols_list=no
8329 save_LDFLAGS=$LDFLAGS
8330 echo "_main" > conftest.sym
8331 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 int
8336 main (void)
8337 {
8338
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 if ac_fn_c_try_link "$LINENO"
8344 then :
8345 lt_cv_ld_exported_symbols_list=yes
8346 else $as_nop
8347 lt_cv_ld_exported_symbols_list=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8350 conftest$ac_exeext conftest.$ac_ext
8351 LDFLAGS="$save_LDFLAGS"
8352
8353 fi
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8355 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8356
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8358 printf %s "checking for -force_load linker flag... " >&6; }
8359 if test ${lt_cv_ld_force_load+y}
8360 then :
8361 printf %s "(cached) " >&6
8362 else $as_nop
8363 lt_cv_ld_force_load=no
8364 cat > conftest.c << _LT_EOF
8365 int forced_loaded() { return 2;}
8366 _LT_EOF
8367 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8368 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8369 echo "$AR cru libconftest.a conftest.o" >&5
8370 $AR cru libconftest.a conftest.o 2>&5
8371 echo "$RANLIB libconftest.a" >&5
8372 $RANLIB libconftest.a 2>&5
8373 cat > conftest.c << _LT_EOF
8374 int main() { return 0;}
8375 _LT_EOF
8376 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8377 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8378 _lt_result=$?
8379 if test -s conftest.err && $GREP force_load conftest.err; then
8380 cat conftest.err >&5
8381 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8382 lt_cv_ld_force_load=yes
8383 else
8384 cat conftest.err >&5
8385 fi
8386 rm -f conftest.err libconftest.a conftest conftest.c
8387 rm -rf conftest.dSYM
8388
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8391 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8392 case $host_os in
8393 rhapsody* | darwin1.[012])
8394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8395 darwin1.*)
8396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8397 darwin*)
8398 case ${MACOSX_DEPLOYMENT_TARGET},$host in
8399 10.[012]*,*|,*powerpc*)
8400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8401 *)
8402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8403 esac
8404 ;;
8405 esac
8406 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8407 _lt_dar_single_mod='$single_module'
8408 fi
8409 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8410 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8411 else
8412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8413 fi
8414 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8415 _lt_dsymutil='~$DSYMUTIL $lib || :'
8416 else
8417 _lt_dsymutil=
8418 fi
8419 ;;
8420 esac
8421
8422 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8423 "
8424 if test "x$ac_cv_header_dlfcn_h" = xyes
8425 then :
8426 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8427
8428 fi
8429
8430
8431
8432
8433
8434 # Set options
8435 enable_win32_dll=yes
8436
8437 case $host in
8438 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8439 if test -n "$ac_tool_prefix"; then
8440 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8441 set dummy ${ac_tool_prefix}as; ac_word=$2
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 printf %s "checking for $ac_word... " >&6; }
8444 if test ${ac_cv_prog_AS+y}
8445 then :
8446 printf %s "(cached) " >&6
8447 else $as_nop
8448 if test -n "$AS"; then
8449 ac_cv_prog_AS="$AS" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454 IFS=$as_save_IFS
8455 case $as_dir in #(((
8456 '') as_dir=./ ;;
8457 */) ;;
8458 *) as_dir=$as_dir/ ;;
8459 esac
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_AS="${ac_tool_prefix}as"
8463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 AS=$ac_cv_prog_AS
8473 if test -n "$AS"; then
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8475 printf "%s\n" "$AS" >&6; }
8476 else
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 printf "%s\n" "no" >&6; }
8479 fi
8480
8481
8482 fi
8483 if test -z "$ac_cv_prog_AS"; then
8484 ac_ct_AS=$AS
8485 # Extract the first word of "as", so it can be a program name with args.
8486 set dummy as; ac_word=$2
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 printf %s "checking for $ac_word... " >&6; }
8489 if test ${ac_cv_prog_ac_ct_AS+y}
8490 then :
8491 printf %s "(cached) " >&6
8492 else $as_nop
8493 if test -n "$ac_ct_AS"; then
8494 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 case $as_dir in #(((
8501 '') as_dir=./ ;;
8502 */) ;;
8503 *) as_dir=$as_dir/ ;;
8504 esac
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_ac_ct_AS="as"
8508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515 fi
8516 fi
8517 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8518 if test -n "$ac_ct_AS"; then
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8520 printf "%s\n" "$ac_ct_AS" >&6; }
8521 else
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 printf "%s\n" "no" >&6; }
8524 fi
8525
8526 if test "x$ac_ct_AS" = x; then
8527 AS="false"
8528 else
8529 case $cross_compiling:$ac_tool_warned in
8530 yes:)
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8533 ac_tool_warned=yes ;;
8534 esac
8535 AS=$ac_ct_AS
8536 fi
8537 else
8538 AS="$ac_cv_prog_AS"
8539 fi
8540
8541 if test -n "$ac_tool_prefix"; then
8542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8543 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 printf %s "checking for $ac_word... " >&6; }
8546 if test ${ac_cv_prog_DLLTOOL+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 if test -n "$DLLTOOL"; then
8551 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556 IFS=$as_save_IFS
8557 case $as_dir in #(((
8558 '') as_dir=./ ;;
8559 */) ;;
8560 *) as_dir=$as_dir/ ;;
8561 esac
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568 done
8569 done
8570 IFS=$as_save_IFS
8571
8572 fi
8573 fi
8574 DLLTOOL=$ac_cv_prog_DLLTOOL
8575 if test -n "$DLLTOOL"; then
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8577 printf "%s\n" "$DLLTOOL" >&6; }
8578 else
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 printf "%s\n" "no" >&6; }
8581 fi
8582
8583
8584 fi
8585 if test -z "$ac_cv_prog_DLLTOOL"; then
8586 ac_ct_DLLTOOL=$DLLTOOL
8587 # Extract the first word of "dlltool", so it can be a program name with args.
8588 set dummy dlltool; ac_word=$2
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 printf %s "checking for $ac_word... " >&6; }
8591 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else $as_nop
8595 if test -n "$ac_ct_DLLTOOL"; then
8596 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601 IFS=$as_save_IFS
8602 case $as_dir in #(((
8603 '') as_dir=./ ;;
8604 */) ;;
8605 *) as_dir=$as_dir/ ;;
8606 esac
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8620 if test -n "$ac_ct_DLLTOOL"; then
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8622 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8623 else
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 printf "%s\n" "no" >&6; }
8626 fi
8627
8628 if test "x$ac_ct_DLLTOOL" = x; then
8629 DLLTOOL="false"
8630 else
8631 case $cross_compiling:$ac_tool_warned in
8632 yes:)
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635 ac_tool_warned=yes ;;
8636 esac
8637 DLLTOOL=$ac_ct_DLLTOOL
8638 fi
8639 else
8640 DLLTOOL="$ac_cv_prog_DLLTOOL"
8641 fi
8642
8643 if test -n "$ac_tool_prefix"; then
8644 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8645 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 printf %s "checking for $ac_word... " >&6; }
8648 if test ${ac_cv_prog_OBJDUMP+y}
8649 then :
8650 printf %s "(cached) " >&6
8651 else $as_nop
8652 if test -n "$OBJDUMP"; then
8653 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658 IFS=$as_save_IFS
8659 case $as_dir in #(((
8660 '') as_dir=./ ;;
8661 */) ;;
8662 *) as_dir=$as_dir/ ;;
8663 esac
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670 done
8671 done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 OBJDUMP=$ac_cv_prog_OBJDUMP
8677 if test -n "$OBJDUMP"; then
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8679 printf "%s\n" "$OBJDUMP" >&6; }
8680 else
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 printf "%s\n" "no" >&6; }
8683 fi
8684
8685
8686 fi
8687 if test -z "$ac_cv_prog_OBJDUMP"; then
8688 ac_ct_OBJDUMP=$OBJDUMP
8689 # Extract the first word of "objdump", so it can be a program name with args.
8690 set dummy objdump; ac_word=$2
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 printf %s "checking for $ac_word... " >&6; }
8693 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8694 then :
8695 printf %s "(cached) " >&6
8696 else $as_nop
8697 if test -n "$ac_ct_OBJDUMP"; then
8698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703 IFS=$as_save_IFS
8704 case $as_dir in #(((
8705 '') as_dir=./ ;;
8706 */) ;;
8707 *) as_dir=$as_dir/ ;;
8708 esac
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715 done
8716 done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8722 if test -n "$ac_ct_OBJDUMP"; then
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8724 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8725 else
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 printf "%s\n" "no" >&6; }
8728 fi
8729
8730 if test "x$ac_ct_OBJDUMP" = x; then
8731 OBJDUMP="false"
8732 else
8733 case $cross_compiling:$ac_tool_warned in
8734 yes:)
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737 ac_tool_warned=yes ;;
8738 esac
8739 OBJDUMP=$ac_ct_OBJDUMP
8740 fi
8741 else
8742 OBJDUMP="$ac_cv_prog_OBJDUMP"
8743 fi
8744
8745 ;;
8746 esac
8747
8748 test -z "$AS" && AS=as
8749
8750
8751
8752
8753
8754 test -z "$DLLTOOL" && DLLTOOL=dlltool
8755
8756
8757
8758
8759
8760 test -z "$OBJDUMP" && OBJDUMP=objdump
8761
8762
8763
8764
8765 # Check whether --enable-static was given.
8766 if test ${enable_static+y}
8767 then :
8768 enableval=$enable_static; p=${PACKAGE-default}
8769 case $enableval in
8770 yes) enable_static=yes ;;
8771 no) enable_static=no ;;
8772 *)
8773 enable_static=no
8774 # Look at the argument we got. We use all the common list separators.
8775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8776 for pkg in $enableval; do
8777 IFS="$lt_save_ifs"
8778 if test "X$pkg" = "X$p"; then
8779 enable_static=yes
8780 fi
8781 done
8782 IFS="$lt_save_ifs"
8783 ;;
8784 esac
8785 else $as_nop
8786 enable_static=no
8787 fi
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 enable_dlopen=no
8799
8800
8801
8802 # Check whether --enable-shared was given.
8803 if test ${enable_shared+y}
8804 then :
8805 enableval=$enable_shared; p=${PACKAGE-default}
8806 case $enableval in
8807 yes) enable_shared=yes ;;
8808 no) enable_shared=no ;;
8809 *)
8810 enable_shared=no
8811 # Look at the argument we got. We use all the common list separators.
8812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8813 for pkg in $enableval; do
8814 IFS="$lt_save_ifs"
8815 if test "X$pkg" = "X$p"; then
8816 enable_shared=yes
8817 fi
8818 done
8819 IFS="$lt_save_ifs"
8820 ;;
8821 esac
8822 else $as_nop
8823 enable_shared=yes
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 # Check whether --with-pic was given.
8837 if test ${with_pic+y}
8838 then :
8839 withval=$with_pic; lt_p=${PACKAGE-default}
8840 case $withval in
8841 yes|no) pic_mode=$withval ;;
8842 *)
8843 pic_mode=default
8844 # Look at the argument we got. We use all the common list separators.
8845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8846 for lt_pkg in $withval; do
8847 IFS="$lt_save_ifs"
8848 if test "X$lt_pkg" = "X$lt_p"; then
8849 pic_mode=yes
8850 fi
8851 done
8852 IFS="$lt_save_ifs"
8853 ;;
8854 esac
8855 else $as_nop
8856 pic_mode=default
8857 fi
8858
8859
8860 test -z "$pic_mode" && pic_mode=default
8861
8862
8863
8864
8865
8866
8867
8868 # Check whether --enable-fast-install was given.
8869 if test ${enable_fast_install+y}
8870 then :
8871 enableval=$enable_fast_install; p=${PACKAGE-default}
8872 case $enableval in
8873 yes) enable_fast_install=yes ;;
8874 no) enable_fast_install=no ;;
8875 *)
8876 enable_fast_install=no
8877 # Look at the argument we got. We use all the common list separators.
8878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8879 for pkg in $enableval; do
8880 IFS="$lt_save_ifs"
8881 if test "X$pkg" = "X$p"; then
8882 enable_fast_install=yes
8883 fi
8884 done
8885 IFS="$lt_save_ifs"
8886 ;;
8887 esac
8888 else $as_nop
8889 enable_fast_install=yes
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902 # This can be used to rebuild libtool when needed
8903 LIBTOOL_DEPS="$ltmain"
8904
8905 # Always use our own libtool.
8906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937 test -z "$LN_S" && LN_S="ln -s"
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 if test -n "${ZSH_VERSION+set}" ; then
8953 setopt NO_GLOB_SUBST
8954 fi
8955
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8957 printf %s "checking for objdir... " >&6; }
8958 if test ${lt_cv_objdir+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else $as_nop
8962 rm -f .libs 2>/dev/null
8963 mkdir .libs 2>/dev/null
8964 if test -d .libs; then
8965 lt_cv_objdir=.libs
8966 else
8967 # MS-DOS does not allow filenames that begin with a dot.
8968 lt_cv_objdir=_libs
8969 fi
8970 rmdir .libs 2>/dev/null
8971 fi
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8973 printf "%s\n" "$lt_cv_objdir" >&6; }
8974 objdir=$lt_cv_objdir
8975
8976
8977
8978
8979
8980 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8981
8982
8983
8984
8985 case $host_os in
8986 aix3*)
8987 # AIX sometimes has problems with the GCC collect2 program. For some
8988 # reason, if we set the COLLECT_NAMES environment variable, the problems
8989 # vanish in a puff of smoke.
8990 if test "X${COLLECT_NAMES+set}" != Xset; then
8991 COLLECT_NAMES=
8992 export COLLECT_NAMES
8993 fi
8994 ;;
8995 esac
8996
8997 # Global variables:
8998 ofile=libtool
8999 can_build_shared=yes
9000
9001 # All known linkers require a `.a' archive for static linking (except MSVC,
9002 # which needs '.lib').
9003 libext=a
9004
9005 with_gnu_ld="$lt_cv_prog_gnu_ld"
9006
9007 old_CC="$CC"
9008 old_CFLAGS="$CFLAGS"
9009
9010 # Set sane defaults for various variables
9011 test -z "$CC" && CC=cc
9012 test -z "$LTCC" && LTCC=$CC
9013 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9014 test -z "$LD" && LD=ld
9015 test -z "$ac_objext" && ac_objext=o
9016
9017 for cc_temp in $compiler""; do
9018 case $cc_temp in
9019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9021 \-*) ;;
9022 *) break;;
9023 esac
9024 done
9025 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9026
9027
9028 # Only perform the check for file, if the check method requires it
9029 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9030 case $deplibs_check_method in
9031 file_magic*)
9032 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9034 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9035 if test ${lt_cv_path_MAGIC_CMD+y}
9036 then :
9037 printf %s "(cached) " >&6
9038 else $as_nop
9039 case $MAGIC_CMD in
9040 [\\/*] | ?:[\\/]*)
9041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9042 ;;
9043 *)
9044 lt_save_MAGIC_CMD="$MAGIC_CMD"
9045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047 for ac_dir in $ac_dummy; do
9048 IFS="$lt_save_ifs"
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f $ac_dir/${ac_tool_prefix}file; then
9051 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9052 if test -n "$file_magic_test_file"; then
9053 case $deplibs_check_method in
9054 "file_magic "*)
9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058 $EGREP "$file_magic_regex" > /dev/null; then
9059 :
9060 else
9061 cat <<_LT_EOF 1>&2
9062
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such. This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem. Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** [email protected]
9071
9072 _LT_EOF
9073 fi ;;
9074 esac
9075 fi
9076 break
9077 fi
9078 done
9079 IFS="$lt_save_ifs"
9080 MAGIC_CMD="$lt_save_MAGIC_CMD"
9081 ;;
9082 esac
9083 fi
9084
9085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9086 if test -n "$MAGIC_CMD"; then
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 printf "%s\n" "$MAGIC_CMD" >&6; }
9089 else
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9092 fi
9093
9094
9095
9096
9097
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099 if test -n "$ac_tool_prefix"; then
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 printf %s "checking for file... " >&6; }
9102 if test ${lt_cv_path_MAGIC_CMD+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else $as_nop
9106 case $MAGIC_CMD in
9107 [\\/*] | ?:[\\/]*)
9108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9109 ;;
9110 *)
9111 lt_save_MAGIC_CMD="$MAGIC_CMD"
9112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9114 for ac_dir in $ac_dummy; do
9115 IFS="$lt_save_ifs"
9116 test -z "$ac_dir" && ac_dir=.
9117 if test -f $ac_dir/file; then
9118 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9119 if test -n "$file_magic_test_file"; then
9120 case $deplibs_check_method in
9121 "file_magic "*)
9122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9125 $EGREP "$file_magic_regex" > /dev/null; then
9126 :
9127 else
9128 cat <<_LT_EOF 1>&2
9129
9130 *** Warning: the command libtool uses to detect shared libraries,
9131 *** $file_magic_cmd, produces output that libtool cannot recognize.
9132 *** The result is that libtool may fail to recognize shared libraries
9133 *** as such. This will affect the creation of libtool libraries that
9134 *** depend on shared libraries, but programs linked with such libtool
9135 *** libraries will work regardless of this problem. Nevertheless, you
9136 *** may want to report the problem to your system manager and/or to
9137 *** [email protected]
9138
9139 _LT_EOF
9140 fi ;;
9141 esac
9142 fi
9143 break
9144 fi
9145 done
9146 IFS="$lt_save_ifs"
9147 MAGIC_CMD="$lt_save_MAGIC_CMD"
9148 ;;
9149 esac
9150 fi
9151
9152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9153 if test -n "$MAGIC_CMD"; then
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9155 printf "%s\n" "$MAGIC_CMD" >&6; }
9156 else
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 printf "%s\n" "no" >&6; }
9159 fi
9160
9161
9162 else
9163 MAGIC_CMD=:
9164 fi
9165 fi
9166
9167 fi
9168 ;;
9169 esac
9170
9171 # Use C for the default configuration in the libtool script
9172
9173 lt_save_CC="$CC"
9174 ac_ext=c
9175 ac_cpp='$CPP $CPPFLAGS'
9176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9179
9180
9181 # Source file extension for C test sources.
9182 ac_ext=c
9183
9184 # Object file extension for compiled C test sources.
9185 objext=o
9186 objext=$objext
9187
9188 # Code to be used in simple compile tests
9189 lt_simple_compile_test_code="int some_variable = 0;"
9190
9191 # Code to be used in simple link tests
9192 lt_simple_link_test_code='int main(){return(0);}'
9193
9194
9195
9196
9197
9198
9199
9200 # If no C compiler was specified, use CC.
9201 LTCC=${LTCC-"$CC"}
9202
9203 # If no C compiler flags were specified, use CFLAGS.
9204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9205
9206 # Allow CC to be a program name with arguments.
9207 compiler=$CC
9208
9209 # Save the default compiler, since it gets overwritten when the other
9210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9211 compiler_DEFAULT=$CC
9212
9213 # save warnings/boilerplate of simple test code
9214 ac_outfile=conftest.$ac_objext
9215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9217 _lt_compiler_boilerplate=`cat conftest.err`
9218 $RM conftest*
9219
9220 ac_outfile=conftest.$ac_objext
9221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9223 _lt_linker_boilerplate=`cat conftest.err`
9224 $RM -r conftest*
9225
9226
9227 ## CAVEAT EMPTOR:
9228 ## There is no encapsulation within the following macros, do not change
9229 ## the running order or otherwise move them around unless you know exactly
9230 ## what you are doing...
9231 if test -n "$compiler"; then
9232
9233 lt_prog_compiler_no_builtin_flag=
9234
9235 if test "$GCC" = yes; then
9236 case $cc_basename in
9237 nvcc*)
9238 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9239 *)
9240 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9241 esac
9242
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9244 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9245 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9246 then :
9247 printf %s "(cached) " >&6
9248 else $as_nop
9249 lt_cv_prog_compiler_rtti_exceptions=no
9250 ac_outfile=conftest.$ac_objext
9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9252 lt_compiler_flag="-fno-rtti -fno-exceptions"
9253 # Insert the option either (1) after the last *FLAGS variable, or
9254 # (2) before a word containing "conftest.", or (3) at the end.
9255 # Note that $ac_compile itself does not contain backslashes and begins
9256 # with a dollar sign (not a hyphen), so the echo should work correctly.
9257 # The option is referenced via a variable to avoid confusing sed.
9258 lt_compile=`echo "$ac_compile" | $SED \
9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261 -e 's:$: $lt_compiler_flag:'`
9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263 (eval "$lt_compile" 2>conftest.err)
9264 ac_status=$?
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 if (exit $ac_status) && test -s "$ac_outfile"; then
9268 # The compiler can only warn and ignore the option if not recognized
9269 # So say no if there are warnings other than the usual output.
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler_rtti_exceptions=yes
9274 fi
9275 fi
9276 $RM conftest*
9277
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9281
9282 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9284 else
9285 :
9286 fi
9287
9288 fi
9289
9290
9291
9292
9293
9294
9295 lt_prog_compiler_wl=
9296 lt_prog_compiler_pic=
9297 lt_prog_compiler_static=
9298
9299
9300 if test "$GCC" = yes; then
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_static='-static'
9303
9304 case $host_os in
9305 aix*)
9306 # All AIX code is PIC.
9307 if test "$host_cpu" = ia64; then
9308 # AIX 5 now supports IA64 processor
9309 lt_prog_compiler_static='-Bstatic'
9310 fi
9311 ;;
9312
9313 amigaos*)
9314 case $host_cpu in
9315 powerpc)
9316 # see comment about AmigaOS4 .so support
9317 lt_prog_compiler_pic='-fPIC'
9318 ;;
9319 m68k)
9320 # FIXME: we need at least 68020 code to build shared libraries, but
9321 # adding the `-m68020' flag to GCC prevents building anything better,
9322 # like `-m68040'.
9323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9324 ;;
9325 esac
9326 ;;
9327
9328 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9329 # PIC is the default for these OSes.
9330 ;;
9331
9332 mingw* | cygwin* | pw32* | os2* | cegcc*)
9333 # This hack is so that the source file can tell whether it is being
9334 # built for inclusion in a dll (and should export symbols for example).
9335 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9336 # (--disable-auto-import) libraries
9337 lt_prog_compiler_pic='-DDLL_EXPORT'
9338 ;;
9339
9340 darwin* | rhapsody*)
9341 # PIC is the default on this platform
9342 # Common symbols not allowed in MH_DYLIB files
9343 lt_prog_compiler_pic='-fno-common'
9344 ;;
9345
9346 haiku*)
9347 # PIC is the default for Haiku.
9348 # The "-static" flag exists, but is broken.
9349 lt_prog_compiler_static=
9350 ;;
9351
9352 hpux*)
9353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9355 # sets the default TLS model and affects inlining.
9356 case $host_cpu in
9357 hppa*64*)
9358 # +Z the default
9359 ;;
9360 *)
9361 lt_prog_compiler_pic='-fPIC'
9362 ;;
9363 esac
9364 ;;
9365
9366 interix[3-9]*)
9367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9368 # Instead, we relocate shared libraries at runtime.
9369 ;;
9370
9371 msdosdjgpp*)
9372 # Just because we use GCC doesn't mean we suddenly get shared libraries
9373 # on systems that don't support them.
9374 lt_prog_compiler_can_build_shared=no
9375 enable_shared=no
9376 ;;
9377
9378 *nto* | *qnx*)
9379 # QNX uses GNU C++, but need to define -shared option too, otherwise
9380 # it will coredump.
9381 lt_prog_compiler_pic='-fPIC -shared'
9382 ;;
9383
9384 sysv4*MP*)
9385 if test -d /usr/nec; then
9386 lt_prog_compiler_pic=-Kconform_pic
9387 fi
9388 ;;
9389
9390 *)
9391 lt_prog_compiler_pic='-fPIC'
9392 ;;
9393 esac
9394
9395 case $cc_basename in
9396 nvcc*) # Cuda Compiler Driver 2.2
9397 lt_prog_compiler_wl='-Xlinker '
9398 if test -n "$lt_prog_compiler_pic"; then
9399 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9400 fi
9401 ;;
9402 esac
9403 else
9404 # PORTME Check for flag to pass linker flags through the system compiler.
9405 case $host_os in
9406 aix*)
9407 lt_prog_compiler_wl='-Wl,'
9408 if test "$host_cpu" = ia64; then
9409 # AIX 5 now supports IA64 processor
9410 lt_prog_compiler_static='-Bstatic'
9411 else
9412 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9413 fi
9414 ;;
9415
9416 mingw* | cygwin* | pw32* | os2* | cegcc*)
9417 # This hack is so that the source file can tell whether it is being
9418 # built for inclusion in a dll (and should export symbols for example).
9419 lt_prog_compiler_pic='-DDLL_EXPORT'
9420 ;;
9421
9422 hpux9* | hpux10* | hpux11*)
9423 lt_prog_compiler_wl='-Wl,'
9424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9425 # not for PA HP-UX.
9426 case $host_cpu in
9427 hppa*64*|ia64*)
9428 # +Z the default
9429 ;;
9430 *)
9431 lt_prog_compiler_pic='+Z'
9432 ;;
9433 esac
9434 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9435 lt_prog_compiler_static='${wl}-a ${wl}archive'
9436 ;;
9437
9438 irix5* | irix6* | nonstopux*)
9439 lt_prog_compiler_wl='-Wl,'
9440 # PIC (with -KPIC) is the default.
9441 lt_prog_compiler_static='-non_shared'
9442 ;;
9443
9444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9445 case $cc_basename in
9446 # old Intel for x86_64 which still supported -KPIC.
9447 ecc*)
9448 lt_prog_compiler_wl='-Wl,'
9449 lt_prog_compiler_pic='-KPIC'
9450 lt_prog_compiler_static='-static'
9451 ;;
9452 # icc used to be incompatible with GCC.
9453 # ICC 10 doesn't accept -KPIC any more.
9454 icc* | ifort*)
9455 lt_prog_compiler_wl='-Wl,'
9456 lt_prog_compiler_pic='-fPIC'
9457 lt_prog_compiler_static='-static'
9458 ;;
9459 # Lahey Fortran 8.1.
9460 lf95*)
9461 lt_prog_compiler_wl='-Wl,'
9462 lt_prog_compiler_pic='--shared'
9463 lt_prog_compiler_static='--static'
9464 ;;
9465 nagfor*)
9466 # NAG Fortran compiler
9467 lt_prog_compiler_wl='-Wl,-Wl,,'
9468 lt_prog_compiler_pic='-PIC'
9469 lt_prog_compiler_static='-Bstatic'
9470 ;;
9471 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9472 # Portland Group compilers (*not* the Pentium gcc compiler,
9473 # which looks to be a dead project)
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fpic'
9476 lt_prog_compiler_static='-Bstatic'
9477 ;;
9478 ccc*)
9479 lt_prog_compiler_wl='-Wl,'
9480 # All Alpha code is PIC.
9481 lt_prog_compiler_static='-non_shared'
9482 ;;
9483 xl* | bgxl* | bgf* | mpixl*)
9484 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9485 lt_prog_compiler_wl='-Wl,'
9486 lt_prog_compiler_pic='-qpic'
9487 lt_prog_compiler_static='-qstaticlink'
9488 ;;
9489 *)
9490 case `$CC -V 2>&1 | sed 5q` in
9491 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9492 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9493 lt_prog_compiler_pic='-KPIC'
9494 lt_prog_compiler_static='-Bstatic'
9495 lt_prog_compiler_wl=''
9496 ;;
9497 *Sun\ F* | *Sun*Fortran*)
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 lt_prog_compiler_wl='-Qoption ld '
9501 ;;
9502 *Sun\ C*)
9503 # Sun C 5.9
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_wl='-Wl,'
9507 ;;
9508 *Intel*\ [CF]*Compiler*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-fPIC'
9511 lt_prog_compiler_static='-static'
9512 ;;
9513 *Portland\ Group*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-fpic'
9516 lt_prog_compiler_static='-Bstatic'
9517 ;;
9518 esac
9519 ;;
9520 esac
9521 ;;
9522
9523 newsos6)
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9526 ;;
9527
9528 *nto* | *qnx*)
9529 # QNX uses GNU C++, but need to define -shared option too, otherwise
9530 # it will coredump.
9531 lt_prog_compiler_pic='-fPIC -shared'
9532 ;;
9533
9534 osf3* | osf4* | osf5*)
9535 lt_prog_compiler_wl='-Wl,'
9536 # All OSF/1 code is PIC.
9537 lt_prog_compiler_static='-non_shared'
9538 ;;
9539
9540 rdos*)
9541 lt_prog_compiler_static='-non_shared'
9542 ;;
9543
9544 solaris*)
9545 lt_prog_compiler_pic='-KPIC'
9546 lt_prog_compiler_static='-Bstatic'
9547 case $cc_basename in
9548 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9549 lt_prog_compiler_wl='-Qoption ld ';;
9550 *)
9551 lt_prog_compiler_wl='-Wl,';;
9552 esac
9553 ;;
9554
9555 sunos4*)
9556 lt_prog_compiler_wl='-Qoption ld '
9557 lt_prog_compiler_pic='-PIC'
9558 lt_prog_compiler_static='-Bstatic'
9559 ;;
9560
9561 sysv4 | sysv4.2uw2* | sysv4.3*)
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 ;;
9566
9567 sysv4*MP*)
9568 if test -d /usr/nec ;then
9569 lt_prog_compiler_pic='-Kconform_pic'
9570 lt_prog_compiler_static='-Bstatic'
9571 fi
9572 ;;
9573
9574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
9579
9580 unicos*)
9581 lt_prog_compiler_wl='-Wl,'
9582 lt_prog_compiler_can_build_shared=no
9583 ;;
9584
9585 uts4*)
9586 lt_prog_compiler_pic='-pic'
9587 lt_prog_compiler_static='-Bstatic'
9588 ;;
9589
9590 *)
9591 lt_prog_compiler_can_build_shared=no
9592 ;;
9593 esac
9594 fi
9595
9596 case $host_os in
9597 # For platforms which do not support PIC, -DPIC is meaningless:
9598 *djgpp*)
9599 lt_prog_compiler_pic=
9600 ;;
9601 *)
9602 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9603 ;;
9604 esac
9605
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9607 printf %s "checking for $compiler option to produce PIC... " >&6; }
9608 if test ${lt_cv_prog_compiler_pic+y}
9609 then :
9610 printf %s "(cached) " >&6
9611 else $as_nop
9612 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9613 fi
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9615 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9616 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9617
9618 #
9619 # Check to make sure the PIC flag actually works.
9620 #
9621 if test -n "$lt_prog_compiler_pic"; then
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9623 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9624 if test ${lt_cv_prog_compiler_pic_works+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else $as_nop
9628 lt_cv_prog_compiler_pic_works=no
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9631 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9632 # Insert the option either (1) after the last *FLAGS variable, or
9633 # (2) before a word containing "conftest.", or (3) at the end.
9634 # Note that $ac_compile itself does not contain backslashes and begins
9635 # with a dollar sign (not a hyphen), so the echo should work correctly.
9636 # The option is referenced via a variable to avoid confusing sed.
9637 lt_compile=`echo "$ac_compile" | $SED \
9638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9640 -e 's:$: $lt_compiler_flag:'`
9641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9642 (eval "$lt_compile" 2>conftest.err)
9643 ac_status=$?
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 if (exit $ac_status) && test -s "$ac_outfile"; then
9647 # The compiler can only warn and ignore the option if not recognized
9648 # So say no if there are warnings other than the usual output.
9649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9652 lt_cv_prog_compiler_pic_works=yes
9653 fi
9654 fi
9655 $RM conftest*
9656
9657 fi
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9659 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9660
9661 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9662 case $lt_prog_compiler_pic in
9663 "" | " "*) ;;
9664 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9665 esac
9666 else
9667 lt_prog_compiler_pic=
9668 lt_prog_compiler_can_build_shared=no
9669 fi
9670
9671 fi
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 #
9684 # Check to make sure the static flag actually works.
9685 #
9686 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9688 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9689 if test ${lt_cv_prog_compiler_static_works+y}
9690 then :
9691 printf %s "(cached) " >&6
9692 else $as_nop
9693 lt_cv_prog_compiler_static_works=no
9694 save_LDFLAGS="$LDFLAGS"
9695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9698 # The linker can only warn and ignore the option if not recognized
9699 # So say no if there are warnings
9700 if test -s conftest.err; then
9701 # Append any errors to the config.log.
9702 cat conftest.err 1>&5
9703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler_static_works=yes
9707 fi
9708 else
9709 lt_cv_prog_compiler_static_works=yes
9710 fi
9711 fi
9712 $RM -r conftest*
9713 LDFLAGS="$save_LDFLAGS"
9714
9715 fi
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9717 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9718
9719 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9720 :
9721 else
9722 lt_prog_compiler_static=
9723 fi
9724
9725
9726
9727
9728
9729
9730
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9732 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9733 if test ${lt_cv_prog_compiler_c_o+y}
9734 then :
9735 printf %s "(cached) " >&6
9736 else $as_nop
9737 lt_cv_prog_compiler_c_o=no
9738 $RM -r conftest 2>/dev/null
9739 mkdir conftest
9740 cd conftest
9741 mkdir out
9742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9743
9744 lt_compiler_flag="-o out/conftest2.$ac_objext"
9745 # Insert the option either (1) after the last *FLAGS variable, or
9746 # (2) before a word containing "conftest.", or (3) at the end.
9747 # Note that $ac_compile itself does not contain backslashes and begins
9748 # with a dollar sign (not a hyphen), so the echo should work correctly.
9749 lt_compile=`echo "$ac_compile" | $SED \
9750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9752 -e 's:$: $lt_compiler_flag:'`
9753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9754 (eval "$lt_compile" 2>out/conftest.err)
9755 ac_status=$?
9756 cat out/conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9759 then
9760 # The compiler can only warn and ignore the option if not recognized
9761 # So say no if there are warnings
9762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9765 lt_cv_prog_compiler_c_o=yes
9766 fi
9767 fi
9768 chmod u+w . 2>&5
9769 $RM conftest*
9770 # SGI C++ compiler will create directory out/ii_files/ for
9771 # template instantiation
9772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9773 $RM out/* && rmdir out
9774 cd ..
9775 $RM -r conftest
9776 $RM conftest*
9777
9778 fi
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9780 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9781
9782
9783
9784
9785
9786
9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9788 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9789 if test ${lt_cv_prog_compiler_c_o+y}
9790 then :
9791 printf %s "(cached) " >&6
9792 else $as_nop
9793 lt_cv_prog_compiler_c_o=no
9794 $RM -r conftest 2>/dev/null
9795 mkdir conftest
9796 cd conftest
9797 mkdir out
9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
9800 lt_compiler_flag="-o out/conftest2.$ac_objext"
9801 # Insert the option either (1) after the last *FLAGS variable, or
9802 # (2) before a word containing "conftest.", or (3) at the end.
9803 # Note that $ac_compile itself does not contain backslashes and begins
9804 # with a dollar sign (not a hyphen), so the echo should work correctly.
9805 lt_compile=`echo "$ac_compile" | $SED \
9806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9808 -e 's:$: $lt_compiler_flag:'`
9809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9810 (eval "$lt_compile" 2>out/conftest.err)
9811 ac_status=$?
9812 cat out/conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9815 then
9816 # The compiler can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9821 lt_cv_prog_compiler_c_o=yes
9822 fi
9823 fi
9824 chmod u+w . 2>&5
9825 $RM conftest*
9826 # SGI C++ compiler will create directory out/ii_files/ for
9827 # template instantiation
9828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9829 $RM out/* && rmdir out
9830 cd ..
9831 $RM -r conftest
9832 $RM conftest*
9833
9834 fi
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9836 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9837
9838
9839
9840
9841 hard_links="nottested"
9842 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9843 # do not overwrite the value of need_locks provided by the user
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9845 printf %s "checking if we can lock with hard links... " >&6; }
9846 hard_links=yes
9847 $RM conftest*
9848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9849 touch conftest.a
9850 ln conftest.a conftest.b 2>&5 || hard_links=no
9851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9853 printf "%s\n" "$hard_links" >&6; }
9854 if test "$hard_links" = no; then
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9856 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9857 need_locks=warn
9858 fi
9859 else
9860 need_locks=no
9861 fi
9862
9863
9864
9865
9866
9867
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9869 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9870
9871 runpath_var=
9872 allow_undefined_flag=
9873 always_export_symbols=no
9874 archive_cmds=
9875 archive_expsym_cmds=
9876 compiler_needs_object=no
9877 enable_shared_with_static_runtimes=no
9878 export_dynamic_flag_spec=
9879 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9880 hardcode_automatic=no
9881 hardcode_direct=no
9882 hardcode_direct_absolute=no
9883 hardcode_libdir_flag_spec=
9884 hardcode_libdir_separator=
9885 hardcode_minus_L=no
9886 hardcode_shlibpath_var=unsupported
9887 inherit_rpath=no
9888 link_all_deplibs=unknown
9889 module_cmds=
9890 module_expsym_cmds=
9891 old_archive_from_new_cmds=
9892 old_archive_from_expsyms_cmds=
9893 thread_safe_flag_spec=
9894 whole_archive_flag_spec=
9895 # include_expsyms should be a list of space-separated symbols to be *always*
9896 # included in the symbol list
9897 include_expsyms=
9898 # exclude_expsyms can be an extended regexp of symbols to exclude
9899 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9901 # as well as any symbol that contains `d'.
9902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9904 # platforms (ab)use it in PIC code, but their linkers get confused if
9905 # the symbol is explicitly referenced. Since portable code cannot
9906 # rely on this symbol name, it's probably fine to never include it in
9907 # preloaded symbol tables.
9908 # Exclude shared library initialization/finalization symbols.
9909 extract_expsyms_cmds=
9910
9911 case $host_os in
9912 cygwin* | mingw* | pw32* | cegcc*)
9913 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 if test "$GCC" != yes; then
9917 with_gnu_ld=no
9918 fi
9919 ;;
9920 interix*)
9921 # we just hope/assume this is gcc and not c89 (= MSVC++)
9922 with_gnu_ld=yes
9923 ;;
9924 openbsd*)
9925 with_gnu_ld=no
9926 ;;
9927 linux* | k*bsd*-gnu | gnu*)
9928 link_all_deplibs=no
9929 ;;
9930 esac
9931
9932 ld_shlibs=yes
9933
9934 # On some targets, GNU ld is compatible enough with the native linker
9935 # that we're better off using the native interface for both.
9936 lt_use_gnu_ld_interface=no
9937 if test "$with_gnu_ld" = yes; then
9938 case $host_os in
9939 aix*)
9940 # The AIX port of GNU ld has always aspired to compatibility
9941 # with the native linker. However, as the warning in the GNU ld
9942 # block says, versions before 2.19.5* couldn't really create working
9943 # shared libraries, regardless of the interface used.
9944 case `$LD -v 2>&1` in
9945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9947 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9948 *)
9949 lt_use_gnu_ld_interface=yes
9950 ;;
9951 esac
9952 ;;
9953 *)
9954 lt_use_gnu_ld_interface=yes
9955 ;;
9956 esac
9957 fi
9958
9959 if test "$lt_use_gnu_ld_interface" = yes; then
9960 # If archive_cmds runs LD, not CC, wlarc should be empty
9961 wlarc='${wl}'
9962
9963 # Set some defaults for GNU ld with shared library support. These
9964 # are reset later if shared libraries are not supported. Putting them
9965 # here allows them to be overridden if necessary.
9966 runpath_var=LD_RUN_PATH
9967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 export_dynamic_flag_spec='${wl}--export-dynamic'
9969 # ancient GNU ld didn't support --whole-archive et. al.
9970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9972 else
9973 whole_archive_flag_spec=
9974 fi
9975 supports_anon_versioning=no
9976 case `$LD -v 2>&1` in
9977 *GNU\ gold*) supports_anon_versioning=yes ;;
9978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9981 *\ 2.11.*) ;; # other 2.11 versions
9982 *) supports_anon_versioning=yes ;;
9983 esac
9984
9985 # See if GNU ld supports shared libraries.
9986 case $host_os in
9987 aix[3-9]*)
9988 # On AIX/PPC, the GNU linker is very broken
9989 if test "$host_cpu" != ia64; then
9990 ld_shlibs=no
9991 cat <<_LT_EOF 1>&2
9992
9993 *** Warning: the GNU linker, at least up to release 2.19, is reported
9994 *** to be unable to reliably create shared libraries on AIX.
9995 *** Therefore, libtool is disabling shared libraries support. If you
9996 *** really care for shared libraries, you may want to install binutils
9997 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9998 *** You will then need to restart the configuration process.
9999
10000 _LT_EOF
10001 fi
10002 ;;
10003
10004 amigaos*)
10005 case $host_cpu in
10006 powerpc)
10007 # see comment about AmigaOS4 .so support
10008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 archive_expsym_cmds=''
10010 ;;
10011 m68k)
10012 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)'
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_minus_L=yes
10015 ;;
10016 esac
10017 ;;
10018
10019 beos*)
10020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10021 allow_undefined_flag=unsupported
10022 # Joseph Beckenbach <[email protected]> says some releases of gcc
10023 # support --undefined. This deserves some investigation. FIXME
10024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025 else
10026 ld_shlibs=no
10027 fi
10028 ;;
10029
10030 cygwin* | mingw* | pw32* | cegcc*)
10031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10032 # as there is no search path for DLLs.
10033 hardcode_libdir_flag_spec='-L$libdir'
10034 export_dynamic_flag_spec='${wl}--export-all-symbols'
10035 allow_undefined_flag=unsupported
10036 always_export_symbols=no
10037 enable_shared_with_static_runtimes=yes
10038 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'
10039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10040
10041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10043 # If the export-symbols file already is a .def file (1st line
10044 # is EXPORTS), use it as is; otherwise, prepend...
10045 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10046 cp $export_symbols $output_objdir/$soname.def;
10047 else
10048 echo EXPORTS > $output_objdir/$soname.def;
10049 cat $export_symbols >> $output_objdir/$soname.def;
10050 fi~
10051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
10057 haiku*)
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 link_all_deplibs=yes
10060 ;;
10061
10062 interix[3-9]*)
10063 hardcode_direct=no
10064 hardcode_shlibpath_var=no
10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10066 export_dynamic_flag_spec='${wl}-E'
10067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10068 # Instead, shared libraries are loaded at an image base (0x10000000 by
10069 # default) and relocated if they conflict, which is a slow very memory
10070 # consuming and fragmenting process. To avoid this, we pick a random,
10071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10074 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'
10075 ;;
10076
10077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10078 tmp_diet=no
10079 if test "$host_os" = linux-dietlibc; then
10080 case $cc_basename in
10081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10082 esac
10083 fi
10084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10085 && test "$tmp_diet" = no
10086 then
10087 tmp_addflag=' $pic_flag'
10088 tmp_sharedflag='-shared'
10089 case $cc_basename,$host_cpu in
10090 pgcc*) # Portland Group C compiler
10091 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'
10092 tmp_addflag=' $pic_flag'
10093 ;;
10094 pgf77* | pgf90* | pgf95* | pgfortran*)
10095 # Portland Group f77 and f90 compilers
10096 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'
10097 tmp_addflag=' $pic_flag -Mnomain' ;;
10098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10099 tmp_addflag=' -i_dynamic' ;;
10100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10101 tmp_addflag=' -i_dynamic -nofor_main' ;;
10102 ifc* | ifort*) # Intel Fortran compiler
10103 tmp_addflag=' -nofor_main' ;;
10104 lf95*) # Lahey Fortran 8.1
10105 whole_archive_flag_spec=
10106 tmp_sharedflag='--shared' ;;
10107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10108 tmp_sharedflag='-qmkshrobj'
10109 tmp_addflag= ;;
10110 nvcc*) # Cuda Compiler Driver 2.2
10111 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'
10112 compiler_needs_object=yes
10113 ;;
10114 esac
10115 case `$CC -V 2>&1 | sed 5q` in
10116 *Sun\ C*) # Sun C 5.9
10117 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'
10118 compiler_needs_object=yes
10119 tmp_sharedflag='-G' ;;
10120 *Sun\ F*) # Sun Fortran 8.3
10121 tmp_sharedflag='-G' ;;
10122 esac
10123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124
10125 if test "x$supports_anon_versioning" = xyes; then
10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10128 echo "local: *; };" >> $output_objdir/$libname.ver~
10129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10130 fi
10131
10132 case $cc_basename in
10133 xlf* | bgf* | bgxlf* | mpixlf*)
10134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10138 if test "x$supports_anon_versioning" = xyes; then
10139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10141 echo "local: *; };" >> $output_objdir/$libname.ver~
10142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10143 fi
10144 ;;
10145 esac
10146 else
10147 ld_shlibs=no
10148 fi
10149 ;;
10150
10151 netbsd* | netbsdelf*-gnu)
10152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10154 wlarc=
10155 else
10156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 fi
10159 ;;
10160
10161 solaris*)
10162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10163 ld_shlibs=no
10164 cat <<_LT_EOF 1>&2
10165
10166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10167 *** create shared libraries on Solaris systems. Therefore, libtool
10168 *** is disabling shared libraries support. We urge you to upgrade GNU
10169 *** binutils to release 2.9.1 or newer. Another option is to modify
10170 *** your PATH or compiler configuration so that the native linker is
10171 *** used, and then restart.
10172
10173 _LT_EOF
10174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10177 else
10178 ld_shlibs=no
10179 fi
10180 ;;
10181
10182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10183 case `$LD -v 2>&1` in
10184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10185 ld_shlibs=no
10186 cat <<_LT_EOF 1>&2
10187
10188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10189 *** reliably create shared libraries on SCO systems. Therefore, libtool
10190 *** is disabling shared libraries support. We urge you to upgrade GNU
10191 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10192 *** your PATH or compiler configuration so that the native linker is
10193 *** used, and then restart.
10194
10195 _LT_EOF
10196 ;;
10197 *)
10198 # For security reasons, it is highly recommended that you always
10199 # use absolute paths for naming shared libraries, and exclude the
10200 # DT_RUNPATH tag from executables and libraries. But doing so
10201 # requires that you compile everything twice, which is a pain.
10202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206 else
10207 ld_shlibs=no
10208 fi
10209 ;;
10210 esac
10211 ;;
10212
10213 sunos4*)
10214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215 wlarc=
10216 hardcode_direct=yes
10217 hardcode_shlibpath_var=no
10218 ;;
10219
10220 *)
10221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10224 else
10225 ld_shlibs=no
10226 fi
10227 ;;
10228 esac
10229
10230 if test "$ld_shlibs" = no; then
10231 runpath_var=
10232 hardcode_libdir_flag_spec=
10233 export_dynamic_flag_spec=
10234 whole_archive_flag_spec=
10235 fi
10236 else
10237 # PORTME fill in a description of your system's linker (not GNU ld)
10238 case $host_os in
10239 aix3*)
10240 allow_undefined_flag=unsupported
10241 always_export_symbols=yes
10242 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'
10243 # Note: this linker hardcodes the directories in LIBPATH if there
10244 # are no directories specified by -L.
10245 hardcode_minus_L=yes
10246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10247 # Neither direct hardcoding nor static linking is supported with a
10248 # broken collect2.
10249 hardcode_direct=unsupported
10250 fi
10251 ;;
10252
10253 aix[4-9]*)
10254 if test "$host_cpu" = ia64; then
10255 # On IA64, the linker does run time linking by default, so we don't
10256 # have to do anything special.
10257 aix_use_runtimelinking=no
10258 exp_sym_flag='-Bexport'
10259 no_entry_flag=""
10260 else
10261 # If we're using GNU nm, then we don't want the "-C" option.
10262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10263 # Also, AIX nm treats weak defined symbols like other global
10264 # defined symbols, whereas GNU nm marks them as "W".
10265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10266 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10267 else
10268 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10269 fi
10270 aix_use_runtimelinking=no
10271
10272 # Test if we are trying to use run time linking or normal
10273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10274 # need to do runtime linking.
10275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10276 for ld_flag in $LDFLAGS; do
10277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10278 aix_use_runtimelinking=yes
10279 break
10280 fi
10281 done
10282 ;;
10283 esac
10284
10285 exp_sym_flag='-bexport'
10286 no_entry_flag='-bnoentry'
10287 fi
10288
10289 # When large executables or shared objects are built, AIX ld can
10290 # have problems creating the table of contents. If linking a library
10291 # or program results in "error TOC overflow" add -mminimal-toc to
10292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10294
10295 archive_cmds=''
10296 hardcode_direct=yes
10297 hardcode_direct_absolute=yes
10298 hardcode_libdir_separator=':'
10299 link_all_deplibs=yes
10300 file_list_spec='${wl}-f,'
10301
10302 if test "$GCC" = yes; then
10303 case $host_os in aix4.[012]|aix4.[012].*)
10304 # We only want to do this on AIX 4.2 and lower, the check
10305 # below for broken collect2 doesn't work under 4.3+
10306 collect2name=`${CC} -print-prog-name=collect2`
10307 if test -f "$collect2name" &&
10308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10309 then
10310 # We have reworked collect2
10311 :
10312 else
10313 # We have old collect2
10314 hardcode_direct=unsupported
10315 # It fails to find uninstalled libraries when the uninstalled
10316 # path is not listed in the libpath. Setting hardcode_minus_L
10317 # to unsupported forces relinking
10318 hardcode_minus_L=yes
10319 hardcode_libdir_flag_spec='-L$libdir'
10320 hardcode_libdir_separator=
10321 fi
10322 ;;
10323 esac
10324 shared_flag='-shared'
10325 if test "$aix_use_runtimelinking" = yes; then
10326 shared_flag="$shared_flag "'${wl}-G'
10327 fi
10328 link_all_deplibs=no
10329 else
10330 # not using gcc
10331 if test "$host_cpu" = ia64; then
10332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10333 # chokes on -Wl,-G. The following line is correct:
10334 shared_flag='-G'
10335 else
10336 if test "$aix_use_runtimelinking" = yes; then
10337 shared_flag='${wl}-G'
10338 else
10339 shared_flag='${wl}-bM:SRE'
10340 fi
10341 fi
10342 fi
10343
10344 export_dynamic_flag_spec='${wl}-bexpall'
10345 # It seems that -bexpall does not export symbols beginning with
10346 # underscore (_), so it is better to generate a list of symbols to export.
10347 always_export_symbols=yes
10348 if test "$aix_use_runtimelinking" = yes; then
10349 # Warning - without using the other runtime loading flags (-brtl),
10350 # -berok will link without error, but may produce a broken library.
10351 allow_undefined_flag='-berok'
10352 # Determine the default libpath from the value encoded in an
10353 # empty executable.
10354 if test "${lt_cv_aix_libpath+set}" = set; then
10355 aix_libpath=$lt_cv_aix_libpath
10356 else
10357 if test ${lt_cv_aix_libpath_+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else $as_nop
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364 int
10365 main (void)
10366 {
10367
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"
10373 then :
10374
10375 lt_aix_libpath_sed='
10376 /Import File Strings/,/^$/ {
10377 /^0/ {
10378 s/^0 *\([^ ]*\) *$/\1/
10379 p
10380 }
10381 }'
10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 # Check for a 64-bit object if we didn't find anything.
10384 if test -z "$lt_cv_aix_libpath_"; then
10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386 fi
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10389 conftest$ac_exeext conftest.$ac_ext
10390 if test -z "$lt_cv_aix_libpath_"; then
10391 lt_cv_aix_libpath_="/usr/lib:/lib"
10392 fi
10393
10394 fi
10395
10396 aix_libpath=$lt_cv_aix_libpath_
10397 fi
10398
10399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10401 else
10402 if test "$host_cpu" = ia64; then
10403 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10404 allow_undefined_flag="-z nodefs"
10405 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"
10406 else
10407 # Determine the default libpath from the value encoded in an
10408 # empty executable.
10409 if test "${lt_cv_aix_libpath+set}" = set; then
10410 aix_libpath=$lt_cv_aix_libpath
10411 else
10412 if test ${lt_cv_aix_libpath_+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else $as_nop
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418
10419 int
10420 main (void)
10421 {
10422
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"
10428 then :
10429
10430 lt_aix_libpath_sed='
10431 /Import File Strings/,/^$/ {
10432 /^0/ {
10433 s/^0 *\([^ ]*\) *$/\1/
10434 p
10435 }
10436 }'
10437 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438 # Check for a 64-bit object if we didn't find anything.
10439 if test -z "$lt_cv_aix_libpath_"; then
10440 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10441 fi
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10444 conftest$ac_exeext conftest.$ac_ext
10445 if test -z "$lt_cv_aix_libpath_"; then
10446 lt_cv_aix_libpath_="/usr/lib:/lib"
10447 fi
10448
10449 fi
10450
10451 aix_libpath=$lt_cv_aix_libpath_
10452 fi
10453
10454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10455 # Warning - without using the other run time loading flags,
10456 # -berok will link without error, but may produce a broken library.
10457 no_undefined_flag=' ${wl}-bernotok'
10458 allow_undefined_flag=' ${wl}-berok'
10459 if test "$with_gnu_ld" = yes; then
10460 # We only use this code for GNU lds that support --whole-archive.
10461 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10462 else
10463 # Exported symbols can be pulled into shared objects from archives
10464 whole_archive_flag_spec='$convenience'
10465 fi
10466 archive_cmds_need_lc=yes
10467 # This is similar to how AIX traditionally builds its shared libraries.
10468 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10469 fi
10470 fi
10471 ;;
10472
10473 amigaos*)
10474 case $host_cpu in
10475 powerpc)
10476 # see comment about AmigaOS4 .so support
10477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10478 archive_expsym_cmds=''
10479 ;;
10480 m68k)
10481 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)'
10482 hardcode_libdir_flag_spec='-L$libdir'
10483 hardcode_minus_L=yes
10484 ;;
10485 esac
10486 ;;
10487
10488 bsdi[45]*)
10489 export_dynamic_flag_spec=-rdynamic
10490 ;;
10491
10492 cygwin* | mingw* | pw32* | cegcc*)
10493 # When not using gcc, we currently assume that we are using
10494 # Microsoft Visual C++.
10495 # hardcode_libdir_flag_spec is actually meaningless, as there is
10496 # no search path for DLLs.
10497 case $cc_basename in
10498 cl*)
10499 # Native MSVC
10500 hardcode_libdir_flag_spec=' '
10501 allow_undefined_flag=unsupported
10502 always_export_symbols=yes
10503 file_list_spec='@'
10504 # Tell ltmain to make .lib files, not .a files.
10505 libext=lib
10506 # Tell ltmain to make .dll files, not .so files.
10507 shrext_cmds=".dll"
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10510 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10511 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10512 else
10513 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10514 fi~
10515 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10516 linknames='
10517 # The linker will not automatically build a static lib if we build a DLL.
10518 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10519 enable_shared_with_static_runtimes=yes
10520 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10522 # Don't use ranlib
10523 old_postinstall_cmds='chmod 644 $oldlib'
10524 postlink_cmds='lt_outputfile="@OUTPUT@"~
10525 lt_tool_outputfile="@TOOL_OUTPUT@"~
10526 case $lt_outputfile in
10527 *.exe|*.EXE) ;;
10528 *)
10529 lt_outputfile="$lt_outputfile.exe"
10530 lt_tool_outputfile="$lt_tool_outputfile.exe"
10531 ;;
10532 esac~
10533 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10534 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10535 $RM "$lt_outputfile.manifest";
10536 fi'
10537 ;;
10538 *)
10539 # Assume MSVC wrapper
10540 hardcode_libdir_flag_spec=' '
10541 allow_undefined_flag=unsupported
10542 # Tell ltmain to make .lib files, not .a files.
10543 libext=lib
10544 # Tell ltmain to make .dll files, not .so files.
10545 shrext_cmds=".dll"
10546 # FIXME: Setting linknames here is a bad hack.
10547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10548 # The linker will automatically build a .lib file if we build a DLL.
10549 old_archive_from_new_cmds='true'
10550 # FIXME: Should let the user specify the lib program.
10551 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10552 enable_shared_with_static_runtimes=yes
10553 ;;
10554 esac
10555 ;;
10556
10557 darwin* | rhapsody*)
10558
10559
10560 archive_cmds_need_lc=no
10561 hardcode_direct=no
10562 hardcode_automatic=yes
10563 hardcode_shlibpath_var=unsupported
10564 if test "$lt_cv_ld_force_load" = "yes"; then
10565 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\"`'
10566
10567 else
10568 whole_archive_flag_spec=''
10569 fi
10570 link_all_deplibs=yes
10571 allow_undefined_flag="$_lt_dar_allow_undefined"
10572 case $cc_basename in
10573 ifort*) _lt_dar_can_shared=yes ;;
10574 *) _lt_dar_can_shared=$GCC ;;
10575 esac
10576 if test "$_lt_dar_can_shared" = "yes"; then
10577 output_verbose_link_cmd=func_echo_all
10578 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10579 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10580 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}"
10581 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}"
10582
10583 else
10584 ld_shlibs=no
10585 fi
10586
10587 ;;
10588
10589 dgux*)
10590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_shlibpath_var=no
10593 ;;
10594
10595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596 # support. Future versions do this automatically, but an explicit c++rt0.o
10597 # does not break anything, and helps significantly (at the cost of a little
10598 # extra space).
10599 freebsd2.2*)
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601 hardcode_libdir_flag_spec='-R$libdir'
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607 freebsd2.*)
10608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_direct=yes
10610 hardcode_minus_L=yes
10611 hardcode_shlibpath_var=no
10612 ;;
10613
10614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615 freebsd* | dragonfly*)
10616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10617 hardcode_libdir_flag_spec='-R$libdir'
10618 hardcode_direct=yes
10619 hardcode_shlibpath_var=no
10620 ;;
10621
10622 hpux9*)
10623 if test "$GCC" = yes; then
10624 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10625 else
10626 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10627 fi
10628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_direct=yes
10631
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10635 export_dynamic_flag_spec='${wl}-E'
10636 ;;
10637
10638 hpux10*)
10639 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10640 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641 else
10642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10643 fi
10644 if test "$with_gnu_ld" = no; then
10645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646 hardcode_libdir_separator=:
10647 hardcode_direct=yes
10648 hardcode_direct_absolute=yes
10649 export_dynamic_flag_spec='${wl}-E'
10650 # hardcode_minus_L: Not really in the search PATH,
10651 # but as the default location of the library.
10652 hardcode_minus_L=yes
10653 fi
10654 ;;
10655
10656 hpux11*)
10657 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10658 case $host_cpu in
10659 hppa*64*)
10660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 ;;
10662 ia64*)
10663 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664 ;;
10665 *)
10666 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10667 ;;
10668 esac
10669 else
10670 case $host_cpu in
10671 hppa*64*)
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 ;;
10674 ia64*)
10675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10676 ;;
10677 *)
10678
10679 # Older versions of the 11.00 compiler do not understand -b yet
10680 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10682 printf %s "checking if $CC understands -b... " >&6; }
10683 if test ${lt_cv_prog_compiler__b+y}
10684 then :
10685 printf %s "(cached) " >&6
10686 else $as_nop
10687 lt_cv_prog_compiler__b=no
10688 save_LDFLAGS="$LDFLAGS"
10689 LDFLAGS="$LDFLAGS -b"
10690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10692 # The linker can only warn and ignore the option if not recognized
10693 # So say no if there are warnings
10694 if test -s conftest.err; then
10695 # Append any errors to the config.log.
10696 cat conftest.err 1>&5
10697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10699 if diff conftest.exp conftest.er2 >/dev/null; then
10700 lt_cv_prog_compiler__b=yes
10701 fi
10702 else
10703 lt_cv_prog_compiler__b=yes
10704 fi
10705 fi
10706 $RM -r conftest*
10707 LDFLAGS="$save_LDFLAGS"
10708
10709 fi
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10711 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10712
10713 if test x"$lt_cv_prog_compiler__b" = xyes; then
10714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10715 else
10716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10717 fi
10718
10719 ;;
10720 esac
10721 fi
10722 if test "$with_gnu_ld" = no; then
10723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724 hardcode_libdir_separator=:
10725
10726 case $host_cpu in
10727 hppa*64*|ia64*)
10728 hardcode_direct=no
10729 hardcode_shlibpath_var=no
10730 ;;
10731 *)
10732 hardcode_direct=yes
10733 hardcode_direct_absolute=yes
10734 export_dynamic_flag_spec='${wl}-E'
10735
10736 # hardcode_minus_L: Not really in the search PATH,
10737 # but as the default location of the library.
10738 hardcode_minus_L=yes
10739 ;;
10740 esac
10741 fi
10742 ;;
10743
10744 irix5* | irix6* | nonstopux*)
10745 if test "$GCC" = yes; then
10746 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'
10747 # Try to use the -exported_symbol ld option, if it does not
10748 # work, assume that -exports_file does not work either and
10749 # implicitly export all symbols.
10750 # This should be the same for all languages, so no per-tag cache variable.
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10752 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10753 if test ${lt_cv_irix_exported_symbol+y}
10754 then :
10755 printf %s "(cached) " >&6
10756 else $as_nop
10757 save_LDFLAGS="$LDFLAGS"
10758 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 int foo (void) { return 0; }
10762 _ACEOF
10763 if ac_fn_c_try_link "$LINENO"
10764 then :
10765 lt_cv_irix_exported_symbol=yes
10766 else $as_nop
10767 lt_cv_irix_exported_symbol=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LDFLAGS="$save_LDFLAGS"
10772 fi
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10774 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10775 if test "$lt_cv_irix_exported_symbol" = yes; then
10776 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'
10777 fi
10778 else
10779 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'
10780 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'
10781 fi
10782 archive_cmds_need_lc='no'
10783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10784 hardcode_libdir_separator=:
10785 inherit_rpath=yes
10786 link_all_deplibs=yes
10787 ;;
10788
10789 netbsd* | netbsdelf*-gnu)
10790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10792 else
10793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10794 fi
10795 hardcode_libdir_flag_spec='-R$libdir'
10796 hardcode_direct=yes
10797 hardcode_shlibpath_var=no
10798 ;;
10799
10800 newsos6)
10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_direct=yes
10803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10804 hardcode_libdir_separator=:
10805 hardcode_shlibpath_var=no
10806 ;;
10807
10808 *nto* | *qnx*)
10809 ;;
10810
10811 openbsd*)
10812 if test -f /usr/libexec/ld.so; then
10813 hardcode_direct=yes
10814 hardcode_shlibpath_var=no
10815 hardcode_direct_absolute=yes
10816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10820 export_dynamic_flag_spec='${wl}-E'
10821 else
10822 case $host_os in
10823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_libdir_flag_spec='-R$libdir'
10826 ;;
10827 *)
10828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10830 ;;
10831 esac
10832 fi
10833 else
10834 ld_shlibs=no
10835 fi
10836 ;;
10837
10838 os2*)
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_minus_L=yes
10841 allow_undefined_flag=unsupported
10842 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10843 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10844 ;;
10845
10846 osf3*)
10847 if test "$GCC" = yes; then
10848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10849 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'
10850 else
10851 allow_undefined_flag=' -expect_unresolved \*'
10852 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'
10853 fi
10854 archive_cmds_need_lc='no'
10855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10856 hardcode_libdir_separator=:
10857 ;;
10858
10859 osf4* | osf5*) # as osf3* with the addition of -msym flag
10860 if test "$GCC" = yes; then
10861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10862 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'
10863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864 else
10865 allow_undefined_flag=' -expect_unresolved \*'
10866 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'
10867 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~
10868 $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'
10869
10870 # Both c and cxx compiler support -rpath directly
10871 hardcode_libdir_flag_spec='-rpath $libdir'
10872 fi
10873 archive_cmds_need_lc='no'
10874 hardcode_libdir_separator=:
10875 ;;
10876
10877 solaris*)
10878 no_undefined_flag=' -z defs'
10879 if test "$GCC" = yes; then
10880 wlarc='${wl}'
10881 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10883 $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'
10884 else
10885 case `$CC -V 2>&1` in
10886 *"Compilers 5.0"*)
10887 wlarc=''
10888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10891 ;;
10892 *)
10893 wlarc='${wl}'
10894 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10896 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10897 ;;
10898 esac
10899 fi
10900 hardcode_libdir_flag_spec='-R$libdir'
10901 hardcode_shlibpath_var=no
10902 case $host_os in
10903 solaris2.[0-5] | solaris2.[0-5].*) ;;
10904 *)
10905 # The compiler driver will combine and reorder linker options,
10906 # but understands `-z linker_flag'. GCC discards it without `$wl',
10907 # but is careful enough not to reorder.
10908 # Supported since Solaris 2.6 (maybe 2.5.1?)
10909 if test "$GCC" = yes; then
10910 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10911 else
10912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10913 fi
10914 ;;
10915 esac
10916 link_all_deplibs=yes
10917 ;;
10918
10919 sunos4*)
10920 if test "x$host_vendor" = xsequent; then
10921 # Use $CC to link under sequent, because it throws in some extra .o
10922 # files that make .init and .fini sections work.
10923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10924 else
10925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10926 fi
10927 hardcode_libdir_flag_spec='-L$libdir'
10928 hardcode_direct=yes
10929 hardcode_minus_L=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 sysv4)
10934 case $host_vendor in
10935 sni)
10936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10937 hardcode_direct=yes # is this really true???
10938 ;;
10939 siemens)
10940 ## LD is ld it makes a PLAMLIB
10941 ## CC just makes a GrossModule.
10942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10943 reload_cmds='$CC -r -o $output$reload_objs'
10944 hardcode_direct=no
10945 ;;
10946 motorola)
10947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10949 ;;
10950 esac
10951 runpath_var='LD_RUN_PATH'
10952 hardcode_shlibpath_var=no
10953 ;;
10954
10955 sysv4.3*)
10956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10957 hardcode_shlibpath_var=no
10958 export_dynamic_flag_spec='-Bexport'
10959 ;;
10960
10961 sysv4*MP*)
10962 if test -d /usr/nec; then
10963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_shlibpath_var=no
10965 runpath_var=LD_RUN_PATH
10966 hardcode_runpath_var=yes
10967 ld_shlibs=yes
10968 fi
10969 ;;
10970
10971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10972 no_undefined_flag='${wl}-z,text'
10973 archive_cmds_need_lc=no
10974 hardcode_shlibpath_var=no
10975 runpath_var='LD_RUN_PATH'
10976
10977 if test "$GCC" = yes; then
10978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 else
10981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 fi
10984 ;;
10985
10986 sysv5* | sco3.2v5* | sco5v6*)
10987 # Note: We can NOT use -z defs as we might desire, because we do not
10988 # link with -lc, and that would cause any symbols used from libc to
10989 # always be unresolved, which means just about no library would
10990 # ever link correctly. If we're not using GNU ld we use -z text
10991 # though, which does catch some bad symbols but isn't as heavy-handed
10992 # as -z defs.
10993 no_undefined_flag='${wl}-z,text'
10994 allow_undefined_flag='${wl}-z,nodefs'
10995 archive_cmds_need_lc=no
10996 hardcode_shlibpath_var=no
10997 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10998 hardcode_libdir_separator=':'
10999 link_all_deplibs=yes
11000 export_dynamic_flag_spec='${wl}-Bexport'
11001 runpath_var='LD_RUN_PATH'
11002
11003 if test "$GCC" = yes; then
11004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 else
11007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 fi
11010 ;;
11011
11012 uts4*)
11013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014 hardcode_libdir_flag_spec='-L$libdir'
11015 hardcode_shlibpath_var=no
11016 ;;
11017
11018 *)
11019 ld_shlibs=no
11020 ;;
11021 esac
11022
11023 if test x$host_vendor = xsni; then
11024 case $host in
11025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11026 export_dynamic_flag_spec='${wl}-Blargedynsym'
11027 ;;
11028 esac
11029 fi
11030 fi
11031
11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11033 printf "%s\n" "$ld_shlibs" >&6; }
11034 test "$ld_shlibs" = no && can_build_shared=no
11035
11036 with_gnu_ld=$with_gnu_ld
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 #
11053 # Do we need to explicitly link libc?
11054 #
11055 case "x$archive_cmds_need_lc" in
11056 x|xyes)
11057 # Assume -lc should be added
11058 archive_cmds_need_lc=yes
11059
11060 if test "$enable_shared" = yes && test "$GCC" = yes; then
11061 case $archive_cmds in
11062 *'~'*)
11063 # FIXME: we may have to deal with multi-command sequences.
11064 ;;
11065 '$CC '*)
11066 # Test whether the compiler implicitly links with -lc since on some
11067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11068 # to ld, don't add -lc before -lgcc.
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11070 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11071 if test ${lt_cv_archive_cmds_need_lc+y}
11072 then :
11073 printf %s "(cached) " >&6
11074 else $as_nop
11075 $RM conftest*
11076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11077
11078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11079 (eval $ac_compile) 2>&5
11080 ac_status=$?
11081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; } 2>conftest.err; then
11083 soname=conftest
11084 lib=conftest
11085 libobjs=conftest.$ac_objext
11086 deplibs=
11087 wl=$lt_prog_compiler_wl
11088 pic_flag=$lt_prog_compiler_pic
11089 compiler_flags=-v
11090 linker_flags=-v
11091 verstring=
11092 output_objdir=.
11093 libname=conftest
11094 lt_save_allow_undefined_flag=$allow_undefined_flag
11095 allow_undefined_flag=
11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11098 ac_status=$?
11099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; }
11101 then
11102 lt_cv_archive_cmds_need_lc=no
11103 else
11104 lt_cv_archive_cmds_need_lc=yes
11105 fi
11106 allow_undefined_flag=$lt_save_allow_undefined_flag
11107 else
11108 cat conftest.err 1>&5
11109 fi
11110 $RM conftest*
11111
11112 fi
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11114 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11116 ;;
11117 esac
11118 fi
11119 ;;
11120 esac
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11274 printf %s "checking dynamic linker characteristics... " >&6; }
11275
11276 if test "$GCC" = yes; then
11277 case $host_os in
11278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11279 *) lt_awk_arg="/^libraries:/" ;;
11280 esac
11281 case $host_os in
11282 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11283 *) lt_sed_strip_eq="s,=/,/,g" ;;
11284 esac
11285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11286 case $lt_search_path_spec in
11287 *\;*)
11288 # if the path contains ";" then we assume it to be the separator
11289 # otherwise default to the standard path separator (i.e. ":") - it is
11290 # assumed that no part of a normal pathname contains ";" but that should
11291 # okay in the real world where ";" in dirpaths is itself problematic.
11292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11293 ;;
11294 *)
11295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11296 ;;
11297 esac
11298 # Ok, now we have the path, separated by spaces, we can step through it
11299 # and add multilib dir if necessary.
11300 lt_tmp_lt_search_path_spec=
11301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11302 for lt_sys_path in $lt_search_path_spec; do
11303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11305 else
11306 test -d "$lt_sys_path" && \
11307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11308 fi
11309 done
11310 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11311 BEGIN {RS=" "; FS="/|\n";} {
11312 lt_foo="";
11313 lt_count=0;
11314 for (lt_i = NF; lt_i > 0; lt_i--) {
11315 if ($lt_i != "" && $lt_i != ".") {
11316 if ($lt_i == "..") {
11317 lt_count++;
11318 } else {
11319 if (lt_count == 0) {
11320 lt_foo="/" $lt_i lt_foo;
11321 } else {
11322 lt_count--;
11323 }
11324 }
11325 }
11326 }
11327 if (lt_foo != "") { lt_freq[lt_foo]++; }
11328 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11329 }'`
11330 # AWK program above erroneously prepends '/' to C:/dos/paths
11331 # for these hosts.
11332 case $host_os in
11333 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11334 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11335 esac
11336 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11337 else
11338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11339 fi
11340 library_names_spec=
11341 libname_spec='lib$name'
11342 soname_spec=
11343 shrext_cmds=".so"
11344 postinstall_cmds=
11345 postuninstall_cmds=
11346 finish_cmds=
11347 finish_eval=
11348 shlibpath_var=
11349 shlibpath_overrides_runpath=unknown
11350 version_type=none
11351 dynamic_linker="$host_os ld.so"
11352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11353 need_lib_prefix=unknown
11354 hardcode_into_libs=no
11355
11356 # when you set need_version to no, make sure it does not cause -set_version
11357 # flags to be left without arguments
11358 need_version=unknown
11359
11360 case $host_os in
11361 aix3*)
11362 version_type=linux # correct to gnu/linux during the next big refactor
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11364 shlibpath_var=LIBPATH
11365
11366 # AIX 3 has no versioning support, so we append a major version to the name.
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 ;;
11369
11370 aix[4-9]*)
11371 version_type=linux # correct to gnu/linux during the next big refactor
11372 need_lib_prefix=no
11373 need_version=no
11374 hardcode_into_libs=yes
11375 if test "$host_cpu" = ia64; then
11376 # AIX 5 supports IA64
11377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 else
11380 # With GCC up to 2.95.x, collect2 would create an import file
11381 # for dependence libraries. The import file would start with
11382 # the line `#! .'. This would cause the generated library to
11383 # depend on `.', always an invalid library. This was fixed in
11384 # development snapshots of GCC prior to 3.0.
11385 case $host_os in
11386 aix4 | aix4.[01] | aix4.[01].*)
11387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11388 echo ' yes '
11389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11390 :
11391 else
11392 can_build_shared=no
11393 fi
11394 ;;
11395 esac
11396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11397 # soname into executable. Probably we can add versioning support to
11398 # collect2, so additional links can be useful in future.
11399 if test "$aix_use_runtimelinking" = yes; then
11400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11401 # instead of lib<name>.a to let people know that these are not
11402 # typical AIX shared libraries.
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 else
11405 # We preserve .a as extension for shared libraries through AIX4.2
11406 # and later when we are not doing run time linking.
11407 library_names_spec='${libname}${release}.a $libname.a'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 fi
11410 shlibpath_var=LIBPATH
11411 fi
11412 ;;
11413
11414 amigaos*)
11415 case $host_cpu in
11416 powerpc)
11417 # Since July 2007 AmigaOS4 officially supports .so libraries.
11418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 ;;
11421 m68k)
11422 library_names_spec='$libname.ixlibrary $libname.a'
11423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11424 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11425 ;;
11426 esac
11427 ;;
11428
11429 beos*)
11430 library_names_spec='${libname}${shared_ext}'
11431 dynamic_linker="$host_os ld.so"
11432 shlibpath_var=LIBRARY_PATH
11433 ;;
11434
11435 bsdi[45]*)
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 need_version=no
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11444 # the default ld.so.conf also contains /usr/contrib/lib and
11445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11446 # libtool to hard-code these into programs
11447 ;;
11448
11449 cygwin* | mingw* | pw32* | cegcc*)
11450 version_type=windows
11451 shrext_cmds=".dll"
11452 need_version=no
11453 need_lib_prefix=no
11454
11455 case $GCC,$cc_basename in
11456 yes,*)
11457 # gcc
11458 library_names_spec='$libname.dll.a'
11459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460 postinstall_cmds='base_file=`basename \${file}`~
11461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11462 dldir=$destdir/`dirname \$dlpath`~
11463 test -d \$dldir || mkdir -p \$dldir~
11464 $install_prog $dir/$dlname \$dldir/$dlname~
11465 chmod a+x \$dldir/$dlname~
11466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11468 fi'
11469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470 dlpath=$dir/\$dldll~
11471 $RM \$dlpath'
11472 shlibpath_overrides_runpath=yes
11473
11474 case $host_os in
11475 cygwin*)
11476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478
11479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11480 ;;
11481 mingw* | cegcc*)
11482 # MinGW DLLs use traditional 'lib' prefix
11483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11484 ;;
11485 pw32*)
11486 # pw32 DLLs use 'pw' prefix rather than 'lib'
11487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488 ;;
11489 esac
11490 dynamic_linker='Win32 ld.exe'
11491 ;;
11492
11493 *,cl*)
11494 # Native MSVC
11495 libname_spec='$name'
11496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11497 library_names_spec='${libname}.dll.lib'
11498
11499 case $build_os in
11500 mingw*)
11501 sys_lib_search_path_spec=
11502 lt_save_ifs=$IFS
11503 IFS=';'
11504 for lt_path in $LIB
11505 do
11506 IFS=$lt_save_ifs
11507 # Let DOS variable expansion print the short 8.3 style file name.
11508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11510 done
11511 IFS=$lt_save_ifs
11512 # Convert to MSYS style.
11513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11514 ;;
11515 cygwin*)
11516 # Convert to unix form, then to dos form, then back to unix form
11517 # but this time dos style (no spaces!) so that the unix form looks
11518 # like /cygdrive/c/PROGRA~1:/cygdr...
11519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11522 ;;
11523 *)
11524 sys_lib_search_path_spec="$LIB"
11525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11526 # It is most probably a Windows format PATH.
11527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11528 else
11529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11530 fi
11531 # FIXME: find the short name or the path components, as spaces are
11532 # common. (e.g. "Program Files" -> "PROGRA~1")
11533 ;;
11534 esac
11535
11536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11537 postinstall_cmds='base_file=`basename \${file}`~
11538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11539 dldir=$destdir/`dirname \$dlpath`~
11540 test -d \$dldir || mkdir -p \$dldir~
11541 $install_prog $dir/$dlname \$dldir/$dlname'
11542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11543 dlpath=$dir/\$dldll~
11544 $RM \$dlpath'
11545 shlibpath_overrides_runpath=yes
11546 dynamic_linker='Win32 link.exe'
11547 ;;
11548
11549 *)
11550 # Assume MSVC wrapper
11551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11552 dynamic_linker='Win32 ld.exe'
11553 ;;
11554 esac
11555 # FIXME: first we should search . and the directory the executable is in
11556 shlibpath_var=PATH
11557 ;;
11558
11559 darwin* | rhapsody*)
11560 dynamic_linker="$host_os dyld"
11561 version_type=darwin
11562 need_lib_prefix=no
11563 need_version=no
11564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11565 soname_spec='${libname}${release}${major}$shared_ext'
11566 shlibpath_overrides_runpath=yes
11567 shlibpath_var=DYLD_LIBRARY_PATH
11568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11569
11570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11572 ;;
11573
11574 dgux*)
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 need_lib_prefix=no
11577 need_version=no
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 ;;
11582
11583 freebsd* | dragonfly*)
11584 # DragonFly does not have aout. When/if they implement a new
11585 # versioning mechanism, adjust this.
11586 if test -x /usr/bin/objformat; then
11587 objformat=`/usr/bin/objformat`
11588 else
11589 case $host_os in
11590 freebsd[23].*) objformat=aout ;;
11591 *) objformat=elf ;;
11592 esac
11593 fi
11594 version_type=freebsd-$objformat
11595 case $version_type in
11596 freebsd-elf*)
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11598 need_version=no
11599 need_lib_prefix=no
11600 ;;
11601 freebsd-*)
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11603 need_version=yes
11604 ;;
11605 esac
11606 shlibpath_var=LD_LIBRARY_PATH
11607 case $host_os in
11608 freebsd2.*)
11609 shlibpath_overrides_runpath=yes
11610 ;;
11611 freebsd3.[01]* | freebsdelf3.[01]*)
11612 shlibpath_overrides_runpath=yes
11613 hardcode_into_libs=yes
11614 ;;
11615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11617 shlibpath_overrides_runpath=no
11618 hardcode_into_libs=yes
11619 ;;
11620 *) # from 4.6 on, and DragonFly
11621 shlibpath_overrides_runpath=yes
11622 hardcode_into_libs=yes
11623 ;;
11624 esac
11625 ;;
11626
11627 gnu*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 need_lib_prefix=no
11630 need_version=no
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=no
11635 hardcode_into_libs=yes
11636 ;;
11637
11638 haiku*)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 need_lib_prefix=no
11641 need_version=no
11642 dynamic_linker="$host_os runtime_loader"
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LIBRARY_PATH
11646 shlibpath_overrides_runpath=yes
11647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11648 hardcode_into_libs=yes
11649 ;;
11650
11651 hpux9* | hpux10* | hpux11*)
11652 # Give a soname corresponding to the major version so that dld.sl refuses to
11653 # link against other versions.
11654 version_type=sunos
11655 need_lib_prefix=no
11656 need_version=no
11657 case $host_cpu in
11658 ia64*)
11659 shrext_cmds='.so'
11660 hardcode_into_libs=yes
11661 dynamic_linker="$host_os dld.so"
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 if test "X$HPUX_IA64_MODE" = X32; then
11667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11668 else
11669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11670 fi
11671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11672 ;;
11673 hppa*64*)
11674 shrext_cmds='.sl'
11675 hardcode_into_libs=yes
11676 dynamic_linker="$host_os dld.sl"
11677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11683 ;;
11684 *)
11685 shrext_cmds='.sl'
11686 dynamic_linker="$host_os dld.sl"
11687 shlibpath_var=SHLIB_PATH
11688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 ;;
11692 esac
11693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11694 postinstall_cmds='chmod 555 $lib'
11695 # or fails outright, so override atomically:
11696 install_override_mode=555
11697 ;;
11698
11699 interix[3-9]*)
11700 version_type=linux # correct to gnu/linux during the next big refactor
11701 need_lib_prefix=no
11702 need_version=no
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=no
11708 hardcode_into_libs=yes
11709 ;;
11710
11711 irix5* | irix6* | nonstopux*)
11712 case $host_os in
11713 nonstopux*) version_type=nonstopux ;;
11714 *)
11715 if test "$lt_cv_prog_gnu_ld" = yes; then
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 else
11718 version_type=irix
11719 fi ;;
11720 esac
11721 need_lib_prefix=no
11722 need_version=no
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11725 case $host_os in
11726 irix5* | nonstopux*)
11727 libsuff= shlibsuff=
11728 ;;
11729 *)
11730 case $LD in # libtool.m4 will add one of these switches to LD
11731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11732 libsuff= shlibsuff= libmagic=32-bit;;
11733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11734 libsuff=32 shlibsuff=N32 libmagic=N32;;
11735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11737 *) libsuff= shlibsuff= libmagic=never-match;;
11738 esac
11739 ;;
11740 esac
11741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11742 shlibpath_overrides_runpath=no
11743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11745 hardcode_into_libs=yes
11746 ;;
11747
11748 # No shared lib support for Linux oldld, aout, or coff.
11749 linux*oldld* | linux*aout* | linux*coff*)
11750 dynamic_linker=no
11751 ;;
11752
11753 linux*android*)
11754 version_type=none # Android doesn't support versioned libraries.
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='$libname$release$shared_ext'
11758 soname_spec='$libname$release$shared_ext'
11759 finish_cmds=
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762
11763 # This implies no fast_install, which is unacceptable.
11764 # Some rework will be needed to allow for fast_install
11765 # before this can be enabled.
11766 hardcode_into_libs=yes
11767
11768 dynamic_linker='Android linker'
11769 # Don't embed -rpath directories since the linker doesn't support them.
11770 hardcode_libdir_flag_spec='-L$libdir'
11771 ;;
11772
11773 # This must be glibc/ELF.
11774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11775 version_type=linux # correct to gnu/linux during the next big refactor
11776 need_lib_prefix=no
11777 need_version=no
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=no
11783
11784 # Some binutils ld are patched to set DT_RUNPATH
11785 if test ${lt_cv_shlibpath_overrides_runpath+y}
11786 then :
11787 printf %s "(cached) " >&6
11788 else $as_nop
11789 lt_cv_shlibpath_overrides_runpath=no
11790 save_LDFLAGS=$LDFLAGS
11791 save_libdir=$libdir
11792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796
11797 int
11798 main (void)
11799 {
11800
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"
11806 then :
11807 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11808 then :
11809 lt_cv_shlibpath_overrides_runpath=yes
11810 fi
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LDFLAGS=$save_LDFLAGS
11815 libdir=$save_libdir
11816
11817 fi
11818
11819 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11820
11821 # This implies no fast_install, which is unacceptable.
11822 # Some rework will be needed to allow for fast_install
11823 # before this can be enabled.
11824 hardcode_into_libs=yes
11825
11826 # Append ld.so.conf contents to the search path
11827 if test -f /etc/ld.so.conf; then
11828 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' ' '`
11829 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11830 fi
11831
11832 # We used to test for /lib/ld.so.1 and disable shared libraries on
11833 # powerpc, because MkLinux only supported shared libraries with the
11834 # GNU dynamic linker. Since this was broken with cross compilers,
11835 # most powerpc-linux boxes support dynamic linking these days and
11836 # people can always --disable-shared, the test was removed, and we
11837 # assume the GNU/Linux dynamic linker is in use.
11838 dynamic_linker='GNU/Linux ld.so'
11839 ;;
11840
11841 netbsdelf*-gnu)
11842 version_type=linux
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=no
11849 hardcode_into_libs=yes
11850 dynamic_linker='NetBSD ld.elf_so'
11851 ;;
11852
11853 netbsd*)
11854 version_type=sunos
11855 need_lib_prefix=no
11856 need_version=no
11857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11860 dynamic_linker='NetBSD (a.out) ld.so'
11861 else
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 dynamic_linker='NetBSD ld.elf_so'
11865 fi
11866 shlibpath_var=LD_LIBRARY_PATH
11867 shlibpath_overrides_runpath=yes
11868 hardcode_into_libs=yes
11869 ;;
11870
11871 newsos6)
11872 version_type=linux # correct to gnu/linux during the next big refactor
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 ;;
11877
11878 *nto* | *qnx*)
11879 version_type=qnx
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11886 hardcode_into_libs=yes
11887 dynamic_linker='ldqnx.so'
11888 ;;
11889
11890 openbsd*)
11891 version_type=sunos
11892 sys_lib_dlsearch_path_spec="/usr/lib"
11893 need_lib_prefix=no
11894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11895 case $host_os in
11896 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11897 *) need_version=no ;;
11898 esac
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903 case $host_os in
11904 openbsd2.[89] | openbsd2.[89].*)
11905 shlibpath_overrides_runpath=no
11906 ;;
11907 *)
11908 shlibpath_overrides_runpath=yes
11909 ;;
11910 esac
11911 else
11912 shlibpath_overrides_runpath=yes
11913 fi
11914 ;;
11915
11916 os2*)
11917 libname_spec='$name'
11918 shrext_cmds=".dll"
11919 need_lib_prefix=no
11920 library_names_spec='$libname${shared_ext} $libname.a'
11921 dynamic_linker='OS/2 ld.exe'
11922 shlibpath_var=LIBPATH
11923 ;;
11924
11925 osf3* | osf4* | osf5*)
11926 version_type=osf
11927 need_lib_prefix=no
11928 need_version=no
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11934 ;;
11935
11936 rdos*)
11937 dynamic_linker=no
11938 ;;
11939
11940 solaris*)
11941 version_type=linux # correct to gnu/linux during the next big refactor
11942 need_lib_prefix=no
11943 need_version=no
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 soname_spec='${libname}${release}${shared_ext}$major'
11946 shlibpath_var=LD_LIBRARY_PATH
11947 shlibpath_overrides_runpath=yes
11948 hardcode_into_libs=yes
11949 # ldd complains unless libraries are executable
11950 postinstall_cmds='chmod +x $lib'
11951 ;;
11952
11953 sunos4*)
11954 version_type=sunos
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11956 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959 if test "$with_gnu_ld" = yes; then
11960 need_lib_prefix=no
11961 fi
11962 need_version=yes
11963 ;;
11964
11965 sysv4 | sysv4.3*)
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 case $host_vendor in
11971 sni)
11972 shlibpath_overrides_runpath=no
11973 need_lib_prefix=no
11974 runpath_var=LD_RUN_PATH
11975 ;;
11976 siemens)
11977 need_lib_prefix=no
11978 ;;
11979 motorola)
11980 need_lib_prefix=no
11981 need_version=no
11982 shlibpath_overrides_runpath=no
11983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11984 ;;
11985 esac
11986 ;;
11987
11988 sysv4*MP*)
11989 if test -d /usr/nec ;then
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11992 soname_spec='$libname${shared_ext}.$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 fi
11995 ;;
11996
11997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11998 version_type=freebsd-elf
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12006 if test "$with_gnu_ld" = yes; then
12007 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12008 else
12009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12010 case $host_os in
12011 sco3.2v5*)
12012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12013 ;;
12014 esac
12015 fi
12016 sys_lib_dlsearch_path_spec='/usr/lib'
12017 ;;
12018
12019 tpf*)
12020 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12021 version_type=linux # correct to gnu/linux during the next big refactor
12022 need_lib_prefix=no
12023 need_version=no
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027 hardcode_into_libs=yes
12028 ;;
12029
12030 uts4*)
12031 version_type=linux # correct to gnu/linux during the next big refactor
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 ;;
12036
12037 *)
12038 dynamic_linker=no
12039 ;;
12040 esac
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12042 printf "%s\n" "$dynamic_linker" >&6; }
12043 test "$dynamic_linker" = no && can_build_shared=no
12044
12045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12046 if test "$GCC" = yes; then
12047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12048 fi
12049
12050 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12051 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12052 fi
12053 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12054 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12055 fi
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12149 printf %s "checking how to hardcode library paths into programs... " >&6; }
12150 hardcode_action=
12151 if test -n "$hardcode_libdir_flag_spec" ||
12152 test -n "$runpath_var" ||
12153 test "X$hardcode_automatic" = "Xyes" ; then
12154
12155 # We can hardcode non-existent directories.
12156 if test "$hardcode_direct" != no &&
12157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12158 # have to relink, otherwise we might link with an installed library
12159 # when we should be linking with a yet-to-be-installed one
12160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12161 test "$hardcode_minus_L" != no; then
12162 # Linking always hardcodes the temporary library directory.
12163 hardcode_action=relink
12164 else
12165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12166 hardcode_action=immediate
12167 fi
12168 else
12169 # We cannot hardcode anything, or else we can only hardcode existing
12170 # directories.
12171 hardcode_action=unsupported
12172 fi
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12174 printf "%s\n" "$hardcode_action" >&6; }
12175
12176 if test "$hardcode_action" = relink ||
12177 test "$inherit_rpath" = yes; then
12178 # Fast installation is not supported
12179 enable_fast_install=no
12180 elif test "$shlibpath_overrides_runpath" = yes ||
12181 test "$enable_shared" = no; then
12182 # Fast installation is not necessary
12183 enable_fast_install=needless
12184 fi
12185
12186
12187
12188
12189
12190
12191 if test "x$enable_dlopen" != xyes; then
12192 enable_dlopen=unknown
12193 enable_dlopen_self=unknown
12194 enable_dlopen_self_static=unknown
12195 else
12196 lt_cv_dlopen=no
12197 lt_cv_dlopen_libs=
12198
12199 case $host_os in
12200 beos*)
12201 lt_cv_dlopen="load_add_on"
12202 lt_cv_dlopen_libs=
12203 lt_cv_dlopen_self=yes
12204 ;;
12205
12206 mingw* | pw32* | cegcc*)
12207 lt_cv_dlopen="LoadLibrary"
12208 lt_cv_dlopen_libs=
12209 ;;
12210
12211 cygwin*)
12212 lt_cv_dlopen="dlopen"
12213 lt_cv_dlopen_libs=
12214 ;;
12215
12216 darwin*)
12217 # if libdl is installed we need to link against it
12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12219 printf %s "checking for dlopen in -ldl... " >&6; }
12220 if test ${ac_cv_lib_dl_dlopen+y}
12221 then :
12222 printf %s "(cached) " >&6
12223 else $as_nop
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-ldl $LIBS"
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12232 char dlopen ();
12233 int
12234 main (void)
12235 {
12236 return dlopen ();
12237 ;
12238 return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"
12242 then :
12243 ac_cv_lib_dl_dlopen=yes
12244 else $as_nop
12245 ac_cv_lib_dl_dlopen=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12252 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12253 if test "x$ac_cv_lib_dl_dlopen" = xyes
12254 then :
12255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12256 else $as_nop
12257
12258 lt_cv_dlopen="dyld"
12259 lt_cv_dlopen_libs=
12260 lt_cv_dlopen_self=yes
12261
12262 fi
12263
12264 ;;
12265
12266 *)
12267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12268 if test "x$ac_cv_func_shl_load" = xyes
12269 then :
12270 lt_cv_dlopen="shl_load"
12271 else $as_nop
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12273 printf %s "checking for shl_load in -ldld... " >&6; }
12274 if test ${ac_cv_lib_dld_shl_load+y}
12275 then :
12276 printf %s "(cached) " >&6
12277 else $as_nop
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-ldld $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 char shl_load ();
12287 int
12288 main (void)
12289 {
12290 return shl_load ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"
12296 then :
12297 ac_cv_lib_dld_shl_load=yes
12298 else $as_nop
12299 ac_cv_lib_dld_shl_load=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12306 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12307 if test "x$ac_cv_lib_dld_shl_load" = xyes
12308 then :
12309 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12310 else $as_nop
12311 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12312 if test "x$ac_cv_func_dlopen" = xyes
12313 then :
12314 lt_cv_dlopen="dlopen"
12315 else $as_nop
12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12317 printf %s "checking for dlopen in -ldl... " >&6; }
12318 if test ${ac_cv_lib_dl_dlopen+y}
12319 then :
12320 printf %s "(cached) " >&6
12321 else $as_nop
12322 ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-ldl $LIBS"
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330 char dlopen ();
12331 int
12332 main (void)
12333 {
12334 return dlopen ();
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"
12340 then :
12341 ac_cv_lib_dl_dlopen=yes
12342 else $as_nop
12343 ac_cv_lib_dl_dlopen=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12348 fi
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12350 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12351 if test "x$ac_cv_lib_dl_dlopen" = xyes
12352 then :
12353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12354 else $as_nop
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12356 printf %s "checking for dlopen in -lsvld... " >&6; }
12357 if test ${ac_cv_lib_svld_dlopen+y}
12358 then :
12359 printf %s "(cached) " >&6
12360 else $as_nop
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lsvld $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 char dlopen ();
12370 int
12371 main (void)
12372 {
12373 return dlopen ();
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_link "$LINENO"
12379 then :
12380 ac_cv_lib_svld_dlopen=yes
12381 else $as_nop
12382 ac_cv_lib_svld_dlopen=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12389 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12390 if test "x$ac_cv_lib_svld_dlopen" = xyes
12391 then :
12392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12393 else $as_nop
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12395 printf %s "checking for dld_link in -ldld... " >&6; }
12396 if test ${ac_cv_lib_dld_dld_link+y}
12397 then :
12398 printf %s "(cached) " >&6
12399 else $as_nop
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-ldld $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 char dld_link ();
12409 int
12410 main (void)
12411 {
12412 return dld_link ();
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"
12418 then :
12419 ac_cv_lib_dld_dld_link=yes
12420 else $as_nop
12421 ac_cv_lib_dld_dld_link=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12428 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12429 if test "x$ac_cv_lib_dld_dld_link" = xyes
12430 then :
12431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12432 fi
12433
12434
12435 fi
12436
12437
12438 fi
12439
12440
12441 fi
12442
12443
12444 fi
12445
12446
12447 fi
12448
12449 ;;
12450 esac
12451
12452 if test "x$lt_cv_dlopen" != xno; then
12453 enable_dlopen=yes
12454 else
12455 enable_dlopen=no
12456 fi
12457
12458 case $lt_cv_dlopen in
12459 dlopen)
12460 save_CPPFLAGS="$CPPFLAGS"
12461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12462
12463 save_LDFLAGS="$LDFLAGS"
12464 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12465
12466 save_LIBS="$LIBS"
12467 LIBS="$lt_cv_dlopen_libs $LIBS"
12468
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12470 printf %s "checking whether a program can dlopen itself... " >&6; }
12471 if test ${lt_cv_dlopen_self+y}
12472 then :
12473 printf %s "(cached) " >&6
12474 else $as_nop
12475 if test "$cross_compiling" = yes; then :
12476 lt_cv_dlopen_self=cross
12477 else
12478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12479 lt_status=$lt_dlunknown
12480 cat > conftest.$ac_ext <<_LT_EOF
12481 #line $LINENO "configure"
12482 #include "confdefs.h"
12483
12484 #if HAVE_DLFCN_H
12485 #include <dlfcn.h>
12486 #endif
12487
12488 #include <stdio.h>
12489
12490 #ifdef RTLD_GLOBAL
12491 # define LT_DLGLOBAL RTLD_GLOBAL
12492 #else
12493 # ifdef DL_GLOBAL
12494 # define LT_DLGLOBAL DL_GLOBAL
12495 # else
12496 # define LT_DLGLOBAL 0
12497 # endif
12498 #endif
12499
12500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12501 find out it does not work in some platform. */
12502 #ifndef LT_DLLAZY_OR_NOW
12503 # ifdef RTLD_LAZY
12504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12505 # else
12506 # ifdef DL_LAZY
12507 # define LT_DLLAZY_OR_NOW DL_LAZY
12508 # else
12509 # ifdef RTLD_NOW
12510 # define LT_DLLAZY_OR_NOW RTLD_NOW
12511 # else
12512 # ifdef DL_NOW
12513 # define LT_DLLAZY_OR_NOW DL_NOW
12514 # else
12515 # define LT_DLLAZY_OR_NOW 0
12516 # endif
12517 # endif
12518 # endif
12519 # endif
12520 #endif
12521
12522 /* When -fvisbility=hidden is used, assume the code has been annotated
12523 correspondingly for the symbols needed. */
12524 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12525 int fnord () __attribute__((visibility("default")));
12526 #endif
12527
12528 int fnord () { return 42; }
12529 int main ()
12530 {
12531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12532 int status = $lt_dlunknown;
12533
12534 if (self)
12535 {
12536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12537 else
12538 {
12539 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12540 else puts (dlerror ());
12541 }
12542 /* dlclose (self); */
12543 }
12544 else
12545 puts (dlerror ());
12546
12547 return status;
12548 }
12549 _LT_EOF
12550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12551 (eval $ac_link) 2>&5
12552 ac_status=$?
12553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12554 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12555 (./conftest; exit; ) >&5 2>/dev/null
12556 lt_status=$?
12557 case x$lt_status in
12558 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12559 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12560 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12561 esac
12562 else :
12563 # compilation failed
12564 lt_cv_dlopen_self=no
12565 fi
12566 fi
12567 rm -fr conftest*
12568
12569
12570 fi
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12572 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12573
12574 if test "x$lt_cv_dlopen_self" = xyes; then
12575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12577 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12578 if test ${lt_cv_dlopen_self_static+y}
12579 then :
12580 printf %s "(cached) " >&6
12581 else $as_nop
12582 if test "$cross_compiling" = yes; then :
12583 lt_cv_dlopen_self_static=cross
12584 else
12585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12586 lt_status=$lt_dlunknown
12587 cat > conftest.$ac_ext <<_LT_EOF
12588 #line $LINENO "configure"
12589 #include "confdefs.h"
12590
12591 #if HAVE_DLFCN_H
12592 #include <dlfcn.h>
12593 #endif
12594
12595 #include <stdio.h>
12596
12597 #ifdef RTLD_GLOBAL
12598 # define LT_DLGLOBAL RTLD_GLOBAL
12599 #else
12600 # ifdef DL_GLOBAL
12601 # define LT_DLGLOBAL DL_GLOBAL
12602 # else
12603 # define LT_DLGLOBAL 0
12604 # endif
12605 #endif
12606
12607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12608 find out it does not work in some platform. */
12609 #ifndef LT_DLLAZY_OR_NOW
12610 # ifdef RTLD_LAZY
12611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12612 # else
12613 # ifdef DL_LAZY
12614 # define LT_DLLAZY_OR_NOW DL_LAZY
12615 # else
12616 # ifdef RTLD_NOW
12617 # define LT_DLLAZY_OR_NOW RTLD_NOW
12618 # else
12619 # ifdef DL_NOW
12620 # define LT_DLLAZY_OR_NOW DL_NOW
12621 # else
12622 # define LT_DLLAZY_OR_NOW 0
12623 # endif
12624 # endif
12625 # endif
12626 # endif
12627 #endif
12628
12629 /* When -fvisbility=hidden is used, assume the code has been annotated
12630 correspondingly for the symbols needed. */
12631 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12632 int fnord () __attribute__((visibility("default")));
12633 #endif
12634
12635 int fnord () { return 42; }
12636 int main ()
12637 {
12638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12639 int status = $lt_dlunknown;
12640
12641 if (self)
12642 {
12643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12644 else
12645 {
12646 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12647 else puts (dlerror ());
12648 }
12649 /* dlclose (self); */
12650 }
12651 else
12652 puts (dlerror ());
12653
12654 return status;
12655 }
12656 _LT_EOF
12657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12658 (eval $ac_link) 2>&5
12659 ac_status=$?
12660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12661 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12662 (./conftest; exit; ) >&5 2>/dev/null
12663 lt_status=$?
12664 case x$lt_status in
12665 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12666 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12667 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12668 esac
12669 else :
12670 # compilation failed
12671 lt_cv_dlopen_self_static=no
12672 fi
12673 fi
12674 rm -fr conftest*
12675
12676
12677 fi
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12679 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12680 fi
12681
12682 CPPFLAGS="$save_CPPFLAGS"
12683 LDFLAGS="$save_LDFLAGS"
12684 LIBS="$save_LIBS"
12685 ;;
12686 esac
12687
12688 case $lt_cv_dlopen_self in
12689 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12690 *) enable_dlopen_self=unknown ;;
12691 esac
12692
12693 case $lt_cv_dlopen_self_static in
12694 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12695 *) enable_dlopen_self_static=unknown ;;
12696 esac
12697 fi
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715 striplib=
12716 old_striplib=
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12718 printf %s "checking whether stripping libraries is possible... " >&6; }
12719 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12720 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12721 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723 printf "%s\n" "yes" >&6; }
12724 else
12725 # FIXME - insert some real tests, host_os isn't really good enough
12726 case $host_os in
12727 darwin*)
12728 if test -n "$STRIP" ; then
12729 striplib="$STRIP -x"
12730 old_striplib="$STRIP -S"
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12732 printf "%s\n" "yes" >&6; }
12733 else
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 printf "%s\n" "no" >&6; }
12736 fi
12737 ;;
12738 *)
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 printf "%s\n" "no" >&6; }
12741 ;;
12742 esac
12743 fi
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756 # Report which library types will actually be built
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12758 printf %s "checking if libtool supports shared libraries... " >&6; }
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12760 printf "%s\n" "$can_build_shared" >&6; }
12761
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12763 printf %s "checking whether to build shared libraries... " >&6; }
12764 test "$can_build_shared" = "no" && enable_shared=no
12765
12766 # On AIX, shared libraries and static libraries use the same namespace, and
12767 # are all built from PIC.
12768 case $host_os in
12769 aix3*)
12770 test "$enable_shared" = yes && enable_static=no
12771 if test -n "$RANLIB"; then
12772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12773 postinstall_cmds='$RANLIB $lib'
12774 fi
12775 ;;
12776
12777 aix[4-9]*)
12778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12779 test "$enable_shared" = yes && enable_static=no
12780 fi
12781 ;;
12782 esac
12783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12784 printf "%s\n" "$enable_shared" >&6; }
12785
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12787 printf %s "checking whether to build static libraries... " >&6; }
12788 # Make sure either enable_shared or enable_static is yes.
12789 test "$enable_shared" = yes || enable_static=yes
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12791 printf "%s\n" "$enable_static" >&6; }
12792
12793
12794
12795
12796 fi
12797 ac_ext=c
12798 ac_cpp='$CPP $CPPFLAGS'
12799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803 CC="$lt_save_CC"
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819 ac_config_commands="$ac_config_commands libtool"
12820
12821
12822
12823
12824 # Only expand once:
12825
12826
12827 if test -n "$ac_tool_prefix"; then
12828 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12829 set dummy ${ac_tool_prefix}windres; ac_word=$2
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 printf %s "checking for $ac_word... " >&6; }
12832 if test ${ac_cv_prog_RC+y}
12833 then :
12834 printf %s "(cached) " >&6
12835 else $as_nop
12836 if test -n "$RC"; then
12837 ac_cv_prog_RC="$RC" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12841 do
12842 IFS=$as_save_IFS
12843 case $as_dir in #(((
12844 '') as_dir=./ ;;
12845 */) ;;
12846 *) as_dir=$as_dir/ ;;
12847 esac
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12850 ac_cv_prog_RC="${ac_tool_prefix}windres"
12851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12852 break 2
12853 fi
12854 done
12855 done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 RC=$ac_cv_prog_RC
12861 if test -n "$RC"; then
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12863 printf "%s\n" "$RC" >&6; }
12864 else
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 printf "%s\n" "no" >&6; }
12867 fi
12868
12869
12870 fi
12871 if test -z "$ac_cv_prog_RC"; then
12872 ac_ct_RC=$RC
12873 # Extract the first word of "windres", so it can be a program name with args.
12874 set dummy windres; ac_word=$2
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 printf %s "checking for $ac_word... " >&6; }
12877 if test ${ac_cv_prog_ac_ct_RC+y}
12878 then :
12879 printf %s "(cached) " >&6
12880 else $as_nop
12881 if test -n "$ac_ct_RC"; then
12882 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12883 else
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887 IFS=$as_save_IFS
12888 case $as_dir in #(((
12889 '') as_dir=./ ;;
12890 */) ;;
12891 *) as_dir=$as_dir/ ;;
12892 esac
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12895 ac_cv_prog_ac_ct_RC="windres"
12896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899 done
12900 done
12901 IFS=$as_save_IFS
12902
12903 fi
12904 fi
12905 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12906 if test -n "$ac_ct_RC"; then
12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12908 printf "%s\n" "$ac_ct_RC" >&6; }
12909 else
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 printf "%s\n" "no" >&6; }
12912 fi
12913
12914 if test "x$ac_ct_RC" = x; then
12915 RC=""
12916 else
12917 case $cross_compiling:$ac_tool_warned in
12918 yes:)
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12921 ac_tool_warned=yes ;;
12922 esac
12923 RC=$ac_ct_RC
12924 fi
12925 else
12926 RC="$ac_cv_prog_RC"
12927 fi
12928
12929
12930
12931
12932 # Source file extension for RC test sources.
12933 ac_ext=rc
12934
12935 # Object file extension for compiled RC test sources.
12936 objext=o
12937 objext_RC=$objext
12938
12939 # Code to be used in simple compile tests
12940 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12941
12942 # Code to be used in simple link tests
12943 lt_simple_link_test_code="$lt_simple_compile_test_code"
12944
12945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12946
12947
12948
12949
12950
12951
12952 # If no C compiler was specified, use CC.
12953 LTCC=${LTCC-"$CC"}
12954
12955 # If no C compiler flags were specified, use CFLAGS.
12956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12957
12958 # Allow CC to be a program name with arguments.
12959 compiler=$CC
12960
12961
12962 # save warnings/boilerplate of simple test code
12963 ac_outfile=conftest.$ac_objext
12964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12966 _lt_compiler_boilerplate=`cat conftest.err`
12967 $RM conftest*
12968
12969 ac_outfile=conftest.$ac_objext
12970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12972 _lt_linker_boilerplate=`cat conftest.err`
12973 $RM -r conftest*
12974
12975
12976 # Allow CC to be a program name with arguments.
12977 lt_save_CC="$CC"
12978 lt_save_CFLAGS=$CFLAGS
12979 lt_save_GCC=$GCC
12980 GCC=
12981 CC=${RC-"windres"}
12982 CFLAGS=
12983 compiler=$CC
12984 compiler_RC=$CC
12985 for cc_temp in $compiler""; do
12986 case $cc_temp in
12987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12989 \-*) ;;
12990 *) break;;
12991 esac
12992 done
12993 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12994
12995 lt_cv_prog_compiler_c_o_RC=yes
12996
12997 if test -n "$compiler"; then
12998 :
12999
13000
13001
13002 fi
13003
13004 GCC=$lt_save_GCC
13005 ac_ext=c
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13010
13011 CC=$lt_save_CC
13012 CFLAGS=$lt_save_CFLAGS
13013
13014
13015 # For now we hardcode the use of version scripts. It would be better
13016 # to write a test for this or even implement this within libtool.
13017 have_ld_version_script=no
13018 case "${host}" in
13019 *-*-linux*)
13020 have_ld_version_script=yes
13021 ;;
13022 *-*-gnu*)
13023 have_ld_version_script=yes
13024 ;;
13025 *-apple-darwin*)
13026
13027 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
13028
13029
13030 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
13031
13032 ;;
13033 esac
13034
13035 if test "$have_ld_version_script" = "yes"; then
13036 HAVE_LD_VERSION_SCRIPT_TRUE=
13037 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13038 else
13039 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13040 HAVE_LD_VERSION_SCRIPT_FALSE=
13041 fi
13042
13043
13044 #
13045 # Specify how we support our local modification of libtool for Windows
13046 # 64-bit. Options are:
13047 #
13048 # (1) apply: when appying patch fails, it results failure of entire build
13049 # (2) never: never apply the patch (no try)
13050 # (3) try: use patched if it goes well, use original if fails
13051 #
13052
13053 # Check whether --with-libtool-modification was given.
13054 if test ${with_libtool_modification+y}
13055 then :
13056 withval=$with_libtool_modification; build_libtool_modification=$withval
13057 else $as_nop
13058 build_libtool_modification=never
13059 fi
13060
13061
13062 #
13063 # Apply a patch (locally maintained one of ours) to libtool
13064 #
13065 case $host in
13066 x86_64-*mingw32*)
13067 ac_config_commands="$ac_config_commands libtool-patch"
13068
13069 ;;
13070 *)
13071 ;;
13072 esac
13073
13074
13075
13076
13077
13078
13079 # Checks for programs.
13080 missing_dir=`cd $ac_aux_dir && pwd`
13081
13082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
13083
13084
13085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13086
13087
13088 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
13089
13090
13091 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13092
13093
13094 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13095
13096 for ac_prog in gawk mawk nawk awk
13097 do
13098 # Extract the first word of "$ac_prog", so it can be a program name with args.
13099 set dummy $ac_prog; ac_word=$2
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 printf %s "checking for $ac_word... " >&6; }
13102 if test ${ac_cv_prog_AWK+y}
13103 then :
13104 printf %s "(cached) " >&6
13105 else $as_nop
13106 if test -n "$AWK"; then
13107 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13111 do
13112 IFS=$as_save_IFS
13113 case $as_dir in #(((
13114 '') as_dir=./ ;;
13115 */) ;;
13116 *) as_dir=$as_dir/ ;;
13117 esac
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13120 ac_cv_prog_AWK="$ac_prog"
13121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 AWK=$ac_cv_prog_AWK
13131 if test -n "$AWK"; then
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13133 printf "%s\n" "$AWK" >&6; }
13134 else
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 printf "%s\n" "no" >&6; }
13137 fi
13138
13139
13140 test -n "$AWK" && break
13141 done
13142
13143 ac_ext=c
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148 if test -n "$ac_tool_prefix"; then
13149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 printf %s "checking for $ac_word... " >&6; }
13153 if test ${ac_cv_prog_CC+y}
13154 then :
13155 printf %s "(cached) " >&6
13156 else $as_nop
13157 if test -n "$CC"; then
13158 ac_cv_prog_CC="$CC" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13162 do
13163 IFS=$as_save_IFS
13164 case $as_dir in #(((
13165 '') as_dir=./ ;;
13166 */) ;;
13167 *) as_dir=$as_dir/ ;;
13168 esac
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 CC=$ac_cv_prog_CC
13182 if test -n "$CC"; then
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13184 printf "%s\n" "$CC" >&6; }
13185 else
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 printf "%s\n" "no" >&6; }
13188 fi
13189
13190
13191 fi
13192 if test -z "$ac_cv_prog_CC"; then
13193 ac_ct_CC=$CC
13194 # Extract the first word of "gcc", so it can be a program name with args.
13195 set dummy gcc; ac_word=$2
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 printf %s "checking for $ac_word... " >&6; }
13198 if test ${ac_cv_prog_ac_ct_CC+y}
13199 then :
13200 printf %s "(cached) " >&6
13201 else $as_nop
13202 if test -n "$ac_ct_CC"; then
13203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208 IFS=$as_save_IFS
13209 case $as_dir in #(((
13210 '') as_dir=./ ;;
13211 */) ;;
13212 *) as_dir=$as_dir/ ;;
13213 esac
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13216 ac_cv_prog_ac_ct_CC="gcc"
13217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13218 break 2
13219 fi
13220 done
13221 done
13222 IFS=$as_save_IFS
13223
13224 fi
13225 fi
13226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13227 if test -n "$ac_ct_CC"; then
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13229 printf "%s\n" "$ac_ct_CC" >&6; }
13230 else
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 printf "%s\n" "no" >&6; }
13233 fi
13234
13235 if test "x$ac_ct_CC" = x; then
13236 CC=""
13237 else
13238 case $cross_compiling:$ac_tool_warned in
13239 yes:)
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13242 ac_tool_warned=yes ;;
13243 esac
13244 CC=$ac_ct_CC
13245 fi
13246 else
13247 CC="$ac_cv_prog_CC"
13248 fi
13249
13250 if test -z "$CC"; then
13251 if test -n "$ac_tool_prefix"; then
13252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13253 set dummy ${ac_tool_prefix}cc; ac_word=$2
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 printf %s "checking for $ac_word... " >&6; }
13256 if test ${ac_cv_prog_CC+y}
13257 then :
13258 printf %s "(cached) " >&6
13259 else $as_nop
13260 if test -n "$CC"; then
13261 ac_cv_prog_CC="$CC" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266 IFS=$as_save_IFS
13267 case $as_dir in #(((
13268 '') as_dir=./ ;;
13269 */) ;;
13270 *) as_dir=$as_dir/ ;;
13271 esac
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13274 ac_cv_prog_CC="${ac_tool_prefix}cc"
13275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 CC=$ac_cv_prog_CC
13285 if test -n "$CC"; then
13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13287 printf "%s\n" "$CC" >&6; }
13288 else
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 printf "%s\n" "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 fi
13296 if test -z "$CC"; then
13297 # Extract the first word of "cc", so it can be a program name with args.
13298 set dummy cc; ac_word=$2
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 printf %s "checking for $ac_word... " >&6; }
13301 if test ${ac_cv_prog_CC+y}
13302 then :
13303 printf %s "(cached) " >&6
13304 else $as_nop
13305 if test -n "$CC"; then
13306 ac_cv_prog_CC="$CC" # Let the user override the test.
13307 else
13308 ac_prog_rejected=no
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 case $as_dir in #(((
13314 '') as_dir=./ ;;
13315 */) ;;
13316 *) as_dir=$as_dir/ ;;
13317 esac
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13320 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13321 ac_prog_rejected=yes
13322 continue
13323 fi
13324 ac_cv_prog_CC="cc"
13325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13326 break 2
13327 fi
13328 done
13329 done
13330 IFS=$as_save_IFS
13331
13332 if test $ac_prog_rejected = yes; then
13333 # We found a bogon in the path, so make sure we never use it.
13334 set dummy $ac_cv_prog_CC
13335 shift
13336 if test $# != 0; then
13337 # We chose a different compiler from the bogus one.
13338 # However, it has the same basename, so the bogon will be chosen
13339 # first if we set CC to just the basename; use the full file name.
13340 shift
13341 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13342 fi
13343 fi
13344 fi
13345 fi
13346 CC=$ac_cv_prog_CC
13347 if test -n "$CC"; then
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13349 printf "%s\n" "$CC" >&6; }
13350 else
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 printf "%s\n" "no" >&6; }
13353 fi
13354
13355
13356 fi
13357 if test -z "$CC"; then
13358 if test -n "$ac_tool_prefix"; then
13359 for ac_prog in cl.exe
13360 do
13361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 printf %s "checking for $ac_word... " >&6; }
13365 if test ${ac_cv_prog_CC+y}
13366 then :
13367 printf %s "(cached) " >&6
13368 else $as_nop
13369 if test -n "$CC"; then
13370 ac_cv_prog_CC="$CC" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375 IFS=$as_save_IFS
13376 case $as_dir in #(((
13377 '') as_dir=./ ;;
13378 */) ;;
13379 *) as_dir=$as_dir/ ;;
13380 esac
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387 done
13388 done
13389 IFS=$as_save_IFS
13390
13391 fi
13392 fi
13393 CC=$ac_cv_prog_CC
13394 if test -n "$CC"; then
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13396 printf "%s\n" "$CC" >&6; }
13397 else
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 printf "%s\n" "no" >&6; }
13400 fi
13401
13402
13403 test -n "$CC" && break
13404 done
13405 fi
13406 if test -z "$CC"; then
13407 ac_ct_CC=$CC
13408 for ac_prog in cl.exe
13409 do
13410 # Extract the first word of "$ac_prog", so it can be a program name with args.
13411 set dummy $ac_prog; ac_word=$2
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 printf %s "checking for $ac_word... " >&6; }
13414 if test ${ac_cv_prog_ac_ct_CC+y}
13415 then :
13416 printf %s "(cached) " >&6
13417 else $as_nop
13418 if test -n "$ac_ct_CC"; then
13419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424 IFS=$as_save_IFS
13425 case $as_dir in #(((
13426 '') as_dir=./ ;;
13427 */) ;;
13428 *) as_dir=$as_dir/ ;;
13429 esac
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_ac_ct_CC="$ac_prog"
13433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 fi
13441 fi
13442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13443 if test -n "$ac_ct_CC"; then
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13445 printf "%s\n" "$ac_ct_CC" >&6; }
13446 else
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 printf "%s\n" "no" >&6; }
13449 fi
13450
13451
13452 test -n "$ac_ct_CC" && break
13453 done
13454
13455 if test "x$ac_ct_CC" = x; then
13456 CC=""
13457 else
13458 case $cross_compiling:$ac_tool_warned in
13459 yes:)
13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13462 ac_tool_warned=yes ;;
13463 esac
13464 CC=$ac_ct_CC
13465 fi
13466 fi
13467
13468 fi
13469 if test -z "$CC"; then
13470 if test -n "$ac_tool_prefix"; then
13471 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13472 set dummy ${ac_tool_prefix}clang; ac_word=$2
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474 printf %s "checking for $ac_word... " >&6; }
13475 if test ${ac_cv_prog_CC+y}
13476 then :
13477 printf %s "(cached) " >&6
13478 else $as_nop
13479 if test -n "$CC"; then
13480 ac_cv_prog_CC="$CC" # Let the user override the test.
13481 else
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485 IFS=$as_save_IFS
13486 case $as_dir in #(((
13487 '') as_dir=./ ;;
13488 */) ;;
13489 *) as_dir=$as_dir/ ;;
13490 esac
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13493 ac_cv_prog_CC="${ac_tool_prefix}clang"
13494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497 done
13498 done
13499 IFS=$as_save_IFS
13500
13501 fi
13502 fi
13503 CC=$ac_cv_prog_CC
13504 if test -n "$CC"; then
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13506 printf "%s\n" "$CC" >&6; }
13507 else
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 printf "%s\n" "no" >&6; }
13510 fi
13511
13512
13513 fi
13514 if test -z "$ac_cv_prog_CC"; then
13515 ac_ct_CC=$CC
13516 # Extract the first word of "clang", so it can be a program name with args.
13517 set dummy clang; ac_word=$2
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 printf %s "checking for $ac_word... " >&6; }
13520 if test ${ac_cv_prog_ac_ct_CC+y}
13521 then :
13522 printf %s "(cached) " >&6
13523 else $as_nop
13524 if test -n "$ac_ct_CC"; then
13525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530 IFS=$as_save_IFS
13531 case $as_dir in #(((
13532 '') as_dir=./ ;;
13533 */) ;;
13534 *) as_dir=$as_dir/ ;;
13535 esac
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13538 ac_cv_prog_ac_ct_CC="clang"
13539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13540 break 2
13541 fi
13542 done
13543 done
13544 IFS=$as_save_IFS
13545
13546 fi
13547 fi
13548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13549 if test -n "$ac_ct_CC"; then
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13551 printf "%s\n" "$ac_ct_CC" >&6; }
13552 else
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 printf "%s\n" "no" >&6; }
13555 fi
13556
13557 if test "x$ac_ct_CC" = x; then
13558 CC=""
13559 else
13560 case $cross_compiling:$ac_tool_warned in
13561 yes:)
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13564 ac_tool_warned=yes ;;
13565 esac
13566 CC=$ac_ct_CC
13567 fi
13568 else
13569 CC="$ac_cv_prog_CC"
13570 fi
13571
13572 fi
13573
13574
13575 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13576 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13577 as_fn_error $? "no acceptable C compiler found in \$PATH
13578 See \`config.log' for more details" "$LINENO" 5; }
13579
13580 # Provide some information about the compiler.
13581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13582 set X $ac_compile
13583 ac_compiler=$2
13584 for ac_option in --version -v -V -qversion -version; do
13585 { { ac_try="$ac_compiler $ac_option >&5"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589 esac
13590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13591 printf "%s\n" "$ac_try_echo"; } >&5
13592 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13593 ac_status=$?
13594 if test -s conftest.err; then
13595 sed '10a\
13596 ... rest of stderr output deleted ...
13597 10q' conftest.err >conftest.er1
13598 cat conftest.er1 >&5
13599 fi
13600 rm -f conftest.er1 conftest.err
13601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; }
13603 done
13604
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13606 printf %s "checking whether the compiler supports GNU C... " >&6; }
13607 if test ${ac_cv_c_compiler_gnu+y}
13608 then :
13609 printf %s "(cached) " >&6
13610 else $as_nop
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613
13614 int
13615 main (void)
13616 {
13617 #ifndef __GNUC__
13618 choke me
13619 #endif
13620
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 if ac_fn_c_try_compile "$LINENO"
13626 then :
13627 ac_compiler_gnu=yes
13628 else $as_nop
13629 ac_compiler_gnu=no
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13633
13634 fi
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13636 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13638
13639 if test $ac_compiler_gnu = yes; then
13640 GCC=yes
13641 else
13642 GCC=
13643 fi
13644 ac_test_CFLAGS=${CFLAGS+y}
13645 ac_save_CFLAGS=$CFLAGS
13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13647 printf %s "checking whether $CC accepts -g... " >&6; }
13648 if test ${ac_cv_prog_cc_g+y}
13649 then :
13650 printf %s "(cached) " >&6
13651 else $as_nop
13652 ac_save_c_werror_flag=$ac_c_werror_flag
13653 ac_c_werror_flag=yes
13654 ac_cv_prog_cc_g=no
13655 CFLAGS="-g"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658
13659 int
13660 main (void)
13661 {
13662
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_compile "$LINENO"
13668 then :
13669 ac_cv_prog_cc_g=yes
13670 else $as_nop
13671 CFLAGS=""
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674
13675 int
13676 main (void)
13677 {
13678
13679 ;
13680 return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"
13684 then :
13685
13686 else $as_nop
13687 ac_c_werror_flag=$ac_save_c_werror_flag
13688 CFLAGS="-g"
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 int
13693 main (void)
13694 {
13695
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_compile "$LINENO"
13701 then :
13702 ac_cv_prog_cc_g=yes
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13709 ac_c_werror_flag=$ac_save_c_werror_flag
13710 fi
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13712 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13713 if test $ac_test_CFLAGS; then
13714 CFLAGS=$ac_save_CFLAGS
13715 elif test $ac_cv_prog_cc_g = yes; then
13716 if test "$GCC" = yes; then
13717 CFLAGS="-g -O2"
13718 else
13719 CFLAGS="-g"
13720 fi
13721 else
13722 if test "$GCC" = yes; then
13723 CFLAGS="-O2"
13724 else
13725 CFLAGS=
13726 fi
13727 fi
13728 ac_prog_cc_stdc=no
13729 if test x$ac_prog_cc_stdc = xno
13730 then :
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13732 printf %s "checking for $CC option to enable C11 features... " >&6; }
13733 if test ${ac_cv_prog_cc_c11+y}
13734 then :
13735 printf %s "(cached) " >&6
13736 else $as_nop
13737 ac_cv_prog_cc_c11=no
13738 ac_save_CC=$CC
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 $ac_c_conftest_c11_program
13742 _ACEOF
13743 for ac_arg in '' -std=gnu11
13744 do
13745 CC="$ac_save_CC $ac_arg"
13746 if ac_fn_c_try_compile "$LINENO"
13747 then :
13748 ac_cv_prog_cc_c11=$ac_arg
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.beam
13751 test "x$ac_cv_prog_cc_c11" != "xno" && break
13752 done
13753 rm -f conftest.$ac_ext
13754 CC=$ac_save_CC
13755 fi
13756
13757 if test "x$ac_cv_prog_cc_c11" = xno
13758 then :
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13760 printf "%s\n" "unsupported" >&6; }
13761 else $as_nop
13762 if test "x$ac_cv_prog_cc_c11" = x
13763 then :
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13765 printf "%s\n" "none needed" >&6; }
13766 else $as_nop
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13768 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13769 CC="$CC $ac_cv_prog_cc_c11"
13770 fi
13771 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13772 ac_prog_cc_stdc=c11
13773 fi
13774 fi
13775 if test x$ac_prog_cc_stdc = xno
13776 then :
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13778 printf %s "checking for $CC option to enable C99 features... " >&6; }
13779 if test ${ac_cv_prog_cc_c99+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
13783 ac_cv_prog_cc_c99=no
13784 ac_save_CC=$CC
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 $ac_c_conftest_c99_program
13788 _ACEOF
13789 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13790 do
13791 CC="$ac_save_CC $ac_arg"
13792 if ac_fn_c_try_compile "$LINENO"
13793 then :
13794 ac_cv_prog_cc_c99=$ac_arg
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext conftest.beam
13797 test "x$ac_cv_prog_cc_c99" != "xno" && break
13798 done
13799 rm -f conftest.$ac_ext
13800 CC=$ac_save_CC
13801 fi
13802
13803 if test "x$ac_cv_prog_cc_c99" = xno
13804 then :
13805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13806 printf "%s\n" "unsupported" >&6; }
13807 else $as_nop
13808 if test "x$ac_cv_prog_cc_c99" = x
13809 then :
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13811 printf "%s\n" "none needed" >&6; }
13812 else $as_nop
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13814 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13815 CC="$CC $ac_cv_prog_cc_c99"
13816 fi
13817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13818 ac_prog_cc_stdc=c99
13819 fi
13820 fi
13821 if test x$ac_prog_cc_stdc = xno
13822 then :
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13824 printf %s "checking for $CC option to enable C89 features... " >&6; }
13825 if test ${ac_cv_prog_cc_c89+y}
13826 then :
13827 printf %s "(cached) " >&6
13828 else $as_nop
13829 ac_cv_prog_cc_c89=no
13830 ac_save_CC=$CC
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 $ac_c_conftest_c89_program
13834 _ACEOF
13835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13836 do
13837 CC="$ac_save_CC $ac_arg"
13838 if ac_fn_c_try_compile "$LINENO"
13839 then :
13840 ac_cv_prog_cc_c89=$ac_arg
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.beam
13843 test "x$ac_cv_prog_cc_c89" != "xno" && break
13844 done
13845 rm -f conftest.$ac_ext
13846 CC=$ac_save_CC
13847 fi
13848
13849 if test "x$ac_cv_prog_cc_c89" = xno
13850 then :
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13852 printf "%s\n" "unsupported" >&6; }
13853 else $as_nop
13854 if test "x$ac_cv_prog_cc_c89" = x
13855 then :
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13857 printf "%s\n" "none needed" >&6; }
13858 else $as_nop
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13860 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13861 CC="$CC $ac_cv_prog_cc_c89"
13862 fi
13863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13864 ac_prog_cc_stdc=c89
13865 fi
13866 fi
13867
13868 ac_ext=c
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873
13874
13875 ac_ext=c
13876 ac_cpp='$CPP $CPPFLAGS'
13877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13881 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13882 if test ${am_cv_prog_cc_c_o+y}
13883 then :
13884 printf %s "(cached) " >&6
13885 else $as_nop
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888
13889 int
13890 main (void)
13891 {
13892
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 # Make sure it works both with $CC and with simple cc.
13898 # Following AC_PROG_CC_C_O, we do the test twice because some
13899 # compilers refuse to overwrite an existing .o file with -o,
13900 # though they will create one.
13901 am_cv_prog_cc_c_o=yes
13902 for am_i in 1 2; do
13903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } \
13908 && test -f conftest2.$ac_objext; then
13909 : OK
13910 else
13911 am_cv_prog_cc_c_o=no
13912 break
13913 fi
13914 done
13915 rm -f core conftest*
13916 unset am_i
13917 fi
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13919 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13920 if test "$am_cv_prog_cc_c_o" != yes; then
13921 # Losing compiler, so override with the script.
13922 # FIXME: It is wrong to rewrite CC.
13923 # But if we don't then we get into trouble of one sort or another.
13924 # A longer-term fix would be to have automake use am__CC in this case,
13925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13926 CC="$am_aux_dir/compile $CC"
13927 fi
13928 ac_ext=c
13929 ac_cpp='$CPP $CPPFLAGS'
13930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933
13934
13935 depcc="$CC" am_compiler_list=
13936
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13938 printf %s "checking dependency style of $depcc... " >&6; }
13939 if test ${am_cv_CC_dependencies_compiler_type+y}
13940 then :
13941 printf %s "(cached) " >&6
13942 else $as_nop
13943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13944 # We make a subdir and do the tests there. Otherwise we can end up
13945 # making bogus files that we don't know about and never remove. For
13946 # instance it was reported that on HP-UX the gcc test will end up
13947 # making a dummy file named 'D' -- because '-MD' means "put the output
13948 # in D".
13949 rm -rf conftest.dir
13950 mkdir conftest.dir
13951 # Copy depcomp to subdir because otherwise we won't find it if we're
13952 # using a relative directory.
13953 cp "$am_depcomp" conftest.dir
13954 cd conftest.dir
13955 # We will build objects and dependencies in a subdirectory because
13956 # it helps to detect inapplicable dependency modes. For instance
13957 # both Tru64's cc and ICC support -MD to output dependencies as a
13958 # side effect of compilation, but ICC will put the dependencies in
13959 # the current directory while Tru64 will put them in the object
13960 # directory.
13961 mkdir sub
13962
13963 am_cv_CC_dependencies_compiler_type=none
13964 if test "$am_compiler_list" = ""; then
13965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13966 fi
13967 am__universal=false
13968 case " $depcc " in #(
13969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13970 esac
13971
13972 for depmode in $am_compiler_list; do
13973 # Setup a source with many dependencies, because some compilers
13974 # like to wrap large dependency lists on column 80 (with \), and
13975 # we should not choose a depcomp mode which is confused by this.
13976 #
13977 # We need to recreate these files for each test, as the compiler may
13978 # overwrite some of them when testing with obscure command lines.
13979 # This happens at least with the AIX C compiler.
13980 : > sub/conftest.c
13981 for i in 1 2 3 4 5 6; do
13982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13984 # Solaris 10 /bin/sh.
13985 echo '/* dummy */' > sub/conftst$i.h
13986 done
13987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13988
13989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13990 # mode. It turns out that the SunPro C++ compiler does not properly
13991 # handle '-M -o', and we need to detect this. Also, some Intel
13992 # versions had trouble with output in subdirs.
13993 am__obj=sub/conftest.${OBJEXT-o}
13994 am__minus_obj="-o $am__obj"
13995 case $depmode in
13996 gcc)
13997 # This depmode causes a compiler race in universal mode.
13998 test "$am__universal" = false || continue
13999 ;;
14000 nosideeffect)
14001 # After this tag, mechanisms are not by side-effect, so they'll
14002 # only be used when explicitly requested.
14003 if test "x$enable_dependency_tracking" = xyes; then
14004 continue
14005 else
14006 break
14007 fi
14008 ;;
14009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14010 # This compiler won't grok '-c -o', but also, the minuso test has
14011 # not run yet. These depmodes are late enough in the game, and
14012 # so weak that their functioning should not be impacted.
14013 am__obj=conftest.${OBJEXT-o}
14014 am__minus_obj=
14015 ;;
14016 none) break ;;
14017 esac
14018 if depmode=$depmode \
14019 source=sub/conftest.c object=$am__obj \
14020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14022 >/dev/null 2>conftest.err &&
14023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14027 # icc doesn't choke on unknown options, it will just issue warnings
14028 # or remarks (even with -Werror). So we grep stderr for any message
14029 # that says an option was ignored or not supported.
14030 # When given -MP, icc 7.0 and 7.1 complain thusly:
14031 # icc: Command line warning: ignoring option '-M'; no argument required
14032 # The diagnosis changed in icc 8.0:
14033 # icc: Command line remark: option '-MP' not supported
14034 if (grep 'ignoring option' conftest.err ||
14035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14036 am_cv_CC_dependencies_compiler_type=$depmode
14037 break
14038 fi
14039 fi
14040 done
14041
14042 cd ..
14043 rm -rf conftest.dir
14044 else
14045 am_cv_CC_dependencies_compiler_type=none
14046 fi
14047
14048 fi
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14050 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14052
14053 if
14054 test "x$enable_dependency_tracking" != xno \
14055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14056 am__fastdepCC_TRUE=
14057 am__fastdepCC_FALSE='#'
14058 else
14059 am__fastdepCC_TRUE='#'
14060 am__fastdepCC_FALSE=
14061 fi
14062
14063
14064 ac_ext=c
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14070 printf %s "checking how to run the C preprocessor... " >&6; }
14071 # On Suns, sometimes $CPP names a directory.
14072 if test -n "$CPP" && test -d "$CPP"; then
14073 CPP=
14074 fi
14075 if test -z "$CPP"; then
14076 if test ${ac_cv_prog_CPP+y}
14077 then :
14078 printf %s "(cached) " >&6
14079 else $as_nop
14080 # Double quotes because $CC needs to be expanded
14081 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14082 do
14083 ac_preproc_ok=false
14084 for ac_c_preproc_warn_flag in '' yes
14085 do
14086 # Use a header file that comes with gcc, so configuring glibc
14087 # with a fresh cross-compiler works.
14088 # On the NeXT, cc -E runs the code through the compiler's parser,
14089 # not just through cpp. "Syntax error" is here to catch this case.
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <limits.h>
14093 Syntax error
14094 _ACEOF
14095 if ac_fn_c_try_cpp "$LINENO"
14096 then :
14097
14098 else $as_nop
14099 # Broken: fails on valid input.
14100 continue
14101 fi
14102 rm -f conftest.err conftest.i conftest.$ac_ext
14103
14104 # OK, works on sane cases. Now check whether nonexistent headers
14105 # can be detected and how.
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 #include <ac_nonexistent.h>
14109 _ACEOF
14110 if ac_fn_c_try_cpp "$LINENO"
14111 then :
14112 # Broken: success on invalid input.
14113 continue
14114 else $as_nop
14115 # Passes both tests.
14116 ac_preproc_ok=:
14117 break
14118 fi
14119 rm -f conftest.err conftest.i conftest.$ac_ext
14120
14121 done
14122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14123 rm -f conftest.i conftest.err conftest.$ac_ext
14124 if $ac_preproc_ok
14125 then :
14126 break
14127 fi
14128
14129 done
14130 ac_cv_prog_CPP=$CPP
14131
14132 fi
14133 CPP=$ac_cv_prog_CPP
14134 else
14135 ac_cv_prog_CPP=$CPP
14136 fi
14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14138 printf "%s\n" "$CPP" >&6; }
14139 ac_preproc_ok=false
14140 for ac_c_preproc_warn_flag in '' yes
14141 do
14142 # Use a header file that comes with gcc, so configuring glibc
14143 # with a fresh cross-compiler works.
14144 # On the NeXT, cc -E runs the code through the compiler's parser,
14145 # not just through cpp. "Syntax error" is here to catch this case.
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <limits.h>
14149 Syntax error
14150 _ACEOF
14151 if ac_fn_c_try_cpp "$LINENO"
14152 then :
14153
14154 else $as_nop
14155 # Broken: fails on valid input.
14156 continue
14157 fi
14158 rm -f conftest.err conftest.i conftest.$ac_ext
14159
14160 # OK, works on sane cases. Now check whether nonexistent headers
14161 # can be detected and how.
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #include <ac_nonexistent.h>
14165 _ACEOF
14166 if ac_fn_c_try_cpp "$LINENO"
14167 then :
14168 # Broken: success on invalid input.
14169 continue
14170 else $as_nop
14171 # Passes both tests.
14172 ac_preproc_ok=:
14173 break
14174 fi
14175 rm -f conftest.err conftest.i conftest.$ac_ext
14176
14177 done
14178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14179 rm -f conftest.i conftest.err conftest.$ac_ext
14180 if $ac_preproc_ok
14181 then :
14182
14183 else $as_nop
14184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14185 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14186 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14187 See \`config.log' for more details" "$LINENO" 5; }
14188 fi
14189
14190 ac_ext=c
14191 ac_cpp='$CPP $CPPFLAGS'
14192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195
14196
14197 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
14198 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
14199 fi
14200
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14202 printf %s "checking whether ln -s works... " >&6; }
14203 LN_S=$as_ln_s
14204 if test "$LN_S" = "ln -s"; then
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14206 printf "%s\n" "yes" >&6; }
14207 else
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14209 printf "%s\n" "no, using $LN_S" >&6; }
14210 fi
14211
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14213 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14214 set x ${MAKE-make}
14215 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14216 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
14217 then :
14218 printf %s "(cached) " >&6
14219 else $as_nop
14220 cat >conftest.make <<\_ACEOF
14221 SHELL = /bin/sh
14222 all:
14223 @echo '@@@%%%=$(MAKE)=@@@%%%'
14224 _ACEOF
14225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14227 *@@@%%%=?*=@@@%%%*)
14228 eval ac_cv_prog_make_${ac_make}_set=yes;;
14229 *)
14230 eval ac_cv_prog_make_${ac_make}_set=no;;
14231 esac
14232 rm -f conftest.make
14233 fi
14234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14236 printf "%s\n" "yes" >&6; }
14237 SET_MAKE=
14238 else
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 printf "%s\n" "no" >&6; }
14241 SET_MAKE="MAKE=${MAKE-make}"
14242 fi
14243
14244 #AC_ARG_PROGRAM
14245
14246 # We need to compile and run a program on the build machine.
14247 # Put a plausible default for CC_FOR_BUILD in Makefile.
14248 if test -z "$CC_FOR_BUILD"; then
14249 if test "x$cross_compiling" = "xno"; then
14250 CC_FOR_BUILD='$(CC)'
14251 else
14252 CC_FOR_BUILD=gcc
14253 fi
14254 fi
14255
14256 # Also set EXEEXT_FOR_BUILD.
14257 if test "x$cross_compiling" = "xno"; then
14258 EXEEXT_FOR_BUILD='$(EXEEXT)'
14259 else
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
14261 printf %s "checking for build system executable suffix... " >&6; }
14262 if test ${bfd_cv_build_exeext+y}
14263 then :
14264 printf %s "(cached) " >&6
14265 else $as_nop
14266 rm -f conftest*
14267 echo 'int main () { return 0; }' > conftest.c
14268 bfd_cv_build_exeext=
14269 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
14270 for file in conftest.*; do
14271 case $file in
14272 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
14273 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
14274 esac
14275 done
14276 rm -f conftest*
14277 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
14278 fi
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
14280 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
14281 EXEEXT_FOR_BUILD=""
14282 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
14283 fi
14284
14285
14286 if test "$GCC" = yes; then
14287 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
14288
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
14290 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
14291 _gcc_cflags_save=$CFLAGS
14292 CFLAGS="-Wpointer-arith"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295
14296 int
14297 main (void)
14298 {
14299
14300 ;
14301 return 0;
14302 }
14303 _ACEOF
14304 if ac_fn_c_try_compile "$LINENO"
14305 then :
14306 _gcc_wopt=yes
14307 else $as_nop
14308 _gcc_wopt=no
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14312 printf "%s\n" "$_gcc_wopt" >&6; }
14313 CFLAGS=$_gcc_cflags_save;
14314 if test x"$_gcc_wopt" = xyes ; then
14315 CFLAGS="$CFLAGS -Wpointer-arith"
14316 fi
14317 fi
14318
14319
14320 #
14321 # Options depending on the host OS.
14322 #
14323 have_dosish_system=no
14324 have_w32_system=no
14325 have_w64_system=no
14326 case "${host}" in
14327 *-linux*)
14328 if test "$GCC" = yes; then
14329 CFLAGS="$CFLAGS -fPIC -DPIC"
14330 fi
14331 ;;
14332 x86_64-*mingw32*)
14333 have_dosish_system=yes
14334 have_w32_system=yes
14335 have_w64_system=yes
14336 ;;
14337 *-mingw32*)
14338 have_dosish_system=yes
14339 have_w32_system=yes
14340 ;;
14341 *-solaris*)
14342
14343 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
14344
14345
14346 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
14347
14348
14349 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
14350
14351 ;;
14352 esac
14353
14354 if test "$have_dosish_system" = yes; then
14355
14356 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
14357
14358 fi
14359
14360 if test "$have_w32_system" = yes; then
14361
14362 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14363
14364 if test "$have_w64_system" = yes; then
14365
14366 printf "%s\n" "#define HAVE_W64_SYSTEM 1" >>confdefs.h
14367
14368 fi
14369 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14370 if test "x$ac_cv_header_winsock2_h" = xyes
14371 then :
14372 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
14373
14374 fi
14375
14376 fi
14377 if test "$have_w32_system" = yes; then
14378 HAVE_W32_SYSTEM_TRUE=
14379 HAVE_W32_SYSTEM_FALSE='#'
14380 else
14381 HAVE_W32_SYSTEM_TRUE='#'
14382 HAVE_W32_SYSTEM_FALSE=
14383 fi
14384
14385 if test "$have_w64_system" = yes; then
14386 HAVE_W64_SYSTEM_TRUE=
14387 HAVE_W64_SYSTEM_FALSE='#'
14388 else
14389 HAVE_W64_SYSTEM_TRUE='#'
14390 HAVE_W64_SYSTEM_FALSE=
14391 fi
14392
14393
14394
14395 #
14396 # Provide information about the build.
14397 #
14398 BUILD_REVISION="0f84595"
14399
14400
14401 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
14402
14403 BUILD_COMMITID="0f84595a4bc706d3afb969d59618244c7db3b59f"
14404
14405 printf "%s\n" "#define BUILD_COMMITID \"$BUILD_COMMITID\"" >>confdefs.h
14406
14407
14408 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
14409 BUILD_FILEVERSION="${BUILD_FILEVERSION}3972"
14410
14411
14412 # Check whether --enable-build-timestamp was given.
14413 if test ${enable_build_timestamp+y}
14414 then :
14415 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
14416 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
14417 else
14418 BUILD_TIMESTAMP="$enableval"
14419 fi
14420 else $as_nop
14421 BUILD_TIMESTAMP="<none>"
14422 fi
14423
14424
14425
14426 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
14427
14428
14429
14430
14431 #
14432 # Check for network libraries. They are needed for tests.
14433 #
14434 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
14435 if test "x$ac_cv_func_setsockopt" = xyes
14436 then :
14437
14438 else $as_nop
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
14440 printf %s "checking for setsockopt in -lsocket... " >&6; }
14441 if test ${ac_cv_lib_socket_setsockopt+y}
14442 then :
14443 printf %s "(cached) " >&6
14444 else $as_nop
14445 ac_check_lib_save_LIBS=$LIBS
14446 LIBS="-lsocket $LIBS"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14453 char setsockopt ();
14454 int
14455 main (void)
14456 {
14457 return setsockopt ();
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"
14463 then :
14464 ac_cv_lib_socket_setsockopt=yes
14465 else $as_nop
14466 ac_cv_lib_socket_setsockopt=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14471 fi
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
14473 printf "%s\n" "$ac_cv_lib_socket_setsockopt" >&6; }
14474 if test "x$ac_cv_lib_socket_setsockopt" = xyes
14475 then :
14476 NETLIBS="-lsocket $NETLIBS"
14477 fi
14478
14479 fi
14480
14481
14482
14483 if test "$have_w32_system" = yes; then
14484 # FIXME: Check why we need to use ws2_32 and document that.
14485 NETLIBS="-lws2_32 $NETLIBS"
14486 fi
14487
14488 #
14489 # Provide info for src/libassuan-config.in
14490 #
14491 LIBASSUAN_CONFIG_LIBS="-lassuan"
14492 LIBASSUAN_CONFIG_CFLAGS=""
14493 LIBASSUAN_CONFIG_HOST="$host"
14494
14495
14496
14497
14498
14499 #
14500 # Checks for header files.
14501 #
14502 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14503 if test "x$ac_cv_header_locale_h" = xyes
14504 then :
14505 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14506
14507 fi
14508 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
14509 if test "x$ac_cv_header_sys_uio_h" = xyes
14510 then :
14511 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
14512
14513 fi
14514 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14515 if test "x$ac_cv_header_stdint_h" = xyes
14516 then :
14517 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14518
14519 fi
14520 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14521 if test "x$ac_cv_header_inttypes_h" = xyes
14522 then :
14523 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14524
14525 fi
14526 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14527 if test "x$ac_cv_header_sys_types_h" = xyes
14528 then :
14529 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14530
14531 fi
14532 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14533 if test "x$ac_cv_header_sys_stat_h" = xyes
14534 then :
14535 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14536
14537 fi
14538 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14539 if test "x$ac_cv_header_unistd_h" = xyes
14540 then :
14541 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14542
14543 fi
14544 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14545 if test "x$ac_cv_header_sys_time_h" = xyes
14546 then :
14547 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14548
14549 fi
14550 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14551 if test "x$ac_cv_header_fcntl_h" = xyes
14552 then :
14553 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14554
14555 fi
14556 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_sys_select_h" = xyes
14558 then :
14559 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14560
14561 fi
14562 ac_fn_c_check_header_compile "$LINENO" "ucred.h" "ac_cv_header_ucred_h" "$ac_includes_default"
14563 if test "x$ac_cv_header_ucred_h" = xyes
14564 then :
14565 printf "%s\n" "#define HAVE_UCRED_H 1" >>confdefs.h
14566
14567 fi
14568 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
14569 if test "x$ac_cv_header_sys_ucred_h" = xyes
14570 then :
14571 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
14572
14573 fi
14574
14575
14576 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14577 if test "x$ac_cv_type_uintptr_t" = xyes
14578 then :
14579
14580 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
14581
14582 else $as_nop
14583 for ac_type in 'unsigned int' 'unsigned long int' \
14584 'unsigned long long int'; do
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 int
14589 main (void)
14590 {
14591 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14592 test_array [0] = 0;
14593 return test_array [0];
14594
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_compile "$LINENO"
14600 then :
14601
14602 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
14603
14604 ac_type=
14605 fi
14606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14607 test -z "$ac_type" && break
14608 done
14609 fi
14610
14611
14612 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14613 case $ac_cv_c_uint16_t in #(
14614 no|yes) ;; #(
14615 *)
14616
14617
14618 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14619 ;;
14620 esac
14621
14622
14623 #
14624 # Checks for typedefs, structures, and compiler characteristics.
14625 #
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14627 printf %s "checking for an ANSI C-conforming const... " >&6; }
14628 if test ${ac_cv_c_const+y}
14629 then :
14630 printf %s "(cached) " >&6
14631 else $as_nop
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634
14635 int
14636 main (void)
14637 {
14638
14639 #ifndef __cplusplus
14640 /* Ultrix mips cc rejects this sort of thing. */
14641 typedef int charset[2];
14642 const charset cs = { 0, 0 };
14643 /* SunOS 4.1.1 cc rejects this. */
14644 char const *const *pcpcc;
14645 char **ppc;
14646 /* NEC SVR4.0.2 mips cc rejects this. */
14647 struct point {int x, y;};
14648 static struct point const zero = {0,0};
14649 /* IBM XL C 1.02.0.0 rejects this.
14650 It does not let you subtract one const X* pointer from another in
14651 an arm of an if-expression whose if-part is not a constant
14652 expression */
14653 const char *g = "string";
14654 pcpcc = &g + (g ? g-g : 0);
14655 /* HPUX 7.0 cc rejects these. */
14656 ++pcpcc;
14657 ppc = (char**) pcpcc;
14658 pcpcc = (char const *const *) ppc;
14659 { /* SCO 3.2v4 cc rejects this sort of thing. */
14660 char tx;
14661 char *t = &tx;
14662 char const *s = 0 ? (char *) 0 : (char const *) 0;
14663
14664 *t++ = 0;
14665 if (s) return 0;
14666 }
14667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14668 int x[] = {25, 17};
14669 const int *foo = &x[0];
14670 ++foo;
14671 }
14672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14673 typedef const int *iptr;
14674 iptr p = 0;
14675 ++p;
14676 }
14677 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14679 struct s { int j; const int *ap[3]; } bx;
14680 struct s *b = &bx; b->j = 5;
14681 }
14682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14683 const int foo = 10;
14684 if (!foo) return 0;
14685 }
14686 return !cs[0] && !zero.x;
14687 #endif
14688
14689 ;
14690 return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"
14694 then :
14695 ac_cv_c_const=yes
14696 else $as_nop
14697 ac_cv_c_const=no
14698 fi
14699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14700 fi
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14702 printf "%s\n" "$ac_cv_c_const" >&6; }
14703 if test $ac_cv_c_const = no; then
14704
14705 printf "%s\n" "#define const /**/" >>confdefs.h
14706
14707 fi
14708
14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14710 printf %s "checking for inline... " >&6; }
14711 if test ${ac_cv_c_inline+y}
14712 then :
14713 printf %s "(cached) " >&6
14714 else $as_nop
14715 ac_cv_c_inline=no
14716 for ac_kw in inline __inline__ __inline; do
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 #ifndef __cplusplus
14720 typedef int foo_t;
14721 static $ac_kw foo_t static_foo (void) {return 0; }
14722 $ac_kw foo_t foo (void) {return 0; }
14723 #endif
14724
14725 _ACEOF
14726 if ac_fn_c_try_compile "$LINENO"
14727 then :
14728 ac_cv_c_inline=$ac_kw
14729 fi
14730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14731 test "$ac_cv_c_inline" != no && break
14732 done
14733
14734 fi
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14736 printf "%s\n" "$ac_cv_c_inline" >&6; }
14737
14738 case $ac_cv_c_inline in
14739 inline | yes) ;;
14740 *)
14741 case $ac_cv_c_inline in
14742 no) ac_val=;;
14743 *) ac_val=$ac_cv_c_inline;;
14744 esac
14745 cat >>confdefs.h <<_ACEOF
14746 #ifndef __cplusplus
14747 #define inline $ac_val
14748 #endif
14749 _ACEOF
14750 ;;
14751 esac
14752
14753 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14754 if test "x$ac_cv_type_size_t" = xyes
14755 then :
14756
14757 else $as_nop
14758
14759 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14760
14761 fi
14762
14763
14764
14765
14766 if test $ac_cv_header_sys_socket_h = no; then
14767 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14768 if test "x$ac_cv_header_ws2tcpip_h" = xyes
14769 then :
14770 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
14771
14772 fi
14773
14774 fi
14775
14776 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14777 /* <sys/types.h> is not needed according to POSIX, but the
14778 <sys/socket.h> in i386-unknown-freebsd4.10 and
14779 powerpc-apple-darwin5.5 required it. */
14780 #include <sys/types.h>
14781 #if HAVE_SYS_SOCKET_H
14782 # include <sys/socket.h>
14783 #elif HAVE_WS2TCPIP_H
14784 # include <ws2tcpip.h>
14785 #endif
14786
14787 "
14788 if test "x$ac_cv_type_socklen_t" = xyes
14789 then :
14790
14791 else $as_nop
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14793 printf %s "checking for socklen_t equivalent... " >&6; }
14794 if test ${gl_cv_socklen_t_equiv+y}
14795 then :
14796 printf %s "(cached) " >&6
14797 else $as_nop
14798 # Systems have either "struct sockaddr *" or
14799 # "void *" as the second argument to getpeername
14800 gl_cv_socklen_t_equiv=
14801 for arg2 in "struct sockaddr" void; do
14802 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <sys/types.h>
14806 #include <sys/socket.h>
14807
14808 int getpeername (int, $arg2 *, $t *);
14809 int
14810 main (void)
14811 {
14812 $t len;
14813 getpeername (0, 0, &len);
14814 ;
14815 return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_c_try_compile "$LINENO"
14819 then :
14820 gl_cv_socklen_t_equiv="$t"
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14823 test "$gl_cv_socklen_t_equiv" != "" && break
14824 done
14825 test "$gl_cv_socklen_t_equiv" != "" && break
14826 done
14827 if test "$gl_cv_socklen_t_equiv" = ""; then
14828 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14829 fi
14830
14831 fi
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14833 printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; }
14834
14835 printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h
14836
14837 fi
14838
14839
14840 # Windows has different method for "descriptor passing" (actually,
14841 # it's file handle passing), so, don't check the feature.
14842 check_descriptor_passing=yes
14843 case "${host}" in
14844 *-*-cygwin*)
14845 check_descriptor_passing=no
14846 ;;
14847 *-mingw32*)
14848 check_descriptor_passing=no
14849 ;;
14850 esac
14851
14852 if test $check_descriptor_passing != yes; then
14853 use_descriptor_passing=no
14854 else
14855 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
14856 #include <stdlib.h>
14857 #include <stddef.h>
14858 #include <stdio.h>
14859 #include <sys/types.h>
14860 #include <sys/socket.h>
14861 #include <sys/un.h>
14862 #if HAVE_SYS_UIO_H
14863 #include <sys/uio.h>
14864 #endif
14865 #include <unistd.h>
14866
14867 "
14868 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes
14869 then :
14870 use_descriptor_passing=yes
14871 else $as_nop
14872 use_descriptor_passing=no
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
14874 ***
14875 *** Data structure for sending ancillary data missing.
14876 *** Descriptor passing won't work.
14877 ***" >&5
14878 printf "%s\n" "$as_me: WARNING:
14879 ***
14880 *** Data structure for sending ancillary data missing.
14881 *** Descriptor passing won't work.
14882 ***" >&2;}
14883 fi
14884
14885 fi
14886 if test "$use_descriptor_passing" = "yes"; then
14887
14888 printf "%s\n" "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
14889
14890 fi
14891 if test "$use_descriptor_passing" = "yes"; then
14892 USE_DESCRIPTOR_PASSING_TRUE=
14893 USE_DESCRIPTOR_PASSING_FALSE='#'
14894 else
14895 USE_DESCRIPTOR_PASSING_TRUE='#'
14896 USE_DESCRIPTOR_PASSING_FALSE=
14897 fi
14898
14899
14900
14901 # Checking for libgpg-error.
14902 gpg_error_config_prefix=""
14903
14904 # Check whether --with-libgpg-error-prefix was given.
14905 if test ${with_libgpg_error_prefix+y}
14906 then :
14907 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
14908 fi
14909
14910
14911
14912 # Check whether --with-gpg-error-prefix was given.
14913 if test ${with_gpg_error_prefix+y}
14914 then :
14915 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
14916 fi
14917
14918
14919 if test x"${GPG_ERROR_CONFIG}" = x ; then
14920 if test x"${gpg_error_config_prefix}" != x ; then
14921 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
14922 else
14923 case "${SYSROOT}" in
14924 /*)
14925 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
14926 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
14927 fi
14928 ;;
14929 '')
14930 ;;
14931 *)
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
14933 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
14934 ;;
14935 esac
14936 fi
14937 fi
14938
14939 # Extract the first word of "gpg-error-config", so it can be a program name with args.
14940 set dummy gpg-error-config; ac_word=$2
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14942 printf %s "checking for $ac_word... " >&6; }
14943 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
14944 then :
14945 printf %s "(cached) " >&6
14946 else $as_nop
14947 case $GPG_ERROR_CONFIG in
14948 [\\/]* | ?:[\\/]*)
14949 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
14950 ;;
14951 *)
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $PATH
14954 do
14955 IFS=$as_save_IFS
14956 case $as_dir in #(((
14957 '') as_dir=./ ;;
14958 */) ;;
14959 *) as_dir=$as_dir/ ;;
14960 esac
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14963 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
14964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14965 break 2
14966 fi
14967 done
14968 done
14969 IFS=$as_save_IFS
14970
14971 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
14972 ;;
14973 esac
14974 fi
14975 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
14976 if test -n "$GPG_ERROR_CONFIG"; then
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
14978 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
14979 else
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 printf "%s\n" "no" >&6; }
14982 fi
14983
14984
14985
14986 # Extract the first word of "gpgrt-config", so it can be a program name with args.
14987 set dummy gpgrt-config; ac_word=$2
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14989 printf %s "checking for $ac_word... " >&6; }
14990 if test ${ac_cv_path_GPGRT_CONFIG+y}
14991 then :
14992 printf %s "(cached) " >&6
14993 else $as_nop
14994 case $GPGRT_CONFIG in
14995 [\\/]* | ?:[\\/]*)
14996 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
14997 ;;
14998 *)
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 as_dummy="$prefix/bin:$PATH"
15001 for as_dir in $as_dummy
15002 do
15003 IFS=$as_save_IFS
15004 case $as_dir in #(((
15005 '') as_dir=./ ;;
15006 */) ;;
15007 *) as_dir=$as_dir/ ;;
15008 esac
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15011 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15013 break 2
15014 fi
15015 done
15016 done
15017 IFS=$as_save_IFS
15018
15019 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
15020 ;;
15021 esac
15022 fi
15023 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
15024 if test -n "$GPGRT_CONFIG"; then
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
15026 printf "%s\n" "$GPGRT_CONFIG" >&6; }
15027 else
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15030 fi
15031
15032
15033 if test "$GPGRT_CONFIG" != "no"; then
15034 # Determine gpgrt_libdir
15035 #
15036 # Get the prefix of gpgrt-config assuming it's something like:
15037 # <PREFIX>/bin/gpgrt-config
15038 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
15039 possible_libdir1=${gpgrt_prefix}/lib
15040 # Determine by using system libdir-format with CC, it's like:
15041 # Normal style: /usr/lib
15042 # GNU cross style: /usr/<triplet>/lib
15043 # Debian style: /usr/lib/<multiarch-name>
15044 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
15045 # It is assumed that CC is specified to the one of host on cross build.
15046 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
15047 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
15048 /g;p;}"); then
15049 # From the output of -print-search-dirs, select valid pkgconfig dirs.
15050 libdir_candidates=$(for dir in $libdir_candidates; do
15051 if p=$(cd $dir 2>/dev/null && pwd); then
15052 test -d "$p/pkgconfig" && echo $p;
15053 fi
15054 done)
15055
15056 for possible_libdir0 in $libdir_candidates; do
15057 # possible_libdir0:
15058 # Fallback candidate, the one of system-installed (by $CC)
15059 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
15060 # possible_libdir1:
15061 # Another candidate, user-locally-installed
15062 # (<gpgrt_prefix>/lib)
15063 # possible_libdir2
15064 # Most preferred
15065 # (<gpgrt_prefix>/<triplet>/lib,
15066 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
15067 if test "${possible_libdir0##*/}" = "lib"; then
15068 possible_prefix0=${possible_libdir0%/lib}
15069 possible_prefix0_triplet=${possible_prefix0##*/}
15070 if test -z "$possible_prefix0_triplet"; then
15071 continue
15072 fi
15073 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
15074 else
15075 possible_prefix0=${possible_libdir0%%/lib*}
15076 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
15077 fi
15078 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
15079 gpgrt_libdir=${possible_libdir2}
15080 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
15081 gpgrt_libdir=${possible_libdir1}
15082 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
15083 gpgrt_libdir=${possible_libdir0}
15084 fi
15085 if test -n "$gpgrt_libdir"; then break; fi
15086 done
15087 fi
15088 if test -z "$gpgrt_libdir"; then
15089 # No valid pkgconfig dir in any of the system directories, fallback
15090 gpgrt_libdir=${possible_libdir1}
15091 fi
15092 else
15093 unset GPGRT_CONFIG
15094 fi
15095
15096 if test -n "$gpgrt_libdir"; then
15097 # Add the --libdir option to GPGRT_CONFIG
15098 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
15099 # Make sure if gpgrt-config really works, by testing config gpg-error
15100 if ! $GPGRT_CONFIG gpg-error --exists; then
15101 # If it doesn't work, clear the GPGRT_CONFIG variable.
15102 unset GPGRT_CONFIG
15103 fi
15104 else
15105 # GPGRT_CONFIG found but no suitable dir for --libdir found.
15106 # This is a failure. Clear the GPGRT_CONFIG variable.
15107 unset GPGRT_CONFIG
15108 fi
15109
15110 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
15111 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
15113 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
15114 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
15115 elif test x"$GPG_ERROR_CONFIG" != x -a "$GPG_ERROR_CONFIG" != "no"; then
15116 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15117 else
15118 gpg_error_config_version="0.0"
15119 fi
15120
15121 min_gpg_error_version=1.17
15122 ok=no
15123 if test "$GPG_ERROR_CONFIG" != "no"; then
15124 req_major=`echo $min_gpg_error_version | \
15125 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
15126 req_minor=`echo $min_gpg_error_version | \
15127 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
15128 major=`echo $gpg_error_config_version | \
15129 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
15130 minor=`echo $gpg_error_config_version | \
15131 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
15132 if test "$major" -gt "$req_major"; then
15133 ok=yes
15134 else
15135 if test "$major" -eq "$req_major"; then
15136 if test "$minor" -ge "$req_minor"; then
15137 ok=yes
15138 fi
15139 fi
15140 fi
15141 fi
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
15143 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
15144 if test $ok = yes; then
15145 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
15146 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
15147 if test -z "$GPGRT_CONFIG"; then
15148 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
15149 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
15150 else
15151 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
15152 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
15153 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
15154 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
15155 fi
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
15157 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
15158 :
15159 if test -z "$GPGRT_CONFIG"; then
15160 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
15161 else
15162 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
15163 fi
15164 if test x"$gpg_error_config_host" != xnone ; then
15165 if test x"$gpg_error_config_host" != x"$host" ; then
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15167 ***
15168 *** The config script \"$GPG_ERROR_CONFIG\" was
15169 *** built for $gpg_error_config_host and thus may not match the
15170 *** used host $host.
15171 *** You may want to use the configure option --with-libgpg-error-prefix
15172 *** to specify a matching config script or use \$SYSROOT.
15173 ***" >&5
15174 printf "%s\n" "$as_me: WARNING:
15175 ***
15176 *** The config script \"$GPG_ERROR_CONFIG\" was
15177 *** built for $gpg_error_config_host and thus may not match the
15178 *** used host $host.
15179 *** You may want to use the configure option --with-libgpg-error-prefix
15180 *** to specify a matching config script or use \$SYSROOT.
15181 ***" >&2;}
15182 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
15183 fi
15184 fi
15185 else
15186 GPG_ERROR_CFLAGS=""
15187 GPG_ERROR_LIBS=""
15188 GPG_ERROR_MT_CFLAGS=""
15189 GPG_ERROR_MT_LIBS=""
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191 printf "%s\n" "no" >&6; }
15192 as_fn_error $? "libgpg-error was not found" "$LINENO" 5
15193 fi
15194
15195
15196
15197
15198
15199 if test -n "$GPGRT_CONFIG" \
15200 -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
15201 USE_GPGRT_CONFIG_TRUE=
15202 USE_GPGRT_CONFIG_FALSE='#'
15203 else
15204 USE_GPGRT_CONFIG_TRUE='#'
15205 USE_GPGRT_CONFIG_FALSE=
15206 fi
15207
15208
15209 #
15210 # Checks for library functions.
15211 #
15212 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
15213 if test "x$ac_cv_func_flockfile" = xyes
15214 then :
15215 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
15216
15217 fi
15218 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
15219 if test "x$ac_cv_func_funlockfile" = xyes
15220 then :
15221 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
15222
15223 fi
15224 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15225 if test "x$ac_cv_func_inet_pton" = xyes
15226 then :
15227 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
15228
15229 fi
15230 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
15231 if test "x$ac_cv_func_stat" = xyes
15232 then :
15233 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
15234
15235 fi
15236 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15237 if test "x$ac_cv_func_getaddrinfo" = xyes
15238 then :
15239 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15240
15241 fi
15242 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
15243 if test "x$ac_cv_func_getrlimit" = xyes
15244 then :
15245 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
15246
15247 fi
15248
15249
15250 # If we didn't find inet_pton, it might be in -lsocket (which might
15251 # require -lnsl)
15252 if test X"$ac_cv_func_inet_pton" != X"yes" ; then
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15254 printf %s "checking for library containing inet_pton... " >&6; }
15255 if test ${ac_cv_search_inet_pton+y}
15256 then :
15257 printf %s "(cached) " >&6
15258 else $as_nop
15259 ac_func_search_save_LIBS=$LIBS
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15266 char inet_pton ();
15267 int
15268 main (void)
15269 {
15270 return inet_pton ();
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 for ac_lib in '' socket
15276 do
15277 if test -z "$ac_lib"; then
15278 ac_res="none required"
15279 else
15280 ac_res=-l$ac_lib
15281 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
15282 fi
15283 if ac_fn_c_try_link "$LINENO"
15284 then :
15285 ac_cv_search_inet_pton=$ac_res
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15288 conftest$ac_exeext
15289 if test ${ac_cv_search_inet_pton+y}
15290 then :
15291 break
15292 fi
15293 done
15294 if test ${ac_cv_search_inet_pton+y}
15295 then :
15296
15297 else $as_nop
15298 ac_cv_search_inet_pton=no
15299 fi
15300 rm conftest.$ac_ext
15301 LIBS=$ac_func_search_save_LIBS
15302 fi
15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15304 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
15305 ac_res=$ac_cv_search_inet_pton
15306 if test "$ac_res" != no
15307 then :
15308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15309
15310 fi
15311
15312 if test X"$ac_cv_search_inet_pton" != X"no" ; then
15313
15314 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
15315
15316 fi
15317 fi
15318
15319
15320 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
15321 # Given that we use nanosleep only as an optimization over a select
15322 # based wait function we want it only if it is available in libc.
15323 _save_libs="$LIBS"
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
15325 printf %s "checking for library containing nanosleep... " >&6; }
15326 if test ${ac_cv_search_nanosleep+y}
15327 then :
15328 printf %s "(cached) " >&6
15329 else $as_nop
15330 ac_func_search_save_LIBS=$LIBS
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333
15334 /* Override any GCC internal prototype to avoid an error.
15335 Use char because int might match the return type of a GCC
15336 builtin and then its argument prototype would still apply. */
15337 char nanosleep ();
15338 int
15339 main (void)
15340 {
15341 return nanosleep ();
15342 ;
15343 return 0;
15344 }
15345 _ACEOF
15346 for ac_lib in ''
15347 do
15348 if test -z "$ac_lib"; then
15349 ac_res="none required"
15350 else
15351 ac_res=-l$ac_lib
15352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15353 fi
15354 if ac_fn_c_try_link "$LINENO"
15355 then :
15356 ac_cv_search_nanosleep=$ac_res
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359 conftest$ac_exeext
15360 if test ${ac_cv_search_nanosleep+y}
15361 then :
15362 break
15363 fi
15364 done
15365 if test ${ac_cv_search_nanosleep+y}
15366 then :
15367
15368 else $as_nop
15369 ac_cv_search_nanosleep=no
15370 fi
15371 rm conftest.$ac_ext
15372 LIBS=$ac_func_search_save_LIBS
15373 fi
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15375 printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
15376 ac_res=$ac_cv_search_nanosleep
15377 if test "$ac_res" != no
15378 then :
15379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15380
15381 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
15382
15383 fi
15384
15385 LIBS="$_save_libs"
15386
15387
15388 # Check for funopen
15389 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
15390 if test "x$ac_cv_func_funopen" = xyes
15391 then :
15392 printf "%s\n" "#define HAVE_FUNOPEN 1" >>confdefs.h
15393
15394 fi
15395
15396 if test $ac_cv_func_funopen != yes; then
15397 # No funopen but we can implement that in terms of fopencookie.
15398 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
15399 if test "x$ac_cv_func_fopencookie" = xyes
15400 then :
15401 printf "%s\n" "#define HAVE_FOPENCOOKIE 1" >>confdefs.h
15402
15403 fi
15404
15405 if test $ac_cv_func_fopencookie = yes; then
15406 case " $LIBOBJS " in
15407 *" funopen.$ac_objext "* ) ;;
15408 *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
15409 ;;
15410 esac
15411
15412 else
15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15414 ***
15415 *** No implementation of fopencookie or funopen available.
15416 *** The assuan_get_data_fp function won't work; see the
15417 *** manual for details. GnuPG does not require this feature.
15418 ***" >&5
15419 printf "%s\n" "$as_me: WARNING:
15420 ***
15421 *** No implementation of fopencookie or funopen available.
15422 *** The assuan_get_data_fp function won't work; see the
15423 *** manual for details. GnuPG does not require this feature.
15424 ***" >&2;}
15425 fi
15426 fi
15427
15428
15429 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
15430 if test "x$ac_cv_func_isascii" = xyes
15431 then :
15432 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
15433
15434 else $as_nop
15435 case " $LIBOBJS " in
15436 *" isascii.$ac_objext "* ) ;;
15437 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
15438 ;;
15439 esac
15440
15441 fi
15442
15443 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
15444 if test "x$ac_cv_func_memrchr" = xyes
15445 then :
15446 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
15447
15448 else $as_nop
15449 case " $LIBOBJS " in
15450 *" memrchr.$ac_objext "* ) ;;
15451 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
15452 ;;
15453 esac
15454
15455 fi
15456
15457 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
15458 if test "x$ac_cv_func_stpcpy" = xyes
15459 then :
15460 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
15461
15462 else $as_nop
15463 case " $LIBOBJS " in
15464 *" stpcpy.$ac_objext "* ) ;;
15465 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
15466 ;;
15467 esac
15468
15469 fi
15470
15471 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15472 if test "x$ac_cv_header_unistd_h" = xyes
15473 then :
15474 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15475
15476 fi
15477
15478 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15479 if test "x$ac_cv_func_setenv" = xyes
15480 then :
15481 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15482
15483 else $as_nop
15484 case " $LIBOBJS " in
15485 *" setenv.$ac_objext "* ) ;;
15486 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
15487 ;;
15488 esac
15489
15490 fi
15491
15492
15493
15494 #
15495 # Check for the getsockopt SO_PEERCRED, etc.
15496 #
15497 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15498 #include <sys/socket.h>
15499 "
15500 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes
15501 then :
15502
15503 printf "%s\n" "#define HAVE_STRUCT_SOCKPEERCRED_PID 1" >>confdefs.h
15504
15505 fi
15506
15507
15508 # (Open)Solaris
15509 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15510 if test "x$ac_cv_func_getpeerucred" = xyes
15511 then :
15512 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
15513
15514 fi
15515
15516
15517 # FreeBSD
15518 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15519 if test "x$ac_cv_func_getpeereid" = xyes
15520 then :
15521 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
15522
15523 fi
15524
15525 ac_fn_c_check_member "$LINENO" "struct xucred" "cr_pid" "ac_cv_member_struct_xucred_cr_pid" "#include <sys/ucred.h>
15526 #include <sys/ucred.h>
15527 "
15528 if test "x$ac_cv_member_struct_xucred_cr_pid" = xyes
15529 then :
15530
15531 printf "%s\n" "#define HAVE_XUCRED_CR_PID 1" >>confdefs.h
15532
15533 fi
15534
15535
15536
15537 #
15538 # Extra features
15539 #
15540 build_doc=yes
15541 # Check whether --enable-doc was given.
15542 if test ${enable_doc+y}
15543 then :
15544 enableval=$enable_doc; build_doc=$enableval
15545 else $as_nop
15546 build_doc=yes
15547 fi
15548
15549 if test "x$build_doc" != xno; then
15550 BUILD_DOC_TRUE=
15551 BUILD_DOC_FALSE='#'
15552 else
15553 BUILD_DOC_TRUE='#'
15554 BUILD_DOC_FALSE=
15555 fi
15556
15557
15558
15559 #
15560 # Create the config files.
15561 #
15562 ac_config_files="$ac_config_files Makefile"
15563
15564 ac_config_files="$ac_config_files m4/Makefile"
15565
15566 ac_config_files="$ac_config_files src/Makefile"
15567
15568 ac_config_files="$ac_config_files doc/Makefile"
15569
15570 ac_config_files="$ac_config_files tests/Makefile"
15571
15572 ac_config_files="$ac_config_files src/libassuan-config"
15573
15574 ac_config_files="$ac_config_files src/versioninfo.rc"
15575
15576 ac_config_files="$ac_config_files src/libassuan.pc"
15577
15578
15579 cat >confcache <<\_ACEOF
15580 # This file is a shell script that caches the results of configure
15581 # tests run on this system so they can be shared between configure
15582 # scripts and configure runs, see configure's option --config-cache.
15583 # It is not useful on other systems. If it contains results you don't
15584 # want to keep, you may remove or edit it.
15585 #
15586 # config.status only pays attention to the cache file if you give it
15587 # the --recheck option to rerun configure.
15588 #
15589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15591 # following values.
15592
15593 _ACEOF
15594
15595 # The following way of writing the cache mishandles newlines in values,
15596 # but we know of no workaround that is simple, portable, and efficient.
15597 # So, we kill variables containing newlines.
15598 # Ultrix sh set writes to stderr and can't be redirected directly,
15599 # and sets the high bit in the cache file unless we assign to the vars.
15600 (
15601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15602 eval ac_val=\$$ac_var
15603 case $ac_val in #(
15604 *${as_nl}*)
15605 case $ac_var in #(
15606 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15607 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15608 esac
15609 case $ac_var in #(
15610 _ | IFS | as_nl) ;; #(
15611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15612 *) { eval $ac_var=; unset $ac_var;} ;;
15613 esac ;;
15614 esac
15615 done
15616
15617 (set) 2>&1 |
15618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15619 *${as_nl}ac_space=\ *)
15620 # `set' does not quote correctly, so add quotes: double-quote
15621 # substitution turns \\\\ into \\, and sed turns \\ into \.
15622 sed -n \
15623 "s/'/'\\\\''/g;
15624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15625 ;; #(
15626 *)
15627 # `set' quotes correctly as required by POSIX, so do not add quotes.
15628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15629 ;;
15630 esac |
15631 sort
15632 ) |
15633 sed '
15634 /^ac_cv_env_/b end
15635 t clear
15636 :clear
15637 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15638 t end
15639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15640 :end' >>confcache
15641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15642 if test -w "$cache_file"; then
15643 if test "x$cache_file" != "x/dev/null"; then
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15645 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15646 if test ! -f "$cache_file" || test -h "$cache_file"; then
15647 cat confcache >"$cache_file"
15648 else
15649 case $cache_file in #(
15650 */* | ?:*)
15651 mv -f confcache "$cache_file"$$ &&
15652 mv -f "$cache_file"$$ "$cache_file" ;; #(
15653 *)
15654 mv -f confcache "$cache_file" ;;
15655 esac
15656 fi
15657 fi
15658 else
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15660 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15661 fi
15662 fi
15663 rm -f confcache
15664
15665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15666 # Let make expand exec_prefix.
15667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15668
15669 DEFS=-DHAVE_CONFIG_H
15670
15671 ac_libobjs=
15672 ac_ltlibobjs=
15673 U=
15674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15675 # 1. Remove the extension, and $U if already installed.
15676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15677 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15679 # will be set to the directory where LIBOBJS objects are built.
15680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15682 done
15683 LIBOBJS=$ac_libobjs
15684
15685 LTLIBOBJS=$ac_ltlibobjs
15686
15687
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15689 printf %s "checking that generated files are newer than configure... " >&6; }
15690 if test -n "$am_sleep_pid"; then
15691 # Hide warnings about reused PIDs.
15692 wait $am_sleep_pid 2>/dev/null
15693 fi
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15695 printf "%s\n" "done" >&6; }
15696 if test -n "$EXEEXT"; then
15697 am__EXEEXT_TRUE=
15698 am__EXEEXT_FALSE='#'
15699 else
15700 am__EXEEXT_TRUE='#'
15701 am__EXEEXT_FALSE=
15702 fi
15703
15704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15705 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 fi
15708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15709 as_fn_error $? "conditional \"AMDEP\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 fi
15712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 fi
15716 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15717 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 fi
15720 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15721 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 fi
15724 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15725 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 fi
15728 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
15729 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 fi
15732 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
15733 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 fi
15736 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
15737 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 fi
15740 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
15741 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 fi
15744
15745 : "${CONFIG_STATUS=./config.status}"
15746 ac_write_fail=0
15747 ac_clean_files_save=$ac_clean_files
15748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15750 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15751 as_write_fail=0
15752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15753 #! $SHELL
15754 # Generated by $as_me.
15755 # Run this file to recreate the current configuration.
15756 # Compiler output produced by configure, useful for debugging
15757 # configure, is in config.log if it exists.
15758
15759 debug=false
15760 ac_cs_recheck=false
15761 ac_cs_silent=false
15762
15763 SHELL=\${CONFIG_SHELL-$SHELL}
15764 export SHELL
15765 _ASEOF
15766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15767 ## -------------------- ##
15768 ## M4sh Initialization. ##
15769 ## -------------------- ##
15770
15771 # Be more Bourne compatible
15772 DUALCASE=1; export DUALCASE # for MKS sh
15773 as_nop=:
15774 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15775 then :
15776 emulate sh
15777 NULLCMD=:
15778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15779 # is contrary to our usage. Disable this feature.
15780 alias -g '${1+"$@"}'='"$@"'
15781 setopt NO_GLOB_SUBST
15782 else $as_nop
15783 case `(set -o) 2>/dev/null` in #(
15784 *posix*) :
15785 set -o posix ;; #(
15786 *) :
15787 ;;
15788 esac
15789 fi
15790
15791
15792
15793 # Reset variables that may have inherited troublesome values from
15794 # the environment.
15795
15796 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15797 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15798 # side effect of setting IFS to empty, thus disabling word splitting.)
15799 # Quoting is to prevent editors from complaining about space-tab.
15800 as_nl='
15801 '
15802 export as_nl
15803 IFS=" "" $as_nl"
15804
15805 PS1='$ '
15806 PS2='> '
15807 PS4='+ '
15808
15809 # Ensure predictable behavior from utilities with locale-dependent output.
15810 LC_ALL=C
15811 export LC_ALL
15812 LANGUAGE=C
15813 export LANGUAGE
15814
15815 # We cannot yet rely on "unset" to work, but we need these variables
15816 # to be unset--not just set to an empty or harmless value--now, to
15817 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15818 # also avoids known problems related to "unset" and subshell syntax
15819 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15820 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15821 do eval test \${$as_var+y} \
15822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15823 done
15824
15825 # Ensure that fds 0, 1, and 2 are open.
15826 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15827 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15828 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15829
15830 # The user is always right.
15831 if ${PATH_SEPARATOR+false} :; then
15832 PATH_SEPARATOR=:
15833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15835 PATH_SEPARATOR=';'
15836 }
15837 fi
15838
15839
15840 # Find who we are. Look in the path if we contain no directory separator.
15841 as_myself=
15842 case $0 in #((
15843 *[\\/]* ) as_myself=$0 ;;
15844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15846 do
15847 IFS=$as_save_IFS
15848 case $as_dir in #(((
15849 '') as_dir=./ ;;
15850 */) ;;
15851 *) as_dir=$as_dir/ ;;
15852 esac
15853 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15854 done
15855 IFS=$as_save_IFS
15856
15857 ;;
15858 esac
15859 # We did not find ourselves, most probably we were run as `sh COMMAND'
15860 # in which case we are not to be found in the path.
15861 if test "x$as_myself" = x; then
15862 as_myself=$0
15863 fi
15864 if test ! -f "$as_myself"; then
15865 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15866 exit 1
15867 fi
15868
15869
15870
15871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15872 # ----------------------------------------
15873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15875 # script with STATUS, using 1 if that was 0.
15876 as_fn_error ()
15877 {
15878 as_status=$1; test $as_status -eq 0 && as_status=1
15879 if test "$4"; then
15880 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15882 fi
15883 printf "%s\n" "$as_me: error: $2" >&2
15884 as_fn_exit $as_status
15885 } # as_fn_error
15886
15887
15888
15889 # as_fn_set_status STATUS
15890 # -----------------------
15891 # Set $? to STATUS, without forking.
15892 as_fn_set_status ()
15893 {
15894 return $1
15895 } # as_fn_set_status
15896
15897 # as_fn_exit STATUS
15898 # -----------------
15899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15900 as_fn_exit ()
15901 {
15902 set +e
15903 as_fn_set_status $1
15904 exit $1
15905 } # as_fn_exit
15906
15907 # as_fn_unset VAR
15908 # ---------------
15909 # Portably unset VAR.
15910 as_fn_unset ()
15911 {
15912 { eval $1=; unset $1;}
15913 }
15914 as_unset=as_fn_unset
15915
15916 # as_fn_append VAR VALUE
15917 # ----------------------
15918 # Append the text in VALUE to the end of the definition contained in VAR. Take
15919 # advantage of any shell optimizations that allow amortized linear growth over
15920 # repeated appends, instead of the typical quadratic growth present in naive
15921 # implementations.
15922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15923 then :
15924 eval 'as_fn_append ()
15925 {
15926 eval $1+=\$2
15927 }'
15928 else $as_nop
15929 as_fn_append ()
15930 {
15931 eval $1=\$$1\$2
15932 }
15933 fi # as_fn_append
15934
15935 # as_fn_arith ARG...
15936 # ------------------
15937 # Perform arithmetic evaluation on the ARGs, and store the result in the
15938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15939 # must be portable across $(()) and expr.
15940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15941 then :
15942 eval 'as_fn_arith ()
15943 {
15944 as_val=$(( $* ))
15945 }'
15946 else $as_nop
15947 as_fn_arith ()
15948 {
15949 as_val=`expr "$@" || test $? -eq 1`
15950 }
15951 fi # as_fn_arith
15952
15953
15954 if expr a : '\(a\)' >/dev/null 2>&1 &&
15955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15956 as_expr=expr
15957 else
15958 as_expr=false
15959 fi
15960
15961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15962 as_basename=basename
15963 else
15964 as_basename=false
15965 fi
15966
15967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15968 as_dirname=dirname
15969 else
15970 as_dirname=false
15971 fi
15972
15973 as_me=`$as_basename -- "$0" ||
15974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15975 X"$0" : 'X\(//\)$' \| \
15976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15977 printf "%s\n" X/"$0" |
15978 sed '/^.*\/\([^/][^/]*\)\/*$/{
15979 s//\1/
15980 q
15981 }
15982 /^X\/\(\/\/\)$/{
15983 s//\1/
15984 q
15985 }
15986 /^X\/\(\/\).*/{
15987 s//\1/
15988 q
15989 }
15990 s/.*/./; q'`
15991
15992 # Avoid depending upon Character Ranges.
15993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15996 as_cr_digits='0123456789'
15997 as_cr_alnum=$as_cr_Letters$as_cr_digits
15998
15999
16000 # Determine whether it's possible to make 'echo' print without a newline.
16001 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16002 # for compatibility with existing Makefiles.
16003 ECHO_C= ECHO_N= ECHO_T=
16004 case `echo -n x` in #(((((
16005 -n*)
16006 case `echo 'xy\c'` in
16007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16008 xy) ECHO_C='\c';;
16009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16010 ECHO_T=' ';;
16011 esac;;
16012 *)
16013 ECHO_N='-n';;
16014 esac
16015
16016 # For backward compatibility with old third-party macros, we provide
16017 # the shell variables $as_echo and $as_echo_n. New code should use
16018 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16019 as_echo='printf %s\n'
16020 as_echo_n='printf %s'
16021
16022 rm -f conf$$ conf$$.exe conf$$.file
16023 if test -d conf$$.dir; then
16024 rm -f conf$$.dir/conf$$.file
16025 else
16026 rm -f conf$$.dir
16027 mkdir conf$$.dir 2>/dev/null
16028 fi
16029 if (echo >conf$$.file) 2>/dev/null; then
16030 if ln -s conf$$.file conf$$ 2>/dev/null; then
16031 as_ln_s='ln -s'
16032 # ... but there are two gotchas:
16033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16035 # In both cases, we have to default to `cp -pR'.
16036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16037 as_ln_s='cp -pR'
16038 elif ln conf$$.file conf$$ 2>/dev/null; then
16039 as_ln_s=ln
16040 else
16041 as_ln_s='cp -pR'
16042 fi
16043 else
16044 as_ln_s='cp -pR'
16045 fi
16046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16047 rmdir conf$$.dir 2>/dev/null
16048
16049
16050 # as_fn_mkdir_p
16051 # -------------
16052 # Create "$as_dir" as a directory, including parents if necessary.
16053 as_fn_mkdir_p ()
16054 {
16055
16056 case $as_dir in #(
16057 -*) as_dir=./$as_dir;;
16058 esac
16059 test -d "$as_dir" || eval $as_mkdir_p || {
16060 as_dirs=
16061 while :; do
16062 case $as_dir in #(
16063 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16064 *) as_qdir=$as_dir;;
16065 esac
16066 as_dirs="'$as_qdir' $as_dirs"
16067 as_dir=`$as_dirname -- "$as_dir" ||
16068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069 X"$as_dir" : 'X\(//\)[^/]' \| \
16070 X"$as_dir" : 'X\(//\)$' \| \
16071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16072 printf "%s\n" X"$as_dir" |
16073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\/\)[^/].*/{
16078 s//\1/
16079 q
16080 }
16081 /^X\(\/\/\)$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\).*/{
16086 s//\1/
16087 q
16088 }
16089 s/.*/./; q'`
16090 test -d "$as_dir" && break
16091 done
16092 test -z "$as_dirs" || eval "mkdir $as_dirs"
16093 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16094
16095
16096 } # as_fn_mkdir_p
16097 if mkdir -p . 2>/dev/null; then
16098 as_mkdir_p='mkdir -p "$as_dir"'
16099 else
16100 test -d ./-p && rmdir ./-p
16101 as_mkdir_p=false
16102 fi
16103
16104
16105 # as_fn_executable_p FILE
16106 # -----------------------
16107 # Test if FILE is an executable regular file.
16108 as_fn_executable_p ()
16109 {
16110 test -f "$1" && test -x "$1"
16111 } # as_fn_executable_p
16112 as_test_x='test -x'
16113 as_executable_p=as_fn_executable_p
16114
16115 # Sed expression to map a string onto a valid CPP name.
16116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16117
16118 # Sed expression to map a string onto a valid variable name.
16119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16120
16121
16122 exec 6>&1
16123 ## ----------------------------------- ##
16124 ## Main body of $CONFIG_STATUS script. ##
16125 ## ----------------------------------- ##
16126 _ASEOF
16127 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16128
16129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16130 # Save the log message, to keep $0 and so on meaningful, and to
16131 # report actual input values of CONFIG_FILES etc. instead of their
16132 # values after options handling.
16133 ac_log="
16134 This file was extended by libassuan $as_me 3.0.2, which was
16135 generated by GNU Autoconf 2.71. Invocation command line was
16136
16137 CONFIG_FILES = $CONFIG_FILES
16138 CONFIG_HEADERS = $CONFIG_HEADERS
16139 CONFIG_LINKS = $CONFIG_LINKS
16140 CONFIG_COMMANDS = $CONFIG_COMMANDS
16141 $ $0 $@
16142
16143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16144 "
16145
16146 _ACEOF
16147
16148 case $ac_config_files in *"
16149 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16150 esac
16151
16152 case $ac_config_headers in *"
16153 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16154 esac
16155
16156
16157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 # Files that config.status was made for.
16159 config_files="$ac_config_files"
16160 config_headers="$ac_config_headers"
16161 config_commands="$ac_config_commands"
16162
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 ac_cs_usage="\
16167 \`$as_me' instantiates files and other configuration actions
16168 from templates according to the current configuration. Unless the files
16169 and actions are specified as TAGs, all are instantiated by default.
16170
16171 Usage: $0 [OPTION]... [TAG]...
16172
16173 -h, --help print this help, then exit
16174 -V, --version print version number and configuration settings, then exit
16175 --config print configuration, then exit
16176 -q, --quiet, --silent
16177 do not print progress messages
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
16184
16185 Configuration files:
16186 $config_files
16187
16188 Configuration headers:
16189 $config_headers
16190
16191 Configuration commands:
16192 $config_commands
16193
16194 Report bugs to <https://bugs.gnupg.org>."
16195
16196 _ACEOF
16197 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16198 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 ac_cs_config='$ac_cs_config_escaped'
16201 ac_cs_version="\\
16202 libassuan config.status 3.0.2
16203 configured by $0, generated by GNU Autoconf 2.71,
16204 with options \\"\$ac_cs_config\\"
16205
16206 Copyright (C) 2021 Free Software Foundation, Inc.
16207 This config.status script is free software; the Free Software Foundation
16208 gives unlimited permission to copy, distribute and modify it."
16209
16210 ac_pwd='$ac_pwd'
16211 srcdir='$srcdir'
16212 INSTALL='$INSTALL'
16213 MKDIR_P='$MKDIR_P'
16214 AWK='$AWK'
16215 test -n "\$AWK" || AWK=awk
16216 _ACEOF
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 # The default lists apply if the user does not specify any file.
16220 ac_need_defaults=:
16221 while test $# != 0
16222 do
16223 case $1 in
16224 --*=?*)
16225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16227 ac_shift=:
16228 ;;
16229 --*=)
16230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16231 ac_optarg=
16232 ac_shift=:
16233 ;;
16234 *)
16235 ac_option=$1
16236 ac_optarg=$2
16237 ac_shift=shift
16238 ;;
16239 esac
16240
16241 case $ac_option in
16242 # Handling of the options.
16243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16244 ac_cs_recheck=: ;;
16245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16246 printf "%s\n" "$ac_cs_version"; exit ;;
16247 --config | --confi | --conf | --con | --co | --c )
16248 printf "%s\n" "$ac_cs_config"; exit ;;
16249 --debug | --debu | --deb | --de | --d | -d )
16250 debug=: ;;
16251 --file | --fil | --fi | --f )
16252 $ac_shift
16253 case $ac_optarg in
16254 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16255 '') as_fn_error $? "missing file argument" ;;
16256 esac
16257 as_fn_append CONFIG_FILES " '$ac_optarg'"
16258 ac_need_defaults=false;;
16259 --header | --heade | --head | --hea )
16260 $ac_shift
16261 case $ac_optarg in
16262 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16263 esac
16264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16265 ac_need_defaults=false;;
16266 --he | --h)
16267 # Conflict between --help and --header
16268 as_fn_error $? "ambiguous option: \`$1'
16269 Try \`$0 --help' for more information.";;
16270 --help | --hel | -h )
16271 printf "%s\n" "$ac_cs_usage"; exit ;;
16272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16274 ac_cs_silent=: ;;
16275
16276 # This is an error.
16277 -*) as_fn_error $? "unrecognized option: \`$1'
16278 Try \`$0 --help' for more information." ;;
16279
16280 *) as_fn_append ac_config_targets " $1"
16281 ac_need_defaults=false ;;
16282
16283 esac
16284 shift
16285 done
16286
16287 ac_configure_extra_args=
16288
16289 if $ac_cs_silent; then
16290 exec 6>/dev/null
16291 ac_configure_extra_args="$ac_configure_extra_args --silent"
16292 fi
16293
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 if \$ac_cs_recheck; then
16297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16298 shift
16299 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16300 CONFIG_SHELL='$SHELL'
16301 export CONFIG_SHELL
16302 exec "\$@"
16303 fi
16304
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307 exec 5>>config.log
16308 {
16309 echo
16310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16311 ## Running $as_me. ##
16312 _ASBOX
16313 printf "%s\n" "$ac_log"
16314 } >&5
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 #
16319 # INIT-COMMANDS
16320 #
16321 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16322
16323
16324 # The HP-UX ksh and POSIX shell print the target directory to stdout
16325 # if CDPATH is set.
16326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16327
16328 sed_quote_subst='$sed_quote_subst'
16329 double_quote_subst='$double_quote_subst'
16330 delay_variable_subst='$delay_variable_subst'
16331 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16332 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16333 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16334 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16335 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16336 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16337 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16338 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16339 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16340 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16341 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16342 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16343 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16344 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16345 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16346 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16347 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16348 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16349 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16350 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16351 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16352 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16353 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16354 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16355 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16356 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16357 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16358 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16359 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16360 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16361 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16362 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16363 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16365 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16366 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16367 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16368 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16369 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16370 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16371 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16372 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16373 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16374 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16375 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16376 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16377 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16380 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16381 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16382 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16383 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16384 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16386 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16387 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16388 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"`'
16389 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16390 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16391 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16392 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16393 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16394 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16395 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16397 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16398 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16399 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16400 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16401 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16402 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16403 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16404 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16405 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16406 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16407 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16408 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16409 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16410 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16411 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16412 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16413 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16414 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16415 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16416 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16417 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16418 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16419 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16420 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16421 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16422 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16423 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16424 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16425 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16426 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16427 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16428 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16429 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16430 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16431 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16432 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16433 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16434 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16435 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16436 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16437 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16438 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16439 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16440 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16441 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16442 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16443 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16444 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16445 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16446 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16447 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16448 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16449 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16450 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16451 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16452 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16453 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16454 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16455 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16456 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16457 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16458 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16459 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16460 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16461 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16462 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16463 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16464 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16465 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16466 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16467 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16468 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16469 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16470 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16471 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16472 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16473 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16474 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16475 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16476 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16477 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16478 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16479 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16480 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16481 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16482 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16483 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16484 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16485 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16486 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16487 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16488 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16489 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16490 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16491 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16492 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16493 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16494 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16495 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16496 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16497 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16498 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16499 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16500 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16501 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16502 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16503 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16504
16505 LTCC='$LTCC'
16506 LTCFLAGS='$LTCFLAGS'
16507 compiler='$compiler_DEFAULT'
16508
16509 # A function that is used when there is no print builtin or printf.
16510 func_fallback_echo ()
16511 {
16512 eval 'cat <<_LTECHO_EOF
16513 \$1
16514 _LTECHO_EOF'
16515 }
16516
16517 # Quote evaled strings.
16518 for var in AS \
16519 DLLTOOL \
16520 OBJDUMP \
16521 SHELL \
16522 ECHO \
16523 PATH_SEPARATOR \
16524 SED \
16525 GREP \
16526 EGREP \
16527 FGREP \
16528 LD \
16529 NM \
16530 LN_S \
16531 lt_SP2NL \
16532 lt_NL2SP \
16533 reload_flag \
16534 deplibs_check_method \
16535 file_magic_cmd \
16536 file_magic_glob \
16537 want_nocaseglob \
16538 sharedlib_from_linklib_cmd \
16539 AR \
16540 AR_FLAGS \
16541 archiver_list_spec \
16542 STRIP \
16543 RANLIB \
16544 CC \
16545 CFLAGS \
16546 compiler \
16547 lt_cv_sys_global_symbol_pipe \
16548 lt_cv_sys_global_symbol_to_cdecl \
16549 lt_cv_sys_global_symbol_to_c_name_address \
16550 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16551 nm_file_list_spec \
16552 lt_prog_compiler_no_builtin_flag \
16553 lt_prog_compiler_pic \
16554 lt_prog_compiler_wl \
16555 lt_prog_compiler_static \
16556 lt_cv_prog_compiler_c_o \
16557 need_locks \
16558 MANIFEST_TOOL \
16559 DSYMUTIL \
16560 NMEDIT \
16561 LIPO \
16562 OTOOL \
16563 OTOOL64 \
16564 shrext_cmds \
16565 export_dynamic_flag_spec \
16566 whole_archive_flag_spec \
16567 compiler_needs_object \
16568 with_gnu_ld \
16569 allow_undefined_flag \
16570 no_undefined_flag \
16571 hardcode_libdir_flag_spec \
16572 hardcode_libdir_separator \
16573 exclude_expsyms \
16574 include_expsyms \
16575 file_list_spec \
16576 variables_saved_for_relink \
16577 libname_spec \
16578 library_names_spec \
16579 soname_spec \
16580 install_override_mode \
16581 finish_eval \
16582 old_striplib \
16583 striplib \
16584 LD_RC \
16585 reload_flag_RC \
16586 compiler_RC \
16587 lt_prog_compiler_no_builtin_flag_RC \
16588 lt_prog_compiler_pic_RC \
16589 lt_prog_compiler_wl_RC \
16590 lt_prog_compiler_static_RC \
16591 lt_cv_prog_compiler_c_o_RC \
16592 export_dynamic_flag_spec_RC \
16593 whole_archive_flag_spec_RC \
16594 compiler_needs_object_RC \
16595 with_gnu_ld_RC \
16596 allow_undefined_flag_RC \
16597 no_undefined_flag_RC \
16598 hardcode_libdir_flag_spec_RC \
16599 hardcode_libdir_separator_RC \
16600 exclude_expsyms_RC \
16601 include_expsyms_RC \
16602 file_list_spec_RC; do
16603 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16604 *[\\\\\\\`\\"\\\$]*)
16605 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16606 ;;
16607 *)
16608 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16609 ;;
16610 esac
16611 done
16612
16613 # Double-quote double-evaled strings.
16614 for var in reload_cmds \
16615 old_postinstall_cmds \
16616 old_postuninstall_cmds \
16617 old_archive_cmds \
16618 extract_expsyms_cmds \
16619 old_archive_from_new_cmds \
16620 old_archive_from_expsyms_cmds \
16621 archive_cmds \
16622 archive_expsym_cmds \
16623 module_cmds \
16624 module_expsym_cmds \
16625 export_symbols_cmds \
16626 prelink_cmds \
16627 postlink_cmds \
16628 postinstall_cmds \
16629 postuninstall_cmds \
16630 finish_cmds \
16631 sys_lib_search_path_spec \
16632 sys_lib_dlsearch_path_spec \
16633 reload_cmds_RC \
16634 old_archive_cmds_RC \
16635 old_archive_from_new_cmds_RC \
16636 old_archive_from_expsyms_cmds_RC \
16637 archive_cmds_RC \
16638 archive_expsym_cmds_RC \
16639 module_cmds_RC \
16640 module_expsym_cmds_RC \
16641 export_symbols_cmds_RC \
16642 prelink_cmds_RC \
16643 postlink_cmds_RC; do
16644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16645 *[\\\\\\\`\\"\\\$]*)
16646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16647 ;;
16648 *)
16649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16650 ;;
16651 esac
16652 done
16653
16654 ac_aux_dir='$ac_aux_dir'
16655 xsi_shell='$xsi_shell'
16656 lt_shell_append='$lt_shell_append'
16657
16658 # See if we are running on zsh, and set the options which allow our
16659 # commands through without removal of \ escapes INIT.
16660 if test -n "\${ZSH_VERSION+set}" ; then
16661 setopt NO_GLOB_SUBST
16662 fi
16663
16664
16665 PACKAGE='$PACKAGE'
16666 VERSION='$VERSION'
16667 TIMESTAMP='$TIMESTAMP'
16668 RM='$RM'
16669 ofile='$ofile'
16670
16671
16672
16673
16674
16675 build_selection=$build_libtool_modification
16676
16677 _ACEOF
16678
16679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16680
16681 # Handling of arguments.
16682 for ac_config_target in $ac_config_targets
16683 do
16684 case $ac_config_target in
16685 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16686 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16687 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16688 "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
16689 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16690 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16691 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16692 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16693 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16694 "src/libassuan-config") CONFIG_FILES="$CONFIG_FILES src/libassuan-config" ;;
16695 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16696 "src/libassuan.pc") CONFIG_FILES="$CONFIG_FILES src/libassuan.pc" ;;
16697
16698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16699 esac
16700 done
16701
16702
16703 # If the user did not use the arguments to specify the items to instantiate,
16704 # then the envvar interface is used. Set only those that are not.
16705 # We use the long form for the default assignment because of an extremely
16706 # bizarre bug on SunOS 4.1.3.
16707 if $ac_need_defaults; then
16708 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16709 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16710 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16711 fi
16712
16713 # Have a temporary directory for convenience. Make it in the build tree
16714 # simply because there is no reason against having it here, and in addition,
16715 # creating and moving files from /tmp can sometimes cause problems.
16716 # Hook for its removal unless debugging.
16717 # Note that there is a small window in which the directory will not be cleaned:
16718 # after its creation but before its name has been assigned to `$tmp'.
16719 $debug ||
16720 {
16721 tmp= ac_tmp=
16722 trap 'exit_status=$?
16723 : "${ac_tmp:=$tmp}"
16724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16725 ' 0
16726 trap 'as_fn_exit 1' 1 2 13 15
16727 }
16728 # Create a (secure) tmp directory for tmp files.
16729
16730 {
16731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16732 test -d "$tmp"
16733 } ||
16734 {
16735 tmp=./conf$$-$RANDOM
16736 (umask 077 && mkdir "$tmp")
16737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16738 ac_tmp=$tmp
16739
16740 # Set up the scripts for CONFIG_FILES section.
16741 # No need to generate them if there are no CONFIG_FILES.
16742 # This happens for instance with `./config.status config.h'.
16743 if test -n "$CONFIG_FILES"; then
16744
16745
16746 ac_cr=`echo X | tr X '\015'`
16747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16748 # But we know of no other shell where ac_cr would be empty at this
16749 # point, so we can use a bashism as a fallback.
16750 if test "x$ac_cr" = x; then
16751 eval ac_cr=\$\'\\r\'
16752 fi
16753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16755 ac_cs_awk_cr='\\r'
16756 else
16757 ac_cs_awk_cr=$ac_cr
16758 fi
16759
16760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16761 _ACEOF
16762
16763
16764 {
16765 echo "cat >conf$$subs.awk <<_ACEOF" &&
16766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16767 echo "_ACEOF"
16768 } >conf$$subs.sh ||
16769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16771 ac_delim='%!_!# '
16772 for ac_last_try in false false false false false :; do
16773 . ./conf$$subs.sh ||
16774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16775
16776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16777 if test $ac_delim_n = $ac_delim_num; then
16778 break
16779 elif $ac_last_try; then
16780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16781 else
16782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16783 fi
16784 done
16785 rm -f conf$$subs.sh
16786
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16789 _ACEOF
16790 sed -n '
16791 h
16792 s/^/S["/; s/!.*/"]=/
16793 p
16794 g
16795 s/^[^!]*!//
16796 :repl
16797 t repl
16798 s/'"$ac_delim"'$//
16799 t delim
16800 :nl
16801 h
16802 s/\(.\{148\}\)..*/\1/
16803 t more1
16804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16805 p
16806 n
16807 b repl
16808 :more1
16809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16810 p
16811 g
16812 s/.\{148\}//
16813 t nl
16814 :delim
16815 h
16816 s/\(.\{148\}\)..*/\1/
16817 t more2
16818 s/["\\]/\\&/g; s/^/"/; s/$/"/
16819 p
16820 b
16821 :more2
16822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16823 p
16824 g
16825 s/.\{148\}//
16826 t delim
16827 ' <conf$$subs.awk | sed '
16828 /^[^""]/{
16829 N
16830 s/\n//
16831 }
16832 ' >>$CONFIG_STATUS || ac_write_fail=1
16833 rm -f conf$$subs.awk
16834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835 _ACAWK
16836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16837 for (key in S) S_is_set[key] = 1
16838 FS = ""
16839
16840 }
16841 {
16842 line = $ 0
16843 nfields = split(line, field, "@")
16844 substed = 0
16845 len = length(field[1])
16846 for (i = 2; i < nfields; i++) {
16847 key = field[i]
16848 keylen = length(key)
16849 if (S_is_set[key]) {
16850 value = S[key]
16851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16852 len += length(value) + length(field[++i])
16853 substed = 1
16854 } else
16855 len += 1 + keylen
16856 }
16857
16858 print line
16859 }
16860
16861 _ACAWK
16862 _ACEOF
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16866 else
16867 cat
16868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16870 _ACEOF
16871
16872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16874 # trailing colons and then remove the whole line if VPATH becomes empty
16875 # (actually we leave an empty line to preserve line numbers).
16876 if test "x$srcdir" = x.; then
16877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16878 h
16879 s///
16880 s/^/:/
16881 s/[ ]*$/:/
16882 s/:\$(srcdir):/:/g
16883 s/:\${srcdir}:/:/g
16884 s/:@srcdir@:/:/g
16885 s/^:*//
16886 s/:*$//
16887 x
16888 s/\(=[ ]*\).*/\1/
16889 G
16890 s/\n//
16891 s/^[^=]*=[ ]*$//
16892 }'
16893 fi
16894
16895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16896 fi # test -n "$CONFIG_FILES"
16897
16898 # Set up the scripts for CONFIG_HEADERS section.
16899 # No need to generate them if there are no CONFIG_HEADERS.
16900 # This happens for instance with `./config.status Makefile'.
16901 if test -n "$CONFIG_HEADERS"; then
16902 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16903 BEGIN {
16904 _ACEOF
16905
16906 # Transform confdefs.h into an awk script `defines.awk', embedded as
16907 # here-document in config.status, that substitutes the proper values into
16908 # config.h.in to produce config.h.
16909
16910 # Create a delimiter string that does not exist in confdefs.h, to ease
16911 # handling of long lines.
16912 ac_delim='%!_!# '
16913 for ac_last_try in false false :; do
16914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16915 if test -z "$ac_tt"; then
16916 break
16917 elif $ac_last_try; then
16918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16919 else
16920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16921 fi
16922 done
16923
16924 # For the awk script, D is an array of macro values keyed by name,
16925 # likewise P contains macro parameters if any. Preserve backslash
16926 # newline sequences.
16927
16928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16929 sed -n '
16930 s/.\{148\}/&'"$ac_delim"'/g
16931 t rset
16932 :rset
16933 s/^[ ]*#[ ]*define[ ][ ]*/ /
16934 t def
16935 d
16936 :def
16937 s/\\$//
16938 t bsnl
16939 s/["\\]/\\&/g
16940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16941 D["\1"]=" \3"/p
16942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16943 d
16944 :bsnl
16945 s/["\\]/\\&/g
16946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16947 D["\1"]=" \3\\\\\\n"\\/p
16948 t cont
16949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16950 t cont
16951 d
16952 :cont
16953 n
16954 s/.\{148\}/&'"$ac_delim"'/g
16955 t clear
16956 :clear
16957 s/\\$//
16958 t bsnlc
16959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16960 d
16961 :bsnlc
16962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16963 b cont
16964 ' <confdefs.h | sed '
16965 s/'"$ac_delim"'/"\\\
16966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16967
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 for (key in D) D_is_set[key] = 1
16970 FS = ""
16971 }
16972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16973 line = \$ 0
16974 split(line, arg, " ")
16975 if (arg[1] == "#") {
16976 defundef = arg[2]
16977 mac1 = arg[3]
16978 } else {
16979 defundef = substr(arg[1], 2)
16980 mac1 = arg[2]
16981 }
16982 split(mac1, mac2, "(") #)
16983 macro = mac2[1]
16984 prefix = substr(line, 1, index(line, defundef) - 1)
16985 if (D_is_set[macro]) {
16986 # Preserve the white space surrounding the "#".
16987 print prefix "define", macro P[macro] D[macro]
16988 next
16989 } else {
16990 # Replace #undef with comments. This is necessary, for example,
16991 # in the case of _POSIX_SOURCE, which is predefined and required
16992 # on some systems where configure will not decide to define it.
16993 if (defundef == "undef") {
16994 print "/*", prefix defundef, macro, "*/"
16995 next
16996 }
16997 }
16998 }
16999 { print }
17000 _ACAWK
17001 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17004 fi # test -n "$CONFIG_HEADERS"
17005
17006
17007 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17008 shift
17009 for ac_tag
17010 do
17011 case $ac_tag in
17012 :[FHLC]) ac_mode=$ac_tag; continue;;
17013 esac
17014 case $ac_mode$ac_tag in
17015 :[FHL]*:*);;
17016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17017 :[FH]-) ac_tag=-:-;;
17018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17019 esac
17020 ac_save_IFS=$IFS
17021 IFS=:
17022 set x $ac_tag
17023 IFS=$ac_save_IFS
17024 shift
17025 ac_file=$1
17026 shift
17027
17028 case $ac_mode in
17029 :L) ac_source=$1;;
17030 :[FH])
17031 ac_file_inputs=
17032 for ac_f
17033 do
17034 case $ac_f in
17035 -) ac_f="$ac_tmp/stdin";;
17036 *) # Look for the file first in the build tree, then in the source tree
17037 # (if the path is not absolute). The absolute path cannot be DOS-style,
17038 # because $ac_f cannot contain `:'.
17039 test -f "$ac_f" ||
17040 case $ac_f in
17041 [\\/$]*) false;;
17042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17043 esac ||
17044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17045 esac
17046 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17047 as_fn_append ac_file_inputs " '$ac_f'"
17048 done
17049
17050 # Let's still pretend it is `configure' which instantiates (i.e., don't
17051 # use $as_me), people would be surprised to read:
17052 # /* config.h. Generated by config.status. */
17053 configure_input='Generated from '`
17054 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17055 `' by configure.'
17056 if test x"$ac_file" != x-; then
17057 configure_input="$ac_file. $configure_input"
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17059 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17060 fi
17061 # Neutralize special characters interpreted by sed in replacement strings.
17062 case $configure_input in #(
17063 *\&* | *\|* | *\\* )
17064 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17066 *) ac_sed_conf_input=$configure_input;;
17067 esac
17068
17069 case $ac_tag in
17070 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17072 esac
17073 ;;
17074 esac
17075
17076 ac_dir=`$as_dirname -- "$ac_file" ||
17077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17078 X"$ac_file" : 'X\(//\)[^/]' \| \
17079 X"$ac_file" : 'X\(//\)$' \| \
17080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17081 printf "%s\n" X"$ac_file" |
17082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17083 s//\1/
17084 q
17085 }
17086 /^X\(\/\/\)[^/].*/{
17087 s//\1/
17088 q
17089 }
17090 /^X\(\/\/\)$/{
17091 s//\1/
17092 q
17093 }
17094 /^X\(\/\).*/{
17095 s//\1/
17096 q
17097 }
17098 s/.*/./; q'`
17099 as_dir="$ac_dir"; as_fn_mkdir_p
17100 ac_builddir=.
17101
17102 case "$ac_dir" in
17103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17104 *)
17105 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17106 # A ".." for each directory in $ac_dir_suffix.
17107 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17108 case $ac_top_builddir_sub in
17109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17111 esac ;;
17112 esac
17113 ac_abs_top_builddir=$ac_pwd
17114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17115 # for backward compatibility:
17116 ac_top_builddir=$ac_top_build_prefix
17117
17118 case $srcdir in
17119 .) # We are building in place.
17120 ac_srcdir=.
17121 ac_top_srcdir=$ac_top_builddir_sub
17122 ac_abs_top_srcdir=$ac_pwd ;;
17123 [\\/]* | ?:[\\/]* ) # Absolute name.
17124 ac_srcdir=$srcdir$ac_dir_suffix;
17125 ac_top_srcdir=$srcdir
17126 ac_abs_top_srcdir=$srcdir ;;
17127 *) # Relative name.
17128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17129 ac_top_srcdir=$ac_top_build_prefix$srcdir
17130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17131 esac
17132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17133
17134
17135 case $ac_mode in
17136 :F)
17137 #
17138 # CONFIG_FILE
17139 #
17140
17141 case $INSTALL in
17142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17144 esac
17145 ac_MKDIR_P=$MKDIR_P
17146 case $MKDIR_P in
17147 [\\/$]* | ?:[\\/]* ) ;;
17148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17149 esac
17150 _ACEOF
17151
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 # If the template does not know about datarootdir, expand it.
17154 # FIXME: This hack should be removed a few years after 2.60.
17155 ac_datarootdir_hack=; ac_datarootdir_seen=
17156 ac_sed_dataroot='
17157 /datarootdir/ {
17158 p
17159 q
17160 }
17161 /@datadir@/p
17162 /@docdir@/p
17163 /@infodir@/p
17164 /@localedir@/p
17165 /@mandir@/p'
17166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17167 *datarootdir*) ac_datarootdir_seen=yes;;
17168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17170 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17171 _ACEOF
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 ac_datarootdir_hack='
17174 s&@datadir@&$datadir&g
17175 s&@docdir@&$docdir&g
17176 s&@infodir@&$infodir&g
17177 s&@localedir@&$localedir&g
17178 s&@mandir@&$mandir&g
17179 s&\\\${datarootdir}&$datarootdir&g' ;;
17180 esac
17181 _ACEOF
17182
17183 # Neutralize VPATH when `$srcdir' = `.'.
17184 # Shell code in configure.ac might set extrasub.
17185 # FIXME: do we really want to maintain this feature?
17186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17187 ac_sed_extra="$ac_vpsub
17188 $extrasub
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191 :t
17192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17193 s|@configure_input@|$ac_sed_conf_input|;t t
17194 s&@top_builddir@&$ac_top_builddir_sub&;t t
17195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17196 s&@srcdir@&$ac_srcdir&;t t
17197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17198 s&@top_srcdir@&$ac_top_srcdir&;t t
17199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17200 s&@builddir@&$ac_builddir&;t t
17201 s&@abs_builddir@&$ac_abs_builddir&;t t
17202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17203 s&@INSTALL@&$ac_INSTALL&;t t
17204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17205 $ac_datarootdir_hack
17206 "
17207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17209
17210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17215 which seems to be undefined. Please make sure it is defined" >&5
17216 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17217 which seems to be undefined. Please make sure it is defined" >&2;}
17218
17219 rm -f "$ac_tmp/stdin"
17220 case $ac_file in
17221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17223 esac \
17224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17225 ;;
17226 :H)
17227 #
17228 # CONFIG_HEADER
17229 #
17230 if test x"$ac_file" != x-; then
17231 {
17232 printf "%s\n" "/* $configure_input */" >&1 \
17233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17234 } >"$ac_tmp/config.h" \
17235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17238 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17239 else
17240 rm -f "$ac_file"
17241 mv "$ac_tmp/config.h" "$ac_file" \
17242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17243 fi
17244 else
17245 printf "%s\n" "/* $configure_input */" >&1 \
17246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17247 || as_fn_error $? "could not create -" "$LINENO" 5
17248 fi
17249 # Compute "$ac_file"'s index in $config_headers.
17250 _am_arg="$ac_file"
17251 _am_stamp_count=1
17252 for _am_header in $config_headers :; do
17253 case $_am_header in
17254 $_am_arg | $_am_arg:* )
17255 break ;;
17256 * )
17257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17258 esac
17259 done
17260 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17261 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262 X"$_am_arg" : 'X\(//\)[^/]' \| \
17263 X"$_am_arg" : 'X\(//\)$' \| \
17264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17265 printf "%s\n" X"$_am_arg" |
17266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17267 s//\1/
17268 q
17269 }
17270 /^X\(\/\/\)[^/].*/{
17271 s//\1/
17272 q
17273 }
17274 /^X\(\/\/\)$/{
17275 s//\1/
17276 q
17277 }
17278 /^X\(\/\).*/{
17279 s//\1/
17280 q
17281 }
17282 s/.*/./; q'`/stamp-h$_am_stamp_count
17283 ;;
17284
17285 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17286 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17287 ;;
17288 esac
17289
17290
17291 case $ac_file$ac_mode in
17292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17293 # Older Autoconf quotes --file arguments for eval, but not when files
17294 # are listed without --file. Let's play safe and only enable the eval
17295 # if we detect the quoting.
17296 # TODO: see whether this extra hack can be removed once we start
17297 # requiring Autoconf 2.70 or later.
17298 case $CONFIG_FILES in #(
17299 *\'*) :
17300 eval set x "$CONFIG_FILES" ;; #(
17301 *) :
17302 set x $CONFIG_FILES ;; #(
17303 *) :
17304 ;;
17305 esac
17306 shift
17307 # Used to flag and report bootstrapping failures.
17308 am_rc=0
17309 for am_mf
17310 do
17311 # Strip MF so we end up with the name of the file.
17312 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17313 # Check whether this is an Automake generated Makefile which includes
17314 # dependency-tracking related rules and includes.
17315 # Grep'ing the whole file directly is not great: AIX grep has a line
17316 # limit of 2048, but all sed's we know have understand at least 4000.
17317 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17318 || continue
17319 am_dirpart=`$as_dirname -- "$am_mf" ||
17320 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$am_mf" : 'X\(//\)[^/]' \| \
17322 X"$am_mf" : 'X\(//\)$' \| \
17323 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17324 printf "%s\n" X"$am_mf" |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\/\)[^/].*/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\).*/{
17338 s//\1/
17339 q
17340 }
17341 s/.*/./; q'`
17342 am_filepart=`$as_basename -- "$am_mf" ||
17343 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17344 X"$am_mf" : 'X\(//\)$' \| \
17345 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17346 printf "%s\n" X/"$am_mf" |
17347 sed '/^.*\/\([^/][^/]*\)\/*$/{
17348 s//\1/
17349 q
17350 }
17351 /^X\/\(\/\/\)$/{
17352 s//\1/
17353 q
17354 }
17355 /^X\/\(\/\).*/{
17356 s//\1/
17357 q
17358 }
17359 s/.*/./; q'`
17360 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17361 && sed -e '/# am--include-marker/d' "$am_filepart" \
17362 | $MAKE -f - am--depfiles" >&5
17363 (cd "$am_dirpart" \
17364 && sed -e '/# am--include-marker/d' "$am_filepart" \
17365 | $MAKE -f - am--depfiles) >&5 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } || am_rc=$?
17369 done
17370 if test $am_rc -ne 0; then
17371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17372 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17373 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17374 for automatic dependency tracking. If GNU make was not used, consider
17375 re-running the configure script with MAKE=\"gmake\" (or whatever is
17376 necessary). You can also try re-running configure with the
17377 '--disable-dependency-tracking' option to at least be able to build
17378 the package (albeit without support for automatic dependency tracking).
17379 See \`config.log' for more details" "$LINENO" 5; }
17380 fi
17381 { am_dirpart=; unset am_dirpart;}
17382 { am_filepart=; unset am_filepart;}
17383 { am_mf=; unset am_mf;}
17384 { am_rc=; unset am_rc;}
17385 rm -f conftest-deps.mk
17386 }
17387 ;;
17388 "libtool":C)
17389
17390 # See if we are running on zsh, and set the options which allow our
17391 # commands through without removal of \ escapes.
17392 if test -n "${ZSH_VERSION+set}" ; then
17393 setopt NO_GLOB_SUBST
17394 fi
17395
17396 cfgfile="${ofile}T"
17397 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17398 $RM "$cfgfile"
17399
17400 cat <<_LT_EOF >> "$cfgfile"
17401 #! $SHELL
17402
17403 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17404 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17406 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17407 #
17408 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17409 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17410 # Foundation, Inc.
17411 # Written by Gordon Matzigkeit, 1996
17412 #
17413 # This file is part of GNU Libtool.
17414 #
17415 # GNU Libtool is free software; you can redistribute it and/or
17416 # modify it under the terms of the GNU General Public License as
17417 # published by the Free Software Foundation; either version 2 of
17418 # the License, or (at your option) any later version.
17419 #
17420 # As a special exception to the GNU General Public License,
17421 # if you distribute this file as part of a program or library that
17422 # is built using GNU Libtool, you may include this file under the
17423 # same distribution terms that you use for the rest of that program.
17424 #
17425 # GNU Libtool is distributed in the hope that it will be useful,
17426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17428 # GNU General Public License for more details.
17429 #
17430 # You should have received a copy of the GNU General Public License
17431 # along with GNU Libtool; see the file COPYING. If not, a copy
17432 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
17433 # obtained by writing to the Free Software Foundation, Inc.,
17434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17435
17436
17437 # The names of the tagged configurations supported by this script.
17438 available_tags="RC "
17439
17440 # ### BEGIN LIBTOOL CONFIG
17441
17442 # Which release of libtool.m4 was used?
17443 macro_version=$macro_version
17444 macro_revision=$macro_revision
17445
17446 # Assembler program.
17447 AS=$lt_AS
17448
17449 # DLL creation program.
17450 DLLTOOL=$lt_DLLTOOL
17451
17452 # Object dumper program.
17453 OBJDUMP=$lt_OBJDUMP
17454
17455 # Whether or not to build static libraries.
17456 build_old_libs=$enable_static
17457
17458 # Whether or not to build shared libraries.
17459 build_libtool_libs=$enable_shared
17460
17461 # What type of objects to build.
17462 pic_mode=$pic_mode
17463
17464 # Whether or not to optimize for fast installation.
17465 fast_install=$enable_fast_install
17466
17467 # Shell to use when invoking shell scripts.
17468 SHELL=$lt_SHELL
17469
17470 # An echo program that protects backslashes.
17471 ECHO=$lt_ECHO
17472
17473 # The PATH separator for the build system.
17474 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17475
17476 # The host system.
17477 host_alias=$host_alias
17478 host=$host
17479 host_os=$host_os
17480
17481 # The build system.
17482 build_alias=$build_alias
17483 build=$build
17484 build_os=$build_os
17485
17486 # A sed program that does not truncate output.
17487 SED=$lt_SED
17488
17489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17490 Xsed="\$SED -e 1s/^X//"
17491
17492 # A grep program that handles long lines.
17493 GREP=$lt_GREP
17494
17495 # An ERE matcher.
17496 EGREP=$lt_EGREP
17497
17498 # A literal string matcher.
17499 FGREP=$lt_FGREP
17500
17501 # A BSD- or MS-compatible name lister.
17502 NM=$lt_NM
17503
17504 # Whether we need soft or hard links.
17505 LN_S=$lt_LN_S
17506
17507 # What is the maximum length of a command?
17508 max_cmd_len=$max_cmd_len
17509
17510 # Object file suffix (normally "o").
17511 objext=$ac_objext
17512
17513 # Executable file suffix (normally "").
17514 exeext=$exeext
17515
17516 # whether the shell understands "unset".
17517 lt_unset=$lt_unset
17518
17519 # turn spaces into newlines.
17520 SP2NL=$lt_lt_SP2NL
17521
17522 # turn newlines into spaces.
17523 NL2SP=$lt_lt_NL2SP
17524
17525 # convert \$build file names to \$host format.
17526 to_host_file_cmd=$lt_cv_to_host_file_cmd
17527
17528 # convert \$build files to toolchain format.
17529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17530
17531 # Method to check whether dependent libraries are shared objects.
17532 deplibs_check_method=$lt_deplibs_check_method
17533
17534 # Command to use when deplibs_check_method = "file_magic".
17535 file_magic_cmd=$lt_file_magic_cmd
17536
17537 # How to find potential files when deplibs_check_method = "file_magic".
17538 file_magic_glob=$lt_file_magic_glob
17539
17540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17541 want_nocaseglob=$lt_want_nocaseglob
17542
17543 # Command to associate shared and link libraries.
17544 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17545
17546 # The archiver.
17547 AR=$lt_AR
17548
17549 # Flags to create an archive.
17550 AR_FLAGS=$lt_AR_FLAGS
17551
17552 # How to feed a file listing to the archiver.
17553 archiver_list_spec=$lt_archiver_list_spec
17554
17555 # A symbol stripping program.
17556 STRIP=$lt_STRIP
17557
17558 # Commands used to install an old-style archive.
17559 RANLIB=$lt_RANLIB
17560 old_postinstall_cmds=$lt_old_postinstall_cmds
17561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17562
17563 # Whether to use a lock for old archive extraction.
17564 lock_old_archive_extraction=$lock_old_archive_extraction
17565
17566 # A C compiler.
17567 LTCC=$lt_CC
17568
17569 # LTCC compiler flags.
17570 LTCFLAGS=$lt_CFLAGS
17571
17572 # Take the output of nm and produce a listing of raw symbols and C names.
17573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17574
17575 # Transform the output of nm in a proper C declaration.
17576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
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 # Specify filename containing input files for \$NM.
17585 nm_file_list_spec=$lt_nm_file_list_spec
17586
17587 # The root where to search for dependent libraries,and in which our libraries should be installed.
17588 lt_sysroot=$lt_sysroot
17589
17590 # The name of the directory that contains temporary libtool files.
17591 objdir=$objdir
17592
17593 # Used to examine libraries when file_magic_cmd begins with "file".
17594 MAGIC_CMD=$MAGIC_CMD
17595
17596 # Must we lock files when doing compilation?
17597 need_locks=$lt_need_locks
17598
17599 # Manifest tool.
17600 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17601
17602 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17603 DSYMUTIL=$lt_DSYMUTIL
17604
17605 # Tool to change global to local symbols on Mac OS X.
17606 NMEDIT=$lt_NMEDIT
17607
17608 # Tool to manipulate fat objects and archives on Mac OS X.
17609 LIPO=$lt_LIPO
17610
17611 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17612 OTOOL=$lt_OTOOL
17613
17614 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17615 OTOOL64=$lt_OTOOL64
17616
17617 # Old archive suffix (normally "a").
17618 libext=$libext
17619
17620 # Shared library suffix (normally ".so").
17621 shrext_cmds=$lt_shrext_cmds
17622
17623 # The commands to extract the exported symbol list from a shared archive.
17624 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17625
17626 # Variables whose values should be saved in libtool wrapper scripts and
17627 # restored at link time.
17628 variables_saved_for_relink=$lt_variables_saved_for_relink
17629
17630 # Do we need the "lib" prefix for modules?
17631 need_lib_prefix=$need_lib_prefix
17632
17633 # Do we need a version for libraries?
17634 need_version=$need_version
17635
17636 # Library versioning type.
17637 version_type=$version_type
17638
17639 # Shared library runtime path variable.
17640 runpath_var=$runpath_var
17641
17642 # Shared library path variable.
17643 shlibpath_var=$shlibpath_var
17644
17645 # Is shlibpath searched before the hard-coded library search path?
17646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17647
17648 # Format of library name prefix.
17649 libname_spec=$lt_libname_spec
17650
17651 # List of archive names. First name is the real one, the rest are links.
17652 # The last name is the one that the linker finds with -lNAME
17653 library_names_spec=$lt_library_names_spec
17654
17655 # The coded name of the library, if different from the real name.
17656 soname_spec=$lt_soname_spec
17657
17658 # Permission mode override for installation of shared libraries.
17659 install_override_mode=$lt_install_override_mode
17660
17661 # Command to use after installation of a shared archive.
17662 postinstall_cmds=$lt_postinstall_cmds
17663
17664 # Command to use after uninstallation of a shared archive.
17665 postuninstall_cmds=$lt_postuninstall_cmds
17666
17667 # Commands used to finish a libtool library installation in a directory.
17668 finish_cmds=$lt_finish_cmds
17669
17670 # As "finish_cmds", except a single script fragment to be evaled but
17671 # not shown.
17672 finish_eval=$lt_finish_eval
17673
17674 # Whether we should hardcode library paths into libraries.
17675 hardcode_into_libs=$hardcode_into_libs
17676
17677 # Compile-time system search path for libraries.
17678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17679
17680 # Run-time system search path for libraries.
17681 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17682
17683 # Whether dlopen is supported.
17684 dlopen_support=$enable_dlopen
17685
17686 # Whether dlopen of programs is supported.
17687 dlopen_self=$enable_dlopen_self
17688
17689 # Whether dlopen of statically linked programs is supported.
17690 dlopen_self_static=$enable_dlopen_self_static
17691
17692 # Commands to strip libraries.
17693 old_striplib=$lt_old_striplib
17694 striplib=$lt_striplib
17695
17696
17697 # The linker used to build libraries.
17698 LD=$lt_LD
17699
17700 # How to create reloadable object files.
17701 reload_flag=$lt_reload_flag
17702 reload_cmds=$lt_reload_cmds
17703
17704 # Commands used to build an old-style archive.
17705 old_archive_cmds=$lt_old_archive_cmds
17706
17707 # A language specific compiler.
17708 CC=$lt_compiler
17709
17710 # Is the compiler the GNU compiler?
17711 with_gcc=$GCC
17712
17713 # Compiler flag to turn off builtin functions.
17714 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17715
17716 # Additional compiler flags for building library objects.
17717 pic_flag=$lt_lt_prog_compiler_pic
17718
17719 # How to pass a linker flag through the compiler.
17720 wl=$lt_lt_prog_compiler_wl
17721
17722 # Compiler flag to prevent dynamic linking.
17723 link_static_flag=$lt_lt_prog_compiler_static
17724
17725 # Does compiler simultaneously support -c and -o options?
17726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17727
17728 # Whether or not to add -lc for building shared libraries.
17729 build_libtool_need_lc=$archive_cmds_need_lc
17730
17731 # Whether or not to disallow shared libs when runtime libs are static.
17732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17733
17734 # Compiler flag to allow reflexive dlopens.
17735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17736
17737 # Compiler flag to generate shared objects directly from archives.
17738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17739
17740 # Whether the compiler copes with passing no objects directly.
17741 compiler_needs_object=$lt_compiler_needs_object
17742
17743 # Create an old-style archive from a shared archive.
17744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17745
17746 # Create a temporary old-style archive to link instead of a shared archive.
17747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17748
17749 # Commands used to build a shared archive.
17750 archive_cmds=$lt_archive_cmds
17751 archive_expsym_cmds=$lt_archive_expsym_cmds
17752
17753 # Commands used to build a loadable module if different from building
17754 # a shared archive.
17755 module_cmds=$lt_module_cmds
17756 module_expsym_cmds=$lt_module_expsym_cmds
17757
17758 # Whether we are building with GNU ld or not.
17759 with_gnu_ld=$lt_with_gnu_ld
17760
17761 # Flag that allows shared libraries with undefined symbols to be built.
17762 allow_undefined_flag=$lt_allow_undefined_flag
17763
17764 # Flag that enforces no undefined symbols.
17765 no_undefined_flag=$lt_no_undefined_flag
17766
17767 # Flag to hardcode \$libdir into a binary during linking.
17768 # This must work even if \$libdir does not exist
17769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17770
17771 # Whether we need a single "-rpath" flag with a separated argument.
17772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17773
17774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17775 # DIR into the resulting binary.
17776 hardcode_direct=$hardcode_direct
17777
17778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17779 # DIR into the resulting binary and the resulting library dependency is
17780 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17781 # library is relocated.
17782 hardcode_direct_absolute=$hardcode_direct_absolute
17783
17784 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17785 # into the resulting binary.
17786 hardcode_minus_L=$hardcode_minus_L
17787
17788 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17789 # into the resulting binary.
17790 hardcode_shlibpath_var=$hardcode_shlibpath_var
17791
17792 # Set to "yes" if building a shared library automatically hardcodes DIR
17793 # into the library and all subsequent libraries and executables linked
17794 # against it.
17795 hardcode_automatic=$hardcode_automatic
17796
17797 # Set to yes if linker adds runtime paths of dependent libraries
17798 # to runtime path list.
17799 inherit_rpath=$inherit_rpath
17800
17801 # Whether libtool must link a program against all its dependency libraries.
17802 link_all_deplibs=$link_all_deplibs
17803
17804 # Set to "yes" if exported symbols are required.
17805 always_export_symbols=$always_export_symbols
17806
17807 # The commands to list exported symbols.
17808 export_symbols_cmds=$lt_export_symbols_cmds
17809
17810 # Symbols that should not be listed in the preloaded symbols.
17811 exclude_expsyms=$lt_exclude_expsyms
17812
17813 # Symbols that must always be exported.
17814 include_expsyms=$lt_include_expsyms
17815
17816 # Commands necessary for linking programs (against libraries) with templates.
17817 prelink_cmds=$lt_prelink_cmds
17818
17819 # Commands necessary for finishing linking programs.
17820 postlink_cmds=$lt_postlink_cmds
17821
17822 # Specify filename containing input files.
17823 file_list_spec=$lt_file_list_spec
17824
17825 # How to hardcode a shared library path into an executable.
17826 hardcode_action=$hardcode_action
17827
17828 # ### END LIBTOOL CONFIG
17829
17830 _LT_EOF
17831
17832 case $host_os in
17833 aix3*)
17834 cat <<\_LT_EOF >> "$cfgfile"
17835 # AIX sometimes has problems with the GCC collect2 program. For some
17836 # reason, if we set the COLLECT_NAMES environment variable, the problems
17837 # vanish in a puff of smoke.
17838 if test "X${COLLECT_NAMES+set}" != Xset; then
17839 COLLECT_NAMES=
17840 export COLLECT_NAMES
17841 fi
17842 _LT_EOF
17843 ;;
17844 esac
17845
17846
17847
17848 ltmain="$ac_aux_dir/ltmain.sh"
17849
17850
17851 # We use sed instead of cat because bash on DJGPP gets confused if
17852 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17853 # text mode, it properly converts lines to CR/LF. This bash problem
17854 # is reportedly fixed, but why not run on old versions too?
17855 sed '$q' "$ltmain" >> "$cfgfile" \
17856 || (rm -f "$cfgfile"; exit 1)
17857
17858 if test x"$xsi_shell" = xyes; then
17859 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17860 func_dirname ()\
17861 {\
17862 \ case ${1} in\
17863 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17864 \ * ) func_dirname_result="${3}" ;;\
17865 \ esac\
17866 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17867 && mv -f "$cfgfile.tmp" "$cfgfile" \
17868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17869 test 0 -eq $? || _lt_function_replace_fail=:
17870
17871
17872 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17873 func_basename ()\
17874 {\
17875 \ func_basename_result="${1##*/}"\
17876 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17877 && mv -f "$cfgfile.tmp" "$cfgfile" \
17878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17879 test 0 -eq $? || _lt_function_replace_fail=:
17880
17881
17882 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17883 func_dirname_and_basename ()\
17884 {\
17885 \ case ${1} in\
17886 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17887 \ * ) func_dirname_result="${3}" ;;\
17888 \ esac\
17889 \ func_basename_result="${1##*/}"\
17890 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17891 && mv -f "$cfgfile.tmp" "$cfgfile" \
17892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17893 test 0 -eq $? || _lt_function_replace_fail=:
17894
17895
17896 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17897 func_stripname ()\
17898 {\
17899 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17900 \ # positional parameters, so assign one to ordinary parameter first.\
17901 \ func_stripname_result=${3}\
17902 \ func_stripname_result=${func_stripname_result#"${1}"}\
17903 \ func_stripname_result=${func_stripname_result%"${2}"}\
17904 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17905 && mv -f "$cfgfile.tmp" "$cfgfile" \
17906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17907 test 0 -eq $? || _lt_function_replace_fail=:
17908
17909
17910 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17911 func_split_long_opt ()\
17912 {\
17913 \ func_split_long_opt_name=${1%%=*}\
17914 \ func_split_long_opt_arg=${1#*=}\
17915 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17916 && mv -f "$cfgfile.tmp" "$cfgfile" \
17917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17918 test 0 -eq $? || _lt_function_replace_fail=:
17919
17920
17921 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17922 func_split_short_opt ()\
17923 {\
17924 \ func_split_short_opt_arg=${1#??}\
17925 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17926 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17927 && mv -f "$cfgfile.tmp" "$cfgfile" \
17928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17929 test 0 -eq $? || _lt_function_replace_fail=:
17930
17931
17932 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17933 func_lo2o ()\
17934 {\
17935 \ case ${1} in\
17936 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17937 \ *) func_lo2o_result=${1} ;;\
17938 \ esac\
17939 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17940 && mv -f "$cfgfile.tmp" "$cfgfile" \
17941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17942 test 0 -eq $? || _lt_function_replace_fail=:
17943
17944
17945 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17946 func_xform ()\
17947 {\
17948 func_xform_result=${1%.*}.lo\
17949 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17950 && mv -f "$cfgfile.tmp" "$cfgfile" \
17951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17952 test 0 -eq $? || _lt_function_replace_fail=:
17953
17954
17955 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17956 func_arith ()\
17957 {\
17958 func_arith_result=$(( $* ))\
17959 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17960 && mv -f "$cfgfile.tmp" "$cfgfile" \
17961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17962 test 0 -eq $? || _lt_function_replace_fail=:
17963
17964
17965 sed -e '/^func_len ()$/,/^} # func_len /c\
17966 func_len ()\
17967 {\
17968 func_len_result=${#1}\
17969 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17970 && mv -f "$cfgfile.tmp" "$cfgfile" \
17971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17972 test 0 -eq $? || _lt_function_replace_fail=:
17973
17974 fi
17975
17976 if test x"$lt_shell_append" = xyes; then
17977 sed -e '/^func_append ()$/,/^} # func_append /c\
17978 func_append ()\
17979 {\
17980 eval "${1}+=\\${2}"\
17981 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17982 && mv -f "$cfgfile.tmp" "$cfgfile" \
17983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17984 test 0 -eq $? || _lt_function_replace_fail=:
17985
17986
17987 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17988 func_append_quoted ()\
17989 {\
17990 \ func_quote_for_eval "${2}"\
17991 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17992 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17993 && mv -f "$cfgfile.tmp" "$cfgfile" \
17994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17995 test 0 -eq $? || _lt_function_replace_fail=:
17996
17997
17998 # Save a `func_append' function call where possible by direct use of '+='
17999 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18000 && mv -f "$cfgfile.tmp" "$cfgfile" \
18001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18002 test 0 -eq $? || _lt_function_replace_fail=:
18003 else
18004 # Save a `func_append' function call even when '+=' is not available
18005 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18006 && mv -f "$cfgfile.tmp" "$cfgfile" \
18007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18008 test 0 -eq $? || _lt_function_replace_fail=:
18009 fi
18010
18011 if test x"$_lt_function_replace_fail" = x":"; then
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18013 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18014 fi
18015
18016
18017 mv -f "$cfgfile" "$ofile" ||
18018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18019 chmod +x "$ofile"
18020
18021
18022 cat <<_LT_EOF >> "$ofile"
18023
18024 # ### BEGIN LIBTOOL TAG CONFIG: RC
18025
18026 # The linker used to build libraries.
18027 LD=$lt_LD_RC
18028
18029 # How to create reloadable object files.
18030 reload_flag=$lt_reload_flag_RC
18031 reload_cmds=$lt_reload_cmds_RC
18032
18033 # Commands used to build an old-style archive.
18034 old_archive_cmds=$lt_old_archive_cmds_RC
18035
18036 # A language specific compiler.
18037 CC=$lt_compiler_RC
18038
18039 # Is the compiler the GNU compiler?
18040 with_gcc=$GCC_RC
18041
18042 # Compiler flag to turn off builtin functions.
18043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18044
18045 # Additional compiler flags for building library objects.
18046 pic_flag=$lt_lt_prog_compiler_pic_RC
18047
18048 # How to pass a linker flag through the compiler.
18049 wl=$lt_lt_prog_compiler_wl_RC
18050
18051 # Compiler flag to prevent dynamic linking.
18052 link_static_flag=$lt_lt_prog_compiler_static_RC
18053
18054 # Does compiler simultaneously support -c and -o options?
18055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18056
18057 # Whether or not to add -lc for building shared libraries.
18058 build_libtool_need_lc=$archive_cmds_need_lc_RC
18059
18060 # Whether or not to disallow shared libs when runtime libs are static.
18061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18062
18063 # Compiler flag to allow reflexive dlopens.
18064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18065
18066 # Compiler flag to generate shared objects directly from archives.
18067 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18068
18069 # Whether the compiler copes with passing no objects directly.
18070 compiler_needs_object=$lt_compiler_needs_object_RC
18071
18072 # Create an old-style archive from a shared archive.
18073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18074
18075 # Create a temporary old-style archive to link instead of a shared archive.
18076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18077
18078 # Commands used to build a shared archive.
18079 archive_cmds=$lt_archive_cmds_RC
18080 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18081
18082 # Commands used to build a loadable module if different from building
18083 # a shared archive.
18084 module_cmds=$lt_module_cmds_RC
18085 module_expsym_cmds=$lt_module_expsym_cmds_RC
18086
18087 # Whether we are building with GNU ld or not.
18088 with_gnu_ld=$lt_with_gnu_ld_RC
18089
18090 # Flag that allows shared libraries with undefined symbols to be built.
18091 allow_undefined_flag=$lt_allow_undefined_flag_RC
18092
18093 # Flag that enforces no undefined symbols.
18094 no_undefined_flag=$lt_no_undefined_flag_RC
18095
18096 # Flag to hardcode \$libdir into a binary during linking.
18097 # This must work even if \$libdir does not exist
18098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18099
18100 # Whether we need a single "-rpath" flag with a separated argument.
18101 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18102
18103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18104 # DIR into the resulting binary.
18105 hardcode_direct=$hardcode_direct_RC
18106
18107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18108 # DIR into the resulting binary and the resulting library dependency is
18109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18110 # library is relocated.
18111 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18112
18113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18114 # into the resulting binary.
18115 hardcode_minus_L=$hardcode_minus_L_RC
18116
18117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18118 # into the resulting binary.
18119 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18120
18121 # Set to "yes" if building a shared library automatically hardcodes DIR
18122 # into the library and all subsequent libraries and executables linked
18123 # against it.
18124 hardcode_automatic=$hardcode_automatic_RC
18125
18126 # Set to yes if linker adds runtime paths of dependent libraries
18127 # to runtime path list.
18128 inherit_rpath=$inherit_rpath_RC
18129
18130 # Whether libtool must link a program against all its dependency libraries.
18131 link_all_deplibs=$link_all_deplibs_RC
18132
18133 # Set to "yes" if exported symbols are required.
18134 always_export_symbols=$always_export_symbols_RC
18135
18136 # The commands to list exported symbols.
18137 export_symbols_cmds=$lt_export_symbols_cmds_RC
18138
18139 # Symbols that should not be listed in the preloaded symbols.
18140 exclude_expsyms=$lt_exclude_expsyms_RC
18141
18142 # Symbols that must always be exported.
18143 include_expsyms=$lt_include_expsyms_RC
18144
18145 # Commands necessary for linking programs (against libraries) with templates.
18146 prelink_cmds=$lt_prelink_cmds_RC
18147
18148 # Commands necessary for finishing linking programs.
18149 postlink_cmds=$lt_postlink_cmds_RC
18150
18151 # Specify filename containing input files.
18152 file_list_spec=$lt_file_list_spec_RC
18153
18154 # How to hardcode a shared library path into an executable.
18155 hardcode_action=$hardcode_action_RC
18156
18157 # ### END LIBTOOL TAG CONFIG: RC
18158 _LT_EOF
18159
18160 ;;
18161 "libtool-patch":C)
18162 if test "$build_selection" = never; then
18163 echo "patch not applied"
18164 elif (mv -f libtool libtool.orig; \
18165 sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
18166 echo "applied successfully"
18167 elif test "$build_selection" = try; then
18168 mv -f libtool.orig libtool
18169 echo "patch failed, thus, using original"
18170 else
18171 echo "patch failed"
18172 as_fn_exit 1
18173 fi
18174 ;;
18175 "src/libassuan-config":F) chmod +x src/libassuan-config ;;
18176
18177 esac
18178 done # for ac_tag
18179
18180
18181 as_fn_exit 0
18182 _ACEOF
18183 ac_clean_files=$ac_clean_files_save
18184
18185 test $ac_write_fail = 0 ||
18186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18187
18188
18189 # configure is writing to config.log, and then calls config.status.
18190 # config.status does its own redirection, appending to config.log.
18191 # Unfortunately, on DOS this fails, as config.log is still kept open
18192 # by configure, so config.status won't be able to write to it; its
18193 # output is simply discarded. So we exec the FD to /dev/null,
18194 # effectively closing config.log, so it can be properly (re)opened and
18195 # appended to by config.status. When coming back to configure, we
18196 # need to make the FD available again.
18197 if test "$no_create" != yes; then
18198 ac_cs_success=:
18199 ac_config_status_args=
18200 test "$silent" = yes &&
18201 ac_config_status_args="$ac_config_status_args --quiet"
18202 exec 5>/dev/null
18203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18204 exec 5>>config.log
18205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18206 # would make configure fail if this is the last instruction.
18207 $ac_cs_success || as_fn_exit 1
18208 fi
18209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18211 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18212 fi
18213
18214
18215 echo "
18216 Libassuan v${VERSION} has been configured as follows:
18217
18218 Revision: 0f84595 (3972)
18219 Platform: $host
18220 "
18221