Fix build error
[platform/upstream/libksba.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libksba 1.6.5.
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 bug-autoconf@gnu.org 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='libksba'
623 PACKAGE_TARNAME='libksba'
624 PACKAGE_VERSION='1.6.5'
625 PACKAGE_STRING='libksba 1.6.5'
626 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/ksba.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 LIBOBJS
666 BUILD_DOC_FALSE
667 BUILD_DOC_TRUE
668 BUILD_TIMESTAMP
669 BUILD_FILEVERSION
670 BUILD_REVISION
671 CROSS_COMPILING_FALSE
672 CROSS_COMPILING_TRUE
673 KSBA_CONFIG_HOST
674 KSBA_CONFIG_API_VERSION
675 KSBA_CONFIG_CFLAGS
676 KSBA_CONFIG_LIBS
677 VALGRIND
678 ALLOCA_H
679 ALLOCA
680 LTALLOCA
681 USE_GPGRT_CONFIG_FALSE
682 USE_GPGRT_CONFIG_TRUE
683 GPG_ERROR_MT_LIBS
684 GPG_ERROR_MT_CFLAGS
685 GPG_ERROR_LIBS
686 GPG_ERROR_CFLAGS
687 GPGRT_CONFIG
688 GPG_ERROR_CONFIG
689 HAVE_LD_VERSION_SCRIPT_FALSE
690 HAVE_LD_VERSION_SCRIPT_TRUE
691 HAVE_W32_SYSTEM_FALSE
692 HAVE_W32_SYSTEM_TRUE
693 COVERAGE_LDFLAGS
694 COVERAGE_CFLAGS
695 GENHTML
696 LCOV
697 SHTOOL
698 HAVE_GCOV_FALSE
699 HAVE_GCOV_TRUE
700 GCOV
701 YFLAGS
702 YACC
703 CPP
704 VERSION_NUMBER
705 LIBKSBA_LT_REVISION
706 LIBKSBA_LT_AGE
707 LIBKSBA_LT_CURRENT
708 EXEEXT_FOR_BUILD
709 CC_FOR_BUILD
710 MAINT
711 MAINTAINER_MODE_FALSE
712 MAINTAINER_MODE_TRUE
713 RC
714 OTOOL64
715 OTOOL
716 LIPO
717 NMEDIT
718 DSYMUTIL
719 MANIFEST_TOOL
720 RANLIB
721 ac_ct_AR
722 AR
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 LIBTOOL
733 OBJDUMP
734 DLLTOOL
735 AS
736 LDADD_FOR_TESTS_KLUDGE
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__include
745 DEPDIR
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 CSCOPE
766 ETAGS
767 CTAGS
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 AWK
774 mkdir_p
775 MKDIR_P
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 MAKEINFO
780 AUTOHEADER
781 AUTOMAKE
782 AUTOCONF
783 ACLOCAL
784 VERSION
785 PACKAGE
786 CYGPATH_W
787 am__isrc
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
791 target_alias
792 host_alias
793 build_alias
794 LIBS
795 ECHO_T
796 ECHO_N
797 ECHO_C
798 DEFS
799 mandir
800 localedir
801 libdir
802 psdir
803 pdfdir
804 dvidir
805 htmldir
806 infodir
807 docdir
808 oldincludedir
809 includedir
810 runstatedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL
830 am__quote'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_dependency_tracking
836 enable_static
837 enable_shared
838 with_pic
839 enable_fast_install
840 with_gnu_ld
841 with_sysroot
842 enable_libtool_lock
843 enable_maintainer_mode
844 enable_gcov
845 enable_optimization
846 enable_ld_version_script
847 with_libtool_modification
848 with_libgpg_error_prefix
849 with_gpg_error_prefix
850 enable_valgrind_tests
851 enable_build_timestamp
852 enable_doc
853 '
854       ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 YACC
864 YFLAGS
865 CC_FOR_BUILD'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921   # If the previous option needs an argument, assign it.
922   if test -n "$ac_prev"; then
923     eval $ac_prev=\$ac_option
924     ac_prev=
925     continue
926   fi
927
928   case $ac_option in
929   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930   *=)   ac_optarg= ;;
931   *)    ac_optarg=yes ;;
932   esac
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: \`$ac_useropt'"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -runstatedir | --runstatedir | --runstatedi | --runstated \
1156   | --runstate | --runstat | --runsta | --runst | --runs \
1157   | --run | --ru | --r)
1158     ac_prev=runstatedir ;;
1159   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161   | --run=* | --ru=* | --r=*)
1162     runstatedir=$ac_optarg ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: \`$ac_useropt'"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: \`$ac_useropt'"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261     ;;
1262
1263   *=*)
1264     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265     # Reject names that are not valid shell variable names.
1266     case $ac_envvar in #(
1267       '' | [0-9]* | *[!_$as_cr_alnum]* )
1268       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269     esac
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290   case $enable_option_checking in
1291     no) ;;
1292     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294   esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir runstatedir
1302 do
1303   eval ac_val=\$$ac_var
1304   # Remove trailing slashes.
1305   case $ac_val in
1306     */ )
1307       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308       eval $ac_var=\$ac_val;;
1309   esac
1310   # Be sure to have absolute directory names.
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures libksba 1.6.5 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking ...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/libksba]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 Program names:
1473   --program-prefix=PREFIX            prepend PREFIX to installed program names
1474   --program-suffix=SUFFIX            append SUFFIX to installed program names
1475   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of libksba 1.6.5:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-option-checking  ignore unrecognized --enable/--with options
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-silent-rules   less verbose build output (undo: "make V=1")
1494   --disable-silent-rules  verbose build output (undo: "make V=0")
1495   --enable-dependency-tracking
1496                           do not reject slow dependency extractors
1497   --disable-dependency-tracking
1498                           speeds up one-time build
1499   --enable-static[=PKGS]  build static libraries [default=no]
1500   --enable-shared[=PKGS]  build shared libraries [default=yes]
1501   --enable-fast-install[=PKGS]
1502                           optimize for fast installation [default=yes]
1503   --disable-libtool-lock  avoid locking (might break parallel builds)
1504   --enable-maintainer-mode
1505                           enable make rules and dependencies not useful (and
1506                           sometimes confusing) to the casual installer
1507   --enable-gcov           enable coverage testing with gcov
1508   --disable-optimization  disable compiler optimization
1509   --enable-ld-version-script
1510                           enable/disable use of linker version script.
1511                           (default is system dependent)
1512   --enable-valgrind-tests run self tests under valgrind
1513   --enable-build-timestamp
1514                           set an explicit build timestamp for reproducibility.
1515                           (default is the current time in ISO-8601 format)
1516   --disable-doc           do not build the documentation
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-sysroot=DIR Search for dependent libraries within DIR
1525                         (or the compiler's sysroot if not specified).
1526   --with-libtool-modification=apply|never|try
1527                           how to handle libtool modification (default=never)
1528   --with-libgpg-error-prefix=PFX
1529                           prefix where GPG Error is installed (optional)
1530
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CPP         C preprocessor
1541   YACC        The `Yet Another Compiler Compiler' implementation to use.
1542               Defaults to the first program found out of: `bison -y', `byacc',
1543               `yacc'.
1544   YFLAGS      The list of arguments that will be passed by default to $YACC.
1545               This script will default YFLAGS to the empty string to avoid a
1546               default value of `-d' given by some make applications.
1547   CC_FOR_BUILD
1548               build system C compiler
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <https://bugs.gnupg.org>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559   # If there are subdirs, report their specific --help.
1560   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561     test -d "$ac_dir" ||
1562       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563       continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for configure.gnu first; this name is used for a wrapper for
1600     # Metaconfig's "Configure" on case-insensitive file systems.
1601     if test -f "$ac_srcdir/configure.gnu"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604     elif test -f "$ac_srcdir/configure"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure" --help=recursive
1607     else
1608       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609     fi || ac_status=$?
1610     cd "$ac_pwd" || { ac_status=$?; break; }
1611   done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616   cat <<\_ACEOF
1617 libksba configure 1.6.5
1618 generated by GNU Autoconf 2.71
1619
1620 Copyright (C) 2021 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   rm -f conftest.$ac_objext conftest.beam
1638   if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645   (eval "$ac_compile") 2>conftest.err
1646   ac_status=$?
1647   if test -s conftest.err; then
1648     grep -v '^ *+' conftest.err >conftest.er1
1649     cat conftest.er1 >&5
1650     mv -f conftest.er1 conftest.err
1651   fi
1652   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653   test $ac_status = 0; } && {
1654          test -z "$ac_c_werror_flag" ||
1655          test ! -s conftest.err
1656        } && test -s conftest.$ac_objext
1657 then :
1658   ac_retval=0
1659 else $as_nop
1660   printf "%s\n" "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663         ac_retval=1
1664 fi
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 printf %s "checking for $2... " >&6; }
1679 if eval test \${$3+y}
1680 then :
1681   printf %s "(cached) " >&6
1682 else $as_nop
1683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"
1689 then :
1690   eval "$3=yes"
1691 else $as_nop
1692   eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 printf "%s\n" "$ac_res" >&6; }
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_link ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1710   if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 printf "%s\n" "$ac_try_echo"; } >&5
1717   (eval "$ac_link") 2>conftest.err
1718   ac_status=$?
1719   if test -s conftest.err; then
1720     grep -v '^ *+' conftest.err >conftest.er1
1721     cat conftest.er1 >&5
1722     mv -f conftest.er1 conftest.err
1723   fi
1724   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && {
1726          test -z "$ac_c_werror_flag" ||
1727          test ! -s conftest.err
1728        } && test -s conftest$ac_exeext && {
1729          test "$cross_compiling" = yes ||
1730          test -x conftest$ac_exeext
1731        }
1732 then :
1733   ac_retval=0
1734 else $as_nop
1735   printf "%s\n" "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
1740   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742   # interfere with the next link command; also delete a directory that is
1743   # left behind by Apple's compiler.  We do this before executing the actions.
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_link
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 printf %s "checking for $2... " >&6; }
1758 if eval test \${$3+y}
1759 then :
1760   printf %s "(cached) " >&6
1761 else $as_nop
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1766 #define $2 innocuous_$2
1767
1768 /* System header to define __stub macros and hopefully few prototypes,
1769    which can conflict with char $2 (); below.  */
1770
1771 #include <limits.h>
1772 #undef $2
1773
1774 /* Override any GCC internal prototype to avoid an error.
1775    Use char because int might match the return type of a GCC
1776    builtin and then its argument prototype would still apply.  */
1777 #ifdef __cplusplus
1778 extern "C"
1779 #endif
1780 char $2 ();
1781 /* The GNU C library defines this for functions which it implements
1782     to always fail with ENOSYS.  Some functions are actually named
1783     something starting with __ and the normal name is an alias.  */
1784 #if defined __stub_$2 || defined __stub___$2
1785 choke me
1786 #endif
1787
1788 int
1789 main (void)
1790 {
1791 return $2 ();
1792   ;
1793   return 0;
1794 }
1795 _ACEOF
1796 if ac_fn_c_try_link "$LINENO"
1797 then :
1798   eval "$3=yes"
1799 else $as_nop
1800   eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1803     conftest$ac_exeext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 printf "%s\n" "$ac_res" >&6; }
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_func
1811
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } > conftest.i && {
1834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835          test ! -s conftest.err
1836        }
1837 then :
1838   ac_retval=0
1839 else $as_nop
1840   printf "%s\n" "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843     ac_retval=1
1844 fi
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846   as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_cpp
1849
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1853 # executables *can* be run.
1854 ac_fn_c_try_run ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 printf "%s\n" "$ac_try_echo"; } >&5
1864   (eval "$ac_link") 2>&5
1865   ac_status=$?
1866   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868   { { case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 printf "%s\n" "$ac_try_echo"; } >&5
1874   (eval "$ac_try") 2>&5
1875   ac_status=$?
1876   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; }; }
1878 then :
1879   ac_retval=0
1880 else $as_nop
1881   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1882        printf "%s\n" "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885        ac_retval=$ac_status
1886 fi
1887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889   as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1894 # --------------------------------------------
1895 # Tries to find the compile-time value of EXPR in a program that includes
1896 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1897 # computed
1898 ac_fn_c_compute_int ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   if test "$cross_compiling" = yes; then
1902     # Depending upon the size, compute the lo and hi bounds.
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main (void)
1908 {
1909 static int test_array [1 - 2 * !(($2) >= 0)];
1910 test_array [0] = 0;
1911 return test_array [0];
1912
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"
1918 then :
1919   ac_lo=0 ac_mid=0
1920   while :; do
1921     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 $4
1924 int
1925 main (void)
1926 {
1927 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1928 test_array [0] = 0;
1929 return test_array [0];
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"
1936 then :
1937   ac_hi=$ac_mid; break
1938 else $as_nop
1939   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1940                         if test $ac_lo -le $ac_mid; then
1941                           ac_lo= ac_hi=
1942                           break
1943                         fi
1944                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1947   done
1948 else $as_nop
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main (void)
1954 {
1955 static int test_array [1 - 2 * !(($2) < 0)];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965   ac_hi=-1 ac_mid=-1
1966   while :; do
1967     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 $4
1970 int
1971 main (void)
1972 {
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1974 test_array [0] = 0;
1975 return test_array [0];
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"
1982 then :
1983   ac_lo=$ac_mid; break
1984 else $as_nop
1985   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1986                         if test $ac_mid -le $ac_hi; then
1987                           ac_lo= ac_hi=
1988                           break
1989                         fi
1990                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1993   done
1994 else $as_nop
1995   ac_lo= ac_hi=
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2000 # Binary search between lo and hi bounds.
2001 while test "x$ac_lo" != "x$ac_hi"; do
2002   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 int
2007 main (void)
2008 {
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010 test_array [0] = 0;
2011 return test_array [0];
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"
2018 then :
2019   ac_hi=$ac_mid
2020 else $as_nop
2021   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2024 done
2025 case $ac_lo in #((
2026 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2027 '') ac_retval=1 ;;
2028 esac
2029   else
2030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $4
2033 static long int longval (void) { return $2; }
2034 static unsigned long int ulongval (void) { return $2; }
2035 #include <stdio.h>
2036 #include <stdlib.h>
2037 int
2038 main (void)
2039 {
2040
2041   FILE *f = fopen ("conftest.val", "w");
2042   if (! f)
2043     return 1;
2044   if (($2) < 0)
2045     {
2046       long int i = longval ();
2047       if (i != ($2))
2048         return 1;
2049       fprintf (f, "%ld", i);
2050     }
2051   else
2052     {
2053       unsigned long int i = ulongval ();
2054       if (i != ($2))
2055         return 1;
2056       fprintf (f, "%lu", i);
2057     }
2058   /* Do not output a trailing newline, as this causes \r\n confusion
2059      on some platforms.  */
2060   return ferror (f) || fclose (f) != 0;
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_run "$LINENO"
2067 then :
2068   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2069 else $as_nop
2070   ac_retval=1
2071 fi
2072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2073   conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 rm -f conftest.val
2075
2076   fi
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078   as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_compute_int
2081
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 printf %s "checking for $2... " >&6; }
2091 if eval test \${$3+y}
2092 then :
2093   printf %s "(cached) " >&6
2094 else $as_nop
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main (void)
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 int
2114 main (void)
2115 {
2116 if (sizeof (($2)))
2117             return 0;
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"
2123 then :
2124
2125 else $as_nop
2126   eval "$3=yes"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 printf "%s\n" "$ac_res" >&6; }
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_type
2138 ac_configure_args_raw=
2139 for ac_arg
2140 do
2141   case $ac_arg in
2142   *\'*)
2143     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144   esac
2145   as_fn_append ac_configure_args_raw " '$ac_arg'"
2146 done
2147
2148 case $ac_configure_args_raw in
2149   *$as_nl*)
2150     ac_safe_unquote= ;;
2151   *)
2152     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2153     ac_unsafe_a="$ac_unsafe_z#~"
2154     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2155     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2156 esac
2157
2158 cat >config.log <<_ACEOF
2159 This file contains any messages produced by compilers while
2160 running configure, to aid debugging if configure makes a mistake.
2161
2162 It was created by libksba $as_me 1.6.5, which was
2163 generated by GNU Autoconf 2.71.  Invocation command line was
2164
2165   $ $0$ac_configure_args_raw
2166
2167 _ACEOF
2168 exec 5>>config.log
2169 {
2170 cat <<_ASUNAME
2171 ## --------- ##
2172 ## Platform. ##
2173 ## --------- ##
2174
2175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180
2181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2183
2184 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2185 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2187 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2188 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2189 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2190 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2191
2192 _ASUNAME
2193
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   case $as_dir in #(((
2199     '') as_dir=./ ;;
2200     */) ;;
2201     *) as_dir=$as_dir/ ;;
2202   esac
2203     printf "%s\n" "PATH: $as_dir"
2204   done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230   for ac_arg
2231   do
2232     case $ac_arg in
2233     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235     | -silent | --silent | --silen | --sile | --sil)
2236       continue ;;
2237     *\'*)
2238       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239     esac
2240     case $ac_pass in
2241     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242     2)
2243       as_fn_append ac_configure_args1 " '$ac_arg'"
2244       if test $ac_must_keep_next = true; then
2245         ac_must_keep_next=false # Got value, back to normal.
2246       else
2247         case $ac_arg in
2248           *=* | --config-cache | -C | -disable-* | --disable-* \
2249           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251           | -with-* | --with-* | -without-* | --without-* | --x)
2252             case "$ac_configure_args0 " in
2253               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254             esac
2255             ;;
2256           -* ) ac_must_keep_next=true ;;
2257         esac
2258       fi
2259       as_fn_append ac_configure_args " '$ac_arg'"
2260       ;;
2261     esac
2262   done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log.  We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273   # Sanitize IFS.
2274   IFS=" ""      $as_nl"
2275   # Save into config.log some information that might help in debugging.
2276   {
2277     echo
2278
2279     printf "%s\n" "## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##"
2282     echo
2283     # The following way of writing the cache mishandles newlines in values,
2284 (
2285   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286     eval ac_val=\$$ac_var
2287     case $ac_val in #(
2288     *${as_nl}*)
2289       case $ac_var in #(
2290       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292       esac
2293       case $ac_var in #(
2294       _ | IFS | as_nl) ;; #(
2295       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296       *) { eval $ac_var=; unset $ac_var;} ;;
2297       esac ;;
2298     esac
2299   done
2300   (set) 2>&1 |
2301     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302     *${as_nl}ac_space=\ *)
2303       sed -n \
2304         "s/'\''/'\''\\\\'\'''\''/g;
2305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306       ;; #(
2307     *)
2308       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309       ;;
2310     esac |
2311     sort
2312 )
2313     echo
2314
2315     printf "%s\n" "## ----------------- ##
2316 ## Output variables. ##
2317 ## ----------------- ##"
2318     echo
2319     for ac_var in $ac_subst_vars
2320     do
2321       eval ac_val=\$$ac_var
2322       case $ac_val in
2323       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324       esac
2325       printf "%s\n" "$ac_var='\''$ac_val'\''"
2326     done | sort
2327     echo
2328
2329     if test -n "$ac_subst_files"; then
2330       printf "%s\n" "## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##"
2333       echo
2334       for ac_var in $ac_subst_files
2335       do
2336         eval ac_val=\$$ac_var
2337         case $ac_val in
2338         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339         esac
2340         printf "%s\n" "$ac_var='\''$ac_val'\''"
2341       done | sort
2342       echo
2343     fi
2344
2345     if test -s confdefs.h; then
2346       printf "%s\n" "## ----------- ##
2347 ## confdefs.h. ##
2348 ## ----------- ##"
2349       echo
2350       cat confdefs.h
2351       echo
2352     fi
2353     test "$ac_signal" != 0 &&
2354       printf "%s\n" "$as_me: caught signal $ac_signal"
2355     printf "%s\n" "$as_me: exit $exit_status"
2356   } >&5
2357   rm -f core *.core core.conftest.* &&
2358     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359     exit $exit_status
2360 ' 0
2361 for ac_signal in 1 2 13 15; do
2362   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 done
2364 ac_signal=0
2365
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2368
2369 printf "%s\n" "/* confdefs.h */" > confdefs.h
2370
2371 # Predefined preprocessor variables.
2372
2373 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2374
2375 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2376
2377 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2378
2379 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2380
2381 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2382
2383 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2384
2385
2386 # Let the site file select an alternate cache file if it wants to.
2387 # Prefer an explicitly selected file to automatically selected ones.
2388 if test -n "$CONFIG_SITE"; then
2389   ac_site_files="$CONFIG_SITE"
2390 elif test "x$prefix" != xNONE; then
2391   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2392 else
2393   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2394 fi
2395
2396 for ac_site_file in $ac_site_files
2397 do
2398   case $ac_site_file in #(
2399   */*) :
2400      ;; #(
2401   *) :
2402     ac_site_file=./$ac_site_file ;;
2403 esac
2404   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2407     sed 's/^/| /' "$ac_site_file" >&5
2408     . "$ac_site_file" \
2409       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2411 as_fn_error $? "failed to load site script $ac_site_file
2412 See \`config.log' for more details" "$LINENO" 5; }
2413   fi
2414 done
2415
2416 if test -r "$cache_file"; then
2417   # Some versions of bash will fail to source /dev/null (special files
2418   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2419   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2421 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2422     case $cache_file in
2423       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2424       *)                      . "./$cache_file";;
2425     esac
2426   fi
2427 else
2428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2429 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2430   >$cache_file
2431 fi
2432
2433 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2434 # Test code for whether the C compiler supports C89 (global declarations)
2435 ac_c_conftest_c89_globals='
2436 /* Does the compiler advertise C89 conformance?
2437    Do not test the value of __STDC__, because some compilers set it to 0
2438    while being otherwise adequately conformant. */
2439 #if !defined __STDC__
2440 # error "Compiler does not advertise C89 conformance"
2441 #endif
2442
2443 #include <stddef.h>
2444 #include <stdarg.h>
2445 struct stat;
2446 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2447 struct buf { int x; };
2448 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450      char **p;
2451      int i;
2452 {
2453   return p[i];
2454 }
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2456 {
2457   char *s;
2458   va_list v;
2459   va_start (v,p);
2460   s = g (p, va_arg (v,int));
2461   va_end (v);
2462   return s;
2463 }
2464
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2466    function prototypes and stuff, but not \xHH hex character constants.
2467    These do not provoke an error unfortunately, instead are silently treated
2468    as an "x".  The following induces an error, until -std is added to get
2469    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2470    array size at least.  It is necessary to write \x00 == 0 to get something
2471    that is true only with -std.  */
2472 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2473
2474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2475    inside strings and character constants.  */
2476 #define FOO(x) '\''x'\''
2477 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2478
2479 int test (int i, double x);
2480 struct s1 {int (*f) (int a);};
2481 struct s2 {int (*f) (double a);};
2482 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2483                int, int);'
2484
2485 # Test code for whether the C compiler supports C89 (body of main).
2486 ac_c_conftest_c89_main='
2487 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2488 '
2489
2490 # Test code for whether the C compiler supports C99 (global declarations)
2491 ac_c_conftest_c99_globals='
2492 // Does the compiler advertise C99 conformance?
2493 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2494 # error "Compiler does not advertise C99 conformance"
2495 #endif
2496
2497 #include <stdbool.h>
2498 extern int puts (const char *);
2499 extern int printf (const char *, ...);
2500 extern int dprintf (int, const char *, ...);
2501 extern void *malloc (size_t);
2502
2503 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2504 // dprintf is used instead of fprintf to avoid needing to declare
2505 // FILE and stderr.
2506 #define debug(...) dprintf (2, __VA_ARGS__)
2507 #define showlist(...) puts (#__VA_ARGS__)
2508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2509 static void
2510 test_varargs_macros (void)
2511 {
2512   int x = 1234;
2513   int y = 5678;
2514   debug ("Flag");
2515   debug ("X = %d\n", x);
2516   showlist (The first, second, and third items.);
2517   report (x>y, "x is %d but y is %d", x, y);
2518 }
2519
2520 // Check long long types.
2521 #define BIG64 18446744073709551615ull
2522 #define BIG32 4294967295ul
2523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2524 #if !BIG_OK
2525   #error "your preprocessor is broken"
2526 #endif
2527 #if BIG_OK
2528 #else
2529   #error "your preprocessor is broken"
2530 #endif
2531 static long long int bignum = -9223372036854775807LL;
2532 static unsigned long long int ubignum = BIG64;
2533
2534 struct incomplete_array
2535 {
2536   int datasize;
2537   double data[];
2538 };
2539
2540 struct named_init {
2541   int number;
2542   const wchar_t *name;
2543   double average;
2544 };
2545
2546 typedef const char *ccp;
2547
2548 static inline int
2549 test_restrict (ccp restrict text)
2550 {
2551   // See if C++-style comments work.
2552   // Iterate through items via the restricted pointer.
2553   // Also check for declarations in for loops.
2554   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2555     continue;
2556   return 0;
2557 }
2558
2559 // Check varargs and va_copy.
2560 static bool
2561 test_varargs (const char *format, ...)
2562 {
2563   va_list args;
2564   va_start (args, format);
2565   va_list args_copy;
2566   va_copy (args_copy, args);
2567
2568   const char *str = "";
2569   int number = 0;
2570   float fnumber = 0;
2571
2572   while (*format)
2573     {
2574       switch (*format++)
2575         {
2576         case '\''s'\'': // string
2577           str = va_arg (args_copy, const char *);
2578           break;
2579         case '\''d'\'': // int
2580           number = va_arg (args_copy, int);
2581           break;
2582         case '\''f'\'': // float
2583           fnumber = va_arg (args_copy, double);
2584           break;
2585         default:
2586           break;
2587         }
2588     }
2589   va_end (args_copy);
2590   va_end (args);
2591
2592   return *str && number && fnumber;
2593 }
2594 '
2595
2596 # Test code for whether the C compiler supports C99 (body of main).
2597 ac_c_conftest_c99_main='
2598   // Check bool.
2599   _Bool success = false;
2600   success |= (argc != 0);
2601
2602   // Check restrict.
2603   if (test_restrict ("String literal") == 0)
2604     success = true;
2605   char *restrict newvar = "Another string";
2606
2607   // Check varargs.
2608   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2609   test_varargs_macros ();
2610
2611   // Check flexible array members.
2612   struct incomplete_array *ia =
2613     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2614   ia->datasize = 10;
2615   for (int i = 0; i < ia->datasize; ++i)
2616     ia->data[i] = i * 1.234;
2617
2618   // Check named initializers.
2619   struct named_init ni = {
2620     .number = 34,
2621     .name = L"Test wide string",
2622     .average = 543.34343,
2623   };
2624
2625   ni.number = 58;
2626
2627   int dynamic_array[ni.number];
2628   dynamic_array[0] = argv[0][0];
2629   dynamic_array[ni.number - 1] = 543;
2630
2631   // work around unused variable warnings
2632   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2633          || dynamic_array[ni.number - 1] != 543);
2634 '
2635
2636 # Test code for whether the C compiler supports C11 (global declarations)
2637 ac_c_conftest_c11_globals='
2638 // Does the compiler advertise C11 conformance?
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2640 # error "Compiler does not advertise C11 conformance"
2641 #endif
2642
2643 // Check _Alignas.
2644 char _Alignas (double) aligned_as_double;
2645 char _Alignas (0) no_special_alignment;
2646 extern char aligned_as_int;
2647 char _Alignas (0) _Alignas (int) aligned_as_int;
2648
2649 // Check _Alignof.
2650 enum
2651 {
2652   int_alignment = _Alignof (int),
2653   int_array_alignment = _Alignof (int[100]),
2654   char_alignment = _Alignof (char)
2655 };
2656 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2657
2658 // Check _Noreturn.
2659 int _Noreturn does_not_return (void) { for (;;) continue; }
2660
2661 // Check _Static_assert.
2662 struct test_static_assert
2663 {
2664   int x;
2665   _Static_assert (sizeof (int) <= sizeof (long int),
2666                   "_Static_assert does not work in struct");
2667   long int y;
2668 };
2669
2670 // Check UTF-8 literals.
2671 #define u8 syntax error!
2672 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2673
2674 // Check duplicate typedefs.
2675 typedef long *long_ptr;
2676 typedef long int *long_ptr;
2677 typedef long_ptr long_ptr;
2678
2679 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2680 struct anonymous
2681 {
2682   union {
2683     struct { int i; int j; };
2684     struct { int k; long int l; } w;
2685   };
2686   int m;
2687 } v1;
2688 '
2689
2690 # Test code for whether the C compiler supports C11 (body of main).
2691 ac_c_conftest_c11_main='
2692   _Static_assert ((offsetof (struct anonymous, i)
2693                    == offsetof (struct anonymous, w.k)),
2694                   "Anonymous union alignment botch");
2695   v1.i = 2;
2696   v1.w.k = 5;
2697   ok |= v1.i != 5;
2698 '
2699
2700 # Test code for whether the C compiler supports C11 (complete).
2701 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2702 ${ac_c_conftest_c99_globals}
2703 ${ac_c_conftest_c11_globals}
2704
2705 int
2706 main (int argc, char **argv)
2707 {
2708   int ok = 0;
2709   ${ac_c_conftest_c89_main}
2710   ${ac_c_conftest_c99_main}
2711   ${ac_c_conftest_c11_main}
2712   return ok;
2713 }
2714 "
2715
2716 # Test code for whether the C compiler supports C99 (complete).
2717 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2718 ${ac_c_conftest_c99_globals}
2719
2720 int
2721 main (int argc, char **argv)
2722 {
2723   int ok = 0;
2724   ${ac_c_conftest_c89_main}
2725   ${ac_c_conftest_c99_main}
2726   return ok;
2727 }
2728 "
2729
2730 # Test code for whether the C compiler supports C89 (complete).
2731 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2732
2733 int
2734 main (int argc, char **argv)
2735 {
2736   int ok = 0;
2737   ${ac_c_conftest_c89_main}
2738   return ok;
2739 }
2740 "
2741
2742 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2743 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2744 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2745 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2746 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2747 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2748 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2749 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2750 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2751 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2752
2753 # Auxiliary files required by this configure script.
2754 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2755
2756 # Locations in which to look for auxiliary files.
2757 ac_aux_dir_candidates="${srcdir}/build-aux"
2758
2759 # Search for a directory containing all of the required auxiliary files,
2760 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2761 # If we don't find one directory that contains all the files we need,
2762 # we report the set of missing files from the *first* directory in
2763 # $ac_aux_dir_candidates and give up.
2764 ac_missing_aux_files=""
2765 ac_first_candidate=:
2766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 as_found=false
2769 for as_dir in $ac_aux_dir_candidates
2770 do
2771   IFS=$as_save_IFS
2772   case $as_dir in #(((
2773     '') as_dir=./ ;;
2774     */) ;;
2775     *) as_dir=$as_dir/ ;;
2776   esac
2777   as_found=:
2778
2779   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2780   ac_aux_dir_found=yes
2781   ac_install_sh=
2782   for ac_aux in $ac_aux_files
2783   do
2784     # As a special case, if "install-sh" is required, that requirement
2785     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2786     # and $ac_install_sh is set appropriately for whichever one is found.
2787     if test x"$ac_aux" = x"install-sh"
2788     then
2789       if test -f "${as_dir}install-sh"; then
2790         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2791         ac_install_sh="${as_dir}install-sh -c"
2792       elif test -f "${as_dir}install.sh"; then
2793         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2794         ac_install_sh="${as_dir}install.sh -c"
2795       elif test -f "${as_dir}shtool"; then
2796         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2797         ac_install_sh="${as_dir}shtool install -c"
2798       else
2799         ac_aux_dir_found=no
2800         if $ac_first_candidate; then
2801           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2802         else
2803           break
2804         fi
2805       fi
2806     else
2807       if test -f "${as_dir}${ac_aux}"; then
2808         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2809       else
2810         ac_aux_dir_found=no
2811         if $ac_first_candidate; then
2812           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2813         else
2814           break
2815         fi
2816       fi
2817     fi
2818   done
2819   if test "$ac_aux_dir_found" = yes; then
2820     ac_aux_dir="$as_dir"
2821     break
2822   fi
2823   ac_first_candidate=false
2824
2825   as_found=false
2826 done
2827 IFS=$as_save_IFS
2828 if $as_found
2829 then :
2830
2831 else $as_nop
2832   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2833 fi
2834
2835
2836 # These three variables are undocumented and unsupported,
2837 # and are intended to be withdrawn in a future Autoconf release.
2838 # They can cause serious problems if a builder's source tree is in a directory
2839 # whose full name contains unusual characters.
2840 if test -f "${ac_aux_dir}config.guess"; then
2841   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2842 fi
2843 if test -f "${ac_aux_dir}config.sub"; then
2844   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2845 fi
2846 if test -f "$ac_aux_dir/configure"; then
2847   ac_configure="$SHELL ${ac_aux_dir}configure"
2848 fi
2849
2850 # Check that the precious variables saved in the cache have kept the same
2851 # value.
2852 ac_cache_corrupted=false
2853 for ac_var in $ac_precious_vars; do
2854   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2855   eval ac_new_set=\$ac_env_${ac_var}_set
2856   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2857   eval ac_new_val=\$ac_env_${ac_var}_value
2858   case $ac_old_set,$ac_new_set in
2859     set,)
2860       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2861 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2862       ac_cache_corrupted=: ;;
2863     ,set)
2864       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2865 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2866       ac_cache_corrupted=: ;;
2867     ,);;
2868     *)
2869       if test "x$ac_old_val" != "x$ac_new_val"; then
2870         # differences in whitespace do not lead to failure.
2871         ac_old_val_w=`echo x $ac_old_val`
2872         ac_new_val_w=`echo x $ac_new_val`
2873         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2874           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2875 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2876           ac_cache_corrupted=:
2877         else
2878           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2879 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2880           eval $ac_var=\$ac_old_val
2881         fi
2882         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2883 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2884         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2885 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2886       fi;;
2887   esac
2888   # Pass precious variables to config.status.
2889   if test "$ac_new_set" = set; then
2890     case $ac_new_val in
2891     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2892     *) ac_arg=$ac_var=$ac_new_val ;;
2893     esac
2894     case " $ac_configure_args " in
2895       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2896       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2897     esac
2898   fi
2899 done
2900 if $ac_cache_corrupted; then
2901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2903   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2904 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2905   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2906             and start over" "$LINENO" 5
2907 fi
2908 ## -------------------- ##
2909 ## Main body of script. ##
2910 ## -------------------- ##
2911
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
2918
2919
2920 # LT Version numbers: Remember to change them just *before* a release.
2921 #   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2922 #   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2923 #   (No interfaces changed:                   REVISION++)
2924 # Please remember to document interface changes in the NEWS file.
2925 LIBKSBA_LT_CURRENT=22
2926 LIBKSBA_LT_AGE=14
2927 LIBKSBA_LT_REVISION=5
2928 #-------------------
2929 # If the API is changed in an incompatible way: increment the next counter.
2930 KSBA_CONFIG_API_VERSION=1
2931
2932
2933 NEED_GPG_ERROR_VERSION=1.8
2934
2935
2936
2937
2938 am__api_version='1.16'
2939
2940
2941
2942   # Find a good install program.  We prefer a C program (faster),
2943 # so one script is as good as another.  But avoid the broken or
2944 # incompatible versions:
2945 # SysV /etc/install, /usr/sbin/install
2946 # SunOS /usr/etc/install
2947 # IRIX /sbin/install
2948 # AIX /bin/install
2949 # AmigaOS /C/install, which installs bootblocks on floppy discs
2950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2953 # OS/2's system install, which has a completely different semantic
2954 # ./install, which can be erroneously created by make from ./install.sh.
2955 # Reject install programs that cannot install multiple files.
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2957 printf %s "checking for a BSD-compatible install... " >&6; }
2958 if test -z "$INSTALL"; then
2959 if test ${ac_cv_path_install+y}
2960 then :
2961   printf %s "(cached) " >&6
2962 else $as_nop
2963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966   IFS=$as_save_IFS
2967   case $as_dir in #(((
2968     '') as_dir=./ ;;
2969     */) ;;
2970     *) as_dir=$as_dir/ ;;
2971   esac
2972     # Account for fact that we put trailing slashes in our PATH walk.
2973 case $as_dir in #((
2974   ./ | /[cC]/* | \
2975   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977   /usr/ucb/* ) ;;
2978   *)
2979     # OSF1 and SCO ODT 3.0 have their own names for install.
2980     # Don't use installbsd from OSF since it installs stuff as root
2981     # by default.
2982     for ac_prog in ginstall scoinst install; do
2983       for ac_exec_ext in '' $ac_executable_extensions; do
2984         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2985           if test $ac_prog = install &&
2986             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987             # AIX install.  It has an incompatible calling convention.
2988             :
2989           elif test $ac_prog = install &&
2990             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991             # program-specific install script used by HP pwplus--don't use.
2992             :
2993           else
2994             rm -rf conftest.one conftest.two conftest.dir
2995             echo one > conftest.one
2996             echo two > conftest.two
2997             mkdir conftest.dir
2998             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2999               test -s conftest.one && test -s conftest.two &&
3000               test -s conftest.dir/conftest.one &&
3001               test -s conftest.dir/conftest.two
3002             then
3003               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3004               break 3
3005             fi
3006           fi
3007         fi
3008       done
3009     done
3010     ;;
3011 esac
3012
3013   done
3014 IFS=$as_save_IFS
3015
3016 rm -rf conftest.one conftest.two conftest.dir
3017
3018 fi
3019   if test ${ac_cv_path_install+y}; then
3020     INSTALL=$ac_cv_path_install
3021   else
3022     # As a last resort, use the slow shell script.  Don't cache a
3023     # value for INSTALL within a source directory, because that will
3024     # break other packages using the cache if that directory is
3025     # removed, or if the value is a relative name.
3026     INSTALL=$ac_install_sh
3027   fi
3028 fi
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 printf "%s\n" "$INSTALL" >&6; }
3031
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 printf %s "checking whether build environment is sane... " >&6; }
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name.  Accept space and tab only in the latter.
3044 am_lf='
3045 '
3046 case `pwd` in
3047   *[\\\"\#\$\&\'\`$am_lf]*)
3048     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3049 esac
3050 case $srcdir in
3051   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3052     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3053 esac
3054
3055 # Do 'set' in a subshell so we don't clobber the current shell's
3056 # arguments.  Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3059 # directory).
3060 if (
3061    am_has_slept=no
3062    for am_try in 1 2; do
3063      echo "timestamp, slept: $am_has_slept" > conftest.file
3064      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065      if test "$*" = "X"; then
3066         # -L didn't work.
3067         set X `ls -t "$srcdir/configure" conftest.file`
3068      fi
3069      if test "$*" != "X $srcdir/configure conftest.file" \
3070         && test "$*" != "X conftest.file $srcdir/configure"; then
3071
3072         # If neither matched, then we have a broken ls.  This can happen
3073         # if, for instance, CONFIG_SHELL is bash and it inherits a
3074         # broken ls alias from the environment.  This has actually
3075         # happened.  Such a system could not be considered "sane".
3076         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3077   alias in your environment" "$LINENO" 5
3078      fi
3079      if test "$2" = conftest.file || test $am_try -eq 2; then
3080        break
3081      fi
3082      # Just in case.
3083      sleep 1
3084      am_has_slept=yes
3085    done
3086    test "$2" = conftest.file
3087    )
3088 then
3089    # Ok.
3090    :
3091 else
3092    as_fn_error $? "newly created file is older than distributed files!
3093 Check your system clock" "$LINENO" 5
3094 fi
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 printf "%s\n" "yes" >&6; }
3097 # If we didn't sleep, we still need to ensure time stamps of config.status and
3098 # generated files are strictly newer.
3099 am_sleep_pid=
3100 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3101   ( sleep 1 ) &
3102   am_sleep_pid=$!
3103 fi
3104
3105 rm -f conftest.file
3106
3107 test "$program_prefix" != NONE &&
3108   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3109 # Use a double $ so make ignores it.
3110 test "$program_suffix" != NONE &&
3111   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3112 # Double any \ or $.
3113 # By default was `s,x,x', remove it if useless.
3114 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3115 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3116
3117
3118 # Expand $ac_aux_dir to an absolute path.
3119 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3120
3121
3122   if test x"${MISSING+set}" != xset; then
3123   MISSING="\${SHELL} '$am_aux_dir/missing'"
3124 fi
3125 # Use eval to expand $SHELL
3126 if eval "$MISSING --is-lightweight"; then
3127   am_missing_run="$MISSING "
3128 else
3129   am_missing_run=
3130   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3131 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3132 fi
3133
3134 if test x"${install_sh+set}" != xset; then
3135   case $am_aux_dir in
3136   *\ * | *\     *)
3137     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3138   *)
3139     install_sh="\${SHELL} $am_aux_dir/install-sh"
3140   esac
3141 fi
3142
3143 # Installed binaries are usually stripped using 'strip' when the user
3144 # run "make install-strip".  However 'strip' might not be the right
3145 # tool to use in cross-compilation environments, therefore Automake
3146 # will honor the 'STRIP' environment variable to overrule this program.
3147 if test "$cross_compiling" != no; then
3148   if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}strip; ac_word=$2
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 printf %s "checking for $ac_word... " >&6; }
3153 if test ${ac_cv_prog_STRIP+y}
3154 then :
3155   printf %s "(cached) " >&6
3156 else $as_nop
3157   if test -n "$STRIP"; then
3158   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   case $as_dir in #(((
3165     '') as_dir=./ ;;
3166     */) ;;
3167     *) as_dir=$as_dir/ ;;
3168   esac
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 printf "%s\n" "$STRIP" >&6; }
3185 else
3186   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 printf "%s\n" "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$ac_cv_prog_STRIP"; then
3193   ac_ct_STRIP=$STRIP
3194   # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_ac_ct_STRIP+y}
3199 then :
3200   printf %s "(cached) " >&6
3201 else $as_nop
3202   if test -n "$ac_ct_STRIP"; then
3203   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   case $as_dir in #(((
3210     '') as_dir=./ ;;
3211     */) ;;
3212     *) as_dir=$as_dir/ ;;
3213   esac
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216     ac_cv_prog_ac_ct_STRIP="strip"
3217     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227 if test -n "$ac_ct_STRIP"; then
3228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3229 printf "%s\n" "$ac_ct_STRIP" >&6; }
3230 else
3231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3233 fi
3234
3235   if test "x$ac_ct_STRIP" = x; then
3236     STRIP=":"
3237   else
3238     case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244     STRIP=$ac_ct_STRIP
3245   fi
3246 else
3247   STRIP="$ac_cv_prog_STRIP"
3248 fi
3249
3250 fi
3251 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3252
3253
3254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3255 printf %s "checking for a race-free mkdir -p... " >&6; }
3256 if test -z "$MKDIR_P"; then
3257   if test ${ac_cv_path_mkdir+y}
3258 then :
3259   printf %s "(cached) " >&6
3260 else $as_nop
3261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3263 do
3264   IFS=$as_save_IFS
3265   case $as_dir in #(((
3266     '') as_dir=./ ;;
3267     */) ;;
3268     *) as_dir=$as_dir/ ;;
3269   esac
3270     for ac_prog in mkdir gmkdir; do
3271          for ac_exec_ext in '' $ac_executable_extensions; do
3272            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3273            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3274              'mkdir ('*'coreutils) '* | \
3275              'BusyBox '* | \
3276              'mkdir (fileutils) '4.1*)
3277                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3278                break 3;;
3279            esac
3280          done
3281        done
3282   done
3283 IFS=$as_save_IFS
3284
3285 fi
3286
3287   test -d ./--version && rmdir ./--version
3288   if test ${ac_cv_path_mkdir+y}; then
3289     MKDIR_P="$ac_cv_path_mkdir -p"
3290   else
3291     # As a last resort, use the slow shell script.  Don't cache a
3292     # value for MKDIR_P within a source directory, because that will
3293     # break other packages using the cache if that directory is
3294     # removed, or if the value is a relative name.
3295     MKDIR_P="$ac_install_sh -d"
3296   fi
3297 fi
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3299 printf "%s\n" "$MKDIR_P" >&6; }
3300
3301 for ac_prog in gawk mawk nawk awk
3302 do
3303   # Extract the first word of "$ac_prog", so it can be a program name with args.
3304 set dummy $ac_prog; ac_word=$2
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 printf %s "checking for $ac_word... " >&6; }
3307 if test ${ac_cv_prog_AWK+y}
3308 then :
3309   printf %s "(cached) " >&6
3310 else $as_nop
3311   if test -n "$AWK"; then
3312   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   case $as_dir in #(((
3319     '') as_dir=./ ;;
3320     */) ;;
3321     *) as_dir=$as_dir/ ;;
3322   esac
3323     for ac_exec_ext in '' $ac_executable_extensions; do
3324   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3325     ac_cv_prog_AWK="$ac_prog"
3326     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330   done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 AWK=$ac_cv_prog_AWK
3336 if test -n "$AWK"; then
3337   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3338 printf "%s\n" "$AWK" >&6; }
3339 else
3340   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 fi
3343
3344
3345   test -n "$AWK" && break
3346 done
3347
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3349 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3350 set x ${MAKE-make}
3351 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3352 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3353 then :
3354   printf %s "(cached) " >&6
3355 else $as_nop
3356   cat >conftest.make <<\_ACEOF
3357 SHELL = /bin/sh
3358 all:
3359         @echo '@@@%%%=$(MAKE)=@@@%%%'
3360 _ACEOF
3361 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3363   *@@@%%%=?*=@@@%%%*)
3364     eval ac_cv_prog_make_${ac_make}_set=yes;;
3365   *)
3366     eval ac_cv_prog_make_${ac_make}_set=no;;
3367 esac
3368 rm -f conftest.make
3369 fi
3370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 printf "%s\n" "yes" >&6; }
3373   SET_MAKE=
3374 else
3375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377   SET_MAKE="MAKE=${MAKE-make}"
3378 fi
3379
3380 rm -rf .tst 2>/dev/null
3381 mkdir .tst 2>/dev/null
3382 if test -d .tst; then
3383   am__leading_dot=.
3384 else
3385   am__leading_dot=_
3386 fi
3387 rmdir .tst 2>/dev/null
3388
3389 # Check whether --enable-silent-rules was given.
3390 if test ${enable_silent_rules+y}
3391 then :
3392   enableval=$enable_silent_rules;
3393 fi
3394
3395 case $enable_silent_rules in # (((
3396   yes) AM_DEFAULT_VERBOSITY=0;;
3397    no) AM_DEFAULT_VERBOSITY=1;;
3398     *) AM_DEFAULT_VERBOSITY=1;;
3399 esac
3400 am_make=${MAKE-make}
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3402 printf %s "checking whether $am_make supports nested variables... " >&6; }
3403 if test ${am_cv_make_support_nested_variables+y}
3404 then :
3405   printf %s "(cached) " >&6
3406 else $as_nop
3407   if printf "%s\n" 'TRUE=$(BAR$(V))
3408 BAR0=false
3409 BAR1=true
3410 V=1
3411 am__doit:
3412         @$(TRUE)
3413 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3414   am_cv_make_support_nested_variables=yes
3415 else
3416   am_cv_make_support_nested_variables=no
3417 fi
3418 fi
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3420 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3421 if test $am_cv_make_support_nested_variables = yes; then
3422     AM_V='$(V)'
3423   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3424 else
3425   AM_V=$AM_DEFAULT_VERBOSITY
3426   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3427 fi
3428 AM_BACKSLASH='\'
3429
3430 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3431   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3432   # is not polluted with repeated "-I."
3433   am__isrc=' -I$(srcdir)'
3434   # test to see if srcdir already configured
3435   if test -f $srcdir/config.status; then
3436     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3437   fi
3438 fi
3439
3440 # test whether we have cygpath
3441 if test -z "$CYGPATH_W"; then
3442   if (cygpath --version) >/dev/null 2>/dev/null; then
3443     CYGPATH_W='cygpath -w'
3444   else
3445     CYGPATH_W=echo
3446   fi
3447 fi
3448
3449
3450 # Define the identity of the package.
3451  PACKAGE='libksba'
3452  VERSION='1.6.5'
3453
3454
3455 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3456
3457
3458 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3459
3460 # Some tools Automake needs.
3461
3462 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3463
3464
3465 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3466
3467
3468 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3469
3470
3471 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3472
3473
3474 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3475
3476 # For better backward compatibility.  To be removed once Automake 1.9.x
3477 # dies out for good.  For more background, see:
3478 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3479 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3480 mkdir_p='$(MKDIR_P)'
3481
3482 # We need awk for the "check" target (and possibly the TAP driver).  The
3483 # system "awk" is bad on some platforms.
3484 # Always define AMTAR for backward compatibility.  Yes, it's still used
3485 # in the wild :-(  We should find a proper way to deprecate it ...
3486 AMTAR='$${TAR-tar}'
3487
3488
3489 # We'll loop over all known methods to create a tar archive until one works.
3490 _am_tools='gnutar  pax cpio none'
3491
3492 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3493
3494
3495
3496
3497
3498 # Variables for tags utilities; see am/tags.am
3499 if test -z "$CTAGS"; then
3500   CTAGS=ctags
3501 fi
3502
3503 if test -z "$ETAGS"; then
3504   ETAGS=etags
3505 fi
3506
3507 if test -z "$CSCOPE"; then
3508   CSCOPE=cscope
3509 fi
3510
3511
3512
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes.  So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3522   cat >&2 <<'END'
3523 Oops!
3524
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present.  This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3529
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message.  This
3532 can help us improve future automake versions.
3533
3534 END
3535   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536     echo 'Configuration will proceed anyway, since you have set the' >&2
3537     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3538     echo >&2
3539   else
3540     cat >&2 <<'END'
3541 Aborting the configuration process, to ensure you take notice of the issue.
3542
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3545
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3549
3550 END
3551     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3552   fi
3553 fi
3554
3555 ac_config_headers="$ac_config_headers config.h"
3556
3557
3558
3559
3560   # Make sure we can run config.sub.
3561 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3562   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3563
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3565 printf %s "checking build system type... " >&6; }
3566 if test ${ac_cv_build+y}
3567 then :
3568   printf %s "(cached) " >&6
3569 else $as_nop
3570   ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3573 test "x$ac_build_alias" = x &&
3574   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3575 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3576   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3577
3578 fi
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3580 printf "%s\n" "$ac_cv_build" >&6; }
3581 case $ac_cv_build in
3582 *-*-*) ;;
3583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3584 esac
3585 build=$ac_cv_build
3586 ac_save_IFS=$IFS; IFS='-'
3587 set x $ac_cv_build
3588 shift
3589 build_cpu=$1
3590 build_vendor=$2
3591 shift; shift
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3594 build_os=$*
3595 IFS=$ac_save_IFS
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3600 printf %s "checking host system type... " >&6; }
3601 if test ${ac_cv_host+y}
3602 then :
3603   printf %s "(cached) " >&6
3604 else $as_nop
3605   if test "x$host_alias" = x; then
3606   ac_cv_host=$ac_cv_build
3607 else
3608   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3609     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3610 fi
3611
3612 fi
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3614 printf "%s\n" "$ac_cv_host" >&6; }
3615 case $ac_cv_host in
3616 *-*-*) ;;
3617 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3618 esac
3619 host=$ac_cv_host
3620 ac_save_IFS=$IFS; IFS='-'
3621 set x $ac_cv_host
3622 shift
3623 host_cpu=$1
3624 host_vendor=$2
3625 shift; shift
3626 # Remember, the first character of IFS is used to create $*,
3627 # except with old shells:
3628 host_os=$*
3629 IFS=$ac_save_IFS
3630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3631
3632
3633
3634
3635
3636
3637         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3638 printf "%s\n" "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3639         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3640 printf "%s\n" "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3641         hostname=`hostname`
3642         if test "$hostname"; then
3643            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3644 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
3645         fi
3646
3647         date=`date +%Y%m%d-%H%M%S`
3648         if test "$?" != 0; then
3649            date=`date`
3650         fi
3651         if test "$date"; then
3652            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3653 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
3654         fi
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666 DEPDIR="${am__leading_dot}deps"
3667
3668 ac_config_commands="$ac_config_commands depfiles"
3669
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3671 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3672 cat > confinc.mk << 'END'
3673 am__doit:
3674         @echo this is the am__doit target >confinc.out
3675 .PHONY: am__doit
3676 END
3677 am__include="#"
3678 am__quote=
3679 # BSD make does it like this.
3680 echo '.include "confinc.mk" # ignored' > confmf.BSD
3681 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3682 echo 'include confinc.mk # ignored' > confmf.GNU
3683 _am_result=no
3684 for s in GNU BSD; do
3685   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3686    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3687    ac_status=$?
3688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689    (exit $ac_status); }
3690   case $?:`cat confinc.out 2>/dev/null` in #(
3691   '0:this is the am__doit target') :
3692     case $s in #(
3693   BSD) :
3694     am__include='.include' am__quote='"' ;; #(
3695   *) :
3696     am__include='include' am__quote='' ;;
3697 esac ;; #(
3698   *) :
3699      ;;
3700 esac
3701   if test "$am__include" != "#"; then
3702     _am_result="yes ($s style)"
3703     break
3704   fi
3705 done
3706 rm -f confinc.* confmf.*
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3708 printf "%s\n" "${_am_result}" >&6; }
3709
3710 # Check whether --enable-dependency-tracking was given.
3711 if test ${enable_dependency_tracking+y}
3712 then :
3713   enableval=$enable_dependency_tracking;
3714 fi
3715
3716 if test "x$enable_dependency_tracking" != xno; then
3717   am_depcomp="$ac_aux_dir/depcomp"
3718   AMDEPBACKSLASH='\'
3719   am__nodep='_no'
3720 fi
3721  if test "x$enable_dependency_tracking" != xno; then
3722   AMDEP_TRUE=
3723   AMDEP_FALSE='#'
3724 else
3725   AMDEP_TRUE='#'
3726   AMDEP_FALSE=
3727 fi
3728
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 if test -n "$ac_tool_prefix"; then
3736   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_prog_CC+y}
3741 then :
3742   printf %s "(cached) " >&6
3743 else $as_nop
3744   if test -n "$CC"; then
3745   ac_cv_prog_CC="$CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   case $as_dir in #(((
3752     '') as_dir=./ ;;
3753     */) ;;
3754     *) as_dir=$as_dir/ ;;
3755   esac
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3759     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763   done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 printf "%s\n" "$CC" >&6; }
3772 else
3773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777
3778 fi
3779 if test -z "$ac_cv_prog_CC"; then
3780   ac_ct_CC=$CC
3781   # Extract the first word of "gcc", so it can be a program name with args.
3782 set dummy gcc; ac_word=$2
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 printf %s "checking for $ac_word... " >&6; }
3785 if test ${ac_cv_prog_ac_ct_CC+y}
3786 then :
3787   printf %s "(cached) " >&6
3788 else $as_nop
3789   if test -n "$ac_ct_CC"; then
3790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   case $as_dir in #(((
3797     '') as_dir=./ ;;
3798     */) ;;
3799     *) as_dir=$as_dir/ ;;
3800   esac
3801     for ac_exec_ext in '' $ac_executable_extensions; do
3802   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3803     ac_cv_prog_ac_ct_CC="gcc"
3804     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3805     break 2
3806   fi
3807 done
3808   done
3809 IFS=$as_save_IFS
3810
3811 fi
3812 fi
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 printf "%s\n" "$ac_ct_CC" >&6; }
3817 else
3818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 printf "%s\n" "no" >&6; }
3820 fi
3821
3822   if test "x$ac_ct_CC" = x; then
3823     CC=""
3824   else
3825     case $cross_compiling:$ac_tool_warned in
3826 yes:)
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3830 esac
3831     CC=$ac_ct_CC
3832   fi
3833 else
3834   CC="$ac_cv_prog_CC"
3835 fi
3836
3837 if test -z "$CC"; then
3838           if test -n "$ac_tool_prefix"; then
3839     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3840 set dummy ${ac_tool_prefix}cc; ac_word=$2
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 printf %s "checking for $ac_word... " >&6; }
3843 if test ${ac_cv_prog_CC+y}
3844 then :
3845   printf %s "(cached) " >&6
3846 else $as_nop
3847   if test -n "$CC"; then
3848   ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853   IFS=$as_save_IFS
3854   case $as_dir in #(((
3855     '') as_dir=./ ;;
3856     */) ;;
3857     *) as_dir=$as_dir/ ;;
3858   esac
3859     for ac_exec_ext in '' $ac_executable_extensions; do
3860   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3861     ac_cv_prog_CC="${ac_tool_prefix}cc"
3862     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 CC=$ac_cv_prog_CC
3872 if test -n "$CC"; then
3873   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 printf "%s\n" "$CC" >&6; }
3875 else
3876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 printf "%s\n" "no" >&6; }
3878 fi
3879
3880
3881   fi
3882 fi
3883 if test -z "$CC"; then
3884   # Extract the first word of "cc", so it can be a program name with args.
3885 set dummy cc; ac_word=$2
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 printf %s "checking for $ac_word... " >&6; }
3888 if test ${ac_cv_prog_CC+y}
3889 then :
3890   printf %s "(cached) " >&6
3891 else $as_nop
3892   if test -n "$CC"; then
3893   ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895   ac_prog_rejected=no
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   case $as_dir in #(((
3901     '') as_dir=./ ;;
3902     */) ;;
3903     *) as_dir=$as_dir/ ;;
3904   esac
3905     for ac_exec_ext in '' $ac_executable_extensions; do
3906   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3907     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3908        ac_prog_rejected=yes
3909        continue
3910      fi
3911     ac_cv_prog_CC="cc"
3912     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916   done
3917 IFS=$as_save_IFS
3918
3919 if test $ac_prog_rejected = yes; then
3920   # We found a bogon in the path, so make sure we never use it.
3921   set dummy $ac_cv_prog_CC
3922   shift
3923   if test $# != 0; then
3924     # We chose a different compiler from the bogus one.
3925     # However, it has the same basename, so the bogon will be chosen
3926     # first if we set CC to just the basename; use the full file name.
3927     shift
3928     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3929   fi
3930 fi
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 printf "%s\n" "$CC" >&6; }
3937 else
3938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 printf "%s\n" "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 if test -z "$CC"; then
3945   if test -n "$ac_tool_prefix"; then
3946   for ac_prog in cl.exe
3947   do
3948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 printf %s "checking for $ac_word... " >&6; }
3952 if test ${ac_cv_prog_CC+y}
3953 then :
3954   printf %s "(cached) " >&6
3955 else $as_nop
3956   if test -n "$CC"; then
3957   ac_cv_prog_CC="$CC" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   case $as_dir in #(((
3964     '') as_dir=./ ;;
3965     */) ;;
3966     *) as_dir=$as_dir/ ;;
3967   esac
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3971     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 CC=$ac_cv_prog_CC
3981 if test -n "$CC"; then
3982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983 printf "%s\n" "$CC" >&6; }
3984 else
3985   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 printf "%s\n" "no" >&6; }
3987 fi
3988
3989
3990     test -n "$CC" && break
3991   done
3992 fi
3993 if test -z "$CC"; then
3994   ac_ct_CC=$CC
3995   for ac_prog in cl.exe
3996 do
3997   # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 printf %s "checking for $ac_word... " >&6; }
4001 if test ${ac_cv_prog_ac_ct_CC+y}
4002 then :
4003   printf %s "(cached) " >&6
4004 else $as_nop
4005   if test -n "$ac_ct_CC"; then
4006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   case $as_dir in #(((
4013     '') as_dir=./ ;;
4014     */) ;;
4015     *) as_dir=$as_dir/ ;;
4016   esac
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_ac_ct_CC="$ac_prog"
4020     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024   done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4032 printf "%s\n" "$ac_ct_CC" >&6; }
4033 else
4034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 printf "%s\n" "no" >&6; }
4036 fi
4037
4038
4039   test -n "$ac_ct_CC" && break
4040 done
4041
4042   if test "x$ac_ct_CC" = x; then
4043     CC=""
4044   else
4045     case $cross_compiling:$ac_tool_warned in
4046 yes:)
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049 ac_tool_warned=yes ;;
4050 esac
4051     CC=$ac_ct_CC
4052   fi
4053 fi
4054
4055 fi
4056 if test -z "$CC"; then
4057   if test -n "$ac_tool_prefix"; then
4058   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}clang; ac_word=$2
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 printf %s "checking for $ac_word... " >&6; }
4062 if test ${ac_cv_prog_CC+y}
4063 then :
4064   printf %s "(cached) " >&6
4065 else $as_nop
4066   if test -n "$CC"; then
4067   ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072   IFS=$as_save_IFS
4073   case $as_dir in #(((
4074     '') as_dir=./ ;;
4075     */) ;;
4076     *) as_dir=$as_dir/ ;;
4077   esac
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4080     ac_cv_prog_CC="${ac_tool_prefix}clang"
4081     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4082     break 2
4083   fi
4084 done
4085   done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 CC=$ac_cv_prog_CC
4091 if test -n "$CC"; then
4092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 printf "%s\n" "$CC" >&6; }
4094 else
4095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 printf "%s\n" "no" >&6; }
4097 fi
4098
4099
4100 fi
4101 if test -z "$ac_cv_prog_CC"; then
4102   ac_ct_CC=$CC
4103   # Extract the first word of "clang", so it can be a program name with args.
4104 set dummy clang; ac_word=$2
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 printf %s "checking for $ac_word... " >&6; }
4107 if test ${ac_cv_prog_ac_ct_CC+y}
4108 then :
4109   printf %s "(cached) " >&6
4110 else $as_nop
4111   if test -n "$ac_ct_CC"; then
4112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   case $as_dir in #(((
4119     '') as_dir=./ ;;
4120     */) ;;
4121     *) as_dir=$as_dir/ ;;
4122   esac
4123     for ac_exec_ext in '' $ac_executable_extensions; do
4124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4125     ac_cv_prog_ac_ct_CC="clang"
4126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4127     break 2
4128   fi
4129 done
4130   done
4131 IFS=$as_save_IFS
4132
4133 fi
4134 fi
4135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4136 if test -n "$ac_ct_CC"; then
4137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4138 printf "%s\n" "$ac_ct_CC" >&6; }
4139 else
4140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4142 fi
4143
4144   if test "x$ac_ct_CC" = x; then
4145     CC=""
4146   else
4147     case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153     CC=$ac_ct_CC
4154   fi
4155 else
4156   CC="$ac_cv_prog_CC"
4157 fi
4158
4159 fi
4160
4161
4162 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4166
4167 # Provide some information about the compiler.
4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4169 set X $ac_compile
4170 ac_compiler=$2
4171 for ac_option in --version -v -V -qversion -version; do
4172   { { ac_try="$ac_compiler $ac_option >&5"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 printf "%s\n" "$ac_try_echo"; } >&5
4179   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180   ac_status=$?
4181   if test -s conftest.err; then
4182     sed '10a\
4183 ... rest of stderr output deleted ...
4184          10q' conftest.err >conftest.er1
4185     cat conftest.er1 >&5
4186   fi
4187   rm -f conftest.er1 conftest.err
4188   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189   test $ac_status = 0; }
4190 done
4191
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194
4195 int
4196 main (void)
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 ac_clean_files_save=$ac_clean_files
4204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4205 # Try to create an executable without -o first, disregard a.out.
4206 # It will help us diagnose broken compilers, and finding out an intuition
4207 # of exeext.
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209 printf %s "checking whether the C compiler works... " >&6; }
4210 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4211
4212 # The possible output files:
4213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4214
4215 ac_rmfiles=
4216 for ac_file in $ac_files
4217 do
4218   case $ac_file in
4219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4220     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4221   esac
4222 done
4223 rm -f $ac_rmfiles
4224
4225 if { { ac_try="$ac_link_default"
4226 case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 printf "%s\n" "$ac_try_echo"; } >&5
4232   (eval "$ac_link_default") 2>&5
4233   ac_status=$?
4234   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235   test $ac_status = 0; }
4236 then :
4237   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4239 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4240 # so that the user can short-circuit this test for compilers unknown to
4241 # Autoconf.
4242 for ac_file in $ac_files ''
4243 do
4244   test -f "$ac_file" || continue
4245   case $ac_file in
4246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4247         ;;
4248     [ab].out )
4249         # We found the default executable, but exeext='' is most
4250         # certainly right.
4251         break;;
4252     *.* )
4253         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4254         then :; else
4255            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4256         fi
4257         # We set ac_cv_exeext here because the later test for it is not
4258         # safe: cross compilers may not add the suffix if given an `-o'
4259         # argument, so we may need to know it at that point already.
4260         # Even if this section looks crufty: it has the advantage of
4261         # actually working.
4262         break;;
4263     * )
4264         break;;
4265   esac
4266 done
4267 test "$ac_cv_exeext" = no && ac_cv_exeext=
4268
4269 else $as_nop
4270   ac_file=''
4271 fi
4272 if test -z "$ac_file"
4273 then :
4274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 printf "%s\n" "no" >&6; }
4276 printf "%s\n" "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error 77 "C compiler cannot create executables
4282 See \`config.log' for more details" "$LINENO" 5; }
4283 else $as_nop
4284   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 printf "%s\n" "yes" >&6; }
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288 printf %s "checking for C compiler default output file name... " >&6; }
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4290 printf "%s\n" "$ac_file" >&6; }
4291 ac_exeext=$ac_cv_exeext
4292
4293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4294 ac_clean_files=$ac_clean_files_save
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4296 printf %s "checking for suffix of executables... " >&6; }
4297 if { { ac_try="$ac_link"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 printf "%s\n" "$ac_try_echo"; } >&5
4304   (eval "$ac_link") 2>&5
4305   ac_status=$?
4306   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307   test $ac_status = 0; }
4308 then :
4309   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4310 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4311 # work properly (i.e., refer to `conftest.exe'), while it won't with
4312 # `rm'.
4313 for ac_file in conftest.exe conftest conftest.*; do
4314   test -f "$ac_file" || continue
4315   case $ac_file in
4316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4317     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4318           break;;
4319     * ) break;;
4320   esac
4321 done
4322 else $as_nop
4323   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4326 See \`config.log' for more details" "$LINENO" 5; }
4327 fi
4328 rm -f conftest conftest$ac_cv_exeext
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4330 printf "%s\n" "$ac_cv_exeext" >&6; }
4331
4332 rm -f conftest.$ac_ext
4333 EXEEXT=$ac_cv_exeext
4334 ac_exeext=$EXEEXT
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337 #include <stdio.h>
4338 int
4339 main (void)
4340 {
4341 FILE *f = fopen ("conftest.out", "w");
4342  return ferror (f) || fclose (f) != 0;
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 ac_clean_files="$ac_clean_files conftest.out"
4349 # Check that the compiler produces executables we can run.  If not, either
4350 # the compiler is broken, or we cross compile.
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4352 printf %s "checking whether we are cross compiling... " >&6; }
4353 if test "$cross_compiling" != yes; then
4354   { { ac_try="$ac_link"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 printf "%s\n" "$ac_try_echo"; } >&5
4361   (eval "$ac_link") 2>&5
4362   ac_status=$?
4363   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364   test $ac_status = 0; }
4365   if { ac_try='./conftest$ac_cv_exeext'
4366   { { case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 printf "%s\n" "$ac_try_echo"; } >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375   test $ac_status = 0; }; }; then
4376     cross_compiling=no
4377   else
4378     if test "$cross_compiling" = maybe; then
4379         cross_compiling=yes
4380     else
4381         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error 77 "cannot run C compiled programs.
4384 If you meant to cross compile, use \`--host'.
4385 See \`config.log' for more details" "$LINENO" 5; }
4386     fi
4387   fi
4388 fi
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4390 printf "%s\n" "$cross_compiling" >&6; }
4391
4392 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4393 ac_clean_files=$ac_clean_files_save
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4395 printf %s "checking for suffix of object files... " >&6; }
4396 if test ${ac_cv_objext+y}
4397 then :
4398   printf %s "(cached) " >&6
4399 else $as_nop
4400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402
4403 int
4404 main (void)
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.o conftest.obj
4412 if { { ac_try="$ac_compile"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 printf "%s\n" "$ac_try_echo"; } >&5
4419   (eval "$ac_compile") 2>&5
4420   ac_status=$?
4421   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; }
4423 then :
4424   for ac_file in conftest.o conftest.obj conftest.*; do
4425   test -f "$ac_file" || continue;
4426   case $ac_file in
4427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4429        break;;
4430   esac
4431 done
4432 else $as_nop
4433   printf "%s\n" "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error $? "cannot compute suffix of object files: cannot compile
4439 See \`config.log' for more details" "$LINENO" 5; }
4440 fi
4441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4442 fi
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4444 printf "%s\n" "$ac_cv_objext" >&6; }
4445 OBJEXT=$ac_cv_objext
4446 ac_objext=$OBJEXT
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4448 printf %s "checking whether the compiler supports GNU C... " >&6; }
4449 if test ${ac_cv_c_compiler_gnu+y}
4450 then :
4451   printf %s "(cached) " >&6
4452 else $as_nop
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455
4456 int
4457 main (void)
4458 {
4459 #ifndef __GNUC__
4460        choke me
4461 #endif
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_c_try_compile "$LINENO"
4468 then :
4469   ac_compiler_gnu=yes
4470 else $as_nop
4471   ac_compiler_gnu=no
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4475
4476 fi
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4478 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481 if test $ac_compiler_gnu = yes; then
4482   GCC=yes
4483 else
4484   GCC=
4485 fi
4486 ac_test_CFLAGS=${CFLAGS+y}
4487 ac_save_CFLAGS=$CFLAGS
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4489 printf %s "checking whether $CC accepts -g... " >&6; }
4490 if test ${ac_cv_prog_cc_g+y}
4491 then :
4492   printf %s "(cached) " >&6
4493 else $as_nop
4494   ac_save_c_werror_flag=$ac_c_werror_flag
4495    ac_c_werror_flag=yes
4496    ac_cv_prog_cc_g=no
4497    CFLAGS="-g"
4498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500
4501 int
4502 main (void)
4503 {
4504
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"
4510 then :
4511   ac_cv_prog_cc_g=yes
4512 else $as_nop
4513   CFLAGS=""
4514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516
4517 int
4518 main (void)
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"
4526 then :
4527
4528 else $as_nop
4529   ac_c_werror_flag=$ac_save_c_werror_flag
4530          CFLAGS="-g"
4531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533
4534 int
4535 main (void)
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"
4543 then :
4544   ac_cv_prog_cc_g=yes
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551    ac_c_werror_flag=$ac_save_c_werror_flag
4552 fi
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4554 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4555 if test $ac_test_CFLAGS; then
4556   CFLAGS=$ac_save_CFLAGS
4557 elif test $ac_cv_prog_cc_g = yes; then
4558   if test "$GCC" = yes; then
4559     CFLAGS="-g -O2"
4560   else
4561     CFLAGS="-g"
4562   fi
4563 else
4564   if test "$GCC" = yes; then
4565     CFLAGS="-O2"
4566   else
4567     CFLAGS=
4568   fi
4569 fi
4570 ac_prog_cc_stdc=no
4571 if test x$ac_prog_cc_stdc = xno
4572 then :
4573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4574 printf %s "checking for $CC option to enable C11 features... " >&6; }
4575 if test ${ac_cv_prog_cc_c11+y}
4576 then :
4577   printf %s "(cached) " >&6
4578 else $as_nop
4579   ac_cv_prog_cc_c11=no
4580 ac_save_CC=$CC
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 $ac_c_conftest_c11_program
4584 _ACEOF
4585 for ac_arg in '' -std=gnu11
4586 do
4587   CC="$ac_save_CC $ac_arg"
4588   if ac_fn_c_try_compile "$LINENO"
4589 then :
4590   ac_cv_prog_cc_c11=$ac_arg
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.beam
4593   test "x$ac_cv_prog_cc_c11" != "xno" && break
4594 done
4595 rm -f conftest.$ac_ext
4596 CC=$ac_save_CC
4597 fi
4598
4599 if test "x$ac_cv_prog_cc_c11" = xno
4600 then :
4601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4602 printf "%s\n" "unsupported" >&6; }
4603 else $as_nop
4604   if test "x$ac_cv_prog_cc_c11" = x
4605 then :
4606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4607 printf "%s\n" "none needed" >&6; }
4608 else $as_nop
4609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4610 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4611      CC="$CC $ac_cv_prog_cc_c11"
4612 fi
4613   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4614   ac_prog_cc_stdc=c11
4615 fi
4616 fi
4617 if test x$ac_prog_cc_stdc = xno
4618 then :
4619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4620 printf %s "checking for $CC option to enable C99 features... " >&6; }
4621 if test ${ac_cv_prog_cc_c99+y}
4622 then :
4623   printf %s "(cached) " >&6
4624 else $as_nop
4625   ac_cv_prog_cc_c99=no
4626 ac_save_CC=$CC
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 $ac_c_conftest_c99_program
4630 _ACEOF
4631 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4632 do
4633   CC="$ac_save_CC $ac_arg"
4634   if ac_fn_c_try_compile "$LINENO"
4635 then :
4636   ac_cv_prog_cc_c99=$ac_arg
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.beam
4639   test "x$ac_cv_prog_cc_c99" != "xno" && break
4640 done
4641 rm -f conftest.$ac_ext
4642 CC=$ac_save_CC
4643 fi
4644
4645 if test "x$ac_cv_prog_cc_c99" = xno
4646 then :
4647   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4648 printf "%s\n" "unsupported" >&6; }
4649 else $as_nop
4650   if test "x$ac_cv_prog_cc_c99" = x
4651 then :
4652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4653 printf "%s\n" "none needed" >&6; }
4654 else $as_nop
4655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4656 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4657      CC="$CC $ac_cv_prog_cc_c99"
4658 fi
4659   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4660   ac_prog_cc_stdc=c99
4661 fi
4662 fi
4663 if test x$ac_prog_cc_stdc = xno
4664 then :
4665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4666 printf %s "checking for $CC option to enable C89 features... " >&6; }
4667 if test ${ac_cv_prog_cc_c89+y}
4668 then :
4669   printf %s "(cached) " >&6
4670 else $as_nop
4671   ac_cv_prog_cc_c89=no
4672 ac_save_CC=$CC
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 $ac_c_conftest_c89_program
4676 _ACEOF
4677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4678 do
4679   CC="$ac_save_CC $ac_arg"
4680   if ac_fn_c_try_compile "$LINENO"
4681 then :
4682   ac_cv_prog_cc_c89=$ac_arg
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam
4685   test "x$ac_cv_prog_cc_c89" != "xno" && break
4686 done
4687 rm -f conftest.$ac_ext
4688 CC=$ac_save_CC
4689 fi
4690
4691 if test "x$ac_cv_prog_cc_c89" = xno
4692 then :
4693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4694 printf "%s\n" "unsupported" >&6; }
4695 else $as_nop
4696   if test "x$ac_cv_prog_cc_c89" = x
4697 then :
4698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699 printf "%s\n" "none needed" >&6; }
4700 else $as_nop
4701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4702 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4703      CC="$CC $ac_cv_prog_cc_c89"
4704 fi
4705   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4706   ac_prog_cc_stdc=c89
4707 fi
4708 fi
4709
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716
4717   ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4723 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4724 if test ${am_cv_prog_cc_c_o+y}
4725 then :
4726   printf %s "(cached) " >&6
4727 else $as_nop
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730
4731 int
4732 main (void)
4733 {
4734
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739   # Make sure it works both with $CC and with simple cc.
4740   # Following AC_PROG_CC_C_O, we do the test twice because some
4741   # compilers refuse to overwrite an existing .o file with -o,
4742   # though they will create one.
4743   am_cv_prog_cc_c_o=yes
4744   for am_i in 1 2; do
4745     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4746    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4747    ac_status=$?
4748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749    (exit $ac_status); } \
4750          && test -f conftest2.$ac_objext; then
4751       : OK
4752     else
4753       am_cv_prog_cc_c_o=no
4754       break
4755     fi
4756   done
4757   rm -f core conftest*
4758   unset am_i
4759 fi
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4761 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4762 if test "$am_cv_prog_cc_c_o" != yes; then
4763    # Losing compiler, so override with the script.
4764    # FIXME: It is wrong to rewrite CC.
4765    # But if we don't then we get into trouble of one sort or another.
4766    # A longer-term fix would be to have automake use am__CC in this case,
4767    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4768    CC="$am_aux_dir/compile $CC"
4769 fi
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
4776
4777 depcc="$CC"   am_compiler_list=
4778
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4780 printf %s "checking dependency style of $depcc... " >&6; }
4781 if test ${am_cv_CC_dependencies_compiler_type+y}
4782 then :
4783   printf %s "(cached) " >&6
4784 else $as_nop
4785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786   # We make a subdir and do the tests there.  Otherwise we can end up
4787   # making bogus files that we don't know about and never remove.  For
4788   # instance it was reported that on HP-UX the gcc test will end up
4789   # making a dummy file named 'D' -- because '-MD' means "put the output
4790   # in D".
4791   rm -rf conftest.dir
4792   mkdir conftest.dir
4793   # Copy depcomp to subdir because otherwise we won't find it if we're
4794   # using a relative directory.
4795   cp "$am_depcomp" conftest.dir
4796   cd conftest.dir
4797   # We will build objects and dependencies in a subdirectory because
4798   # it helps to detect inapplicable dependency modes.  For instance
4799   # both Tru64's cc and ICC support -MD to output dependencies as a
4800   # side effect of compilation, but ICC will put the dependencies in
4801   # the current directory while Tru64 will put them in the object
4802   # directory.
4803   mkdir sub
4804
4805   am_cv_CC_dependencies_compiler_type=none
4806   if test "$am_compiler_list" = ""; then
4807      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4808   fi
4809   am__universal=false
4810   case " $depcc " in #(
4811      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4812      esac
4813
4814   for depmode in $am_compiler_list; do
4815     # Setup a source with many dependencies, because some compilers
4816     # like to wrap large dependency lists on column 80 (with \), and
4817     # we should not choose a depcomp mode which is confused by this.
4818     #
4819     # We need to recreate these files for each test, as the compiler may
4820     # overwrite some of them when testing with obscure command lines.
4821     # This happens at least with the AIX C compiler.
4822     : > sub/conftest.c
4823     for i in 1 2 3 4 5 6; do
4824       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4825       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4826       # Solaris 10 /bin/sh.
4827       echo '/* dummy */' > sub/conftst$i.h
4828     done
4829     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4830
4831     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4832     # mode.  It turns out that the SunPro C++ compiler does not properly
4833     # handle '-M -o', and we need to detect this.  Also, some Intel
4834     # versions had trouble with output in subdirs.
4835     am__obj=sub/conftest.${OBJEXT-o}
4836     am__minus_obj="-o $am__obj"
4837     case $depmode in
4838     gcc)
4839       # This depmode causes a compiler race in universal mode.
4840       test "$am__universal" = false || continue
4841       ;;
4842     nosideeffect)
4843       # After this tag, mechanisms are not by side-effect, so they'll
4844       # only be used when explicitly requested.
4845       if test "x$enable_dependency_tracking" = xyes; then
4846         continue
4847       else
4848         break
4849       fi
4850       ;;
4851     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4852       # This compiler won't grok '-c -o', but also, the minuso test has
4853       # not run yet.  These depmodes are late enough in the game, and
4854       # so weak that their functioning should not be impacted.
4855       am__obj=conftest.${OBJEXT-o}
4856       am__minus_obj=
4857       ;;
4858     none) break ;;
4859     esac
4860     if depmode=$depmode \
4861        source=sub/conftest.c object=$am__obj \
4862        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4863        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4864          >/dev/null 2>conftest.err &&
4865        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4866        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4867        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4868        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4869       # icc doesn't choke on unknown options, it will just issue warnings
4870       # or remarks (even with -Werror).  So we grep stderr for any message
4871       # that says an option was ignored or not supported.
4872       # When given -MP, icc 7.0 and 7.1 complain thusly:
4873       #   icc: Command line warning: ignoring option '-M'; no argument required
4874       # The diagnosis changed in icc 8.0:
4875       #   icc: Command line remark: option '-MP' not supported
4876       if (grep 'ignoring option' conftest.err ||
4877           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4878         am_cv_CC_dependencies_compiler_type=$depmode
4879         break
4880       fi
4881     fi
4882   done
4883
4884   cd ..
4885   rm -rf conftest.dir
4886 else
4887   am_cv_CC_dependencies_compiler_type=none
4888 fi
4889
4890 fi
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4892 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4894
4895  if
4896   test "x$enable_dependency_tracking" != xno \
4897   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4898   am__fastdepCC_TRUE=
4899   am__fastdepCC_FALSE='#'
4900 else
4901   am__fastdepCC_TRUE='#'
4902   am__fastdepCC_FALSE=
4903 fi
4904
4905
4906
4907 ac_header= ac_cache=
4908 for ac_item in $ac_header_c_list
4909 do
4910   if test $ac_cache; then
4911     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4912     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4913       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4914     fi
4915     ac_header= ac_cache=
4916   elif test $ac_header; then
4917     ac_cache=$ac_item
4918   else
4919     ac_header=$ac_item
4920   fi
4921 done
4922
4923
4924
4925
4926
4927
4928
4929
4930 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4931 then :
4932
4933 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4934
4935 fi
4936
4937
4938
4939
4940
4941
4942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4943 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4944 if test ${ac_cv_safe_to_define___extensions__+y}
4945 then :
4946   printf %s "(cached) " >&6
4947 else $as_nop
4948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h.  */
4950
4951 #         define __EXTENSIONS__ 1
4952           $ac_includes_default
4953 int
4954 main (void)
4955 {
4956
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 if ac_fn_c_try_compile "$LINENO"
4962 then :
4963   ac_cv_safe_to_define___extensions__=yes
4964 else $as_nop
4965   ac_cv_safe_to_define___extensions__=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4971
4972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4973 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4974 if test ${ac_cv_should_define__xopen_source+y}
4975 then :
4976   printf %s "(cached) " >&6
4977 else $as_nop
4978   ac_cv_should_define__xopen_source=no
4979     if test $ac_cv_header_wchar_h = yes
4980 then :
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983
4984           #include <wchar.h>
4985           mbstate_t x;
4986 int
4987 main (void)
4988 {
4989
4990   ;
4991   return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"
4995 then :
4996
4997 else $as_nop
4998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h.  */
5000
5001             #define _XOPEN_SOURCE 500
5002             #include <wchar.h>
5003             mbstate_t x;
5004 int
5005 main (void)
5006 {
5007
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"
5013 then :
5014   ac_cv_should_define__xopen_source=yes
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5019 fi
5020 fi
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5022 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5023
5024   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5025
5026   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5027
5028   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5029
5030   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5031
5032   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5033
5034   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5035
5036   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5037
5038   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5039
5040   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5041
5042   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5043
5044   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5045
5046   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5047
5048   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5049
5050   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5051
5052   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5053
5054   if test $ac_cv_header_minix_config_h = yes
5055 then :
5056   MINIX=yes
5057     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5058
5059     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5060
5061     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5062
5063 else $as_nop
5064   MINIX=
5065 fi
5066   if test $ac_cv_safe_to_define___extensions__ = yes
5067 then :
5068   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5069
5070 fi
5071   if test $ac_cv_should_define__xopen_source = yes
5072 then :
5073   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5074
5075 fi
5076
5077
5078 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5079 case $host in
5080   *-*-linux*)
5081     if test -n "$LD_LIBRARY_PATH"; then
5082       saved_LDFLAGS="$LDFLAGS"
5083       LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5084       LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5085       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5086 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5087       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h.  */
5089
5090 int main (void) { return 0; }
5091
5092 _ACEOF
5093 if ac_fn_c_try_link "$LINENO"
5094 then :
5095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5096 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5097 else $as_nop
5098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 printf "%s\n" "no" >&6; }
5100        LDADD_FOR_TESTS_KLUDGE=""
5101
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5104     conftest$ac_exeext conftest.$ac_ext
5105       LDFLAGS="$saved_LDFLAGS"
5106     fi
5107     ;;
5108 esac
5109
5110
5111
5112 case `pwd` in
5113   *\ * | *\     *)
5114     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5115 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5116 esac
5117
5118
5119
5120 macro_version='2.4.2'
5121 macro_revision='1.3337'
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136 ltmain="$ac_aux_dir/ltmain.sh"
5137
5138 # Backslashify metacharacters that are still active within
5139 # double-quoted strings.
5140 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5141
5142 # Same as above, but do not quote variable references.
5143 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5144
5145 # Sed substitution to delay expansion of an escaped shell variable in a
5146 # double_quote_subst'ed string.
5147 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149 # Sed substitution to delay expansion of an escaped single quote.
5150 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5151
5152 # Sed substitution to avoid accidental globbing in evaled expressions
5153 no_glob_subst='s/\*/\\\*/g'
5154
5155 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5158
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160 printf %s "checking how to print strings... " >&6; }
5161 # Test print first, because it will be a builtin if present.
5162 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5163    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5164   ECHO='print -r --'
5165 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5166   ECHO='printf %s\n'
5167 else
5168   # Use this function as a fallback that always works.
5169   func_fallback_echo ()
5170   {
5171     eval 'cat <<_LTECHO_EOF
5172 $1
5173 _LTECHO_EOF'
5174   }
5175   ECHO='func_fallback_echo'
5176 fi
5177
5178 # func_echo_all arg...
5179 # Invoke $ECHO with all args, space-separated.
5180 func_echo_all ()
5181 {
5182     $ECHO ""
5183 }
5184
5185 case "$ECHO" in
5186   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187 printf "%s\n" "printf" >&6; } ;;
5188   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189 printf "%s\n" "print -r" >&6; } ;;
5190   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191 printf "%s\n" "cat" >&6; } ;;
5192 esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5208 printf %s "checking for a sed that does not truncate output... " >&6; }
5209 if test ${ac_cv_path_SED+y}
5210 then :
5211   printf %s "(cached) " >&6
5212 else $as_nop
5213             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5214      for ac_i in 1 2 3 4 5 6 7; do
5215        ac_script="$ac_script$as_nl$ac_script"
5216      done
5217      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5218      { ac_script=; unset ac_script;}
5219      if test -z "$SED"; then
5220   ac_path_SED_found=false
5221   # Loop through the user's path and test for each of PROGNAME-LIST
5222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   case $as_dir in #(((
5227     '') as_dir=./ ;;
5228     */) ;;
5229     *) as_dir=$as_dir/ ;;
5230   esac
5231     for ac_prog in sed gsed
5232    do
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5235       as_fn_executable_p "$ac_path_SED" || continue
5236 # Check for GNU ac_path_SED and select it if it is found.
5237   # Check for GNU $ac_path_SED
5238 case `"$ac_path_SED" --version 2>&1` in
5239 *GNU*)
5240   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5241 *)
5242   ac_count=0
5243   printf %s 0123456789 >"conftest.in"
5244   while :
5245   do
5246     cat "conftest.in" "conftest.in" >"conftest.tmp"
5247     mv "conftest.tmp" "conftest.in"
5248     cp "conftest.in" "conftest.nl"
5249     printf "%s\n" '' >> "conftest.nl"
5250     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252     as_fn_arith $ac_count + 1 && ac_count=$as_val
5253     if test $ac_count -gt ${ac_path_SED_max-0}; then
5254       # Best one so far, save it but keep looking for a better one
5255       ac_cv_path_SED="$ac_path_SED"
5256       ac_path_SED_max=$ac_count
5257     fi
5258     # 10*(2^10) chars as input seems more than enough
5259     test $ac_count -gt 10 && break
5260   done
5261   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 esac
5263
5264       $ac_path_SED_found && break 3
5265     done
5266   done
5267   done
5268 IFS=$as_save_IFS
5269   if test -z "$ac_cv_path_SED"; then
5270     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5271   fi
5272 else
5273   ac_cv_path_SED=$SED
5274 fi
5275
5276 fi
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5278 printf "%s\n" "$ac_cv_path_SED" >&6; }
5279  SED="$ac_cv_path_SED"
5280   rm -f conftest.sed
5281
5282 test -z "$SED" && SED=sed
5283 Xsed="$SED -e 1s/^X//"
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5296 printf %s "checking for grep that handles long lines and -e... " >&6; }
5297 if test ${ac_cv_path_GREP+y}
5298 then :
5299   printf %s "(cached) " >&6
5300 else $as_nop
5301   if test -z "$GREP"; then
5302   ac_path_GREP_found=false
5303   # Loop through the user's path and test for each of PROGNAME-LIST
5304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5306 do
5307   IFS=$as_save_IFS
5308   case $as_dir in #(((
5309     '') as_dir=./ ;;
5310     */) ;;
5311     *) as_dir=$as_dir/ ;;
5312   esac
5313     for ac_prog in grep ggrep
5314    do
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5317       as_fn_executable_p "$ac_path_GREP" || continue
5318 # Check for GNU ac_path_GREP and select it if it is found.
5319   # Check for GNU $ac_path_GREP
5320 case `"$ac_path_GREP" --version 2>&1` in
5321 *GNU*)
5322   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5323 *)
5324   ac_count=0
5325   printf %s 0123456789 >"conftest.in"
5326   while :
5327   do
5328     cat "conftest.in" "conftest.in" >"conftest.tmp"
5329     mv "conftest.tmp" "conftest.in"
5330     cp "conftest.in" "conftest.nl"
5331     printf "%s\n" 'GREP' >> "conftest.nl"
5332     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334     as_fn_arith $ac_count + 1 && ac_count=$as_val
5335     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5336       # Best one so far, save it but keep looking for a better one
5337       ac_cv_path_GREP="$ac_path_GREP"
5338       ac_path_GREP_max=$ac_count
5339     fi
5340     # 10*(2^10) chars as input seems more than enough
5341     test $ac_count -gt 10 && break
5342   done
5343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5345
5346       $ac_path_GREP_found && break 3
5347     done
5348   done
5349   done
5350 IFS=$as_save_IFS
5351   if test -z "$ac_cv_path_GREP"; then
5352     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353   fi
5354 else
5355   ac_cv_path_GREP=$GREP
5356 fi
5357
5358 fi
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5360 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5361  GREP="$ac_cv_path_GREP"
5362
5363
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5365 printf %s "checking for egrep... " >&6; }
5366 if test ${ac_cv_path_EGREP+y}
5367 then :
5368   printf %s "(cached) " >&6
5369 else $as_nop
5370   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5371    then ac_cv_path_EGREP="$GREP -E"
5372    else
5373      if test -z "$EGREP"; then
5374   ac_path_EGREP_found=false
5375   # Loop through the user's path and test for each of PROGNAME-LIST
5376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5378 do
5379   IFS=$as_save_IFS
5380   case $as_dir in #(((
5381     '') as_dir=./ ;;
5382     */) ;;
5383     *) as_dir=$as_dir/ ;;
5384   esac
5385     for ac_prog in egrep
5386    do
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5389       as_fn_executable_p "$ac_path_EGREP" || continue
5390 # Check for GNU ac_path_EGREP and select it if it is found.
5391   # Check for GNU $ac_path_EGREP
5392 case `"$ac_path_EGREP" --version 2>&1` in
5393 *GNU*)
5394   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5395 *)
5396   ac_count=0
5397   printf %s 0123456789 >"conftest.in"
5398   while :
5399   do
5400     cat "conftest.in" "conftest.in" >"conftest.tmp"
5401     mv "conftest.tmp" "conftest.in"
5402     cp "conftest.in" "conftest.nl"
5403     printf "%s\n" 'EGREP' >> "conftest.nl"
5404     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5405     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5406     as_fn_arith $ac_count + 1 && ac_count=$as_val
5407     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5408       # Best one so far, save it but keep looking for a better one
5409       ac_cv_path_EGREP="$ac_path_EGREP"
5410       ac_path_EGREP_max=$ac_count
5411     fi
5412     # 10*(2^10) chars as input seems more than enough
5413     test $ac_count -gt 10 && break
5414   done
5415   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5416 esac
5417
5418       $ac_path_EGREP_found && break 3
5419     done
5420   done
5421   done
5422 IFS=$as_save_IFS
5423   if test -z "$ac_cv_path_EGREP"; then
5424     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5425   fi
5426 else
5427   ac_cv_path_EGREP=$EGREP
5428 fi
5429
5430    fi
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5433 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5434  EGREP="$ac_cv_path_EGREP"
5435
5436
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5438 printf %s "checking for fgrep... " >&6; }
5439 if test ${ac_cv_path_FGREP+y}
5440 then :
5441   printf %s "(cached) " >&6
5442 else $as_nop
5443   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5444    then ac_cv_path_FGREP="$GREP -F"
5445    else
5446      if test -z "$FGREP"; then
5447   ac_path_FGREP_found=false
5448   # Loop through the user's path and test for each of PROGNAME-LIST
5449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5451 do
5452   IFS=$as_save_IFS
5453   case $as_dir in #(((
5454     '') as_dir=./ ;;
5455     */) ;;
5456     *) as_dir=$as_dir/ ;;
5457   esac
5458     for ac_prog in fgrep
5459    do
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5462       as_fn_executable_p "$ac_path_FGREP" || continue
5463 # Check for GNU ac_path_FGREP and select it if it is found.
5464   # Check for GNU $ac_path_FGREP
5465 case `"$ac_path_FGREP" --version 2>&1` in
5466 *GNU*)
5467   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5468 *)
5469   ac_count=0
5470   printf %s 0123456789 >"conftest.in"
5471   while :
5472   do
5473     cat "conftest.in" "conftest.in" >"conftest.tmp"
5474     mv "conftest.tmp" "conftest.in"
5475     cp "conftest.in" "conftest.nl"
5476     printf "%s\n" 'FGREP' >> "conftest.nl"
5477     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479     as_fn_arith $ac_count + 1 && ac_count=$as_val
5480     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5481       # Best one so far, save it but keep looking for a better one
5482       ac_cv_path_FGREP="$ac_path_FGREP"
5483       ac_path_FGREP_max=$ac_count
5484     fi
5485     # 10*(2^10) chars as input seems more than enough
5486     test $ac_count -gt 10 && break
5487   done
5488   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5490
5491       $ac_path_FGREP_found && break 3
5492     done
5493   done
5494   done
5495 IFS=$as_save_IFS
5496   if test -z "$ac_cv_path_FGREP"; then
5497     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5498   fi
5499 else
5500   ac_cv_path_FGREP=$FGREP
5501 fi
5502
5503    fi
5504 fi
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5506 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5507  FGREP="$ac_cv_path_FGREP"
5508
5509
5510 test -z "$GREP" && GREP=grep
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 # Check whether --with-gnu-ld was given.
5531 if test ${with_gnu_ld+y}
5532 then :
5533   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5534 else $as_nop
5535   with_gnu_ld=no
5536 fi
5537
5538 ac_prog=ld
5539 if test "$GCC" = yes; then
5540   # Check if gcc -print-prog-name=ld gives a path.
5541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5542 printf %s "checking for ld used by $CC... " >&6; }
5543   case $host in
5544   *-*-mingw*)
5545     # gcc leaves a trailing carriage return which upsets mingw
5546     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5547   *)
5548     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5549   esac
5550   case $ac_prog in
5551     # Accept absolute paths.
5552     [\\/]* | ?:[\\/]*)
5553       re_direlt='/[^/][^/]*/\.\./'
5554       # Canonicalize the pathname of ld
5555       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5556       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5557         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5558       done
5559       test -z "$LD" && LD="$ac_prog"
5560       ;;
5561   "")
5562     # If it fails, then pretend we aren't using GCC.
5563     ac_prog=ld
5564     ;;
5565   *)
5566     # If it is relative, then search for the first ld in PATH.
5567     with_gnu_ld=unknown
5568     ;;
5569   esac
5570 elif test "$with_gnu_ld" = yes; then
5571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5572 printf %s "checking for GNU ld... " >&6; }
5573 else
5574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5575 printf %s "checking for non-GNU ld... " >&6; }
5576 fi
5577 if test ${lt_cv_path_LD+y}
5578 then :
5579   printf %s "(cached) " >&6
5580 else $as_nop
5581   if test -z "$LD"; then
5582   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583   for ac_dir in $PATH; do
5584     IFS="$lt_save_ifs"
5585     test -z "$ac_dir" && ac_dir=.
5586     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587       lt_cv_path_LD="$ac_dir/$ac_prog"
5588       # Check to see if the program is GNU ld.  I'd rather use --version,
5589       # but apparently some variants of GNU ld only accept -v.
5590       # Break only if it was the GNU/non-GNU ld that we prefer.
5591       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592       *GNU* | *'with BFD'*)
5593         test "$with_gnu_ld" != no && break
5594         ;;
5595       *)
5596         test "$with_gnu_ld" != yes && break
5597         ;;
5598       esac
5599     fi
5600   done
5601   IFS="$lt_save_ifs"
5602 else
5603   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5604 fi
5605 fi
5606
5607 LD="$lt_cv_path_LD"
5608 if test -n "$LD"; then
5609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5610 printf "%s\n" "$LD" >&6; }
5611 else
5612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 printf "%s\n" "no" >&6; }
5614 fi
5615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5617 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5618 if test ${lt_cv_prog_gnu_ld+y}
5619 then :
5620   printf %s "(cached) " >&6
5621 else $as_nop
5622   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5623 case `$LD -v 2>&1 </dev/null` in
5624 *GNU* | *'with BFD'*)
5625   lt_cv_prog_gnu_ld=yes
5626   ;;
5627 *)
5628   lt_cv_prog_gnu_ld=no
5629   ;;
5630 esac
5631 fi
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5633 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5634 with_gnu_ld=$lt_cv_prog_gnu_ld
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5645 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5646 if test ${lt_cv_path_NM+y}
5647 then :
5648   printf %s "(cached) " >&6
5649 else $as_nop
5650   if test -n "$NM"; then
5651   # Let the user override the test.
5652   lt_cv_path_NM="$NM"
5653 else
5654   lt_nm_to_check="${ac_tool_prefix}nm"
5655   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5656     lt_nm_to_check="$lt_nm_to_check nm"
5657   fi
5658   for lt_tmp_nm in $lt_nm_to_check; do
5659     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5660     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5661       IFS="$lt_save_ifs"
5662       test -z "$ac_dir" && ac_dir=.
5663       tmp_nm="$ac_dir/$lt_tmp_nm"
5664       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5665         # Check to see if the nm accepts a BSD-compat flag.
5666         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5667         #   nm: unknown option "B" ignored
5668         # Tru64's nm complains that /dev/null is an invalid object file
5669         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5670         */dev/null* | *'Invalid file or object type'*)
5671           lt_cv_path_NM="$tmp_nm -B"
5672           break
5673           ;;
5674         *)
5675           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5676           */dev/null*)
5677             lt_cv_path_NM="$tmp_nm -p"
5678             break
5679             ;;
5680           *)
5681             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5682             continue # so that we can try to find one that supports BSD flags
5683             ;;
5684           esac
5685           ;;
5686         esac
5687       fi
5688     done
5689     IFS="$lt_save_ifs"
5690   done
5691   : ${lt_cv_path_NM=no}
5692 fi
5693 fi
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5695 printf "%s\n" "$lt_cv_path_NM" >&6; }
5696 if test "$lt_cv_path_NM" != "no"; then
5697   NM="$lt_cv_path_NM"
5698 else
5699   # Didn't find any BSD compatible name lister, look for dumpbin.
5700   if test -n "$DUMPBIN"; then :
5701     # Let the user override the test.
5702   else
5703     if test -n "$ac_tool_prefix"; then
5704   for ac_prog in dumpbin "link -dump"
5705   do
5706     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_DUMPBIN+y}
5711 then :
5712   printf %s "(cached) " >&6
5713 else $as_nop
5714   if test -n "$DUMPBIN"; then
5715   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   case $as_dir in #(((
5722     '') as_dir=./ ;;
5723     */) ;;
5724     *) as_dir=$as_dir/ ;;
5725   esac
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5729     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 DUMPBIN=$ac_cv_prog_DUMPBIN
5739 if test -n "$DUMPBIN"; then
5740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5741 printf "%s\n" "$DUMPBIN" >&6; }
5742 else
5743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5745 fi
5746
5747
5748     test -n "$DUMPBIN" && break
5749   done
5750 fi
5751 if test -z "$DUMPBIN"; then
5752   ac_ct_DUMPBIN=$DUMPBIN
5753   for ac_prog in dumpbin "link -dump"
5754 do
5755   # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 printf %s "checking for $ac_word... " >&6; }
5759 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5760 then :
5761   printf %s "(cached) " >&6
5762 else $as_nop
5763   if test -n "$ac_ct_DUMPBIN"; then
5764   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   case $as_dir in #(((
5771     '') as_dir=./ ;;
5772     */) ;;
5773     *) as_dir=$as_dir/ ;;
5774   esac
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5778     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5788 if test -n "$ac_ct_DUMPBIN"; then
5789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5790 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5791 else
5792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 printf "%s\n" "no" >&6; }
5794 fi
5795
5796
5797   test -n "$ac_ct_DUMPBIN" && break
5798 done
5799
5800   if test "x$ac_ct_DUMPBIN" = x; then
5801     DUMPBIN=":"
5802   else
5803     case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809     DUMPBIN=$ac_ct_DUMPBIN
5810   fi
5811 fi
5812
5813     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5814     *COFF*)
5815       DUMPBIN="$DUMPBIN -symbols"
5816       ;;
5817     *)
5818       DUMPBIN=:
5819       ;;
5820     esac
5821   fi
5822
5823   if test "$DUMPBIN" != ":"; then
5824     NM="$DUMPBIN"
5825   fi
5826 fi
5827 test -z "$NM" && NM=nm
5828
5829
5830
5831
5832
5833
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5835 printf %s "checking the name lister ($NM) interface... " >&6; }
5836 if test ${lt_cv_nm_interface+y}
5837 then :
5838   printf %s "(cached) " >&6
5839 else $as_nop
5840   lt_cv_nm_interface="BSD nm"
5841   echo "int some_variable = 0;" > conftest.$ac_ext
5842   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5843   (eval "$ac_compile" 2>conftest.err)
5844   cat conftest.err >&5
5845   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5846   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5847   cat conftest.err >&5
5848   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5849   cat conftest.out >&5
5850   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5851     lt_cv_nm_interface="MS dumpbin"
5852   fi
5853   rm -f conftest*
5854 fi
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5856 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5857
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5859 printf %s "checking whether ln -s works... " >&6; }
5860 LN_S=$as_ln_s
5861 if test "$LN_S" = "ln -s"; then
5862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863 printf "%s\n" "yes" >&6; }
5864 else
5865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5866 printf "%s\n" "no, using $LN_S" >&6; }
5867 fi
5868
5869 # find the maximum length of command line arguments
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5871 printf %s "checking the maximum length of command line arguments... " >&6; }
5872 if test ${lt_cv_sys_max_cmd_len+y}
5873 then :
5874   printf %s "(cached) " >&6
5875 else $as_nop
5876     i=0
5877   teststring="ABCD"
5878
5879   case $build_os in
5880   msdosdjgpp*)
5881     # On DJGPP, this test can blow up pretty badly due to problems in libc
5882     # (any single argument exceeding 2000 bytes causes a buffer overrun
5883     # during glob expansion).  Even if it were fixed, the result of this
5884     # check would be larger than it should be.
5885     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5886     ;;
5887
5888   gnu*)
5889     # Under GNU Hurd, this test is not required because there is
5890     # no limit to the length of command line arguments.
5891     # Libtool will interpret -1 as no limit whatsoever
5892     lt_cv_sys_max_cmd_len=-1;
5893     ;;
5894
5895   cygwin* | mingw* | cegcc*)
5896     # On Win9x/ME, this test blows up -- it succeeds, but takes
5897     # about 5 minutes as the teststring grows exponentially.
5898     # Worse, since 9x/ME are not pre-emptively multitasking,
5899     # you end up with a "frozen" computer, even though with patience
5900     # the test eventually succeeds (with a max line length of 256k).
5901     # Instead, let's just punt: use the minimum linelength reported by
5902     # all of the supported platforms: 8192 (on NT/2K/XP).
5903     lt_cv_sys_max_cmd_len=8192;
5904     ;;
5905
5906   mint*)
5907     # On MiNT this can take a long time and run out of memory.
5908     lt_cv_sys_max_cmd_len=8192;
5909     ;;
5910
5911   amigaos*)
5912     # On AmigaOS with pdksh, this test takes hours, literally.
5913     # So we just punt and use a minimum line length of 8192.
5914     lt_cv_sys_max_cmd_len=8192;
5915     ;;
5916
5917   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5918     # This has been around since 386BSD, at least.  Likely further.
5919     if test -x /sbin/sysctl; then
5920       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5921     elif test -x /usr/sbin/sysctl; then
5922       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5923     else
5924       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5925     fi
5926     # And add a safety zone
5927     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5928     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5929     ;;
5930
5931   interix*)
5932     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5933     lt_cv_sys_max_cmd_len=196608
5934     ;;
5935
5936   os2*)
5937     # The test takes a long time on OS/2.
5938     lt_cv_sys_max_cmd_len=8192
5939     ;;
5940
5941   osf*)
5942     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5943     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5944     # nice to cause kernel panics so lets avoid the loop below.
5945     # First set a reasonable default.
5946     lt_cv_sys_max_cmd_len=16384
5947     #
5948     if test -x /sbin/sysconfig; then
5949       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5950         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5951       esac
5952     fi
5953     ;;
5954   sco3.2v5*)
5955     lt_cv_sys_max_cmd_len=102400
5956     ;;
5957   sysv5* | sco5v6* | sysv4.2uw2*)
5958     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5959     if test -n "$kargmax"; then
5960       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5961     else
5962       lt_cv_sys_max_cmd_len=32768
5963     fi
5964     ;;
5965   *)
5966     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5967     if test -n "$lt_cv_sys_max_cmd_len"; then
5968       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970     else
5971       # Make teststring a little bigger before we do anything with it.
5972       # a 1K string should be a reasonable start.
5973       for i in 1 2 3 4 5 6 7 8 ; do
5974         teststring=$teststring$teststring
5975       done
5976       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5977       # If test is not a shell built-in, we'll probably end up computing a
5978       # maximum length that is only half of the actual maximum length, but
5979       # we can't tell.
5980       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5981                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5982               test $i != 17 # 1/2 MB should be enough
5983       do
5984         i=`expr $i + 1`
5985         teststring=$teststring$teststring
5986       done
5987       # Only check the string length outside the loop.
5988       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5989       teststring=
5990       # Add a significant safety factor because C++ compilers can tack on
5991       # massive amounts of additional arguments before passing them to the
5992       # linker.  It appears as though 1/2 is a usable value.
5993       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5994     fi
5995     ;;
5996   esac
5997
5998 fi
5999
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6002 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6003 else
6004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6005 printf "%s\n" "none" >&6; }
6006 fi
6007 max_cmd_len=$lt_cv_sys_max_cmd_len
6008
6009
6010
6011
6012
6013
6014 : ${CP="cp -f"}
6015 : ${MV="mv -f"}
6016 : ${RM="rm -f"}
6017
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6019 printf %s "checking whether the shell understands some XSI constructs... " >&6; }
6020 # Try some XSI features
6021 xsi_shell=no
6022 ( _lt_dummy="a/b/c"
6023   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6024       = c,a/b,b/c, \
6025     && eval 'test $(( 1 + 1 )) -eq 2 \
6026     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6027   && xsi_shell=yes
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6029 printf "%s\n" "$xsi_shell" >&6; }
6030
6031
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6033 printf %s "checking whether the shell understands \"+=\"... " >&6; }
6034 lt_shell_append=no
6035 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6036     >/dev/null 2>&1 \
6037   && lt_shell_append=yes
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6039 printf "%s\n" "$lt_shell_append" >&6; }
6040
6041
6042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6043   lt_unset=unset
6044 else
6045   lt_unset=false
6046 fi
6047
6048
6049
6050
6051
6052 # test EBCDIC or ASCII
6053 case `echo X|tr X '\101'` in
6054  A) # ASCII based system
6055     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6056   lt_SP2NL='tr \040 \012'
6057   lt_NL2SP='tr \015\012 \040\040'
6058   ;;
6059  *) # EBCDIC based system
6060   lt_SP2NL='tr \100 \n'
6061   lt_NL2SP='tr \r\n \100\100'
6062   ;;
6063 esac
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6074 printf %s "checking how to convert $build file names to $host format... " >&6; }
6075 if test ${lt_cv_to_host_file_cmd+y}
6076 then :
6077   printf %s "(cached) " >&6
6078 else $as_nop
6079   case $host in
6080   *-*-mingw* )
6081     case $build in
6082       *-*-mingw* ) # actually msys
6083         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6084         ;;
6085       *-*-cygwin* )
6086         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6087         ;;
6088       * ) # otherwise, assume *nix
6089         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6090         ;;
6091     esac
6092     ;;
6093   *-*-cygwin* )
6094     case $build in
6095       *-*-mingw* ) # actually msys
6096         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6097         ;;
6098       *-*-cygwin* )
6099         lt_cv_to_host_file_cmd=func_convert_file_noop
6100         ;;
6101       * ) # otherwise, assume *nix
6102         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6103         ;;
6104     esac
6105     ;;
6106   * ) # unhandled hosts (and "normal" native builds)
6107     lt_cv_to_host_file_cmd=func_convert_file_noop
6108     ;;
6109 esac
6110
6111 fi
6112
6113 to_host_file_cmd=$lt_cv_to_host_file_cmd
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6115 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6116
6117
6118
6119
6120
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6122 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6123 if test ${lt_cv_to_tool_file_cmd+y}
6124 then :
6125   printf %s "(cached) " >&6
6126 else $as_nop
6127   #assume ordinary cross tools, or native build.
6128 lt_cv_to_tool_file_cmd=func_convert_file_noop
6129 case $host in
6130   *-*-mingw* )
6131     case $build in
6132       *-*-mingw* ) # actually msys
6133         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6134         ;;
6135     esac
6136     ;;
6137 esac
6138
6139 fi
6140
6141 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6143 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6144
6145
6146
6147
6148
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6150 printf %s "checking for $LD option to reload object files... " >&6; }
6151 if test ${lt_cv_ld_reload_flag+y}
6152 then :
6153   printf %s "(cached) " >&6
6154 else $as_nop
6155   lt_cv_ld_reload_flag='-r'
6156 fi
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6158 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6159 reload_flag=$lt_cv_ld_reload_flag
6160 case $reload_flag in
6161 "" | " "*) ;;
6162 *) reload_flag=" $reload_flag" ;;
6163 esac
6164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6165 case $host_os in
6166   cygwin* | mingw* | pw32* | cegcc*)
6167     if test "$GCC" != yes; then
6168       reload_cmds=false
6169     fi
6170     ;;
6171   darwin*)
6172     if test "$GCC" = yes; then
6173       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6174     else
6175       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176     fi
6177     ;;
6178 esac
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 if test -n "$ac_tool_prefix"; then
6189   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 printf %s "checking for $ac_word... " >&6; }
6193 if test ${ac_cv_prog_OBJDUMP+y}
6194 then :
6195   printf %s "(cached) " >&6
6196 else $as_nop
6197   if test -n "$OBJDUMP"; then
6198   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   case $as_dir in #(((
6205     '') as_dir=./ ;;
6206     */) ;;
6207     *) as_dir=$as_dir/ ;;
6208   esac
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6211     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6212     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 OBJDUMP=$ac_cv_prog_OBJDUMP
6222 if test -n "$OBJDUMP"; then
6223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6224 printf "%s\n" "$OBJDUMP" >&6; }
6225 else
6226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 printf "%s\n" "no" >&6; }
6228 fi
6229
6230
6231 fi
6232 if test -z "$ac_cv_prog_OBJDUMP"; then
6233   ac_ct_OBJDUMP=$OBJDUMP
6234   # Extract the first word of "objdump", so it can be a program name with args.
6235 set dummy objdump; ac_word=$2
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 printf %s "checking for $ac_word... " >&6; }
6238 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6239 then :
6240   printf %s "(cached) " >&6
6241 else $as_nop
6242   if test -n "$ac_ct_OBJDUMP"; then
6243   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   case $as_dir in #(((
6250     '') as_dir=./ ;;
6251     */) ;;
6252     *) as_dir=$as_dir/ ;;
6253   esac
6254     for ac_exec_ext in '' $ac_executable_extensions; do
6255   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6256     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6257     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261   done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6267 if test -n "$ac_ct_OBJDUMP"; then
6268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6269 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6270 else
6271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 printf "%s\n" "no" >&6; }
6273 fi
6274
6275   if test "x$ac_ct_OBJDUMP" = x; then
6276     OBJDUMP="false"
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     OBJDUMP=$ac_ct_OBJDUMP
6285   fi
6286 else
6287   OBJDUMP="$ac_cv_prog_OBJDUMP"
6288 fi
6289
6290 test -z "$OBJDUMP" && OBJDUMP=objdump
6291
6292
6293
6294
6295
6296
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6298 printf %s "checking how to recognize dependent libraries... " >&6; }
6299 if test ${lt_cv_deplibs_check_method+y}
6300 then :
6301   printf %s "(cached) " >&6
6302 else $as_nop
6303   lt_cv_file_magic_cmd='$MAGIC_CMD'
6304 lt_cv_file_magic_test_file=
6305 lt_cv_deplibs_check_method='unknown'
6306 # Need to set the preceding variable on all platforms that support
6307 # interlibrary dependencies.
6308 # 'none' -- dependencies not supported.
6309 # `unknown' -- same as none, but documents that we really don't know.
6310 # 'pass_all' -- all dependencies passed with no checks.
6311 # 'test_compile' -- check by making test program.
6312 # 'file_magic [[regex]]' -- check by looking for files in library path
6313 # which responds to the $file_magic_cmd with a given extended regex.
6314 # If you have `file' or equivalent on your system and you're not sure
6315 # whether `pass_all' will *always* work, you probably want this one.
6316
6317 case $host_os in
6318 aix[4-9]*)
6319   lt_cv_deplibs_check_method=pass_all
6320   ;;
6321
6322 beos*)
6323   lt_cv_deplibs_check_method=pass_all
6324   ;;
6325
6326 bsdi[45]*)
6327   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328   lt_cv_file_magic_cmd='/usr/bin/file -L'
6329   lt_cv_file_magic_test_file=/shlib/libc.so
6330   ;;
6331
6332 cygwin*)
6333   # func_win32_libid is a shell function defined in ltmain.sh
6334   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335   lt_cv_file_magic_cmd='func_win32_libid'
6336   ;;
6337
6338 mingw* | pw32*)
6339   # Base MSYS/MinGW do not provide the 'file' command needed by
6340   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6341   # unless we find 'file', for example because we are cross-compiling.
6342   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6343   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6344     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345     lt_cv_file_magic_cmd='func_win32_libid'
6346   else
6347     # Keep this pattern in sync with the one in func_win32_libid.
6348     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6349     lt_cv_file_magic_cmd='$OBJDUMP -f'
6350   fi
6351   ;;
6352
6353 cegcc*)
6354   # use the weaker test based on 'objdump'. See mingw*.
6355   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6356   lt_cv_file_magic_cmd='$OBJDUMP -f'
6357   ;;
6358
6359 darwin* | rhapsody*)
6360   lt_cv_deplibs_check_method=pass_all
6361   ;;
6362
6363 freebsd* | dragonfly*)
6364   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365     case $host_cpu in
6366     i*86 )
6367       # Not sure whether the presence of OpenBSD here was a mistake.
6368       # Let's accept both of them until this is cleared up.
6369       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6370       lt_cv_file_magic_cmd=/usr/bin/file
6371       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6372       ;;
6373     esac
6374   else
6375     lt_cv_deplibs_check_method=pass_all
6376   fi
6377   ;;
6378
6379 gnu*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 haiku*)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 hpux10.20* | hpux11*)
6388   lt_cv_file_magic_cmd=/usr/bin/file
6389   case $host_cpu in
6390   ia64*)
6391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6392     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6393     ;;
6394   hppa*64*)
6395     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]'
6396     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6397     ;;
6398   *)
6399     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6400     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6401     ;;
6402   esac
6403   ;;
6404
6405 interix[3-9]*)
6406   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6407   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6408   ;;
6409
6410 irix5* | irix6* | nonstopux*)
6411   case $LD in
6412   *-32|*"-32 ") libmagic=32-bit;;
6413   *-n32|*"-n32 ") libmagic=N32;;
6414   *-64|*"-64 ") libmagic=64-bit;;
6415   *) libmagic=never-match;;
6416   esac
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419
6420 # This must be glibc/ELF.
6421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 netbsd* | netbsdelf*-gnu)
6426   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428   else
6429     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6430   fi
6431   ;;
6432
6433 newos6*)
6434   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6435   lt_cv_file_magic_cmd=/usr/bin/file
6436   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6437   ;;
6438
6439 *nto* | *qnx*)
6440   lt_cv_deplibs_check_method=pass_all
6441   ;;
6442
6443 openbsd*)
6444   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6446   else
6447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6448   fi
6449   ;;
6450
6451 osf3* | osf4* | osf5*)
6452   lt_cv_deplibs_check_method=pass_all
6453   ;;
6454
6455 rdos*)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458
6459 solaris*)
6460   lt_cv_deplibs_check_method=pass_all
6461   ;;
6462
6463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6464   lt_cv_deplibs_check_method=pass_all
6465   ;;
6466
6467 sysv4 | sysv4.3*)
6468   case $host_vendor in
6469   motorola)
6470     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]'
6471     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6472     ;;
6473   ncr)
6474     lt_cv_deplibs_check_method=pass_all
6475     ;;
6476   sequent)
6477     lt_cv_file_magic_cmd='/bin/file'
6478     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6479     ;;
6480   sni)
6481     lt_cv_file_magic_cmd='/bin/file'
6482     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6483     lt_cv_file_magic_test_file=/lib/libc.so
6484     ;;
6485   siemens)
6486     lt_cv_deplibs_check_method=pass_all
6487     ;;
6488   pc)
6489     lt_cv_deplibs_check_method=pass_all
6490     ;;
6491   esac
6492   ;;
6493
6494 tpf*)
6495   lt_cv_deplibs_check_method=pass_all
6496   ;;
6497 esac
6498
6499 fi
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6501 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6502
6503 file_magic_glob=
6504 want_nocaseglob=no
6505 if test "$build" = "$host"; then
6506   case $host_os in
6507   mingw* | pw32*)
6508     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6509       want_nocaseglob=yes
6510     else
6511       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6512     fi
6513     ;;
6514   esac
6515 fi
6516
6517 file_magic_cmd=$lt_cv_file_magic_cmd
6518 deplibs_check_method=$lt_cv_deplibs_check_method
6519 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 printf %s "checking for $ac_word... " >&6; }
6547 if test ${ac_cv_prog_DLLTOOL+y}
6548 then :
6549   printf %s "(cached) " >&6
6550 else $as_nop
6551   if test -n "$DLLTOOL"; then
6552   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   case $as_dir in #(((
6559     '') as_dir=./ ;;
6560     */) ;;
6561     *) as_dir=$as_dir/ ;;
6562   esac
6563     for ac_exec_ext in '' $ac_executable_extensions; do
6564   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6565     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6566     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570   done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 DLLTOOL=$ac_cv_prog_DLLTOOL
6576 if test -n "$DLLTOOL"; then
6577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6578 printf "%s\n" "$DLLTOOL" >&6; }
6579 else
6580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 printf "%s\n" "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_DLLTOOL"; then
6587   ac_ct_DLLTOOL=$DLLTOOL
6588   # Extract the first word of "dlltool", so it can be a program name with args.
6589 set dummy dlltool; ac_word=$2
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 printf %s "checking for $ac_word... " >&6; }
6592 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6593 then :
6594   printf %s "(cached) " >&6
6595 else $as_nop
6596   if test -n "$ac_ct_DLLTOOL"; then
6597   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   case $as_dir in #(((
6604     '') as_dir=./ ;;
6605     */) ;;
6606     *) as_dir=$as_dir/ ;;
6607   esac
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6611     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6621 if test -n "$ac_ct_DLLTOOL"; then
6622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6623 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6624 else
6625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 printf "%s\n" "no" >&6; }
6627 fi
6628
6629   if test "x$ac_ct_DLLTOOL" = x; then
6630     DLLTOOL="false"
6631   else
6632     case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638     DLLTOOL=$ac_ct_DLLTOOL
6639   fi
6640 else
6641   DLLTOOL="$ac_cv_prog_DLLTOOL"
6642 fi
6643
6644 test -z "$DLLTOOL" && DLLTOOL=dlltool
6645
6646
6647
6648
6649
6650
6651
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6653 printf %s "checking how to associate runtime and link libraries... " >&6; }
6654 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6655 then :
6656   printf %s "(cached) " >&6
6657 else $as_nop
6658   lt_cv_sharedlib_from_linklib_cmd='unknown'
6659
6660 case $host_os in
6661 cygwin* | mingw* | pw32* | cegcc*)
6662   # two different shell functions defined in ltmain.sh
6663   # decide which to use based on capabilities of $DLLTOOL
6664   case `$DLLTOOL --help 2>&1` in
6665   *--identify-strict*)
6666     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6667     ;;
6668   *)
6669     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6670     ;;
6671   esac
6672   ;;
6673 *)
6674   # fallback: assume linklib IS sharedlib
6675   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6676   ;;
6677 esac
6678
6679 fi
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6681 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6682 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6683 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6684
6685
6686
6687
6688
6689
6690
6691 if test -n "$ac_tool_prefix"; then
6692   for ac_prog in ar
6693   do
6694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 printf %s "checking for $ac_word... " >&6; }
6698 if test ${ac_cv_prog_AR+y}
6699 then :
6700   printf %s "(cached) " >&6
6701 else $as_nop
6702   if test -n "$AR"; then
6703   ac_cv_prog_AR="$AR" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   case $as_dir in #(((
6710     '') as_dir=./ ;;
6711     */) ;;
6712     *) as_dir=$as_dir/ ;;
6713   esac
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 AR=$ac_cv_prog_AR
6727 if test -n "$AR"; then
6728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729 printf "%s\n" "$AR" >&6; }
6730 else
6731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 printf "%s\n" "no" >&6; }
6733 fi
6734
6735
6736     test -n "$AR" && break
6737   done
6738 fi
6739 if test -z "$AR"; then
6740   ac_ct_AR=$AR
6741   for ac_prog in ar
6742 do
6743   # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 printf %s "checking for $ac_word... " >&6; }
6747 if test ${ac_cv_prog_ac_ct_AR+y}
6748 then :
6749   printf %s "(cached) " >&6
6750 else $as_nop
6751   if test -n "$ac_ct_AR"; then
6752   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   case $as_dir in #(((
6759     '') as_dir=./ ;;
6760     */) ;;
6761     *) as_dir=$as_dir/ ;;
6762   esac
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6765     ac_cv_prog_ac_ct_AR="$ac_prog"
6766     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776 if test -n "$ac_ct_AR"; then
6777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6778 printf "%s\n" "$ac_ct_AR" >&6; }
6779 else
6780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 printf "%s\n" "no" >&6; }
6782 fi
6783
6784
6785   test -n "$ac_ct_AR" && break
6786 done
6787
6788   if test "x$ac_ct_AR" = x; then
6789     AR="false"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     AR=$ac_ct_AR
6798   fi
6799 fi
6800
6801 : ${AR=ar}
6802 : ${AR_FLAGS=cru}
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6815 printf %s "checking for archiver @FILE support... " >&6; }
6816 if test ${lt_cv_ar_at_file+y}
6817 then :
6818   printf %s "(cached) " >&6
6819 else $as_nop
6820   lt_cv_ar_at_file=no
6821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823
6824 int
6825 main (void)
6826 {
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"
6833 then :
6834   echo conftest.$ac_objext > conftest.lst
6835       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6836       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6837   (eval $lt_ar_try) 2>&5
6838   ac_status=$?
6839   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840   test $ac_status = 0; }
6841       if test "$ac_status" -eq 0; then
6842         # Ensure the archiver fails upon bogus file names.
6843         rm -f conftest.$ac_objext libconftest.a
6844         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6845   (eval $lt_ar_try) 2>&5
6846   ac_status=$?
6847   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848   test $ac_status = 0; }
6849         if test "$ac_status" -ne 0; then
6850           lt_cv_ar_at_file=@
6851         fi
6852       fi
6853       rm -f conftest.* libconftest.a
6854
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6857
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6860 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6861
6862 if test "x$lt_cv_ar_at_file" = xno; then
6863   archiver_list_spec=
6864 else
6865   archiver_list_spec=$lt_cv_ar_at_file
6866 fi
6867
6868
6869
6870
6871
6872
6873
6874 if test -n "$ac_tool_prefix"; then
6875   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}strip; ac_word=$2
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 printf %s "checking for $ac_word... " >&6; }
6879 if test ${ac_cv_prog_STRIP+y}
6880 then :
6881   printf %s "(cached) " >&6
6882 else $as_nop
6883   if test -n "$STRIP"; then
6884   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   case $as_dir in #(((
6891     '') as_dir=./ ;;
6892     */) ;;
6893     *) as_dir=$as_dir/ ;;
6894   esac
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6898     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902   done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 STRIP=$ac_cv_prog_STRIP
6908 if test -n "$STRIP"; then
6909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6910 printf "%s\n" "$STRIP" >&6; }
6911 else
6912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 printf "%s\n" "no" >&6; }
6914 fi
6915
6916
6917 fi
6918 if test -z "$ac_cv_prog_STRIP"; then
6919   ac_ct_STRIP=$STRIP
6920   # Extract the first word of "strip", so it can be a program name with args.
6921 set dummy strip; ac_word=$2
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 printf %s "checking for $ac_word... " >&6; }
6924 if test ${ac_cv_prog_ac_ct_STRIP+y}
6925 then :
6926   printf %s "(cached) " >&6
6927 else $as_nop
6928   if test -n "$ac_ct_STRIP"; then
6929   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   case $as_dir in #(((
6936     '') as_dir=./ ;;
6937     */) ;;
6938     *) as_dir=$as_dir/ ;;
6939   esac
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_ac_ct_STRIP="strip"
6943     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6953 if test -n "$ac_ct_STRIP"; then
6954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6955 printf "%s\n" "$ac_ct_STRIP" >&6; }
6956 else
6957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 printf "%s\n" "no" >&6; }
6959 fi
6960
6961   if test "x$ac_ct_STRIP" = x; then
6962     STRIP=":"
6963   else
6964     case $cross_compiling:$ac_tool_warned in
6965 yes:)
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     STRIP=$ac_ct_STRIP
6971   fi
6972 else
6973   STRIP="$ac_cv_prog_STRIP"
6974 fi
6975
6976 test -z "$STRIP" && STRIP=:
6977
6978
6979
6980
6981
6982
6983 if test -n "$ac_tool_prefix"; then
6984   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 printf %s "checking for $ac_word... " >&6; }
6988 if test ${ac_cv_prog_RANLIB+y}
6989 then :
6990   printf %s "(cached) " >&6
6991 else $as_nop
6992   if test -n "$RANLIB"; then
6993   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   case $as_dir in #(((
7000     '') as_dir=./ ;;
7001     */) ;;
7002     *) as_dir=$as_dir/ ;;
7003   esac
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7006     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7007     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 RANLIB=$ac_cv_prog_RANLIB
7017 if test -n "$RANLIB"; then
7018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7019 printf "%s\n" "$RANLIB" >&6; }
7020 else
7021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 printf "%s\n" "no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_RANLIB"; then
7028   ac_ct_RANLIB=$RANLIB
7029   # Extract the first word of "ranlib", so it can be a program name with args.
7030 set dummy ranlib; ac_word=$2
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 printf %s "checking for $ac_word... " >&6; }
7033 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7034 then :
7035   printf %s "(cached) " >&6
7036 else $as_nop
7037   if test -n "$ac_ct_RANLIB"; then
7038   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   case $as_dir in #(((
7045     '') as_dir=./ ;;
7046     */) ;;
7047     *) as_dir=$as_dir/ ;;
7048   esac
7049     for ac_exec_ext in '' $ac_executable_extensions; do
7050   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7051     ac_cv_prog_ac_ct_RANLIB="ranlib"
7052     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7053     break 2
7054   fi
7055 done
7056   done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062 if test -n "$ac_ct_RANLIB"; then
7063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7065 else
7066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 printf "%s\n" "no" >&6; }
7068 fi
7069
7070   if test "x$ac_ct_RANLIB" = x; then
7071     RANLIB=":"
7072   else
7073     case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079     RANLIB=$ac_ct_RANLIB
7080   fi
7081 else
7082   RANLIB="$ac_cv_prog_RANLIB"
7083 fi
7084
7085 test -z "$RANLIB" && RANLIB=:
7086
7087
7088
7089
7090
7091
7092 # Determine commands to create old-style static archives.
7093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094 old_postinstall_cmds='chmod 644 $oldlib'
7095 old_postuninstall_cmds=
7096
7097 if test -n "$RANLIB"; then
7098   case $host_os in
7099   openbsd*)
7100     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7101     ;;
7102   *)
7103     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7104     ;;
7105   esac
7106   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7107 fi
7108
7109 case $host_os in
7110   darwin*)
7111     lock_old_archive_extraction=yes ;;
7112   *)
7113     lock_old_archive_extraction=no ;;
7114 esac
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154 # If no C compiler was specified, use CC.
7155 LTCC=${LTCC-"$CC"}
7156
7157 # If no C compiler flags were specified, use CFLAGS.
7158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7159
7160 # Allow CC to be a program name with arguments.
7161 compiler=$CC
7162
7163
7164 # Check for command to grab the raw symbol name followed by C symbol from nm.
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7167 if test ${lt_cv_sys_global_symbol_pipe+y}
7168 then :
7169   printf %s "(cached) " >&6
7170 else $as_nop
7171
7172 # These are sane defaults that work on at least a few old systems.
7173 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7174
7175 # Character class describing NM global symbol codes.
7176 symcode='[BCDEGRST]'
7177
7178 # Regexp to match symbols that can be accessed directly from C.
7179 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7180
7181 # Define system-specific variables.
7182 case $host_os in
7183 aix*)
7184   symcode='[BCDT]'
7185   ;;
7186 cygwin* | mingw* | pw32* | cegcc*)
7187   symcode='[ABCDGISTW]'
7188   ;;
7189 hpux*)
7190   if test "$host_cpu" = ia64; then
7191     symcode='[ABCDEGRST]'
7192   fi
7193   ;;
7194 irix* | nonstopux*)
7195   symcode='[BCDEGRST]'
7196   ;;
7197 osf*)
7198   symcode='[BCDEGQRST]'
7199   ;;
7200 solaris*)
7201   symcode='[BDRT]'
7202   ;;
7203 sco3.2v5*)
7204   symcode='[DT]'
7205   ;;
7206 sysv4.2uw2*)
7207   symcode='[DT]'
7208   ;;
7209 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7210   symcode='[ABDT]'
7211   ;;
7212 sysv4)
7213   symcode='[DFNSTU]'
7214   ;;
7215 esac
7216
7217 # If we're using GNU nm, then use its standard symbol codes.
7218 case `$NM -V 2>&1` in
7219 *GNU* | *'with BFD'*)
7220   symcode='[ABCDGIRSTW]' ;;
7221 esac
7222
7223 # Transform an extracted symbol line into a proper C declaration.
7224 # Some systems (esp. on ia64) link data and code symbols differently,
7225 # so use this general approach.
7226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7227
7228 # Transform an extracted symbol line into symbol name and symbol address
7229 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7230 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'"
7231
7232 # Handle CRLF in mingw tool chain
7233 opt_cr=
7234 case $build_os in
7235 mingw*)
7236   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7237   ;;
7238 esac
7239
7240 # Try without a prefix underscore, then with it.
7241 for ac_symprfx in "" "_"; do
7242
7243   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7244   symxfrm="\\1 $ac_symprfx\\2 \\2"
7245
7246   # Write the raw and C identifiers.
7247   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7248     # Fake it for dumpbin and say T for any non-static function
7249     # and D for any global variable.
7250     # Also find C++ and __fastcall symbols from MSVC++,
7251     # which start with @ or ?.
7252     lt_cv_sys_global_symbol_pipe="$AWK '"\
7253 "     {last_section=section; section=\$ 3};"\
7254 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7255 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7256 "     \$ 0!~/External *\|/{next};"\
7257 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7258 "     {if(hide[section]) next};"\
7259 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7260 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7261 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7262 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7263 "     ' prfx=^$ac_symprfx"
7264   else
7265     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7266   fi
7267   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7268
7269   # Check to see that the pipe works correctly.
7270   pipe_works=no
7271
7272   rm -f conftest*
7273   cat > conftest.$ac_ext <<_LT_EOF
7274 #ifdef __cplusplus
7275 extern "C" {
7276 #endif
7277 char nm_test_var;
7278 void nm_test_func(void);
7279 void nm_test_func(void){}
7280 #ifdef __cplusplus
7281 }
7282 #endif
7283 int main(){nm_test_var='a';nm_test_func();return(0);}
7284 _LT_EOF
7285
7286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287   (eval $ac_compile) 2>&5
7288   ac_status=$?
7289   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290   test $ac_status = 0; }; then
7291     # Now try to grab the symbols.
7292     nlist=conftest.nm
7293     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7294   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7295   ac_status=$?
7296   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297   test $ac_status = 0; } && test -s "$nlist"; then
7298       # Try sorting and uniquifying the output.
7299       if sort "$nlist" | uniq > "$nlist"T; then
7300         mv -f "$nlist"T "$nlist"
7301       else
7302         rm -f "$nlist"T
7303       fi
7304
7305       # Make sure that we snagged all the symbols we need.
7306       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7307         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7308           cat <<_LT_EOF > conftest.$ac_ext
7309 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7310 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7311 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7312    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7313 # define LT_DLSYM_CONST
7314 #elif defined(__osf__)
7315 /* This system does not cope well with relocations in const data.  */
7316 # define LT_DLSYM_CONST
7317 #else
7318 # define LT_DLSYM_CONST const
7319 #endif
7320
7321 #ifdef __cplusplus
7322 extern "C" {
7323 #endif
7324
7325 _LT_EOF
7326           # Now generate the symbol file.
7327           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7328
7329           cat <<_LT_EOF >> conftest.$ac_ext
7330
7331 /* The mapping between symbol names and symbols.  */
7332 LT_DLSYM_CONST struct {
7333   const char *name;
7334   void       *address;
7335 }
7336 lt__PROGRAM__LTX_preloaded_symbols[] =
7337 {
7338   { "@PROGRAM@", (void *) 0 },
7339 _LT_EOF
7340           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7341           cat <<\_LT_EOF >> conftest.$ac_ext
7342   {0, (void *) 0}
7343 };
7344
7345 /* This works around a problem in FreeBSD linker */
7346 #ifdef FREEBSD_WORKAROUND
7347 static const void *lt_preloaded_setup() {
7348   return lt__PROGRAM__LTX_preloaded_symbols;
7349 }
7350 #endif
7351
7352 #ifdef __cplusplus
7353 }
7354 #endif
7355 _LT_EOF
7356           # Now try linking the two files.
7357           mv conftest.$ac_objext conftstm.$ac_objext
7358           lt_globsym_save_LIBS=$LIBS
7359           lt_globsym_save_CFLAGS=$CFLAGS
7360           LIBS="conftstm.$ac_objext"
7361           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7362           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7363   (eval $ac_link) 2>&5
7364   ac_status=$?
7365   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7367             pipe_works=yes
7368           fi
7369           LIBS=$lt_globsym_save_LIBS
7370           CFLAGS=$lt_globsym_save_CFLAGS
7371         else
7372           echo "cannot find nm_test_func in $nlist" >&5
7373         fi
7374       else
7375         echo "cannot find nm_test_var in $nlist" >&5
7376       fi
7377     else
7378       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7379     fi
7380   else
7381     echo "$progname: failed program was:" >&5
7382     cat conftest.$ac_ext >&5
7383   fi
7384   rm -rf conftest* conftst*
7385
7386   # Do not use the global_symbol_pipe unless it works.
7387   if test "$pipe_works" = yes; then
7388     break
7389   else
7390     lt_cv_sys_global_symbol_pipe=
7391   fi
7392 done
7393
7394 fi
7395
7396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7397   lt_cv_sys_global_symbol_to_cdecl=
7398 fi
7399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7401 printf "%s\n" "failed" >&6; }
7402 else
7403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7404 printf "%s\n" "ok" >&6; }
7405 fi
7406
7407 # Response file support.
7408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409   nm_file_list_spec='@'
7410 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7411   nm_file_list_spec='@'
7412 fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7441 printf %s "checking for sysroot... " >&6; }
7442
7443 # Check whether --with-sysroot was given.
7444 if test ${with_sysroot+y}
7445 then :
7446   withval=$with_sysroot;
7447 else $as_nop
7448   with_sysroot=no
7449 fi
7450
7451
7452 lt_sysroot=
7453 case ${with_sysroot} in #(
7454  yes)
7455    if test "$GCC" = yes; then
7456      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7457    fi
7458    ;; #(
7459  /*)
7460    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7461    ;; #(
7462  no|'')
7463    ;; #(
7464  *)
7465    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7466 printf "%s\n" "${with_sysroot}" >&6; }
7467    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7468    ;;
7469 esac
7470
7471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7472 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7473
7474
7475
7476
7477
7478 # Check whether --enable-libtool-lock was given.
7479 if test ${enable_libtool_lock+y}
7480 then :
7481   enableval=$enable_libtool_lock;
7482 fi
7483
7484 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7485
7486 # Some flags need to be propagated to the compiler or linker for good
7487 # libtool support.
7488 case $host in
7489 ia64-*-hpux*)
7490   # Find out which ABI we are using.
7491   echo 'int i;' > conftest.$ac_ext
7492   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7493   (eval $ac_compile) 2>&5
7494   ac_status=$?
7495   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496   test $ac_status = 0; }; then
7497     case `/usr/bin/file conftest.$ac_objext` in
7498       *ELF-32*)
7499         HPUX_IA64_MODE="32"
7500         ;;
7501       *ELF-64*)
7502         HPUX_IA64_MODE="64"
7503         ;;
7504     esac
7505   fi
7506   rm -rf conftest*
7507   ;;
7508 *-*-irix6*)
7509   # Find out which ABI we are using.
7510   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7511   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512   (eval $ac_compile) 2>&5
7513   ac_status=$?
7514   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515   test $ac_status = 0; }; then
7516     if test "$lt_cv_prog_gnu_ld" = yes; then
7517       case `/usr/bin/file conftest.$ac_objext` in
7518         *32-bit*)
7519           LD="${LD-ld} -melf32bsmip"
7520           ;;
7521         *N32*)
7522           LD="${LD-ld} -melf32bmipn32"
7523           ;;
7524         *64-bit*)
7525           LD="${LD-ld} -melf64bmip"
7526         ;;
7527       esac
7528     else
7529       case `/usr/bin/file conftest.$ac_objext` in
7530         *32-bit*)
7531           LD="${LD-ld} -32"
7532           ;;
7533         *N32*)
7534           LD="${LD-ld} -n32"
7535           ;;
7536         *64-bit*)
7537           LD="${LD-ld} -64"
7538           ;;
7539       esac
7540     fi
7541   fi
7542   rm -rf conftest*
7543   ;;
7544
7545 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7546 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7547   # Find out which ABI we are using.
7548   echo 'int i;' > conftest.$ac_ext
7549   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7550   (eval $ac_compile) 2>&5
7551   ac_status=$?
7552   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553   test $ac_status = 0; }; then
7554     case `/usr/bin/file conftest.o` in
7555       *32-bit*)
7556         case $host in
7557           x86_64-*kfreebsd*-gnu)
7558             LD="${LD-ld} -m elf_i386_fbsd"
7559             ;;
7560           x86_64-*linux*)
7561             LD="${LD-ld} -m elf_i386"
7562             ;;
7563          powerpc64le-*)
7564            LD="${LD-ld} -m elf32lppclinux"
7565            ;;
7566          powerpc64-*)
7567             LD="${LD-ld} -m elf32ppclinux"
7568             ;;
7569           s390x-*linux*)
7570             LD="${LD-ld} -m elf_s390"
7571             ;;
7572           sparc64-*linux*)
7573             LD="${LD-ld} -m elf32_sparc"
7574             ;;
7575         esac
7576         ;;
7577       *64-bit*)
7578         case $host in
7579           x86_64-*kfreebsd*-gnu)
7580             LD="${LD-ld} -m elf_x86_64_fbsd"
7581             ;;
7582           x86_64-*linux*)
7583             LD="${LD-ld} -m elf_x86_64"
7584             ;;
7585          powerpcle-*)
7586            LD="${LD-ld} -m elf64lppc"
7587            ;;
7588          powerpc-*)
7589             LD="${LD-ld} -m elf64ppc"
7590             ;;
7591           s390*-*linux*|s390*-*tpf*)
7592             LD="${LD-ld} -m elf64_s390"
7593             ;;
7594           sparc*-*linux*)
7595             LD="${LD-ld} -m elf64_sparc"
7596             ;;
7597         esac
7598         ;;
7599     esac
7600   fi
7601   rm -rf conftest*
7602   ;;
7603
7604 *-*-sco3.2v5*)
7605   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7606   SAVE_CFLAGS="$CFLAGS"
7607   CFLAGS="$CFLAGS -belf"
7608   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7609 printf %s "checking whether the C compiler needs -belf... " >&6; }
7610 if test ${lt_cv_cc_needs_belf+y}
7611 then :
7612   printf %s "(cached) " >&6
7613 else $as_nop
7614   ac_ext=c
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619
7620      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h.  */
7622
7623 int
7624 main (void)
7625 {
7626
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"
7632 then :
7633   lt_cv_cc_needs_belf=yes
7634 else $as_nop
7635   lt_cv_cc_needs_belf=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7638     conftest$ac_exeext conftest.$ac_ext
7639      ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 fi
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7647 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7648   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7649     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7650     CFLAGS="$SAVE_CFLAGS"
7651   fi
7652   ;;
7653 *-*solaris*)
7654   # Find out which ABI we are using.
7655   echo 'int i;' > conftest.$ac_ext
7656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657   (eval $ac_compile) 2>&5
7658   ac_status=$?
7659   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660   test $ac_status = 0; }; then
7661     case `/usr/bin/file conftest.o` in
7662     *64-bit*)
7663       case $lt_cv_prog_gnu_ld in
7664       yes*)
7665         case $host in
7666         i?86-*-solaris*)
7667           LD="${LD-ld} -m elf_x86_64"
7668           ;;
7669         sparc*-*-solaris*)
7670           LD="${LD-ld} -m elf64_sparc"
7671           ;;
7672         esac
7673         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7674         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7675           LD="${LD-ld}_sol2"
7676         fi
7677         ;;
7678       *)
7679         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7680           LD="${LD-ld} -64"
7681         fi
7682         ;;
7683       esac
7684       ;;
7685     esac
7686   fi
7687   rm -rf conftest*
7688   ;;
7689 esac
7690
7691 need_locks="$enable_libtool_lock"
7692
7693 if test -n "$ac_tool_prefix"; then
7694   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}mt; ac_word=$2
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 printf %s "checking for $ac_word... " >&6; }
7698 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7699 then :
7700   printf %s "(cached) " >&6
7701 else $as_nop
7702   if test -n "$MANIFEST_TOOL"; then
7703   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   case $as_dir in #(((
7710     '') as_dir=./ ;;
7711     */) ;;
7712     *) as_dir=$as_dir/ ;;
7713   esac
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7716     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7727 if test -n "$MANIFEST_TOOL"; then
7728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7729 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7730 else
7731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 printf "%s\n" "no" >&6; }
7733 fi
7734
7735
7736 fi
7737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7738   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7739   # Extract the first word of "mt", so it can be a program name with args.
7740 set dummy mt; ac_word=$2
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 printf %s "checking for $ac_word... " >&6; }
7743 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7744 then :
7745   printf %s "(cached) " >&6
7746 else $as_nop
7747   if test -n "$ac_ct_MANIFEST_TOOL"; then
7748   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   case $as_dir in #(((
7755     '') as_dir=./ ;;
7756     */) ;;
7757     *) as_dir=$as_dir/ ;;
7758   esac
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7761     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7762     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7772 if test -n "$ac_ct_MANIFEST_TOOL"; then
7773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7774 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7775 else
7776   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 printf "%s\n" "no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7781     MANIFEST_TOOL=":"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7790   fi
7791 else
7792   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7793 fi
7794
7795 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7797 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7798 if test ${lt_cv_path_mainfest_tool+y}
7799 then :
7800   printf %s "(cached) " >&6
7801 else $as_nop
7802   lt_cv_path_mainfest_tool=no
7803   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7804   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7805   cat conftest.err >&5
7806   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7807     lt_cv_path_mainfest_tool=yes
7808   fi
7809   rm -f conftest*
7810 fi
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7812 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7813 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7814   MANIFEST_TOOL=:
7815 fi
7816
7817
7818
7819
7820
7821
7822   case $host_os in
7823     rhapsody* | darwin*)
7824     if test -n "$ac_tool_prefix"; then
7825   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 printf %s "checking for $ac_word... " >&6; }
7829 if test ${ac_cv_prog_DSYMUTIL+y}
7830 then :
7831   printf %s "(cached) " >&6
7832 else $as_nop
7833   if test -n "$DSYMUTIL"; then
7834   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   case $as_dir in #(((
7841     '') as_dir=./ ;;
7842     */) ;;
7843     *) as_dir=$as_dir/ ;;
7844   esac
7845     for ac_exec_ext in '' $ac_executable_extensions; do
7846   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7847     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7848     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7849     break 2
7850   fi
7851 done
7852   done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7858 if test -n "$DSYMUTIL"; then
7859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7860 printf "%s\n" "$DSYMUTIL" >&6; }
7861 else
7862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 printf "%s\n" "no" >&6; }
7864 fi
7865
7866
7867 fi
7868 if test -z "$ac_cv_prog_DSYMUTIL"; then
7869   ac_ct_DSYMUTIL=$DSYMUTIL
7870   # Extract the first word of "dsymutil", so it can be a program name with args.
7871 set dummy dsymutil; ac_word=$2
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 printf %s "checking for $ac_word... " >&6; }
7874 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7875 then :
7876   printf %s "(cached) " >&6
7877 else $as_nop
7878   if test -n "$ac_ct_DSYMUTIL"; then
7879   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   case $as_dir in #(((
7886     '') as_dir=./ ;;
7887     */) ;;
7888     *) as_dir=$as_dir/ ;;
7889   esac
7890     for ac_exec_ext in '' $ac_executable_extensions; do
7891   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7892     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7893     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897   done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7903 if test -n "$ac_ct_DSYMUTIL"; then
7904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7905 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7906 else
7907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 printf "%s\n" "no" >&6; }
7909 fi
7910
7911   if test "x$ac_ct_DSYMUTIL" = x; then
7912     DSYMUTIL=":"
7913   else
7914     case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920     DSYMUTIL=$ac_ct_DSYMUTIL
7921   fi
7922 else
7923   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7924 fi
7925
7926     if test -n "$ac_tool_prefix"; then
7927   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 printf %s "checking for $ac_word... " >&6; }
7931 if test ${ac_cv_prog_NMEDIT+y}
7932 then :
7933   printf %s "(cached) " >&6
7934 else $as_nop
7935   if test -n "$NMEDIT"; then
7936   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   case $as_dir in #(((
7943     '') as_dir=./ ;;
7944     */) ;;
7945     *) as_dir=$as_dir/ ;;
7946   esac
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7950     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 NMEDIT=$ac_cv_prog_NMEDIT
7960 if test -n "$NMEDIT"; then
7961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7962 printf "%s\n" "$NMEDIT" >&6; }
7963 else
7964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 printf "%s\n" "no" >&6; }
7966 fi
7967
7968
7969 fi
7970 if test -z "$ac_cv_prog_NMEDIT"; then
7971   ac_ct_NMEDIT=$NMEDIT
7972   # Extract the first word of "nmedit", so it can be a program name with args.
7973 set dummy nmedit; ac_word=$2
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 printf %s "checking for $ac_word... " >&6; }
7976 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7977 then :
7978   printf %s "(cached) " >&6
7979 else $as_nop
7980   if test -n "$ac_ct_NMEDIT"; then
7981   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986   IFS=$as_save_IFS
7987   case $as_dir in #(((
7988     '') as_dir=./ ;;
7989     */) ;;
7990     *) as_dir=$as_dir/ ;;
7991   esac
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7995     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8005 if test -n "$ac_ct_NMEDIT"; then
8006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8007 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8008 else
8009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 printf "%s\n" "no" >&6; }
8011 fi
8012
8013   if test "x$ac_ct_NMEDIT" = x; then
8014     NMEDIT=":"
8015   else
8016     case $cross_compiling:$ac_tool_warned in
8017 yes:)
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8021 esac
8022     NMEDIT=$ac_ct_NMEDIT
8023   fi
8024 else
8025   NMEDIT="$ac_cv_prog_NMEDIT"
8026 fi
8027
8028     if test -n "$ac_tool_prefix"; then
8029   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 printf %s "checking for $ac_word... " >&6; }
8033 if test ${ac_cv_prog_LIPO+y}
8034 then :
8035   printf %s "(cached) " >&6
8036 else $as_nop
8037   if test -n "$LIPO"; then
8038   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043   IFS=$as_save_IFS
8044   case $as_dir in #(((
8045     '') as_dir=./ ;;
8046     */) ;;
8047     *) as_dir=$as_dir/ ;;
8048   esac
8049     for ac_exec_ext in '' $ac_executable_extensions; do
8050   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8051     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8052     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056   done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 LIPO=$ac_cv_prog_LIPO
8062 if test -n "$LIPO"; then
8063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8064 printf "%s\n" "$LIPO" >&6; }
8065 else
8066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 printf "%s\n" "no" >&6; }
8068 fi
8069
8070
8071 fi
8072 if test -z "$ac_cv_prog_LIPO"; then
8073   ac_ct_LIPO=$LIPO
8074   # Extract the first word of "lipo", so it can be a program name with args.
8075 set dummy lipo; ac_word=$2
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 printf %s "checking for $ac_word... " >&6; }
8078 if test ${ac_cv_prog_ac_ct_LIPO+y}
8079 then :
8080   printf %s "(cached) " >&6
8081 else $as_nop
8082   if test -n "$ac_ct_LIPO"; then
8083   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   case $as_dir in #(((
8090     '') as_dir=./ ;;
8091     */) ;;
8092     *) as_dir=$as_dir/ ;;
8093   esac
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096     ac_cv_prog_ac_ct_LIPO="lipo"
8097     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8107 if test -n "$ac_ct_LIPO"; then
8108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8109 printf "%s\n" "$ac_ct_LIPO" >&6; }
8110 else
8111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 printf "%s\n" "no" >&6; }
8113 fi
8114
8115   if test "x$ac_ct_LIPO" = x; then
8116     LIPO=":"
8117   else
8118     case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124     LIPO=$ac_ct_LIPO
8125   fi
8126 else
8127   LIPO="$ac_cv_prog_LIPO"
8128 fi
8129
8130     if test -n "$ac_tool_prefix"; then
8131   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}otool; ac_word=$2
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 printf %s "checking for $ac_word... " >&6; }
8135 if test ${ac_cv_prog_OTOOL+y}
8136 then :
8137   printf %s "(cached) " >&6
8138 else $as_nop
8139   if test -n "$OTOOL"; then
8140   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145   IFS=$as_save_IFS
8146   case $as_dir in #(((
8147     '') as_dir=./ ;;
8148     */) ;;
8149     *) as_dir=$as_dir/ ;;
8150   esac
8151     for ac_exec_ext in '' $ac_executable_extensions; do
8152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8153     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8155     break 2
8156   fi
8157 done
8158   done
8159 IFS=$as_save_IFS
8160
8161 fi
8162 fi
8163 OTOOL=$ac_cv_prog_OTOOL
8164 if test -n "$OTOOL"; then
8165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8166 printf "%s\n" "$OTOOL" >&6; }
8167 else
8168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 printf "%s\n" "no" >&6; }
8170 fi
8171
8172
8173 fi
8174 if test -z "$ac_cv_prog_OTOOL"; then
8175   ac_ct_OTOOL=$OTOOL
8176   # Extract the first word of "otool", so it can be a program name with args.
8177 set dummy otool; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8181 then :
8182   printf %s "(cached) " >&6
8183 else $as_nop
8184   if test -n "$ac_ct_OTOOL"; then
8185   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190   IFS=$as_save_IFS
8191   case $as_dir in #(((
8192     '') as_dir=./ ;;
8193     */) ;;
8194     *) as_dir=$as_dir/ ;;
8195   esac
8196     for ac_exec_ext in '' $ac_executable_extensions; do
8197   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198     ac_cv_prog_ac_ct_OTOOL="otool"
8199     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203   done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8209 if test -n "$ac_ct_OTOOL"; then
8210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8211 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8212 else
8213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 printf "%s\n" "no" >&6; }
8215 fi
8216
8217   if test "x$ac_ct_OTOOL" = x; then
8218     OTOOL=":"
8219   else
8220     case $cross_compiling:$ac_tool_warned in
8221 yes:)
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned=yes ;;
8225 esac
8226     OTOOL=$ac_ct_OTOOL
8227   fi
8228 else
8229   OTOOL="$ac_cv_prog_OTOOL"
8230 fi
8231
8232     if test -n "$ac_tool_prefix"; then
8233   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 printf %s "checking for $ac_word... " >&6; }
8237 if test ${ac_cv_prog_OTOOL64+y}
8238 then :
8239   printf %s "(cached) " >&6
8240 else $as_nop
8241   if test -n "$OTOOL64"; then
8242   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   case $as_dir in #(((
8249     '') as_dir=./ ;;
8250     */) ;;
8251     *) as_dir=$as_dir/ ;;
8252   esac
8253     for ac_exec_ext in '' $ac_executable_extensions; do
8254   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8255     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8256     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8257     break 2
8258   fi
8259 done
8260   done
8261 IFS=$as_save_IFS
8262
8263 fi
8264 fi
8265 OTOOL64=$ac_cv_prog_OTOOL64
8266 if test -n "$OTOOL64"; then
8267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8268 printf "%s\n" "$OTOOL64" >&6; }
8269 else
8270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 printf "%s\n" "no" >&6; }
8272 fi
8273
8274
8275 fi
8276 if test -z "$ac_cv_prog_OTOOL64"; then
8277   ac_ct_OTOOL64=$OTOOL64
8278   # Extract the first word of "otool64", so it can be a program name with args.
8279 set dummy otool64; ac_word=$2
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 printf %s "checking for $ac_word... " >&6; }
8282 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8283 then :
8284   printf %s "(cached) " >&6
8285 else $as_nop
8286   if test -n "$ac_ct_OTOOL64"; then
8287   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   case $as_dir in #(((
8294     '') as_dir=./ ;;
8295     */) ;;
8296     *) as_dir=$as_dir/ ;;
8297   esac
8298     for ac_exec_ext in '' $ac_executable_extensions; do
8299   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8300     ac_cv_prog_ac_ct_OTOOL64="otool64"
8301     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8302     break 2
8303   fi
8304 done
8305   done
8306 IFS=$as_save_IFS
8307
8308 fi
8309 fi
8310 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8311 if test -n "$ac_ct_OTOOL64"; then
8312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8313 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8314 else
8315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 printf "%s\n" "no" >&6; }
8317 fi
8318
8319   if test "x$ac_ct_OTOOL64" = x; then
8320     OTOOL64=":"
8321   else
8322     case $cross_compiling:$ac_tool_warned in
8323 yes:)
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8327 esac
8328     OTOOL64=$ac_ct_OTOOL64
8329   fi
8330 else
8331   OTOOL64="$ac_cv_prog_OTOOL64"
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8361 printf %s "checking for -single_module linker flag... " >&6; }
8362 if test ${lt_cv_apple_cc_single_mod+y}
8363 then :
8364   printf %s "(cached) " >&6
8365 else $as_nop
8366   lt_cv_apple_cc_single_mod=no
8367       if test -z "${LT_MULTI_MODULE}"; then
8368         # By default we will add the -single_module flag. You can override
8369         # by either setting the environment variable LT_MULTI_MODULE
8370         # non-empty at configure time, or by adding -multi_module to the
8371         # link flags.
8372         rm -rf libconftest.dylib*
8373         echo "int foo(void){return 1;}" > conftest.c
8374         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8375 -dynamiclib -Wl,-single_module conftest.c" >&5
8376         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8377           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8378         _lt_result=$?
8379         # If there is a non-empty error log, and "single_module"
8380         # appears in it, assume the flag caused a linker warning
8381         if test -s conftest.err && $GREP single_module conftest.err; then
8382           cat conftest.err >&5
8383         # Otherwise, if the output was created with a 0 exit code from
8384         # the compiler, it worked.
8385         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8386           lt_cv_apple_cc_single_mod=yes
8387         else
8388           cat conftest.err >&5
8389         fi
8390         rm -rf libconftest.dylib*
8391         rm -f conftest.*
8392       fi
8393 fi
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8395 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8396
8397     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8398 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8399 if test ${lt_cv_ld_exported_symbols_list+y}
8400 then :
8401   printf %s "(cached) " >&6
8402 else $as_nop
8403   lt_cv_ld_exported_symbols_list=no
8404       save_LDFLAGS=$LDFLAGS
8405       echo "_main" > conftest.sym
8406       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h.  */
8409
8410 int
8411 main (void)
8412 {
8413
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"
8419 then :
8420   lt_cv_ld_exported_symbols_list=yes
8421 else $as_nop
8422   lt_cv_ld_exported_symbols_list=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8425     conftest$ac_exeext conftest.$ac_ext
8426         LDFLAGS="$save_LDFLAGS"
8427
8428 fi
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8430 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8431
8432     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8433 printf %s "checking for -force_load linker flag... " >&6; }
8434 if test ${lt_cv_ld_force_load+y}
8435 then :
8436   printf %s "(cached) " >&6
8437 else $as_nop
8438   lt_cv_ld_force_load=no
8439       cat > conftest.c << _LT_EOF
8440 int forced_loaded() { return 2;}
8441 _LT_EOF
8442       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8443       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8444       echo "$AR cru libconftest.a conftest.o" >&5
8445       $AR cru libconftest.a conftest.o 2>&5
8446       echo "$RANLIB libconftest.a" >&5
8447       $RANLIB libconftest.a 2>&5
8448       cat > conftest.c << _LT_EOF
8449 int main() { return 0;}
8450 _LT_EOF
8451       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8452       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8453       _lt_result=$?
8454       if test -s conftest.err && $GREP force_load conftest.err; then
8455         cat conftest.err >&5
8456       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8457         lt_cv_ld_force_load=yes
8458       else
8459         cat conftest.err >&5
8460       fi
8461         rm -f conftest.err libconftest.a conftest conftest.c
8462         rm -rf conftest.dSYM
8463
8464 fi
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8466 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8467     case $host_os in
8468     rhapsody* | darwin1.[012])
8469       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8470     darwin1.*)
8471       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8472     darwin*)
8473       case ${MACOSX_DEPLOYMENT_TARGET},$host in
8474         10.[012]*,*|,*powerpc*)
8475           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8476         *)
8477           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8478       esac
8479     ;;
8480   esac
8481     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8482       _lt_dar_single_mod='$single_module'
8483     fi
8484     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8485       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8486     else
8487       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8488     fi
8489     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8490       _lt_dsymutil='~$DSYMUTIL $lib || :'
8491     else
8492       _lt_dsymutil=
8493     fi
8494     ;;
8495   esac
8496
8497 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8498 "
8499 if test "x$ac_cv_header_dlfcn_h" = xyes
8500 then :
8501   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8502
8503 fi
8504
8505
8506
8507
8508
8509 # Set options
8510 enable_win32_dll=yes
8511
8512 case $host in
8513 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8514   if test -n "$ac_tool_prefix"; then
8515   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8516 set dummy ${ac_tool_prefix}as; ac_word=$2
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 printf %s "checking for $ac_word... " >&6; }
8519 if test ${ac_cv_prog_AS+y}
8520 then :
8521   printf %s "(cached) " >&6
8522 else $as_nop
8523   if test -n "$AS"; then
8524   ac_cv_prog_AS="$AS" # Let the user override the test.
8525 else
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8528 do
8529   IFS=$as_save_IFS
8530   case $as_dir in #(((
8531     '') as_dir=./ ;;
8532     */) ;;
8533     *) as_dir=$as_dir/ ;;
8534   esac
8535     for ac_exec_ext in '' $ac_executable_extensions; do
8536   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8537     ac_cv_prog_AS="${ac_tool_prefix}as"
8538     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542   done
8543 IFS=$as_save_IFS
8544
8545 fi
8546 fi
8547 AS=$ac_cv_prog_AS
8548 if test -n "$AS"; then
8549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8550 printf "%s\n" "$AS" >&6; }
8551 else
8552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 printf "%s\n" "no" >&6; }
8554 fi
8555
8556
8557 fi
8558 if test -z "$ac_cv_prog_AS"; then
8559   ac_ct_AS=$AS
8560   # Extract the first word of "as", so it can be a program name with args.
8561 set dummy as; ac_word=$2
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 printf %s "checking for $ac_word... " >&6; }
8564 if test ${ac_cv_prog_ac_ct_AS+y}
8565 then :
8566   printf %s "(cached) " >&6
8567 else $as_nop
8568   if test -n "$ac_ct_AS"; then
8569   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   case $as_dir in #(((
8576     '') as_dir=./ ;;
8577     */) ;;
8578     *) as_dir=$as_dir/ ;;
8579   esac
8580     for ac_exec_ext in '' $ac_executable_extensions; do
8581   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582     ac_cv_prog_ac_ct_AS="as"
8583     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8584     break 2
8585   fi
8586 done
8587   done
8588 IFS=$as_save_IFS
8589
8590 fi
8591 fi
8592 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8593 if test -n "$ac_ct_AS"; then
8594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8595 printf "%s\n" "$ac_ct_AS" >&6; }
8596 else
8597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 printf "%s\n" "no" >&6; }
8599 fi
8600
8601   if test "x$ac_ct_AS" = x; then
8602     AS="false"
8603   else
8604     case $cross_compiling:$ac_tool_warned in
8605 yes:)
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8608 ac_tool_warned=yes ;;
8609 esac
8610     AS=$ac_ct_AS
8611   fi
8612 else
8613   AS="$ac_cv_prog_AS"
8614 fi
8615
8616   if test -n "$ac_tool_prefix"; then
8617   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8618 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 printf %s "checking for $ac_word... " >&6; }
8621 if test ${ac_cv_prog_DLLTOOL+y}
8622 then :
8623   printf %s "(cached) " >&6
8624 else $as_nop
8625   if test -n "$DLLTOOL"; then
8626   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631   IFS=$as_save_IFS
8632   case $as_dir in #(((
8633     '') as_dir=./ ;;
8634     */) ;;
8635     *) as_dir=$as_dir/ ;;
8636   esac
8637     for ac_exec_ext in '' $ac_executable_extensions; do
8638   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8639     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8640     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8641     break 2
8642   fi
8643 done
8644   done
8645 IFS=$as_save_IFS
8646
8647 fi
8648 fi
8649 DLLTOOL=$ac_cv_prog_DLLTOOL
8650 if test -n "$DLLTOOL"; then
8651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8652 printf "%s\n" "$DLLTOOL" >&6; }
8653 else
8654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 printf "%s\n" "no" >&6; }
8656 fi
8657
8658
8659 fi
8660 if test -z "$ac_cv_prog_DLLTOOL"; then
8661   ac_ct_DLLTOOL=$DLLTOOL
8662   # Extract the first word of "dlltool", so it can be a program name with args.
8663 set dummy dlltool; ac_word=$2
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 printf %s "checking for $ac_word... " >&6; }
8666 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8667 then :
8668   printf %s "(cached) " >&6
8669 else $as_nop
8670   if test -n "$ac_ct_DLLTOOL"; then
8671   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676   IFS=$as_save_IFS
8677   case $as_dir in #(((
8678     '') as_dir=./ ;;
8679     */) ;;
8680     *) as_dir=$as_dir/ ;;
8681   esac
8682     for ac_exec_ext in '' $ac_executable_extensions; do
8683   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8684     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8685     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8686     break 2
8687   fi
8688 done
8689   done
8690 IFS=$as_save_IFS
8691
8692 fi
8693 fi
8694 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8695 if test -n "$ac_ct_DLLTOOL"; then
8696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8697 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8698 else
8699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 printf "%s\n" "no" >&6; }
8701 fi
8702
8703   if test "x$ac_ct_DLLTOOL" = x; then
8704     DLLTOOL="false"
8705   else
8706     case $cross_compiling:$ac_tool_warned in
8707 yes:)
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8711 esac
8712     DLLTOOL=$ac_ct_DLLTOOL
8713   fi
8714 else
8715   DLLTOOL="$ac_cv_prog_DLLTOOL"
8716 fi
8717
8718   if test -n "$ac_tool_prefix"; then
8719   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 printf %s "checking for $ac_word... " >&6; }
8723 if test ${ac_cv_prog_OBJDUMP+y}
8724 then :
8725   printf %s "(cached) " >&6
8726 else $as_nop
8727   if test -n "$OBJDUMP"; then
8728   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733   IFS=$as_save_IFS
8734   case $as_dir in #(((
8735     '') as_dir=./ ;;
8736     */) ;;
8737     *) as_dir=$as_dir/ ;;
8738   esac
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8741     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8742     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 OBJDUMP=$ac_cv_prog_OBJDUMP
8752 if test -n "$OBJDUMP"; then
8753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8754 printf "%s\n" "$OBJDUMP" >&6; }
8755 else
8756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 printf "%s\n" "no" >&6; }
8758 fi
8759
8760
8761 fi
8762 if test -z "$ac_cv_prog_OBJDUMP"; then
8763   ac_ct_OBJDUMP=$OBJDUMP
8764   # Extract the first word of "objdump", so it can be a program name with args.
8765 set dummy objdump; ac_word=$2
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 printf %s "checking for $ac_word... " >&6; }
8768 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8769 then :
8770   printf %s "(cached) " >&6
8771 else $as_nop
8772   if test -n "$ac_ct_OBJDUMP"; then
8773   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   case $as_dir in #(((
8780     '') as_dir=./ ;;
8781     */) ;;
8782     *) as_dir=$as_dir/ ;;
8783   esac
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8786     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8787     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8797 if test -n "$ac_ct_OBJDUMP"; then
8798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8799 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8800 else
8801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 printf "%s\n" "no" >&6; }
8803 fi
8804
8805   if test "x$ac_ct_OBJDUMP" = x; then
8806     OBJDUMP="false"
8807   else
8808     case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8813 esac
8814     OBJDUMP=$ac_ct_OBJDUMP
8815   fi
8816 else
8817   OBJDUMP="$ac_cv_prog_OBJDUMP"
8818 fi
8819
8820   ;;
8821 esac
8822
8823 test -z "$AS" && AS=as
8824
8825
8826
8827
8828
8829 test -z "$DLLTOOL" && DLLTOOL=dlltool
8830
8831
8832
8833
8834
8835 test -z "$OBJDUMP" && OBJDUMP=objdump
8836
8837
8838
8839
8840 # Check whether --enable-static was given.
8841 if test ${enable_static+y}
8842 then :
8843   enableval=$enable_static; p=${PACKAGE-default}
8844     case $enableval in
8845     yes) enable_static=yes ;;
8846     no) enable_static=no ;;
8847     *)
8848      enable_static=no
8849       # Look at the argument we got.  We use all the common list separators.
8850       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8851       for pkg in $enableval; do
8852         IFS="$lt_save_ifs"
8853         if test "X$pkg" = "X$p"; then
8854           enable_static=yes
8855         fi
8856       done
8857       IFS="$lt_save_ifs"
8858       ;;
8859     esac
8860 else $as_nop
8861   enable_static=no
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873         enable_dlopen=no
8874
8875
8876
8877             # Check whether --enable-shared was given.
8878 if test ${enable_shared+y}
8879 then :
8880   enableval=$enable_shared; p=${PACKAGE-default}
8881     case $enableval in
8882     yes) enable_shared=yes ;;
8883     no) enable_shared=no ;;
8884     *)
8885       enable_shared=no
8886       # Look at the argument we got.  We use all the common list separators.
8887       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8888       for pkg in $enableval; do
8889         IFS="$lt_save_ifs"
8890         if test "X$pkg" = "X$p"; then
8891           enable_shared=yes
8892         fi
8893       done
8894       IFS="$lt_save_ifs"
8895       ;;
8896     esac
8897 else $as_nop
8898   enable_shared=yes
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 # Check whether --with-pic was given.
8912 if test ${with_pic+y}
8913 then :
8914   withval=$with_pic; lt_p=${PACKAGE-default}
8915     case $withval in
8916     yes|no) pic_mode=$withval ;;
8917     *)
8918       pic_mode=default
8919       # Look at the argument we got.  We use all the common list separators.
8920       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8921       for lt_pkg in $withval; do
8922         IFS="$lt_save_ifs"
8923         if test "X$lt_pkg" = "X$lt_p"; then
8924           pic_mode=yes
8925         fi
8926       done
8927       IFS="$lt_save_ifs"
8928       ;;
8929     esac
8930 else $as_nop
8931   pic_mode=default
8932 fi
8933
8934
8935 test -z "$pic_mode" && pic_mode=default
8936
8937
8938
8939
8940
8941
8942
8943   # Check whether --enable-fast-install was given.
8944 if test ${enable_fast_install+y}
8945 then :
8946   enableval=$enable_fast_install; p=${PACKAGE-default}
8947     case $enableval in
8948     yes) enable_fast_install=yes ;;
8949     no) enable_fast_install=no ;;
8950     *)
8951       enable_fast_install=no
8952       # Look at the argument we got.  We use all the common list separators.
8953       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8954       for pkg in $enableval; do
8955         IFS="$lt_save_ifs"
8956         if test "X$pkg" = "X$p"; then
8957           enable_fast_install=yes
8958         fi
8959       done
8960       IFS="$lt_save_ifs"
8961       ;;
8962     esac
8963 else $as_nop
8964   enable_fast_install=yes
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 # This can be used to rebuild libtool when needed
8978 LIBTOOL_DEPS="$ltmain"
8979
8980 # Always use our own libtool.
8981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 test -z "$LN_S" && LN_S="ln -s"
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027 if test -n "${ZSH_VERSION+set}" ; then
9028    setopt NO_GLOB_SUBST
9029 fi
9030
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9032 printf %s "checking for objdir... " >&6; }
9033 if test ${lt_cv_objdir+y}
9034 then :
9035   printf %s "(cached) " >&6
9036 else $as_nop
9037   rm -f .libs 2>/dev/null
9038 mkdir .libs 2>/dev/null
9039 if test -d .libs; then
9040   lt_cv_objdir=.libs
9041 else
9042   # MS-DOS does not allow filenames that begin with a dot.
9043   lt_cv_objdir=_libs
9044 fi
9045 rmdir .libs 2>/dev/null
9046 fi
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9048 printf "%s\n" "$lt_cv_objdir" >&6; }
9049 objdir=$lt_cv_objdir
9050
9051
9052
9053
9054
9055 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9056
9057
9058
9059
9060 case $host_os in
9061 aix3*)
9062   # AIX sometimes has problems with the GCC collect2 program.  For some
9063   # reason, if we set the COLLECT_NAMES environment variable, the problems
9064   # vanish in a puff of smoke.
9065   if test "X${COLLECT_NAMES+set}" != Xset; then
9066     COLLECT_NAMES=
9067     export COLLECT_NAMES
9068   fi
9069   ;;
9070 esac
9071
9072 # Global variables:
9073 ofile=libtool
9074 can_build_shared=yes
9075
9076 # All known linkers require a `.a' archive for static linking (except MSVC,
9077 # which needs '.lib').
9078 libext=a
9079
9080 with_gnu_ld="$lt_cv_prog_gnu_ld"
9081
9082 old_CC="$CC"
9083 old_CFLAGS="$CFLAGS"
9084
9085 # Set sane defaults for various variables
9086 test -z "$CC" && CC=cc
9087 test -z "$LTCC" && LTCC=$CC
9088 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9089 test -z "$LD" && LD=ld
9090 test -z "$ac_objext" && ac_objext=o
9091
9092 for cc_temp in $compiler""; do
9093   case $cc_temp in
9094     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9095     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9096     \-*) ;;
9097     *) break;;
9098   esac
9099 done
9100 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9101
9102
9103 # Only perform the check for file, if the check method requires it
9104 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9105 case $deplibs_check_method in
9106 file_magic*)
9107   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9108     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9109 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9110 if test ${lt_cv_path_MAGIC_CMD+y}
9111 then :
9112   printf %s "(cached) " >&6
9113 else $as_nop
9114   case $MAGIC_CMD in
9115 [\\/*] |  ?:[\\/]*)
9116   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9117   ;;
9118 *)
9119   lt_save_MAGIC_CMD="$MAGIC_CMD"
9120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9121   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9122   for ac_dir in $ac_dummy; do
9123     IFS="$lt_save_ifs"
9124     test -z "$ac_dir" && ac_dir=.
9125     if test -f $ac_dir/${ac_tool_prefix}file; then
9126       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9127       if test -n "$file_magic_test_file"; then
9128         case $deplibs_check_method in
9129         "file_magic "*)
9130           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9131           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9132           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9133             $EGREP "$file_magic_regex" > /dev/null; then
9134             :
9135           else
9136             cat <<_LT_EOF 1>&2
9137
9138 *** Warning: the command libtool uses to detect shared libraries,
9139 *** $file_magic_cmd, produces output that libtool cannot recognize.
9140 *** The result is that libtool may fail to recognize shared libraries
9141 *** as such.  This will affect the creation of libtool libraries that
9142 *** depend on shared libraries, but programs linked with such libtool
9143 *** libraries will work regardless of this problem.  Nevertheless, you
9144 *** may want to report the problem to your system manager and/or to
9145 *** bug-libtool@gnu.org
9146
9147 _LT_EOF
9148           fi ;;
9149         esac
9150       fi
9151       break
9152     fi
9153   done
9154   IFS="$lt_save_ifs"
9155   MAGIC_CMD="$lt_save_MAGIC_CMD"
9156   ;;
9157 esac
9158 fi
9159
9160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9161 if test -n "$MAGIC_CMD"; then
9162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9163 printf "%s\n" "$MAGIC_CMD" >&6; }
9164 else
9165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9167 fi
9168
9169
9170
9171
9172
9173 if test -z "$lt_cv_path_MAGIC_CMD"; then
9174   if test -n "$ac_tool_prefix"; then
9175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9176 printf %s "checking for file... " >&6; }
9177 if test ${lt_cv_path_MAGIC_CMD+y}
9178 then :
9179   printf %s "(cached) " >&6
9180 else $as_nop
9181   case $MAGIC_CMD in
9182 [\\/*] |  ?:[\\/]*)
9183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9184   ;;
9185 *)
9186   lt_save_MAGIC_CMD="$MAGIC_CMD"
9187   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9188   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9189   for ac_dir in $ac_dummy; do
9190     IFS="$lt_save_ifs"
9191     test -z "$ac_dir" && ac_dir=.
9192     if test -f $ac_dir/file; then
9193       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9194       if test -n "$file_magic_test_file"; then
9195         case $deplibs_check_method in
9196         "file_magic "*)
9197           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9198           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9199           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9200             $EGREP "$file_magic_regex" > /dev/null; then
9201             :
9202           else
9203             cat <<_LT_EOF 1>&2
9204
9205 *** Warning: the command libtool uses to detect shared libraries,
9206 *** $file_magic_cmd, produces output that libtool cannot recognize.
9207 *** The result is that libtool may fail to recognize shared libraries
9208 *** as such.  This will affect the creation of libtool libraries that
9209 *** depend on shared libraries, but programs linked with such libtool
9210 *** libraries will work regardless of this problem.  Nevertheless, you
9211 *** may want to report the problem to your system manager and/or to
9212 *** bug-libtool@gnu.org
9213
9214 _LT_EOF
9215           fi ;;
9216         esac
9217       fi
9218       break
9219     fi
9220   done
9221   IFS="$lt_save_ifs"
9222   MAGIC_CMD="$lt_save_MAGIC_CMD"
9223   ;;
9224 esac
9225 fi
9226
9227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228 if test -n "$MAGIC_CMD"; then
9229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9230 printf "%s\n" "$MAGIC_CMD" >&6; }
9231 else
9232   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 printf "%s\n" "no" >&6; }
9234 fi
9235
9236
9237   else
9238     MAGIC_CMD=:
9239   fi
9240 fi
9241
9242   fi
9243   ;;
9244 esac
9245
9246 # Use C for the default configuration in the libtool script
9247
9248 lt_save_CC="$CC"
9249 ac_ext=c
9250 ac_cpp='$CPP $CPPFLAGS'
9251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9254
9255
9256 # Source file extension for C test sources.
9257 ac_ext=c
9258
9259 # Object file extension for compiled C test sources.
9260 objext=o
9261 objext=$objext
9262
9263 # Code to be used in simple compile tests
9264 lt_simple_compile_test_code="int some_variable = 0;"
9265
9266 # Code to be used in simple link tests
9267 lt_simple_link_test_code='int main(){return(0);}'
9268
9269
9270
9271
9272
9273
9274
9275 # If no C compiler was specified, use CC.
9276 LTCC=${LTCC-"$CC"}
9277
9278 # If no C compiler flags were specified, use CFLAGS.
9279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9280
9281 # Allow CC to be a program name with arguments.
9282 compiler=$CC
9283
9284 # Save the default compiler, since it gets overwritten when the other
9285 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9286 compiler_DEFAULT=$CC
9287
9288 # save warnings/boilerplate of simple test code
9289 ac_outfile=conftest.$ac_objext
9290 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9292 _lt_compiler_boilerplate=`cat conftest.err`
9293 $RM conftest*
9294
9295 ac_outfile=conftest.$ac_objext
9296 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9298 _lt_linker_boilerplate=`cat conftest.err`
9299 $RM -r conftest*
9300
9301
9302 ## CAVEAT EMPTOR:
9303 ## There is no encapsulation within the following macros, do not change
9304 ## the running order or otherwise move them around unless you know exactly
9305 ## what you are doing...
9306 if test -n "$compiler"; then
9307
9308 lt_prog_compiler_no_builtin_flag=
9309
9310 if test "$GCC" = yes; then
9311   case $cc_basename in
9312   nvcc*)
9313     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9314   *)
9315     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9316   esac
9317
9318   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9319 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9320 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9321 then :
9322   printf %s "(cached) " >&6
9323 else $as_nop
9324   lt_cv_prog_compiler_rtti_exceptions=no
9325    ac_outfile=conftest.$ac_objext
9326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9327    lt_compiler_flag="-fno-rtti -fno-exceptions"
9328    # Insert the option either (1) after the last *FLAGS variable, or
9329    # (2) before a word containing "conftest.", or (3) at the end.
9330    # Note that $ac_compile itself does not contain backslashes and begins
9331    # with a dollar sign (not a hyphen), so the echo should work correctly.
9332    # The option is referenced via a variable to avoid confusing sed.
9333    lt_compile=`echo "$ac_compile" | $SED \
9334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9336    -e 's:$: $lt_compiler_flag:'`
9337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9338    (eval "$lt_compile" 2>conftest.err)
9339    ac_status=$?
9340    cat conftest.err >&5
9341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342    if (exit $ac_status) && test -s "$ac_outfile"; then
9343      # The compiler can only warn and ignore the option if not recognized
9344      # So say no if there are warnings other than the usual output.
9345      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9346      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9347      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9348        lt_cv_prog_compiler_rtti_exceptions=yes
9349      fi
9350    fi
9351    $RM conftest*
9352
9353 fi
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9355 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9356
9357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9358     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9359 else
9360     :
9361 fi
9362
9363 fi
9364
9365
9366
9367
9368
9369
9370   lt_prog_compiler_wl=
9371 lt_prog_compiler_pic=
9372 lt_prog_compiler_static=
9373
9374
9375   if test "$GCC" = yes; then
9376     lt_prog_compiler_wl='-Wl,'
9377     lt_prog_compiler_static='-static'
9378
9379     case $host_os in
9380       aix*)
9381       # All AIX code is PIC.
9382       if test "$host_cpu" = ia64; then
9383         # AIX 5 now supports IA64 processor
9384         lt_prog_compiler_static='-Bstatic'
9385       fi
9386       ;;
9387
9388     amigaos*)
9389       case $host_cpu in
9390       powerpc)
9391             # see comment about AmigaOS4 .so support
9392             lt_prog_compiler_pic='-fPIC'
9393         ;;
9394       m68k)
9395             # FIXME: we need at least 68020 code to build shared libraries, but
9396             # adding the `-m68020' flag to GCC prevents building anything better,
9397             # like `-m68040'.
9398             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9399         ;;
9400       esac
9401       ;;
9402
9403     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404       # PIC is the default for these OSes.
9405       ;;
9406
9407     mingw* | cygwin* | pw32* | os2* | cegcc*)
9408       # This hack is so that the source file can tell whether it is being
9409       # built for inclusion in a dll (and should export symbols for example).
9410       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411       # (--disable-auto-import) libraries
9412       lt_prog_compiler_pic='-DDLL_EXPORT'
9413       ;;
9414
9415     darwin* | rhapsody*)
9416       # PIC is the default on this platform
9417       # Common symbols not allowed in MH_DYLIB files
9418       lt_prog_compiler_pic='-fno-common'
9419       ;;
9420
9421     haiku*)
9422       # PIC is the default for Haiku.
9423       # The "-static" flag exists, but is broken.
9424       lt_prog_compiler_static=
9425       ;;
9426
9427     hpux*)
9428       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9429       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9430       # sets the default TLS model and affects inlining.
9431       case $host_cpu in
9432       hppa*64*)
9433         # +Z the default
9434         ;;
9435       *)
9436         lt_prog_compiler_pic='-fPIC'
9437         ;;
9438       esac
9439       ;;
9440
9441     interix[3-9]*)
9442       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9443       # Instead, we relocate shared libraries at runtime.
9444       ;;
9445
9446     msdosdjgpp*)
9447       # Just because we use GCC doesn't mean we suddenly get shared libraries
9448       # on systems that don't support them.
9449       lt_prog_compiler_can_build_shared=no
9450       enable_shared=no
9451       ;;
9452
9453     *nto* | *qnx*)
9454       # QNX uses GNU C++, but need to define -shared option too, otherwise
9455       # it will coredump.
9456       lt_prog_compiler_pic='-fPIC -shared'
9457       ;;
9458
9459     sysv4*MP*)
9460       if test -d /usr/nec; then
9461         lt_prog_compiler_pic=-Kconform_pic
9462       fi
9463       ;;
9464
9465     *)
9466       lt_prog_compiler_pic='-fPIC'
9467       ;;
9468     esac
9469
9470     case $cc_basename in
9471     nvcc*) # Cuda Compiler Driver 2.2
9472       lt_prog_compiler_wl='-Xlinker '
9473       if test -n "$lt_prog_compiler_pic"; then
9474         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9475       fi
9476       ;;
9477     esac
9478   else
9479     # PORTME Check for flag to pass linker flags through the system compiler.
9480     case $host_os in
9481     aix*)
9482       lt_prog_compiler_wl='-Wl,'
9483       if test "$host_cpu" = ia64; then
9484         # AIX 5 now supports IA64 processor
9485         lt_prog_compiler_static='-Bstatic'
9486       else
9487         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9488       fi
9489       ;;
9490
9491     mingw* | cygwin* | pw32* | os2* | cegcc*)
9492       # This hack is so that the source file can tell whether it is being
9493       # built for inclusion in a dll (and should export symbols for example).
9494       lt_prog_compiler_pic='-DDLL_EXPORT'
9495       ;;
9496
9497     hpux9* | hpux10* | hpux11*)
9498       lt_prog_compiler_wl='-Wl,'
9499       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9500       # not for PA HP-UX.
9501       case $host_cpu in
9502       hppa*64*|ia64*)
9503         # +Z the default
9504         ;;
9505       *)
9506         lt_prog_compiler_pic='+Z'
9507         ;;
9508       esac
9509       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9510       lt_prog_compiler_static='${wl}-a ${wl}archive'
9511       ;;
9512
9513     irix5* | irix6* | nonstopux*)
9514       lt_prog_compiler_wl='-Wl,'
9515       # PIC (with -KPIC) is the default.
9516       lt_prog_compiler_static='-non_shared'
9517       ;;
9518
9519     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9520       case $cc_basename in
9521       # old Intel for x86_64 which still supported -KPIC.
9522       ecc*)
9523         lt_prog_compiler_wl='-Wl,'
9524         lt_prog_compiler_pic='-KPIC'
9525         lt_prog_compiler_static='-static'
9526         ;;
9527       # icc used to be incompatible with GCC.
9528       # ICC 10 doesn't accept -KPIC any more.
9529       icc* | ifort*)
9530         lt_prog_compiler_wl='-Wl,'
9531         lt_prog_compiler_pic='-fPIC'
9532         lt_prog_compiler_static='-static'
9533         ;;
9534       # Lahey Fortran 8.1.
9535       lf95*)
9536         lt_prog_compiler_wl='-Wl,'
9537         lt_prog_compiler_pic='--shared'
9538         lt_prog_compiler_static='--static'
9539         ;;
9540       nagfor*)
9541         # NAG Fortran compiler
9542         lt_prog_compiler_wl='-Wl,-Wl,,'
9543         lt_prog_compiler_pic='-PIC'
9544         lt_prog_compiler_static='-Bstatic'
9545         ;;
9546       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9547         # Portland Group compilers (*not* the Pentium gcc compiler,
9548         # which looks to be a dead project)
9549         lt_prog_compiler_wl='-Wl,'
9550         lt_prog_compiler_pic='-fpic'
9551         lt_prog_compiler_static='-Bstatic'
9552         ;;
9553       ccc*)
9554         lt_prog_compiler_wl='-Wl,'
9555         # All Alpha code is PIC.
9556         lt_prog_compiler_static='-non_shared'
9557         ;;
9558       xl* | bgxl* | bgf* | mpixl*)
9559         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9560         lt_prog_compiler_wl='-Wl,'
9561         lt_prog_compiler_pic='-qpic'
9562         lt_prog_compiler_static='-qstaticlink'
9563         ;;
9564       *)
9565         case `$CC -V 2>&1 | sed 5q` in
9566         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9567           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9568           lt_prog_compiler_pic='-KPIC'
9569           lt_prog_compiler_static='-Bstatic'
9570           lt_prog_compiler_wl=''
9571           ;;
9572         *Sun\ F* | *Sun*Fortran*)
9573           lt_prog_compiler_pic='-KPIC'
9574           lt_prog_compiler_static='-Bstatic'
9575           lt_prog_compiler_wl='-Qoption ld '
9576           ;;
9577         *Sun\ C*)
9578           # Sun C 5.9
9579           lt_prog_compiler_pic='-KPIC'
9580           lt_prog_compiler_static='-Bstatic'
9581           lt_prog_compiler_wl='-Wl,'
9582           ;;
9583         *Intel*\ [CF]*Compiler*)
9584           lt_prog_compiler_wl='-Wl,'
9585           lt_prog_compiler_pic='-fPIC'
9586           lt_prog_compiler_static='-static'
9587           ;;
9588         *Portland\ Group*)
9589           lt_prog_compiler_wl='-Wl,'
9590           lt_prog_compiler_pic='-fpic'
9591           lt_prog_compiler_static='-Bstatic'
9592           ;;
9593         esac
9594         ;;
9595       esac
9596       ;;
9597
9598     newsos6)
9599       lt_prog_compiler_pic='-KPIC'
9600       lt_prog_compiler_static='-Bstatic'
9601       ;;
9602
9603     *nto* | *qnx*)
9604       # QNX uses GNU C++, but need to define -shared option too, otherwise
9605       # it will coredump.
9606       lt_prog_compiler_pic='-fPIC -shared'
9607       ;;
9608
9609     osf3* | osf4* | osf5*)
9610       lt_prog_compiler_wl='-Wl,'
9611       # All OSF/1 code is PIC.
9612       lt_prog_compiler_static='-non_shared'
9613       ;;
9614
9615     rdos*)
9616       lt_prog_compiler_static='-non_shared'
9617       ;;
9618
9619     solaris*)
9620       lt_prog_compiler_pic='-KPIC'
9621       lt_prog_compiler_static='-Bstatic'
9622       case $cc_basename in
9623       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9624         lt_prog_compiler_wl='-Qoption ld ';;
9625       *)
9626         lt_prog_compiler_wl='-Wl,';;
9627       esac
9628       ;;
9629
9630     sunos4*)
9631       lt_prog_compiler_wl='-Qoption ld '
9632       lt_prog_compiler_pic='-PIC'
9633       lt_prog_compiler_static='-Bstatic'
9634       ;;
9635
9636     sysv4 | sysv4.2uw2* | sysv4.3*)
9637       lt_prog_compiler_wl='-Wl,'
9638       lt_prog_compiler_pic='-KPIC'
9639       lt_prog_compiler_static='-Bstatic'
9640       ;;
9641
9642     sysv4*MP*)
9643       if test -d /usr/nec ;then
9644         lt_prog_compiler_pic='-Kconform_pic'
9645         lt_prog_compiler_static='-Bstatic'
9646       fi
9647       ;;
9648
9649     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9650       lt_prog_compiler_wl='-Wl,'
9651       lt_prog_compiler_pic='-KPIC'
9652       lt_prog_compiler_static='-Bstatic'
9653       ;;
9654
9655     unicos*)
9656       lt_prog_compiler_wl='-Wl,'
9657       lt_prog_compiler_can_build_shared=no
9658       ;;
9659
9660     uts4*)
9661       lt_prog_compiler_pic='-pic'
9662       lt_prog_compiler_static='-Bstatic'
9663       ;;
9664
9665     *)
9666       lt_prog_compiler_can_build_shared=no
9667       ;;
9668     esac
9669   fi
9670
9671 case $host_os in
9672   # For platforms which do not support PIC, -DPIC is meaningless:
9673   *djgpp*)
9674     lt_prog_compiler_pic=
9675     ;;
9676   *)
9677     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9678     ;;
9679 esac
9680
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9682 printf %s "checking for $compiler option to produce PIC... " >&6; }
9683 if test ${lt_cv_prog_compiler_pic+y}
9684 then :
9685   printf %s "(cached) " >&6
9686 else $as_nop
9687   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9688 fi
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9690 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9699 if test ${lt_cv_prog_compiler_pic_works+y}
9700 then :
9701   printf %s "(cached) " >&6
9702 else $as_nop
9703   lt_cv_prog_compiler_pic_works=no
9704    ac_outfile=conftest.$ac_objext
9705    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9706    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9707    # Insert the option either (1) after the last *FLAGS variable, or
9708    # (2) before a word containing "conftest.", or (3) at the end.
9709    # Note that $ac_compile itself does not contain backslashes and begins
9710    # with a dollar sign (not a hyphen), so the echo should work correctly.
9711    # The option is referenced via a variable to avoid confusing sed.
9712    lt_compile=`echo "$ac_compile" | $SED \
9713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9715    -e 's:$: $lt_compiler_flag:'`
9716    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9717    (eval "$lt_compile" 2>conftest.err)
9718    ac_status=$?
9719    cat conftest.err >&5
9720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721    if (exit $ac_status) && test -s "$ac_outfile"; then
9722      # The compiler can only warn and ignore the option if not recognized
9723      # So say no if there are warnings other than the usual output.
9724      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9725      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9727        lt_cv_prog_compiler_pic_works=yes
9728      fi
9729    fi
9730    $RM conftest*
9731
9732 fi
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9734 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9735
9736 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9737     case $lt_prog_compiler_pic in
9738      "" | " "*) ;;
9739      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9740      esac
9741 else
9742     lt_prog_compiler_pic=
9743      lt_prog_compiler_can_build_shared=no
9744 fi
9745
9746 fi
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758 #
9759 # Check to make sure the static flag actually works.
9760 #
9761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9763 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9764 if test ${lt_cv_prog_compiler_static_works+y}
9765 then :
9766   printf %s "(cached) " >&6
9767 else $as_nop
9768   lt_cv_prog_compiler_static_works=no
9769    save_LDFLAGS="$LDFLAGS"
9770    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9771    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9772    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9773      # The linker can only warn and ignore the option if not recognized
9774      # So say no if there are warnings
9775      if test -s conftest.err; then
9776        # Append any errors to the config.log.
9777        cat conftest.err 1>&5
9778        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9779        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9780        if diff conftest.exp conftest.er2 >/dev/null; then
9781          lt_cv_prog_compiler_static_works=yes
9782        fi
9783      else
9784        lt_cv_prog_compiler_static_works=yes
9785      fi
9786    fi
9787    $RM -r conftest*
9788    LDFLAGS="$save_LDFLAGS"
9789
9790 fi
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9792 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9793
9794 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9795     :
9796 else
9797     lt_prog_compiler_static=
9798 fi
9799
9800
9801
9802
9803
9804
9805
9806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9807 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9808 if test ${lt_cv_prog_compiler_c_o+y}
9809 then :
9810   printf %s "(cached) " >&6
9811 else $as_nop
9812   lt_cv_prog_compiler_c_o=no
9813    $RM -r conftest 2>/dev/null
9814    mkdir conftest
9815    cd conftest
9816    mkdir out
9817    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9818
9819    lt_compiler_flag="-o out/conftest2.$ac_objext"
9820    # Insert the option either (1) after the last *FLAGS variable, or
9821    # (2) before a word containing "conftest.", or (3) at the end.
9822    # Note that $ac_compile itself does not contain backslashes and begins
9823    # with a dollar sign (not a hyphen), so the echo should work correctly.
9824    lt_compile=`echo "$ac_compile" | $SED \
9825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827    -e 's:$: $lt_compiler_flag:'`
9828    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9829    (eval "$lt_compile" 2>out/conftest.err)
9830    ac_status=$?
9831    cat out/conftest.err >&5
9832    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9834    then
9835      # The compiler can only warn and ignore the option if not recognized
9836      # So say no if there are warnings
9837      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9838      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9839      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9840        lt_cv_prog_compiler_c_o=yes
9841      fi
9842    fi
9843    chmod u+w . 2>&5
9844    $RM conftest*
9845    # SGI C++ compiler will create directory out/ii_files/ for
9846    # template instantiation
9847    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9848    $RM out/* && rmdir out
9849    cd ..
9850    $RM -r conftest
9851    $RM conftest*
9852
9853 fi
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9855 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9856
9857
9858
9859
9860
9861
9862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9864 if test ${lt_cv_prog_compiler_c_o+y}
9865 then :
9866   printf %s "(cached) " >&6
9867 else $as_nop
9868   lt_cv_prog_compiler_c_o=no
9869    $RM -r conftest 2>/dev/null
9870    mkdir conftest
9871    cd conftest
9872    mkdir out
9873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874
9875    lt_compiler_flag="-o out/conftest2.$ac_objext"
9876    # Insert the option either (1) after the last *FLAGS variable, or
9877    # (2) before a word containing "conftest.", or (3) at the end.
9878    # Note that $ac_compile itself does not contain backslashes and begins
9879    # with a dollar sign (not a hyphen), so the echo should work correctly.
9880    lt_compile=`echo "$ac_compile" | $SED \
9881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883    -e 's:$: $lt_compiler_flag:'`
9884    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9885    (eval "$lt_compile" 2>out/conftest.err)
9886    ac_status=$?
9887    cat out/conftest.err >&5
9888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9890    then
9891      # The compiler can only warn and ignore the option if not recognized
9892      # So say no if there are warnings
9893      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9896        lt_cv_prog_compiler_c_o=yes
9897      fi
9898    fi
9899    chmod u+w . 2>&5
9900    $RM conftest*
9901    # SGI C++ compiler will create directory out/ii_files/ for
9902    # template instantiation
9903    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9904    $RM out/* && rmdir out
9905    cd ..
9906    $RM -r conftest
9907    $RM conftest*
9908
9909 fi
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9911 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9912
9913
9914
9915
9916 hard_links="nottested"
9917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9918   # do not overwrite the value of need_locks provided by the user
9919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9920 printf %s "checking if we can lock with hard links... " >&6; }
9921   hard_links=yes
9922   $RM conftest*
9923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9924   touch conftest.a
9925   ln conftest.a conftest.b 2>&5 || hard_links=no
9926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9928 printf "%s\n" "$hard_links" >&6; }
9929   if test "$hard_links" = no; then
9930     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9931 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9932     need_locks=warn
9933   fi
9934 else
9935   need_locks=no
9936 fi
9937
9938
9939
9940
9941
9942
9943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9944 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9945
9946   runpath_var=
9947   allow_undefined_flag=
9948   always_export_symbols=no
9949   archive_cmds=
9950   archive_expsym_cmds=
9951   compiler_needs_object=no
9952   enable_shared_with_static_runtimes=no
9953   export_dynamic_flag_spec=
9954   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9955   hardcode_automatic=no
9956   hardcode_direct=no
9957   hardcode_direct_absolute=no
9958   hardcode_libdir_flag_spec=
9959   hardcode_libdir_separator=
9960   hardcode_minus_L=no
9961   hardcode_shlibpath_var=unsupported
9962   inherit_rpath=no
9963   link_all_deplibs=unknown
9964   module_cmds=
9965   module_expsym_cmds=
9966   old_archive_from_new_cmds=
9967   old_archive_from_expsyms_cmds=
9968   thread_safe_flag_spec=
9969   whole_archive_flag_spec=
9970   # include_expsyms should be a list of space-separated symbols to be *always*
9971   # included in the symbol list
9972   include_expsyms=
9973   # exclude_expsyms can be an extended regexp of symbols to exclude
9974   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9975   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9976   # as well as any symbol that contains `d'.
9977   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9978   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9979   # platforms (ab)use it in PIC code, but their linkers get confused if
9980   # the symbol is explicitly referenced.  Since portable code cannot
9981   # rely on this symbol name, it's probably fine to never include it in
9982   # preloaded symbol tables.
9983   # Exclude shared library initialization/finalization symbols.
9984   extract_expsyms_cmds=
9985
9986   case $host_os in
9987   cygwin* | mingw* | pw32* | cegcc*)
9988     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9989     # When not using gcc, we currently assume that we are using
9990     # Microsoft Visual C++.
9991     if test "$GCC" != yes; then
9992       with_gnu_ld=no
9993     fi
9994     ;;
9995   interix*)
9996     # we just hope/assume this is gcc and not c89 (= MSVC++)
9997     with_gnu_ld=yes
9998     ;;
9999   openbsd*)
10000     with_gnu_ld=no
10001     ;;
10002   linux* | k*bsd*-gnu | gnu*)
10003     link_all_deplibs=no
10004     ;;
10005   esac
10006
10007   ld_shlibs=yes
10008
10009   # On some targets, GNU ld is compatible enough with the native linker
10010   # that we're better off using the native interface for both.
10011   lt_use_gnu_ld_interface=no
10012   if test "$with_gnu_ld" = yes; then
10013     case $host_os in
10014       aix*)
10015         # The AIX port of GNU ld has always aspired to compatibility
10016         # with the native linker.  However, as the warning in the GNU ld
10017         # block says, versions before 2.19.5* couldn't really create working
10018         # shared libraries, regardless of the interface used.
10019         case `$LD -v 2>&1` in
10020           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10021           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10022           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10023           *)
10024             lt_use_gnu_ld_interface=yes
10025             ;;
10026         esac
10027         ;;
10028       *)
10029         lt_use_gnu_ld_interface=yes
10030         ;;
10031     esac
10032   fi
10033
10034   if test "$lt_use_gnu_ld_interface" = yes; then
10035     # If archive_cmds runs LD, not CC, wlarc should be empty
10036     wlarc='${wl}'
10037
10038     # Set some defaults for GNU ld with shared library support. These
10039     # are reset later if shared libraries are not supported. Putting them
10040     # here allows them to be overridden if necessary.
10041     runpath_var=LD_RUN_PATH
10042     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043     export_dynamic_flag_spec='${wl}--export-dynamic'
10044     # ancient GNU ld didn't support --whole-archive et. al.
10045     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10046       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10047     else
10048       whole_archive_flag_spec=
10049     fi
10050     supports_anon_versioning=no
10051     case `$LD -v 2>&1` in
10052       *GNU\ gold*) supports_anon_versioning=yes ;;
10053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10056       *\ 2.11.*) ;; # other 2.11 versions
10057       *) supports_anon_versioning=yes ;;
10058     esac
10059
10060     # See if GNU ld supports shared libraries.
10061     case $host_os in
10062     aix[3-9]*)
10063       # On AIX/PPC, the GNU linker is very broken
10064       if test "$host_cpu" != ia64; then
10065         ld_shlibs=no
10066         cat <<_LT_EOF 1>&2
10067
10068 *** Warning: the GNU linker, at least up to release 2.19, is reported
10069 *** to be unable to reliably create shared libraries on AIX.
10070 *** Therefore, libtool is disabling shared libraries support.  If you
10071 *** really care for shared libraries, you may want to install binutils
10072 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10073 *** You will then need to restart the configuration process.
10074
10075 _LT_EOF
10076       fi
10077       ;;
10078
10079     amigaos*)
10080       case $host_cpu in
10081       powerpc)
10082             # see comment about AmigaOS4 .so support
10083             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084             archive_expsym_cmds=''
10085         ;;
10086       m68k)
10087             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)'
10088             hardcode_libdir_flag_spec='-L$libdir'
10089             hardcode_minus_L=yes
10090         ;;
10091       esac
10092       ;;
10093
10094     beos*)
10095       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10096         allow_undefined_flag=unsupported
10097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10098         # support --undefined.  This deserves some investigation.  FIXME
10099         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100       else
10101         ld_shlibs=no
10102       fi
10103       ;;
10104
10105     cygwin* | mingw* | pw32* | cegcc*)
10106       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10107       # as there is no search path for DLLs.
10108       hardcode_libdir_flag_spec='-L$libdir'
10109       export_dynamic_flag_spec='${wl}--export-all-symbols'
10110       allow_undefined_flag=unsupported
10111       always_export_symbols=no
10112       enable_shared_with_static_runtimes=yes
10113       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'
10114       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10115
10116       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10117         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10118         # If the export-symbols file already is a .def file (1st line
10119         # is EXPORTS), use it as is; otherwise, prepend...
10120         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10121           cp $export_symbols $output_objdir/$soname.def;
10122         else
10123           echo EXPORTS > $output_objdir/$soname.def;
10124           cat $export_symbols >> $output_objdir/$soname.def;
10125         fi~
10126         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10127       else
10128         ld_shlibs=no
10129       fi
10130       ;;
10131
10132     haiku*)
10133       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134       link_all_deplibs=yes
10135       ;;
10136
10137     interix[3-9]*)
10138       hardcode_direct=no
10139       hardcode_shlibpath_var=no
10140       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141       export_dynamic_flag_spec='${wl}-E'
10142       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10143       # Instead, shared libraries are loaded at an image base (0x10000000 by
10144       # default) and relocated if they conflict, which is a slow very memory
10145       # consuming and fragmenting process.  To avoid this, we pick a random,
10146       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10147       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10148       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10149       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'
10150       ;;
10151
10152     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10153       tmp_diet=no
10154       if test "$host_os" = linux-dietlibc; then
10155         case $cc_basename in
10156           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10157         esac
10158       fi
10159       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10160          && test "$tmp_diet" = no
10161       then
10162         tmp_addflag=' $pic_flag'
10163         tmp_sharedflag='-shared'
10164         case $cc_basename,$host_cpu in
10165         pgcc*)                          # Portland Group C compiler
10166           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'
10167           tmp_addflag=' $pic_flag'
10168           ;;
10169         pgf77* | pgf90* | pgf95* | pgfortran*)
10170                                         # Portland Group f77 and f90 compilers
10171           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'
10172           tmp_addflag=' $pic_flag -Mnomain' ;;
10173         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10174           tmp_addflag=' -i_dynamic' ;;
10175         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10176           tmp_addflag=' -i_dynamic -nofor_main' ;;
10177         ifc* | ifort*)                  # Intel Fortran compiler
10178           tmp_addflag=' -nofor_main' ;;
10179         lf95*)                          # Lahey Fortran 8.1
10180           whole_archive_flag_spec=
10181           tmp_sharedflag='--shared' ;;
10182         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10183           tmp_sharedflag='-qmkshrobj'
10184           tmp_addflag= ;;
10185         nvcc*)  # Cuda Compiler Driver 2.2
10186           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'
10187           compiler_needs_object=yes
10188           ;;
10189         esac
10190         case `$CC -V 2>&1 | sed 5q` in
10191         *Sun\ C*)                       # Sun C 5.9
10192           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'
10193           compiler_needs_object=yes
10194           tmp_sharedflag='-G' ;;
10195         *Sun\ F*)                       # Sun Fortran 8.3
10196           tmp_sharedflag='-G' ;;
10197         esac
10198         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199
10200         if test "x$supports_anon_versioning" = xyes; then
10201           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10202             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10203             echo "local: *; };" >> $output_objdir/$libname.ver~
10204             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10205         fi
10206
10207         case $cc_basename in
10208         xlf* | bgf* | bgxlf* | mpixlf*)
10209           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10210           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10211           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10213           if test "x$supports_anon_versioning" = xyes; then
10214             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216               echo "local: *; };" >> $output_objdir/$libname.ver~
10217               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10218           fi
10219           ;;
10220         esac
10221       else
10222         ld_shlibs=no
10223       fi
10224       ;;
10225
10226     netbsd* | netbsdelf*-gnu)
10227       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10229         wlarc=
10230       else
10231         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10233       fi
10234       ;;
10235
10236     solaris*)
10237       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10238         ld_shlibs=no
10239         cat <<_LT_EOF 1>&2
10240
10241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10242 *** create shared libraries on Solaris systems.  Therefore, libtool
10243 *** is disabling shared libraries support.  We urge you to upgrade GNU
10244 *** binutils to release 2.9.1 or newer.  Another option is to modify
10245 *** your PATH or compiler configuration so that the native linker is
10246 *** used, and then restart.
10247
10248 _LT_EOF
10249       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10252       else
10253         ld_shlibs=no
10254       fi
10255       ;;
10256
10257     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10258       case `$LD -v 2>&1` in
10259         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10260         ld_shlibs=no
10261         cat <<_LT_EOF 1>&2
10262
10263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10264 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10265 *** is disabling shared libraries support.  We urge you to upgrade GNU
10266 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10269
10270 _LT_EOF
10271         ;;
10272         *)
10273           # For security reasons, it is highly recommended that you always
10274           # use absolute paths for naming shared libraries, and exclude the
10275           # DT_RUNPATH tag from executables and libraries.  But doing so
10276           # requires that you compile everything twice, which is a pain.
10277           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10281           else
10282             ld_shlibs=no
10283           fi
10284         ;;
10285       esac
10286       ;;
10287
10288     sunos4*)
10289       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10290       wlarc=
10291       hardcode_direct=yes
10292       hardcode_shlibpath_var=no
10293       ;;
10294
10295     *)
10296       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10298         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10299       else
10300         ld_shlibs=no
10301       fi
10302       ;;
10303     esac
10304
10305     if test "$ld_shlibs" = no; then
10306       runpath_var=
10307       hardcode_libdir_flag_spec=
10308       export_dynamic_flag_spec=
10309       whole_archive_flag_spec=
10310     fi
10311   else
10312     # PORTME fill in a description of your system's linker (not GNU ld)
10313     case $host_os in
10314     aix3*)
10315       allow_undefined_flag=unsupported
10316       always_export_symbols=yes
10317       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'
10318       # Note: this linker hardcodes the directories in LIBPATH if there
10319       # are no directories specified by -L.
10320       hardcode_minus_L=yes
10321       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10322         # Neither direct hardcoding nor static linking is supported with a
10323         # broken collect2.
10324         hardcode_direct=unsupported
10325       fi
10326       ;;
10327
10328     aix[4-9]*)
10329       if test "$host_cpu" = ia64; then
10330         # On IA64, the linker does run time linking by default, so we don't
10331         # have to do anything special.
10332         aix_use_runtimelinking=no
10333         exp_sym_flag='-Bexport'
10334         no_entry_flag=""
10335       else
10336         # If we're using GNU nm, then we don't want the "-C" option.
10337         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10338         # Also, AIX nm treats weak defined symbols like other global
10339         # defined symbols, whereas GNU nm marks them as "W".
10340         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341           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'
10342         else
10343           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'
10344         fi
10345         aix_use_runtimelinking=no
10346
10347         # Test if we are trying to use run time linking or normal
10348         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349         # need to do runtime linking.
10350         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351           for ld_flag in $LDFLAGS; do
10352           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353             aix_use_runtimelinking=yes
10354             break
10355           fi
10356           done
10357           ;;
10358         esac
10359
10360         exp_sym_flag='-bexport'
10361         no_entry_flag='-bnoentry'
10362       fi
10363
10364       # When large executables or shared objects are built, AIX ld can
10365       # have problems creating the table of contents.  If linking a library
10366       # or program results in "error TOC overflow" add -mminimal-toc to
10367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10369
10370       archive_cmds=''
10371       hardcode_direct=yes
10372       hardcode_direct_absolute=yes
10373       hardcode_libdir_separator=':'
10374       link_all_deplibs=yes
10375       file_list_spec='${wl}-f,'
10376
10377       if test "$GCC" = yes; then
10378         case $host_os in aix4.[012]|aix4.[012].*)
10379         # We only want to do this on AIX 4.2 and lower, the check
10380         # below for broken collect2 doesn't work under 4.3+
10381           collect2name=`${CC} -print-prog-name=collect2`
10382           if test -f "$collect2name" &&
10383            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10384           then
10385           # We have reworked collect2
10386           :
10387           else
10388           # We have old collect2
10389           hardcode_direct=unsupported
10390           # It fails to find uninstalled libraries when the uninstalled
10391           # path is not listed in the libpath.  Setting hardcode_minus_L
10392           # to unsupported forces relinking
10393           hardcode_minus_L=yes
10394           hardcode_libdir_flag_spec='-L$libdir'
10395           hardcode_libdir_separator=
10396           fi
10397           ;;
10398         esac
10399         shared_flag='-shared'
10400         if test "$aix_use_runtimelinking" = yes; then
10401           shared_flag="$shared_flag "'${wl}-G'
10402         fi
10403         link_all_deplibs=no
10404       else
10405         # not using gcc
10406         if test "$host_cpu" = ia64; then
10407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408         # chokes on -Wl,-G. The following line is correct:
10409           shared_flag='-G'
10410         else
10411           if test "$aix_use_runtimelinking" = yes; then
10412             shared_flag='${wl}-G'
10413           else
10414             shared_flag='${wl}-bM:SRE'
10415           fi
10416         fi
10417       fi
10418
10419       export_dynamic_flag_spec='${wl}-bexpall'
10420       # It seems that -bexpall does not export symbols beginning with
10421       # underscore (_), so it is better to generate a list of symbols to export.
10422       always_export_symbols=yes
10423       if test "$aix_use_runtimelinking" = yes; then
10424         # Warning - without using the other runtime loading flags (-brtl),
10425         # -berok will link without error, but may produce a broken library.
10426         allow_undefined_flag='-berok'
10427         # Determine the default libpath from the value encoded in an
10428         # empty executable.
10429         if test "${lt_cv_aix_libpath+set}" = set; then
10430   aix_libpath=$lt_cv_aix_libpath
10431 else
10432   if test ${lt_cv_aix_libpath_+y}
10433 then :
10434   printf %s "(cached) " >&6
10435 else $as_nop
10436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h.  */
10438
10439 int
10440 main (void)
10441 {
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"
10448 then :
10449
10450   lt_aix_libpath_sed='
10451       /Import File Strings/,/^$/ {
10452           /^0/ {
10453               s/^0  *\([^ ]*\) *$/\1/
10454               p
10455           }
10456       }'
10457   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458   # Check for a 64-bit object if we didn't find anything.
10459   if test -z "$lt_cv_aix_libpath_"; then
10460     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461   fi
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464     conftest$ac_exeext conftest.$ac_ext
10465   if test -z "$lt_cv_aix_libpath_"; then
10466     lt_cv_aix_libpath_="/usr/lib:/lib"
10467   fi
10468
10469 fi
10470
10471   aix_libpath=$lt_cv_aix_libpath_
10472 fi
10473
10474         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10475         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"
10476       else
10477         if test "$host_cpu" = ia64; then
10478           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10479           allow_undefined_flag="-z nodefs"
10480           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"
10481         else
10482          # Determine the default libpath from the value encoded in an
10483          # empty executable.
10484          if test "${lt_cv_aix_libpath+set}" = set; then
10485   aix_libpath=$lt_cv_aix_libpath
10486 else
10487   if test ${lt_cv_aix_libpath_+y}
10488 then :
10489   printf %s "(cached) " >&6
10490 else $as_nop
10491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h.  */
10493
10494 int
10495 main (void)
10496 {
10497
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"
10503 then :
10504
10505   lt_aix_libpath_sed='
10506       /Import File Strings/,/^$/ {
10507           /^0/ {
10508               s/^0  *\([^ ]*\) *$/\1/
10509               p
10510           }
10511       }'
10512   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10513   # Check for a 64-bit object if we didn't find anything.
10514   if test -z "$lt_cv_aix_libpath_"; then
10515     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10516   fi
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10519     conftest$ac_exeext conftest.$ac_ext
10520   if test -z "$lt_cv_aix_libpath_"; then
10521     lt_cv_aix_libpath_="/usr/lib:/lib"
10522   fi
10523
10524 fi
10525
10526   aix_libpath=$lt_cv_aix_libpath_
10527 fi
10528
10529          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10530           # Warning - without using the other run time loading flags,
10531           # -berok will link without error, but may produce a broken library.
10532           no_undefined_flag=' ${wl}-bernotok'
10533           allow_undefined_flag=' ${wl}-berok'
10534           if test "$with_gnu_ld" = yes; then
10535             # We only use this code for GNU lds that support --whole-archive.
10536             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10537           else
10538             # Exported symbols can be pulled into shared objects from archives
10539             whole_archive_flag_spec='$convenience'
10540           fi
10541           archive_cmds_need_lc=yes
10542           # This is similar to how AIX traditionally builds its shared libraries.
10543           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'
10544         fi
10545       fi
10546       ;;
10547
10548     amigaos*)
10549       case $host_cpu in
10550       powerpc)
10551             # see comment about AmigaOS4 .so support
10552             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553             archive_expsym_cmds=''
10554         ;;
10555       m68k)
10556             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)'
10557             hardcode_libdir_flag_spec='-L$libdir'
10558             hardcode_minus_L=yes
10559         ;;
10560       esac
10561       ;;
10562
10563     bsdi[45]*)
10564       export_dynamic_flag_spec=-rdynamic
10565       ;;
10566
10567     cygwin* | mingw* | pw32* | cegcc*)
10568       # When not using gcc, we currently assume that we are using
10569       # Microsoft Visual C++.
10570       # hardcode_libdir_flag_spec is actually meaningless, as there is
10571       # no search path for DLLs.
10572       case $cc_basename in
10573       cl*)
10574         # Native MSVC
10575         hardcode_libdir_flag_spec=' '
10576         allow_undefined_flag=unsupported
10577         always_export_symbols=yes
10578         file_list_spec='@'
10579         # Tell ltmain to make .lib files, not .a files.
10580         libext=lib
10581         # Tell ltmain to make .dll files, not .so files.
10582         shrext_cmds=".dll"
10583         # FIXME: Setting linknames here is a bad hack.
10584         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10585         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10586             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10587           else
10588             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10589           fi~
10590           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10591           linknames='
10592         # The linker will not automatically build a static lib if we build a DLL.
10593         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10594         enable_shared_with_static_runtimes=yes
10595         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10596         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10597         # Don't use ranlib
10598         old_postinstall_cmds='chmod 644 $oldlib'
10599         postlink_cmds='lt_outputfile="@OUTPUT@"~
10600           lt_tool_outputfile="@TOOL_OUTPUT@"~
10601           case $lt_outputfile in
10602             *.exe|*.EXE) ;;
10603             *)
10604               lt_outputfile="$lt_outputfile.exe"
10605               lt_tool_outputfile="$lt_tool_outputfile.exe"
10606               ;;
10607           esac~
10608           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10609             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10610             $RM "$lt_outputfile.manifest";
10611           fi'
10612         ;;
10613       *)
10614         # Assume MSVC wrapper
10615         hardcode_libdir_flag_spec=' '
10616         allow_undefined_flag=unsupported
10617         # Tell ltmain to make .lib files, not .a files.
10618         libext=lib
10619         # Tell ltmain to make .dll files, not .so files.
10620         shrext_cmds=".dll"
10621         # FIXME: Setting linknames here is a bad hack.
10622         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10623         # The linker will automatically build a .lib file if we build a DLL.
10624         old_archive_from_new_cmds='true'
10625         # FIXME: Should let the user specify the lib program.
10626         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10627         enable_shared_with_static_runtimes=yes
10628         ;;
10629       esac
10630       ;;
10631
10632     darwin* | rhapsody*)
10633
10634
10635   archive_cmds_need_lc=no
10636   hardcode_direct=no
10637   hardcode_automatic=yes
10638   hardcode_shlibpath_var=unsupported
10639   if test "$lt_cv_ld_force_load" = "yes"; then
10640     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\"`'
10641
10642   else
10643     whole_archive_flag_spec=''
10644   fi
10645   link_all_deplibs=yes
10646   allow_undefined_flag="$_lt_dar_allow_undefined"
10647   case $cc_basename in
10648      ifort*) _lt_dar_can_shared=yes ;;
10649      *) _lt_dar_can_shared=$GCC ;;
10650   esac
10651   if test "$_lt_dar_can_shared" = "yes"; then
10652     output_verbose_link_cmd=func_echo_all
10653     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10654     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10655     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}"
10656     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}"
10657
10658   else
10659   ld_shlibs=no
10660   fi
10661
10662       ;;
10663
10664     dgux*)
10665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666       hardcode_libdir_flag_spec='-L$libdir'
10667       hardcode_shlibpath_var=no
10668       ;;
10669
10670     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10671     # support.  Future versions do this automatically, but an explicit c++rt0.o
10672     # does not break anything, and helps significantly (at the cost of a little
10673     # extra space).
10674     freebsd2.2*)
10675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10676       hardcode_libdir_flag_spec='-R$libdir'
10677       hardcode_direct=yes
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10682     freebsd2.*)
10683       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10684       hardcode_direct=yes
10685       hardcode_minus_L=yes
10686       hardcode_shlibpath_var=no
10687       ;;
10688
10689     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10690     freebsd* | dragonfly*)
10691       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10692       hardcode_libdir_flag_spec='-R$libdir'
10693       hardcode_direct=yes
10694       hardcode_shlibpath_var=no
10695       ;;
10696
10697     hpux9*)
10698       if test "$GCC" = yes; then
10699         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'
10700       else
10701         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'
10702       fi
10703       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10704       hardcode_libdir_separator=:
10705       hardcode_direct=yes
10706
10707       # hardcode_minus_L: Not really in the search PATH,
10708       # but as the default location of the library.
10709       hardcode_minus_L=yes
10710       export_dynamic_flag_spec='${wl}-E'
10711       ;;
10712
10713     hpux10*)
10714       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10715         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716       else
10717         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10718       fi
10719       if test "$with_gnu_ld" = no; then
10720         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10721         hardcode_libdir_separator=:
10722         hardcode_direct=yes
10723         hardcode_direct_absolute=yes
10724         export_dynamic_flag_spec='${wl}-E'
10725         # hardcode_minus_L: Not really in the search PATH,
10726         # but as the default location of the library.
10727         hardcode_minus_L=yes
10728       fi
10729       ;;
10730
10731     hpux11*)
10732       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10733         case $host_cpu in
10734         hppa*64*)
10735           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         ia64*)
10738           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10739           ;;
10740         *)
10741           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742           ;;
10743         esac
10744       else
10745         case $host_cpu in
10746         hppa*64*)
10747           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10748           ;;
10749         ia64*)
10750           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10751           ;;
10752         *)
10753
10754           # Older versions of the 11.00 compiler do not understand -b yet
10755           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10756           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10757 printf %s "checking if $CC understands -b... " >&6; }
10758 if test ${lt_cv_prog_compiler__b+y}
10759 then :
10760   printf %s "(cached) " >&6
10761 else $as_nop
10762   lt_cv_prog_compiler__b=no
10763    save_LDFLAGS="$LDFLAGS"
10764    LDFLAGS="$LDFLAGS -b"
10765    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10766    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10767      # The linker can only warn and ignore the option if not recognized
10768      # So say no if there are warnings
10769      if test -s conftest.err; then
10770        # Append any errors to the config.log.
10771        cat conftest.err 1>&5
10772        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10773        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10774        if diff conftest.exp conftest.er2 >/dev/null; then
10775          lt_cv_prog_compiler__b=yes
10776        fi
10777      else
10778        lt_cv_prog_compiler__b=yes
10779      fi
10780    fi
10781    $RM -r conftest*
10782    LDFLAGS="$save_LDFLAGS"
10783
10784 fi
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10786 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10787
10788 if test x"$lt_cv_prog_compiler__b" = xyes; then
10789     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10790 else
10791     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10792 fi
10793
10794           ;;
10795         esac
10796       fi
10797       if test "$with_gnu_ld" = no; then
10798         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10799         hardcode_libdir_separator=:
10800
10801         case $host_cpu in
10802         hppa*64*|ia64*)
10803           hardcode_direct=no
10804           hardcode_shlibpath_var=no
10805           ;;
10806         *)
10807           hardcode_direct=yes
10808           hardcode_direct_absolute=yes
10809           export_dynamic_flag_spec='${wl}-E'
10810
10811           # hardcode_minus_L: Not really in the search PATH,
10812           # but as the default location of the library.
10813           hardcode_minus_L=yes
10814           ;;
10815         esac
10816       fi
10817       ;;
10818
10819     irix5* | irix6* | nonstopux*)
10820       if test "$GCC" = yes; then
10821         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'
10822         # Try to use the -exported_symbol ld option, if it does not
10823         # work, assume that -exports_file does not work either and
10824         # implicitly export all symbols.
10825         # This should be the same for all languages, so no per-tag cache variable.
10826         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10827 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10828 if test ${lt_cv_irix_exported_symbol+y}
10829 then :
10830   printf %s "(cached) " >&6
10831 else $as_nop
10832   save_LDFLAGS="$LDFLAGS"
10833            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10834            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h.  */
10836 int foo (void) { return 0; }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"
10839 then :
10840   lt_cv_irix_exported_symbol=yes
10841 else $as_nop
10842   lt_cv_irix_exported_symbol=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10845     conftest$ac_exeext conftest.$ac_ext
10846            LDFLAGS="$save_LDFLAGS"
10847 fi
10848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10849 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10850         if test "$lt_cv_irix_exported_symbol" = yes; then
10851           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'
10852         fi
10853       else
10854         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'
10855         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'
10856       fi
10857       archive_cmds_need_lc='no'
10858       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10859       hardcode_libdir_separator=:
10860       inherit_rpath=yes
10861       link_all_deplibs=yes
10862       ;;
10863
10864     netbsd* | netbsdelf*-gnu)
10865       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10867       else
10868         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10869       fi
10870       hardcode_libdir_flag_spec='-R$libdir'
10871       hardcode_direct=yes
10872       hardcode_shlibpath_var=no
10873       ;;
10874
10875     newsos6)
10876       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877       hardcode_direct=yes
10878       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879       hardcode_libdir_separator=:
10880       hardcode_shlibpath_var=no
10881       ;;
10882
10883     *nto* | *qnx*)
10884       ;;
10885
10886     openbsd*)
10887       if test -f /usr/libexec/ld.so; then
10888         hardcode_direct=yes
10889         hardcode_shlibpath_var=no
10890         hardcode_direct_absolute=yes
10891         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10894           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10895           export_dynamic_flag_spec='${wl}-E'
10896         else
10897           case $host_os in
10898            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10899              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10900              hardcode_libdir_flag_spec='-R$libdir'
10901              ;;
10902            *)
10903              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10904              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10905              ;;
10906           esac
10907         fi
10908       else
10909         ld_shlibs=no
10910       fi
10911       ;;
10912
10913     os2*)
10914       hardcode_libdir_flag_spec='-L$libdir'
10915       hardcode_minus_L=yes
10916       allow_undefined_flag=unsupported
10917       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'
10918       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10919       ;;
10920
10921     osf3*)
10922       if test "$GCC" = yes; then
10923         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924         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'
10925       else
10926         allow_undefined_flag=' -expect_unresolved \*'
10927         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'
10928       fi
10929       archive_cmds_need_lc='no'
10930       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931       hardcode_libdir_separator=:
10932       ;;
10933
10934     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10935       if test "$GCC" = yes; then
10936         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10937         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'
10938         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10939       else
10940         allow_undefined_flag=' -expect_unresolved \*'
10941         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'
10942         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~
10943         $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'
10944
10945         # Both c and cxx compiler support -rpath directly
10946         hardcode_libdir_flag_spec='-rpath $libdir'
10947       fi
10948       archive_cmds_need_lc='no'
10949       hardcode_libdir_separator=:
10950       ;;
10951
10952     solaris*)
10953       no_undefined_flag=' -z defs'
10954       if test "$GCC" = yes; then
10955         wlarc='${wl}'
10956         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958           $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'
10959       else
10960         case `$CC -V 2>&1` in
10961         *"Compilers 5.0"*)
10962           wlarc=''
10963           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10965           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10966           ;;
10967         *)
10968           wlarc='${wl}'
10969           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10970           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10972           ;;
10973         esac
10974       fi
10975       hardcode_libdir_flag_spec='-R$libdir'
10976       hardcode_shlibpath_var=no
10977       case $host_os in
10978       solaris2.[0-5] | solaris2.[0-5].*) ;;
10979       *)
10980         # The compiler driver will combine and reorder linker options,
10981         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10982         # but is careful enough not to reorder.
10983         # Supported since Solaris 2.6 (maybe 2.5.1?)
10984         if test "$GCC" = yes; then
10985           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10986         else
10987           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10988         fi
10989         ;;
10990       esac
10991       link_all_deplibs=yes
10992       ;;
10993
10994     sunos4*)
10995       if test "x$host_vendor" = xsequent; then
10996         # Use $CC to link under sequent, because it throws in some extra .o
10997         # files that make .init and .fini sections work.
10998         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10999       else
11000         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11001       fi
11002       hardcode_libdir_flag_spec='-L$libdir'
11003       hardcode_direct=yes
11004       hardcode_minus_L=yes
11005       hardcode_shlibpath_var=no
11006       ;;
11007
11008     sysv4)
11009       case $host_vendor in
11010         sni)
11011           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012           hardcode_direct=yes # is this really true???
11013         ;;
11014         siemens)
11015           ## LD is ld it makes a PLAMLIB
11016           ## CC just makes a GrossModule.
11017           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11018           reload_cmds='$CC -r -o $output$reload_objs'
11019           hardcode_direct=no
11020         ;;
11021         motorola)
11022           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11024         ;;
11025       esac
11026       runpath_var='LD_RUN_PATH'
11027       hardcode_shlibpath_var=no
11028       ;;
11029
11030     sysv4.3*)
11031       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032       hardcode_shlibpath_var=no
11033       export_dynamic_flag_spec='-Bexport'
11034       ;;
11035
11036     sysv4*MP*)
11037       if test -d /usr/nec; then
11038         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039         hardcode_shlibpath_var=no
11040         runpath_var=LD_RUN_PATH
11041         hardcode_runpath_var=yes
11042         ld_shlibs=yes
11043       fi
11044       ;;
11045
11046     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11047       no_undefined_flag='${wl}-z,text'
11048       archive_cmds_need_lc=no
11049       hardcode_shlibpath_var=no
11050       runpath_var='LD_RUN_PATH'
11051
11052       if test "$GCC" = yes; then
11053         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055       else
11056         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058       fi
11059       ;;
11060
11061     sysv5* | sco3.2v5* | sco5v6*)
11062       # Note: We can NOT use -z defs as we might desire, because we do not
11063       # link with -lc, and that would cause any symbols used from libc to
11064       # always be unresolved, which means just about no library would
11065       # ever link correctly.  If we're not using GNU ld we use -z text
11066       # though, which does catch some bad symbols but isn't as heavy-handed
11067       # as -z defs.
11068       no_undefined_flag='${wl}-z,text'
11069       allow_undefined_flag='${wl}-z,nodefs'
11070       archive_cmds_need_lc=no
11071       hardcode_shlibpath_var=no
11072       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11073       hardcode_libdir_separator=':'
11074       link_all_deplibs=yes
11075       export_dynamic_flag_spec='${wl}-Bexport'
11076       runpath_var='LD_RUN_PATH'
11077
11078       if test "$GCC" = yes; then
11079         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081       else
11082         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084       fi
11085       ;;
11086
11087     uts4*)
11088       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089       hardcode_libdir_flag_spec='-L$libdir'
11090       hardcode_shlibpath_var=no
11091       ;;
11092
11093     *)
11094       ld_shlibs=no
11095       ;;
11096     esac
11097
11098     if test x$host_vendor = xsni; then
11099       case $host in
11100       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11101         export_dynamic_flag_spec='${wl}-Blargedynsym'
11102         ;;
11103       esac
11104     fi
11105   fi
11106
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11108 printf "%s\n" "$ld_shlibs" >&6; }
11109 test "$ld_shlibs" = no && can_build_shared=no
11110
11111 with_gnu_ld=$with_gnu_ld
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127 #
11128 # Do we need to explicitly link libc?
11129 #
11130 case "x$archive_cmds_need_lc" in
11131 x|xyes)
11132   # Assume -lc should be added
11133   archive_cmds_need_lc=yes
11134
11135   if test "$enable_shared" = yes && test "$GCC" = yes; then
11136     case $archive_cmds in
11137     *'~'*)
11138       # FIXME: we may have to deal with multi-command sequences.
11139       ;;
11140     '$CC '*)
11141       # Test whether the compiler implicitly links with -lc since on some
11142       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11143       # to ld, don't add -lc before -lgcc.
11144       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11145 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11146 if test ${lt_cv_archive_cmds_need_lc+y}
11147 then :
11148   printf %s "(cached) " >&6
11149 else $as_nop
11150   $RM conftest*
11151         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11152
11153         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11154   (eval $ac_compile) 2>&5
11155   ac_status=$?
11156   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157   test $ac_status = 0; } 2>conftest.err; then
11158           soname=conftest
11159           lib=conftest
11160           libobjs=conftest.$ac_objext
11161           deplibs=
11162           wl=$lt_prog_compiler_wl
11163           pic_flag=$lt_prog_compiler_pic
11164           compiler_flags=-v
11165           linker_flags=-v
11166           verstring=
11167           output_objdir=.
11168           libname=conftest
11169           lt_save_allow_undefined_flag=$allow_undefined_flag
11170           allow_undefined_flag=
11171           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11172   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11173   ac_status=$?
11174   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175   test $ac_status = 0; }
11176           then
11177             lt_cv_archive_cmds_need_lc=no
11178           else
11179             lt_cv_archive_cmds_need_lc=yes
11180           fi
11181           allow_undefined_flag=$lt_save_allow_undefined_flag
11182         else
11183           cat conftest.err 1>&5
11184         fi
11185         $RM conftest*
11186
11187 fi
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11189 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11190       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11191       ;;
11192     esac
11193   fi
11194   ;;
11195 esac
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
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11349 printf %s "checking dynamic linker characteristics... " >&6; }
11350
11351 if test "$GCC" = yes; then
11352   case $host_os in
11353     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11354     *) lt_awk_arg="/^libraries:/" ;;
11355   esac
11356   case $host_os in
11357     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11358     *) lt_sed_strip_eq="s,=/,/,g" ;;
11359   esac
11360   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11361   case $lt_search_path_spec in
11362   *\;*)
11363     # if the path contains ";" then we assume it to be the separator
11364     # otherwise default to the standard path separator (i.e. ":") - it is
11365     # assumed that no part of a normal pathname contains ";" but that should
11366     # okay in the real world where ";" in dirpaths is itself problematic.
11367     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11368     ;;
11369   *)
11370     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11371     ;;
11372   esac
11373   # Ok, now we have the path, separated by spaces, we can step through it
11374   # and add multilib dir if necessary.
11375   lt_tmp_lt_search_path_spec=
11376   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11377   for lt_sys_path in $lt_search_path_spec; do
11378     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11379       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11380     else
11381       test -d "$lt_sys_path" && \
11382         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11383     fi
11384   done
11385   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11386 BEGIN {RS=" "; FS="/|\n";} {
11387   lt_foo="";
11388   lt_count=0;
11389   for (lt_i = NF; lt_i > 0; lt_i--) {
11390     if ($lt_i != "" && $lt_i != ".") {
11391       if ($lt_i == "..") {
11392         lt_count++;
11393       } else {
11394         if (lt_count == 0) {
11395           lt_foo="/" $lt_i lt_foo;
11396         } else {
11397           lt_count--;
11398         }
11399       }
11400     }
11401   }
11402   if (lt_foo != "") { lt_freq[lt_foo]++; }
11403   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11404 }'`
11405   # AWK program above erroneously prepends '/' to C:/dos/paths
11406   # for these hosts.
11407   case $host_os in
11408     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11409       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11410   esac
11411   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11412 else
11413   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11414 fi
11415 library_names_spec=
11416 libname_spec='lib$name'
11417 soname_spec=
11418 shrext_cmds=".so"
11419 postinstall_cmds=
11420 postuninstall_cmds=
11421 finish_cmds=
11422 finish_eval=
11423 shlibpath_var=
11424 shlibpath_overrides_runpath=unknown
11425 version_type=none
11426 dynamic_linker="$host_os ld.so"
11427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11428 need_lib_prefix=unknown
11429 hardcode_into_libs=no
11430
11431 # when you set need_version to no, make sure it does not cause -set_version
11432 # flags to be left without arguments
11433 need_version=unknown
11434
11435 case $host_os in
11436 aix3*)
11437   version_type=linux # correct to gnu/linux during the next big refactor
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11439   shlibpath_var=LIBPATH
11440
11441   # AIX 3 has no versioning support, so we append a major version to the name.
11442   soname_spec='${libname}${release}${shared_ext}$major'
11443   ;;
11444
11445 aix[4-9]*)
11446   version_type=linux # correct to gnu/linux during the next big refactor
11447   need_lib_prefix=no
11448   need_version=no
11449   hardcode_into_libs=yes
11450   if test "$host_cpu" = ia64; then
11451     # AIX 5 supports IA64
11452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11453     shlibpath_var=LD_LIBRARY_PATH
11454   else
11455     # With GCC up to 2.95.x, collect2 would create an import file
11456     # for dependence libraries.  The import file would start with
11457     # the line `#! .'.  This would cause the generated library to
11458     # depend on `.', always an invalid library.  This was fixed in
11459     # development snapshots of GCC prior to 3.0.
11460     case $host_os in
11461       aix4 | aix4.[01] | aix4.[01].*)
11462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11463            echo ' yes '
11464            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11465         :
11466       else
11467         can_build_shared=no
11468       fi
11469       ;;
11470     esac
11471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11472     # soname into executable. Probably we can add versioning support to
11473     # collect2, so additional links can be useful in future.
11474     if test "$aix_use_runtimelinking" = yes; then
11475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11476       # instead of lib<name>.a to let people know that these are not
11477       # typical AIX shared libraries.
11478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479     else
11480       # We preserve .a as extension for shared libraries through AIX4.2
11481       # and later when we are not doing run time linking.
11482       library_names_spec='${libname}${release}.a $libname.a'
11483       soname_spec='${libname}${release}${shared_ext}$major'
11484     fi
11485     shlibpath_var=LIBPATH
11486   fi
11487   ;;
11488
11489 amigaos*)
11490   case $host_cpu in
11491   powerpc)
11492     # Since July 2007 AmigaOS4 officially supports .so libraries.
11493     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495     ;;
11496   m68k)
11497     library_names_spec='$libname.ixlibrary $libname.a'
11498     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11499     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'
11500     ;;
11501   esac
11502   ;;
11503
11504 beos*)
11505   library_names_spec='${libname}${shared_ext}'
11506   dynamic_linker="$host_os ld.so"
11507   shlibpath_var=LIBRARY_PATH
11508   ;;
11509
11510 bsdi[45]*)
11511   version_type=linux # correct to gnu/linux during the next big refactor
11512   need_version=no
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11518   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11519   # the default ld.so.conf also contains /usr/contrib/lib and
11520   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11521   # libtool to hard-code these into programs
11522   ;;
11523
11524 cygwin* | mingw* | pw32* | cegcc*)
11525   version_type=windows
11526   shrext_cmds=".dll"
11527   need_version=no
11528   need_lib_prefix=no
11529
11530   case $GCC,$cc_basename in
11531   yes,*)
11532     # gcc
11533     library_names_spec='$libname.dll.a'
11534     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11535     postinstall_cmds='base_file=`basename \${file}`~
11536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11537       dldir=$destdir/`dirname \$dlpath`~
11538       test -d \$dldir || mkdir -p \$dldir~
11539       $install_prog $dir/$dlname \$dldir/$dlname~
11540       chmod a+x \$dldir/$dlname~
11541       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11542         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11543       fi'
11544     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11545       dlpath=$dir/\$dldll~
11546        $RM \$dlpath'
11547     shlibpath_overrides_runpath=yes
11548
11549     case $host_os in
11550     cygwin*)
11551       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11552       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11553
11554       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11555       ;;
11556     mingw* | cegcc*)
11557       # MinGW DLLs use traditional 'lib' prefix
11558       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11559       ;;
11560     pw32*)
11561       # pw32 DLLs use 'pw' prefix rather than 'lib'
11562       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11563       ;;
11564     esac
11565     dynamic_linker='Win32 ld.exe'
11566     ;;
11567
11568   *,cl*)
11569     # Native MSVC
11570     libname_spec='$name'
11571     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11572     library_names_spec='${libname}.dll.lib'
11573
11574     case $build_os in
11575     mingw*)
11576       sys_lib_search_path_spec=
11577       lt_save_ifs=$IFS
11578       IFS=';'
11579       for lt_path in $LIB
11580       do
11581         IFS=$lt_save_ifs
11582         # Let DOS variable expansion print the short 8.3 style file name.
11583         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11584         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11585       done
11586       IFS=$lt_save_ifs
11587       # Convert to MSYS style.
11588       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11589       ;;
11590     cygwin*)
11591       # Convert to unix form, then to dos form, then back to unix form
11592       # but this time dos style (no spaces!) so that the unix form looks
11593       # like /cygdrive/c/PROGRA~1:/cygdr...
11594       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11595       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11596       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11597       ;;
11598     *)
11599       sys_lib_search_path_spec="$LIB"
11600       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11601         # It is most probably a Windows format PATH.
11602         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11603       else
11604         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11605       fi
11606       # FIXME: find the short name or the path components, as spaces are
11607       # common. (e.g. "Program Files" -> "PROGRA~1")
11608       ;;
11609     esac
11610
11611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11612     postinstall_cmds='base_file=`basename \${file}`~
11613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11614       dldir=$destdir/`dirname \$dlpath`~
11615       test -d \$dldir || mkdir -p \$dldir~
11616       $install_prog $dir/$dlname \$dldir/$dlname'
11617     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11618       dlpath=$dir/\$dldll~
11619        $RM \$dlpath'
11620     shlibpath_overrides_runpath=yes
11621     dynamic_linker='Win32 link.exe'
11622     ;;
11623
11624   *)
11625     # Assume MSVC wrapper
11626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11627     dynamic_linker='Win32 ld.exe'
11628     ;;
11629   esac
11630   # FIXME: first we should search . and the directory the executable is in
11631   shlibpath_var=PATH
11632   ;;
11633
11634 darwin* | rhapsody*)
11635   dynamic_linker="$host_os dyld"
11636   version_type=darwin
11637   need_lib_prefix=no
11638   need_version=no
11639   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11640   soname_spec='${libname}${release}${major}$shared_ext'
11641   shlibpath_overrides_runpath=yes
11642   shlibpath_var=DYLD_LIBRARY_PATH
11643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11644
11645   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11647   ;;
11648
11649 dgux*)
11650   version_type=linux # correct to gnu/linux during the next big refactor
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   ;;
11657
11658 freebsd* | dragonfly*)
11659   # DragonFly does not have aout.  When/if they implement a new
11660   # versioning mechanism, adjust this.
11661   if test -x /usr/bin/objformat; then
11662     objformat=`/usr/bin/objformat`
11663   else
11664     case $host_os in
11665     freebsd[23].*) objformat=aout ;;
11666     *) objformat=elf ;;
11667     esac
11668   fi
11669   version_type=freebsd-$objformat
11670   case $version_type in
11671     freebsd-elf*)
11672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11673       need_version=no
11674       need_lib_prefix=no
11675       ;;
11676     freebsd-*)
11677       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11678       need_version=yes
11679       ;;
11680   esac
11681   shlibpath_var=LD_LIBRARY_PATH
11682   case $host_os in
11683   freebsd2.*)
11684     shlibpath_overrides_runpath=yes
11685     ;;
11686   freebsd3.[01]* | freebsdelf3.[01]*)
11687     shlibpath_overrides_runpath=yes
11688     hardcode_into_libs=yes
11689     ;;
11690   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11691   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11692     shlibpath_overrides_runpath=no
11693     hardcode_into_libs=yes
11694     ;;
11695   *) # from 4.6 on, and DragonFly
11696     shlibpath_overrides_runpath=yes
11697     hardcode_into_libs=yes
11698     ;;
11699   esac
11700   ;;
11701
11702 gnu*)
11703   version_type=linux # correct to gnu/linux during the next big refactor
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=no
11710   hardcode_into_libs=yes
11711   ;;
11712
11713 haiku*)
11714   version_type=linux # correct to gnu/linux during the next big refactor
11715   need_lib_prefix=no
11716   need_version=no
11717   dynamic_linker="$host_os runtime_loader"
11718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11719   soname_spec='${libname}${release}${shared_ext}$major'
11720   shlibpath_var=LIBRARY_PATH
11721   shlibpath_overrides_runpath=yes
11722   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11723   hardcode_into_libs=yes
11724   ;;
11725
11726 hpux9* | hpux10* | hpux11*)
11727   # Give a soname corresponding to the major version so that dld.sl refuses to
11728   # link against other versions.
11729   version_type=sunos
11730   need_lib_prefix=no
11731   need_version=no
11732   case $host_cpu in
11733   ia64*)
11734     shrext_cmds='.so'
11735     hardcode_into_libs=yes
11736     dynamic_linker="$host_os dld.so"
11737     shlibpath_var=LD_LIBRARY_PATH
11738     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740     soname_spec='${libname}${release}${shared_ext}$major'
11741     if test "X$HPUX_IA64_MODE" = X32; then
11742       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11743     else
11744       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11745     fi
11746     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11747     ;;
11748   hppa*64*)
11749     shrext_cmds='.sl'
11750     hardcode_into_libs=yes
11751     dynamic_linker="$host_os dld.sl"
11752     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755     soname_spec='${libname}${release}${shared_ext}$major'
11756     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11758     ;;
11759   *)
11760     shrext_cmds='.sl'
11761     dynamic_linker="$host_os dld.sl"
11762     shlibpath_var=SHLIB_PATH
11763     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765     soname_spec='${libname}${release}${shared_ext}$major'
11766     ;;
11767   esac
11768   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11769   postinstall_cmds='chmod 555 $lib'
11770   # or fails outright, so override atomically:
11771   install_override_mode=555
11772   ;;
11773
11774 interix[3-9]*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11781   shlibpath_var=LD_LIBRARY_PATH
11782   shlibpath_overrides_runpath=no
11783   hardcode_into_libs=yes
11784   ;;
11785
11786 irix5* | irix6* | nonstopux*)
11787   case $host_os in
11788     nonstopux*) version_type=nonstopux ;;
11789     *)
11790         if test "$lt_cv_prog_gnu_ld" = yes; then
11791                 version_type=linux # correct to gnu/linux during the next big refactor
11792         else
11793                 version_type=irix
11794         fi ;;
11795   esac
11796   need_lib_prefix=no
11797   need_version=no
11798   soname_spec='${libname}${release}${shared_ext}$major'
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11800   case $host_os in
11801   irix5* | nonstopux*)
11802     libsuff= shlibsuff=
11803     ;;
11804   *)
11805     case $LD in # libtool.m4 will add one of these switches to LD
11806     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11807       libsuff= shlibsuff= libmagic=32-bit;;
11808     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11809       libsuff=32 shlibsuff=N32 libmagic=N32;;
11810     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11811       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11812     *) libsuff= shlibsuff= libmagic=never-match;;
11813     esac
11814     ;;
11815   esac
11816   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11817   shlibpath_overrides_runpath=no
11818   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11819   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11820   hardcode_into_libs=yes
11821   ;;
11822
11823 # No shared lib support for Linux oldld, aout, or coff.
11824 linux*oldld* | linux*aout* | linux*coff*)
11825   dynamic_linker=no
11826   ;;
11827
11828 linux*android*)
11829   version_type=none # Android doesn't support versioned libraries.
11830   need_lib_prefix=no
11831   need_version=no
11832   library_names_spec='$libname$release$shared_ext'
11833   soname_spec='$libname$release$shared_ext'
11834   finish_cmds=
11835   shlibpath_var=LD_LIBRARY_PATH
11836   shlibpath_overrides_runpath=yes
11837
11838   # This implies no fast_install, which is unacceptable.
11839   # Some rework will be needed to allow for fast_install
11840   # before this can be enabled.
11841   hardcode_into_libs=yes
11842
11843   dynamic_linker='Android linker'
11844   # Don't embed -rpath directories since the linker doesn't support them.
11845   hardcode_libdir_flag_spec='-L$libdir'
11846   ;;
11847
11848 # This must be glibc/ELF.
11849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11850   version_type=linux # correct to gnu/linux during the next big refactor
11851   need_lib_prefix=no
11852   need_version=no
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854   soname_spec='${libname}${release}${shared_ext}$major'
11855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11856   shlibpath_var=LD_LIBRARY_PATH
11857   shlibpath_overrides_runpath=no
11858
11859   # Some binutils ld are patched to set DT_RUNPATH
11860   if test ${lt_cv_shlibpath_overrides_runpath+y}
11861 then :
11862   printf %s "(cached) " >&6
11863 else $as_nop
11864   lt_cv_shlibpath_overrides_runpath=no
11865     save_LDFLAGS=$LDFLAGS
11866     save_libdir=$libdir
11867     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11868          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h.  */
11871
11872 int
11873 main (void)
11874 {
11875
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"
11881 then :
11882   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11883 then :
11884   lt_cv_shlibpath_overrides_runpath=yes
11885 fi
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11888     conftest$ac_exeext conftest.$ac_ext
11889     LDFLAGS=$save_LDFLAGS
11890     libdir=$save_libdir
11891
11892 fi
11893
11894   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11895
11896   # This implies no fast_install, which is unacceptable.
11897   # Some rework will be needed to allow for fast_install
11898   # before this can be enabled.
11899   hardcode_into_libs=yes
11900
11901   # Append ld.so.conf contents to the search path
11902   if test -f /etc/ld.so.conf; then
11903     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' ' '`
11904     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11905   fi
11906
11907   # We used to test for /lib/ld.so.1 and disable shared libraries on
11908   # powerpc, because MkLinux only supported shared libraries with the
11909   # GNU dynamic linker.  Since this was broken with cross compilers,
11910   # most powerpc-linux boxes support dynamic linking these days and
11911   # people can always --disable-shared, the test was removed, and we
11912   # assume the GNU/Linux dynamic linker is in use.
11913   dynamic_linker='GNU/Linux ld.so'
11914   ;;
11915
11916 netbsdelf*-gnu)
11917   version_type=linux
11918   need_lib_prefix=no
11919   need_version=no
11920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11921   soname_spec='${libname}${release}${shared_ext}$major'
11922   shlibpath_var=LD_LIBRARY_PATH
11923   shlibpath_overrides_runpath=no
11924   hardcode_into_libs=yes
11925   dynamic_linker='NetBSD ld.elf_so'
11926   ;;
11927
11928 netbsd*)
11929   version_type=sunos
11930   need_lib_prefix=no
11931   need_version=no
11932   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935     dynamic_linker='NetBSD (a.out) ld.so'
11936   else
11937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11938     soname_spec='${libname}${release}${shared_ext}$major'
11939     dynamic_linker='NetBSD ld.elf_so'
11940   fi
11941   shlibpath_var=LD_LIBRARY_PATH
11942   shlibpath_overrides_runpath=yes
11943   hardcode_into_libs=yes
11944   ;;
11945
11946 newsos6)
11947   version_type=linux # correct to gnu/linux during the next big refactor
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949   shlibpath_var=LD_LIBRARY_PATH
11950   shlibpath_overrides_runpath=yes
11951   ;;
11952
11953 *nto* | *qnx*)
11954   version_type=qnx
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=no
11961   hardcode_into_libs=yes
11962   dynamic_linker='ldqnx.so'
11963   ;;
11964
11965 openbsd*)
11966   version_type=sunos
11967   sys_lib_dlsearch_path_spec="/usr/lib"
11968   need_lib_prefix=no
11969   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11970   case $host_os in
11971     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11972     *)                          need_version=no  ;;
11973   esac
11974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11976   shlibpath_var=LD_LIBRARY_PATH
11977   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11978     case $host_os in
11979       openbsd2.[89] | openbsd2.[89].*)
11980         shlibpath_overrides_runpath=no
11981         ;;
11982       *)
11983         shlibpath_overrides_runpath=yes
11984         ;;
11985       esac
11986   else
11987     shlibpath_overrides_runpath=yes
11988   fi
11989   ;;
11990
11991 os2*)
11992   libname_spec='$name'
11993   shrext_cmds=".dll"
11994   need_lib_prefix=no
11995   library_names_spec='$libname${shared_ext} $libname.a'
11996   dynamic_linker='OS/2 ld.exe'
11997   shlibpath_var=LIBPATH
11998   ;;
11999
12000 osf3* | osf4* | osf5*)
12001   version_type=osf
12002   need_lib_prefix=no
12003   need_version=no
12004   soname_spec='${libname}${release}${shared_ext}$major'
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006   shlibpath_var=LD_LIBRARY_PATH
12007   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12008   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12009   ;;
12010
12011 rdos*)
12012   dynamic_linker=no
12013   ;;
12014
12015 solaris*)
12016   version_type=linux # correct to gnu/linux during the next big refactor
12017   need_lib_prefix=no
12018   need_version=no
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020   soname_spec='${libname}${release}${shared_ext}$major'
12021   shlibpath_var=LD_LIBRARY_PATH
12022   shlibpath_overrides_runpath=yes
12023   hardcode_into_libs=yes
12024   # ldd complains unless libraries are executable
12025   postinstall_cmds='chmod +x $lib'
12026   ;;
12027
12028 sunos4*)
12029   version_type=sunos
12030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12031   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12032   shlibpath_var=LD_LIBRARY_PATH
12033   shlibpath_overrides_runpath=yes
12034   if test "$with_gnu_ld" = yes; then
12035     need_lib_prefix=no
12036   fi
12037   need_version=yes
12038   ;;
12039
12040 sysv4 | sysv4.3*)
12041   version_type=linux # correct to gnu/linux during the next big refactor
12042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043   soname_spec='${libname}${release}${shared_ext}$major'
12044   shlibpath_var=LD_LIBRARY_PATH
12045   case $host_vendor in
12046     sni)
12047       shlibpath_overrides_runpath=no
12048       need_lib_prefix=no
12049       runpath_var=LD_RUN_PATH
12050       ;;
12051     siemens)
12052       need_lib_prefix=no
12053       ;;
12054     motorola)
12055       need_lib_prefix=no
12056       need_version=no
12057       shlibpath_overrides_runpath=no
12058       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12059       ;;
12060   esac
12061   ;;
12062
12063 sysv4*MP*)
12064   if test -d /usr/nec ;then
12065     version_type=linux # correct to gnu/linux during the next big refactor
12066     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12067     soname_spec='$libname${shared_ext}.$major'
12068     shlibpath_var=LD_LIBRARY_PATH
12069   fi
12070   ;;
12071
12072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12073   version_type=freebsd-elf
12074   need_lib_prefix=no
12075   need_version=no
12076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12077   soname_spec='${libname}${release}${shared_ext}$major'
12078   shlibpath_var=LD_LIBRARY_PATH
12079   shlibpath_overrides_runpath=yes
12080   hardcode_into_libs=yes
12081   if test "$with_gnu_ld" = yes; then
12082     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12083   else
12084     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12085     case $host_os in
12086       sco3.2v5*)
12087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12088         ;;
12089     esac
12090   fi
12091   sys_lib_dlsearch_path_spec='/usr/lib'
12092   ;;
12093
12094 tpf*)
12095   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12096   version_type=linux # correct to gnu/linux during the next big refactor
12097   need_lib_prefix=no
12098   need_version=no
12099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100   shlibpath_var=LD_LIBRARY_PATH
12101   shlibpath_overrides_runpath=no
12102   hardcode_into_libs=yes
12103   ;;
12104
12105 uts4*)
12106   version_type=linux # correct to gnu/linux during the next big refactor
12107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108   soname_spec='${libname}${release}${shared_ext}$major'
12109   shlibpath_var=LD_LIBRARY_PATH
12110   ;;
12111
12112 *)
12113   dynamic_linker=no
12114   ;;
12115 esac
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12117 printf "%s\n" "$dynamic_linker" >&6; }
12118 test "$dynamic_linker" = no && can_build_shared=no
12119
12120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12121 if test "$GCC" = yes; then
12122   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12123 fi
12124
12125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12126   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12127 fi
12128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12129   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12130 fi
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12224 printf %s "checking how to hardcode library paths into programs... " >&6; }
12225 hardcode_action=
12226 if test -n "$hardcode_libdir_flag_spec" ||
12227    test -n "$runpath_var" ||
12228    test "X$hardcode_automatic" = "Xyes" ; then
12229
12230   # We can hardcode non-existent directories.
12231   if test "$hardcode_direct" != no &&
12232      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12233      # have to relink, otherwise we might link with an installed library
12234      # when we should be linking with a yet-to-be-installed one
12235      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12236      test "$hardcode_minus_L" != no; then
12237     # Linking always hardcodes the temporary library directory.
12238     hardcode_action=relink
12239   else
12240     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12241     hardcode_action=immediate
12242   fi
12243 else
12244   # We cannot hardcode anything, or else we can only hardcode existing
12245   # directories.
12246   hardcode_action=unsupported
12247 fi
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12249 printf "%s\n" "$hardcode_action" >&6; }
12250
12251 if test "$hardcode_action" = relink ||
12252    test "$inherit_rpath" = yes; then
12253   # Fast installation is not supported
12254   enable_fast_install=no
12255 elif test "$shlibpath_overrides_runpath" = yes ||
12256      test "$enable_shared" = no; then
12257   # Fast installation is not necessary
12258   enable_fast_install=needless
12259 fi
12260
12261
12262
12263
12264
12265
12266   if test "x$enable_dlopen" != xyes; then
12267   enable_dlopen=unknown
12268   enable_dlopen_self=unknown
12269   enable_dlopen_self_static=unknown
12270 else
12271   lt_cv_dlopen=no
12272   lt_cv_dlopen_libs=
12273
12274   case $host_os in
12275   beos*)
12276     lt_cv_dlopen="load_add_on"
12277     lt_cv_dlopen_libs=
12278     lt_cv_dlopen_self=yes
12279     ;;
12280
12281   mingw* | pw32* | cegcc*)
12282     lt_cv_dlopen="LoadLibrary"
12283     lt_cv_dlopen_libs=
12284     ;;
12285
12286   cygwin*)
12287     lt_cv_dlopen="dlopen"
12288     lt_cv_dlopen_libs=
12289     ;;
12290
12291   darwin*)
12292   # if libdl is installed we need to link against it
12293     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12294 printf %s "checking for dlopen in -ldl... " >&6; }
12295 if test ${ac_cv_lib_dl_dlopen+y}
12296 then :
12297   printf %s "(cached) " >&6
12298 else $as_nop
12299   ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-ldl  $LIBS"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h.  */
12303
12304 /* Override any GCC internal prototype to avoid an error.
12305    Use char because int might match the return type of a GCC
12306    builtin and then its argument prototype would still apply.  */
12307 char dlopen ();
12308 int
12309 main (void)
12310 {
12311 return dlopen ();
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"
12317 then :
12318   ac_cv_lib_dl_dlopen=yes
12319 else $as_nop
12320   ac_cv_lib_dl_dlopen=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323     conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12327 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12328 if test "x$ac_cv_lib_dl_dlopen" = xyes
12329 then :
12330   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12331 else $as_nop
12332
12333     lt_cv_dlopen="dyld"
12334     lt_cv_dlopen_libs=
12335     lt_cv_dlopen_self=yes
12336
12337 fi
12338
12339     ;;
12340
12341   *)
12342     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12343 if test "x$ac_cv_func_shl_load" = xyes
12344 then :
12345   lt_cv_dlopen="shl_load"
12346 else $as_nop
12347   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12348 printf %s "checking for shl_load in -ldld... " >&6; }
12349 if test ${ac_cv_lib_dld_shl_load+y}
12350 then :
12351   printf %s "(cached) " >&6
12352 else $as_nop
12353   ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-ldld  $LIBS"
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h.  */
12357
12358 /* Override any GCC internal prototype to avoid an error.
12359    Use char because int might match the return type of a GCC
12360    builtin and then its argument prototype would still apply.  */
12361 char shl_load ();
12362 int
12363 main (void)
12364 {
12365 return shl_load ();
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_link "$LINENO"
12371 then :
12372   ac_cv_lib_dld_shl_load=yes
12373 else $as_nop
12374   ac_cv_lib_dld_shl_load=no
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12377     conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12379 fi
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12381 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12382 if test "x$ac_cv_lib_dld_shl_load" = xyes
12383 then :
12384   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12385 else $as_nop
12386   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12387 if test "x$ac_cv_func_dlopen" = xyes
12388 then :
12389   lt_cv_dlopen="dlopen"
12390 else $as_nop
12391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12392 printf %s "checking for dlopen in -ldl... " >&6; }
12393 if test ${ac_cv_lib_dl_dlopen+y}
12394 then :
12395   printf %s "(cached) " >&6
12396 else $as_nop
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldl  $LIBS"
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h.  */
12401
12402 /* Override any GCC internal prototype to avoid an error.
12403    Use char because int might match the return type of a GCC
12404    builtin and then its argument prototype would still apply.  */
12405 char dlopen ();
12406 int
12407 main (void)
12408 {
12409 return dlopen ();
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"
12415 then :
12416   ac_cv_lib_dl_dlopen=yes
12417 else $as_nop
12418   ac_cv_lib_dl_dlopen=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12421     conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12423 fi
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12425 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12426 if test "x$ac_cv_lib_dl_dlopen" = xyes
12427 then :
12428   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12429 else $as_nop
12430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12431 printf %s "checking for dlopen in -lsvld... " >&6; }
12432 if test ${ac_cv_lib_svld_dlopen+y}
12433 then :
12434   printf %s "(cached) " >&6
12435 else $as_nop
12436   ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lsvld  $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442    Use char because int might match the return type of a GCC
12443    builtin and then its argument prototype would still apply.  */
12444 char dlopen ();
12445 int
12446 main (void)
12447 {
12448 return dlopen ();
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_link "$LINENO"
12454 then :
12455   ac_cv_lib_svld_dlopen=yes
12456 else $as_nop
12457   ac_cv_lib_svld_dlopen=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12460     conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12464 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12465 if test "x$ac_cv_lib_svld_dlopen" = xyes
12466 then :
12467   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12468 else $as_nop
12469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12470 printf %s "checking for dld_link in -ldld... " >&6; }
12471 if test ${ac_cv_lib_dld_dld_link+y}
12472 then :
12473   printf %s "(cached) " >&6
12474 else $as_nop
12475   ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-ldld  $LIBS"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h.  */
12479
12480 /* Override any GCC internal prototype to avoid an error.
12481    Use char because int might match the return type of a GCC
12482    builtin and then its argument prototype would still apply.  */
12483 char dld_link ();
12484 int
12485 main (void)
12486 {
12487 return dld_link ();
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 if ac_fn_c_try_link "$LINENO"
12493 then :
12494   ac_cv_lib_dld_dld_link=yes
12495 else $as_nop
12496   ac_cv_lib_dld_dld_link=no
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12499     conftest$ac_exeext conftest.$ac_ext
12500 LIBS=$ac_check_lib_save_LIBS
12501 fi
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12503 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12504 if test "x$ac_cv_lib_dld_dld_link" = xyes
12505 then :
12506   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12507 fi
12508
12509
12510 fi
12511
12512
12513 fi
12514
12515
12516 fi
12517
12518
12519 fi
12520
12521
12522 fi
12523
12524     ;;
12525   esac
12526
12527   if test "x$lt_cv_dlopen" != xno; then
12528     enable_dlopen=yes
12529   else
12530     enable_dlopen=no
12531   fi
12532
12533   case $lt_cv_dlopen in
12534   dlopen)
12535     save_CPPFLAGS="$CPPFLAGS"
12536     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12537
12538     save_LDFLAGS="$LDFLAGS"
12539     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12540
12541     save_LIBS="$LIBS"
12542     LIBS="$lt_cv_dlopen_libs $LIBS"
12543
12544     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12545 printf %s "checking whether a program can dlopen itself... " >&6; }
12546 if test ${lt_cv_dlopen_self+y}
12547 then :
12548   printf %s "(cached) " >&6
12549 else $as_nop
12550           if test "$cross_compiling" = yes; then :
12551   lt_cv_dlopen_self=cross
12552 else
12553   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12554   lt_status=$lt_dlunknown
12555   cat > conftest.$ac_ext <<_LT_EOF
12556 #line $LINENO "configure"
12557 #include "confdefs.h"
12558
12559 #if HAVE_DLFCN_H
12560 #include <dlfcn.h>
12561 #endif
12562
12563 #include <stdio.h>
12564
12565 #ifdef RTLD_GLOBAL
12566 #  define LT_DLGLOBAL           RTLD_GLOBAL
12567 #else
12568 #  ifdef DL_GLOBAL
12569 #    define LT_DLGLOBAL         DL_GLOBAL
12570 #  else
12571 #    define LT_DLGLOBAL         0
12572 #  endif
12573 #endif
12574
12575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12576    find out it does not work in some platform. */
12577 #ifndef LT_DLLAZY_OR_NOW
12578 #  ifdef RTLD_LAZY
12579 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12580 #  else
12581 #    ifdef DL_LAZY
12582 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12583 #    else
12584 #      ifdef RTLD_NOW
12585 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12586 #      else
12587 #        ifdef DL_NOW
12588 #          define LT_DLLAZY_OR_NOW      DL_NOW
12589 #        else
12590 #          define LT_DLLAZY_OR_NOW      0
12591 #        endif
12592 #      endif
12593 #    endif
12594 #  endif
12595 #endif
12596
12597 /* When -fvisbility=hidden is used, assume the code has been annotated
12598    correspondingly for the symbols needed.  */
12599 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12600 int fnord () __attribute__((visibility("default")));
12601 #endif
12602
12603 int fnord () { return 42; }
12604 int main ()
12605 {
12606   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607   int status = $lt_dlunknown;
12608
12609   if (self)
12610     {
12611       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12612       else
12613         {
12614           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12615           else puts (dlerror ());
12616         }
12617       /* dlclose (self); */
12618     }
12619   else
12620     puts (dlerror ());
12621
12622   return status;
12623 }
12624 _LT_EOF
12625   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12626   (eval $ac_link) 2>&5
12627   ac_status=$?
12628   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12630     (./conftest; exit; ) >&5 2>/dev/null
12631     lt_status=$?
12632     case x$lt_status in
12633       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12634       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12635       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12636     esac
12637   else :
12638     # compilation failed
12639     lt_cv_dlopen_self=no
12640   fi
12641 fi
12642 rm -fr conftest*
12643
12644
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12647 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12648
12649     if test "x$lt_cv_dlopen_self" = xyes; then
12650       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12651       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12652 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12653 if test ${lt_cv_dlopen_self_static+y}
12654 then :
12655   printf %s "(cached) " >&6
12656 else $as_nop
12657           if test "$cross_compiling" = yes; then :
12658   lt_cv_dlopen_self_static=cross
12659 else
12660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12661   lt_status=$lt_dlunknown
12662   cat > conftest.$ac_ext <<_LT_EOF
12663 #line $LINENO "configure"
12664 #include "confdefs.h"
12665
12666 #if HAVE_DLFCN_H
12667 #include <dlfcn.h>
12668 #endif
12669
12670 #include <stdio.h>
12671
12672 #ifdef RTLD_GLOBAL
12673 #  define LT_DLGLOBAL           RTLD_GLOBAL
12674 #else
12675 #  ifdef DL_GLOBAL
12676 #    define LT_DLGLOBAL         DL_GLOBAL
12677 #  else
12678 #    define LT_DLGLOBAL         0
12679 #  endif
12680 #endif
12681
12682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12683    find out it does not work in some platform. */
12684 #ifndef LT_DLLAZY_OR_NOW
12685 #  ifdef RTLD_LAZY
12686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12687 #  else
12688 #    ifdef DL_LAZY
12689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12690 #    else
12691 #      ifdef RTLD_NOW
12692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12693 #      else
12694 #        ifdef DL_NOW
12695 #          define LT_DLLAZY_OR_NOW      DL_NOW
12696 #        else
12697 #          define LT_DLLAZY_OR_NOW      0
12698 #        endif
12699 #      endif
12700 #    endif
12701 #  endif
12702 #endif
12703
12704 /* When -fvisbility=hidden is used, assume the code has been annotated
12705    correspondingly for the symbols needed.  */
12706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12707 int fnord () __attribute__((visibility("default")));
12708 #endif
12709
12710 int fnord () { return 42; }
12711 int main ()
12712 {
12713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12714   int status = $lt_dlunknown;
12715
12716   if (self)
12717     {
12718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12719       else
12720         {
12721           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12722           else puts (dlerror ());
12723         }
12724       /* dlclose (self); */
12725     }
12726   else
12727     puts (dlerror ());
12728
12729   return status;
12730 }
12731 _LT_EOF
12732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12733   (eval $ac_link) 2>&5
12734   ac_status=$?
12735   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12737     (./conftest; exit; ) >&5 2>/dev/null
12738     lt_status=$?
12739     case x$lt_status in
12740       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12741       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12742       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12743     esac
12744   else :
12745     # compilation failed
12746     lt_cv_dlopen_self_static=no
12747   fi
12748 fi
12749 rm -fr conftest*
12750
12751
12752 fi
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12754 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12755     fi
12756
12757     CPPFLAGS="$save_CPPFLAGS"
12758     LDFLAGS="$save_LDFLAGS"
12759     LIBS="$save_LIBS"
12760     ;;
12761   esac
12762
12763   case $lt_cv_dlopen_self in
12764   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12765   *) enable_dlopen_self=unknown ;;
12766   esac
12767
12768   case $lt_cv_dlopen_self_static in
12769   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12770   *) enable_dlopen_self_static=unknown ;;
12771   esac
12772 fi
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790 striplib=
12791 old_striplib=
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12793 printf %s "checking whether stripping libraries is possible... " >&6; }
12794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12795   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12796   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 printf "%s\n" "yes" >&6; }
12799 else
12800 # FIXME - insert some real tests, host_os isn't really good enough
12801   case $host_os in
12802   darwin*)
12803     if test -n "$STRIP" ; then
12804       striplib="$STRIP -x"
12805       old_striplib="$STRIP -S"
12806       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807 printf "%s\n" "yes" >&6; }
12808     else
12809       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 printf "%s\n" "no" >&6; }
12811     fi
12812     ;;
12813   *)
12814     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 printf "%s\n" "no" >&6; }
12816     ;;
12817   esac
12818 fi
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831   # Report which library types will actually be built
12832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12833 printf %s "checking if libtool supports shared libraries... " >&6; }
12834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12835 printf "%s\n" "$can_build_shared" >&6; }
12836
12837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12838 printf %s "checking whether to build shared libraries... " >&6; }
12839   test "$can_build_shared" = "no" && enable_shared=no
12840
12841   # On AIX, shared libraries and static libraries use the same namespace, and
12842   # are all built from PIC.
12843   case $host_os in
12844   aix3*)
12845     test "$enable_shared" = yes && enable_static=no
12846     if test -n "$RANLIB"; then
12847       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12848       postinstall_cmds='$RANLIB $lib'
12849     fi
12850     ;;
12851
12852   aix[4-9]*)
12853     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12854       test "$enable_shared" = yes && enable_static=no
12855     fi
12856     ;;
12857   esac
12858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12859 printf "%s\n" "$enable_shared" >&6; }
12860
12861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12862 printf %s "checking whether to build static libraries... " >&6; }
12863   # Make sure either enable_shared or enable_static is yes.
12864   test "$enable_shared" = yes || enable_static=yes
12865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12866 printf "%s\n" "$enable_static" >&6; }
12867
12868
12869
12870
12871 fi
12872 ac_ext=c
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878 CC="$lt_save_CC"
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894         ac_config_commands="$ac_config_commands libtool"
12895
12896
12897
12898
12899 # Only expand once:
12900
12901
12902 if test -n "$ac_tool_prefix"; then
12903   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12904 set dummy ${ac_tool_prefix}windres; ac_word=$2
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 printf %s "checking for $ac_word... " >&6; }
12907 if test ${ac_cv_prog_RC+y}
12908 then :
12909   printf %s "(cached) " >&6
12910 else $as_nop
12911   if test -n "$RC"; then
12912   ac_cv_prog_RC="$RC" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   case $as_dir in #(((
12919     '') as_dir=./ ;;
12920     */) ;;
12921     *) as_dir=$as_dir/ ;;
12922   esac
12923     for ac_exec_ext in '' $ac_executable_extensions; do
12924   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12925     ac_cv_prog_RC="${ac_tool_prefix}windres"
12926     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12927     break 2
12928   fi
12929 done
12930   done
12931 IFS=$as_save_IFS
12932
12933 fi
12934 fi
12935 RC=$ac_cv_prog_RC
12936 if test -n "$RC"; then
12937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12938 printf "%s\n" "$RC" >&6; }
12939 else
12940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 printf "%s\n" "no" >&6; }
12942 fi
12943
12944
12945 fi
12946 if test -z "$ac_cv_prog_RC"; then
12947   ac_ct_RC=$RC
12948   # Extract the first word of "windres", so it can be a program name with args.
12949 set dummy windres; ac_word=$2
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 printf %s "checking for $ac_word... " >&6; }
12952 if test ${ac_cv_prog_ac_ct_RC+y}
12953 then :
12954   printf %s "(cached) " >&6
12955 else $as_nop
12956   if test -n "$ac_ct_RC"; then
12957   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12958 else
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   case $as_dir in #(((
12964     '') as_dir=./ ;;
12965     */) ;;
12966     *) as_dir=$as_dir/ ;;
12967   esac
12968     for ac_exec_ext in '' $ac_executable_extensions; do
12969   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12970     ac_cv_prog_ac_ct_RC="windres"
12971     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12972     break 2
12973   fi
12974 done
12975   done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12981 if test -n "$ac_ct_RC"; then
12982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12983 printf "%s\n" "$ac_ct_RC" >&6; }
12984 else
12985   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 printf "%s\n" "no" >&6; }
12987 fi
12988
12989   if test "x$ac_ct_RC" = x; then
12990     RC=""
12991   else
12992     case $cross_compiling:$ac_tool_warned in
12993 yes:)
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12996 ac_tool_warned=yes ;;
12997 esac
12998     RC=$ac_ct_RC
12999   fi
13000 else
13001   RC="$ac_cv_prog_RC"
13002 fi
13003
13004
13005
13006
13007 # Source file extension for RC test sources.
13008 ac_ext=rc
13009
13010 # Object file extension for compiled RC test sources.
13011 objext=o
13012 objext_RC=$objext
13013
13014 # Code to be used in simple compile tests
13015 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13016
13017 # Code to be used in simple link tests
13018 lt_simple_link_test_code="$lt_simple_compile_test_code"
13019
13020 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13021
13022
13023
13024
13025
13026
13027 # If no C compiler was specified, use CC.
13028 LTCC=${LTCC-"$CC"}
13029
13030 # If no C compiler flags were specified, use CFLAGS.
13031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13032
13033 # Allow CC to be a program name with arguments.
13034 compiler=$CC
13035
13036
13037 # save warnings/boilerplate of simple test code
13038 ac_outfile=conftest.$ac_objext
13039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13041 _lt_compiler_boilerplate=`cat conftest.err`
13042 $RM conftest*
13043
13044 ac_outfile=conftest.$ac_objext
13045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13047 _lt_linker_boilerplate=`cat conftest.err`
13048 $RM -r conftest*
13049
13050
13051 # Allow CC to be a program name with arguments.
13052 lt_save_CC="$CC"
13053 lt_save_CFLAGS=$CFLAGS
13054 lt_save_GCC=$GCC
13055 GCC=
13056 CC=${RC-"windres"}
13057 CFLAGS=
13058 compiler=$CC
13059 compiler_RC=$CC
13060 for cc_temp in $compiler""; do
13061   case $cc_temp in
13062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13064     \-*) ;;
13065     *) break;;
13066   esac
13067 done
13068 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13069
13070 lt_cv_prog_compiler_c_o_RC=yes
13071
13072 if test -n "$compiler"; then
13073   :
13074
13075
13076
13077 fi
13078
13079 GCC=$lt_save_GCC
13080 ac_ext=c
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085
13086 CC=$lt_save_CC
13087 CFLAGS=$lt_save_CFLAGS
13088
13089
13090
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13092 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13093     # Check whether --enable-maintainer-mode was given.
13094 if test ${enable_maintainer_mode+y}
13095 then :
13096   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13097 else $as_nop
13098   USE_MAINTAINER_MODE=no
13099 fi
13100
13101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13102 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
13103    if test $USE_MAINTAINER_MODE = yes; then
13104   MAINTAINER_MODE_TRUE=
13105   MAINTAINER_MODE_FALSE='#'
13106 else
13107   MAINTAINER_MODE_TRUE='#'
13108   MAINTAINER_MODE_FALSE=
13109 fi
13110
13111   MAINT=$MAINTAINER_MODE_TRUE
13112
13113
13114
13115 # We need to compile and run a program on the build machine.
13116 # Put a plausible default for CC_FOR_BUILD in Makefile.
13117 if test -z "$CC_FOR_BUILD"; then
13118   if test "x$cross_compiling" = "xno"; then
13119     CC_FOR_BUILD='$(CC)'
13120   else
13121     CC_FOR_BUILD=gcc
13122   fi
13123 fi
13124
13125 # Also set EXEEXT_FOR_BUILD.
13126 if test "x$cross_compiling" = "xno"; then
13127   EXEEXT_FOR_BUILD='$(EXEEXT)'
13128 else
13129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13130 printf %s "checking for build system executable suffix... " >&6; }
13131 if test ${bfd_cv_build_exeext+y}
13132 then :
13133   printf %s "(cached) " >&6
13134 else $as_nop
13135   rm -f conftest*
13136      echo 'int main () { return 0; }' > conftest.c
13137      bfd_cv_build_exeext=
13138      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13139      for file in conftest.*; do
13140        case $file in
13141        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13142        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13143        esac
13144      done
13145      rm -f conftest*
13146      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13147 fi
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13149 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
13150   EXEEXT_FOR_BUILD=""
13151   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13152 fi
13153
13154
13155
13156
13157
13158
13159 VERSION_NUMBER=0x010605
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169 # Checks for programs.
13170 missing_dir=`cd $ac_aux_dir && pwd`
13171
13172 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
13173
13174
13175 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13176
13177
13178 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
13179
13180
13181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13182
13183
13184 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13185
13186 # Check whether --enable-silent-rules was given.
13187 if test ${enable_silent_rules+y}
13188 then :
13189   enableval=$enable_silent_rules;
13190 fi
13191
13192 case $enable_silent_rules in # (((
13193   yes) AM_DEFAULT_VERBOSITY=0;;
13194    no) AM_DEFAULT_VERBOSITY=1;;
13195     *) AM_DEFAULT_VERBOSITY=1;;
13196 esac
13197 am_make=${MAKE-make}
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13199 printf %s "checking whether $am_make supports nested variables... " >&6; }
13200 if test ${am_cv_make_support_nested_variables+y}
13201 then :
13202   printf %s "(cached) " >&6
13203 else $as_nop
13204   if printf "%s\n" 'TRUE=$(BAR$(V))
13205 BAR0=false
13206 BAR1=true
13207 V=1
13208 am__doit:
13209         @$(TRUE)
13210 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13211   am_cv_make_support_nested_variables=yes
13212 else
13213   am_cv_make_support_nested_variables=no
13214 fi
13215 fi
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13217 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13218 if test $am_cv_make_support_nested_variables = yes; then
13219     AM_V='$(V)'
13220   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13221 else
13222   AM_V=$AM_DEFAULT_VERBOSITY
13223   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13224 fi
13225 AM_BACKSLASH='\'
13226
13227 for ac_prog in gawk mawk nawk awk
13228 do
13229   # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 printf %s "checking for $ac_word... " >&6; }
13233 if test ${ac_cv_prog_AWK+y}
13234 then :
13235   printf %s "(cached) " >&6
13236 else $as_nop
13237   if test -n "$AWK"; then
13238   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   case $as_dir in #(((
13245     '') as_dir=./ ;;
13246     */) ;;
13247     *) as_dir=$as_dir/ ;;
13248   esac
13249     for ac_exec_ext in '' $ac_executable_extensions; do
13250   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13251     ac_cv_prog_AWK="$ac_prog"
13252     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13253     break 2
13254   fi
13255 done
13256   done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 AWK=$ac_cv_prog_AWK
13262 if test -n "$AWK"; then
13263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13264 printf "%s\n" "$AWK" >&6; }
13265 else
13266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 printf "%s\n" "no" >&6; }
13268 fi
13269
13270
13271   test -n "$AWK" && break
13272 done
13273
13274 ac_ext=c
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279 if test -n "$ac_tool_prefix"; then
13280   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283 printf %s "checking for $ac_word... " >&6; }
13284 if test ${ac_cv_prog_CC+y}
13285 then :
13286   printf %s "(cached) " >&6
13287 else $as_nop
13288   if test -n "$CC"; then
13289   ac_cv_prog_CC="$CC" # Let the user override the test.
13290 else
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294   IFS=$as_save_IFS
13295   case $as_dir in #(((
13296     '') as_dir=./ ;;
13297     */) ;;
13298     *) as_dir=$as_dir/ ;;
13299   esac
13300     for ac_exec_ext in '' $ac_executable_extensions; do
13301   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13302     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13303     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307   done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 CC=$ac_cv_prog_CC
13313 if test -n "$CC"; then
13314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13315 printf "%s\n" "$CC" >&6; }
13316 else
13317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 printf "%s\n" "no" >&6; }
13319 fi
13320
13321
13322 fi
13323 if test -z "$ac_cv_prog_CC"; then
13324   ac_ct_CC=$CC
13325   # Extract the first word of "gcc", so it can be a program name with args.
13326 set dummy gcc; ac_word=$2
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 printf %s "checking for $ac_word... " >&6; }
13329 if test ${ac_cv_prog_ac_ct_CC+y}
13330 then :
13331   printf %s "(cached) " >&6
13332 else $as_nop
13333   if test -n "$ac_ct_CC"; then
13334   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339   IFS=$as_save_IFS
13340   case $as_dir in #(((
13341     '') as_dir=./ ;;
13342     */) ;;
13343     *) as_dir=$as_dir/ ;;
13344   esac
13345     for ac_exec_ext in '' $ac_executable_extensions; do
13346   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13347     ac_cv_prog_ac_ct_CC="gcc"
13348     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13349     break 2
13350   fi
13351 done
13352   done
13353 IFS=$as_save_IFS
13354
13355 fi
13356 fi
13357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13358 if test -n "$ac_ct_CC"; then
13359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13360 printf "%s\n" "$ac_ct_CC" >&6; }
13361 else
13362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 printf "%s\n" "no" >&6; }
13364 fi
13365
13366   if test "x$ac_ct_CC" = x; then
13367     CC=""
13368   else
13369     case $cross_compiling:$ac_tool_warned in
13370 yes:)
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13373 ac_tool_warned=yes ;;
13374 esac
13375     CC=$ac_ct_CC
13376   fi
13377 else
13378   CC="$ac_cv_prog_CC"
13379 fi
13380
13381 if test -z "$CC"; then
13382           if test -n "$ac_tool_prefix"; then
13383     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13384 set dummy ${ac_tool_prefix}cc; ac_word=$2
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 printf %s "checking for $ac_word... " >&6; }
13387 if test ${ac_cv_prog_CC+y}
13388 then :
13389   printf %s "(cached) " >&6
13390 else $as_nop
13391   if test -n "$CC"; then
13392   ac_cv_prog_CC="$CC" # Let the user override the test.
13393 else
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13396 do
13397   IFS=$as_save_IFS
13398   case $as_dir in #(((
13399     '') as_dir=./ ;;
13400     */) ;;
13401     *) as_dir=$as_dir/ ;;
13402   esac
13403     for ac_exec_ext in '' $ac_executable_extensions; do
13404   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13405     ac_cv_prog_CC="${ac_tool_prefix}cc"
13406     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13407     break 2
13408   fi
13409 done
13410   done
13411 IFS=$as_save_IFS
13412
13413 fi
13414 fi
13415 CC=$ac_cv_prog_CC
13416 if test -n "$CC"; then
13417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13418 printf "%s\n" "$CC" >&6; }
13419 else
13420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 printf "%s\n" "no" >&6; }
13422 fi
13423
13424
13425   fi
13426 fi
13427 if test -z "$CC"; then
13428   # Extract the first word of "cc", so it can be a program name with args.
13429 set dummy cc; ac_word=$2
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 printf %s "checking for $ac_word... " >&6; }
13432 if test ${ac_cv_prog_CC+y}
13433 then :
13434   printf %s "(cached) " >&6
13435 else $as_nop
13436   if test -n "$CC"; then
13437   ac_cv_prog_CC="$CC" # Let the user override the test.
13438 else
13439   ac_prog_rejected=no
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13442 do
13443   IFS=$as_save_IFS
13444   case $as_dir in #(((
13445     '') as_dir=./ ;;
13446     */) ;;
13447     *) as_dir=$as_dir/ ;;
13448   esac
13449     for ac_exec_ext in '' $ac_executable_extensions; do
13450   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13451     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13452        ac_prog_rejected=yes
13453        continue
13454      fi
13455     ac_cv_prog_CC="cc"
13456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13457     break 2
13458   fi
13459 done
13460   done
13461 IFS=$as_save_IFS
13462
13463 if test $ac_prog_rejected = yes; then
13464   # We found a bogon in the path, so make sure we never use it.
13465   set dummy $ac_cv_prog_CC
13466   shift
13467   if test $# != 0; then
13468     # We chose a different compiler from the bogus one.
13469     # However, it has the same basename, so the bogon will be chosen
13470     # first if we set CC to just the basename; use the full file name.
13471     shift
13472     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13473   fi
13474 fi
13475 fi
13476 fi
13477 CC=$ac_cv_prog_CC
13478 if test -n "$CC"; then
13479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13480 printf "%s\n" "$CC" >&6; }
13481 else
13482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 printf "%s\n" "no" >&6; }
13484 fi
13485
13486
13487 fi
13488 if test -z "$CC"; then
13489   if test -n "$ac_tool_prefix"; then
13490   for ac_prog in cl.exe
13491   do
13492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 printf %s "checking for $ac_word... " >&6; }
13496 if test ${ac_cv_prog_CC+y}
13497 then :
13498   printf %s "(cached) " >&6
13499 else $as_nop
13500   if test -n "$CC"; then
13501   ac_cv_prog_CC="$CC" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13505 do
13506   IFS=$as_save_IFS
13507   case $as_dir in #(((
13508     '') as_dir=./ ;;
13509     */) ;;
13510     *) as_dir=$as_dir/ ;;
13511   esac
13512     for ac_exec_ext in '' $ac_executable_extensions; do
13513   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13514     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13515     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13516     break 2
13517   fi
13518 done
13519   done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 CC=$ac_cv_prog_CC
13525 if test -n "$CC"; then
13526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13527 printf "%s\n" "$CC" >&6; }
13528 else
13529   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 printf "%s\n" "no" >&6; }
13531 fi
13532
13533
13534     test -n "$CC" && break
13535   done
13536 fi
13537 if test -z "$CC"; then
13538   ac_ct_CC=$CC
13539   for ac_prog in cl.exe
13540 do
13541   # Extract the first word of "$ac_prog", so it can be a program name with args.
13542 set dummy $ac_prog; ac_word=$2
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 printf %s "checking for $ac_word... " >&6; }
13545 if test ${ac_cv_prog_ac_ct_CC+y}
13546 then :
13547   printf %s "(cached) " >&6
13548 else $as_nop
13549   if test -n "$ac_ct_CC"; then
13550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13551 else
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13554 do
13555   IFS=$as_save_IFS
13556   case $as_dir in #(((
13557     '') as_dir=./ ;;
13558     */) ;;
13559     *) as_dir=$as_dir/ ;;
13560   esac
13561     for ac_exec_ext in '' $ac_executable_extensions; do
13562   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13563     ac_cv_prog_ac_ct_CC="$ac_prog"
13564     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13565     break 2
13566   fi
13567 done
13568   done
13569 IFS=$as_save_IFS
13570
13571 fi
13572 fi
13573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13574 if test -n "$ac_ct_CC"; then
13575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13576 printf "%s\n" "$ac_ct_CC" >&6; }
13577 else
13578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 printf "%s\n" "no" >&6; }
13580 fi
13581
13582
13583   test -n "$ac_ct_CC" && break
13584 done
13585
13586   if test "x$ac_ct_CC" = x; then
13587     CC=""
13588   else
13589     case $cross_compiling:$ac_tool_warned in
13590 yes:)
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13592 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13593 ac_tool_warned=yes ;;
13594 esac
13595     CC=$ac_ct_CC
13596   fi
13597 fi
13598
13599 fi
13600 if test -z "$CC"; then
13601   if test -n "$ac_tool_prefix"; then
13602   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13603 set dummy ${ac_tool_prefix}clang; ac_word=$2
13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 printf %s "checking for $ac_word... " >&6; }
13606 if test ${ac_cv_prog_CC+y}
13607 then :
13608   printf %s "(cached) " >&6
13609 else $as_nop
13610   if test -n "$CC"; then
13611   ac_cv_prog_CC="$CC" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616   IFS=$as_save_IFS
13617   case $as_dir in #(((
13618     '') as_dir=./ ;;
13619     */) ;;
13620     *) as_dir=$as_dir/ ;;
13621   esac
13622     for ac_exec_ext in '' $ac_executable_extensions; do
13623   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13624     ac_cv_prog_CC="${ac_tool_prefix}clang"
13625     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13626     break 2
13627   fi
13628 done
13629   done
13630 IFS=$as_save_IFS
13631
13632 fi
13633 fi
13634 CC=$ac_cv_prog_CC
13635 if test -n "$CC"; then
13636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13637 printf "%s\n" "$CC" >&6; }
13638 else
13639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 printf "%s\n" "no" >&6; }
13641 fi
13642
13643
13644 fi
13645 if test -z "$ac_cv_prog_CC"; then
13646   ac_ct_CC=$CC
13647   # Extract the first word of "clang", so it can be a program name with args.
13648 set dummy clang; ac_word=$2
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13650 printf %s "checking for $ac_word... " >&6; }
13651 if test ${ac_cv_prog_ac_ct_CC+y}
13652 then :
13653   printf %s "(cached) " >&6
13654 else $as_nop
13655   if test -n "$ac_ct_CC"; then
13656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   case $as_dir in #(((
13663     '') as_dir=./ ;;
13664     */) ;;
13665     *) as_dir=$as_dir/ ;;
13666   esac
13667     for ac_exec_ext in '' $ac_executable_extensions; do
13668   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13669     ac_cv_prog_ac_ct_CC="clang"
13670     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13671     break 2
13672   fi
13673 done
13674   done
13675 IFS=$as_save_IFS
13676
13677 fi
13678 fi
13679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13680 if test -n "$ac_ct_CC"; then
13681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13682 printf "%s\n" "$ac_ct_CC" >&6; }
13683 else
13684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 printf "%s\n" "no" >&6; }
13686 fi
13687
13688   if test "x$ac_ct_CC" = x; then
13689     CC=""
13690   else
13691     case $cross_compiling:$ac_tool_warned in
13692 yes:)
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13695 ac_tool_warned=yes ;;
13696 esac
13697     CC=$ac_ct_CC
13698   fi
13699 else
13700   CC="$ac_cv_prog_CC"
13701 fi
13702
13703 fi
13704
13705
13706 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13708 as_fn_error $? "no acceptable C compiler found in \$PATH
13709 See \`config.log' for more details" "$LINENO" 5; }
13710
13711 # Provide some information about the compiler.
13712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13713 set X $ac_compile
13714 ac_compiler=$2
13715 for ac_option in --version -v -V -qversion -version; do
13716   { { ac_try="$ac_compiler $ac_option >&5"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13722 printf "%s\n" "$ac_try_echo"; } >&5
13723   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13724   ac_status=$?
13725   if test -s conftest.err; then
13726     sed '10a\
13727 ... rest of stderr output deleted ...
13728          10q' conftest.err >conftest.er1
13729     cat conftest.er1 >&5
13730   fi
13731   rm -f conftest.er1 conftest.err
13732   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733   test $ac_status = 0; }
13734 done
13735
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13737 printf %s "checking whether the compiler supports GNU C... " >&6; }
13738 if test ${ac_cv_c_compiler_gnu+y}
13739 then :
13740   printf %s "(cached) " >&6
13741 else $as_nop
13742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744
13745 int
13746 main (void)
13747 {
13748 #ifndef __GNUC__
13749        choke me
13750 #endif
13751
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"
13757 then :
13758   ac_compiler_gnu=yes
13759 else $as_nop
13760   ac_compiler_gnu=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13764
13765 fi
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13767 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13769
13770 if test $ac_compiler_gnu = yes; then
13771   GCC=yes
13772 else
13773   GCC=
13774 fi
13775 ac_test_CFLAGS=${CFLAGS+y}
13776 ac_save_CFLAGS=$CFLAGS
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13778 printf %s "checking whether $CC accepts -g... " >&6; }
13779 if test ${ac_cv_prog_cc_g+y}
13780 then :
13781   printf %s "(cached) " >&6
13782 else $as_nop
13783   ac_save_c_werror_flag=$ac_c_werror_flag
13784    ac_c_werror_flag=yes
13785    ac_cv_prog_cc_g=no
13786    CFLAGS="-g"
13787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h.  */
13789
13790 int
13791 main (void)
13792 {
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"
13799 then :
13800   ac_cv_prog_cc_g=yes
13801 else $as_nop
13802   CFLAGS=""
13803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h.  */
13805
13806 int
13807 main (void)
13808 {
13809
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 if ac_fn_c_try_compile "$LINENO"
13815 then :
13816
13817 else $as_nop
13818   ac_c_werror_flag=$ac_save_c_werror_flag
13819          CFLAGS="-g"
13820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h.  */
13822
13823 int
13824 main (void)
13825 {
13826
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 if ac_fn_c_try_compile "$LINENO"
13832 then :
13833   ac_cv_prog_cc_g=yes
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13840    ac_c_werror_flag=$ac_save_c_werror_flag
13841 fi
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13843 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13844 if test $ac_test_CFLAGS; then
13845   CFLAGS=$ac_save_CFLAGS
13846 elif test $ac_cv_prog_cc_g = yes; then
13847   if test "$GCC" = yes; then
13848     CFLAGS="-g -O2"
13849   else
13850     CFLAGS="-g"
13851   fi
13852 else
13853   if test "$GCC" = yes; then
13854     CFLAGS="-O2"
13855   else
13856     CFLAGS=
13857   fi
13858 fi
13859 ac_prog_cc_stdc=no
13860 if test x$ac_prog_cc_stdc = xno
13861 then :
13862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13863 printf %s "checking for $CC option to enable C11 features... " >&6; }
13864 if test ${ac_cv_prog_cc_c11+y}
13865 then :
13866   printf %s "(cached) " >&6
13867 else $as_nop
13868   ac_cv_prog_cc_c11=no
13869 ac_save_CC=$CC
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h.  */
13872 $ac_c_conftest_c11_program
13873 _ACEOF
13874 for ac_arg in '' -std=gnu11
13875 do
13876   CC="$ac_save_CC $ac_arg"
13877   if ac_fn_c_try_compile "$LINENO"
13878 then :
13879   ac_cv_prog_cc_c11=$ac_arg
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.beam
13882   test "x$ac_cv_prog_cc_c11" != "xno" && break
13883 done
13884 rm -f conftest.$ac_ext
13885 CC=$ac_save_CC
13886 fi
13887
13888 if test "x$ac_cv_prog_cc_c11" = xno
13889 then :
13890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13891 printf "%s\n" "unsupported" >&6; }
13892 else $as_nop
13893   if test "x$ac_cv_prog_cc_c11" = x
13894 then :
13895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13896 printf "%s\n" "none needed" >&6; }
13897 else $as_nop
13898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13899 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13900      CC="$CC $ac_cv_prog_cc_c11"
13901 fi
13902   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13903   ac_prog_cc_stdc=c11
13904 fi
13905 fi
13906 if test x$ac_prog_cc_stdc = xno
13907 then :
13908   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13909 printf %s "checking for $CC option to enable C99 features... " >&6; }
13910 if test ${ac_cv_prog_cc_c99+y}
13911 then :
13912   printf %s "(cached) " >&6
13913 else $as_nop
13914   ac_cv_prog_cc_c99=no
13915 ac_save_CC=$CC
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h.  */
13918 $ac_c_conftest_c99_program
13919 _ACEOF
13920 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13921 do
13922   CC="$ac_save_CC $ac_arg"
13923   if ac_fn_c_try_compile "$LINENO"
13924 then :
13925   ac_cv_prog_cc_c99=$ac_arg
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext conftest.beam
13928   test "x$ac_cv_prog_cc_c99" != "xno" && break
13929 done
13930 rm -f conftest.$ac_ext
13931 CC=$ac_save_CC
13932 fi
13933
13934 if test "x$ac_cv_prog_cc_c99" = xno
13935 then :
13936   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13937 printf "%s\n" "unsupported" >&6; }
13938 else $as_nop
13939   if test "x$ac_cv_prog_cc_c99" = x
13940 then :
13941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13942 printf "%s\n" "none needed" >&6; }
13943 else $as_nop
13944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13945 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13946      CC="$CC $ac_cv_prog_cc_c99"
13947 fi
13948   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13949   ac_prog_cc_stdc=c99
13950 fi
13951 fi
13952 if test x$ac_prog_cc_stdc = xno
13953 then :
13954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13955 printf %s "checking for $CC option to enable C89 features... " >&6; }
13956 if test ${ac_cv_prog_cc_c89+y}
13957 then :
13958   printf %s "(cached) " >&6
13959 else $as_nop
13960   ac_cv_prog_cc_c89=no
13961 ac_save_CC=$CC
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h.  */
13964 $ac_c_conftest_c89_program
13965 _ACEOF
13966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13967 do
13968   CC="$ac_save_CC $ac_arg"
13969   if ac_fn_c_try_compile "$LINENO"
13970 then :
13971   ac_cv_prog_cc_c89=$ac_arg
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext conftest.beam
13974   test "x$ac_cv_prog_cc_c89" != "xno" && break
13975 done
13976 rm -f conftest.$ac_ext
13977 CC=$ac_save_CC
13978 fi
13979
13980 if test "x$ac_cv_prog_cc_c89" = xno
13981 then :
13982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13983 printf "%s\n" "unsupported" >&6; }
13984 else $as_nop
13985   if test "x$ac_cv_prog_cc_c89" = x
13986 then :
13987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13988 printf "%s\n" "none needed" >&6; }
13989 else $as_nop
13990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13991 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13992      CC="$CC $ac_cv_prog_cc_c89"
13993 fi
13994   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13995   ac_prog_cc_stdc=c89
13996 fi
13997 fi
13998
13999 ac_ext=c
14000 ac_cpp='$CPP $CPPFLAGS'
14001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14004
14005
14006   ac_ext=c
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14012 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14013 if test ${am_cv_prog_cc_c_o+y}
14014 then :
14015   printf %s "(cached) " >&6
14016 else $as_nop
14017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h.  */
14019
14020 int
14021 main (void)
14022 {
14023
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028   # Make sure it works both with $CC and with simple cc.
14029   # Following AC_PROG_CC_C_O, we do the test twice because some
14030   # compilers refuse to overwrite an existing .o file with -o,
14031   # though they will create one.
14032   am_cv_prog_cc_c_o=yes
14033   for am_i in 1 2; do
14034     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14035    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14036    ac_status=$?
14037    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038    (exit $ac_status); } \
14039          && test -f conftest2.$ac_objext; then
14040       : OK
14041     else
14042       am_cv_prog_cc_c_o=no
14043       break
14044     fi
14045   done
14046   rm -f core conftest*
14047   unset am_i
14048 fi
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14050 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14051 if test "$am_cv_prog_cc_c_o" != yes; then
14052    # Losing compiler, so override with the script.
14053    # FIXME: It is wrong to rewrite CC.
14054    # But if we don't then we get into trouble of one sort or another.
14055    # A longer-term fix would be to have automake use am__CC in this case,
14056    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14057    CC="$am_aux_dir/compile $CC"
14058 fi
14059 ac_ext=c
14060 ac_cpp='$CPP $CPPFLAGS'
14061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14064
14065
14066 depcc="$CC"   am_compiler_list=
14067
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14069 printf %s "checking dependency style of $depcc... " >&6; }
14070 if test ${am_cv_CC_dependencies_compiler_type+y}
14071 then :
14072   printf %s "(cached) " >&6
14073 else $as_nop
14074   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14075   # We make a subdir and do the tests there.  Otherwise we can end up
14076   # making bogus files that we don't know about and never remove.  For
14077   # instance it was reported that on HP-UX the gcc test will end up
14078   # making a dummy file named 'D' -- because '-MD' means "put the output
14079   # in D".
14080   rm -rf conftest.dir
14081   mkdir conftest.dir
14082   # Copy depcomp to subdir because otherwise we won't find it if we're
14083   # using a relative directory.
14084   cp "$am_depcomp" conftest.dir
14085   cd conftest.dir
14086   # We will build objects and dependencies in a subdirectory because
14087   # it helps to detect inapplicable dependency modes.  For instance
14088   # both Tru64's cc and ICC support -MD to output dependencies as a
14089   # side effect of compilation, but ICC will put the dependencies in
14090   # the current directory while Tru64 will put them in the object
14091   # directory.
14092   mkdir sub
14093
14094   am_cv_CC_dependencies_compiler_type=none
14095   if test "$am_compiler_list" = ""; then
14096      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14097   fi
14098   am__universal=false
14099   case " $depcc " in #(
14100      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14101      esac
14102
14103   for depmode in $am_compiler_list; do
14104     # Setup a source with many dependencies, because some compilers
14105     # like to wrap large dependency lists on column 80 (with \), and
14106     # we should not choose a depcomp mode which is confused by this.
14107     #
14108     # We need to recreate these files for each test, as the compiler may
14109     # overwrite some of them when testing with obscure command lines.
14110     # This happens at least with the AIX C compiler.
14111     : > sub/conftest.c
14112     for i in 1 2 3 4 5 6; do
14113       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14114       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14115       # Solaris 10 /bin/sh.
14116       echo '/* dummy */' > sub/conftst$i.h
14117     done
14118     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14119
14120     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14121     # mode.  It turns out that the SunPro C++ compiler does not properly
14122     # handle '-M -o', and we need to detect this.  Also, some Intel
14123     # versions had trouble with output in subdirs.
14124     am__obj=sub/conftest.${OBJEXT-o}
14125     am__minus_obj="-o $am__obj"
14126     case $depmode in
14127     gcc)
14128       # This depmode causes a compiler race in universal mode.
14129       test "$am__universal" = false || continue
14130       ;;
14131     nosideeffect)
14132       # After this tag, mechanisms are not by side-effect, so they'll
14133       # only be used when explicitly requested.
14134       if test "x$enable_dependency_tracking" = xyes; then
14135         continue
14136       else
14137         break
14138       fi
14139       ;;
14140     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14141       # This compiler won't grok '-c -o', but also, the minuso test has
14142       # not run yet.  These depmodes are late enough in the game, and
14143       # so weak that their functioning should not be impacted.
14144       am__obj=conftest.${OBJEXT-o}
14145       am__minus_obj=
14146       ;;
14147     none) break ;;
14148     esac
14149     if depmode=$depmode \
14150        source=sub/conftest.c object=$am__obj \
14151        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14152        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14153          >/dev/null 2>conftest.err &&
14154        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14155        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14156        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14157        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14158       # icc doesn't choke on unknown options, it will just issue warnings
14159       # or remarks (even with -Werror).  So we grep stderr for any message
14160       # that says an option was ignored or not supported.
14161       # When given -MP, icc 7.0 and 7.1 complain thusly:
14162       #   icc: Command line warning: ignoring option '-M'; no argument required
14163       # The diagnosis changed in icc 8.0:
14164       #   icc: Command line remark: option '-MP' not supported
14165       if (grep 'ignoring option' conftest.err ||
14166           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14167         am_cv_CC_dependencies_compiler_type=$depmode
14168         break
14169       fi
14170     fi
14171   done
14172
14173   cd ..
14174   rm -rf conftest.dir
14175 else
14176   am_cv_CC_dependencies_compiler_type=none
14177 fi
14178
14179 fi
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14181 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14183
14184  if
14185   test "x$enable_dependency_tracking" != xno \
14186   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14187   am__fastdepCC_TRUE=
14188   am__fastdepCC_FALSE='#'
14189 else
14190   am__fastdepCC_TRUE='#'
14191   am__fastdepCC_FALSE=
14192 fi
14193
14194
14195 ac_ext=c
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14201 printf %s "checking how to run the C preprocessor... " >&6; }
14202 # On Suns, sometimes $CPP names a directory.
14203 if test -n "$CPP" && test -d "$CPP"; then
14204   CPP=
14205 fi
14206 if test -z "$CPP"; then
14207   if test ${ac_cv_prog_CPP+y}
14208 then :
14209   printf %s "(cached) " >&6
14210 else $as_nop
14211       # Double quotes because $CC needs to be expanded
14212     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14213     do
14214       ac_preproc_ok=false
14215 for ac_c_preproc_warn_flag in '' yes
14216 do
14217   # Use a header file that comes with gcc, so configuring glibc
14218   # with a fresh cross-compiler works.
14219   # On the NeXT, cc -E runs the code through the compiler's parser,
14220   # not just through cpp. "Syntax error" is here to catch this case.
14221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h.  */
14223 #include <limits.h>
14224                      Syntax error
14225 _ACEOF
14226 if ac_fn_c_try_cpp "$LINENO"
14227 then :
14228
14229 else $as_nop
14230   # Broken: fails on valid input.
14231 continue
14232 fi
14233 rm -f conftest.err conftest.i conftest.$ac_ext
14234
14235   # OK, works on sane cases.  Now check whether nonexistent headers
14236   # can be detected and how.
14237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h.  */
14239 #include <ac_nonexistent.h>
14240 _ACEOF
14241 if ac_fn_c_try_cpp "$LINENO"
14242 then :
14243   # Broken: success on invalid input.
14244 continue
14245 else $as_nop
14246   # Passes both tests.
14247 ac_preproc_ok=:
14248 break
14249 fi
14250 rm -f conftest.err conftest.i conftest.$ac_ext
14251
14252 done
14253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14254 rm -f conftest.i conftest.err conftest.$ac_ext
14255 if $ac_preproc_ok
14256 then :
14257   break
14258 fi
14259
14260     done
14261     ac_cv_prog_CPP=$CPP
14262
14263 fi
14264   CPP=$ac_cv_prog_CPP
14265 else
14266   ac_cv_prog_CPP=$CPP
14267 fi
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14269 printf "%s\n" "$CPP" >&6; }
14270 ac_preproc_ok=false
14271 for ac_c_preproc_warn_flag in '' yes
14272 do
14273   # Use a header file that comes with gcc, so configuring glibc
14274   # with a fresh cross-compiler works.
14275   # On the NeXT, cc -E runs the code through the compiler's parser,
14276   # not just through cpp. "Syntax error" is here to catch this case.
14277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h.  */
14279 #include <limits.h>
14280                      Syntax error
14281 _ACEOF
14282 if ac_fn_c_try_cpp "$LINENO"
14283 then :
14284
14285 else $as_nop
14286   # Broken: fails on valid input.
14287 continue
14288 fi
14289 rm -f conftest.err conftest.i conftest.$ac_ext
14290
14291   # OK, works on sane cases.  Now check whether nonexistent headers
14292   # can be detected and how.
14293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h.  */
14295 #include <ac_nonexistent.h>
14296 _ACEOF
14297 if ac_fn_c_try_cpp "$LINENO"
14298 then :
14299   # Broken: success on invalid input.
14300 continue
14301 else $as_nop
14302   # Passes both tests.
14303 ac_preproc_ok=:
14304 break
14305 fi
14306 rm -f conftest.err conftest.i conftest.$ac_ext
14307
14308 done
14309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14310 rm -f conftest.i conftest.err conftest.$ac_ext
14311 if $ac_preproc_ok
14312 then :
14313
14314 else $as_nop
14315   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14317 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14318 See \`config.log' for more details" "$LINENO" 5; }
14319 fi
14320
14321 ac_ext=c
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14326
14327
14328 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
14329   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
14330 fi
14331
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14333 printf %s "checking whether ln -s works... " >&6; }
14334 LN_S=$as_ln_s
14335 if test "$LN_S" = "ln -s"; then
14336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 printf "%s\n" "yes" >&6; }
14338 else
14339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14340 printf "%s\n" "no, using $LN_S" >&6; }
14341 fi
14342
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14344 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14345 set x ${MAKE-make}
14346 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14347 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
14348 then :
14349   printf %s "(cached) " >&6
14350 else $as_nop
14351   cat >conftest.make <<\_ACEOF
14352 SHELL = /bin/sh
14353 all:
14354         @echo '@@@%%%=$(MAKE)=@@@%%%'
14355 _ACEOF
14356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14358   *@@@%%%=?*=@@@%%%*)
14359     eval ac_cv_prog_make_${ac_make}_set=yes;;
14360   *)
14361     eval ac_cv_prog_make_${ac_make}_set=no;;
14362 esac
14363 rm -f conftest.make
14364 fi
14365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367 printf "%s\n" "yes" >&6; }
14368   SET_MAKE=
14369 else
14370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 printf "%s\n" "no" >&6; }
14372   SET_MAKE="MAKE=${MAKE-make}"
14373 fi
14374
14375
14376
14377 #AC_ARG_PROGRAM
14378 for ac_prog in 'bison -y' byacc
14379 do
14380   # Extract the first word of "$ac_prog", so it can be a program name with args.
14381 set dummy $ac_prog; ac_word=$2
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383 printf %s "checking for $ac_word... " >&6; }
14384 if test ${ac_cv_prog_YACC+y}
14385 then :
14386   printf %s "(cached) " >&6
14387 else $as_nop
14388   if test -n "$YACC"; then
14389   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394   IFS=$as_save_IFS
14395   case $as_dir in #(((
14396     '') as_dir=./ ;;
14397     */) ;;
14398     *) as_dir=$as_dir/ ;;
14399   esac
14400     for ac_exec_ext in '' $ac_executable_extensions; do
14401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14402     ac_cv_prog_YACC="$ac_prog"
14403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14404     break 2
14405   fi
14406 done
14407   done
14408 IFS=$as_save_IFS
14409
14410 fi
14411 fi
14412 YACC=$ac_cv_prog_YACC
14413 if test -n "$YACC"; then
14414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14415 printf "%s\n" "$YACC" >&6; }
14416 else
14417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418 printf "%s\n" "no" >&6; }
14419 fi
14420
14421
14422   test -n "$YACC" && break
14423 done
14424 test -n "$YACC" || YACC="yacc"
14425
14426
14427
14428
14429
14430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
14431 printf %s "checking if bison is the parser generator... " >&6; }
14432 if test ${ax_cv_prog_bison+y}
14433 then :
14434   printf %s "(cached) " >&6
14435 else $as_nop
14436
14437     if $YACC --version 2>/dev/null | $EGREP -q '^bison '
14438 then :
14439   ax_cv_prog_bison=yes
14440 else $as_nop
14441   ax_cv_prog_bison=no
14442 fi
14443
14444 fi
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
14446 printf "%s\n" "$ax_cv_prog_bison" >&6; }
14447   if test "$ax_cv_prog_bison" = "yes"
14448 then :
14449
14450                               YACC="${YACC% -y} -o y.tab.c"
14451      have_bison=yes
14452 else $as_nop
14453   have_bison=no
14454
14455 fi
14456
14457
14458 if test "$USE_MAINTAINER_MODE" = "yes"; then
14459         for ac_prog in gcov
14460 do
14461   # Extract the first word of "$ac_prog", so it can be a program name with args.
14462 set dummy $ac_prog; ac_word=$2
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464 printf %s "checking for $ac_word... " >&6; }
14465 if test ${ac_cv_prog_GCOV+y}
14466 then :
14467   printf %s "(cached) " >&6
14468 else $as_nop
14469   if test -n "$GCOV"; then
14470   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14471 else
14472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473 for as_dir in $PATH
14474 do
14475   IFS=$as_save_IFS
14476   case $as_dir in #(((
14477     '') as_dir=./ ;;
14478     */) ;;
14479     *) as_dir=$as_dir/ ;;
14480   esac
14481     for ac_exec_ext in '' $ac_executable_extensions; do
14482   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14483     ac_cv_prog_GCOV="$ac_prog"
14484     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14485     break 2
14486   fi
14487 done
14488   done
14489 IFS=$as_save_IFS
14490
14491 fi
14492 fi
14493 GCOV=$ac_cv_prog_GCOV
14494 if test -n "$GCOV"; then
14495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14496 printf "%s\n" "$GCOV" >&6; }
14497 else
14498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 printf "%s\n" "no" >&6; }
14500 fi
14501
14502
14503   test -n "$GCOV" && break
14504 done
14505 test -n "$GCOV" || GCOV="gcov"
14506
14507         # gcov coverage reporting
14508
14509   # Check whether --enable-gcov was given.
14510 if test ${enable_gcov+y}
14511 then :
14512   enableval=$enable_gcov; use_gcov=yes
14513 else $as_nop
14514   use_gcov=no
14515 fi
14516
14517
14518    if test "x$use_gcov" = "xyes"; then
14519   HAVE_GCOV_TRUE=
14520   HAVE_GCOV_FALSE='#'
14521 else
14522   HAVE_GCOV_TRUE='#'
14523   HAVE_GCOV_FALSE=
14524 fi
14525
14526
14527   if test "x$use_gcov" = "xyes"; then
14528   # we need gcc:
14529   if test "$GCC" != "yes"; then
14530     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
14531   fi
14532
14533   # Check if ccache is being used
14534   # Extract the first word of "shtool", so it can be a program name with args.
14535 set dummy shtool; ac_word=$2
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 printf %s "checking for $ac_word... " >&6; }
14538 if test ${ac_cv_prog_SHTOOL+y}
14539 then :
14540   printf %s "(cached) " >&6
14541 else $as_nop
14542   if test -n "$SHTOOL"; then
14543   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
14544 else
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14547 do
14548   IFS=$as_save_IFS
14549   case $as_dir in #(((
14550     '') as_dir=./ ;;
14551     */) ;;
14552     *) as_dir=$as_dir/ ;;
14553   esac
14554     for ac_exec_ext in '' $ac_executable_extensions; do
14555   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14556     ac_cv_prog_SHTOOL="shtool"
14557     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14558     break 2
14559   fi
14560 done
14561   done
14562 IFS=$as_save_IFS
14563
14564 fi
14565 fi
14566 SHTOOL=$ac_cv_prog_SHTOOL
14567 if test -n "$SHTOOL"; then
14568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
14569 printf "%s\n" "$SHTOOL" >&6; }
14570 else
14571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 printf "%s\n" "no" >&6; }
14573 fi
14574
14575
14576   if test "$SHTOOL"; then
14577     case `$SHTOOL path $CC` in #(
14578   *ccache*) :
14579     gcc_ccache=yes ;; #(
14580   *) :
14581     gcc_ccache=no ;;
14582 esac
14583   fi
14584
14585   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
14586     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
14587   fi
14588
14589   lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13"
14590   # Extract the first word of "lcov", so it can be a program name with args.
14591 set dummy lcov; ac_word=$2
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14593 printf %s "checking for $ac_word... " >&6; }
14594 if test ${ac_cv_prog_LCOV+y}
14595 then :
14596   printf %s "(cached) " >&6
14597 else $as_nop
14598   if test -n "$LCOV"; then
14599   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14600 else
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14603 do
14604   IFS=$as_save_IFS
14605   case $as_dir in #(((
14606     '') as_dir=./ ;;
14607     */) ;;
14608     *) as_dir=$as_dir/ ;;
14609   esac
14610     for ac_exec_ext in '' $ac_executable_extensions; do
14611   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14612     ac_cv_prog_LCOV="lcov"
14613     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14614     break 2
14615   fi
14616 done
14617   done
14618 IFS=$as_save_IFS
14619
14620 fi
14621 fi
14622 LCOV=$ac_cv_prog_LCOV
14623 if test -n "$LCOV"; then
14624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14625 printf "%s\n" "$LCOV" >&6; }
14626 else
14627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 printf "%s\n" "no" >&6; }
14629 fi
14630
14631
14632   # Extract the first word of "genhtml", so it can be a program name with args.
14633 set dummy genhtml; ac_word=$2
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14635 printf %s "checking for $ac_word... " >&6; }
14636 if test ${ac_cv_prog_GENHTML+y}
14637 then :
14638   printf %s "(cached) " >&6
14639 else $as_nop
14640   if test -n "$GENHTML"; then
14641   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14642 else
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14645 do
14646   IFS=$as_save_IFS
14647   case $as_dir in #(((
14648     '') as_dir=./ ;;
14649     */) ;;
14650     *) as_dir=$as_dir/ ;;
14651   esac
14652     for ac_exec_ext in '' $ac_executable_extensions; do
14653   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14654     ac_cv_prog_GENHTML="genhtml"
14655     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14656     break 2
14657   fi
14658 done
14659   done
14660 IFS=$as_save_IFS
14661
14662 fi
14663 fi
14664 GENHTML=$ac_cv_prog_GENHTML
14665 if test -n "$GENHTML"; then
14666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14667 printf "%s\n" "$GENHTML" >&6; }
14668 else
14669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 printf "%s\n" "no" >&6; }
14671 fi
14672
14673
14674
14675   if test "$LCOV"; then
14676     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14677 printf %s "checking for lcov version... " >&6; }
14678 if test ${glib_cv_lcov_version+y}
14679 then :
14680   printf %s "(cached) " >&6
14681 else $as_nop
14682
14683       glib_cv_lcov_version=invalid
14684       lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14685       for lcov_check_version in $lcov_version_list; do
14686         if test "$lcov_version" = "$lcov_check_version"; then
14687           glib_cv_lcov_version="$lcov_check_version (ok)"
14688         fi
14689       done
14690
14691 fi
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
14693 printf "%s\n" "$glib_cv_lcov_version" >&6; }
14694   else
14695     lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14696     as_fn_error $? "$lcov_msg" "$LINENO" 5
14697   fi
14698
14699   case $glib_cv_lcov_version in
14700     ""|invalid)
14701       lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14702       as_fn_error $? "$lcov_msg" "$LINENO" 5
14703       LCOV="exit 0;"
14704       ;;
14705   esac
14706
14707   if test -z "$GENHTML"; then
14708     as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14709   fi
14710
14711   # Remove all optimization flags from CFLAGS
14712
14713   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
14714   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-O[0-9]*//g'`
14715
14716
14717   # Add the special gcc flags
14718   COVERAGE_CFLAGS="--coverage -DDEBUG"
14719   COVERAGE_CXXFLAGS="--coverage -DDEBUG"
14720   COVERAGE_LDFLAGS="--coverage -lgcov"
14721
14722 fi
14723
14724
14725
14726 else
14727          if false; then
14728   HAVE_GCOV_TRUE=
14729   HAVE_GCOV_FALSE='#'
14730 else
14731   HAVE_GCOV_TRUE='#'
14732   HAVE_GCOV_FALSE=
14733 fi
14734
14735 fi
14736
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14738 printf %s "checking for inline... " >&6; }
14739 if test ${ac_cv_c_inline+y}
14740 then :
14741   printf %s "(cached) " >&6
14742 else $as_nop
14743   ac_cv_c_inline=no
14744 for ac_kw in inline __inline__ __inline; do
14745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h.  */
14747 #ifndef __cplusplus
14748 typedef int foo_t;
14749 static $ac_kw foo_t static_foo (void) {return 0; }
14750 $ac_kw foo_t foo (void) {return 0; }
14751 #endif
14752
14753 _ACEOF
14754 if ac_fn_c_try_compile "$LINENO"
14755 then :
14756   ac_cv_c_inline=$ac_kw
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14759   test "$ac_cv_c_inline" != no && break
14760 done
14761
14762 fi
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14764 printf "%s\n" "$ac_cv_c_inline" >&6; }
14765
14766 case $ac_cv_c_inline in
14767   inline | yes) ;;
14768   *)
14769     case $ac_cv_c_inline in
14770       no) ac_val=;;
14771       *) ac_val=$ac_cv_c_inline;;
14772     esac
14773     cat >>confdefs.h <<_ACEOF
14774 #ifndef __cplusplus
14775 #define inline $ac_val
14776 #endif
14777 _ACEOF
14778     ;;
14779 esac
14780
14781
14782 # We need to compile and run a program on the build machine.
14783 #   The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
14784 #   autoconf 2.57.
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
14786 printf %s "checking for cc for build... " >&6; }
14787 if test "$cross_compiling" = "yes"; then
14788   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
14789 else
14790   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
14791 fi
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14793 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14794
14795
14796
14797 # This is handy for debugging so the compiler doesn't rearrange
14798 # things and eliminate variables.
14799 # Check whether --enable-optimization was given.
14800 if test ${enable_optimization+y}
14801 then :
14802   enableval=$enable_optimization; if test $enableval = no ; then
14803                          CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
14804                        fi
14805 fi
14806
14807
14808 if test "$GCC" = yes; then
14809     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
14810
14811     if test "$USE_MAINTAINER_MODE" = "yes"; then
14812         CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
14813
14814         # We use -W only if -Wno-missing-field-initializers is supported.
14815         # -W is important because it detects errors like "if (foo);"
14816         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
14817 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
14818         _gcc_cflags_save=$CFLAGS
14819         CFLAGS="-Wno-missing-field-initializers"
14820         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h.  */
14822
14823 int
14824 main (void)
14825 {
14826
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_c_try_compile "$LINENO"
14832 then :
14833   _gcc_wopt=yes
14834 else $as_nop
14835   _gcc_wopt=no
14836 fi
14837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14838         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14839 printf "%s\n" "$_gcc_wopt" >&6; }
14840         CFLAGS=$_gcc_cflags_save;
14841         if test x"$_gcc_wopt" = xyes ; then
14842           CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
14843         fi
14844
14845         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
14846 printf %s "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
14847         _gcc_cflags_save=$CFLAGS
14848         CFLAGS="-Wdeclaration-after-statement"
14849         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h.  */
14851
14852 int
14853 main (void)
14854 {
14855
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 if ac_fn_c_try_compile "$LINENO"
14861 then :
14862   _gcc_wopt=yes
14863 else $as_nop
14864   _gcc_wopt=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14867         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14868 printf "%s\n" "$_gcc_wopt" >&6; }
14869         CFLAGS=$_gcc_cflags_save;
14870         if test x"$_gcc_wopt" = xyes ; then
14871           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14872         fi
14873     fi
14874
14875     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
14876 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
14877     _gcc_cflags_save=$CFLAGS
14878     CFLAGS="-Wpointer-arith"
14879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881
14882 int
14883 main (void)
14884 {
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 if ac_fn_c_try_compile "$LINENO"
14891 then :
14892   _gcc_wopt=yes
14893 else $as_nop
14894   _gcc_wopt=no
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14897     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14898 printf "%s\n" "$_gcc_wopt" >&6; }
14899     CFLAGS=$_gcc_cflags_save;
14900     if test x"$_gcc_wopt" = xyes ; then
14901        CFLAGS="$CFLAGS -Wpointer-arith"
14902     fi
14903
14904     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
14905 printf %s "checking if gcc supports -Wno-pointer-sign... " >&6; }
14906     _gcc_cflags_save=$CFLAGS
14907     CFLAGS="-Wno-pointer-sign"
14908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h.  */
14910
14911 int
14912 main (void)
14913 {
14914
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_compile "$LINENO"
14920 then :
14921   _gcc_psign=yes
14922 else $as_nop
14923   _gcc_psign=no
14924 fi
14925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14926     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
14927 printf "%s\n" "$_gcc_psign" >&6; }
14928     CFLAGS=$_gcc_cflags_save;
14929     if test x"$_gcc_psign" = xyes ; then
14930        CFLAGS="$CFLAGS -Wno-pointer-sign"
14931     fi
14932
14933 fi
14934
14935 # Setup some stuff depending on host.
14936 have_w32_system=no
14937 have_w32ce_system=no
14938 case "${host}" in
14939     *-*-mingw32ce*)
14940       have_w32_system=yes
14941       have_w32ce_system=yes
14942       ;;
14943     *-*-mingw32*)
14944       have_w32_system=yes
14945       ;;
14946      *-apple-darwin*)
14947
14948 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
14949
14950       ;;
14951     *)
14952       ;;
14953 esac
14954 if test "$have_w32_system" = yes; then
14955
14956 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14957
14958 fi
14959  if test "$have_w32_system" = yes; then
14960   HAVE_W32_SYSTEM_TRUE=
14961   HAVE_W32_SYSTEM_FALSE='#'
14962 else
14963   HAVE_W32_SYSTEM_TRUE='#'
14964   HAVE_W32_SYSTEM_FALSE=
14965 fi
14966
14967
14968
14969 # For some systems we know that we have ld_version scripts.
14970 # Use it then as default.
14971 have_ld_version_script=no
14972 case "${host}" in
14973     *-*-linux*)
14974         have_ld_version_script=yes
14975         ;;
14976     *-*-gnu*)
14977         have_ld_version_script=yes
14978         ;;
14979 esac
14980 # Check whether --enable-ld-version-script was given.
14981 if test ${enable_ld_version_script+y}
14982 then :
14983   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14984 else $as_nop
14985    :
14986 fi
14987
14988  if test "$have_ld_version_script" = "yes"; then
14989   HAVE_LD_VERSION_SCRIPT_TRUE=
14990   HAVE_LD_VERSION_SCRIPT_FALSE='#'
14991 else
14992   HAVE_LD_VERSION_SCRIPT_TRUE='#'
14993   HAVE_LD_VERSION_SCRIPT_FALSE=
14994 fi
14995
14996
14997 #
14998 # Specify how we support our local modification of libtool for Windows
14999 # 64-bit.  Options are:
15000 #
15001 # (1) apply: when appying patch fails, it results failure of entire build
15002 # (2) never: never apply the patch (no try)
15003 # (3) try: use patched if it goes well, use original if fails
15004 #
15005
15006 # Check whether --with-libtool-modification was given.
15007 if test ${with_libtool_modification+y}
15008 then :
15009   withval=$with_libtool_modification; build_libtool_modification=$withval
15010 else $as_nop
15011   build_libtool_modification=never
15012 fi
15013
15014
15015 #
15016 # Apply a patch (locally maintained one of ours) to libtool
15017 #
15018 case $host in
15019   x86_64-*mingw32*)
15020 ac_config_commands="$ac_config_commands libtool-patch"
15021
15022   ;;
15023   *)
15024   ;;
15025 esac
15026
15027 #
15028 # Check for ELF visibility support.
15029 #
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
15031 printf %s "checking whether the visibility attribute is supported... " >&6; }
15032 if test ${ksba_cv_visibility_attribute+y}
15033 then :
15034   printf %s "(cached) " >&6
15035 else $as_nop
15036   ksba_cv_visibility_attribute=no
15037         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h.  */
15039 int foo __attribute__ ((visibility ("hidden"))) = 1;
15040             int bar __attribute__ ((visibility ("protected"))) = 1;
15041
15042 _ACEOF
15043
15044         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15045                   1>&5 2>&5 ; then
15046             if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
15047                 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
15048                     ksba_cv_visibility_attribute=yes
15049                 fi
15050             fi
15051         fi
15052
15053 fi
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
15055 printf "%s\n" "$ksba_cv_visibility_attribute" >&6; }
15056 if test "$ksba_cv_visibility_attribute" = "yes"; then
15057     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
15058 printf %s "checking for broken visibility attribute... " >&6; }
15059 if test ${ksba_cv_broken_visibility_attribute+y}
15060 then :
15061   printf %s "(cached) " >&6
15062 else $as_nop
15063   ksba_cv_broken_visibility_attribute=yes
15064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h.  */
15066 int foo (int x);
15067             int bar (int x) __asm__ ("foo")
15068                             __attribute__ ((visibility ("hidden")));
15069             int bar (int x) { return x; }
15070
15071 _ACEOF
15072
15073         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15074                   1>&5 2>&5 ; then
15075            if grep '\.hidden[   _]foo' conftest.s >/dev/null 2>&1;
15076             then
15077                ksba_cv_broken_visibility_attribute=no
15078            fi
15079         fi
15080
15081 fi
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
15083 printf "%s\n" "$ksba_cv_broken_visibility_attribute" >&6; }
15084 fi
15085 if test "$ksba_cv_visibility_attribute" = "yes"; then
15086     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
15087 printf %s "checking for broken alias attribute... " >&6; }
15088 if test ${ksba_cv_broken_alias_attribute+y}
15089 then :
15090   printf %s "(cached) " >&6
15091 else $as_nop
15092   ksba_cv_broken_alias_attribute=yes
15093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h.  */
15095 extern int foo (int x) __asm ("xyzzy");
15096             int bar (int x) { return x; }
15097             extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
15098             extern int dfoo;
15099             extern __typeof (dfoo) dfoo __asm ("abccb");
15100             int dfoo = 1;
15101
15102 _ACEOF
15103
15104         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15105                   1>&5 2>&5 ; then
15106            if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
15107               grep 'abccb' conftest.s >/dev/null 2>&1; then
15108               ksba_cv_broken_alias_attribute=no
15109            fi
15110         fi
15111
15112 fi
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
15114 printf "%s\n" "$ksba_cv_broken_alias_attribute" >&6; }
15115 fi
15116 if test "$ksba_cv_visibility_attribute" = "yes"; then
15117     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
15118 printf %s "checking if gcc supports -fvisibility=hidden... " >&6; }
15119 if test ${ksba_cv_gcc_has_f_visibility+y}
15120 then :
15121   printf %s "(cached) " >&6
15122 else $as_nop
15123   ksba_cv_gcc_has_f_visibility=no
15124         _gcc_cflags_save=$CFLAGS
15125         CFLAGS="-fvisibility=hidden"
15126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h.  */
15128
15129 int
15130 main (void)
15131 {
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_c_try_compile "$LINENO"
15138 then :
15139   ksba_cv_gcc_has_f_visibility=yes
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15142         CFLAGS=$_gcc_cflags_save;
15143
15144 fi
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
15146 printf "%s\n" "$ksba_cv_gcc_has_f_visibility" >&6; }
15147 fi
15148 if test "$ksba_cv_visibility_attribute" = "yes" \
15149    && test "$ksba_cv_broken_visibility_attribute" != "yes" \
15150    && test "$ksba_cv_broken_alias_attribute" != "yes" \
15151    && test "$ksba_cv_gcc_has_f_visibility" = "yes"
15152  then
15153
15154 printf "%s\n" "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
15155
15156    CFLAGS="$CFLAGS -fvisibility=hidden"
15157 fi
15158
15159
15160 #
15161 # Checks for libraries.
15162 #
15163   gpg_error_config_prefix=""
15164
15165 # Check whether --with-libgpg-error-prefix was given.
15166 if test ${with_libgpg_error_prefix+y}
15167 then :
15168   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
15169 fi
15170
15171
15172
15173 # Check whether --with-gpg-error-prefix was given.
15174 if test ${with_gpg_error_prefix+y}
15175 then :
15176   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
15177 fi
15178
15179
15180   if test x"${GPG_ERROR_CONFIG}" = x ; then
15181      if test x"${gpg_error_config_prefix}" != x ; then
15182         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
15183      else
15184        case "${SYSROOT}" in
15185          /*)
15186            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
15187              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
15188            fi
15189            ;;
15190          '')
15191            ;;
15192           *)
15193            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
15194 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
15195            ;;
15196        esac
15197      fi
15198   fi
15199
15200   # Extract the first word of "gpg-error-config", so it can be a program name with args.
15201 set dummy gpg-error-config; ac_word=$2
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15203 printf %s "checking for $ac_word... " >&6; }
15204 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
15205 then :
15206   printf %s "(cached) " >&6
15207 else $as_nop
15208   case $GPG_ERROR_CONFIG in
15209   [\\/]* | ?:[\\/]*)
15210   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
15211   ;;
15212   *)
15213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15214 for as_dir in $PATH
15215 do
15216   IFS=$as_save_IFS
15217   case $as_dir in #(((
15218     '') as_dir=./ ;;
15219     */) ;;
15220     *) as_dir=$as_dir/ ;;
15221   esac
15222     for ac_exec_ext in '' $ac_executable_extensions; do
15223   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15224     ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
15225     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15226     break 2
15227   fi
15228 done
15229   done
15230 IFS=$as_save_IFS
15231
15232   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
15233   ;;
15234 esac
15235 fi
15236 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
15237 if test -n "$GPG_ERROR_CONFIG"; then
15238   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
15239 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
15240 else
15241   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 printf "%s\n" "no" >&6; }
15243 fi
15244
15245
15246
15247   # Extract the first word of "gpgrt-config", so it can be a program name with args.
15248 set dummy gpgrt-config; ac_word=$2
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15250 printf %s "checking for $ac_word... " >&6; }
15251 if test ${ac_cv_path_GPGRT_CONFIG+y}
15252 then :
15253   printf %s "(cached) " >&6
15254 else $as_nop
15255   case $GPGRT_CONFIG in
15256   [\\/]* | ?:[\\/]*)
15257   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
15258   ;;
15259   *)
15260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261 as_dummy="$prefix/bin:$PATH"
15262 for as_dir in $as_dummy
15263 do
15264   IFS=$as_save_IFS
15265   case $as_dir in #(((
15266     '') as_dir=./ ;;
15267     */) ;;
15268     *) as_dir=$as_dir/ ;;
15269   esac
15270     for ac_exec_ext in '' $ac_executable_extensions; do
15271   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15272     ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15273     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15274     break 2
15275   fi
15276 done
15277   done
15278 IFS=$as_save_IFS
15279
15280   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
15281   ;;
15282 esac
15283 fi
15284 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
15285 if test -n "$GPGRT_CONFIG"; then
15286   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
15287 printf "%s\n" "$GPGRT_CONFIG" >&6; }
15288 else
15289   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 printf "%s\n" "no" >&6; }
15291 fi
15292
15293
15294   if test "$GPGRT_CONFIG" != "no"; then
15295     # Determine gpgrt_libdir
15296     #
15297     # Get the prefix of gpgrt-config assuming it's something like:
15298     #   <PREFIX>/bin/gpgrt-config
15299     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
15300     possible_libdir1=${gpgrt_prefix}/lib
15301     # Determine by using system libdir-format with CC, it's like:
15302     #   Normal style: /usr/lib
15303     #   GNU cross style: /usr/<triplet>/lib
15304     #   Debian style: /usr/lib/<multiarch-name>
15305     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
15306     # It is assumed that CC is specified to the one of host on cross build.
15307     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
15308           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
15309 /g;p;}"); then
15310       # From the output of -print-search-dirs, select valid pkgconfig dirs.
15311       libdir_candidates=$(for dir in $libdir_candidates; do
15312         if p=$(cd $dir 2>/dev/null && pwd); then
15313           test -d "$p/pkgconfig" && echo $p;
15314         fi
15315       done)
15316
15317       for possible_libdir0 in $libdir_candidates; do
15318         # possible_libdir0:
15319         #   Fallback candidate, the one of system-installed (by $CC)
15320         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
15321         # possible_libdir1:
15322         #   Another candidate, user-locally-installed
15323         #   (<gpgrt_prefix>/lib)
15324         # possible_libdir2
15325         #   Most preferred
15326         #   (<gpgrt_prefix>/<triplet>/lib,
15327         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
15328         if test "${possible_libdir0##*/}" = "lib"; then
15329           possible_prefix0=${possible_libdir0%/lib}
15330           possible_prefix0_triplet=${possible_prefix0##*/}
15331           if test -z "$possible_prefix0_triplet"; then
15332             continue
15333           fi
15334           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
15335         else
15336           possible_prefix0=${possible_libdir0%%/lib*}
15337           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
15338         fi
15339         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
15340           gpgrt_libdir=${possible_libdir2}
15341         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
15342           gpgrt_libdir=${possible_libdir1}
15343         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
15344           gpgrt_libdir=${possible_libdir0}
15345         fi
15346         if test -n "$gpgrt_libdir"; then break; fi
15347       done
15348     fi
15349     if test -z "$gpgrt_libdir"; then
15350       # No valid pkgconfig dir in any of the system directories, fallback
15351       gpgrt_libdir=${possible_libdir1}
15352     fi
15353   else
15354     unset GPGRT_CONFIG
15355   fi
15356
15357   if test -n "$gpgrt_libdir"; then
15358     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
15359     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
15360       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
15361       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
15362 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
15363       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
15364     else
15365       gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15366       unset GPGRT_CONFIG
15367     fi
15368   elif test "$GPG_ERROR_CONFIG" != "no"; then
15369     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15370     unset GPGRT_CONFIG
15371   fi
15372
15373   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
15374   ok=no
15375   if test "$GPG_ERROR_CONFIG" != "no"; then
15376     req_major=`echo $min_gpg_error_version | \
15377                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
15378     req_minor=`echo $min_gpg_error_version | \
15379                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
15380     major=`echo $gpg_error_config_version | \
15381                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
15382     minor=`echo $gpg_error_config_version | \
15383                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
15384     if test "$major" -gt "$req_major"; then
15385         ok=yes
15386     else
15387         if test "$major" -eq "$req_major"; then
15388             if test "$minor" -ge "$req_minor"; then
15389                ok=yes
15390             fi
15391         fi
15392     fi
15393   fi
15394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
15395 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
15396   if test $ok = yes; then
15397     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
15398     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
15399     if test -z "$GPGRT_CONFIG"; then
15400       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
15401       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
15402     else
15403       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
15404       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
15405       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
15406       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
15407     fi
15408     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
15409 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
15410     :
15411     if test -z "$GPGRT_CONFIG"; then
15412       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
15413     else
15414       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
15415     fi
15416     if test x"$gpg_error_config_host" != xnone ; then
15417       if test x"$gpg_error_config_host" != x"$host" ; then
15418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15419 ***
15420 *** The config script \"$GPG_ERROR_CONFIG\" was
15421 *** built for $gpg_error_config_host and thus may not match the
15422 *** used host $host.
15423 *** You may want to use the configure option --with-libgpg-error-prefix
15424 *** to specify a matching config script or use \$SYSROOT.
15425 ***" >&5
15426 printf "%s\n" "$as_me: WARNING:
15427 ***
15428 *** The config script \"$GPG_ERROR_CONFIG\" was
15429 *** built for $gpg_error_config_host and thus may not match the
15430 *** used host $host.
15431 *** You may want to use the configure option --with-libgpg-error-prefix
15432 *** to specify a matching config script or use \$SYSROOT.
15433 ***" >&2;}
15434         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
15435       fi
15436     fi
15437   else
15438     GPG_ERROR_CFLAGS=""
15439     GPG_ERROR_LIBS=""
15440     GPG_ERROR_MT_CFLAGS=""
15441     GPG_ERROR_MT_LIBS=""
15442     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 printf "%s\n" "no" >&6; }
15444     :
15445   fi
15446
15447
15448
15449
15450
15451 if test "x$GPG_ERROR_LIBS" = "x"; then
15452   as_fn_error $? "libgpg-error is needed.
15453                 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
15454 fi
15455
15456
15457 printf "%s\n" "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
15458
15459
15460  if test -n "$GPGRT_CONFIG" \
15461                                   -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
15462   USE_GPGRT_CONFIG_TRUE=
15463   USE_GPGRT_CONFIG_FALSE='#'
15464 else
15465   USE_GPGRT_CONFIG_TRUE='#'
15466   USE_GPGRT_CONFIG_FALSE=
15467 fi
15468
15469
15470 # Checks for header files.
15471
15472 # Checks for typedefs, structures, and compiler characteristics.
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15474 printf %s "checking for an ANSI C-conforming const... " >&6; }
15475 if test ${ac_cv_c_const+y}
15476 then :
15477   printf %s "(cached) " >&6
15478 else $as_nop
15479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h.  */
15481
15482 int
15483 main (void)
15484 {
15485
15486 #ifndef __cplusplus
15487   /* Ultrix mips cc rejects this sort of thing.  */
15488   typedef int charset[2];
15489   const charset cs = { 0, 0 };
15490   /* SunOS 4.1.1 cc rejects this.  */
15491   char const *const *pcpcc;
15492   char **ppc;
15493   /* NEC SVR4.0.2 mips cc rejects this.  */
15494   struct point {int x, y;};
15495   static struct point const zero = {0,0};
15496   /* IBM XL C 1.02.0.0 rejects this.
15497      It does not let you subtract one const X* pointer from another in
15498      an arm of an if-expression whose if-part is not a constant
15499      expression */
15500   const char *g = "string";
15501   pcpcc = &g + (g ? g-g : 0);
15502   /* HPUX 7.0 cc rejects these. */
15503   ++pcpcc;
15504   ppc = (char**) pcpcc;
15505   pcpcc = (char const *const *) ppc;
15506   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15507     char tx;
15508     char *t = &tx;
15509     char const *s = 0 ? (char *) 0 : (char const *) 0;
15510
15511     *t++ = 0;
15512     if (s) return 0;
15513   }
15514   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15515     int x[] = {25, 17};
15516     const int *foo = &x[0];
15517     ++foo;
15518   }
15519   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15520     typedef const int *iptr;
15521     iptr p = 0;
15522     ++p;
15523   }
15524   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15525        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15526     struct s { int j; const int *ap[3]; } bx;
15527     struct s *b = &bx; b->j = 5;
15528   }
15529   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15530     const int foo = 10;
15531     if (!foo) return 0;
15532   }
15533   return !cs[0] && !zero.x;
15534 #endif
15535
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 if ac_fn_c_try_compile "$LINENO"
15541 then :
15542   ac_cv_c_const=yes
15543 else $as_nop
15544   ac_cv_c_const=no
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15547 fi
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15549 printf "%s\n" "$ac_cv_c_const" >&6; }
15550 if test $ac_cv_c_const = no; then
15551
15552 printf "%s\n" "#define const /**/" >>confdefs.h
15553
15554 fi
15555
15556
15557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15558 printf %s "checking whether byte ordering is bigendian... " >&6; }
15559 if test ${ac_cv_c_bigendian+y}
15560 then :
15561   printf %s "(cached) " >&6
15562 else $as_nop
15563   ac_cv_c_bigendian=unknown
15564     # See if we're dealing with a universal compiler.
15565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h.  */
15567 #ifndef __APPLE_CC__
15568                not a universal capable compiler
15569              #endif
15570              typedef int dummy;
15571
15572 _ACEOF
15573 if ac_fn_c_try_compile "$LINENO"
15574 then :
15575
15576         # Check for potential -arch flags.  It is not universal unless
15577         # there are at least two -arch flags with different values.
15578         ac_arch=
15579         ac_prev=
15580         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15581          if test -n "$ac_prev"; then
15582            case $ac_word in
15583              i?86 | x86_64 | ppc | ppc64)
15584                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15585                  ac_arch=$ac_word
15586                else
15587                  ac_cv_c_bigendian=universal
15588                  break
15589                fi
15590                ;;
15591            esac
15592            ac_prev=
15593          elif test "x$ac_word" = "x-arch"; then
15594            ac_prev=arch
15595          fi
15596        done
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15599     if test $ac_cv_c_bigendian = unknown; then
15600       # See if sys/param.h defines the BYTE_ORDER macro.
15601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h.  */
15603 #include <sys/types.h>
15604              #include <sys/param.h>
15605
15606 int
15607 main (void)
15608 {
15609 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15610                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15611                      && LITTLE_ENDIAN)
15612               bogus endian macros
15613              #endif
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"
15620 then :
15621   # It does; now see whether it defined to BIG_ENDIAN or not.
15622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h.  */
15624 #include <sys/types.h>
15625                 #include <sys/param.h>
15626
15627 int
15628 main (void)
15629 {
15630 #if BYTE_ORDER != BIG_ENDIAN
15631                  not big endian
15632                 #endif
15633
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 if ac_fn_c_try_compile "$LINENO"
15639 then :
15640   ac_cv_c_bigendian=yes
15641 else $as_nop
15642   ac_cv_c_bigendian=no
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15647     fi
15648     if test $ac_cv_c_bigendian = unknown; then
15649       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h.  */
15652 #include <limits.h>
15653
15654 int
15655 main (void)
15656 {
15657 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15658               bogus endian macros
15659              #endif
15660
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_compile "$LINENO"
15666 then :
15667   # It does; now see whether it defined to _BIG_ENDIAN or not.
15668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h.  */
15670 #include <limits.h>
15671
15672 int
15673 main (void)
15674 {
15675 #ifndef _BIG_ENDIAN
15676                  not big endian
15677                 #endif
15678
15679   ;
15680   return 0;
15681 }
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"
15684 then :
15685   ac_cv_c_bigendian=yes
15686 else $as_nop
15687   ac_cv_c_bigendian=no
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15692     fi
15693     if test $ac_cv_c_bigendian = unknown; then
15694       # Compile a test program.
15695       if test "$cross_compiling" = yes
15696 then :
15697   # Try to guess by grepping values from an object file.
15698          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h.  */
15700 unsigned short int ascii_mm[] =
15701                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15702                 unsigned short int ascii_ii[] =
15703                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15704                 int use_ascii (int i) {
15705                   return ascii_mm[i] + ascii_ii[i];
15706                 }
15707                 unsigned short int ebcdic_ii[] =
15708                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15709                 unsigned short int ebcdic_mm[] =
15710                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15711                 int use_ebcdic (int i) {
15712                   return ebcdic_mm[i] + ebcdic_ii[i];
15713                 }
15714                 extern int foo;
15715
15716 int
15717 main (void)
15718 {
15719 return use_ascii (foo) == use_ebcdic (foo);
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_compile "$LINENO"
15725 then :
15726   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15727               ac_cv_c_bigendian=yes
15728             fi
15729             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15730               if test "$ac_cv_c_bigendian" = unknown; then
15731                 ac_cv_c_bigendian=no
15732               else
15733                 # finding both strings is unlikely to happen, but who knows?
15734                 ac_cv_c_bigendian=unknown
15735               fi
15736             fi
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15739 else $as_nop
15740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h.  */
15742 $ac_includes_default
15743 int
15744 main (void)
15745 {
15746
15747              /* Are we little or big endian?  From Harbison&Steele.  */
15748              union
15749              {
15750                long int l;
15751                char c[sizeof (long int)];
15752              } u;
15753              u.l = 1;
15754              return u.c[sizeof (long int) - 1] == 1;
15755
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_run "$LINENO"
15761 then :
15762   ac_cv_c_bigendian=no
15763 else $as_nop
15764   ac_cv_c_bigendian=yes
15765 fi
15766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15767   conftest.$ac_objext conftest.beam conftest.$ac_ext
15768 fi
15769
15770     fi
15771 fi
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15773 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
15774  case $ac_cv_c_bigendian in #(
15775    yes)
15776      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
15777 ;; #(
15778    no)
15779       ;; #(
15780    universal)
15781
15782 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15783
15784      ;; #(
15785    *)
15786      as_fn_error $? "unknown endianness
15787  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15788  esac
15789
15790
15791 # The cast to long int works around a bug in the HP C Compiler
15792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15794 # This bug is HP SR number 8606223364.
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15796 printf %s "checking size of unsigned int... " >&6; }
15797 if test ${ac_cv_sizeof_unsigned_int+y}
15798 then :
15799   printf %s "(cached) " >&6
15800 else $as_nop
15801   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"
15802 then :
15803
15804 else $as_nop
15805   if test "$ac_cv_type_unsigned_int" = yes; then
15806      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15808 as_fn_error 77 "cannot compute sizeof (unsigned int)
15809 See \`config.log' for more details" "$LINENO" 5; }
15810    else
15811      ac_cv_sizeof_unsigned_int=0
15812    fi
15813 fi
15814
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15817 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15818
15819
15820
15821 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15822
15823
15824 # The cast to long int works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15829 printf %s "checking size of unsigned long... " >&6; }
15830 if test ${ac_cv_sizeof_unsigned_long+y}
15831 then :
15832   printf %s "(cached) " >&6
15833 else $as_nop
15834   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
15835 then :
15836
15837 else $as_nop
15838   if test "$ac_cv_type_unsigned_long" = yes; then
15839      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15840 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15841 as_fn_error 77 "cannot compute sizeof (unsigned long)
15842 See \`config.log' for more details" "$LINENO" 5; }
15843    else
15844      ac_cv_sizeof_unsigned_long=0
15845    fi
15846 fi
15847
15848 fi
15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15850 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15851
15852
15853
15854 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15855
15856
15857 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
15858 if test "x$ac_cv_type_u32" = xyes
15859 then :
15860
15861 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
15862
15863
15864 fi
15865
15866
15867
15868 # Checks for library functions.
15869 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
15870 if test "x$ac_cv_func_stpcpy" = xyes
15871 then :
15872   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
15873
15874 fi
15875 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15876 if test "x$ac_cv_func_gmtime_r" = xyes
15877 then :
15878   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15879
15880 fi
15881 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
15882 if test "x$ac_cv_func_getenv" = xyes
15883 then :
15884   printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
15885
15886 fi
15887
15888
15889
15890 # GNUlib checks
15891
15892
15893
15894 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15895 if test "x$ac_cv_type_size_t" = xyes
15896 then :
15897
15898 else $as_nop
15899
15900 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15901
15902 fi
15903
15904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15905 # for constant arguments.  Useless!
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15907 printf %s "checking for working alloca.h... " >&6; }
15908 if test ${ac_cv_working_alloca_h+y}
15909 then :
15910   printf %s "(cached) " >&6
15911 else $as_nop
15912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h.  */
15914 #include <alloca.h>
15915 int
15916 main (void)
15917 {
15918 char *p = (char *) alloca (2 * sizeof (int));
15919                           if (p) return 0;
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"
15925 then :
15926   ac_cv_working_alloca_h=yes
15927 else $as_nop
15928   ac_cv_working_alloca_h=no
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15931     conftest$ac_exeext conftest.$ac_ext
15932 fi
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15934 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15935 if test $ac_cv_working_alloca_h = yes; then
15936
15937 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15938
15939 fi
15940
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15942 printf %s "checking for alloca... " >&6; }
15943 if test ${ac_cv_func_alloca_works+y}
15944 then :
15945   printf %s "(cached) " >&6
15946 else $as_nop
15947   if test $ac_cv_working_alloca_h = yes; then
15948   ac_cv_func_alloca_works=yes
15949 else
15950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h.  */
15952 #include <stdlib.h>
15953 #include <stddef.h>
15954 #ifndef alloca
15955 # ifdef __GNUC__
15956 #  define alloca __builtin_alloca
15957 # elif defined _MSC_VER
15958 #  include <malloc.h>
15959 #  define alloca _alloca
15960 # else
15961 #  ifdef  __cplusplus
15962 extern "C"
15963 #  endif
15964 void *alloca (size_t);
15965 # endif
15966 #endif
15967
15968 int
15969 main (void)
15970 {
15971 char *p = (char *) alloca (1);
15972                                     if (p) return 0;
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_link "$LINENO"
15978 then :
15979   ac_cv_func_alloca_works=yes
15980 else $as_nop
15981   ac_cv_func_alloca_works=no
15982 fi
15983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15984     conftest$ac_exeext conftest.$ac_ext
15985 fi
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15987 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15988 fi
15989
15990 if test $ac_cv_func_alloca_works = yes; then
15991
15992 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15993
15994 else
15995   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15996 # that cause trouble.  Some versions do not even contain alloca or
15997 # contain a buggy version.  If you still want to use their alloca,
15998 # use ar to extract alloca.o from them instead of compiling alloca.c.
15999
16000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16001
16002 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16003
16004
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16006 printf %s "checking stack direction for C alloca... " >&6; }
16007 if test ${ac_cv_c_stack_direction+y}
16008 then :
16009   printf %s "(cached) " >&6
16010 else $as_nop
16011   if test "$cross_compiling" = yes
16012 then :
16013   ac_cv_c_stack_direction=0
16014 else $as_nop
16015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017 $ac_includes_default
16018 int
16019 find_stack_direction (int *addr, int depth)
16020 {
16021   int dir, dummy = 0;
16022   if (! addr)
16023     addr = &dummy;
16024   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16025   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16026   return dir + dummy;
16027 }
16028
16029 int
16030 main (int argc, char **argv)
16031 {
16032   return find_stack_direction (0, argc + !argv + 20) < 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_run "$LINENO"
16036 then :
16037   ac_cv_c_stack_direction=1
16038 else $as_nop
16039   ac_cv_c_stack_direction=-1
16040 fi
16041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16042   conftest.$ac_objext conftest.beam conftest.$ac_ext
16043 fi
16044
16045 fi
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16047 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16048 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16049
16050
16051 fi
16052
16053
16054
16055 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
16056
16057
16058
16059
16060
16061
16062   if test $ac_cv_func_alloca_works = no; then
16063     :
16064   fi
16065
16066   # Define an additional variable used in the Makefile substitution.
16067   if test $ac_cv_working_alloca_h = yes; then
16068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h.  */
16070
16071 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16072         Need own alloca
16073 #endif
16074
16075 _ACEOF
16076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16077   $EGREP "Need own alloca" >/dev/null 2>&1
16078 then :
16079
16080 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16081
16082        ALLOCA_H=alloca.h
16083 else $as_nop
16084   ALLOCA_H=
16085 fi
16086 rm -rf conftest*
16087
16088   else
16089     ALLOCA_H=alloca.h
16090   fi
16091
16092
16093
16094 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16095
16096
16097
16098   # Check whether --enable-valgrind-tests was given.
16099 if test ${enable_valgrind_tests+y}
16100 then :
16101   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
16102 else $as_nop
16103   opt_valgrind_tests=yes
16104 fi
16105
16106
16107   # Run self-tests under valgrind?
16108   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
16109     for ac_prog in valgrind
16110 do
16111   # Extract the first word of "$ac_prog", so it can be a program name with args.
16112 set dummy $ac_prog; ac_word=$2
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 printf %s "checking for $ac_word... " >&6; }
16115 if test ${ac_cv_prog_VALGRIND+y}
16116 then :
16117   printf %s "(cached) " >&6
16118 else $as_nop
16119   if test -n "$VALGRIND"; then
16120   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
16121 else
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125   IFS=$as_save_IFS
16126   case $as_dir in #(((
16127     '') as_dir=./ ;;
16128     */) ;;
16129     *) as_dir=$as_dir/ ;;
16130   esac
16131     for ac_exec_ext in '' $ac_executable_extensions; do
16132   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16133     ac_cv_prog_VALGRIND="$ac_prog"
16134     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16135     break 2
16136   fi
16137 done
16138   done
16139 IFS=$as_save_IFS
16140
16141 fi
16142 fi
16143 VALGRIND=$ac_cv_prog_VALGRIND
16144 if test -n "$VALGRIND"; then
16145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
16146 printf "%s\n" "$VALGRIND" >&6; }
16147 else
16148   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 printf "%s\n" "no" >&6; }
16150 fi
16151
16152
16153   test -n "$VALGRIND" && break
16154 done
16155
16156   fi
16157
16158   OPTS="-q --error-exitcode=1 --leak-check=full"
16159
16160   if test -n "$VALGRIND" \
16161      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
16162     opt_valgrind_tests=yes
16163     VALGRIND="$VALGRIND $OPTS"
16164   else
16165     opt_valgrind_tests=no
16166     VALGRIND=
16167   fi
16168
16169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
16170 printf %s "checking whether self tests are run under valgrind... " >&6; }
16171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
16172 printf "%s\n" "$opt_valgrind_tests" >&6; }
16173
16174
16175
16176 # To be used in ksba-config
16177 KSBA_CONFIG_LIBS="-lksba"
16178 KSBA_CONFIG_CFLAGS=""
16179 KSBA_CONFIG_HOST="$host"
16180
16181
16182
16183
16184
16185 # The Makefiles need to know about cross compiling
16186  if test x$cross_compiling != xno; then
16187   CROSS_COMPILING_TRUE=
16188   CROSS_COMPILING_FALSE='#'
16189 else
16190   CROSS_COMPILING_TRUE='#'
16191   CROSS_COMPILING_FALSE=
16192 fi
16193
16194
16195
16196 # Generate extended version information for W32.
16197 if test "$have_w32_system" = yes; then
16198       BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
16199       BUILD_FILEVERSION="${BUILD_FILEVERSION}31550"
16200 fi
16201
16202
16203 BUILD_REVISION="7b3e478"
16204
16205
16206 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
16207
16208
16209 # Check whether --enable-build-timestamp was given.
16210 if test ${enable_build_timestamp+y}
16211 then :
16212   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16213         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16214       else
16215         BUILD_TIMESTAMP="$enableval"
16216       fi
16217 else $as_nop
16218   BUILD_TIMESTAMP="<none>"
16219 fi
16220
16221
16222
16223 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
16224
16225
16226 build_doc=yes
16227 # Check whether --enable-doc was given.
16228 if test ${enable_doc+y}
16229 then :
16230   enableval=$enable_doc; build_doc=$enableval
16231 else $as_nop
16232   build_doc=yes
16233 fi
16234
16235  if test "x$build_doc" != xno; then
16236   BUILD_DOC_TRUE=
16237   BUILD_DOC_FALSE='#'
16238 else
16239   BUILD_DOC_TRUE='#'
16240   BUILD_DOC_FALSE=
16241 fi
16242
16243
16244
16245 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba.h src/ksba-config src/ksba.pc src/versioninfo.rc tests/Makefile doc/Makefile"
16246
16247 cat >confcache <<\_ACEOF
16248 # This file is a shell script that caches the results of configure
16249 # tests run on this system so they can be shared between configure
16250 # scripts and configure runs, see configure's option --config-cache.
16251 # It is not useful on other systems.  If it contains results you don't
16252 # want to keep, you may remove or edit it.
16253 #
16254 # config.status only pays attention to the cache file if you give it
16255 # the --recheck option to rerun configure.
16256 #
16257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16259 # following values.
16260
16261 _ACEOF
16262
16263 # The following way of writing the cache mishandles newlines in values,
16264 # but we know of no workaround that is simple, portable, and efficient.
16265 # So, we kill variables containing newlines.
16266 # Ultrix sh set writes to stderr and can't be redirected directly,
16267 # and sets the high bit in the cache file unless we assign to the vars.
16268 (
16269   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16270     eval ac_val=\$$ac_var
16271     case $ac_val in #(
16272     *${as_nl}*)
16273       case $ac_var in #(
16274       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16275 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16276       esac
16277       case $ac_var in #(
16278       _ | IFS | as_nl) ;; #(
16279       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16280       *) { eval $ac_var=; unset $ac_var;} ;;
16281       esac ;;
16282     esac
16283   done
16284
16285   (set) 2>&1 |
16286     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16287     *${as_nl}ac_space=\ *)
16288       # `set' does not quote correctly, so add quotes: double-quote
16289       # substitution turns \\\\ into \\, and sed turns \\ into \.
16290       sed -n \
16291         "s/'/'\\\\''/g;
16292           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16293       ;; #(
16294     *)
16295       # `set' quotes correctly as required by POSIX, so do not add quotes.
16296       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16297       ;;
16298     esac |
16299     sort
16300 ) |
16301   sed '
16302      /^ac_cv_env_/b end
16303      t clear
16304      :clear
16305      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16306      t end
16307      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16308      :end' >>confcache
16309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16310   if test -w "$cache_file"; then
16311     if test "x$cache_file" != "x/dev/null"; then
16312       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16313 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16314       if test ! -f "$cache_file" || test -h "$cache_file"; then
16315         cat confcache >"$cache_file"
16316       else
16317         case $cache_file in #(
16318         */* | ?:*)
16319           mv -f confcache "$cache_file"$$ &&
16320           mv -f "$cache_file"$$ "$cache_file" ;; #(
16321         *)
16322           mv -f confcache "$cache_file" ;;
16323         esac
16324       fi
16325     fi
16326   else
16327     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16328 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16329   fi
16330 fi
16331 rm -f confcache
16332
16333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16334 # Let make expand exec_prefix.
16335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16336
16337 DEFS=-DHAVE_CONFIG_H
16338
16339 ac_libobjs=
16340 ac_ltlibobjs=
16341 U=
16342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16343   # 1. Remove the extension, and $U if already installed.
16344   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16345   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16346   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16347   #    will be set to the directory where LIBOBJS objects are built.
16348   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16349   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16350 done
16351 LIBOBJS=$ac_libobjs
16352
16353 LTLIBOBJS=$ac_ltlibobjs
16354
16355
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16357 printf %s "checking that generated files are newer than configure... " >&6; }
16358    if test -n "$am_sleep_pid"; then
16359      # Hide warnings about reused PIDs.
16360      wait $am_sleep_pid 2>/dev/null
16361    fi
16362    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16363 printf "%s\n" "done" >&6; }
16364  if test -n "$EXEEXT"; then
16365   am__EXEEXT_TRUE=
16366   am__EXEEXT_FALSE='#'
16367 else
16368   am__EXEEXT_TRUE='#'
16369   am__EXEEXT_FALSE=
16370 fi
16371
16372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16373   as_fn_error $? "conditional \"AMDEP\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375 fi
16376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16377   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16381   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16385   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 fi
16388 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
16389   as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391 fi
16392 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
16393   as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 fi
16396 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16397   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 fi
16400 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16401   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 fi
16404 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
16405   as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407 fi
16408
16409 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16410   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 fi
16413 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16414   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 fi
16417
16418 : "${CONFIG_STATUS=./config.status}"
16419 ac_write_fail=0
16420 ac_clean_files_save=$ac_clean_files
16421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16423 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16424 as_write_fail=0
16425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16426 #! $SHELL
16427 # Generated by $as_me.
16428 # Run this file to recreate the current configuration.
16429 # Compiler output produced by configure, useful for debugging
16430 # configure, is in config.log if it exists.
16431
16432 debug=false
16433 ac_cs_recheck=false
16434 ac_cs_silent=false
16435
16436 SHELL=\${CONFIG_SHELL-$SHELL}
16437 export SHELL
16438 _ASEOF
16439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16440 ## -------------------- ##
16441 ## M4sh Initialization. ##
16442 ## -------------------- ##
16443
16444 # Be more Bourne compatible
16445 DUALCASE=1; export DUALCASE # for MKS sh
16446 as_nop=:
16447 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16448 then :
16449   emulate sh
16450   NULLCMD=:
16451   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16452   # is contrary to our usage.  Disable this feature.
16453   alias -g '${1+"$@"}'='"$@"'
16454   setopt NO_GLOB_SUBST
16455 else $as_nop
16456   case `(set -o) 2>/dev/null` in #(
16457   *posix*) :
16458     set -o posix ;; #(
16459   *) :
16460      ;;
16461 esac
16462 fi
16463
16464
16465
16466 # Reset variables that may have inherited troublesome values from
16467 # the environment.
16468
16469 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16470 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16471 # side effect of setting IFS to empty, thus disabling word splitting.)
16472 # Quoting is to prevent editors from complaining about space-tab.
16473 as_nl='
16474 '
16475 export as_nl
16476 IFS=" ""        $as_nl"
16477
16478 PS1='$ '
16479 PS2='> '
16480 PS4='+ '
16481
16482 # Ensure predictable behavior from utilities with locale-dependent output.
16483 LC_ALL=C
16484 export LC_ALL
16485 LANGUAGE=C
16486 export LANGUAGE
16487
16488 # We cannot yet rely on "unset" to work, but we need these variables
16489 # to be unset--not just set to an empty or harmless value--now, to
16490 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16491 # also avoids known problems related to "unset" and subshell syntax
16492 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16493 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16494 do eval test \${$as_var+y} \
16495   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16496 done
16497
16498 # Ensure that fds 0, 1, and 2 are open.
16499 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16500 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16501 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16502
16503 # The user is always right.
16504 if ${PATH_SEPARATOR+false} :; then
16505   PATH_SEPARATOR=:
16506   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16507     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16508       PATH_SEPARATOR=';'
16509   }
16510 fi
16511
16512
16513 # Find who we are.  Look in the path if we contain no directory separator.
16514 as_myself=
16515 case $0 in #((
16516   *[\\/]* ) as_myself=$0 ;;
16517   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16518 for as_dir in $PATH
16519 do
16520   IFS=$as_save_IFS
16521   case $as_dir in #(((
16522     '') as_dir=./ ;;
16523     */) ;;
16524     *) as_dir=$as_dir/ ;;
16525   esac
16526     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16527   done
16528 IFS=$as_save_IFS
16529
16530      ;;
16531 esac
16532 # We did not find ourselves, most probably we were run as `sh COMMAND'
16533 # in which case we are not to be found in the path.
16534 if test "x$as_myself" = x; then
16535   as_myself=$0
16536 fi
16537 if test ! -f "$as_myself"; then
16538   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16539   exit 1
16540 fi
16541
16542
16543
16544 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16545 # ----------------------------------------
16546 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16547 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16548 # script with STATUS, using 1 if that was 0.
16549 as_fn_error ()
16550 {
16551   as_status=$1; test $as_status -eq 0 && as_status=1
16552   if test "$4"; then
16553     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16554     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16555   fi
16556   printf "%s\n" "$as_me: error: $2" >&2
16557   as_fn_exit $as_status
16558 } # as_fn_error
16559
16560
16561
16562 # as_fn_set_status STATUS
16563 # -----------------------
16564 # Set $? to STATUS, without forking.
16565 as_fn_set_status ()
16566 {
16567   return $1
16568 } # as_fn_set_status
16569
16570 # as_fn_exit STATUS
16571 # -----------------
16572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16573 as_fn_exit ()
16574 {
16575   set +e
16576   as_fn_set_status $1
16577   exit $1
16578 } # as_fn_exit
16579
16580 # as_fn_unset VAR
16581 # ---------------
16582 # Portably unset VAR.
16583 as_fn_unset ()
16584 {
16585   { eval $1=; unset $1;}
16586 }
16587 as_unset=as_fn_unset
16588
16589 # as_fn_append VAR VALUE
16590 # ----------------------
16591 # Append the text in VALUE to the end of the definition contained in VAR. Take
16592 # advantage of any shell optimizations that allow amortized linear growth over
16593 # repeated appends, instead of the typical quadratic growth present in naive
16594 # implementations.
16595 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16596 then :
16597   eval 'as_fn_append ()
16598   {
16599     eval $1+=\$2
16600   }'
16601 else $as_nop
16602   as_fn_append ()
16603   {
16604     eval $1=\$$1\$2
16605   }
16606 fi # as_fn_append
16607
16608 # as_fn_arith ARG...
16609 # ------------------
16610 # Perform arithmetic evaluation on the ARGs, and store the result in the
16611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16612 # must be portable across $(()) and expr.
16613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16614 then :
16615   eval 'as_fn_arith ()
16616   {
16617     as_val=$(( $* ))
16618   }'
16619 else $as_nop
16620   as_fn_arith ()
16621   {
16622     as_val=`expr "$@" || test $? -eq 1`
16623   }
16624 fi # as_fn_arith
16625
16626
16627 if expr a : '\(a\)' >/dev/null 2>&1 &&
16628    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16629   as_expr=expr
16630 else
16631   as_expr=false
16632 fi
16633
16634 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16635   as_basename=basename
16636 else
16637   as_basename=false
16638 fi
16639
16640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16641   as_dirname=dirname
16642 else
16643   as_dirname=false
16644 fi
16645
16646 as_me=`$as_basename -- "$0" ||
16647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16648          X"$0" : 'X\(//\)$' \| \
16649          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16650 printf "%s\n" X/"$0" |
16651     sed '/^.*\/\([^/][^/]*\)\/*$/{
16652             s//\1/
16653             q
16654           }
16655           /^X\/\(\/\/\)$/{
16656             s//\1/
16657             q
16658           }
16659           /^X\/\(\/\).*/{
16660             s//\1/
16661             q
16662           }
16663           s/.*/./; q'`
16664
16665 # Avoid depending upon Character Ranges.
16666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16669 as_cr_digits='0123456789'
16670 as_cr_alnum=$as_cr_Letters$as_cr_digits
16671
16672
16673 # Determine whether it's possible to make 'echo' print without a newline.
16674 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16675 # for compatibility with existing Makefiles.
16676 ECHO_C= ECHO_N= ECHO_T=
16677 case `echo -n x` in #(((((
16678 -n*)
16679   case `echo 'xy\c'` in
16680   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16681   xy)  ECHO_C='\c';;
16682   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16683        ECHO_T=' ';;
16684   esac;;
16685 *)
16686   ECHO_N='-n';;
16687 esac
16688
16689 # For backward compatibility with old third-party macros, we provide
16690 # the shell variables $as_echo and $as_echo_n.  New code should use
16691 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16692 as_echo='printf %s\n'
16693 as_echo_n='printf %s'
16694
16695 rm -f conf$$ conf$$.exe conf$$.file
16696 if test -d conf$$.dir; then
16697   rm -f conf$$.dir/conf$$.file
16698 else
16699   rm -f conf$$.dir
16700   mkdir conf$$.dir 2>/dev/null
16701 fi
16702 if (echo >conf$$.file) 2>/dev/null; then
16703   if ln -s conf$$.file conf$$ 2>/dev/null; then
16704     as_ln_s='ln -s'
16705     # ... but there are two gotchas:
16706     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16707     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16708     # In both cases, we have to default to `cp -pR'.
16709     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16710       as_ln_s='cp -pR'
16711   elif ln conf$$.file conf$$ 2>/dev/null; then
16712     as_ln_s=ln
16713   else
16714     as_ln_s='cp -pR'
16715   fi
16716 else
16717   as_ln_s='cp -pR'
16718 fi
16719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16720 rmdir conf$$.dir 2>/dev/null
16721
16722
16723 # as_fn_mkdir_p
16724 # -------------
16725 # Create "$as_dir" as a directory, including parents if necessary.
16726 as_fn_mkdir_p ()
16727 {
16728
16729   case $as_dir in #(
16730   -*) as_dir=./$as_dir;;
16731   esac
16732   test -d "$as_dir" || eval $as_mkdir_p || {
16733     as_dirs=
16734     while :; do
16735       case $as_dir in #(
16736       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16737       *) as_qdir=$as_dir;;
16738       esac
16739       as_dirs="'$as_qdir' $as_dirs"
16740       as_dir=`$as_dirname -- "$as_dir" ||
16741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742          X"$as_dir" : 'X\(//\)[^/]' \| \
16743          X"$as_dir" : 'X\(//\)$' \| \
16744          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16745 printf "%s\n" X"$as_dir" |
16746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16747             s//\1/
16748             q
16749           }
16750           /^X\(\/\/\)[^/].*/{
16751             s//\1/
16752             q
16753           }
16754           /^X\(\/\/\)$/{
16755             s//\1/
16756             q
16757           }
16758           /^X\(\/\).*/{
16759             s//\1/
16760             q
16761           }
16762           s/.*/./; q'`
16763       test -d "$as_dir" && break
16764     done
16765     test -z "$as_dirs" || eval "mkdir $as_dirs"
16766   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16767
16768
16769 } # as_fn_mkdir_p
16770 if mkdir -p . 2>/dev/null; then
16771   as_mkdir_p='mkdir -p "$as_dir"'
16772 else
16773   test -d ./-p && rmdir ./-p
16774   as_mkdir_p=false
16775 fi
16776
16777
16778 # as_fn_executable_p FILE
16779 # -----------------------
16780 # Test if FILE is an executable regular file.
16781 as_fn_executable_p ()
16782 {
16783   test -f "$1" && test -x "$1"
16784 } # as_fn_executable_p
16785 as_test_x='test -x'
16786 as_executable_p=as_fn_executable_p
16787
16788 # Sed expression to map a string onto a valid CPP name.
16789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16790
16791 # Sed expression to map a string onto a valid variable name.
16792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16793
16794
16795 exec 6>&1
16796 ## ----------------------------------- ##
16797 ## Main body of $CONFIG_STATUS script. ##
16798 ## ----------------------------------- ##
16799 _ASEOF
16800 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16801
16802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 # Save the log message, to keep $0 and so on meaningful, and to
16804 # report actual input values of CONFIG_FILES etc. instead of their
16805 # values after options handling.
16806 ac_log="
16807 This file was extended by libksba $as_me 1.6.5, which was
16808 generated by GNU Autoconf 2.71.  Invocation command line was
16809
16810   CONFIG_FILES    = $CONFIG_FILES
16811   CONFIG_HEADERS  = $CONFIG_HEADERS
16812   CONFIG_LINKS    = $CONFIG_LINKS
16813   CONFIG_COMMANDS = $CONFIG_COMMANDS
16814   $ $0 $@
16815
16816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16817 "
16818
16819 _ACEOF
16820
16821 case $ac_config_files in *"
16822 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16823 esac
16824
16825 case $ac_config_headers in *"
16826 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16827 esac
16828
16829
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 # Files that config.status was made for.
16832 config_files="$ac_config_files"
16833 config_headers="$ac_config_headers"
16834 config_commands="$ac_config_commands"
16835
16836 _ACEOF
16837
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839 ac_cs_usage="\
16840 \`$as_me' instantiates files and other configuration actions
16841 from templates according to the current configuration.  Unless the files
16842 and actions are specified as TAGs, all are instantiated by default.
16843
16844 Usage: $0 [OPTION]... [TAG]...
16845
16846   -h, --help       print this help, then exit
16847   -V, --version    print version number and configuration settings, then exit
16848       --config     print configuration, then exit
16849   -q, --quiet, --silent
16850                    do not print progress messages
16851   -d, --debug      don't remove temporary files
16852       --recheck    update $as_me by reconfiguring in the same conditions
16853       --file=FILE[:TEMPLATE]
16854                    instantiate the configuration file FILE
16855       --header=FILE[:TEMPLATE]
16856                    instantiate the configuration header FILE
16857
16858 Configuration files:
16859 $config_files
16860
16861 Configuration headers:
16862 $config_headers
16863
16864 Configuration commands:
16865 $config_commands
16866
16867 Report bugs to <https://bugs.gnupg.org>."
16868
16869 _ACEOF
16870 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16871 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 ac_cs_config='$ac_cs_config_escaped'
16874 ac_cs_version="\\
16875 libksba config.status 1.6.5
16876 configured by $0, generated by GNU Autoconf 2.71,
16877   with options \\"\$ac_cs_config\\"
16878
16879 Copyright (C) 2021 Free Software Foundation, Inc.
16880 This config.status script is free software; the Free Software Foundation
16881 gives unlimited permission to copy, distribute and modify it."
16882
16883 ac_pwd='$ac_pwd'
16884 srcdir='$srcdir'
16885 INSTALL='$INSTALL'
16886 MKDIR_P='$MKDIR_P'
16887 AWK='$AWK'
16888 test -n "\$AWK" || AWK=awk
16889 _ACEOF
16890
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 # The default lists apply if the user does not specify any file.
16893 ac_need_defaults=:
16894 while test $# != 0
16895 do
16896   case $1 in
16897   --*=?*)
16898     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16899     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16900     ac_shift=:
16901     ;;
16902   --*=)
16903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16904     ac_optarg=
16905     ac_shift=:
16906     ;;
16907   *)
16908     ac_option=$1
16909     ac_optarg=$2
16910     ac_shift=shift
16911     ;;
16912   esac
16913
16914   case $ac_option in
16915   # Handling of the options.
16916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16917     ac_cs_recheck=: ;;
16918   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16919     printf "%s\n" "$ac_cs_version"; exit ;;
16920   --config | --confi | --conf | --con | --co | --c )
16921     printf "%s\n" "$ac_cs_config"; exit ;;
16922   --debug | --debu | --deb | --de | --d | -d )
16923     debug=: ;;
16924   --file | --fil | --fi | --f )
16925     $ac_shift
16926     case $ac_optarg in
16927     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16928     '') as_fn_error $? "missing file argument" ;;
16929     esac
16930     as_fn_append CONFIG_FILES " '$ac_optarg'"
16931     ac_need_defaults=false;;
16932   --header | --heade | --head | --hea )
16933     $ac_shift
16934     case $ac_optarg in
16935     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16936     esac
16937     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16938     ac_need_defaults=false;;
16939   --he | --h)
16940     # Conflict between --help and --header
16941     as_fn_error $? "ambiguous option: \`$1'
16942 Try \`$0 --help' for more information.";;
16943   --help | --hel | -h )
16944     printf "%s\n" "$ac_cs_usage"; exit ;;
16945   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16946   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16947     ac_cs_silent=: ;;
16948
16949   # This is an error.
16950   -*) as_fn_error $? "unrecognized option: \`$1'
16951 Try \`$0 --help' for more information." ;;
16952
16953   *) as_fn_append ac_config_targets " $1"
16954      ac_need_defaults=false ;;
16955
16956   esac
16957   shift
16958 done
16959
16960 ac_configure_extra_args=
16961
16962 if $ac_cs_silent; then
16963   exec 6>/dev/null
16964   ac_configure_extra_args="$ac_configure_extra_args --silent"
16965 fi
16966
16967 _ACEOF
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 if \$ac_cs_recheck; then
16970   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16971   shift
16972   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16973   CONFIG_SHELL='$SHELL'
16974   export CONFIG_SHELL
16975   exec "\$@"
16976 fi
16977
16978 _ACEOF
16979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16980 exec 5>>config.log
16981 {
16982   echo
16983   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16984 ## Running $as_me. ##
16985 _ASBOX
16986   printf "%s\n" "$ac_log"
16987 } >&5
16988
16989 _ACEOF
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16991 #
16992 # INIT-COMMANDS
16993 #
16994 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16995
16996
16997 # The HP-UX ksh and POSIX shell print the target directory to stdout
16998 # if CDPATH is set.
16999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17000
17001 sed_quote_subst='$sed_quote_subst'
17002 double_quote_subst='$double_quote_subst'
17003 delay_variable_subst='$delay_variable_subst'
17004 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17005 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17006 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17007 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17008 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17009 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17010 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17011 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17012 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17013 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17014 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17015 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17016 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17017 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17018 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17019 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17020 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17021 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17022 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17023 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17024 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17025 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17026 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17027 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17028 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17029 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17030 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17031 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17032 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17033 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17034 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17035 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17036 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17037 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17038 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17039 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17040 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17041 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17042 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17043 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17061 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"`'
17062 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17063 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17128 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17129 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17130 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17131 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17132 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17133 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17134 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17135 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17136 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17137 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17138 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17139 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17140 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17141 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17142 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17143 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17145 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17146 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17147 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17148 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17149 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17150 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17151 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17152 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17153 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17154 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17155 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17156 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17157 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17158 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17159 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17160 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17161 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17162 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17163 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17164 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17165 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17166 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17167 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17168 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17169 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17170 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17171 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17172 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17173 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17174 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17175 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17176 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17177
17178 LTCC='$LTCC'
17179 LTCFLAGS='$LTCFLAGS'
17180 compiler='$compiler_DEFAULT'
17181
17182 # A function that is used when there is no print builtin or printf.
17183 func_fallback_echo ()
17184 {
17185   eval 'cat <<_LTECHO_EOF
17186 \$1
17187 _LTECHO_EOF'
17188 }
17189
17190 # Quote evaled strings.
17191 for var in AS \
17192 DLLTOOL \
17193 OBJDUMP \
17194 SHELL \
17195 ECHO \
17196 PATH_SEPARATOR \
17197 SED \
17198 GREP \
17199 EGREP \
17200 FGREP \
17201 LD \
17202 NM \
17203 LN_S \
17204 lt_SP2NL \
17205 lt_NL2SP \
17206 reload_flag \
17207 deplibs_check_method \
17208 file_magic_cmd \
17209 file_magic_glob \
17210 want_nocaseglob \
17211 sharedlib_from_linklib_cmd \
17212 AR \
17213 AR_FLAGS \
17214 archiver_list_spec \
17215 STRIP \
17216 RANLIB \
17217 CC \
17218 CFLAGS \
17219 compiler \
17220 lt_cv_sys_global_symbol_pipe \
17221 lt_cv_sys_global_symbol_to_cdecl \
17222 lt_cv_sys_global_symbol_to_c_name_address \
17223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17224 nm_file_list_spec \
17225 lt_prog_compiler_no_builtin_flag \
17226 lt_prog_compiler_pic \
17227 lt_prog_compiler_wl \
17228 lt_prog_compiler_static \
17229 lt_cv_prog_compiler_c_o \
17230 need_locks \
17231 MANIFEST_TOOL \
17232 DSYMUTIL \
17233 NMEDIT \
17234 LIPO \
17235 OTOOL \
17236 OTOOL64 \
17237 shrext_cmds \
17238 export_dynamic_flag_spec \
17239 whole_archive_flag_spec \
17240 compiler_needs_object \
17241 with_gnu_ld \
17242 allow_undefined_flag \
17243 no_undefined_flag \
17244 hardcode_libdir_flag_spec \
17245 hardcode_libdir_separator \
17246 exclude_expsyms \
17247 include_expsyms \
17248 file_list_spec \
17249 variables_saved_for_relink \
17250 libname_spec \
17251 library_names_spec \
17252 soname_spec \
17253 install_override_mode \
17254 finish_eval \
17255 old_striplib \
17256 striplib \
17257 LD_RC \
17258 reload_flag_RC \
17259 compiler_RC \
17260 lt_prog_compiler_no_builtin_flag_RC \
17261 lt_prog_compiler_pic_RC \
17262 lt_prog_compiler_wl_RC \
17263 lt_prog_compiler_static_RC \
17264 lt_cv_prog_compiler_c_o_RC \
17265 export_dynamic_flag_spec_RC \
17266 whole_archive_flag_spec_RC \
17267 compiler_needs_object_RC \
17268 with_gnu_ld_RC \
17269 allow_undefined_flag_RC \
17270 no_undefined_flag_RC \
17271 hardcode_libdir_flag_spec_RC \
17272 hardcode_libdir_separator_RC \
17273 exclude_expsyms_RC \
17274 include_expsyms_RC \
17275 file_list_spec_RC; do
17276     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17277     *[\\\\\\\`\\"\\\$]*)
17278       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17279       ;;
17280     *)
17281       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17282       ;;
17283     esac
17284 done
17285
17286 # Double-quote double-evaled strings.
17287 for var in reload_cmds \
17288 old_postinstall_cmds \
17289 old_postuninstall_cmds \
17290 old_archive_cmds \
17291 extract_expsyms_cmds \
17292 old_archive_from_new_cmds \
17293 old_archive_from_expsyms_cmds \
17294 archive_cmds \
17295 archive_expsym_cmds \
17296 module_cmds \
17297 module_expsym_cmds \
17298 export_symbols_cmds \
17299 prelink_cmds \
17300 postlink_cmds \
17301 postinstall_cmds \
17302 postuninstall_cmds \
17303 finish_cmds \
17304 sys_lib_search_path_spec \
17305 sys_lib_dlsearch_path_spec \
17306 reload_cmds_RC \
17307 old_archive_cmds_RC \
17308 old_archive_from_new_cmds_RC \
17309 old_archive_from_expsyms_cmds_RC \
17310 archive_cmds_RC \
17311 archive_expsym_cmds_RC \
17312 module_cmds_RC \
17313 module_expsym_cmds_RC \
17314 export_symbols_cmds_RC \
17315 prelink_cmds_RC \
17316 postlink_cmds_RC; do
17317     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17318     *[\\\\\\\`\\"\\\$]*)
17319       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17320       ;;
17321     *)
17322       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17323       ;;
17324     esac
17325 done
17326
17327 ac_aux_dir='$ac_aux_dir'
17328 xsi_shell='$xsi_shell'
17329 lt_shell_append='$lt_shell_append'
17330
17331 # See if we are running on zsh, and set the options which allow our
17332 # commands through without removal of \ escapes INIT.
17333 if test -n "\${ZSH_VERSION+set}" ; then
17334    setopt NO_GLOB_SUBST
17335 fi
17336
17337
17338     PACKAGE='$PACKAGE'
17339     VERSION='$VERSION'
17340     TIMESTAMP='$TIMESTAMP'
17341     RM='$RM'
17342     ofile='$ofile'
17343
17344
17345
17346
17347
17348 build_selection=$build_libtool_modification
17349
17350 _ACEOF
17351
17352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17353
17354 # Handling of arguments.
17355 for ac_config_target in $ac_config_targets
17356 do
17357   case $ac_config_target in
17358     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17359     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17360     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17361     "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
17362     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17363     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17364     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
17365     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17366     "src/ksba.h") CONFIG_FILES="$CONFIG_FILES src/ksba.h" ;;
17367     "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
17368     "src/ksba.pc") CONFIG_FILES="$CONFIG_FILES src/ksba.pc" ;;
17369     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
17370     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17371     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17372
17373   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17374   esac
17375 done
17376
17377
17378 # If the user did not use the arguments to specify the items to instantiate,
17379 # then the envvar interface is used.  Set only those that are not.
17380 # We use the long form for the default assignment because of an extremely
17381 # bizarre bug on SunOS 4.1.3.
17382 if $ac_need_defaults; then
17383   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17384   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17385   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17386 fi
17387
17388 # Have a temporary directory for convenience.  Make it in the build tree
17389 # simply because there is no reason against having it here, and in addition,
17390 # creating and moving files from /tmp can sometimes cause problems.
17391 # Hook for its removal unless debugging.
17392 # Note that there is a small window in which the directory will not be cleaned:
17393 # after its creation but before its name has been assigned to `$tmp'.
17394 $debug ||
17395 {
17396   tmp= ac_tmp=
17397   trap 'exit_status=$?
17398   : "${ac_tmp:=$tmp}"
17399   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17400 ' 0
17401   trap 'as_fn_exit 1' 1 2 13 15
17402 }
17403 # Create a (secure) tmp directory for tmp files.
17404
17405 {
17406   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17407   test -d "$tmp"
17408 }  ||
17409 {
17410   tmp=./conf$$-$RANDOM
17411   (umask 077 && mkdir "$tmp")
17412 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17413 ac_tmp=$tmp
17414
17415 # Set up the scripts for CONFIG_FILES section.
17416 # No need to generate them if there are no CONFIG_FILES.
17417 # This happens for instance with `./config.status config.h'.
17418 if test -n "$CONFIG_FILES"; then
17419
17420
17421 ac_cr=`echo X | tr X '\015'`
17422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17423 # But we know of no other shell where ac_cr would be empty at this
17424 # point, so we can use a bashism as a fallback.
17425 if test "x$ac_cr" = x; then
17426   eval ac_cr=\$\'\\r\'
17427 fi
17428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17430   ac_cs_awk_cr='\\r'
17431 else
17432   ac_cs_awk_cr=$ac_cr
17433 fi
17434
17435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17436 _ACEOF
17437
17438
17439 {
17440   echo "cat >conf$$subs.awk <<_ACEOF" &&
17441   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17442   echo "_ACEOF"
17443 } >conf$$subs.sh ||
17444   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17446 ac_delim='%!_!# '
17447 for ac_last_try in false false false false false :; do
17448   . ./conf$$subs.sh ||
17449     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17450
17451   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17452   if test $ac_delim_n = $ac_delim_num; then
17453     break
17454   elif $ac_last_try; then
17455     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17456   else
17457     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17458   fi
17459 done
17460 rm -f conf$$subs.sh
17461
17462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17463 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17464 _ACEOF
17465 sed -n '
17466 h
17467 s/^/S["/; s/!.*/"]=/
17468 p
17469 g
17470 s/^[^!]*!//
17471 :repl
17472 t repl
17473 s/'"$ac_delim"'$//
17474 t delim
17475 :nl
17476 h
17477 s/\(.\{148\}\)..*/\1/
17478 t more1
17479 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17480 p
17481 n
17482 b repl
17483 :more1
17484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17485 p
17486 g
17487 s/.\{148\}//
17488 t nl
17489 :delim
17490 h
17491 s/\(.\{148\}\)..*/\1/
17492 t more2
17493 s/["\\]/\\&/g; s/^/"/; s/$/"/
17494 p
17495 b
17496 :more2
17497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17498 p
17499 g
17500 s/.\{148\}//
17501 t delim
17502 ' <conf$$subs.awk | sed '
17503 /^[^""]/{
17504   N
17505   s/\n//
17506 }
17507 ' >>$CONFIG_STATUS || ac_write_fail=1
17508 rm -f conf$$subs.awk
17509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17510 _ACAWK
17511 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17512   for (key in S) S_is_set[key] = 1
17513   FS = "\a"
17514
17515 }
17516 {
17517   line = $ 0
17518   nfields = split(line, field, "@")
17519   substed = 0
17520   len = length(field[1])
17521   for (i = 2; i < nfields; i++) {
17522     key = field[i]
17523     keylen = length(key)
17524     if (S_is_set[key]) {
17525       value = S[key]
17526       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17527       len += length(value) + length(field[++i])
17528       substed = 1
17529     } else
17530       len += 1 + keylen
17531   }
17532
17533   print line
17534 }
17535
17536 _ACAWK
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17539 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17540   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17541 else
17542   cat
17543 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17544   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17545 _ACEOF
17546
17547 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17548 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17549 # trailing colons and then remove the whole line if VPATH becomes empty
17550 # (actually we leave an empty line to preserve line numbers).
17551 if test "x$srcdir" = x.; then
17552   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17553 h
17554 s///
17555 s/^/:/
17556 s/[      ]*$/:/
17557 s/:\$(srcdir):/:/g
17558 s/:\${srcdir}:/:/g
17559 s/:@srcdir@:/:/g
17560 s/^:*//
17561 s/:*$//
17562 x
17563 s/\(=[   ]*\).*/\1/
17564 G
17565 s/\n//
17566 s/^[^=]*=[       ]*$//
17567 }'
17568 fi
17569
17570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571 fi # test -n "$CONFIG_FILES"
17572
17573 # Set up the scripts for CONFIG_HEADERS section.
17574 # No need to generate them if there are no CONFIG_HEADERS.
17575 # This happens for instance with `./config.status Makefile'.
17576 if test -n "$CONFIG_HEADERS"; then
17577 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17578 BEGIN {
17579 _ACEOF
17580
17581 # Transform confdefs.h into an awk script `defines.awk', embedded as
17582 # here-document in config.status, that substitutes the proper values into
17583 # config.h.in to produce config.h.
17584
17585 # Create a delimiter string that does not exist in confdefs.h, to ease
17586 # handling of long lines.
17587 ac_delim='%!_!# '
17588 for ac_last_try in false false :; do
17589   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17590   if test -z "$ac_tt"; then
17591     break
17592   elif $ac_last_try; then
17593     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17594   else
17595     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17596   fi
17597 done
17598
17599 # For the awk script, D is an array of macro values keyed by name,
17600 # likewise P contains macro parameters if any.  Preserve backslash
17601 # newline sequences.
17602
17603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17604 sed -n '
17605 s/.\{148\}/&'"$ac_delim"'/g
17606 t rset
17607 :rset
17608 s/^[     ]*#[    ]*define[       ][      ]*/ /
17609 t def
17610 d
17611 :def
17612 s/\\$//
17613 t bsnl
17614 s/["\\]/\\&/g
17615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17616 D["\1"]=" \3"/p
17617 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17618 d
17619 :bsnl
17620 s/["\\]/\\&/g
17621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17622 D["\1"]=" \3\\\\\\n"\\/p
17623 t cont
17624 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17625 t cont
17626 d
17627 :cont
17628 n
17629 s/.\{148\}/&'"$ac_delim"'/g
17630 t clear
17631 :clear
17632 s/\\$//
17633 t bsnlc
17634 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17635 d
17636 :bsnlc
17637 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17638 b cont
17639 ' <confdefs.h | sed '
17640 s/'"$ac_delim"'/"\\\
17641 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17642
17643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17644   for (key in D) D_is_set[key] = 1
17645   FS = "\a"
17646 }
17647 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17648   line = \$ 0
17649   split(line, arg, " ")
17650   if (arg[1] == "#") {
17651     defundef = arg[2]
17652     mac1 = arg[3]
17653   } else {
17654     defundef = substr(arg[1], 2)
17655     mac1 = arg[2]
17656   }
17657   split(mac1, mac2, "(") #)
17658   macro = mac2[1]
17659   prefix = substr(line, 1, index(line, defundef) - 1)
17660   if (D_is_set[macro]) {
17661     # Preserve the white space surrounding the "#".
17662     print prefix "define", macro P[macro] D[macro]
17663     next
17664   } else {
17665     # Replace #undef with comments.  This is necessary, for example,
17666     # in the case of _POSIX_SOURCE, which is predefined and required
17667     # on some systems where configure will not decide to define it.
17668     if (defundef == "undef") {
17669       print "/*", prefix defundef, macro, "*/"
17670       next
17671     }
17672   }
17673 }
17674 { print }
17675 _ACAWK
17676 _ACEOF
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17679 fi # test -n "$CONFIG_HEADERS"
17680
17681
17682 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17683 shift
17684 for ac_tag
17685 do
17686   case $ac_tag in
17687   :[FHLC]) ac_mode=$ac_tag; continue;;
17688   esac
17689   case $ac_mode$ac_tag in
17690   :[FHL]*:*);;
17691   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17692   :[FH]-) ac_tag=-:-;;
17693   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17694   esac
17695   ac_save_IFS=$IFS
17696   IFS=:
17697   set x $ac_tag
17698   IFS=$ac_save_IFS
17699   shift
17700   ac_file=$1
17701   shift
17702
17703   case $ac_mode in
17704   :L) ac_source=$1;;
17705   :[FH])
17706     ac_file_inputs=
17707     for ac_f
17708     do
17709       case $ac_f in
17710       -) ac_f="$ac_tmp/stdin";;
17711       *) # Look for the file first in the build tree, then in the source tree
17712          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17713          # because $ac_f cannot contain `:'.
17714          test -f "$ac_f" ||
17715            case $ac_f in
17716            [\\/$]*) false;;
17717            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17718            esac ||
17719            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17720       esac
17721       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17722       as_fn_append ac_file_inputs " '$ac_f'"
17723     done
17724
17725     # Let's still pretend it is `configure' which instantiates (i.e., don't
17726     # use $as_me), people would be surprised to read:
17727     #    /* config.h.  Generated by config.status.  */
17728     configure_input='Generated from '`
17729           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17730         `' by configure.'
17731     if test x"$ac_file" != x-; then
17732       configure_input="$ac_file.  $configure_input"
17733       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17734 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17735     fi
17736     # Neutralize special characters interpreted by sed in replacement strings.
17737     case $configure_input in #(
17738     *\&* | *\|* | *\\* )
17739        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17740        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17741     *) ac_sed_conf_input=$configure_input;;
17742     esac
17743
17744     case $ac_tag in
17745     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17746       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17747     esac
17748     ;;
17749   esac
17750
17751   ac_dir=`$as_dirname -- "$ac_file" ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753          X"$ac_file" : 'X\(//\)[^/]' \| \
17754          X"$ac_file" : 'X\(//\)$' \| \
17755          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17756 printf "%s\n" X"$ac_file" |
17757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17758             s//\1/
17759             q
17760           }
17761           /^X\(\/\/\)[^/].*/{
17762             s//\1/
17763             q
17764           }
17765           /^X\(\/\/\)$/{
17766             s//\1/
17767             q
17768           }
17769           /^X\(\/\).*/{
17770             s//\1/
17771             q
17772           }
17773           s/.*/./; q'`
17774   as_dir="$ac_dir"; as_fn_mkdir_p
17775   ac_builddir=.
17776
17777 case "$ac_dir" in
17778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17779 *)
17780   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17781   # A ".." for each directory in $ac_dir_suffix.
17782   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17783   case $ac_top_builddir_sub in
17784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17786   esac ;;
17787 esac
17788 ac_abs_top_builddir=$ac_pwd
17789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17790 # for backward compatibility:
17791 ac_top_builddir=$ac_top_build_prefix
17792
17793 case $srcdir in
17794   .)  # We are building in place.
17795     ac_srcdir=.
17796     ac_top_srcdir=$ac_top_builddir_sub
17797     ac_abs_top_srcdir=$ac_pwd ;;
17798   [\\/]* | ?:[\\/]* )  # Absolute name.
17799     ac_srcdir=$srcdir$ac_dir_suffix;
17800     ac_top_srcdir=$srcdir
17801     ac_abs_top_srcdir=$srcdir ;;
17802   *) # Relative name.
17803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17804     ac_top_srcdir=$ac_top_build_prefix$srcdir
17805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17806 esac
17807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17808
17809
17810   case $ac_mode in
17811   :F)
17812   #
17813   # CONFIG_FILE
17814   #
17815
17816   case $INSTALL in
17817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17818   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17819   esac
17820   ac_MKDIR_P=$MKDIR_P
17821   case $MKDIR_P in
17822   [\\/$]* | ?:[\\/]* ) ;;
17823   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17824   esac
17825 _ACEOF
17826
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 # If the template does not know about datarootdir, expand it.
17829 # FIXME: This hack should be removed a few years after 2.60.
17830 ac_datarootdir_hack=; ac_datarootdir_seen=
17831 ac_sed_dataroot='
17832 /datarootdir/ {
17833   p
17834   q
17835 }
17836 /@datadir@/p
17837 /@docdir@/p
17838 /@infodir@/p
17839 /@localedir@/p
17840 /@mandir@/p'
17841 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17842 *datarootdir*) ac_datarootdir_seen=yes;;
17843 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17845 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17846 _ACEOF
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848   ac_datarootdir_hack='
17849   s&@datadir@&$datadir&g
17850   s&@docdir@&$docdir&g
17851   s&@infodir@&$infodir&g
17852   s&@localedir@&$localedir&g
17853   s&@mandir@&$mandir&g
17854   s&\\\${datarootdir}&$datarootdir&g' ;;
17855 esac
17856 _ACEOF
17857
17858 # Neutralize VPATH when `$srcdir' = `.'.
17859 # Shell code in configure.ac might set extrasub.
17860 # FIXME: do we really want to maintain this feature?
17861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862 ac_sed_extra="$ac_vpsub
17863 $extrasub
17864 _ACEOF
17865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17866 :t
17867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17868 s|@configure_input@|$ac_sed_conf_input|;t t
17869 s&@top_builddir@&$ac_top_builddir_sub&;t t
17870 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17871 s&@srcdir@&$ac_srcdir&;t t
17872 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17873 s&@top_srcdir@&$ac_top_srcdir&;t t
17874 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17875 s&@builddir@&$ac_builddir&;t t
17876 s&@abs_builddir@&$ac_abs_builddir&;t t
17877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17878 s&@INSTALL@&$ac_INSTALL&;t t
17879 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17880 $ac_datarootdir_hack
17881 "
17882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17883   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17884
17885 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17886   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17887   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17888       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17890 which seems to be undefined.  Please make sure it is defined" >&5
17891 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17892 which seems to be undefined.  Please make sure it is defined" >&2;}
17893
17894   rm -f "$ac_tmp/stdin"
17895   case $ac_file in
17896   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17897   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17898   esac \
17899   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17900  ;;
17901   :H)
17902   #
17903   # CONFIG_HEADER
17904   #
17905   if test x"$ac_file" != x-; then
17906     {
17907       printf "%s\n" "/* $configure_input  */" >&1 \
17908       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17909     } >"$ac_tmp/config.h" \
17910       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17911     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17912       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17913 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17914     else
17915       rm -f "$ac_file"
17916       mv "$ac_tmp/config.h" "$ac_file" \
17917         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17918     fi
17919   else
17920     printf "%s\n" "/* $configure_input  */" >&1 \
17921       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17922       || as_fn_error $? "could not create -" "$LINENO" 5
17923   fi
17924 # Compute "$ac_file"'s index in $config_headers.
17925 _am_arg="$ac_file"
17926 _am_stamp_count=1
17927 for _am_header in $config_headers :; do
17928   case $_am_header in
17929     $_am_arg | $_am_arg:* )
17930       break ;;
17931     * )
17932       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17933   esac
17934 done
17935 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17936 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17937          X"$_am_arg" : 'X\(//\)[^/]' \| \
17938          X"$_am_arg" : 'X\(//\)$' \| \
17939          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17940 printf "%s\n" X"$_am_arg" |
17941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17942             s//\1/
17943             q
17944           }
17945           /^X\(\/\/\)[^/].*/{
17946             s//\1/
17947             q
17948           }
17949           /^X\(\/\/\)$/{
17950             s//\1/
17951             q
17952           }
17953           /^X\(\/\).*/{
17954             s//\1/
17955             q
17956           }
17957           s/.*/./; q'`/stamp-h$_am_stamp_count
17958  ;;
17959
17960   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17961 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17962  ;;
17963   esac
17964
17965
17966   case $ac_file$ac_mode in
17967     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17968   # Older Autoconf quotes --file arguments for eval, but not when files
17969   # are listed without --file.  Let's play safe and only enable the eval
17970   # if we detect the quoting.
17971   # TODO: see whether this extra hack can be removed once we start
17972   # requiring Autoconf 2.70 or later.
17973   case $CONFIG_FILES in #(
17974   *\'*) :
17975     eval set x "$CONFIG_FILES" ;; #(
17976   *) :
17977     set x $CONFIG_FILES ;; #(
17978   *) :
17979      ;;
17980 esac
17981   shift
17982   # Used to flag and report bootstrapping failures.
17983   am_rc=0
17984   for am_mf
17985   do
17986     # Strip MF so we end up with the name of the file.
17987     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17988     # Check whether this is an Automake generated Makefile which includes
17989     # dependency-tracking related rules and includes.
17990     # Grep'ing the whole file directly is not great: AIX grep has a line
17991     # limit of 2048, but all sed's we know have understand at least 4000.
17992     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17993       || continue
17994     am_dirpart=`$as_dirname -- "$am_mf" ||
17995 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17996          X"$am_mf" : 'X\(//\)[^/]' \| \
17997          X"$am_mf" : 'X\(//\)$' \| \
17998          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17999 printf "%s\n" X"$am_mf" |
18000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18001             s//\1/
18002             q
18003           }
18004           /^X\(\/\/\)[^/].*/{
18005             s//\1/
18006             q
18007           }
18008           /^X\(\/\/\)$/{
18009             s//\1/
18010             q
18011           }
18012           /^X\(\/\).*/{
18013             s//\1/
18014             q
18015           }
18016           s/.*/./; q'`
18017     am_filepart=`$as_basename -- "$am_mf" ||
18018 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18019          X"$am_mf" : 'X\(//\)$' \| \
18020          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18021 printf "%s\n" X/"$am_mf" |
18022     sed '/^.*\/\([^/][^/]*\)\/*$/{
18023             s//\1/
18024             q
18025           }
18026           /^X\/\(\/\/\)$/{
18027             s//\1/
18028             q
18029           }
18030           /^X\/\(\/\).*/{
18031             s//\1/
18032             q
18033           }
18034           s/.*/./; q'`
18035     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18036       && sed -e '/# am--include-marker/d' "$am_filepart" \
18037         | $MAKE -f - am--depfiles" >&5
18038    (cd "$am_dirpart" \
18039       && sed -e '/# am--include-marker/d' "$am_filepart" \
18040         | $MAKE -f - am--depfiles) >&5 2>&5
18041    ac_status=$?
18042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043    (exit $ac_status); } || am_rc=$?
18044   done
18045   if test $am_rc -ne 0; then
18046     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18048 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18049     for automatic dependency tracking.  If GNU make was not used, consider
18050     re-running the configure script with MAKE=\"gmake\" (or whatever is
18051     necessary).  You can also try re-running configure with the
18052     '--disable-dependency-tracking' option to at least be able to build
18053     the package (albeit without support for automatic dependency tracking).
18054 See \`config.log' for more details" "$LINENO" 5; }
18055   fi
18056   { am_dirpart=; unset am_dirpart;}
18057   { am_filepart=; unset am_filepart;}
18058   { am_mf=; unset am_mf;}
18059   { am_rc=; unset am_rc;}
18060   rm -f conftest-deps.mk
18061 }
18062  ;;
18063     "libtool":C)
18064
18065     # See if we are running on zsh, and set the options which allow our
18066     # commands through without removal of \ escapes.
18067     if test -n "${ZSH_VERSION+set}" ; then
18068       setopt NO_GLOB_SUBST
18069     fi
18070
18071     cfgfile="${ofile}T"
18072     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18073     $RM "$cfgfile"
18074
18075     cat <<_LT_EOF >> "$cfgfile"
18076 #! $SHELL
18077
18078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18082 #
18083 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18084 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18085 #                 Foundation, Inc.
18086 #   Written by Gordon Matzigkeit, 1996
18087 #
18088 #   This file is part of GNU Libtool.
18089 #
18090 # GNU Libtool is free software; you can redistribute it and/or
18091 # modify it under the terms of the GNU General Public License as
18092 # published by the Free Software Foundation; either version 2 of
18093 # the License, or (at your option) any later version.
18094 #
18095 # As a special exception to the GNU General Public License,
18096 # if you distribute this file as part of a program or library that
18097 # is built using GNU Libtool, you may include this file under the
18098 # same distribution terms that you use for the rest of that program.
18099 #
18100 # GNU Libtool is distributed in the hope that it will be useful,
18101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18103 # GNU General Public License for more details.
18104 #
18105 # You should have received a copy of the GNU General Public License
18106 # along with GNU Libtool; see the file COPYING.  If not, a copy
18107 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
18108 # obtained by writing to the Free Software Foundation, Inc.,
18109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18110
18111
18112 # The names of the tagged configurations supported by this script.
18113 available_tags="RC "
18114
18115 # ### BEGIN LIBTOOL CONFIG
18116
18117 # Which release of libtool.m4 was used?
18118 macro_version=$macro_version
18119 macro_revision=$macro_revision
18120
18121 # Assembler program.
18122 AS=$lt_AS
18123
18124 # DLL creation program.
18125 DLLTOOL=$lt_DLLTOOL
18126
18127 # Object dumper program.
18128 OBJDUMP=$lt_OBJDUMP
18129
18130 # Whether or not to build static libraries.
18131 build_old_libs=$enable_static
18132
18133 # Whether or not to build shared libraries.
18134 build_libtool_libs=$enable_shared
18135
18136 # What type of objects to build.
18137 pic_mode=$pic_mode
18138
18139 # Whether or not to optimize for fast installation.
18140 fast_install=$enable_fast_install
18141
18142 # Shell to use when invoking shell scripts.
18143 SHELL=$lt_SHELL
18144
18145 # An echo program that protects backslashes.
18146 ECHO=$lt_ECHO
18147
18148 # The PATH separator for the build system.
18149 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18150
18151 # The host system.
18152 host_alias=$host_alias
18153 host=$host
18154 host_os=$host_os
18155
18156 # The build system.
18157 build_alias=$build_alias
18158 build=$build
18159 build_os=$build_os
18160
18161 # A sed program that does not truncate output.
18162 SED=$lt_SED
18163
18164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18165 Xsed="\$SED -e 1s/^X//"
18166
18167 # A grep program that handles long lines.
18168 GREP=$lt_GREP
18169
18170 # An ERE matcher.
18171 EGREP=$lt_EGREP
18172
18173 # A literal string matcher.
18174 FGREP=$lt_FGREP
18175
18176 # A BSD- or MS-compatible name lister.
18177 NM=$lt_NM
18178
18179 # Whether we need soft or hard links.
18180 LN_S=$lt_LN_S
18181
18182 # What is the maximum length of a command?
18183 max_cmd_len=$max_cmd_len
18184
18185 # Object file suffix (normally "o").
18186 objext=$ac_objext
18187
18188 # Executable file suffix (normally "").
18189 exeext=$exeext
18190
18191 # whether the shell understands "unset".
18192 lt_unset=$lt_unset
18193
18194 # turn spaces into newlines.
18195 SP2NL=$lt_lt_SP2NL
18196
18197 # turn newlines into spaces.
18198 NL2SP=$lt_lt_NL2SP
18199
18200 # convert \$build file names to \$host format.
18201 to_host_file_cmd=$lt_cv_to_host_file_cmd
18202
18203 # convert \$build files to toolchain format.
18204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18205
18206 # Method to check whether dependent libraries are shared objects.
18207 deplibs_check_method=$lt_deplibs_check_method
18208
18209 # Command to use when deplibs_check_method = "file_magic".
18210 file_magic_cmd=$lt_file_magic_cmd
18211
18212 # How to find potential files when deplibs_check_method = "file_magic".
18213 file_magic_glob=$lt_file_magic_glob
18214
18215 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18216 want_nocaseglob=$lt_want_nocaseglob
18217
18218 # Command to associate shared and link libraries.
18219 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18220
18221 # The archiver.
18222 AR=$lt_AR
18223
18224 # Flags to create an archive.
18225 AR_FLAGS=$lt_AR_FLAGS
18226
18227 # How to feed a file listing to the archiver.
18228 archiver_list_spec=$lt_archiver_list_spec
18229
18230 # A symbol stripping program.
18231 STRIP=$lt_STRIP
18232
18233 # Commands used to install an old-style archive.
18234 RANLIB=$lt_RANLIB
18235 old_postinstall_cmds=$lt_old_postinstall_cmds
18236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18237
18238 # Whether to use a lock for old archive extraction.
18239 lock_old_archive_extraction=$lock_old_archive_extraction
18240
18241 # A C compiler.
18242 LTCC=$lt_CC
18243
18244 # LTCC compiler flags.
18245 LTCFLAGS=$lt_CFLAGS
18246
18247 # Take the output of nm and produce a listing of raw symbols and C names.
18248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18249
18250 # Transform the output of nm in a proper C declaration.
18251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18252
18253 # Transform the output of nm in a C name address pair.
18254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18255
18256 # Transform the output of nm in a C name address pair when lib prefix is needed.
18257 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18258
18259 # Specify filename containing input files for \$NM.
18260 nm_file_list_spec=$lt_nm_file_list_spec
18261
18262 # The root where to search for dependent libraries,and in which our libraries should be installed.
18263 lt_sysroot=$lt_sysroot
18264
18265 # The name of the directory that contains temporary libtool files.
18266 objdir=$objdir
18267
18268 # Used to examine libraries when file_magic_cmd begins with "file".
18269 MAGIC_CMD=$MAGIC_CMD
18270
18271 # Must we lock files when doing compilation?
18272 need_locks=$lt_need_locks
18273
18274 # Manifest tool.
18275 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18276
18277 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18278 DSYMUTIL=$lt_DSYMUTIL
18279
18280 # Tool to change global to local symbols on Mac OS X.
18281 NMEDIT=$lt_NMEDIT
18282
18283 # Tool to manipulate fat objects and archives on Mac OS X.
18284 LIPO=$lt_LIPO
18285
18286 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18287 OTOOL=$lt_OTOOL
18288
18289 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18290 OTOOL64=$lt_OTOOL64
18291
18292 # Old archive suffix (normally "a").
18293 libext=$libext
18294
18295 # Shared library suffix (normally ".so").
18296 shrext_cmds=$lt_shrext_cmds
18297
18298 # The commands to extract the exported symbol list from a shared archive.
18299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18300
18301 # Variables whose values should be saved in libtool wrapper scripts and
18302 # restored at link time.
18303 variables_saved_for_relink=$lt_variables_saved_for_relink
18304
18305 # Do we need the "lib" prefix for modules?
18306 need_lib_prefix=$need_lib_prefix
18307
18308 # Do we need a version for libraries?
18309 need_version=$need_version
18310
18311 # Library versioning type.
18312 version_type=$version_type
18313
18314 # Shared library runtime path variable.
18315 runpath_var=$runpath_var
18316
18317 # Shared library path variable.
18318 shlibpath_var=$shlibpath_var
18319
18320 # Is shlibpath searched before the hard-coded library search path?
18321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18322
18323 # Format of library name prefix.
18324 libname_spec=$lt_libname_spec
18325
18326 # List of archive names.  First name is the real one, the rest are links.
18327 # The last name is the one that the linker finds with -lNAME
18328 library_names_spec=$lt_library_names_spec
18329
18330 # The coded name of the library, if different from the real name.
18331 soname_spec=$lt_soname_spec
18332
18333 # Permission mode override for installation of shared libraries.
18334 install_override_mode=$lt_install_override_mode
18335
18336 # Command to use after installation of a shared archive.
18337 postinstall_cmds=$lt_postinstall_cmds
18338
18339 # Command to use after uninstallation of a shared archive.
18340 postuninstall_cmds=$lt_postuninstall_cmds
18341
18342 # Commands used to finish a libtool library installation in a directory.
18343 finish_cmds=$lt_finish_cmds
18344
18345 # As "finish_cmds", except a single script fragment to be evaled but
18346 # not shown.
18347 finish_eval=$lt_finish_eval
18348
18349 # Whether we should hardcode library paths into libraries.
18350 hardcode_into_libs=$hardcode_into_libs
18351
18352 # Compile-time system search path for libraries.
18353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18354
18355 # Run-time system search path for libraries.
18356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18357
18358 # Whether dlopen is supported.
18359 dlopen_support=$enable_dlopen
18360
18361 # Whether dlopen of programs is supported.
18362 dlopen_self=$enable_dlopen_self
18363
18364 # Whether dlopen of statically linked programs is supported.
18365 dlopen_self_static=$enable_dlopen_self_static
18366
18367 # Commands to strip libraries.
18368 old_striplib=$lt_old_striplib
18369 striplib=$lt_striplib
18370
18371
18372 # The linker used to build libraries.
18373 LD=$lt_LD
18374
18375 # How to create reloadable object files.
18376 reload_flag=$lt_reload_flag
18377 reload_cmds=$lt_reload_cmds
18378
18379 # Commands used to build an old-style archive.
18380 old_archive_cmds=$lt_old_archive_cmds
18381
18382 # A language specific compiler.
18383 CC=$lt_compiler
18384
18385 # Is the compiler the GNU compiler?
18386 with_gcc=$GCC
18387
18388 # Compiler flag to turn off builtin functions.
18389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18390
18391 # Additional compiler flags for building library objects.
18392 pic_flag=$lt_lt_prog_compiler_pic
18393
18394 # How to pass a linker flag through the compiler.
18395 wl=$lt_lt_prog_compiler_wl
18396
18397 # Compiler flag to prevent dynamic linking.
18398 link_static_flag=$lt_lt_prog_compiler_static
18399
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18402
18403 # Whether or not to add -lc for building shared libraries.
18404 build_libtool_need_lc=$archive_cmds_need_lc
18405
18406 # Whether or not to disallow shared libs when runtime libs are static.
18407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18408
18409 # Compiler flag to allow reflexive dlopens.
18410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18411
18412 # Compiler flag to generate shared objects directly from archives.
18413 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18414
18415 # Whether the compiler copes with passing no objects directly.
18416 compiler_needs_object=$lt_compiler_needs_object
18417
18418 # Create an old-style archive from a shared archive.
18419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18420
18421 # Create a temporary old-style archive to link instead of a shared archive.
18422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18423
18424 # Commands used to build a shared archive.
18425 archive_cmds=$lt_archive_cmds
18426 archive_expsym_cmds=$lt_archive_expsym_cmds
18427
18428 # Commands used to build a loadable module if different from building
18429 # a shared archive.
18430 module_cmds=$lt_module_cmds
18431 module_expsym_cmds=$lt_module_expsym_cmds
18432
18433 # Whether we are building with GNU ld or not.
18434 with_gnu_ld=$lt_with_gnu_ld
18435
18436 # Flag that allows shared libraries with undefined symbols to be built.
18437 allow_undefined_flag=$lt_allow_undefined_flag
18438
18439 # Flag that enforces no undefined symbols.
18440 no_undefined_flag=$lt_no_undefined_flag
18441
18442 # Flag to hardcode \$libdir into a binary during linking.
18443 # This must work even if \$libdir does not exist
18444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18445
18446 # Whether we need a single "-rpath" flag with a separated argument.
18447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18448
18449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18450 # DIR into the resulting binary.
18451 hardcode_direct=$hardcode_direct
18452
18453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18454 # DIR into the resulting binary and the resulting library dependency is
18455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18456 # library is relocated.
18457 hardcode_direct_absolute=$hardcode_direct_absolute
18458
18459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18460 # into the resulting binary.
18461 hardcode_minus_L=$hardcode_minus_L
18462
18463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18464 # into the resulting binary.
18465 hardcode_shlibpath_var=$hardcode_shlibpath_var
18466
18467 # Set to "yes" if building a shared library automatically hardcodes DIR
18468 # into the library and all subsequent libraries and executables linked
18469 # against it.
18470 hardcode_automatic=$hardcode_automatic
18471
18472 # Set to yes if linker adds runtime paths of dependent libraries
18473 # to runtime path list.
18474 inherit_rpath=$inherit_rpath
18475
18476 # Whether libtool must link a program against all its dependency libraries.
18477 link_all_deplibs=$link_all_deplibs
18478
18479 # Set to "yes" if exported symbols are required.
18480 always_export_symbols=$always_export_symbols
18481
18482 # The commands to list exported symbols.
18483 export_symbols_cmds=$lt_export_symbols_cmds
18484
18485 # Symbols that should not be listed in the preloaded symbols.
18486 exclude_expsyms=$lt_exclude_expsyms
18487
18488 # Symbols that must always be exported.
18489 include_expsyms=$lt_include_expsyms
18490
18491 # Commands necessary for linking programs (against libraries) with templates.
18492 prelink_cmds=$lt_prelink_cmds
18493
18494 # Commands necessary for finishing linking programs.
18495 postlink_cmds=$lt_postlink_cmds
18496
18497 # Specify filename containing input files.
18498 file_list_spec=$lt_file_list_spec
18499
18500 # How to hardcode a shared library path into an executable.
18501 hardcode_action=$hardcode_action
18502
18503 # ### END LIBTOOL CONFIG
18504
18505 _LT_EOF
18506
18507   case $host_os in
18508   aix3*)
18509     cat <<\_LT_EOF >> "$cfgfile"
18510 # AIX sometimes has problems with the GCC collect2 program.  For some
18511 # reason, if we set the COLLECT_NAMES environment variable, the problems
18512 # vanish in a puff of smoke.
18513 if test "X${COLLECT_NAMES+set}" != Xset; then
18514   COLLECT_NAMES=
18515   export COLLECT_NAMES
18516 fi
18517 _LT_EOF
18518     ;;
18519   esac
18520
18521
18522
18523 ltmain="$ac_aux_dir/ltmain.sh"
18524
18525
18526   # We use sed instead of cat because bash on DJGPP gets confused if
18527   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18528   # text mode, it properly converts lines to CR/LF.  This bash problem
18529   # is reportedly fixed, but why not run on old versions too?
18530   sed '$q' "$ltmain" >> "$cfgfile" \
18531      || (rm -f "$cfgfile"; exit 1)
18532
18533   if test x"$xsi_shell" = xyes; then
18534   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18535 func_dirname ()\
18536 {\
18537 \    case ${1} in\
18538 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18539 \      *  ) func_dirname_result="${3}" ;;\
18540 \    esac\
18541 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18542   && mv -f "$cfgfile.tmp" "$cfgfile" \
18543     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18544 test 0 -eq $? || _lt_function_replace_fail=:
18545
18546
18547   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18548 func_basename ()\
18549 {\
18550 \    func_basename_result="${1##*/}"\
18551 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18552   && mv -f "$cfgfile.tmp" "$cfgfile" \
18553     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18554 test 0 -eq $? || _lt_function_replace_fail=:
18555
18556
18557   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18558 func_dirname_and_basename ()\
18559 {\
18560 \    case ${1} in\
18561 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18562 \      *  ) func_dirname_result="${3}" ;;\
18563 \    esac\
18564 \    func_basename_result="${1##*/}"\
18565 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18566   && mv -f "$cfgfile.tmp" "$cfgfile" \
18567     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18568 test 0 -eq $? || _lt_function_replace_fail=:
18569
18570
18571   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18572 func_stripname ()\
18573 {\
18574 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18575 \    # positional parameters, so assign one to ordinary parameter first.\
18576 \    func_stripname_result=${3}\
18577 \    func_stripname_result=${func_stripname_result#"${1}"}\
18578 \    func_stripname_result=${func_stripname_result%"${2}"}\
18579 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18580   && mv -f "$cfgfile.tmp" "$cfgfile" \
18581     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18582 test 0 -eq $? || _lt_function_replace_fail=:
18583
18584
18585   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18586 func_split_long_opt ()\
18587 {\
18588 \    func_split_long_opt_name=${1%%=*}\
18589 \    func_split_long_opt_arg=${1#*=}\
18590 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18591   && mv -f "$cfgfile.tmp" "$cfgfile" \
18592     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18593 test 0 -eq $? || _lt_function_replace_fail=:
18594
18595
18596   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18597 func_split_short_opt ()\
18598 {\
18599 \    func_split_short_opt_arg=${1#??}\
18600 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18601 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18602   && mv -f "$cfgfile.tmp" "$cfgfile" \
18603     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18604 test 0 -eq $? || _lt_function_replace_fail=:
18605
18606
18607   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18608 func_lo2o ()\
18609 {\
18610 \    case ${1} in\
18611 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18612 \      *)    func_lo2o_result=${1} ;;\
18613 \    esac\
18614 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18615   && mv -f "$cfgfile.tmp" "$cfgfile" \
18616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18617 test 0 -eq $? || _lt_function_replace_fail=:
18618
18619
18620   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18621 func_xform ()\
18622 {\
18623     func_xform_result=${1%.*}.lo\
18624 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18625   && mv -f "$cfgfile.tmp" "$cfgfile" \
18626     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18627 test 0 -eq $? || _lt_function_replace_fail=:
18628
18629
18630   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18631 func_arith ()\
18632 {\
18633     func_arith_result=$(( $* ))\
18634 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18635   && mv -f "$cfgfile.tmp" "$cfgfile" \
18636     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18637 test 0 -eq $? || _lt_function_replace_fail=:
18638
18639
18640   sed -e '/^func_len ()$/,/^} # func_len /c\
18641 func_len ()\
18642 {\
18643     func_len_result=${#1}\
18644 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18645   && mv -f "$cfgfile.tmp" "$cfgfile" \
18646     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18647 test 0 -eq $? || _lt_function_replace_fail=:
18648
18649 fi
18650
18651 if test x"$lt_shell_append" = xyes; then
18652   sed -e '/^func_append ()$/,/^} # func_append /c\
18653 func_append ()\
18654 {\
18655     eval "${1}+=\\${2}"\
18656 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18657   && mv -f "$cfgfile.tmp" "$cfgfile" \
18658     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18659 test 0 -eq $? || _lt_function_replace_fail=:
18660
18661
18662   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18663 func_append_quoted ()\
18664 {\
18665 \    func_quote_for_eval "${2}"\
18666 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18667 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18668   && mv -f "$cfgfile.tmp" "$cfgfile" \
18669     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18670 test 0 -eq $? || _lt_function_replace_fail=:
18671
18672
18673   # Save a `func_append' function call where possible by direct use of '+='
18674   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18675     && mv -f "$cfgfile.tmp" "$cfgfile" \
18676       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18677   test 0 -eq $? || _lt_function_replace_fail=:
18678 else
18679   # Save a `func_append' function call even when '+=' is not available
18680   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18681     && mv -f "$cfgfile.tmp" "$cfgfile" \
18682       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18683   test 0 -eq $? || _lt_function_replace_fail=:
18684 fi
18685
18686 if test x"$_lt_function_replace_fail" = x":"; then
18687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18688 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18689 fi
18690
18691
18692    mv -f "$cfgfile" "$ofile" ||
18693     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18694   chmod +x "$ofile"
18695
18696
18697     cat <<_LT_EOF >> "$ofile"
18698
18699 # ### BEGIN LIBTOOL TAG CONFIG: RC
18700
18701 # The linker used to build libraries.
18702 LD=$lt_LD_RC
18703
18704 # How to create reloadable object files.
18705 reload_flag=$lt_reload_flag_RC
18706 reload_cmds=$lt_reload_cmds_RC
18707
18708 # Commands used to build an old-style archive.
18709 old_archive_cmds=$lt_old_archive_cmds_RC
18710
18711 # A language specific compiler.
18712 CC=$lt_compiler_RC
18713
18714 # Is the compiler the GNU compiler?
18715 with_gcc=$GCC_RC
18716
18717 # Compiler flag to turn off builtin functions.
18718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18719
18720 # Additional compiler flags for building library objects.
18721 pic_flag=$lt_lt_prog_compiler_pic_RC
18722
18723 # How to pass a linker flag through the compiler.
18724 wl=$lt_lt_prog_compiler_wl_RC
18725
18726 # Compiler flag to prevent dynamic linking.
18727 link_static_flag=$lt_lt_prog_compiler_static_RC
18728
18729 # Does compiler simultaneously support -c and -o options?
18730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18731
18732 # Whether or not to add -lc for building shared libraries.
18733 build_libtool_need_lc=$archive_cmds_need_lc_RC
18734
18735 # Whether or not to disallow shared libs when runtime libs are static.
18736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18737
18738 # Compiler flag to allow reflexive dlopens.
18739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18740
18741 # Compiler flag to generate shared objects directly from archives.
18742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18743
18744 # Whether the compiler copes with passing no objects directly.
18745 compiler_needs_object=$lt_compiler_needs_object_RC
18746
18747 # Create an old-style archive from a shared archive.
18748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18749
18750 # Create a temporary old-style archive to link instead of a shared archive.
18751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18752
18753 # Commands used to build a shared archive.
18754 archive_cmds=$lt_archive_cmds_RC
18755 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18756
18757 # Commands used to build a loadable module if different from building
18758 # a shared archive.
18759 module_cmds=$lt_module_cmds_RC
18760 module_expsym_cmds=$lt_module_expsym_cmds_RC
18761
18762 # Whether we are building with GNU ld or not.
18763 with_gnu_ld=$lt_with_gnu_ld_RC
18764
18765 # Flag that allows shared libraries with undefined symbols to be built.
18766 allow_undefined_flag=$lt_allow_undefined_flag_RC
18767
18768 # Flag that enforces no undefined symbols.
18769 no_undefined_flag=$lt_no_undefined_flag_RC
18770
18771 # Flag to hardcode \$libdir into a binary during linking.
18772 # This must work even if \$libdir does not exist
18773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18774
18775 # Whether we need a single "-rpath" flag with a separated argument.
18776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18777
18778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18779 # DIR into the resulting binary.
18780 hardcode_direct=$hardcode_direct_RC
18781
18782 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18783 # DIR into the resulting binary and the resulting library dependency is
18784 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18785 # library is relocated.
18786 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18787
18788 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18789 # into the resulting binary.
18790 hardcode_minus_L=$hardcode_minus_L_RC
18791
18792 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18793 # into the resulting binary.
18794 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18795
18796 # Set to "yes" if building a shared library automatically hardcodes DIR
18797 # into the library and all subsequent libraries and executables linked
18798 # against it.
18799 hardcode_automatic=$hardcode_automatic_RC
18800
18801 # Set to yes if linker adds runtime paths of dependent libraries
18802 # to runtime path list.
18803 inherit_rpath=$inherit_rpath_RC
18804
18805 # Whether libtool must link a program against all its dependency libraries.
18806 link_all_deplibs=$link_all_deplibs_RC
18807
18808 # Set to "yes" if exported symbols are required.
18809 always_export_symbols=$always_export_symbols_RC
18810
18811 # The commands to list exported symbols.
18812 export_symbols_cmds=$lt_export_symbols_cmds_RC
18813
18814 # Symbols that should not be listed in the preloaded symbols.
18815 exclude_expsyms=$lt_exclude_expsyms_RC
18816
18817 # Symbols that must always be exported.
18818 include_expsyms=$lt_include_expsyms_RC
18819
18820 # Commands necessary for linking programs (against libraries) with templates.
18821 prelink_cmds=$lt_prelink_cmds_RC
18822
18823 # Commands necessary for finishing linking programs.
18824 postlink_cmds=$lt_postlink_cmds_RC
18825
18826 # Specify filename containing input files.
18827 file_list_spec=$lt_file_list_spec_RC
18828
18829 # How to hardcode a shared library path into an executable.
18830 hardcode_action=$hardcode_action_RC
18831
18832 # ### END LIBTOOL TAG CONFIG: RC
18833 _LT_EOF
18834
18835  ;;
18836     "libtool-patch":C)
18837   if test "$build_selection" = never; then
18838     echo "patch not applied"
18839   elif (mv -f libtool libtool.orig; \
18840         sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
18841     echo "applied successfully"
18842   elif test "$build_selection" = try; then
18843     mv -f libtool.orig libtool
18844     echo "patch failed, thus, using original"
18845   else
18846     echo "patch failed"
18847     as_fn_exit 1
18848   fi
18849  ;;
18850
18851   esac
18852 done # for ac_tag
18853
18854
18855 as_fn_exit 0
18856 _ACEOF
18857 ac_clean_files=$ac_clean_files_save
18858
18859 test $ac_write_fail = 0 ||
18860   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18861
18862
18863 # configure is writing to config.log, and then calls config.status.
18864 # config.status does its own redirection, appending to config.log.
18865 # Unfortunately, on DOS this fails, as config.log is still kept open
18866 # by configure, so config.status won't be able to write to it; its
18867 # output is simply discarded.  So we exec the FD to /dev/null,
18868 # effectively closing config.log, so it can be properly (re)opened and
18869 # appended to by config.status.  When coming back to configure, we
18870 # need to make the FD available again.
18871 if test "$no_create" != yes; then
18872   ac_cs_success=:
18873   ac_config_status_args=
18874   test "$silent" = yes &&
18875     ac_config_status_args="$ac_config_status_args --quiet"
18876   exec 5>/dev/null
18877   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18878   exec 5>>config.log
18879   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18880   # would make configure fail if this is the last instruction.
18881   $ac_cs_success || as_fn_exit 1
18882 fi
18883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18885 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18886 fi
18887
18888
18889 if test x"$have_bison" = xno; then
18890     { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18891 ***
18892 *** Note: The installed yacc version is not GNU Bison.  You need
18893 *** to install Bison if you want to change any grammar (.y) file.
18894 ***" >&5
18895 printf "%s\n" "$as_me:
18896 ***
18897 *** Note: The installed yacc version is not GNU Bison.  You need
18898 *** to install Bison if you want to change any grammar (.y) file.
18899 ***" >&6;}
18900 fi
18901
18902 echo "
18903         Libksba v${VERSION} has been configured as follows:
18904
18905         Revision:  7b3e478  (31550)
18906         Platform:  $host
18907
18908 "
18909