4d9c0e53c81750ca852e29dbecbd034d07e37e5f
[platform/upstream/gpgme.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.5.5.
4 #
5 # Report bugs to <http://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gpgme'
592 PACKAGE_TARNAME='gpgme'
593 PACKAGE_VERSION='1.5.5'
594 PACKAGE_STRING='gpgme 1.5.5'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/gpgme.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 emacs_local_vars_end
639 emacs_local_vars_read_only
640 emacs_local_vars_begin
641 LTLIBOBJS
642 GPGME_CONFIG_HOST
643 GPGME_CONFIG_CFLAGS
644 GPGME_CONFIG_LIBS
645 GPGME_CONFIG_API_VERSION
646 HAVE_UISERVER_FALSE
647 HAVE_UISERVER_TRUE
648 USE_DESCRIPTOR_PASSING_FALSE
649 USE_DESCRIPTOR_PASSING_TRUE
650 LIBASSUAN_LIBS
651 LIBASSUAN_CFLAGS
652 LIBASSUAN_CONFIG
653 GPG_ERROR_MT_LIBS
654 GPG_ERROR_MT_CFLAGS
655 GPG_ERROR_LIBS
656 GPG_ERROR_CFLAGS
657 GPG_ERROR_CONFIG
658 GLIBC21
659 LIBOBJS
660 API__SSIZE_T
661 API__OFF_T
662 INSERT__TYPEDEFS_FOR_GPGME_H
663 NEED__FILE_OFFSET_BITS
664 RUN_G13_TESTS_FALSE
665 RUN_G13_TESTS_TRUE
666 RUN_GPGSM_TESTS_FALSE
667 RUN_GPGSM_TESTS_TRUE
668 RUN_GPG_TESTS_FALSE
669 RUN_GPG_TESTS_TRUE
670 RUN_GPGCONF_TESTS_FALSE
671 RUN_GPGCONF_TESTS_TRUE
672 BUILD_TIMESTAMP
673 BUILD_FILEVERSION
674 BUILD_REVISION
675 HAVE_PTHREAD_FALSE
676 HAVE_PTHREAD_TRUE
677 BUILD_W32_QT_FALSE
678 BUILD_W32_QT_TRUE
679 BUILD_W32_GLIB_FALSE
680 BUILD_W32_GLIB_TRUE
681 HAVE_ANDROID_SYSTEM_FALSE
682 HAVE_ANDROID_SYSTEM_TRUE
683 HAVE_W32CE_SYSTEM_FALSE
684 HAVE_W32CE_SYSTEM_TRUE
685 HAVE_W64_SYSTEM_FALSE
686 HAVE_W64_SYSTEM_TRUE
687 HAVE_W32_SYSTEM_FALSE
688 HAVE_W32_SYSTEM_TRUE
689 HAVE_DOSISH_SYSTEM_FALSE
690 HAVE_DOSISH_SYSTEM_TRUE
691 QT4_CORE_LIBS
692 QT4_CORE_CFLAGS
693 GLIB_MKENUMS
694 GOBJECT_QUERY
695 GLIB_GENMARSHAL
696 GLIB_LIBS
697 GLIB_CFLAGS
698 PKG_CONFIG
699 HAVE_LD_VERSION_SCRIPT_FALSE
700 HAVE_LD_VERSION_SCRIPT_TRUE
701 RC
702 CXXCPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 ac_ct_AR
711 AR
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 SED
719 LIBTOOL
720 OBJDUMP
721 DLLTOOL
722 AS
723 VERSION_NUMBER
724 LIBGPGME_LT_REVISION
725 LIBGPGME_LT_AGE
726 LIBGPGME_LT_CURRENT
727 GITLOG_TO_CHANGELOG
728 am__fastdepCXX_FALSE
729 am__fastdepCXX_TRUE
730 CXXDEPMODE
731 ac_ct_CXX
732 CXXFLAGS
733 CXX
734 EGREP
735 GREP
736 CPP
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__quote
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 SYSROOT
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 AM_BACKSLASH
767 AM_DEFAULT_VERBOSITY
768 AM_DEFAULT_V
769 AM_V
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_maintainer_mode
836 enable_dependency_tracking
837 enable_static
838 enable_shared
839 with_pic
840 enable_fast_install
841 with_gnu_ld
842 with_sysroot
843 enable_libtool_lock
844 enable_glibtest
845 enable_w32_glib
846 enable_w32_qt
847 enable_fixed_path
848 enable_gpgconf_test
849 enable_gpg_test
850 enable_gpgsm_test
851 enable_g13_test
852 enable_largefile
853 with_libgpg_error_prefix
854 with_gpg_error_prefix
855 with_libassuan_prefix
856 enable_fd_passing
857 '
858       ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 SYSROOT
862 CC
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
867 CPP
868 CXX
869 CXXFLAGS
870 CCC
871 CXXCPP'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211       as_fn_error $? "invalid package name: $ac_useropt"
1212     ac_useropt_orig=$ac_useropt
1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214     case $ac_user_opts in
1215       *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219          ac_unrecognized_sep=', ';;
1220     esac
1221     eval with_$ac_useropt=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     case $ac_envvar in #(
1265       '' | [0-9]* | *[!_$as_cr_alnum]* )
1266       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267     esac
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288   case $enable_option_checking in
1289     no) ;;
1290     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292   esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297                 datadir sysconfdir sharedstatedir localstatedir includedir \
1298                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299                 libdir localedir mandir
1300 do
1301   eval ac_val=\$$ac_var
1302   # Remove trailing slashes.
1303   case $ac_val in
1304     */ )
1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306       eval $ac_var=\$ac_val;;
1307   esac
1308   # Be sure to have absolute directory names.
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures gpgme 1.5.5 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking ...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 Program names:
1470   --program-prefix=PREFIX            prepend PREFIX to installed program names
1471   --program-suffix=SUFFIX            append SUFFIX to installed program names
1472   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481   case $ac_init_help in
1482      short | recursive ) echo "Configuration of gpgme 1.5.5:";;
1483    esac
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-option-checking  ignore unrecognized --enable/--with options
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-silent-rules   less verbose build output (undo: "make V=1")
1491   --disable-silent-rules  verbose build output (undo: "make V=0")
1492   --enable-maintainer-mode
1493                           enable make rules and dependencies not useful (and
1494                           sometimes confusing) to the casual installer
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   --disable-glibtest      do not try to compile and run a test GLIB program
1505   --enable-w32-glib       build GPGME Glib for W32
1506   --enable-w32-qt         build GPGME Qt for W32
1507   --enable-fixed-path=PATH
1508                           locate binaries only via this PATH
1509   --disable-gpgconf-test  disable GPGCONF regression test
1510   --disable-gpg-test      disable GPG regression test
1511   --disable-gpgsm-test    disable GPGSM regression test
1512   --disable-g13-test      disable G13 regression test
1513   --disable-largefile     omit support for large files
1514   --disable-fd-passing    do not use FD passing
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522   --with-sysroot=DIR Search for dependent libraries within DIR
1523                         (or the compiler's sysroot if not specified).
1524   --with-libgpg-error-prefix=PFX
1525                           prefix where GPG Error is installed (optional)
1526
1527   --with-libassuan-prefix=PFX
1528                           prefix where LIBASSUAN is installed (optional)
1529
1530 Some influential environment variables:
1531   SYSROOT     locate config scripts also below that directory
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CPP         C preprocessor
1540   CXX         C++ compiler command
1541   CXXFLAGS    C++ compiler flags
1542   CXXCPP      C++ preprocessor
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <http://bugs.gnupg.org>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553   # If there are subdirs, report their specific --help.
1554   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555     test -d "$ac_dir" ||
1556       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557       continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 gpgme configure 1.5.5
1611 generated by GNU Autoconf 2.69
1612
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext
1631   if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_compile") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest.$ac_objext; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_cpp ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   if { { ac_try="$ac_cpp conftest.$ac_ext"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } > conftest.i && {
1684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        }; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692     ac_retval=1
1693 fi
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_cpp
1698
1699 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1702 # the include files in INCLUDES and setting the cache variable VAR
1703 # accordingly.
1704 ac_fn_c_check_header_mongrel ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if eval \${$3+:} false; then :
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711   $as_echo_n "(cached) " >&6
1712 fi
1713 eval ac_res=\$$3
1714                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 else
1717   # Is the header compilable?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1719 $as_echo_n "checking $2 usability... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726   ac_header_compiler=yes
1727 else
1728   ac_header_compiler=no
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1732 $as_echo "$ac_header_compiler" >&6; }
1733
1734 # Is the header present?
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1736 $as_echo_n "checking $2 presence... " >&6; }
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h.  */
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_cpp "$LINENO"; then :
1742   ac_header_preproc=yes
1743 else
1744   ac_header_preproc=no
1745 fi
1746 rm -f conftest.err conftest.i conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1748 $as_echo "$ac_header_preproc" >&6; }
1749
1750 # So?  What about this header?
1751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1752   yes:no: )
1753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1754 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757     ;;
1758   no:yes:* )
1759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1760 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1761     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1762 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1763     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1764 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1766 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ( $as_echo "## ------------------------------------ ##
1770 ## Report this to http://bugs.gnupg.org ##
1771 ## ------------------------------------ ##"
1772      ) | sed "s/^/$as_me: WARNING:     /" >&2
1773     ;;
1774 esac
1775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 else
1780   eval "$3=\$ac_header_compiler"
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 fi
1786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_mongrel
1789
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1794 ac_fn_c_try_run ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>&5
1805   ac_status=$?
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808   { { case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_try") 2>&5
1815   ac_status=$?
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; }; }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: program exited with status $ac_status" >&5
1821        $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824        ac_retval=$ac_status
1825 fi
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_run
1831
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 $4
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_header_compile
1862
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_compile
1900
1901 # ac_fn_c_try_link LINENO
1902 # -----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_link ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   rm -f conftest.$ac_objext conftest$ac_exeext
1908   if { { ac_try="$ac_link"
1909 case "(($ac_try" in
1910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911   *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915   (eval "$ac_link") 2>conftest.err
1916   ac_status=$?
1917   if test -s conftest.err; then
1918     grep -v '^ *+' conftest.err >conftest.er1
1919     cat conftest.er1 >&5
1920     mv -f conftest.er1 conftest.err
1921   fi
1922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923   test $ac_status = 0; } && {
1924          test -z "$ac_c_werror_flag" ||
1925          test ! -s conftest.err
1926        } && test -s conftest$ac_exeext && {
1927          test "$cross_compiling" = yes ||
1928          test -x conftest$ac_exeext
1929        }; then :
1930   ac_retval=0
1931 else
1932   $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935         ac_retval=1
1936 fi
1937   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939   # interfere with the next link command; also delete a directory that is
1940   # left behind by Apple's compiler.  We do this before executing the actions.
1941   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_link
1946
1947 # ac_fn_c_check_func LINENO FUNC VAR
1948 # ----------------------------------
1949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1950 ac_fn_c_check_func ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1962 #define $2 innocuous_$2
1963
1964 /* System header to define __stub macros and hopefully few prototypes,
1965     which can conflict with char $2 (); below.
1966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1967     <limits.h> exists even on freestanding compilers.  */
1968
1969 #ifdef __STDC__
1970 # include <limits.h>
1971 #else
1972 # include <assert.h>
1973 #endif
1974
1975 #undef $2
1976
1977 /* Override any GCC internal prototype to avoid an error.
1978    Use char because int might match the return type of a GCC
1979    builtin and then its argument prototype would still apply.  */
1980 #ifdef __cplusplus
1981 extern "C"
1982 #endif
1983 char $2 ();
1984 /* The GNU C library defines this for functions which it implements
1985     to always fail with ENOSYS.  Some functions are actually named
1986     something starting with __ and the normal name is an alias.  */
1987 #if defined __stub_$2 || defined __stub___$2
1988 choke me
1989 #endif
1990
1991 int
1992 main ()
1993 {
1994 return $2 ();
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_link "$LINENO"; then :
2000   eval "$3=yes"
2001 else
2002   eval "$3=no"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext \
2005     conftest$ac_exeext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_check_func
2013
2014 # ac_fn_cxx_try_cpp LINENO
2015 # ------------------------
2016 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_cxx_try_cpp ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   if { { ac_try="$ac_cpp conftest.$ac_ext"
2021 case "(($ac_try" in
2022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023   *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2028   ac_status=$?
2029   if test -s conftest.err; then
2030     grep -v '^ *+' conftest.err >conftest.er1
2031     cat conftest.er1 >&5
2032     mv -f conftest.er1 conftest.err
2033   fi
2034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035   test $ac_status = 0; } > conftest.i && {
2036          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2037          test ! -s conftest.err
2038        }; then :
2039   ac_retval=0
2040 else
2041   $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044     ac_retval=1
2045 fi
2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047   as_fn_set_status $ac_retval
2048
2049 } # ac_fn_cxx_try_cpp
2050
2051 # ac_fn_cxx_try_link LINENO
2052 # -------------------------
2053 # Try to link conftest.$ac_ext, and return whether this succeeded.
2054 ac_fn_cxx_try_link ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   rm -f conftest.$ac_objext conftest$ac_exeext
2058   if { { ac_try="$ac_link"
2059 case "(($ac_try" in
2060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061   *) ac_try_echo=$ac_try;;
2062 esac
2063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064 $as_echo "$ac_try_echo"; } >&5
2065   (eval "$ac_link") 2>conftest.err
2066   ac_status=$?
2067   if test -s conftest.err; then
2068     grep -v '^ *+' conftest.err >conftest.er1
2069     cat conftest.er1 >&5
2070     mv -f conftest.er1 conftest.err
2071   fi
2072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073   test $ac_status = 0; } && {
2074          test -z "$ac_cxx_werror_flag" ||
2075          test ! -s conftest.err
2076        } && test -s conftest$ac_exeext && {
2077          test "$cross_compiling" = yes ||
2078          test -x conftest$ac_exeext
2079        }; then :
2080   ac_retval=0
2081 else
2082   $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085         ac_retval=1
2086 fi
2087   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2088   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2089   # interfere with the next link command; also delete a directory that is
2090   # left behind by Apple's compiler.  We do this before executing the actions.
2091   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093   as_fn_set_status $ac_retval
2094
2095 } # ac_fn_cxx_try_link
2096
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   if test "$cross_compiling" = yes; then
2106     # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0;
2115 return test_array [0];
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   ac_lo=0 ac_mid=0
2123   while :; do
2124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139   ac_hi=$ac_mid; break
2140 else
2141   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142                         if test $ac_lo -le $ac_mid; then
2143                           ac_lo= ac_hi=
2144                           break
2145                         fi
2146                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149   done
2150 else
2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) < 0)];
2158 test_array [0] = 0;
2159 return test_array [0];
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166   ac_hi=-1 ac_mid=-1
2167   while :; do
2168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175 test_array [0] = 0;
2176 return test_array [0];
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   ac_lo=$ac_mid; break
2184 else
2185   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2186                         if test $ac_mid -le $ac_hi; then
2187                           ac_lo= ac_hi=
2188                           break
2189                         fi
2190                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193   done
2194 else
2195   ac_lo= ac_hi=
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 # Binary search between lo and hi bounds.
2201 while test "x$ac_lo" != "x$ac_hi"; do
2202   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 test_array [0] = 0;
2211 return test_array [0];
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   ac_hi=$ac_mid
2219 else
2220   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224 case $ac_lo in #((
2225 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226 '') ac_retval=1 ;;
2227 esac
2228   else
2229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 static long int longval () { return $2; }
2233 static unsigned long int ulongval () { return $2; }
2234 #include <stdio.h>
2235 #include <stdlib.h>
2236 int
2237 main ()
2238 {
2239
2240   FILE *f = fopen ("conftest.val", "w");
2241   if (! f)
2242     return 1;
2243   if (($2) < 0)
2244     {
2245       long int i = longval ();
2246       if (i != ($2))
2247         return 1;
2248       fprintf (f, "%ld", i);
2249     }
2250   else
2251     {
2252       unsigned long int i = ulongval ();
2253       if (i != ($2))
2254         return 1;
2255       fprintf (f, "%lu", i);
2256     }
2257   /* Do not output a trailing newline, as this causes \r\n confusion
2258      on some platforms.  */
2259   return ferror (f) || fclose (f) != 0;
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_run "$LINENO"; then :
2266   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267 else
2268   ac_retval=1
2269 fi
2270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271   conftest.$ac_objext conftest.beam conftest.$ac_ext
2272 rm -f conftest.val
2273
2274   fi
2275   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276   as_fn_set_status $ac_retval
2277
2278 } # ac_fn_c_compute_int
2279
2280 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2281 # -------------------------------------------
2282 # Tests whether TYPE exists after having included INCLUDES, setting cache
2283 # variable VAR accordingly.
2284 ac_fn_c_check_type ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290   $as_echo_n "(cached) " >&6
2291 else
2292   eval "$3=no"
2293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 int
2297 main ()
2298 {
2299 if (sizeof ($2))
2300          return 0;
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h.  */
2308 $4
2309 int
2310 main ()
2311 {
2312 if (sizeof (($2)))
2313             return 0;
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319
2320 else
2321   eval "$3=yes"
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 eval ac_res=\$$3
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331
2332 } # ac_fn_c_check_type
2333
2334 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2335 # ---------------------------------------------
2336 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2337 # accordingly.
2338 ac_fn_c_check_decl ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   as_decl_name=`echo $2|sed 's/ *(.*//'`
2342   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2344 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2345 if eval \${$3+:} false; then :
2346   $as_echo_n "(cached) " >&6
2347 else
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $4
2351 int
2352 main ()
2353 {
2354 #ifndef $as_decl_name
2355 #ifdef __cplusplus
2356   (void) $as_decl_use;
2357 #else
2358   (void) $as_decl_name;
2359 #endif
2360 #endif
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367   eval "$3=yes"
2368 else
2369   eval "$3=no"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 eval ac_res=\$$3
2374                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377
2378 } # ac_fn_c_check_decl
2379
2380 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2381 # ----------------------------------------------------
2382 # Tries to find if the field MEMBER exists in type AGGR, after including
2383 # INCLUDES, setting cache variable VAR accordingly.
2384 ac_fn_c_check_member ()
2385 {
2386   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2388 $as_echo_n "checking for $2.$3... " >&6; }
2389 if eval \${$4+:} false; then :
2390   $as_echo_n "(cached) " >&6
2391 else
2392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h.  */
2394 $5
2395 int
2396 main ()
2397 {
2398 static $2 ac_aggr;
2399 if (ac_aggr.$3)
2400 return 0;
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406   eval "$4=yes"
2407 else
2408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 $5
2411 int
2412 main ()
2413 {
2414 static $2 ac_aggr;
2415 if (sizeof ac_aggr.$3)
2416 return 0;
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422   eval "$4=yes"
2423 else
2424   eval "$4=no"
2425 fi
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 fi
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 eval ac_res=\$$4
2431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434
2435 } # ac_fn_c_check_member
2436 cat >config.log <<_ACEOF
2437 This file contains any messages produced by compilers while
2438 running configure, to aid debugging if configure makes a mistake.
2439
2440 It was created by gpgme $as_me 1.5.5, which was
2441 generated by GNU Autoconf 2.69.  Invocation command line was
2442
2443   $ $0 $@
2444
2445 _ACEOF
2446 exec 5>>config.log
2447 {
2448 cat <<_ASUNAME
2449 ## --------- ##
2450 ## Platform. ##
2451 ## --------- ##
2452
2453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458
2459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2460 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2461
2462 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2463 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2465 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2466 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2467 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2468 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2469
2470 _ASUNAME
2471
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477     $as_echo "PATH: $as_dir"
2478   done
2479 IFS=$as_save_IFS
2480
2481 } >&5
2482
2483 cat >&5 <<_ACEOF
2484
2485
2486 ## ----------- ##
2487 ## Core tests. ##
2488 ## ----------- ##
2489
2490 _ACEOF
2491
2492
2493 # Keep a trace of the command line.
2494 # Strip out --no-create and --no-recursion so they do not pile up.
2495 # Strip out --silent because we don't want to record it for future runs.
2496 # Also quote any args containing shell meta-characters.
2497 # Make two passes to allow for proper duplicate-argument suppression.
2498 ac_configure_args=
2499 ac_configure_args0=
2500 ac_configure_args1=
2501 ac_must_keep_next=false
2502 for ac_pass in 1 2
2503 do
2504   for ac_arg
2505   do
2506     case $ac_arg in
2507     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2508     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2509     | -silent | --silent | --silen | --sile | --sil)
2510       continue ;;
2511     *\'*)
2512       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2513     esac
2514     case $ac_pass in
2515     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516     2)
2517       as_fn_append ac_configure_args1 " '$ac_arg'"
2518       if test $ac_must_keep_next = true; then
2519         ac_must_keep_next=false # Got value, back to normal.
2520       else
2521         case $ac_arg in
2522           *=* | --config-cache | -C | -disable-* | --disable-* \
2523           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2524           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2525           | -with-* | --with-* | -without-* | --without-* | --x)
2526             case "$ac_configure_args0 " in
2527               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2528             esac
2529             ;;
2530           -* ) ac_must_keep_next=true ;;
2531         esac
2532       fi
2533       as_fn_append ac_configure_args " '$ac_arg'"
2534       ;;
2535     esac
2536   done
2537 done
2538 { ac_configure_args0=; unset ac_configure_args0;}
2539 { ac_configure_args1=; unset ac_configure_args1;}
2540
2541 # When interrupted or exit'd, cleanup temporary files, and complete
2542 # config.log.  We remove comments because anyway the quotes in there
2543 # would cause problems or look ugly.
2544 # WARNING: Use '\'' to represent an apostrophe within the trap.
2545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2546 trap 'exit_status=$?
2547   # Save into config.log some information that might help in debugging.
2548   {
2549     echo
2550
2551     $as_echo "## ---------------- ##
2552 ## Cache variables. ##
2553 ## ---------------- ##"
2554     echo
2555     # The following way of writing the cache mishandles newlines in values,
2556 (
2557   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558     eval ac_val=\$$ac_var
2559     case $ac_val in #(
2560     *${as_nl}*)
2561       case $ac_var in #(
2562       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2564       esac
2565       case $ac_var in #(
2566       _ | IFS | as_nl) ;; #(
2567       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568       *) { eval $ac_var=; unset $ac_var;} ;;
2569       esac ;;
2570     esac
2571   done
2572   (set) 2>&1 |
2573     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574     *${as_nl}ac_space=\ *)
2575       sed -n \
2576         "s/'\''/'\''\\\\'\'''\''/g;
2577           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2578       ;; #(
2579     *)
2580       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581       ;;
2582     esac |
2583     sort
2584 )
2585     echo
2586
2587     $as_echo "## ----------------- ##
2588 ## Output variables. ##
2589 ## ----------------- ##"
2590     echo
2591     for ac_var in $ac_subst_vars
2592     do
2593       eval ac_val=\$$ac_var
2594       case $ac_val in
2595       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596       esac
2597       $as_echo "$ac_var='\''$ac_val'\''"
2598     done | sort
2599     echo
2600
2601     if test -n "$ac_subst_files"; then
2602       $as_echo "## ------------------- ##
2603 ## File substitutions. ##
2604 ## ------------------- ##"
2605       echo
2606       for ac_var in $ac_subst_files
2607       do
2608         eval ac_val=\$$ac_var
2609         case $ac_val in
2610         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611         esac
2612         $as_echo "$ac_var='\''$ac_val'\''"
2613       done | sort
2614       echo
2615     fi
2616
2617     if test -s confdefs.h; then
2618       $as_echo "## ----------- ##
2619 ## confdefs.h. ##
2620 ## ----------- ##"
2621       echo
2622       cat confdefs.h
2623       echo
2624     fi
2625     test "$ac_signal" != 0 &&
2626       $as_echo "$as_me: caught signal $ac_signal"
2627     $as_echo "$as_me: exit $exit_status"
2628   } >&5
2629   rm -f core *.core core.conftest.* &&
2630     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2631     exit $exit_status
2632 ' 0
2633 for ac_signal in 1 2 13 15; do
2634   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635 done
2636 ac_signal=0
2637
2638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2639 rm -f -r conftest* confdefs.h
2640
2641 $as_echo "/* confdefs.h */" > confdefs.h
2642
2643 # Predefined preprocessor variables.
2644
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_NAME "$PACKAGE_NAME"
2647 _ACEOF
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2651 _ACEOF
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2655 _ACEOF
2656
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_STRING "$PACKAGE_STRING"
2659 _ACEOF
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2663 _ACEOF
2664
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_URL "$PACKAGE_URL"
2667 _ACEOF
2668
2669
2670 # Let the site file select an alternate cache file if it wants to.
2671 # Prefer an explicitly selected file to automatically selected ones.
2672 ac_site_file1=NONE
2673 ac_site_file2=NONE
2674 if test -n "$CONFIG_SITE"; then
2675   # We do not want a PATH search for config.site.
2676   case $CONFIG_SITE in #((
2677     -*)  ac_site_file1=./$CONFIG_SITE;;
2678     */*) ac_site_file1=$CONFIG_SITE;;
2679     *)   ac_site_file1=./$CONFIG_SITE;;
2680   esac
2681 elif test "x$prefix" != xNONE; then
2682   ac_site_file1=$prefix/share/config.site
2683   ac_site_file2=$prefix/etc/config.site
2684 else
2685   ac_site_file1=$ac_default_prefix/share/config.site
2686   ac_site_file2=$ac_default_prefix/etc/config.site
2687 fi
2688 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689 do
2690   test "x$ac_site_file" = xNONE && continue
2691   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2692     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2693 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2694     sed 's/^/| /' "$ac_site_file" >&5
2695     . "$ac_site_file" \
2696       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 as_fn_error $? "failed to load site script $ac_site_file
2699 See \`config.log' for more details" "$LINENO" 5; }
2700   fi
2701 done
2702
2703 if test -r "$cache_file"; then
2704   # Some versions of bash will fail to source /dev/null (special files
2705   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2706   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2707     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2708 $as_echo "$as_me: loading cache $cache_file" >&6;}
2709     case $cache_file in
2710       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2711       *)                      . "./$cache_file";;
2712     esac
2713   fi
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2716 $as_echo "$as_me: creating cache $cache_file" >&6;}
2717   >$cache_file
2718 fi
2719
2720 as_fn_append ac_header_list " locale.h"
2721 as_fn_append ac_header_list " sys/select.h"
2722 as_fn_append ac_header_list " sys/uio.h"
2723 as_fn_append ac_header_list " argp.h"
2724 as_fn_append ac_header_list " unistd.h"
2725 as_fn_append ac_header_list " sys/time.h"
2726 as_fn_append ac_header_list " sys/types.h"
2727 as_fn_append ac_header_list " sys/stat.h"
2728 # Check that the precious variables saved in the cache have kept the same
2729 # value.
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733   eval ac_new_set=\$ac_env_${ac_var}_set
2734   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735   eval ac_new_val=\$ac_env_${ac_var}_value
2736   case $ac_old_set,$ac_new_set in
2737     set,)
2738       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740       ac_cache_corrupted=: ;;
2741     ,set)
2742       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2744       ac_cache_corrupted=: ;;
2745     ,);;
2746     *)
2747       if test "x$ac_old_val" != "x$ac_new_val"; then
2748         # differences in whitespace do not lead to failure.
2749         ac_old_val_w=`echo x $ac_old_val`
2750         ac_new_val_w=`echo x $ac_new_val`
2751         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754           ac_cache_corrupted=:
2755         else
2756           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758           eval $ac_var=\$ac_old_val
2759         fi
2760         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2761 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2762         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2764       fi;;
2765   esac
2766   # Pass precious variables to config.status.
2767   if test "$ac_new_set" = set; then
2768     case $ac_new_val in
2769     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2770     *) ac_arg=$ac_var=$ac_new_val ;;
2771     esac
2772     case " $ac_configure_args " in
2773       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2774       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2775     esac
2776   fi
2777 done
2778 if $ac_cache_corrupted; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2784 fi
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795
2796
2797 # LT Version numbers, remember to change them just *before* a release.
2798 #   (Code changed:                      REVISION++)
2799 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2800 #   (Interfaces added:                  AGE++)
2801 #   (Interfaces removed/changed:        AGE=0)
2802 #
2803 LIBGPGME_LT_CURRENT=24
2804 # Subtract 2 from this value if you want to make the LFS transition an
2805 # ABI break.  [Note to self: Remove this comment with the next regular break.]
2806 LIBGPGME_LT_AGE=13
2807 LIBGPGME_LT_REVISION=4
2808
2809 # If the API is changed in an incompatible way: increment the next counter.
2810 GPGME_CONFIG_API_VERSION=1
2811 ##############################################
2812
2813 NEED_GPG_ERROR_VERSION=1.11
2814 NEED_LIBASSUAN_API=2
2815 NEED_LIBASSUAN_VERSION=2.0.2
2816
2817
2818 PACKAGE=$PACKAGE_NAME
2819 VERSION=$PACKAGE_VERSION
2820
2821 ac_aux_dir=
2822 for ac_dir in build-aux "$srcdir"/build-aux; do
2823   if test -f "$ac_dir/install-sh"; then
2824     ac_aux_dir=$ac_dir
2825     ac_install_sh="$ac_aux_dir/install-sh -c"
2826     break
2827   elif test -f "$ac_dir/install.sh"; then
2828     ac_aux_dir=$ac_dir
2829     ac_install_sh="$ac_aux_dir/install.sh -c"
2830     break
2831   elif test -f "$ac_dir/shtool"; then
2832     ac_aux_dir=$ac_dir
2833     ac_install_sh="$ac_aux_dir/shtool install -c"
2834     break
2835   fi
2836 done
2837 if test -z "$ac_aux_dir"; then
2838   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2839 fi
2840
2841 # These three variables are undocumented and unsupported,
2842 # and are intended to be withdrawn in a future Autoconf release.
2843 # They can cause serious problems if a builder's source tree is in a directory
2844 # whose full name contains unusual characters.
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2847 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2848
2849
2850
2851
2852 ac_config_headers="$ac_config_headers config.h"
2853
2854 am__api_version='1.14'
2855
2856 # Find a good install program.  We prefer a C program (faster),
2857 # so one script is as good as another.  But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if ${ac_cv_path_install+:} false; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881     # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883   ./ | .// | /[cC]/* | \
2884   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2886   /usr/ucb/* ) ;;
2887   *)
2888     # OSF1 and SCO ODT 3.0 have their own names for install.
2889     # Don't use installbsd from OSF since it installs stuff as root
2890     # by default.
2891     for ac_prog in ginstall scoinst install; do
2892       for ac_exec_ext in '' $ac_executable_extensions; do
2893         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894           if test $ac_prog = install &&
2895             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896             # AIX install.  It has an incompatible calling convention.
2897             :
2898           elif test $ac_prog = install &&
2899             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900             # program-specific install script used by HP pwplus--don't use.
2901             :
2902           else
2903             rm -rf conftest.one conftest.two conftest.dir
2904             echo one > conftest.one
2905             echo two > conftest.two
2906             mkdir conftest.dir
2907             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908               test -s conftest.one && test -s conftest.two &&
2909               test -s conftest.dir/conftest.one &&
2910               test -s conftest.dir/conftest.two
2911             then
2912               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2913               break 3
2914             fi
2915           fi
2916         fi
2917       done
2918     done
2919     ;;
2920 esac
2921
2922   done
2923 IFS=$as_save_IFS
2924
2925 rm -rf conftest.one conftest.two conftest.dir
2926
2927 fi
2928   if test "${ac_cv_path_install+set}" = set; then
2929     INSTALL=$ac_cv_path_install
2930   else
2931     # As a last resort, use the slow shell script.  Don't cache a
2932     # value for INSTALL within a source directory, because that will
2933     # break other packages using the cache if that directory is
2934     # removed, or if the value is a relative name.
2935     INSTALL=$ac_install_sh
2936   fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2940
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Reject unsafe characters in $srcdir or the absolute working directory
2952 # name.  Accept space and tab only in the latter.
2953 am_lf='
2954 '
2955 case `pwd` in
2956   *[\\\"\#\$\&\'\`$am_lf]*)
2957     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2958 esac
2959 case $srcdir in
2960   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2961     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2962 esac
2963
2964 # Do 'set' in a subshell so we don't clobber the current shell's
2965 # arguments.  Must try -L first in case configure is actually a
2966 # symlink; some systems play weird games with the mod time of symlinks
2967 # (eg FreeBSD returns the mod time of the symlink's containing
2968 # directory).
2969 if (
2970    am_has_slept=no
2971    for am_try in 1 2; do
2972      echo "timestamp, slept: $am_has_slept" > conftest.file
2973      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974      if test "$*" = "X"; then
2975         # -L didn't work.
2976         set X `ls -t "$srcdir/configure" conftest.file`
2977      fi
2978      if test "$*" != "X $srcdir/configure conftest.file" \
2979         && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981         # If neither matched, then we have a broken ls.  This can happen
2982         # if, for instance, CONFIG_SHELL is bash and it inherits a
2983         # broken ls alias from the environment.  This has actually
2984         # happened.  Such a system could not be considered "sane".
2985         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2986   alias in your environment" "$LINENO" 5
2987      fi
2988      if test "$2" = conftest.file || test $am_try -eq 2; then
2989        break
2990      fi
2991      # Just in case.
2992      sleep 1
2993      am_has_slept=yes
2994    done
2995    test "$2" = conftest.file
2996    )
2997 then
2998    # Ok.
2999    :
3000 else
3001    as_fn_error $? "newly created file is older than distributed files!
3002 Check your system clock" "$LINENO" 5
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 # If we didn't sleep, we still need to ensure time stamps of config.status and
3007 # generated files are strictly newer.
3008 am_sleep_pid=
3009 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3010   ( sleep 1 ) &
3011   am_sleep_pid=$!
3012 fi
3013
3014 rm -f conftest.file
3015
3016 test "$program_prefix" != NONE &&
3017   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3018 # Use a double $ so make ignores it.
3019 test "$program_suffix" != NONE &&
3020   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3021 # Double any \ or $.
3022 # By default was `s,x,x', remove it if useless.
3023 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3024 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3025
3026 # Expand $ac_aux_dir to an absolute path.
3027 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3028
3029 if test x"${MISSING+set}" != xset; then
3030   case $am_aux_dir in
3031   *\ * | *\     *)
3032     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3033   *)
3034     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3035   esac
3036 fi
3037 # Use eval to expand $SHELL
3038 if eval "$MISSING --is-lightweight"; then
3039   am_missing_run="$MISSING "
3040 else
3041   am_missing_run=
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3043 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3044 fi
3045
3046 if test x"${install_sh}" != xset; then
3047   case $am_aux_dir in
3048   *\ * | *\     *)
3049     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3050   *)
3051     install_sh="\${SHELL} $am_aux_dir/install-sh"
3052   esac
3053 fi
3054
3055 # Installed binaries are usually stripped using 'strip' when the user
3056 # run "make install-strip".  However 'strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the 'STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060   if test -n "$ac_tool_prefix"; then
3061   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_STRIP+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$STRIP"; then
3069   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 $as_echo "$STRIP" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_STRIP"; then
3100   ac_ct_STRIP=$STRIP
3101   # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   if test -n "$ac_ct_STRIP"; then
3109   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114   IFS=$as_save_IFS
3115   test -z "$as_dir" && as_dir=.
3116     for ac_exec_ext in '' $ac_executable_extensions; do
3117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118     ac_cv_prog_ac_ct_STRIP="strip"
3119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123   done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3131 $as_echo "$ac_ct_STRIP" >&6; }
3132 else
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137   if test "x$ac_ct_STRIP" = x; then
3138     STRIP=":"
3139   else
3140     case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146     STRIP=$ac_ct_STRIP
3147   fi
3148 else
3149   STRIP="$ac_cv_prog_STRIP"
3150 fi
3151
3152 fi
3153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3157 if test -z "$MKDIR_P"; then
3158   if ${ac_cv_path_mkdir+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_prog in mkdir gmkdir; do
3167          for ac_exec_ext in '' $ac_executable_extensions; do
3168            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3169            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170              'mkdir (GNU coreutils) '* | \
3171              'mkdir (coreutils) '* | \
3172              'mkdir (fileutils) '4.1*)
3173                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3174                break 3;;
3175            esac
3176          done
3177        done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182
3183   test -d ./--version && rmdir ./--version
3184   if test "${ac_cv_path_mkdir+set}" = set; then
3185     MKDIR_P="$ac_cv_path_mkdir -p"
3186   else
3187     # As a last resort, use the slow shell script.  Don't cache a
3188     # value for MKDIR_P within a source directory, because that will
3189     # break other packages using the cache if that directory is
3190     # removed, or if the value is a relative name.
3191     MKDIR_P="$ac_install_sh -d"
3192   fi
3193 fi
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3195 $as_echo "$MKDIR_P" >&6; }
3196
3197 for ac_prog in gawk mawk nawk awk
3198 do
3199   # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_AWK+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$AWK"; then
3207   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
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_AWK="$ac_prog"
3217     $as_echo "$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 AWK=$ac_cv_prog_AWK
3227 if test -n "$AWK"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236   test -n "$AWK" && break
3237 done
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 set x ${MAKE-make}
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   cat >conftest.make <<\_ACEOF
3247 SHELL = /bin/sh
3248 all:
3249         @echo '@@@%%%=$(MAKE)=@@@%%%'
3250 _ACEOF
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253   *@@@%%%=?*=@@@%%%*)
3254     eval ac_cv_prog_make_${ac_make}_set=yes;;
3255   *)
3256     eval ac_cv_prog_make_${ac_make}_set=no;;
3257 esac
3258 rm -f conftest.make
3259 fi
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263   SET_MAKE=
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267   SET_MAKE="MAKE=${MAKE-make}"
3268 fi
3269
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3273   am__leading_dot=.
3274 else
3275   am__leading_dot=_
3276 fi
3277 rmdir .tst 2>/dev/null
3278
3279 # Check whether --enable-silent-rules was given.
3280 if test "${enable_silent_rules+set}" = set; then :
3281   enableval=$enable_silent_rules;
3282 fi
3283
3284 case $enable_silent_rules in # (((
3285   yes) AM_DEFAULT_VERBOSITY=0;;
3286    no) AM_DEFAULT_VERBOSITY=1;;
3287     *) AM_DEFAULT_VERBOSITY=1;;
3288 esac
3289 am_make=${MAKE-make}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3291 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3292 if ${am_cv_make_support_nested_variables+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if $as_echo 'TRUE=$(BAR$(V))
3296 BAR0=false
3297 BAR1=true
3298 V=1
3299 am__doit:
3300         @$(TRUE)
3301 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3302   am_cv_make_support_nested_variables=yes
3303 else
3304   am_cv_make_support_nested_variables=no
3305 fi
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3308 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3309 if test $am_cv_make_support_nested_variables = yes; then
3310     AM_V='$(V)'
3311   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3312 else
3313   AM_V=$AM_DEFAULT_VERBOSITY
3314   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3315 fi
3316 AM_BACKSLASH='\'
3317
3318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3319   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3320   # is not polluted with repeated "-I."
3321   am__isrc=' -I$(srcdir)'
3322   # test to see if srcdir already configured
3323   if test -f $srcdir/config.status; then
3324     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3325   fi
3326 fi
3327
3328 # test whether we have cygpath
3329 if test -z "$CYGPATH_W"; then
3330   if (cygpath --version) >/dev/null 2>/dev/null; then
3331     CYGPATH_W='cygpath -w'
3332   else
3333     CYGPATH_W=echo
3334   fi
3335 fi
3336
3337
3338 # Define the identity of the package.
3339  PACKAGE='gpgme'
3340  VERSION='1.5.5'
3341
3342
3343 cat >>confdefs.h <<_ACEOF
3344 #define PACKAGE "$PACKAGE"
3345 _ACEOF
3346
3347
3348 cat >>confdefs.h <<_ACEOF
3349 #define VERSION "$VERSION"
3350 _ACEOF
3351
3352 # Some tools Automake needs.
3353
3354 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3355
3356
3357 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3358
3359
3360 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3361
3362
3363 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3364
3365
3366 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3367
3368 # For better backward compatibility.  To be removed once Automake 1.9.x
3369 # dies out for good.  For more background, see:
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3372 mkdir_p='$(MKDIR_P)'
3373
3374 # We need awk for the "check" target.  The system "awk" is bad on
3375 # some platforms.
3376 # Always define AMTAR for backward compatibility.  Yes, it's still used
3377 # in the wild :-(  We should find a proper way to deprecate it ...
3378 AMTAR='$${TAR-tar}'
3379
3380
3381 # We'll loop over all known methods to create a tar archive until one works.
3382 _am_tools='gnutar  pax cpio none'
3383
3384 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3385
3386
3387
3388
3389
3390
3391 # POSIX will say in a future version that running "rm -f" with no argument
3392 # is OK; and we want to be able to make that assumption in our Makefile
3393 # recipes.  So use an aggressive probe to check that the usage we want is
3394 # actually supported "in the wild" to an acceptable degree.
3395 # See automake bug#10828.
3396 # To make any issue more visible, cause the running configure to be aborted
3397 # by default if the 'rm' program in use doesn't match our expectations; the
3398 # user can still override this though.
3399 if rm -f && rm -fr && rm -rf; then : OK; else
3400   cat >&2 <<'END'
3401 Oops!
3402
3403 Your 'rm' program seems unable to run without file operands specified
3404 on the command line, even when the '-f' option is present.  This is contrary
3405 to the behaviour of most rm programs out there, and not conforming with
3406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3407
3408 Please tell bug-automake@gnu.org about your system, including the value
3409 of your $PATH and any error possibly output before this message.  This
3410 can help us improve future automake versions.
3411
3412 END
3413   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3414     echo 'Configuration will proceed anyway, since you have set the' >&2
3415     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3416     echo >&2
3417   else
3418     cat >&2 <<'END'
3419 Aborting the configuration process, to ensure you take notice of the issue.
3420
3421 You can download and install GNU coreutils to get an 'rm' implementation
3422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3423
3424 If you want to complete the configuration process using your problematic
3425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3426 to "yes", and re-run configure.
3427
3428 END
3429     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3430   fi
3431 fi
3432
3433
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3435 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3436     # Check whether --enable-maintainer-mode was given.
3437 if test "${enable_maintainer_mode+set}" = set; then :
3438   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3439 else
3440   USE_MAINTAINER_MODE=no
3441 fi
3442
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3444 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3445    if test $USE_MAINTAINER_MODE = yes; then
3446   MAINTAINER_MODE_TRUE=
3447   MAINTAINER_MODE_FALSE='#'
3448 else
3449   MAINTAINER_MODE_TRUE='#'
3450   MAINTAINER_MODE_FALSE=
3451 fi
3452
3453   MAINT=$MAINTAINER_MODE_TRUE
3454
3455
3456 # Make sure we can run config.sub.
3457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3458   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3461 $as_echo_n "checking build system type... " >&6; }
3462 if ${ac_cv_build+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   ac_build_alias=$build_alias
3466 test "x$ac_build_alias" = x &&
3467   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3468 test "x$ac_build_alias" = x &&
3469   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3471   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3472
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3475 $as_echo "$ac_cv_build" >&6; }
3476 case $ac_cv_build in
3477 *-*-*) ;;
3478 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3479 esac
3480 build=$ac_cv_build
3481 ac_save_IFS=$IFS; IFS='-'
3482 set x $ac_cv_build
3483 shift
3484 build_cpu=$1
3485 build_vendor=$2
3486 shift; shift
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3489 build_os=$*
3490 IFS=$ac_save_IFS
3491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3492
3493
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3495 $as_echo_n "checking host system type... " >&6; }
3496 if ${ac_cv_host+:} false; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   if test "x$host_alias" = x; then
3500   ac_cv_host=$ac_cv_build
3501 else
3502   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3503     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3504 fi
3505
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3508 $as_echo "$ac_cv_host" >&6; }
3509 case $ac_cv_host in
3510 *-*-*) ;;
3511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3512 esac
3513 host=$ac_cv_host
3514 ac_save_IFS=$IFS; IFS='-'
3515 set x $ac_cv_host
3516 shift
3517 host_cpu=$1
3518 host_vendor=$2
3519 shift; shift
3520 # Remember, the first character of IFS is used to create $*,
3521 # except with old shells:
3522 host_os=$*
3523 IFS=$ac_save_IFS
3524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3525
3526
3527 # Check whether --enable-silent-rules was given.
3528 if test "${enable_silent_rules+set}" = set; then :
3529   enableval=$enable_silent_rules;
3530 fi
3531
3532 case $enable_silent_rules in # (((
3533   yes) AM_DEFAULT_VERBOSITY=0;;
3534    no) AM_DEFAULT_VERBOSITY=1;;
3535     *) AM_DEFAULT_VERBOSITY=1;;
3536 esac
3537 am_make=${MAKE-make}
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3539 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3540 if ${am_cv_make_support_nested_variables+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if $as_echo 'TRUE=$(BAR$(V))
3544 BAR0=false
3545 BAR1=true
3546 V=1
3547 am__doit:
3548         @$(TRUE)
3549 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3550   am_cv_make_support_nested_variables=yes
3551 else
3552   am_cv_make_support_nested_variables=no
3553 fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3556 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3557 if test $am_cv_make_support_nested_variables = yes; then
3558     AM_V='$(V)'
3559   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3560 else
3561   AM_V=$AM_DEFAULT_VERBOSITY
3562   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3563 fi
3564 AM_BACKSLASH='\'
3565
3566
3567
3568 # Enable GNU extensions on systems that have them.
3569 DEPDIR="${am__leading_dot}deps"
3570
3571 ac_config_commands="$ac_config_commands depfiles"
3572
3573
3574 am_make=${MAKE-make}
3575 cat > confinc << 'END'
3576 am__doit:
3577         @echo this is the am__doit target
3578 .PHONY: am__doit
3579 END
3580 # If we don't find an include directive, just comment out the code.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3582 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3583 am__include="#"
3584 am__quote=
3585 _am_result=none
3586 # First try GNU make style include.
3587 echo "include confinc" > confmf
3588 # Ignore all kinds of additional output from 'make'.
3589 case `$am_make -s -f confmf 2> /dev/null` in #(
3590 *the\ am__doit\ target*)
3591   am__include=include
3592   am__quote=
3593   _am_result=GNU
3594   ;;
3595 esac
3596 # Now try BSD make style include.
3597 if test "$am__include" = "#"; then
3598    echo '.include "confinc"' > confmf
3599    case `$am_make -s -f confmf 2> /dev/null` in #(
3600    *the\ am__doit\ target*)
3601      am__include=.include
3602      am__quote="\""
3603      _am_result=BSD
3604      ;;
3605    esac
3606 fi
3607
3608
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3610 $as_echo "$_am_result" >&6; }
3611 rm -f confinc confmf
3612
3613 # Check whether --enable-dependency-tracking was given.
3614 if test "${enable_dependency_tracking+set}" = set; then :
3615   enableval=$enable_dependency_tracking;
3616 fi
3617
3618 if test "x$enable_dependency_tracking" != xno; then
3619   am_depcomp="$ac_aux_dir/depcomp"
3620   AMDEPBACKSLASH='\'
3621   am__nodep='_no'
3622 fi
3623  if test "x$enable_dependency_tracking" != xno; then
3624   AMDEP_TRUE=
3625   AMDEP_FALSE='#'
3626 else
3627   AMDEP_TRUE='#'
3628   AMDEP_FALSE=
3629 fi
3630
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 if test -n "$ac_tool_prefix"; then
3638   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_CC+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if test -n "$CC"; then
3646   ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_exec_ext in '' $ac_executable_extensions; do
3654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660   done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$ac_cv_prog_CC"; then
3677   ac_ct_CC=$CC
3678   # Extract the first word of "gcc", so it can be a program name with args.
3679 set dummy gcc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   if test -n "$ac_ct_CC"; then
3686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693     for ac_exec_ext in '' $ac_executable_extensions; do
3694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695     ac_cv_prog_ac_ct_CC="gcc"
3696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700   done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714   if test "x$ac_ct_CC" = x; then
3715     CC=""
3716   else
3717     case $cross_compiling:$ac_tool_warned in
3718 yes:)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721 ac_tool_warned=yes ;;
3722 esac
3723     CC=$ac_ct_CC
3724   fi
3725 else
3726   CC="$ac_cv_prog_CC"
3727 fi
3728
3729 if test -z "$CC"; then
3730           if test -n "$ac_tool_prefix"; then
3731     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}cc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$CC"; then
3739   ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_CC="${ac_tool_prefix}cc"
3749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753   done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   fi
3769 fi
3770 if test -z "$CC"; then
3771   # Extract the first word of "cc", so it can be a program name with args.
3772 set dummy cc; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_CC+:} false; then :
3776   $as_echo_n "(cached) " >&6
3777 else
3778   if test -n "$CC"; then
3779   ac_cv_prog_CC="$CC" # Let the user override the test.
3780 else
3781   ac_prog_rejected=no
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787     for ac_exec_ext in '' $ac_executable_extensions; do
3788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3790        ac_prog_rejected=yes
3791        continue
3792      fi
3793     ac_cv_prog_CC="cc"
3794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795     break 2
3796   fi
3797 done
3798   done
3799 IFS=$as_save_IFS
3800
3801 if test $ac_prog_rejected = yes; then
3802   # We found a bogon in the path, so make sure we never use it.
3803   set dummy $ac_cv_prog_CC
3804   shift
3805   if test $# != 0; then
3806     # We chose a different compiler from the bogus one.
3807     # However, it has the same basename, so the bogon will be chosen
3808     # first if we set CC to just the basename; use the full file name.
3809     shift
3810     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3811   fi
3812 fi
3813 fi
3814 fi
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3819 else
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825 fi
3826 if test -z "$CC"; then
3827   if test -n "$ac_tool_prefix"; then
3828   for ac_prog in cl.exe
3829   do
3830     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845     for ac_exec_ext in '' $ac_executable_extensions; do
3846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849     break 2
3850   fi
3851 done
3852   done
3853 IFS=$as_save_IFS
3854
3855 fi
3856 fi
3857 CC=$ac_cv_prog_CC
3858 if test -n "$CC"; then
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860 $as_echo "$CC" >&6; }
3861 else
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3864 fi
3865
3866
3867     test -n "$CC" && break
3868   done
3869 fi
3870 if test -z "$CC"; then
3871   ac_ct_CC=$CC
3872   for ac_prog in cl.exe
3873 do
3874   # Extract the first word of "$ac_prog", so it can be a program name with args.
3875 set dummy $ac_prog; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   if test -n "$ac_ct_CC"; then
3882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889     for ac_exec_ext in '' $ac_executable_extensions; do
3890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891     ac_cv_prog_ac_ct_CC="$ac_prog"
3892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893     break 2
3894   fi
3895 done
3896   done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904 $as_echo "$ac_ct_CC" >&6; }
3905 else
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911   test -n "$ac_ct_CC" && break
3912 done
3913
3914   if test "x$ac_ct_CC" = x; then
3915     CC=""
3916   else
3917     case $cross_compiling:$ac_tool_warned in
3918 yes:)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3922 esac
3923     CC=$ac_ct_CC
3924   fi
3925 fi
3926
3927 fi
3928
3929
3930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "no acceptable C compiler found in \$PATH
3933 See \`config.log' for more details" "$LINENO" 5; }
3934
3935 # Provide some information about the compiler.
3936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3937 set X $ac_compile
3938 ac_compiler=$2
3939 for ac_option in --version -v -V -qversion; do
3940   { { ac_try="$ac_compiler $ac_option >&5"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3948   ac_status=$?
3949   if test -s conftest.err; then
3950     sed '10a\
3951 ... rest of stderr output deleted ...
3952          10q' conftest.err >conftest.er1
3953     cat conftest.er1 >&5
3954   fi
3955   rm -f conftest.er1 conftest.err
3956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957   test $ac_status = 0; }
3958 done
3959
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 ac_clean_files_save=$ac_clean_files
3972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3973 # Try to create an executable without -o first, disregard a.out.
3974 # It will help us diagnose broken compilers, and finding out an intuition
3975 # of exeext.
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3977 $as_echo_n "checking whether the C compiler works... " >&6; }
3978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979
3980 # The possible output files:
3981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3982
3983 ac_rmfiles=
3984 for ac_file in $ac_files
3985 do
3986   case $ac_file in
3987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3988     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3989   esac
3990 done
3991 rm -f $ac_rmfiles
3992
3993 if { { ac_try="$ac_link_default"
3994 case "(($ac_try" in
3995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996   *) ac_try_echo=$ac_try;;
3997 esac
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000   (eval "$ac_link_default") 2>&5
4001   ac_status=$?
4002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003   test $ac_status = 0; }; then :
4004   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4006 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4007 # so that the user can short-circuit this test for compilers unknown to
4008 # Autoconf.
4009 for ac_file in $ac_files ''
4010 do
4011   test -f "$ac_file" || continue
4012   case $ac_file in
4013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4014         ;;
4015     [ab].out )
4016         # We found the default executable, but exeext='' is most
4017         # certainly right.
4018         break;;
4019     *.* )
4020         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4021         then :; else
4022            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023         fi
4024         # We set ac_cv_exeext here because the later test for it is not
4025         # safe: cross compilers may not add the suffix if given an `-o'
4026         # argument, so we may need to know it at that point already.
4027         # Even if this section looks crufty: it has the advantage of
4028         # actually working.
4029         break;;
4030     * )
4031         break;;
4032   esac
4033 done
4034 test "$ac_cv_exeext" = no && ac_cv_exeext=
4035
4036 else
4037   ac_file=''
4038 fi
4039 if test -z "$ac_file"; then :
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error 77 "C compiler cannot create executables
4048 See \`config.log' for more details" "$LINENO" 5; }
4049 else
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4054 $as_echo_n "checking for C compiler default output file name... " >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4056 $as_echo "$ac_file" >&6; }
4057 ac_exeext=$ac_cv_exeext
4058
4059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4060 ac_clean_files=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4062 $as_echo_n "checking for suffix of executables... " >&6; }
4063 if { { ac_try="$ac_link"
4064 case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070   (eval "$ac_link") 2>&5
4071   ac_status=$?
4072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073   test $ac_status = 0; }; then :
4074   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4075 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4076 # work properly (i.e., refer to `conftest.exe'), while it won't with
4077 # `rm'.
4078 for ac_file in conftest.exe conftest conftest.*; do
4079   test -f "$ac_file" || continue
4080   case $ac_file in
4081     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4082     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4083           break;;
4084     * ) break;;
4085   esac
4086 done
4087 else
4088   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4091 See \`config.log' for more details" "$LINENO" 5; }
4092 fi
4093 rm -f conftest conftest$ac_cv_exeext
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4095 $as_echo "$ac_cv_exeext" >&6; }
4096
4097 rm -f conftest.$ac_ext
4098 EXEEXT=$ac_cv_exeext
4099 ac_exeext=$EXEEXT
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <stdio.h>
4103 int
4104 main ()
4105 {
4106 FILE *f = fopen ("conftest.out", "w");
4107  return ferror (f) || fclose (f) != 0;
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 ac_clean_files="$ac_clean_files conftest.out"
4114 # Check that the compiler produces executables we can run.  If not, either
4115 # the compiler is broken, or we cross compile.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4117 $as_echo_n "checking whether we are cross compiling... " >&6; }
4118 if test "$cross_compiling" != yes; then
4119   { { ac_try="$ac_link"
4120 case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126   (eval "$ac_link") 2>&5
4127   ac_status=$?
4128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129   test $ac_status = 0; }
4130   if { ac_try='./conftest$ac_cv_exeext'
4131   { { case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136 $as_echo "$ac_try_echo"; } >&5
4137   (eval "$ac_try") 2>&5
4138   ac_status=$?
4139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140   test $ac_status = 0; }; }; then
4141     cross_compiling=no
4142   else
4143     if test "$cross_compiling" = maybe; then
4144         cross_compiling=yes
4145     else
4146         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error $? "cannot run C compiled programs.
4149 If you meant to cross compile, use \`--host'.
4150 See \`config.log' for more details" "$LINENO" 5; }
4151     fi
4152   fi
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4155 $as_echo "$cross_compiling" >&6; }
4156
4157 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4158 ac_clean_files=$ac_clean_files_save
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4160 $as_echo_n "checking for suffix of object files... " >&6; }
4161 if ${ac_cv_objext+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166
4167 int
4168 main ()
4169 {
4170
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest.o conftest.obj
4176 if { { ac_try="$ac_compile"
4177 case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183   (eval "$ac_compile") 2>&5
4184   ac_status=$?
4185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186   test $ac_status = 0; }; then :
4187   for ac_file in conftest.o conftest.obj conftest.*; do
4188   test -f "$ac_file" || continue;
4189   case $ac_file in
4190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4191     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4192        break;;
4193   esac
4194 done
4195 else
4196   $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "cannot compute suffix of object files: cannot compile
4202 See \`config.log' for more details" "$LINENO" 5; }
4203 fi
4204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4207 $as_echo "$ac_cv_objext" >&6; }
4208 OBJEXT=$ac_cv_objext
4209 ac_objext=$OBJEXT
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4212 if ${ac_cv_c_compiler_gnu+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h.  */
4217
4218 int
4219 main ()
4220 {
4221 #ifndef __GNUC__
4222        choke me
4223 #endif
4224
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230   ac_compiler_gnu=yes
4231 else
4232   ac_compiler_gnu=no
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4240 if test $ac_compiler_gnu = yes; then
4241   GCC=yes
4242 else
4243   GCC=
4244 fi
4245 ac_test_CFLAGS=${CFLAGS+set}
4246 ac_save_CFLAGS=$CFLAGS
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4249 if ${ac_cv_prog_cc_g+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   ac_save_c_werror_flag=$ac_c_werror_flag
4253    ac_c_werror_flag=yes
4254    ac_cv_prog_cc_g=no
4255    CFLAGS="-g"
4256    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268   ac_cv_prog_cc_g=yes
4269 else
4270   CFLAGS=""
4271       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283
4284 else
4285   ac_c_werror_flag=$ac_save_c_werror_flag
4286          CFLAGS="-g"
4287          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289
4290 int
4291 main ()
4292 {
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299   ac_cv_prog_cc_g=yes
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306    ac_c_werror_flag=$ac_save_c_werror_flag
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4309 $as_echo "$ac_cv_prog_cc_g" >&6; }
4310 if test "$ac_test_CFLAGS" = set; then
4311   CFLAGS=$ac_save_CFLAGS
4312 elif test $ac_cv_prog_cc_g = yes; then
4313   if test "$GCC" = yes; then
4314     CFLAGS="-g -O2"
4315   else
4316     CFLAGS="-g"
4317   fi
4318 else
4319   if test "$GCC" = yes; then
4320     CFLAGS="-O2"
4321   else
4322     CFLAGS=
4323   fi
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4327 if ${ac_cv_prog_cc_c89+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   ac_cv_prog_cc_c89=no
4331 ac_save_CC=$CC
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #include <stdarg.h>
4335 #include <stdio.h>
4336 struct stat;
4337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4338 struct buf { int x; };
4339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4340 static char *e (p, i)
4341      char **p;
4342      int i;
4343 {
4344   return p[i];
4345 }
4346 static char *f (char * (*g) (char **, int), char **p, ...)
4347 {
4348   char *s;
4349   va_list v;
4350   va_start (v,p);
4351   s = g (p, va_arg (v,int));
4352   va_end (v);
4353   return s;
4354 }
4355
4356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4357    function prototypes and stuff, but not '\xHH' hex character constants.
4358    These don't provoke an error unfortunately, instead are silently treated
4359    as 'x'.  The following induces an error, until -std is added to get
4360    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4361    array size at least.  It's necessary to write '\x00'==0 to get something
4362    that's true only with -std.  */
4363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364
4365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4366    inside strings and character constants.  */
4367 #define FOO(x) 'x'
4368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369
4370 int test (int i, double x);
4371 struct s1 {int (*f) (int a);};
4372 struct s2 {int (*f) (double a);};
4373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4374 int argc;
4375 char **argv;
4376 int
4377 main ()
4378 {
4379 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4385         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4386 do
4387   CC="$ac_save_CC $ac_arg"
4388   if ac_fn_c_try_compile "$LINENO"; then :
4389   ac_cv_prog_cc_c89=$ac_arg
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext
4392   test "x$ac_cv_prog_cc_c89" != "xno" && break
4393 done
4394 rm -f conftest.$ac_ext
4395 CC=$ac_save_CC
4396
4397 fi
4398 # AC_CACHE_VAL
4399 case "x$ac_cv_prog_cc_c89" in
4400   x)
4401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4402 $as_echo "none needed" >&6; } ;;
4403   xno)
4404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4405 $as_echo "unsupported" >&6; } ;;
4406   *)
4407     CC="$CC $ac_cv_prog_cc_c89"
4408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4410 esac
4411 if test "x$ac_cv_prog_cc_c89" != xno; then :
4412
4413 fi
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4427 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4428 if ${am_cv_prog_cc_c_o+:} false; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433
4434 int
4435 main ()
4436 {
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442   # Make sure it works both with $CC and with simple cc.
4443   # Following AC_PROG_CC_C_O, we do the test twice because some
4444   # compilers refuse to overwrite an existing .o file with -o,
4445   # though they will create one.
4446   am_cv_prog_cc_c_o=yes
4447   for am_i in 1 2; do
4448     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4449    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4450    ac_status=$?
4451    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452    (exit $ac_status); } \
4453          && test -f conftest2.$ac_objext; then
4454       : OK
4455     else
4456       am_cv_prog_cc_c_o=no
4457       break
4458     fi
4459   done
4460   rm -f core conftest*
4461   unset am_i
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4464 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4465 if test "$am_cv_prog_cc_c_o" != yes; then
4466    # Losing compiler, so override with the script.
4467    # FIXME: It is wrong to rewrite CC.
4468    # But if we don't then we get into trouble of one sort or another.
4469    # A longer-term fix would be to have automake use am__CC in this case,
4470    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4471    CC="$am_aux_dir/compile $CC"
4472 fi
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479
4480 depcc="$CC"   am_compiler_list=
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483 $as_echo_n "checking dependency style of $depcc... " >&6; }
4484 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488   # We make a subdir and do the tests there.  Otherwise we can end up
4489   # making bogus files that we don't know about and never remove.  For
4490   # instance it was reported that on HP-UX the gcc test will end up
4491   # making a dummy file named 'D' -- because '-MD' means "put the output
4492   # in D".
4493   rm -rf conftest.dir
4494   mkdir conftest.dir
4495   # Copy depcomp to subdir because otherwise we won't find it if we're
4496   # using a relative directory.
4497   cp "$am_depcomp" conftest.dir
4498   cd conftest.dir
4499   # We will build objects and dependencies in a subdirectory because
4500   # it helps to detect inapplicable dependency modes.  For instance
4501   # both Tru64's cc and ICC support -MD to output dependencies as a
4502   # side effect of compilation, but ICC will put the dependencies in
4503   # the current directory while Tru64 will put them in the object
4504   # directory.
4505   mkdir sub
4506
4507   am_cv_CC_dependencies_compiler_type=none
4508   if test "$am_compiler_list" = ""; then
4509      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510   fi
4511   am__universal=false
4512   case " $depcc " in #(
4513      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4514      esac
4515
4516   for depmode in $am_compiler_list; do
4517     # Setup a source with many dependencies, because some compilers
4518     # like to wrap large dependency lists on column 80 (with \), and
4519     # we should not choose a depcomp mode which is confused by this.
4520     #
4521     # We need to recreate these files for each test, as the compiler may
4522     # overwrite some of them when testing with obscure command lines.
4523     # This happens at least with the AIX C compiler.
4524     : > sub/conftest.c
4525     for i in 1 2 3 4 5 6; do
4526       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528       # Solaris 10 /bin/sh.
4529       echo '/* dummy */' > sub/conftst$i.h
4530     done
4531     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534     # mode.  It turns out that the SunPro C++ compiler does not properly
4535     # handle '-M -o', and we need to detect this.  Also, some Intel
4536     # versions had trouble with output in subdirs.
4537     am__obj=sub/conftest.${OBJEXT-o}
4538     am__minus_obj="-o $am__obj"
4539     case $depmode in
4540     gcc)
4541       # This depmode causes a compiler race in universal mode.
4542       test "$am__universal" = false || continue
4543       ;;
4544     nosideeffect)
4545       # After this tag, mechanisms are not by side-effect, so they'll
4546       # only be used when explicitly requested.
4547       if test "x$enable_dependency_tracking" = xyes; then
4548         continue
4549       else
4550         break
4551       fi
4552       ;;
4553     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554       # This compiler won't grok '-c -o', but also, the minuso test has
4555       # not run yet.  These depmodes are late enough in the game, and
4556       # so weak that their functioning should not be impacted.
4557       am__obj=conftest.${OBJEXT-o}
4558       am__minus_obj=
4559       ;;
4560     none) break ;;
4561     esac
4562     if depmode=$depmode \
4563        source=sub/conftest.c object=$am__obj \
4564        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566          >/dev/null 2>conftest.err &&
4567        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571       # icc doesn't choke on unknown options, it will just issue warnings
4572       # or remarks (even with -Werror).  So we grep stderr for any message
4573       # that says an option was ignored or not supported.
4574       # When given -MP, icc 7.0 and 7.1 complain thusly:
4575       #   icc: Command line warning: ignoring option '-M'; no argument required
4576       # The diagnosis changed in icc 8.0:
4577       #   icc: Command line remark: option '-MP' not supported
4578       if (grep 'ignoring option' conftest.err ||
4579           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580         am_cv_CC_dependencies_compiler_type=$depmode
4581         break
4582       fi
4583     fi
4584   done
4585
4586   cd ..
4587   rm -rf conftest.dir
4588 else
4589   am_cv_CC_dependencies_compiler_type=none
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597  if
4598   test "x$enable_dependency_tracking" != xno \
4599   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600   am__fastdepCC_TRUE=
4601   am__fastdepCC_FALSE='#'
4602 else
4603   am__fastdepCC_TRUE='#'
4604   am__fastdepCC_FALSE=
4605 fi
4606
4607
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4616 # On Suns, sometimes $CPP names a directory.
4617 if test -n "$CPP" && test -d "$CPP"; then
4618   CPP=
4619 fi
4620 if test -z "$CPP"; then
4621   if ${ac_cv_prog_CPP+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624       # Double quotes because CPP needs to be expanded
4625     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4626     do
4627       ac_preproc_ok=false
4628 for ac_c_preproc_warn_flag in '' yes
4629 do
4630   # Use a header file that comes with gcc, so configuring glibc
4631   # with a fresh cross-compiler works.
4632   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633   # <limits.h> exists even on freestanding compilers.
4634   # On the NeXT, cc -E runs the code through the compiler's parser,
4635   # not just through cpp. "Syntax error" is here to catch this case.
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #ifdef __STDC__
4639 # include <limits.h>
4640 #else
4641 # include <assert.h>
4642 #endif
4643                      Syntax error
4644 _ACEOF
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4646
4647 else
4648   # Broken: fails on valid input.
4649 continue
4650 fi
4651 rm -f conftest.err conftest.i conftest.$ac_ext
4652
4653   # OK, works on sane cases.  Now check whether nonexistent headers
4654   # can be detected and how.
4655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657 #include <ac_nonexistent.h>
4658 _ACEOF
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660   # Broken: success on invalid input.
4661 continue
4662 else
4663   # Passes both tests.
4664 ac_preproc_ok=:
4665 break
4666 fi
4667 rm -f conftest.err conftest.i conftest.$ac_ext
4668
4669 done
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then :
4673   break
4674 fi
4675
4676     done
4677     ac_cv_prog_CPP=$CPP
4678
4679 fi
4680   CPP=$ac_cv_prog_CPP
4681 else
4682   ac_cv_prog_CPP=$CPP
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4685 $as_echo "$CPP" >&6; }
4686 ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689   # Use a header file that comes with gcc, so configuring glibc
4690   # with a fresh cross-compiler works.
4691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692   # <limits.h> exists even on freestanding compilers.
4693   # On the NeXT, cc -E runs the code through the compiler's parser,
4694   # not just through cpp. "Syntax error" is here to catch this case.
4695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697 #ifdef __STDC__
4698 # include <limits.h>
4699 #else
4700 # include <assert.h>
4701 #endif
4702                      Syntax error
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706 else
4707   # Broken: fails on valid input.
4708 continue
4709 fi
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712   # OK, works on sane cases.  Now check whether nonexistent headers
4713   # can be detected and how.
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719   # Broken: success on invalid input.
4720 continue
4721 else
4722   # Passes both tests.
4723 ac_preproc_ok=:
4724 break
4725 fi
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728 done
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4732
4733 else
4734   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4736 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details" "$LINENO" 5; }
4738 fi
4739
4740 ac_ext=c
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4748 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4749 if ${ac_cv_path_GREP+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   if test -z "$GREP"; then
4753   ac_path_GREP_found=false
4754   # Loop through the user's path and test for each of PROGNAME-LIST
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760     for ac_prog in grep ggrep; do
4761     for ac_exec_ext in '' $ac_executable_extensions; do
4762       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763       as_fn_executable_p "$ac_path_GREP" || continue
4764 # Check for GNU ac_path_GREP and select it if it is found.
4765   # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4767 *GNU*)
4768   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4769 *)
4770   ac_count=0
4771   $as_echo_n 0123456789 >"conftest.in"
4772   while :
4773   do
4774     cat "conftest.in" "conftest.in" >"conftest.tmp"
4775     mv "conftest.tmp" "conftest.in"
4776     cp "conftest.in" "conftest.nl"
4777     $as_echo 'GREP' >> "conftest.nl"
4778     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780     as_fn_arith $ac_count + 1 && ac_count=$as_val
4781     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4782       # Best one so far, save it but keep looking for a better one
4783       ac_cv_path_GREP="$ac_path_GREP"
4784       ac_path_GREP_max=$ac_count
4785     fi
4786     # 10*(2^10) chars as input seems more than enough
4787     test $ac_count -gt 10 && break
4788   done
4789   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792       $ac_path_GREP_found && break 3
4793     done
4794   done
4795   done
4796 IFS=$as_save_IFS
4797   if test -z "$ac_cv_path_GREP"; then
4798     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799   fi
4800 else
4801   ac_cv_path_GREP=$GREP
4802 fi
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4806 $as_echo "$ac_cv_path_GREP" >&6; }
4807  GREP="$ac_cv_path_GREP"
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4811 $as_echo_n "checking for egrep... " >&6; }
4812 if ${ac_cv_path_EGREP+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816    then ac_cv_path_EGREP="$GREP -E"
4817    else
4818      if test -z "$EGREP"; then
4819   ac_path_EGREP_found=false
4820   # Loop through the user's path and test for each of PROGNAME-LIST
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_prog in egrep; do
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4829       as_fn_executable_p "$ac_path_EGREP" || continue
4830 # Check for GNU ac_path_EGREP and select it if it is found.
4831   # Check for GNU $ac_path_EGREP
4832 case `"$ac_path_EGREP" --version 2>&1` in
4833 *GNU*)
4834   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4835 *)
4836   ac_count=0
4837   $as_echo_n 0123456789 >"conftest.in"
4838   while :
4839   do
4840     cat "conftest.in" "conftest.in" >"conftest.tmp"
4841     mv "conftest.tmp" "conftest.in"
4842     cp "conftest.in" "conftest.nl"
4843     $as_echo 'EGREP' >> "conftest.nl"
4844     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846     as_fn_arith $ac_count + 1 && ac_count=$as_val
4847     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4848       # Best one so far, save it but keep looking for a better one
4849       ac_cv_path_EGREP="$ac_path_EGREP"
4850       ac_path_EGREP_max=$ac_count
4851     fi
4852     # 10*(2^10) chars as input seems more than enough
4853     test $ac_count -gt 10 && break
4854   done
4855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 esac
4857
4858       $ac_path_EGREP_found && break 3
4859     done
4860   done
4861   done
4862 IFS=$as_save_IFS
4863   if test -z "$ac_cv_path_EGREP"; then
4864     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865   fi
4866 else
4867   ac_cv_path_EGREP=$EGREP
4868 fi
4869
4870    fi
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4873 $as_echo "$ac_cv_path_EGREP" >&6; }
4874  EGREP="$ac_cv_path_EGREP"
4875
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if ${ac_cv_header_stdc+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884 #include <stdlib.h>
4885 #include <stdarg.h>
4886 #include <string.h>
4887 #include <float.h>
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898   ac_cv_header_stdc=yes
4899 else
4900   ac_cv_header_stdc=no
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903
4904 if test $ac_cv_header_stdc = yes; then
4905   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h.  */
4908 #include <string.h>
4909
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912   $EGREP "memchr" >/dev/null 2>&1; then :
4913
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920
4921 if test $ac_cv_header_stdc = yes; then
4922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h.  */
4925 #include <stdlib.h>
4926
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929   $EGREP "free" >/dev/null 2>&1; then :
4930
4931 else
4932   ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest*
4935
4936 fi
4937
4938 if test $ac_cv_header_stdc = yes; then
4939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940   if test "$cross_compiling" = yes; then :
4941   :
4942 else
4943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #include <ctype.h>
4946 #include <stdlib.h>
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4950 #else
4951 # define ISLOWER(c) \
4952                    (('a' <= (c) && (c) <= 'i') \
4953                      || ('j' <= (c) && (c) <= 'r') \
4954                      || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4956 #endif
4957
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4959 int
4960 main ()
4961 {
4962   int i;
4963   for (i = 0; i < 256; i++)
4964     if (XOR (islower (i), ISLOWER (i))
4965         || toupper (i) != TOUPPER (i))
4966       return 2;
4967   return 0;
4968 }
4969 _ACEOF
4970 if ac_fn_c_try_run "$LINENO"; then :
4971
4972 else
4973   ac_cv_header_stdc=no
4974 fi
4975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4976   conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 fi
4978
4979 fi
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4982 $as_echo "$ac_cv_header_stdc" >&6; }
4983 if test $ac_cv_header_stdc = yes; then
4984
4985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4986
4987 fi
4988
4989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4991                   inttypes.h stdint.h unistd.h
4992 do :
4993   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4995 "
4996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4997   cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5000
5001 fi
5002
5003 done
5004
5005
5006
5007   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5008 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5009   MINIX=yes
5010 else
5011   MINIX=
5012 fi
5013
5014
5015   if test "$MINIX" = yes; then
5016
5017 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5018
5019
5020 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5021
5022
5023 $as_echo "#define _MINIX 1" >>confdefs.h
5024
5025   fi
5026
5027
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5029 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5030 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h.  */
5035
5036 #         define __EXTENSIONS__ 1
5037           $ac_includes_default
5038 int
5039 main ()
5040 {
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047   ac_cv_safe_to_define___extensions__=yes
5048 else
5049   ac_cv_safe_to_define___extensions__=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5054 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5055   test $ac_cv_safe_to_define___extensions__ = yes &&
5056     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5057
5058   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5059
5060   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5061
5062   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5063
5064   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5065
5066
5067
5068
5069
5070
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 if test -n "$ac_tool_prefix"; then
5077   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_CC+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   if test -n "$CC"; then
5085   ac_cv_prog_CC="$CC" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092     for ac_exec_ext in '' $ac_executable_extensions; do
5093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099   done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 CC=$ac_cv_prog_CC
5105 if test -n "$CC"; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5107 $as_echo "$CC" >&6; }
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 fi
5115 if test -z "$ac_cv_prog_CC"; then
5116   ac_ct_CC=$CC
5117   # Extract the first word of "gcc", so it can be a program name with args.
5118 set dummy gcc; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$ac_ct_CC"; then
5125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134     ac_cv_prog_ac_ct_CC="gcc"
5135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139   done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5145 if test -n "$ac_ct_CC"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5147 $as_echo "$ac_ct_CC" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153   if test "x$ac_ct_CC" = x; then
5154     CC=""
5155   else
5156     case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162     CC=$ac_ct_CC
5163   fi
5164 else
5165   CC="$ac_cv_prog_CC"
5166 fi
5167
5168 if test -z "$CC"; then
5169           if test -n "$ac_tool_prefix"; then
5170     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}cc; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_CC+:} false; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   if test -n "$CC"; then
5178   ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_prog_CC="${ac_tool_prefix}cc"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207   fi
5208 fi
5209 if test -z "$CC"; then
5210   # Extract the first word of "cc", so it can be a program name with args.
5211 set dummy cc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_CC+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$CC"; then
5218   ac_cv_prog_CC="$CC" # Let the user override the test.
5219 else
5220   ac_prog_rejected=no
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_exec_ext in '' $ac_executable_extensions; do
5227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5229        ac_prog_rejected=yes
5230        continue
5231      fi
5232     ac_cv_prog_CC="cc"
5233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237   done
5238 IFS=$as_save_IFS
5239
5240 if test $ac_prog_rejected = yes; then
5241   # We found a bogon in the path, so make sure we never use it.
5242   set dummy $ac_cv_prog_CC
5243   shift
5244   if test $# != 0; then
5245     # We chose a different compiler from the bogus one.
5246     # However, it has the same basename, so the bogon will be chosen
5247     # first if we set CC to just the basename; use the full file name.
5248     shift
5249     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5250   fi
5251 fi
5252 fi
5253 fi
5254 CC=$ac_cv_prog_CC
5255 if test -n "$CC"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5257 $as_echo "$CC" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 fi
5265 if test -z "$CC"; then
5266   if test -n "$ac_tool_prefix"; then
5267   for ac_prog in cl.exe
5268   do
5269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_CC+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   if test -n "$CC"; then
5277   ac_cv_prog_CC="$CC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_exec_ext in '' $ac_executable_extensions; do
5285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288     break 2
5289   fi
5290 done
5291   done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 CC=$ac_cv_prog_CC
5297 if test -n "$CC"; then
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5299 $as_echo "$CC" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306     test -n "$CC" && break
5307   done
5308 fi
5309 if test -z "$CC"; then
5310   ac_ct_CC=$CC
5311   for ac_prog in cl.exe
5312 do
5313   # Extract the first word of "$ac_prog", so it can be a program name with args.
5314 set dummy $ac_prog; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$ac_ct_CC"; then
5321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330     ac_cv_prog_ac_ct_CC="$ac_prog"
5331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335   done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5341 if test -n "$ac_ct_CC"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5343 $as_echo "$ac_ct_CC" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350   test -n "$ac_ct_CC" && break
5351 done
5352
5353   if test "x$ac_ct_CC" = x; then
5354     CC=""
5355   else
5356     case $cross_compiling:$ac_tool_warned in
5357 yes:)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362     CC=$ac_ct_CC
5363   fi
5364 fi
5365
5366 fi
5367
5368
5369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371 as_fn_error $? "no acceptable C compiler found in \$PATH
5372 See \`config.log' for more details" "$LINENO" 5; }
5373
5374 # Provide some information about the compiler.
5375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5376 set X $ac_compile
5377 ac_compiler=$2
5378 for ac_option in --version -v -V -qversion; do
5379   { { ac_try="$ac_compiler $ac_option >&5"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5385 $as_echo "$ac_try_echo"; } >&5
5386   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5387   ac_status=$?
5388   if test -s conftest.err; then
5389     sed '10a\
5390 ... rest of stderr output deleted ...
5391          10q' conftest.err >conftest.er1
5392     cat conftest.er1 >&5
5393   fi
5394   rm -f conftest.er1 conftest.err
5395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5396   test $ac_status = 0; }
5397 done
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5401 if ${ac_cv_c_compiler_gnu+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406
5407 int
5408 main ()
5409 {
5410 #ifndef __GNUC__
5411        choke me
5412 #endif
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419   ac_compiler_gnu=yes
5420 else
5421   ac_compiler_gnu=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5425
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5429 if test $ac_compiler_gnu = yes; then
5430   GCC=yes
5431 else
5432   GCC=
5433 fi
5434 ac_test_CFLAGS=${CFLAGS+set}
5435 ac_save_CFLAGS=$CFLAGS
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5438 if ${ac_cv_prog_cc_g+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   ac_save_c_werror_flag=$ac_c_werror_flag
5442    ac_c_werror_flag=yes
5443    ac_cv_prog_cc_g=no
5444    CFLAGS="-g"
5445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447
5448 int
5449 main ()
5450 {
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457   ac_cv_prog_cc_g=yes
5458 else
5459   CFLAGS=""
5460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h.  */
5462
5463 int
5464 main ()
5465 {
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472
5473 else
5474   ac_c_werror_flag=$ac_save_c_werror_flag
5475          CFLAGS="-g"
5476          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478
5479 int
5480 main ()
5481 {
5482
5483   ;
5484   return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488   ac_cv_prog_cc_g=yes
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495    ac_c_werror_flag=$ac_save_c_werror_flag
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5498 $as_echo "$ac_cv_prog_cc_g" >&6; }
5499 if test "$ac_test_CFLAGS" = set; then
5500   CFLAGS=$ac_save_CFLAGS
5501 elif test $ac_cv_prog_cc_g = yes; then
5502   if test "$GCC" = yes; then
5503     CFLAGS="-g -O2"
5504   else
5505     CFLAGS="-g"
5506   fi
5507 else
5508   if test "$GCC" = yes; then
5509     CFLAGS="-O2"
5510   else
5511     CFLAGS=
5512   fi
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5516 if ${ac_cv_prog_cc_c89+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   ac_cv_prog_cc_c89=no
5520 ac_save_CC=$CC
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h.  */
5523 #include <stdarg.h>
5524 #include <stdio.h>
5525 struct stat;
5526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5527 struct buf { int x; };
5528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5529 static char *e (p, i)
5530      char **p;
5531      int i;
5532 {
5533   return p[i];
5534 }
5535 static char *f (char * (*g) (char **, int), char **p, ...)
5536 {
5537   char *s;
5538   va_list v;
5539   va_start (v,p);
5540   s = g (p, va_arg (v,int));
5541   va_end (v);
5542   return s;
5543 }
5544
5545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5546    function prototypes and stuff, but not '\xHH' hex character constants.
5547    These don't provoke an error unfortunately, instead are silently treated
5548    as 'x'.  The following induces an error, until -std is added to get
5549    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5550    array size at least.  It's necessary to write '\x00'==0 to get something
5551    that's true only with -std.  */
5552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5553
5554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5555    inside strings and character constants.  */
5556 #define FOO(x) 'x'
5557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5558
5559 int test (int i, double x);
5560 struct s1 {int (*f) (int a);};
5561 struct s2 {int (*f) (double a);};
5562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5563 int argc;
5564 char **argv;
5565 int
5566 main ()
5567 {
5568 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5574         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5575 do
5576   CC="$ac_save_CC $ac_arg"
5577   if ac_fn_c_try_compile "$LINENO"; then :
5578   ac_cv_prog_cc_c89=$ac_arg
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext
5581   test "x$ac_cv_prog_cc_c89" != "xno" && break
5582 done
5583 rm -f conftest.$ac_ext
5584 CC=$ac_save_CC
5585
5586 fi
5587 # AC_CACHE_VAL
5588 case "x$ac_cv_prog_cc_c89" in
5589   x)
5590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5591 $as_echo "none needed" >&6; } ;;
5592   xno)
5593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5594 $as_echo "unsupported" >&6; } ;;
5595   *)
5596     CC="$CC $ac_cv_prog_cc_c89"
5597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5599 esac
5600 if test "x$ac_cv_prog_cc_c89" != xno; then :
5601
5602 fi
5603
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5616 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5617 if ${am_cv_prog_cc_c_o+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622
5623 int
5624 main ()
5625 {
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631   # Make sure it works both with $CC and with simple cc.
5632   # Following AC_PROG_CC_C_O, we do the test twice because some
5633   # compilers refuse to overwrite an existing .o file with -o,
5634   # though they will create one.
5635   am_cv_prog_cc_c_o=yes
5636   for am_i in 1 2; do
5637     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5638    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5639    ac_status=$?
5640    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641    (exit $ac_status); } \
5642          && test -f conftest2.$ac_objext; then
5643       : OK
5644     else
5645       am_cv_prog_cc_c_o=no
5646       break
5647     fi
5648   done
5649   rm -f core conftest*
5650   unset am_i
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5653 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5654 if test "$am_cv_prog_cc_c_o" != yes; then
5655    # Losing compiler, so override with the script.
5656    # FIXME: It is wrong to rewrite CC.
5657    # But if we don't then we get into trouble of one sort or another.
5658    # A longer-term fix would be to have automake use am__CC in this case,
5659    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5660    CC="$am_aux_dir/compile $CC"
5661 fi
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667
5668
5669 depcc="$CC"   am_compiler_list=
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5672 $as_echo_n "checking dependency style of $depcc... " >&6; }
5673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5677   # We make a subdir and do the tests there.  Otherwise we can end up
5678   # making bogus files that we don't know about and never remove.  For
5679   # instance it was reported that on HP-UX the gcc test will end up
5680   # making a dummy file named 'D' -- because '-MD' means "put the output
5681   # in D".
5682   rm -rf conftest.dir
5683   mkdir conftest.dir
5684   # Copy depcomp to subdir because otherwise we won't find it if we're
5685   # using a relative directory.
5686   cp "$am_depcomp" conftest.dir
5687   cd conftest.dir
5688   # We will build objects and dependencies in a subdirectory because
5689   # it helps to detect inapplicable dependency modes.  For instance
5690   # both Tru64's cc and ICC support -MD to output dependencies as a
5691   # side effect of compilation, but ICC will put the dependencies in
5692   # the current directory while Tru64 will put them in the object
5693   # directory.
5694   mkdir sub
5695
5696   am_cv_CC_dependencies_compiler_type=none
5697   if test "$am_compiler_list" = ""; then
5698      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5699   fi
5700   am__universal=false
5701   case " $depcc " in #(
5702      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5703      esac
5704
5705   for depmode in $am_compiler_list; do
5706     # Setup a source with many dependencies, because some compilers
5707     # like to wrap large dependency lists on column 80 (with \), and
5708     # we should not choose a depcomp mode which is confused by this.
5709     #
5710     # We need to recreate these files for each test, as the compiler may
5711     # overwrite some of them when testing with obscure command lines.
5712     # This happens at least with the AIX C compiler.
5713     : > sub/conftest.c
5714     for i in 1 2 3 4 5 6; do
5715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5716       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5717       # Solaris 10 /bin/sh.
5718       echo '/* dummy */' > sub/conftst$i.h
5719     done
5720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5721
5722     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5723     # mode.  It turns out that the SunPro C++ compiler does not properly
5724     # handle '-M -o', and we need to detect this.  Also, some Intel
5725     # versions had trouble with output in subdirs.
5726     am__obj=sub/conftest.${OBJEXT-o}
5727     am__minus_obj="-o $am__obj"
5728     case $depmode in
5729     gcc)
5730       # This depmode causes a compiler race in universal mode.
5731       test "$am__universal" = false || continue
5732       ;;
5733     nosideeffect)
5734       # After this tag, mechanisms are not by side-effect, so they'll
5735       # only be used when explicitly requested.
5736       if test "x$enable_dependency_tracking" = xyes; then
5737         continue
5738       else
5739         break
5740       fi
5741       ;;
5742     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5743       # This compiler won't grok '-c -o', but also, the minuso test has
5744       # not run yet.  These depmodes are late enough in the game, and
5745       # so weak that their functioning should not be impacted.
5746       am__obj=conftest.${OBJEXT-o}
5747       am__minus_obj=
5748       ;;
5749     none) break ;;
5750     esac
5751     if depmode=$depmode \
5752        source=sub/conftest.c object=$am__obj \
5753        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5754        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5755          >/dev/null 2>conftest.err &&
5756        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5757        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5758        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5759        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5760       # icc doesn't choke on unknown options, it will just issue warnings
5761       # or remarks (even with -Werror).  So we grep stderr for any message
5762       # that says an option was ignored or not supported.
5763       # When given -MP, icc 7.0 and 7.1 complain thusly:
5764       #   icc: Command line warning: ignoring option '-M'; no argument required
5765       # The diagnosis changed in icc 8.0:
5766       #   icc: Command line remark: option '-MP' not supported
5767       if (grep 'ignoring option' conftest.err ||
5768           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5769         am_cv_CC_dependencies_compiler_type=$depmode
5770         break
5771       fi
5772     fi
5773   done
5774
5775   cd ..
5776   rm -rf conftest.dir
5777 else
5778   am_cv_CC_dependencies_compiler_type=none
5779 fi
5780
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5784 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5785
5786  if
5787   test "x$enable_dependency_tracking" != xno \
5788   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5789   am__fastdepCC_TRUE=
5790   am__fastdepCC_FALSE='#'
5791 else
5792   am__fastdepCC_TRUE='#'
5793   am__fastdepCC_FALSE=
5794 fi
5795
5796
5797 ac_ext=cpp
5798 ac_cpp='$CXXCPP $CPPFLAGS'
5799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5802 if test -z "$CXX"; then
5803   if test -n "$CCC"; then
5804     CXX=$CCC
5805   else
5806     if test -n "$ac_tool_prefix"; then
5807   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5808   do
5809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_CXX+:} false; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   if test -n "$CXX"; then
5817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824     for ac_exec_ext in '' $ac_executable_extensions; do
5825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831   done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 CXX=$ac_cv_prog_CXX
5837 if test -n "$CXX"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5839 $as_echo "$CXX" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846     test -n "$CXX" && break
5847   done
5848 fi
5849 if test -z "$CXX"; then
5850   ac_ct_CXX=$CXX
5851   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5852 do
5853   # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy $ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   if test -n "$ac_ct_CXX"; then
5861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868     for ac_exec_ext in '' $ac_executable_extensions; do
5869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870     ac_cv_prog_ac_ct_CXX="$ac_prog"
5871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875   done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5881 if test -n "$ac_ct_CXX"; then
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5883 $as_echo "$ac_ct_CXX" >&6; }
5884 else
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890   test -n "$ac_ct_CXX" && break
5891 done
5892
5893   if test "x$ac_ct_CXX" = x; then
5894     CXX="g++"
5895   else
5896     case $cross_compiling:$ac_tool_warned in
5897 yes:)
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900 ac_tool_warned=yes ;;
5901 esac
5902     CXX=$ac_ct_CXX
5903   fi
5904 fi
5905
5906   fi
5907 fi
5908 # Provide some information about the compiler.
5909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5910 set X $ac_compile
5911 ac_compiler=$2
5912 for ac_option in --version -v -V -qversion; do
5913   { { ac_try="$ac_compiler $ac_option >&5"
5914 case "(($ac_try" in
5915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916   *) ac_try_echo=$ac_try;;
5917 esac
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5921   ac_status=$?
5922   if test -s conftest.err; then
5923     sed '10a\
5924 ... rest of stderr output deleted ...
5925          10q' conftest.err >conftest.er1
5926     cat conftest.er1 >&5
5927   fi
5928   rm -f conftest.er1 conftest.err
5929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5930   test $ac_status = 0; }
5931 done
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5935 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h.  */
5940
5941 int
5942 main ()
5943 {
5944 #ifndef __GNUC__
5945        choke me
5946 #endif
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_cxx_try_compile "$LINENO"; then :
5953   ac_compiler_gnu=yes
5954 else
5955   ac_compiler_gnu=no
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5963 if test $ac_compiler_gnu = yes; then
5964   GXX=yes
5965 else
5966   GXX=
5967 fi
5968 ac_test_CXXFLAGS=${CXXFLAGS+set}
5969 ac_save_CXXFLAGS=$CXXFLAGS
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5972 if ${ac_cv_prog_cxx_g+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5976    ac_cxx_werror_flag=yes
5977    ac_cv_prog_cxx_g=no
5978    CXXFLAGS="-g"
5979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
5982 int
5983 main ()
5984 {
5985
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_cxx_try_compile "$LINENO"; then :
5991   ac_cv_prog_cxx_g=yes
5992 else
5993   CXXFLAGS=""
5994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h.  */
5996
5997 int
5998 main ()
5999 {
6000
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6006
6007 else
6008   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6009          CXXFLAGS="-g"
6010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h.  */
6012
6013 int
6014 main ()
6015 {
6016
6017   ;
6018   return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_cxx_try_compile "$LINENO"; then :
6022   ac_cv_prog_cxx_g=yes
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6033 if test "$ac_test_CXXFLAGS" = set; then
6034   CXXFLAGS=$ac_save_CXXFLAGS
6035 elif test $ac_cv_prog_cxx_g = yes; then
6036   if test "$GXX" = yes; then
6037     CXXFLAGS="-g -O2"
6038   else
6039     CXXFLAGS="-g"
6040   fi
6041 else
6042   if test "$GXX" = yes; then
6043     CXXFLAGS="-O2"
6044   else
6045     CXXFLAGS=
6046   fi
6047 fi
6048 ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053
6054 depcc="$CXX"  am_compiler_list=
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6057 $as_echo_n "checking dependency style of $depcc... " >&6; }
6058 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6062   # We make a subdir and do the tests there.  Otherwise we can end up
6063   # making bogus files that we don't know about and never remove.  For
6064   # instance it was reported that on HP-UX the gcc test will end up
6065   # making a dummy file named 'D' -- because '-MD' means "put the output
6066   # in D".
6067   rm -rf conftest.dir
6068   mkdir conftest.dir
6069   # Copy depcomp to subdir because otherwise we won't find it if we're
6070   # using a relative directory.
6071   cp "$am_depcomp" conftest.dir
6072   cd conftest.dir
6073   # We will build objects and dependencies in a subdirectory because
6074   # it helps to detect inapplicable dependency modes.  For instance
6075   # both Tru64's cc and ICC support -MD to output dependencies as a
6076   # side effect of compilation, but ICC will put the dependencies in
6077   # the current directory while Tru64 will put them in the object
6078   # directory.
6079   mkdir sub
6080
6081   am_cv_CXX_dependencies_compiler_type=none
6082   if test "$am_compiler_list" = ""; then
6083      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6084   fi
6085   am__universal=false
6086   case " $depcc " in #(
6087      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6088      esac
6089
6090   for depmode in $am_compiler_list; do
6091     # Setup a source with many dependencies, because some compilers
6092     # like to wrap large dependency lists on column 80 (with \), and
6093     # we should not choose a depcomp mode which is confused by this.
6094     #
6095     # We need to recreate these files for each test, as the compiler may
6096     # overwrite some of them when testing with obscure command lines.
6097     # This happens at least with the AIX C compiler.
6098     : > sub/conftest.c
6099     for i in 1 2 3 4 5 6; do
6100       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6101       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6102       # Solaris 10 /bin/sh.
6103       echo '/* dummy */' > sub/conftst$i.h
6104     done
6105     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6106
6107     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6108     # mode.  It turns out that the SunPro C++ compiler does not properly
6109     # handle '-M -o', and we need to detect this.  Also, some Intel
6110     # versions had trouble with output in subdirs.
6111     am__obj=sub/conftest.${OBJEXT-o}
6112     am__minus_obj="-o $am__obj"
6113     case $depmode in
6114     gcc)
6115       # This depmode causes a compiler race in universal mode.
6116       test "$am__universal" = false || continue
6117       ;;
6118     nosideeffect)
6119       # After this tag, mechanisms are not by side-effect, so they'll
6120       # only be used when explicitly requested.
6121       if test "x$enable_dependency_tracking" = xyes; then
6122         continue
6123       else
6124         break
6125       fi
6126       ;;
6127     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6128       # This compiler won't grok '-c -o', but also, the minuso test has
6129       # not run yet.  These depmodes are late enough in the game, and
6130       # so weak that their functioning should not be impacted.
6131       am__obj=conftest.${OBJEXT-o}
6132       am__minus_obj=
6133       ;;
6134     none) break ;;
6135     esac
6136     if depmode=$depmode \
6137        source=sub/conftest.c object=$am__obj \
6138        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6139        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6140          >/dev/null 2>conftest.err &&
6141        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6142        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6143        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6144        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6145       # icc doesn't choke on unknown options, it will just issue warnings
6146       # or remarks (even with -Werror).  So we grep stderr for any message
6147       # that says an option was ignored or not supported.
6148       # When given -MP, icc 7.0 and 7.1 complain thusly:
6149       #   icc: Command line warning: ignoring option '-M'; no argument required
6150       # The diagnosis changed in icc 8.0:
6151       #   icc: Command line remark: option '-MP' not supported
6152       if (grep 'ignoring option' conftest.err ||
6153           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6154         am_cv_CXX_dependencies_compiler_type=$depmode
6155         break
6156       fi
6157     fi
6158   done
6159
6160   cd ..
6161   rm -rf conftest.dir
6162 else
6163   am_cv_CXX_dependencies_compiler_type=none
6164 fi
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6168 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6170
6171  if
6172   test "x$enable_dependency_tracking" != xno \
6173   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6174   am__fastdepCXX_TRUE=
6175   am__fastdepCXX_FALSE='#'
6176 else
6177   am__fastdepCXX_TRUE='#'
6178   am__fastdepCXX_FALSE=
6179 fi
6180
6181
6182
6183 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6184 for ac_prog in gitlog-to-changelog
6185 do
6186   # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$GITLOG_TO_CHANGELOG"; then
6194   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6214 if test -n "$GITLOG_TO_CHANGELOG"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6216 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222
6223   test -n "$GITLOG_TO_CHANGELOG" && break
6224 done
6225 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 cat >>confdefs.h <<_ACEOF
6236 #define PACKAGE "$PACKAGE"
6237 _ACEOF
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define VERSION "$VERSION"
6242 _ACEOF
6243
6244 VERSION_NUMBER=0x010505
6245
6246
6247 # Don't default to build static libs.
6248
6249 case `pwd` in
6250   *\ * | *\     *)
6251     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6252 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6253 esac
6254
6255
6256
6257 macro_version='2.4.2'
6258 macro_revision='1.3337'
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 ltmain="$ac_aux_dir/ltmain.sh"
6273
6274 # Backslashify metacharacters that are still active within
6275 # double-quoted strings.
6276 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6277
6278 # Same as above, but do not quote variable references.
6279 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6280
6281 # Sed substitution to delay expansion of an escaped shell variable in a
6282 # double_quote_subst'ed string.
6283 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6284
6285 # Sed substitution to delay expansion of an escaped single quote.
6286 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6287
6288 # Sed substitution to avoid accidental globbing in evaled expressions
6289 no_glob_subst='s/\*/\\\*/g'
6290
6291 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6292 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6293 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6296 $as_echo_n "checking how to print strings... " >&6; }
6297 # Test print first, because it will be a builtin if present.
6298 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6299    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6300   ECHO='print -r --'
6301 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6302   ECHO='printf %s\n'
6303 else
6304   # Use this function as a fallback that always works.
6305   func_fallback_echo ()
6306   {
6307     eval 'cat <<_LTECHO_EOF
6308 $1
6309 _LTECHO_EOF'
6310   }
6311   ECHO='func_fallback_echo'
6312 fi
6313
6314 # func_echo_all arg...
6315 # Invoke $ECHO with all args, space-separated.
6316 func_echo_all ()
6317 {
6318     $ECHO ""
6319 }
6320
6321 case "$ECHO" in
6322   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6323 $as_echo "printf" >&6; } ;;
6324   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6325 $as_echo "print -r" >&6; } ;;
6326   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6327 $as_echo "cat" >&6; } ;;
6328 esac
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6344 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6345 if ${ac_cv_path_SED+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6349      for ac_i in 1 2 3 4 5 6 7; do
6350        ac_script="$ac_script$as_nl$ac_script"
6351      done
6352      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6353      { ac_script=; unset ac_script;}
6354      if test -z "$SED"; then
6355   ac_path_SED_found=false
6356   # Loop through the user's path and test for each of PROGNAME-LIST
6357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362     for ac_prog in sed gsed; do
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6365       as_fn_executable_p "$ac_path_SED" || continue
6366 # Check for GNU ac_path_SED and select it if it is found.
6367   # Check for GNU $ac_path_SED
6368 case `"$ac_path_SED" --version 2>&1` in
6369 *GNU*)
6370   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6371 *)
6372   ac_count=0
6373   $as_echo_n 0123456789 >"conftest.in"
6374   while :
6375   do
6376     cat "conftest.in" "conftest.in" >"conftest.tmp"
6377     mv "conftest.tmp" "conftest.in"
6378     cp "conftest.in" "conftest.nl"
6379     $as_echo '' >> "conftest.nl"
6380     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6382     as_fn_arith $ac_count + 1 && ac_count=$as_val
6383     if test $ac_count -gt ${ac_path_SED_max-0}; then
6384       # Best one so far, save it but keep looking for a better one
6385       ac_cv_path_SED="$ac_path_SED"
6386       ac_path_SED_max=$ac_count
6387     fi
6388     # 10*(2^10) chars as input seems more than enough
6389     test $ac_count -gt 10 && break
6390   done
6391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6392 esac
6393
6394       $ac_path_SED_found && break 3
6395     done
6396   done
6397   done
6398 IFS=$as_save_IFS
6399   if test -z "$ac_cv_path_SED"; then
6400     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6401   fi
6402 else
6403   ac_cv_path_SED=$SED
6404 fi
6405
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6408 $as_echo "$ac_cv_path_SED" >&6; }
6409  SED="$ac_cv_path_SED"
6410   rm -f conftest.sed
6411
6412 test -z "$SED" && SED=sed
6413 Xsed="$SED -e 1s/^X//"
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6426 $as_echo_n "checking for fgrep... " >&6; }
6427 if ${ac_cv_path_FGREP+:} false; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6431    then ac_cv_path_FGREP="$GREP -F"
6432    else
6433      if test -z "$FGREP"; then
6434   ac_path_FGREP_found=false
6435   # Loop through the user's path and test for each of PROGNAME-LIST
6436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441     for ac_prog in fgrep; do
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6444       as_fn_executable_p "$ac_path_FGREP" || continue
6445 # Check for GNU ac_path_FGREP and select it if it is found.
6446   # Check for GNU $ac_path_FGREP
6447 case `"$ac_path_FGREP" --version 2>&1` in
6448 *GNU*)
6449   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6450 *)
6451   ac_count=0
6452   $as_echo_n 0123456789 >"conftest.in"
6453   while :
6454   do
6455     cat "conftest.in" "conftest.in" >"conftest.tmp"
6456     mv "conftest.tmp" "conftest.in"
6457     cp "conftest.in" "conftest.nl"
6458     $as_echo 'FGREP' >> "conftest.nl"
6459     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6460     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6461     as_fn_arith $ac_count + 1 && ac_count=$as_val
6462     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6463       # Best one so far, save it but keep looking for a better one
6464       ac_cv_path_FGREP="$ac_path_FGREP"
6465       ac_path_FGREP_max=$ac_count
6466     fi
6467     # 10*(2^10) chars as input seems more than enough
6468     test $ac_count -gt 10 && break
6469   done
6470   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6471 esac
6472
6473       $ac_path_FGREP_found && break 3
6474     done
6475   done
6476   done
6477 IFS=$as_save_IFS
6478   if test -z "$ac_cv_path_FGREP"; then
6479     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6480   fi
6481 else
6482   ac_cv_path_FGREP=$FGREP
6483 fi
6484
6485    fi
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6488 $as_echo "$ac_cv_path_FGREP" >&6; }
6489  FGREP="$ac_cv_path_FGREP"
6490
6491
6492 test -z "$GREP" && GREP=grep
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 # Check whether --with-gnu-ld was given.
6513 if test "${with_gnu_ld+set}" = set; then :
6514   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6515 else
6516   with_gnu_ld=no
6517 fi
6518
6519 ac_prog=ld
6520 if test "$GCC" = yes; then
6521   # Check if gcc -print-prog-name=ld gives a path.
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6523 $as_echo_n "checking for ld used by $CC... " >&6; }
6524   case $host in
6525   *-*-mingw*)
6526     # gcc leaves a trailing carriage return which upsets mingw
6527     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6528   *)
6529     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6530   esac
6531   case $ac_prog in
6532     # Accept absolute paths.
6533     [\\/]* | ?:[\\/]*)
6534       re_direlt='/[^/][^/]*/\.\./'
6535       # Canonicalize the pathname of ld
6536       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6537       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6538         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6539       done
6540       test -z "$LD" && LD="$ac_prog"
6541       ;;
6542   "")
6543     # If it fails, then pretend we aren't using GCC.
6544     ac_prog=ld
6545     ;;
6546   *)
6547     # If it is relative, then search for the first ld in PATH.
6548     with_gnu_ld=unknown
6549     ;;
6550   esac
6551 elif test "$with_gnu_ld" = yes; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6553 $as_echo_n "checking for GNU ld... " >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6556 $as_echo_n "checking for non-GNU ld... " >&6; }
6557 fi
6558 if ${lt_cv_path_LD+:} false; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test -z "$LD"; then
6562   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563   for ac_dir in $PATH; do
6564     IFS="$lt_save_ifs"
6565     test -z "$ac_dir" && ac_dir=.
6566     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6567       lt_cv_path_LD="$ac_dir/$ac_prog"
6568       # Check to see if the program is GNU ld.  I'd rather use --version,
6569       # but apparently some variants of GNU ld only accept -v.
6570       # Break only if it was the GNU/non-GNU ld that we prefer.
6571       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6572       *GNU* | *'with BFD'*)
6573         test "$with_gnu_ld" != no && break
6574         ;;
6575       *)
6576         test "$with_gnu_ld" != yes && break
6577         ;;
6578       esac
6579     fi
6580   done
6581   IFS="$lt_save_ifs"
6582 else
6583   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6584 fi
6585 fi
6586
6587 LD="$lt_cv_path_LD"
6588 if test -n "$LD"; then
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6590 $as_echo "$LD" >&6; }
6591 else
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6594 fi
6595 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6597 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6598 if ${lt_cv_prog_gnu_ld+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6602 case `$LD -v 2>&1 </dev/null` in
6603 *GNU* | *'with BFD'*)
6604   lt_cv_prog_gnu_ld=yes
6605   ;;
6606 *)
6607   lt_cv_prog_gnu_ld=no
6608   ;;
6609 esac
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6612 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6613 with_gnu_ld=$lt_cv_prog_gnu_ld
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6624 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6625 if ${lt_cv_path_NM+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   if test -n "$NM"; then
6629   # Let the user override the test.
6630   lt_cv_path_NM="$NM"
6631 else
6632   lt_nm_to_check="${ac_tool_prefix}nm"
6633   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6634     lt_nm_to_check="$lt_nm_to_check nm"
6635   fi
6636   for lt_tmp_nm in $lt_nm_to_check; do
6637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6638     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6639       IFS="$lt_save_ifs"
6640       test -z "$ac_dir" && ac_dir=.
6641       tmp_nm="$ac_dir/$lt_tmp_nm"
6642       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6643         # Check to see if the nm accepts a BSD-compat flag.
6644         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6645         #   nm: unknown option "B" ignored
6646         # Tru64's nm complains that /dev/null is an invalid object file
6647         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6648         */dev/null* | *'Invalid file or object type'*)
6649           lt_cv_path_NM="$tmp_nm -B"
6650           break
6651           ;;
6652         *)
6653           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6654           */dev/null*)
6655             lt_cv_path_NM="$tmp_nm -p"
6656             break
6657             ;;
6658           *)
6659             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6660             continue # so that we can try to find one that supports BSD flags
6661             ;;
6662           esac
6663           ;;
6664         esac
6665       fi
6666     done
6667     IFS="$lt_save_ifs"
6668   done
6669   : ${lt_cv_path_NM=no}
6670 fi
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6673 $as_echo "$lt_cv_path_NM" >&6; }
6674 if test "$lt_cv_path_NM" != "no"; then
6675   NM="$lt_cv_path_NM"
6676 else
6677   # Didn't find any BSD compatible name lister, look for dumpbin.
6678   if test -n "$DUMPBIN"; then :
6679     # Let the user override the test.
6680   else
6681     if test -n "$ac_tool_prefix"; then
6682   for ac_prog in dumpbin "link -dump"
6683   do
6684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if ${ac_cv_prog_DUMPBIN+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   if test -n "$DUMPBIN"; then
6692   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699     for ac_exec_ext in '' $ac_executable_extensions; do
6700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706   done
6707 IFS=$as_save_IFS
6708
6709 fi
6710 fi
6711 DUMPBIN=$ac_cv_prog_DUMPBIN
6712 if test -n "$DUMPBIN"; then
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6714 $as_echo "$DUMPBIN" >&6; }
6715 else
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719
6720
6721     test -n "$DUMPBIN" && break
6722   done
6723 fi
6724 if test -z "$DUMPBIN"; then
6725   ac_ct_DUMPBIN=$DUMPBIN
6726   for ac_prog in dumpbin "link -dump"
6727 do
6728   # Extract the first word of "$ac_prog", so it can be a program name with args.
6729 set dummy $ac_prog; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$ac_ct_DUMPBIN"; then
6736   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6756 if test -n "$ac_ct_DUMPBIN"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6758 $as_echo "$ac_ct_DUMPBIN" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765   test -n "$ac_ct_DUMPBIN" && break
6766 done
6767
6768   if test "x$ac_ct_DUMPBIN" = x; then
6769     DUMPBIN=":"
6770   else
6771     case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777     DUMPBIN=$ac_ct_DUMPBIN
6778   fi
6779 fi
6780
6781     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6782     *COFF*)
6783       DUMPBIN="$DUMPBIN -symbols"
6784       ;;
6785     *)
6786       DUMPBIN=:
6787       ;;
6788     esac
6789   fi
6790
6791   if test "$DUMPBIN" != ":"; then
6792     NM="$DUMPBIN"
6793   fi
6794 fi
6795 test -z "$NM" && NM=nm
6796
6797
6798
6799
6800
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6803 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6804 if ${lt_cv_nm_interface+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   lt_cv_nm_interface="BSD nm"
6808   echo "int some_variable = 0;" > conftest.$ac_ext
6809   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6810   (eval "$ac_compile" 2>conftest.err)
6811   cat conftest.err >&5
6812   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6813   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6814   cat conftest.err >&5
6815   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6816   cat conftest.out >&5
6817   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6818     lt_cv_nm_interface="MS dumpbin"
6819   fi
6820   rm -f conftest*
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6823 $as_echo "$lt_cv_nm_interface" >&6; }
6824
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6826 $as_echo_n "checking whether ln -s works... " >&6; }
6827 LN_S=$as_ln_s
6828 if test "$LN_S" = "ln -s"; then
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6830 $as_echo "yes" >&6; }
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6833 $as_echo "no, using $LN_S" >&6; }
6834 fi
6835
6836 # find the maximum length of command line arguments
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6838 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6839 if ${lt_cv_sys_max_cmd_len+:} false; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842     i=0
6843   teststring="ABCD"
6844
6845   case $build_os in
6846   msdosdjgpp*)
6847     # On DJGPP, this test can blow up pretty badly due to problems in libc
6848     # (any single argument exceeding 2000 bytes causes a buffer overrun
6849     # during glob expansion).  Even if it were fixed, the result of this
6850     # check would be larger than it should be.
6851     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6852     ;;
6853
6854   gnu*)
6855     # Under GNU Hurd, this test is not required because there is
6856     # no limit to the length of command line arguments.
6857     # Libtool will interpret -1 as no limit whatsoever
6858     lt_cv_sys_max_cmd_len=-1;
6859     ;;
6860
6861   cygwin* | mingw* | cegcc*)
6862     # On Win9x/ME, this test blows up -- it succeeds, but takes
6863     # about 5 minutes as the teststring grows exponentially.
6864     # Worse, since 9x/ME are not pre-emptively multitasking,
6865     # you end up with a "frozen" computer, even though with patience
6866     # the test eventually succeeds (with a max line length of 256k).
6867     # Instead, let's just punt: use the minimum linelength reported by
6868     # all of the supported platforms: 8192 (on NT/2K/XP).
6869     lt_cv_sys_max_cmd_len=8192;
6870     ;;
6871
6872   mint*)
6873     # On MiNT this can take a long time and run out of memory.
6874     lt_cv_sys_max_cmd_len=8192;
6875     ;;
6876
6877   amigaos*)
6878     # On AmigaOS with pdksh, this test takes hours, literally.
6879     # So we just punt and use a minimum line length of 8192.
6880     lt_cv_sys_max_cmd_len=8192;
6881     ;;
6882
6883   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6884     # This has been around since 386BSD, at least.  Likely further.
6885     if test -x /sbin/sysctl; then
6886       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6887     elif test -x /usr/sbin/sysctl; then
6888       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6889     else
6890       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6891     fi
6892     # And add a safety zone
6893     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6894     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6895     ;;
6896
6897   interix*)
6898     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6899     lt_cv_sys_max_cmd_len=196608
6900     ;;
6901
6902   os2*)
6903     # The test takes a long time on OS/2.
6904     lt_cv_sys_max_cmd_len=8192
6905     ;;
6906
6907   osf*)
6908     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6909     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6910     # nice to cause kernel panics so lets avoid the loop below.
6911     # First set a reasonable default.
6912     lt_cv_sys_max_cmd_len=16384
6913     #
6914     if test -x /sbin/sysconfig; then
6915       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6916         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6917       esac
6918     fi
6919     ;;
6920   sco3.2v5*)
6921     lt_cv_sys_max_cmd_len=102400
6922     ;;
6923   sysv5* | sco5v6* | sysv4.2uw2*)
6924     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6925     if test -n "$kargmax"; then
6926       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6927     else
6928       lt_cv_sys_max_cmd_len=32768
6929     fi
6930     ;;
6931   *)
6932     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6933     if test -n "$lt_cv_sys_max_cmd_len"; then
6934       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6936     else
6937       # Make teststring a little bigger before we do anything with it.
6938       # a 1K string should be a reasonable start.
6939       for i in 1 2 3 4 5 6 7 8 ; do
6940         teststring=$teststring$teststring
6941       done
6942       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6943       # If test is not a shell built-in, we'll probably end up computing a
6944       # maximum length that is only half of the actual maximum length, but
6945       # we can't tell.
6946       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6947                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6948               test $i != 17 # 1/2 MB should be enough
6949       do
6950         i=`expr $i + 1`
6951         teststring=$teststring$teststring
6952       done
6953       # Only check the string length outside the loop.
6954       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6955       teststring=
6956       # Add a significant safety factor because C++ compilers can tack on
6957       # massive amounts of additional arguments before passing them to the
6958       # linker.  It appears as though 1/2 is a usable value.
6959       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6960     fi
6961     ;;
6962   esac
6963
6964 fi
6965
6966 if test -n $lt_cv_sys_max_cmd_len ; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6968 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6971 $as_echo "none" >&6; }
6972 fi
6973 max_cmd_len=$lt_cv_sys_max_cmd_len
6974
6975
6976
6977
6978
6979
6980 : ${CP="cp -f"}
6981 : ${MV="mv -f"}
6982 : ${RM="rm -f"}
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6985 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6986 # Try some XSI features
6987 xsi_shell=no
6988 ( _lt_dummy="a/b/c"
6989   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6990       = c,a/b,b/c, \
6991     && eval 'test $(( 1 + 1 )) -eq 2 \
6992     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6993   && xsi_shell=yes
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6995 $as_echo "$xsi_shell" >&6; }
6996
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6999 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7000 lt_shell_append=no
7001 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7002     >/dev/null 2>&1 \
7003   && lt_shell_append=yes
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7005 $as_echo "$lt_shell_append" >&6; }
7006
7007
7008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7009   lt_unset=unset
7010 else
7011   lt_unset=false
7012 fi
7013
7014
7015
7016
7017
7018 # test EBCDIC or ASCII
7019 case `echo X|tr X '\101'` in
7020  A) # ASCII based system
7021     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7022   lt_SP2NL='tr \040 \012'
7023   lt_NL2SP='tr \015\012 \040\040'
7024   ;;
7025  *) # EBCDIC based system
7026   lt_SP2NL='tr \100 \n'
7027   lt_NL2SP='tr \r\n \100\100'
7028   ;;
7029 esac
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7040 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7041 if ${lt_cv_to_host_file_cmd+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   case $host in
7045   *-*-mingw* )
7046     case $build in
7047       *-*-mingw* ) # actually msys
7048         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7049         ;;
7050       *-*-cygwin* )
7051         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7052         ;;
7053       * ) # otherwise, assume *nix
7054         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7055         ;;
7056     esac
7057     ;;
7058   *-*-cygwin* )
7059     case $build in
7060       *-*-mingw* ) # actually msys
7061         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7062         ;;
7063       *-*-cygwin* )
7064         lt_cv_to_host_file_cmd=func_convert_file_noop
7065         ;;
7066       * ) # otherwise, assume *nix
7067         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7068         ;;
7069     esac
7070     ;;
7071   * ) # unhandled hosts (and "normal" native builds)
7072     lt_cv_to_host_file_cmd=func_convert_file_noop
7073     ;;
7074 esac
7075
7076 fi
7077
7078 to_host_file_cmd=$lt_cv_to_host_file_cmd
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7080 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7081
7082
7083
7084
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7087 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7088 if ${lt_cv_to_tool_file_cmd+:} false; then :
7089   $as_echo_n "(cached) " >&6
7090 else
7091   #assume ordinary cross tools, or native build.
7092 lt_cv_to_tool_file_cmd=func_convert_file_noop
7093 case $host in
7094   *-*-mingw* )
7095     case $build in
7096       *-*-mingw* ) # actually msys
7097         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7098         ;;
7099     esac
7100     ;;
7101 esac
7102
7103 fi
7104
7105 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7107 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7108
7109
7110
7111
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7114 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7115 if ${lt_cv_ld_reload_flag+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   lt_cv_ld_reload_flag='-r'
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7121 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7122 reload_flag=$lt_cv_ld_reload_flag
7123 case $reload_flag in
7124 "" | " "*) ;;
7125 *) reload_flag=" $reload_flag" ;;
7126 esac
7127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7128 case $host_os in
7129   cygwin* | mingw* | pw32* | cegcc*)
7130     if test "$GCC" != yes; then
7131       reload_cmds=false
7132     fi
7133     ;;
7134   darwin*)
7135     if test "$GCC" = yes; then
7136       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7137     else
7138       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7139     fi
7140     ;;
7141 esac
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 if test -n "$ac_tool_prefix"; then
7152   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_OBJDUMP+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$OBJDUMP"; then
7160   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 OBJDUMP=$ac_cv_prog_OBJDUMP
7180 if test -n "$OBJDUMP"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7182 $as_echo "$OBJDUMP" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_OBJDUMP"; then
7191   ac_ct_OBJDUMP=$OBJDUMP
7192   # Extract the first word of "objdump", so it can be a program name with args.
7193 set dummy objdump; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if test -n "$ac_ct_OBJDUMP"; then
7200   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207     for ac_exec_ext in '' $ac_executable_extensions; do
7208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214   done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7220 if test -n "$ac_ct_OBJDUMP"; then
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7222 $as_echo "$ac_ct_OBJDUMP" >&6; }
7223 else
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228   if test "x$ac_ct_OBJDUMP" = x; then
7229     OBJDUMP="false"
7230   else
7231     case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237     OBJDUMP=$ac_ct_OBJDUMP
7238   fi
7239 else
7240   OBJDUMP="$ac_cv_prog_OBJDUMP"
7241 fi
7242
7243 test -z "$OBJDUMP" && OBJDUMP=objdump
7244
7245
7246
7247
7248
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7251 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7252 if ${lt_cv_deplibs_check_method+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   lt_cv_file_magic_cmd='$MAGIC_CMD'
7256 lt_cv_file_magic_test_file=
7257 lt_cv_deplibs_check_method='unknown'
7258 # Need to set the preceding variable on all platforms that support
7259 # interlibrary dependencies.
7260 # 'none' -- dependencies not supported.
7261 # `unknown' -- same as none, but documents that we really don't know.
7262 # 'pass_all' -- all dependencies passed with no checks.
7263 # 'test_compile' -- check by making test program.
7264 # 'file_magic [[regex]]' -- check by looking for files in library path
7265 # which responds to the $file_magic_cmd with a given extended regex.
7266 # If you have `file' or equivalent on your system and you're not sure
7267 # whether `pass_all' will *always* work, you probably want this one.
7268
7269 case $host_os in
7270 aix[4-9]*)
7271   lt_cv_deplibs_check_method=pass_all
7272   ;;
7273
7274 beos*)
7275   lt_cv_deplibs_check_method=pass_all
7276   ;;
7277
7278 bsdi[45]*)
7279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7280   lt_cv_file_magic_cmd='/usr/bin/file -L'
7281   lt_cv_file_magic_test_file=/shlib/libc.so
7282   ;;
7283
7284 cygwin*)
7285   # func_win32_libid is a shell function defined in ltmain.sh
7286   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7287   lt_cv_file_magic_cmd='func_win32_libid'
7288   ;;
7289
7290 mingw* | pw32*)
7291   # Base MSYS/MinGW do not provide the 'file' command needed by
7292   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7293   # unless we find 'file', for example because we are cross-compiling.
7294   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7295   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7296     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7297     lt_cv_file_magic_cmd='func_win32_libid'
7298   else
7299     # Keep this pattern in sync with the one in func_win32_libid.
7300     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7301     lt_cv_file_magic_cmd='$OBJDUMP -f'
7302   fi
7303   ;;
7304
7305 cegcc*)
7306   # use the weaker test based on 'objdump'. See mingw*.
7307   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7308   lt_cv_file_magic_cmd='$OBJDUMP -f'
7309   ;;
7310
7311 darwin* | rhapsody*)
7312   lt_cv_deplibs_check_method=pass_all
7313   ;;
7314
7315 freebsd* | dragonfly*)
7316   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7317     case $host_cpu in
7318     i*86 )
7319       # Not sure whether the presence of OpenBSD here was a mistake.
7320       # Let's accept both of them until this is cleared up.
7321       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7322       lt_cv_file_magic_cmd=/usr/bin/file
7323       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7324       ;;
7325     esac
7326   else
7327     lt_cv_deplibs_check_method=pass_all
7328   fi
7329   ;;
7330
7331 gnu*)
7332   lt_cv_deplibs_check_method=pass_all
7333   ;;
7334
7335 haiku*)
7336   lt_cv_deplibs_check_method=pass_all
7337   ;;
7338
7339 hpux10.20* | hpux11*)
7340   lt_cv_file_magic_cmd=/usr/bin/file
7341   case $host_cpu in
7342   ia64*)
7343     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7344     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7345     ;;
7346   hppa*64*)
7347     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]'
7348     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7349     ;;
7350   *)
7351     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7352     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7353     ;;
7354   esac
7355   ;;
7356
7357 interix[3-9]*)
7358   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7359   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7360   ;;
7361
7362 irix5* | irix6* | nonstopux*)
7363   case $LD in
7364   *-32|*"-32 ") libmagic=32-bit;;
7365   *-n32|*"-n32 ") libmagic=N32;;
7366   *-64|*"-64 ") libmagic=64-bit;;
7367   *) libmagic=never-match;;
7368   esac
7369   lt_cv_deplibs_check_method=pass_all
7370   ;;
7371
7372 # This must be glibc/ELF.
7373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7374   lt_cv_deplibs_check_method=pass_all
7375   ;;
7376
7377 netbsd* | netbsdelf*-gnu)
7378   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7379     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7380   else
7381     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7382   fi
7383   ;;
7384
7385 newos6*)
7386   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7387   lt_cv_file_magic_cmd=/usr/bin/file
7388   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7389   ;;
7390
7391 *nto* | *qnx*)
7392   lt_cv_deplibs_check_method=pass_all
7393   ;;
7394
7395 openbsd*)
7396   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7397     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7398   else
7399     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7400   fi
7401   ;;
7402
7403 osf3* | osf4* | osf5*)
7404   lt_cv_deplibs_check_method=pass_all
7405   ;;
7406
7407 rdos*)
7408   lt_cv_deplibs_check_method=pass_all
7409   ;;
7410
7411 solaris*)
7412   lt_cv_deplibs_check_method=pass_all
7413   ;;
7414
7415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7416   lt_cv_deplibs_check_method=pass_all
7417   ;;
7418
7419 sysv4 | sysv4.3*)
7420   case $host_vendor in
7421   motorola)
7422     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]'
7423     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7424     ;;
7425   ncr)
7426     lt_cv_deplibs_check_method=pass_all
7427     ;;
7428   sequent)
7429     lt_cv_file_magic_cmd='/bin/file'
7430     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7431     ;;
7432   sni)
7433     lt_cv_file_magic_cmd='/bin/file'
7434     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7435     lt_cv_file_magic_test_file=/lib/libc.so
7436     ;;
7437   siemens)
7438     lt_cv_deplibs_check_method=pass_all
7439     ;;
7440   pc)
7441     lt_cv_deplibs_check_method=pass_all
7442     ;;
7443   esac
7444   ;;
7445
7446 tpf*)
7447   lt_cv_deplibs_check_method=pass_all
7448   ;;
7449 esac
7450
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7454
7455 file_magic_glob=
7456 want_nocaseglob=no
7457 if test "$build" = "$host"; then
7458   case $host_os in
7459   mingw* | pw32*)
7460     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7461       want_nocaseglob=yes
7462     else
7463       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7464     fi
7465     ;;
7466   esac
7467 fi
7468
7469 file_magic_cmd=$lt_cv_file_magic_cmd
7470 deplibs_check_method=$lt_cv_deplibs_check_method
7471 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 if test -n "$ac_tool_prefix"; then
7495   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_DLLTOOL+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   if test -n "$DLLTOOL"; then
7503   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510     for ac_exec_ext in '' $ac_executable_extensions; do
7511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517   done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 DLLTOOL=$ac_cv_prog_DLLTOOL
7523 if test -n "$DLLTOOL"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7525 $as_echo "$DLLTOOL" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531
7532 fi
7533 if test -z "$ac_cv_prog_DLLTOOL"; then
7534   ac_ct_DLLTOOL=$DLLTOOL
7535   # Extract the first word of "dlltool", so it can be a program name with args.
7536 set dummy dlltool; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$ac_ct_DLLTOOL"; then
7543   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7563 if test -n "$ac_ct_DLLTOOL"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7565 $as_echo "$ac_ct_DLLTOOL" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571   if test "x$ac_ct_DLLTOOL" = x; then
7572     DLLTOOL="false"
7573   else
7574     case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580     DLLTOOL=$ac_ct_DLLTOOL
7581   fi
7582 else
7583   DLLTOOL="$ac_cv_prog_DLLTOOL"
7584 fi
7585
7586 test -z "$DLLTOOL" && DLLTOOL=dlltool
7587
7588
7589
7590
7591
7592
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7595 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7596 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   lt_cv_sharedlib_from_linklib_cmd='unknown'
7600
7601 case $host_os in
7602 cygwin* | mingw* | pw32* | cegcc*)
7603   # two different shell functions defined in ltmain.sh
7604   # decide which to use based on capabilities of $DLLTOOL
7605   case `$DLLTOOL --help 2>&1` in
7606   *--identify-strict*)
7607     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7608     ;;
7609   *)
7610     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7611     ;;
7612   esac
7613   ;;
7614 *)
7615   # fallback: assume linklib IS sharedlib
7616   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7617   ;;
7618 esac
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7622 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7623 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7624 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7625
7626
7627
7628
7629
7630
7631
7632 if test -n "$ac_tool_prefix"; then
7633   for ac_prog in ar
7634   do
7635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_AR+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$AR"; then
7643   ac_cv_prog_AR="$AR" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 AR=$ac_cv_prog_AR
7663 if test -n "$AR"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7665 $as_echo "$AR" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672     test -n "$AR" && break
7673   done
7674 fi
7675 if test -z "$AR"; then
7676   ac_ct_AR=$AR
7677   for ac_prog in ar
7678 do
7679   # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7684   $as_echo_n "(cached) " >&6
7685 else
7686   if test -n "$ac_ct_AR"; then
7687   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696     ac_cv_prog_ac_ct_AR="$ac_prog"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7707 if test -n "$ac_ct_AR"; then
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7709 $as_echo "$ac_ct_AR" >&6; }
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716   test -n "$ac_ct_AR" && break
7717 done
7718
7719   if test "x$ac_ct_AR" = x; then
7720     AR="false"
7721   else
7722     case $cross_compiling:$ac_tool_warned in
7723 yes:)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7727 esac
7728     AR=$ac_ct_AR
7729   fi
7730 fi
7731
7732 : ${AR=ar}
7733 : ${AR_FLAGS=cru}
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7746 $as_echo_n "checking for archiver @FILE support... " >&6; }
7747 if ${lt_cv_ar_at_file+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   lt_cv_ar_at_file=no
7751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753
7754 int
7755 main ()
7756 {
7757
7758   ;
7759   return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763   echo conftest.$ac_objext > conftest.lst
7764       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7765       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7766   (eval $lt_ar_try) 2>&5
7767   ac_status=$?
7768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7769   test $ac_status = 0; }
7770       if test "$ac_status" -eq 0; then
7771         # Ensure the archiver fails upon bogus file names.
7772         rm -f conftest.$ac_objext libconftest.a
7773         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7774   (eval $lt_ar_try) 2>&5
7775   ac_status=$?
7776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777   test $ac_status = 0; }
7778         if test "$ac_status" -ne 0; then
7779           lt_cv_ar_at_file=@
7780         fi
7781       fi
7782       rm -f conftest.* libconftest.a
7783
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7789 $as_echo "$lt_cv_ar_at_file" >&6; }
7790
7791 if test "x$lt_cv_ar_at_file" = xno; then
7792   archiver_list_spec=
7793 else
7794   archiver_list_spec=$lt_cv_ar_at_file
7795 fi
7796
7797
7798
7799
7800
7801
7802
7803 if test -n "$ac_tool_prefix"; then
7804   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}strip; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_STRIP+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   if test -n "$STRIP"; then
7812   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819     for ac_exec_ext in '' $ac_executable_extensions; do
7820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826   done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 STRIP=$ac_cv_prog_STRIP
7832 if test -n "$STRIP"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7834 $as_echo "$STRIP" >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 fi
7842 if test -z "$ac_cv_prog_STRIP"; then
7843   ac_ct_STRIP=$STRIP
7844   # Extract the first word of "strip", so it can be a program name with args.
7845 set dummy strip; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$ac_ct_STRIP"; then
7852   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861     ac_cv_prog_ac_ct_STRIP="strip"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7872 if test -n "$ac_ct_STRIP"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7874 $as_echo "$ac_ct_STRIP" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880   if test "x$ac_ct_STRIP" = x; then
7881     STRIP=":"
7882   else
7883     case $cross_compiling:$ac_tool_warned in
7884 yes:)
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889     STRIP=$ac_ct_STRIP
7890   fi
7891 else
7892   STRIP="$ac_cv_prog_STRIP"
7893 fi
7894
7895 test -z "$STRIP" && STRIP=:
7896
7897
7898
7899
7900
7901
7902 if test -n "$ac_tool_prefix"; then
7903   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_RANLIB+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$RANLIB"; then
7911   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 RANLIB=$ac_cv_prog_RANLIB
7931 if test -n "$RANLIB"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7933 $as_echo "$RANLIB" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940 fi
7941 if test -z "$ac_cv_prog_RANLIB"; then
7942   ac_ct_RANLIB=$RANLIB
7943   # Extract the first word of "ranlib", so it can be a program name with args.
7944 set dummy ranlib; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$ac_ct_RANLIB"; then
7951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_prog_ac_ct_RANLIB="ranlib"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7971 if test -n "$ac_ct_RANLIB"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7973 $as_echo "$ac_ct_RANLIB" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979   if test "x$ac_ct_RANLIB" = x; then
7980     RANLIB=":"
7981   else
7982     case $cross_compiling:$ac_tool_warned in
7983 yes:)
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7987 esac
7988     RANLIB=$ac_ct_RANLIB
7989   fi
7990 else
7991   RANLIB="$ac_cv_prog_RANLIB"
7992 fi
7993
7994 test -z "$RANLIB" && RANLIB=:
7995
7996
7997
7998
7999
8000
8001 # Determine commands to create old-style static archives.
8002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8003 old_postinstall_cmds='chmod 644 $oldlib'
8004 old_postuninstall_cmds=
8005
8006 if test -n "$RANLIB"; then
8007   case $host_os in
8008   openbsd*)
8009     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8010     ;;
8011   *)
8012     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8013     ;;
8014   esac
8015   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8016 fi
8017
8018 case $host_os in
8019   darwin*)
8020     lock_old_archive_extraction=yes ;;
8021   *)
8022     lock_old_archive_extraction=no ;;
8023 esac
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063 # If no C compiler was specified, use CC.
8064 LTCC=${LTCC-"$CC"}
8065
8066 # If no C compiler flags were specified, use CFLAGS.
8067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8068
8069 # Allow CC to be a program name with arguments.
8070 compiler=$CC
8071
8072
8073 # Check for command to grab the raw symbol name followed by C symbol from nm.
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8075 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8076 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079
8080 # These are sane defaults that work on at least a few old systems.
8081 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8082
8083 # Character class describing NM global symbol codes.
8084 symcode='[BCDEGRST]'
8085
8086 # Regexp to match symbols that can be accessed directly from C.
8087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8088
8089 # Define system-specific variables.
8090 case $host_os in
8091 aix*)
8092   symcode='[BCDT]'
8093   ;;
8094 cygwin* | mingw* | pw32* | cegcc*)
8095   symcode='[ABCDGISTW]'
8096   ;;
8097 hpux*)
8098   if test "$host_cpu" = ia64; then
8099     symcode='[ABCDEGRST]'
8100   fi
8101   ;;
8102 irix* | nonstopux*)
8103   symcode='[BCDEGRST]'
8104   ;;
8105 osf*)
8106   symcode='[BCDEGQRST]'
8107   ;;
8108 solaris*)
8109   symcode='[BDRT]'
8110   ;;
8111 sco3.2v5*)
8112   symcode='[DT]'
8113   ;;
8114 sysv4.2uw2*)
8115   symcode='[DT]'
8116   ;;
8117 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8118   symcode='[ABDT]'
8119   ;;
8120 sysv4)
8121   symcode='[DFNSTU]'
8122   ;;
8123 esac
8124
8125 # If we're using GNU nm, then use its standard symbol codes.
8126 case `$NM -V 2>&1` in
8127 *GNU* | *'with BFD'*)
8128   symcode='[ABCDGIRSTW]' ;;
8129 esac
8130
8131 # Transform an extracted symbol line into a proper C declaration.
8132 # Some systems (esp. on ia64) link data and code symbols differently,
8133 # so use this general approach.
8134 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8135
8136 # Transform an extracted symbol line into symbol name and symbol address
8137 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8138 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'"
8139
8140 # Handle CRLF in mingw tool chain
8141 opt_cr=
8142 case $build_os in
8143 mingw*)
8144   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8145   ;;
8146 esac
8147
8148 # Try without a prefix underscore, then with it.
8149 for ac_symprfx in "" "_"; do
8150
8151   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8152   symxfrm="\\1 $ac_symprfx\\2 \\2"
8153
8154   # Write the raw and C identifiers.
8155   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8156     # Fake it for dumpbin and say T for any non-static function
8157     # and D for any global variable.
8158     # Also find C++ and __fastcall symbols from MSVC++,
8159     # which start with @ or ?.
8160     lt_cv_sys_global_symbol_pipe="$AWK '"\
8161 "     {last_section=section; section=\$ 3};"\
8162 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8163 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8164 "     \$ 0!~/External *\|/{next};"\
8165 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8166 "     {if(hide[section]) next};"\
8167 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8168 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8169 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8170 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8171 "     ' prfx=^$ac_symprfx"
8172   else
8173     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8174   fi
8175   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8176
8177   # Check to see that the pipe works correctly.
8178   pipe_works=no
8179
8180   rm -f conftest*
8181   cat > conftest.$ac_ext <<_LT_EOF
8182 #ifdef __cplusplus
8183 extern "C" {
8184 #endif
8185 char nm_test_var;
8186 void nm_test_func(void);
8187 void nm_test_func(void){}
8188 #ifdef __cplusplus
8189 }
8190 #endif
8191 int main(){nm_test_var='a';nm_test_func();return(0);}
8192 _LT_EOF
8193
8194   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195   (eval $ac_compile) 2>&5
8196   ac_status=$?
8197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198   test $ac_status = 0; }; then
8199     # Now try to grab the symbols.
8200     nlist=conftest.nm
8201     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8202   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8203   ac_status=$?
8204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205   test $ac_status = 0; } && test -s "$nlist"; then
8206       # Try sorting and uniquifying the output.
8207       if sort "$nlist" | uniq > "$nlist"T; then
8208         mv -f "$nlist"T "$nlist"
8209       else
8210         rm -f "$nlist"T
8211       fi
8212
8213       # Make sure that we snagged all the symbols we need.
8214       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8215         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8216           cat <<_LT_EOF > conftest.$ac_ext
8217 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8218 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8219 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8220    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8221 # define LT_DLSYM_CONST
8222 #elif defined(__osf__)
8223 /* This system does not cope well with relocations in const data.  */
8224 # define LT_DLSYM_CONST
8225 #else
8226 # define LT_DLSYM_CONST const
8227 #endif
8228
8229 #ifdef __cplusplus
8230 extern "C" {
8231 #endif
8232
8233 _LT_EOF
8234           # Now generate the symbol file.
8235           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8236
8237           cat <<_LT_EOF >> conftest.$ac_ext
8238
8239 /* The mapping between symbol names and symbols.  */
8240 LT_DLSYM_CONST struct {
8241   const char *name;
8242   void       *address;
8243 }
8244 lt__PROGRAM__LTX_preloaded_symbols[] =
8245 {
8246   { "@PROGRAM@", (void *) 0 },
8247 _LT_EOF
8248           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8249           cat <<\_LT_EOF >> conftest.$ac_ext
8250   {0, (void *) 0}
8251 };
8252
8253 /* This works around a problem in FreeBSD linker */
8254 #ifdef FREEBSD_WORKAROUND
8255 static const void *lt_preloaded_setup() {
8256   return lt__PROGRAM__LTX_preloaded_symbols;
8257 }
8258 #endif
8259
8260 #ifdef __cplusplus
8261 }
8262 #endif
8263 _LT_EOF
8264           # Now try linking the two files.
8265           mv conftest.$ac_objext conftstm.$ac_objext
8266           lt_globsym_save_LIBS=$LIBS
8267           lt_globsym_save_CFLAGS=$CFLAGS
8268           LIBS="conftstm.$ac_objext"
8269           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8270           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8271   (eval $ac_link) 2>&5
8272   ac_status=$?
8273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8275             pipe_works=yes
8276           fi
8277           LIBS=$lt_globsym_save_LIBS
8278           CFLAGS=$lt_globsym_save_CFLAGS
8279         else
8280           echo "cannot find nm_test_func in $nlist" >&5
8281         fi
8282       else
8283         echo "cannot find nm_test_var in $nlist" >&5
8284       fi
8285     else
8286       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8287     fi
8288   else
8289     echo "$progname: failed program was:" >&5
8290     cat conftest.$ac_ext >&5
8291   fi
8292   rm -rf conftest* conftst*
8293
8294   # Do not use the global_symbol_pipe unless it works.
8295   if test "$pipe_works" = yes; then
8296     break
8297   else
8298     lt_cv_sys_global_symbol_pipe=
8299   fi
8300 done
8301
8302 fi
8303
8304 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8305   lt_cv_sys_global_symbol_to_cdecl=
8306 fi
8307 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8309 $as_echo "failed" >&6; }
8310 else
8311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8312 $as_echo "ok" >&6; }
8313 fi
8314
8315 # Response file support.
8316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8317   nm_file_list_spec='@'
8318 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8319   nm_file_list_spec='@'
8320 fi
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8349 $as_echo_n "checking for sysroot... " >&6; }
8350
8351 # Check whether --with-sysroot was given.
8352 if test "${with_sysroot+set}" = set; then :
8353   withval=$with_sysroot;
8354 else
8355   with_sysroot=no
8356 fi
8357
8358
8359 lt_sysroot=
8360 case ${with_sysroot} in #(
8361  yes)
8362    if test "$GCC" = yes; then
8363      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8364    fi
8365    ;; #(
8366  /*)
8367    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8368    ;; #(
8369  no|'')
8370    ;; #(
8371  *)
8372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8373 $as_echo "${with_sysroot}" >&6; }
8374    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8375    ;;
8376 esac
8377
8378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8379 $as_echo "${lt_sysroot:-no}" >&6; }
8380
8381
8382
8383
8384
8385 # Check whether --enable-libtool-lock was given.
8386 if test "${enable_libtool_lock+set}" = set; then :
8387   enableval=$enable_libtool_lock;
8388 fi
8389
8390 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8391
8392 # Some flags need to be propagated to the compiler or linker for good
8393 # libtool support.
8394 case $host in
8395 ia64-*-hpux*)
8396   # Find out which ABI we are using.
8397   echo 'int i;' > conftest.$ac_ext
8398   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8399   (eval $ac_compile) 2>&5
8400   ac_status=$?
8401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8402   test $ac_status = 0; }; then
8403     case `/usr/bin/file conftest.$ac_objext` in
8404       *ELF-32*)
8405         HPUX_IA64_MODE="32"
8406         ;;
8407       *ELF-64*)
8408         HPUX_IA64_MODE="64"
8409         ;;
8410     esac
8411   fi
8412   rm -rf conftest*
8413   ;;
8414 *-*-irix6*)
8415   # Find out which ABI we are using.
8416   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8418   (eval $ac_compile) 2>&5
8419   ac_status=$?
8420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8421   test $ac_status = 0; }; then
8422     if test "$lt_cv_prog_gnu_ld" = yes; then
8423       case `/usr/bin/file conftest.$ac_objext` in
8424         *32-bit*)
8425           LD="${LD-ld} -melf32bsmip"
8426           ;;
8427         *N32*)
8428           LD="${LD-ld} -melf32bmipn32"
8429           ;;
8430         *64-bit*)
8431           LD="${LD-ld} -melf64bmip"
8432         ;;
8433       esac
8434     else
8435       case `/usr/bin/file conftest.$ac_objext` in
8436         *32-bit*)
8437           LD="${LD-ld} -32"
8438           ;;
8439         *N32*)
8440           LD="${LD-ld} -n32"
8441           ;;
8442         *64-bit*)
8443           LD="${LD-ld} -64"
8444           ;;
8445       esac
8446     fi
8447   fi
8448   rm -rf conftest*
8449   ;;
8450
8451 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8452 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8453   # Find out which ABI we are using.
8454   echo 'int i;' > conftest.$ac_ext
8455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8456   (eval $ac_compile) 2>&5
8457   ac_status=$?
8458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8459   test $ac_status = 0; }; then
8460     case `/usr/bin/file conftest.o` in
8461       *32-bit*)
8462         case $host in
8463           x86_64-*kfreebsd*-gnu)
8464             LD="${LD-ld} -m elf_i386_fbsd"
8465             ;;
8466           x86_64-*linux*)
8467             LD="${LD-ld} -m elf_i386"
8468             ;;
8469           ppc64-*linux*|powerpc64-*linux*)
8470             LD="${LD-ld} -m elf32ppclinux"
8471             ;;
8472           s390x-*linux*)
8473             LD="${LD-ld} -m elf_s390"
8474             ;;
8475           sparc64-*linux*)
8476             LD="${LD-ld} -m elf32_sparc"
8477             ;;
8478         esac
8479         ;;
8480       *64-bit*)
8481         case $host in
8482           x86_64-*kfreebsd*-gnu)
8483             LD="${LD-ld} -m elf_x86_64_fbsd"
8484             ;;
8485           x86_64-*linux*)
8486             LD="${LD-ld} -m elf_x86_64"
8487             ;;
8488           ppc*-*linux*|powerpc*-*linux*)
8489             LD="${LD-ld} -m elf64ppc"
8490             ;;
8491           s390*-*linux*|s390*-*tpf*)
8492             LD="${LD-ld} -m elf64_s390"
8493             ;;
8494           sparc*-*linux*)
8495             LD="${LD-ld} -m elf64_sparc"
8496             ;;
8497         esac
8498         ;;
8499     esac
8500   fi
8501   rm -rf conftest*
8502   ;;
8503
8504 *-*-sco3.2v5*)
8505   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8506   SAVE_CFLAGS="$CFLAGS"
8507   CFLAGS="$CFLAGS -belf"
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8510 if ${lt_cv_cc_needs_belf+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   ac_ext=c
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518
8519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h.  */
8521
8522 int
8523 main ()
8524 {
8525
8526   ;
8527   return 0;
8528 }
8529 _ACEOF
8530 if ac_fn_c_try_link "$LINENO"; then :
8531   lt_cv_cc_needs_belf=yes
8532 else
8533   lt_cv_cc_needs_belf=no
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext \
8536     conftest$ac_exeext conftest.$ac_ext
8537      ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8546   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8547     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8548     CFLAGS="$SAVE_CFLAGS"
8549   fi
8550   ;;
8551 *-*solaris*)
8552   # Find out which ABI we are using.
8553   echo 'int i;' > conftest.$ac_ext
8554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8555   (eval $ac_compile) 2>&5
8556   ac_status=$?
8557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558   test $ac_status = 0; }; then
8559     case `/usr/bin/file conftest.o` in
8560     *64-bit*)
8561       case $lt_cv_prog_gnu_ld in
8562       yes*)
8563         case $host in
8564         i?86-*-solaris*)
8565           LD="${LD-ld} -m elf_x86_64"
8566           ;;
8567         sparc*-*-solaris*)
8568           LD="${LD-ld} -m elf64_sparc"
8569           ;;
8570         esac
8571         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8572         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8573           LD="${LD-ld}_sol2"
8574         fi
8575         ;;
8576       *)
8577         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8578           LD="${LD-ld} -64"
8579         fi
8580         ;;
8581       esac
8582       ;;
8583     esac
8584   fi
8585   rm -rf conftest*
8586   ;;
8587 esac
8588
8589 need_locks="$enable_libtool_lock"
8590
8591 if test -n "$ac_tool_prefix"; then
8592   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8593 set dummy ${ac_tool_prefix}mt; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   if test -n "$MANIFEST_TOOL"; then
8600   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607     for ac_exec_ext in '' $ac_executable_extensions; do
8608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614   done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8620 if test -n "$MANIFEST_TOOL"; then
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8622 $as_echo "$MANIFEST_TOOL" >&6; }
8623 else
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626 fi
8627
8628
8629 fi
8630 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8631   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8632   # Extract the first word of "mt", so it can be a program name with args.
8633 set dummy mt; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   if test -n "$ac_ct_MANIFEST_TOOL"; then
8640   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645   IFS=$as_save_IFS
8646   test -z "$as_dir" && as_dir=.
8647     for ac_exec_ext in '' $ac_executable_extensions; do
8648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651     break 2
8652   fi
8653 done
8654   done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8660 if test -n "$ac_ct_MANIFEST_TOOL"; then
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8662 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8663 else
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8669     MANIFEST_TOOL=":"
8670   else
8671     case $cross_compiling:$ac_tool_warned in
8672 yes:)
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675 ac_tool_warned=yes ;;
8676 esac
8677     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8678   fi
8679 else
8680   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8681 fi
8682
8683 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8685 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8686 if ${lt_cv_path_mainfest_tool+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   lt_cv_path_mainfest_tool=no
8690   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8691   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8692   cat conftest.err >&5
8693   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8694     lt_cv_path_mainfest_tool=yes
8695   fi
8696   rm -f conftest*
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8699 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8700 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8701   MANIFEST_TOOL=:
8702 fi
8703
8704
8705
8706
8707
8708
8709   case $host_os in
8710     rhapsody* | darwin*)
8711     if test -n "$ac_tool_prefix"; then
8712   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8713 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   if test -n "$DSYMUTIL"; then
8720   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734   done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8740 if test -n "$DSYMUTIL"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8742 $as_echo "$DSYMUTIL" >&6; }
8743 else
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747
8748
8749 fi
8750 if test -z "$ac_cv_prog_DSYMUTIL"; then
8751   ac_ct_DSYMUTIL=$DSYMUTIL
8752   # Extract the first word of "dsymutil", so it can be a program name with args.
8753 set dummy dsymutil; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   if test -n "$ac_ct_DSYMUTIL"; then
8760   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8761 else
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8764 do
8765   IFS=$as_save_IFS
8766   test -z "$as_dir" && as_dir=.
8767     for ac_exec_ext in '' $ac_executable_extensions; do
8768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771     break 2
8772   fi
8773 done
8774   done
8775 IFS=$as_save_IFS
8776
8777 fi
8778 fi
8779 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8780 if test -n "$ac_ct_DSYMUTIL"; then
8781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8782 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8783 else
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787
8788   if test "x$ac_ct_DSYMUTIL" = x; then
8789     DSYMUTIL=":"
8790   else
8791     case $cross_compiling:$ac_tool_warned in
8792 yes:)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8795 ac_tool_warned=yes ;;
8796 esac
8797     DSYMUTIL=$ac_ct_DSYMUTIL
8798   fi
8799 else
8800   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8801 fi
8802
8803     if test -n "$ac_tool_prefix"; then
8804   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8805 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_NMEDIT+:} false; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   if test -n "$NMEDIT"; then
8812   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   test -z "$as_dir" && as_dir=.
8819     for ac_exec_ext in '' $ac_executable_extensions; do
8820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823     break 2
8824   fi
8825 done
8826   done
8827 IFS=$as_save_IFS
8828
8829 fi
8830 fi
8831 NMEDIT=$ac_cv_prog_NMEDIT
8832 if test -n "$NMEDIT"; then
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8834 $as_echo "$NMEDIT" >&6; }
8835 else
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 fi
8839
8840
8841 fi
8842 if test -z "$ac_cv_prog_NMEDIT"; then
8843   ac_ct_NMEDIT=$NMEDIT
8844   # Extract the first word of "nmedit", so it can be a program name with args.
8845 set dummy nmedit; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8849   $as_echo_n "(cached) " >&6
8850 else
8851   if test -n "$ac_ct_NMEDIT"; then
8852   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8853 else
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8856 do
8857   IFS=$as_save_IFS
8858   test -z "$as_dir" && as_dir=.
8859     for ac_exec_ext in '' $ac_executable_extensions; do
8860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8861     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863     break 2
8864   fi
8865 done
8866   done
8867 IFS=$as_save_IFS
8868
8869 fi
8870 fi
8871 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8872 if test -n "$ac_ct_NMEDIT"; then
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8874 $as_echo "$ac_ct_NMEDIT" >&6; }
8875 else
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8878 fi
8879
8880   if test "x$ac_ct_NMEDIT" = x; then
8881     NMEDIT=":"
8882   else
8883     case $cross_compiling:$ac_tool_warned in
8884 yes:)
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8887 ac_tool_warned=yes ;;
8888 esac
8889     NMEDIT=$ac_ct_NMEDIT
8890   fi
8891 else
8892   NMEDIT="$ac_cv_prog_NMEDIT"
8893 fi
8894
8895     if test -n "$ac_tool_prefix"; then
8896   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8897 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_LIPO+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   if test -n "$LIPO"; then
8904   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920
8921 fi
8922 fi
8923 LIPO=$ac_cv_prog_LIPO
8924 if test -n "$LIPO"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8926 $as_echo "$LIPO" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931
8932
8933 fi
8934 if test -z "$ac_cv_prog_LIPO"; then
8935   ac_ct_LIPO=$LIPO
8936   # Extract the first word of "lipo", so it can be a program name with args.
8937 set dummy lipo; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   if test -n "$ac_ct_LIPO"; then
8944   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_ac_ct_LIPO="lipo"
8954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8960
8961 fi
8962 fi
8963 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8964 if test -n "$ac_ct_LIPO"; then
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8966 $as_echo "$ac_ct_LIPO" >&6; }
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 fi
8971
8972   if test "x$ac_ct_LIPO" = x; then
8973     LIPO=":"
8974   else
8975     case $cross_compiling:$ac_tool_warned in
8976 yes:)
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8980 esac
8981     LIPO=$ac_ct_LIPO
8982   fi
8983 else
8984   LIPO="$ac_cv_prog_LIPO"
8985 fi
8986
8987     if test -n "$ac_tool_prefix"; then
8988   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8989 set dummy ${ac_tool_prefix}otool; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_OTOOL+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   if test -n "$OTOOL"; then
8996   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001   IFS=$as_save_IFS
9002   test -z "$as_dir" && as_dir=.
9003     for ac_exec_ext in '' $ac_executable_extensions; do
9004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007     break 2
9008   fi
9009 done
9010   done
9011 IFS=$as_save_IFS
9012
9013 fi
9014 fi
9015 OTOOL=$ac_cv_prog_OTOOL
9016 if test -n "$OTOOL"; then
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9018 $as_echo "$OTOOL" >&6; }
9019 else
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 fi
9023
9024
9025 fi
9026 if test -z "$ac_cv_prog_OTOOL"; then
9027   ac_ct_OTOOL=$OTOOL
9028   # Extract the first word of "otool", so it can be a program name with args.
9029 set dummy otool; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   if test -n "$ac_ct_OTOOL"; then
9036   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041   IFS=$as_save_IFS
9042   test -z "$as_dir" && as_dir=.
9043     for ac_exec_ext in '' $ac_executable_extensions; do
9044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045     ac_cv_prog_ac_ct_OTOOL="otool"
9046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047     break 2
9048   fi
9049 done
9050   done
9051 IFS=$as_save_IFS
9052
9053 fi
9054 fi
9055 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9056 if test -n "$ac_ct_OTOOL"; then
9057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9058 $as_echo "$ac_ct_OTOOL" >&6; }
9059 else
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9062 fi
9063
9064   if test "x$ac_ct_OTOOL" = x; then
9065     OTOOL=":"
9066   else
9067     case $cross_compiling:$ac_tool_warned in
9068 yes:)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9071 ac_tool_warned=yes ;;
9072 esac
9073     OTOOL=$ac_ct_OTOOL
9074   fi
9075 else
9076   OTOOL="$ac_cv_prog_OTOOL"
9077 fi
9078
9079     if test -n "$ac_tool_prefix"; then
9080   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9081 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_prog_OTOOL64+:} false; then :
9085   $as_echo_n "(cached) " >&6
9086 else
9087   if test -n "$OTOOL64"; then
9088   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9089 else
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9092 do
9093   IFS=$as_save_IFS
9094   test -z "$as_dir" && as_dir=.
9095     for ac_exec_ext in '' $ac_executable_extensions; do
9096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099     break 2
9100   fi
9101 done
9102   done
9103 IFS=$as_save_IFS
9104
9105 fi
9106 fi
9107 OTOOL64=$ac_cv_prog_OTOOL64
9108 if test -n "$OTOOL64"; then
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9110 $as_echo "$OTOOL64" >&6; }
9111 else
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9114 fi
9115
9116
9117 fi
9118 if test -z "$ac_cv_prog_OTOOL64"; then
9119   ac_ct_OTOOL64=$OTOOL64
9120   # Extract the first word of "otool64", so it can be a program name with args.
9121 set dummy otool64; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9125   $as_echo_n "(cached) " >&6
9126 else
9127   if test -n "$ac_ct_OTOOL64"; then
9128   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9129 else
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 for as_dir in $PATH
9132 do
9133   IFS=$as_save_IFS
9134   test -z "$as_dir" && as_dir=.
9135     for ac_exec_ext in '' $ac_executable_extensions; do
9136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137     ac_cv_prog_ac_ct_OTOOL64="otool64"
9138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139     break 2
9140   fi
9141 done
9142   done
9143 IFS=$as_save_IFS
9144
9145 fi
9146 fi
9147 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9148 if test -n "$ac_ct_OTOOL64"; then
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9150 $as_echo "$ac_ct_OTOOL64" >&6; }
9151 else
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9154 fi
9155
9156   if test "x$ac_ct_OTOOL64" = x; then
9157     OTOOL64=":"
9158   else
9159     case $cross_compiling:$ac_tool_warned in
9160 yes:)
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163 ac_tool_warned=yes ;;
9164 esac
9165     OTOOL64=$ac_ct_OTOOL64
9166   fi
9167 else
9168   OTOOL64="$ac_cv_prog_OTOOL64"
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9198 $as_echo_n "checking for -single_module linker flag... " >&6; }
9199 if ${lt_cv_apple_cc_single_mod+:} false; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   lt_cv_apple_cc_single_mod=no
9203       if test -z "${LT_MULTI_MODULE}"; then
9204         # By default we will add the -single_module flag. You can override
9205         # by either setting the environment variable LT_MULTI_MODULE
9206         # non-empty at configure time, or by adding -multi_module to the
9207         # link flags.
9208         rm -rf libconftest.dylib*
9209         echo "int foo(void){return 1;}" > conftest.c
9210         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9211 -dynamiclib -Wl,-single_module conftest.c" >&5
9212         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9213           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9214         _lt_result=$?
9215         # If there is a non-empty error log, and "single_module"
9216         # appears in it, assume the flag caused a linker warning
9217         if test -s conftest.err && $GREP single_module conftest.err; then
9218           cat conftest.err >&5
9219         # Otherwise, if the output was created with a 0 exit code from
9220         # the compiler, it worked.
9221         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9222           lt_cv_apple_cc_single_mod=yes
9223         else
9224           cat conftest.err >&5
9225         fi
9226         rm -rf libconftest.dylib*
9227         rm -f conftest.*
9228       fi
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9231 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9232
9233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9234 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9235 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   lt_cv_ld_exported_symbols_list=no
9239       save_LDFLAGS=$LDFLAGS
9240       echo "_main" > conftest.sym
9241       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9242       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h.  */
9244
9245 int
9246 main ()
9247 {
9248
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_c_try_link "$LINENO"; then :
9254   lt_cv_ld_exported_symbols_list=yes
9255 else
9256   lt_cv_ld_exported_symbols_list=no
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext \
9259     conftest$ac_exeext conftest.$ac_ext
9260         LDFLAGS="$save_LDFLAGS"
9261
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9264 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9265
9266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9267 $as_echo_n "checking for -force_load linker flag... " >&6; }
9268 if ${lt_cv_ld_force_load+:} false; then :
9269   $as_echo_n "(cached) " >&6
9270 else
9271   lt_cv_ld_force_load=no
9272       cat > conftest.c << _LT_EOF
9273 int forced_loaded() { return 2;}
9274 _LT_EOF
9275       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9276       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9277       echo "$AR cru libconftest.a conftest.o" >&5
9278       $AR cru libconftest.a conftest.o 2>&5
9279       echo "$RANLIB libconftest.a" >&5
9280       $RANLIB libconftest.a 2>&5
9281       cat > conftest.c << _LT_EOF
9282 int main() { return 0;}
9283 _LT_EOF
9284       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9285       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9286       _lt_result=$?
9287       if test -s conftest.err && $GREP force_load conftest.err; then
9288         cat conftest.err >&5
9289       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9290         lt_cv_ld_force_load=yes
9291       else
9292         cat conftest.err >&5
9293       fi
9294         rm -f conftest.err libconftest.a conftest conftest.c
9295         rm -rf conftest.dSYM
9296
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9299 $as_echo "$lt_cv_ld_force_load" >&6; }
9300     case $host_os in
9301     rhapsody* | darwin1.[012])
9302       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9303     darwin1.*)
9304       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9305     darwin*) # darwin 5.x on
9306       # if running on 10.5 or later, the deployment target defaults
9307       # to the OS version, if on x86, and 10.4, the deployment
9308       # target defaults to 10.4. Don't you love it?
9309       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9310         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9311           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9312         10.[012]*)
9313           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9314         10.*)
9315           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9316       esac
9317     ;;
9318   esac
9319     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9320       _lt_dar_single_mod='$single_module'
9321     fi
9322     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9323       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9324     else
9325       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9326     fi
9327     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9328       _lt_dsymutil='~$DSYMUTIL $lib || :'
9329     else
9330       _lt_dsymutil=
9331     fi
9332     ;;
9333   esac
9334
9335 for ac_header in dlfcn.h
9336 do :
9337   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9338 "
9339 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9340   cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DLFCN_H 1
9342 _ACEOF
9343
9344 fi
9345
9346 done
9347
9348
9349
9350
9351 func_stripname_cnf ()
9352 {
9353   case ${2} in
9354   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9355   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9356   esac
9357 } # func_stripname_cnf
9358
9359
9360
9361
9362
9363 # Set options
9364 enable_win32_dll=yes
9365
9366 case $host in
9367 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9368   if test -n "$ac_tool_prefix"; then
9369   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9370 set dummy ${ac_tool_prefix}as; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_prog_AS+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   if test -n "$AS"; then
9377   ac_cv_prog_AS="$AS" # Let the user override the test.
9378 else
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380 for as_dir in $PATH
9381 do
9382   IFS=$as_save_IFS
9383   test -z "$as_dir" && as_dir=.
9384     for ac_exec_ext in '' $ac_executable_extensions; do
9385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386     ac_cv_prog_AS="${ac_tool_prefix}as"
9387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388     break 2
9389   fi
9390 done
9391   done
9392 IFS=$as_save_IFS
9393
9394 fi
9395 fi
9396 AS=$ac_cv_prog_AS
9397 if test -n "$AS"; then
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9399 $as_echo "$AS" >&6; }
9400 else
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9403 fi
9404
9405
9406 fi
9407 if test -z "$ac_cv_prog_AS"; then
9408   ac_ct_AS=$AS
9409   # Extract the first word of "as", so it can be a program name with args.
9410 set dummy as; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   if test -n "$ac_ct_AS"; then
9417   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9418 else
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9421 do
9422   IFS=$as_save_IFS
9423   test -z "$as_dir" && as_dir=.
9424     for ac_exec_ext in '' $ac_executable_extensions; do
9425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9426     ac_cv_prog_ac_ct_AS="as"
9427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428     break 2
9429   fi
9430 done
9431   done
9432 IFS=$as_save_IFS
9433
9434 fi
9435 fi
9436 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9437 if test -n "$ac_ct_AS"; then
9438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9439 $as_echo "$ac_ct_AS" >&6; }
9440 else
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 $as_echo "no" >&6; }
9443 fi
9444
9445   if test "x$ac_ct_AS" = x; then
9446     AS="false"
9447   else
9448     case $cross_compiling:$ac_tool_warned in
9449 yes:)
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9452 ac_tool_warned=yes ;;
9453 esac
9454     AS=$ac_ct_AS
9455   fi
9456 else
9457   AS="$ac_cv_prog_AS"
9458 fi
9459
9460   if test -n "$ac_tool_prefix"; then
9461   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_prog_DLLTOOL+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   if test -n "$DLLTOOL"; then
9469   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474   IFS=$as_save_IFS
9475   test -z "$as_dir" && as_dir=.
9476     for ac_exec_ext in '' $ac_executable_extensions; do
9477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480     break 2
9481   fi
9482 done
9483   done
9484 IFS=$as_save_IFS
9485
9486 fi
9487 fi
9488 DLLTOOL=$ac_cv_prog_DLLTOOL
9489 if test -n "$DLLTOOL"; then
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9491 $as_echo "$DLLTOOL" >&6; }
9492 else
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497
9498 fi
9499 if test -z "$ac_cv_prog_DLLTOOL"; then
9500   ac_ct_DLLTOOL=$DLLTOOL
9501   # Extract the first word of "dlltool", so it can be a program name with args.
9502 set dummy dlltool; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   if test -n "$ac_ct_DLLTOOL"; then
9509   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9510 else
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 for as_dir in $PATH
9513 do
9514   IFS=$as_save_IFS
9515   test -z "$as_dir" && as_dir=.
9516     for ac_exec_ext in '' $ac_executable_extensions; do
9517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520     break 2
9521   fi
9522 done
9523   done
9524 IFS=$as_save_IFS
9525
9526 fi
9527 fi
9528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9529 if test -n "$ac_ct_DLLTOOL"; then
9530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9531 $as_echo "$ac_ct_DLLTOOL" >&6; }
9532 else
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9535 fi
9536
9537   if test "x$ac_ct_DLLTOOL" = x; then
9538     DLLTOOL="false"
9539   else
9540     case $cross_compiling:$ac_tool_warned in
9541 yes:)
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9544 ac_tool_warned=yes ;;
9545 esac
9546     DLLTOOL=$ac_ct_DLLTOOL
9547   fi
9548 else
9549   DLLTOOL="$ac_cv_prog_DLLTOOL"
9550 fi
9551
9552   if test -n "$ac_tool_prefix"; then
9553   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9554 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if ${ac_cv_prog_OBJDUMP+:} false; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   if test -n "$OBJDUMP"; then
9561   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562 else
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9565 do
9566   IFS=$as_save_IFS
9567   test -z "$as_dir" && as_dir=.
9568     for ac_exec_ext in '' $ac_executable_extensions; do
9569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9570     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572     break 2
9573   fi
9574 done
9575   done
9576 IFS=$as_save_IFS
9577
9578 fi
9579 fi
9580 OBJDUMP=$ac_cv_prog_OBJDUMP
9581 if test -n "$OBJDUMP"; then
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583 $as_echo "$OBJDUMP" >&6; }
9584 else
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 fi
9588
9589
9590 fi
9591 if test -z "$ac_cv_prog_OBJDUMP"; then
9592   ac_ct_OBJDUMP=$OBJDUMP
9593   # Extract the first word of "objdump", so it can be a program name with args.
9594 set dummy objdump; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   if test -n "$ac_ct_OBJDUMP"; then
9601   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9602 else
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9605 do
9606   IFS=$as_save_IFS
9607   test -z "$as_dir" && as_dir=.
9608     for ac_exec_ext in '' $ac_executable_extensions; do
9609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9610     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612     break 2
9613   fi
9614 done
9615   done
9616 IFS=$as_save_IFS
9617
9618 fi
9619 fi
9620 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9621 if test -n "$ac_ct_OBJDUMP"; then
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9623 $as_echo "$ac_ct_OBJDUMP" >&6; }
9624 else
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628
9629   if test "x$ac_ct_OBJDUMP" = x; then
9630     OBJDUMP="false"
9631   else
9632     case $cross_compiling:$ac_tool_warned in
9633 yes:)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636 ac_tool_warned=yes ;;
9637 esac
9638     OBJDUMP=$ac_ct_OBJDUMP
9639   fi
9640 else
9641   OBJDUMP="$ac_cv_prog_OBJDUMP"
9642 fi
9643
9644   ;;
9645 esac
9646
9647 test -z "$AS" && AS=as
9648
9649
9650
9651
9652
9653 test -z "$DLLTOOL" && DLLTOOL=dlltool
9654
9655
9656
9657
9658
9659 test -z "$OBJDUMP" && OBJDUMP=objdump
9660
9661
9662
9663
9664 # Check whether --enable-static was given.
9665 if test "${enable_static+set}" = set; then :
9666   enableval=$enable_static; p=${PACKAGE-default}
9667     case $enableval in
9668     yes) enable_static=yes ;;
9669     no) enable_static=no ;;
9670     *)
9671      enable_static=no
9672       # Look at the argument we got.  We use all the common list separators.
9673       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9674       for pkg in $enableval; do
9675         IFS="$lt_save_ifs"
9676         if test "X$pkg" = "X$p"; then
9677           enable_static=yes
9678         fi
9679       done
9680       IFS="$lt_save_ifs"
9681       ;;
9682     esac
9683 else
9684   enable_static=no
9685 fi
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696         enable_dlopen=no
9697
9698
9699
9700             # Check whether --enable-shared was given.
9701 if test "${enable_shared+set}" = set; then :
9702   enableval=$enable_shared; p=${PACKAGE-default}
9703     case $enableval in
9704     yes) enable_shared=yes ;;
9705     no) enable_shared=no ;;
9706     *)
9707       enable_shared=no
9708       # Look at the argument we got.  We use all the common list separators.
9709       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9710       for pkg in $enableval; do
9711         IFS="$lt_save_ifs"
9712         if test "X$pkg" = "X$p"; then
9713           enable_shared=yes
9714         fi
9715       done
9716       IFS="$lt_save_ifs"
9717       ;;
9718     esac
9719 else
9720   enable_shared=yes
9721 fi
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733 # Check whether --with-pic was given.
9734 if test "${with_pic+set}" = set; then :
9735   withval=$with_pic; lt_p=${PACKAGE-default}
9736     case $withval in
9737     yes|no) pic_mode=$withval ;;
9738     *)
9739       pic_mode=default
9740       # Look at the argument we got.  We use all the common list separators.
9741       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9742       for lt_pkg in $withval; do
9743         IFS="$lt_save_ifs"
9744         if test "X$lt_pkg" = "X$lt_p"; then
9745           pic_mode=yes
9746         fi
9747       done
9748       IFS="$lt_save_ifs"
9749       ;;
9750     esac
9751 else
9752   pic_mode=default
9753 fi
9754
9755
9756 test -z "$pic_mode" && pic_mode=default
9757
9758
9759
9760
9761
9762
9763
9764   # Check whether --enable-fast-install was given.
9765 if test "${enable_fast_install+set}" = set; then :
9766   enableval=$enable_fast_install; p=${PACKAGE-default}
9767     case $enableval in
9768     yes) enable_fast_install=yes ;;
9769     no) enable_fast_install=no ;;
9770     *)
9771       enable_fast_install=no
9772       # Look at the argument we got.  We use all the common list separators.
9773       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9774       for pkg in $enableval; do
9775         IFS="$lt_save_ifs"
9776         if test "X$pkg" = "X$p"; then
9777           enable_fast_install=yes
9778         fi
9779       done
9780       IFS="$lt_save_ifs"
9781       ;;
9782     esac
9783 else
9784   enable_fast_install=yes
9785 fi
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797 # This can be used to rebuild libtool when needed
9798 LIBTOOL_DEPS="$ltmain"
9799
9800 # Always use our own libtool.
9801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832 test -z "$LN_S" && LN_S="ln -s"
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847 if test -n "${ZSH_VERSION+set}" ; then
9848    setopt NO_GLOB_SUBST
9849 fi
9850
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9852 $as_echo_n "checking for objdir... " >&6; }
9853 if ${lt_cv_objdir+:} false; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   rm -f .libs 2>/dev/null
9857 mkdir .libs 2>/dev/null
9858 if test -d .libs; then
9859   lt_cv_objdir=.libs
9860 else
9861   # MS-DOS does not allow filenames that begin with a dot.
9862   lt_cv_objdir=_libs
9863 fi
9864 rmdir .libs 2>/dev/null
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9867 $as_echo "$lt_cv_objdir" >&6; }
9868 objdir=$lt_cv_objdir
9869
9870
9871
9872
9873
9874 cat >>confdefs.h <<_ACEOF
9875 #define LT_OBJDIR "$lt_cv_objdir/"
9876 _ACEOF
9877
9878
9879
9880
9881 case $host_os in
9882 aix3*)
9883   # AIX sometimes has problems with the GCC collect2 program.  For some
9884   # reason, if we set the COLLECT_NAMES environment variable, the problems
9885   # vanish in a puff of smoke.
9886   if test "X${COLLECT_NAMES+set}" != Xset; then
9887     COLLECT_NAMES=
9888     export COLLECT_NAMES
9889   fi
9890   ;;
9891 esac
9892
9893 # Global variables:
9894 ofile=libtool
9895 can_build_shared=yes
9896
9897 # All known linkers require a `.a' archive for static linking (except MSVC,
9898 # which needs '.lib').
9899 libext=a
9900
9901 with_gnu_ld="$lt_cv_prog_gnu_ld"
9902
9903 old_CC="$CC"
9904 old_CFLAGS="$CFLAGS"
9905
9906 # Set sane defaults for various variables
9907 test -z "$CC" && CC=cc
9908 test -z "$LTCC" && LTCC=$CC
9909 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9910 test -z "$LD" && LD=ld
9911 test -z "$ac_objext" && ac_objext=o
9912
9913 for cc_temp in $compiler""; do
9914   case $cc_temp in
9915     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9916     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9917     \-*) ;;
9918     *) break;;
9919   esac
9920 done
9921 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9922
9923
9924 # Only perform the check for file, if the check method requires it
9925 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9926 case $deplibs_check_method in
9927 file_magic*)
9928   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9930 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9931 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   case $MAGIC_CMD in
9935 [\\/*] |  ?:[\\/]*)
9936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9937   ;;
9938 *)
9939   lt_save_MAGIC_CMD="$MAGIC_CMD"
9940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9941   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9942   for ac_dir in $ac_dummy; do
9943     IFS="$lt_save_ifs"
9944     test -z "$ac_dir" && ac_dir=.
9945     if test -f $ac_dir/${ac_tool_prefix}file; then
9946       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9947       if test -n "$file_magic_test_file"; then
9948         case $deplibs_check_method in
9949         "file_magic "*)
9950           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9951           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9952           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9953             $EGREP "$file_magic_regex" > /dev/null; then
9954             :
9955           else
9956             cat <<_LT_EOF 1>&2
9957
9958 *** Warning: the command libtool uses to detect shared libraries,
9959 *** $file_magic_cmd, produces output that libtool cannot recognize.
9960 *** The result is that libtool may fail to recognize shared libraries
9961 *** as such.  This will affect the creation of libtool libraries that
9962 *** depend on shared libraries, but programs linked with such libtool
9963 *** libraries will work regardless of this problem.  Nevertheless, you
9964 *** may want to report the problem to your system manager and/or to
9965 *** bug-libtool@gnu.org
9966
9967 _LT_EOF
9968           fi ;;
9969         esac
9970       fi
9971       break
9972     fi
9973   done
9974   IFS="$lt_save_ifs"
9975   MAGIC_CMD="$lt_save_MAGIC_CMD"
9976   ;;
9977 esac
9978 fi
9979
9980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9981 if test -n "$MAGIC_CMD"; then
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9983 $as_echo "$MAGIC_CMD" >&6; }
9984 else
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 fi
9988
9989
9990
9991
9992
9993 if test -z "$lt_cv_path_MAGIC_CMD"; then
9994   if test -n "$ac_tool_prefix"; then
9995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9996 $as_echo_n "checking for file... " >&6; }
9997 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   case $MAGIC_CMD in
10001 [\\/*] |  ?:[\\/]*)
10002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10003   ;;
10004 *)
10005   lt_save_MAGIC_CMD="$MAGIC_CMD"
10006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10007   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10008   for ac_dir in $ac_dummy; do
10009     IFS="$lt_save_ifs"
10010     test -z "$ac_dir" && ac_dir=.
10011     if test -f $ac_dir/file; then
10012       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10013       if test -n "$file_magic_test_file"; then
10014         case $deplibs_check_method in
10015         "file_magic "*)
10016           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10017           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10018           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10019             $EGREP "$file_magic_regex" > /dev/null; then
10020             :
10021           else
10022             cat <<_LT_EOF 1>&2
10023
10024 *** Warning: the command libtool uses to detect shared libraries,
10025 *** $file_magic_cmd, produces output that libtool cannot recognize.
10026 *** The result is that libtool may fail to recognize shared libraries
10027 *** as such.  This will affect the creation of libtool libraries that
10028 *** depend on shared libraries, but programs linked with such libtool
10029 *** libraries will work regardless of this problem.  Nevertheless, you
10030 *** may want to report the problem to your system manager and/or to
10031 *** bug-libtool@gnu.org
10032
10033 _LT_EOF
10034           fi ;;
10035         esac
10036       fi
10037       break
10038     fi
10039   done
10040   IFS="$lt_save_ifs"
10041   MAGIC_CMD="$lt_save_MAGIC_CMD"
10042   ;;
10043 esac
10044 fi
10045
10046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10047 if test -n "$MAGIC_CMD"; then
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10049 $as_echo "$MAGIC_CMD" >&6; }
10050 else
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10053 fi
10054
10055
10056   else
10057     MAGIC_CMD=:
10058   fi
10059 fi
10060
10061   fi
10062   ;;
10063 esac
10064
10065 # Use C for the default configuration in the libtool script
10066
10067 lt_save_CC="$CC"
10068 ac_ext=c
10069 ac_cpp='$CPP $CPPFLAGS'
10070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10073
10074
10075 # Source file extension for C test sources.
10076 ac_ext=c
10077
10078 # Object file extension for compiled C test sources.
10079 objext=o
10080 objext=$objext
10081
10082 # Code to be used in simple compile tests
10083 lt_simple_compile_test_code="int some_variable = 0;"
10084
10085 # Code to be used in simple link tests
10086 lt_simple_link_test_code='int main(){return(0);}'
10087
10088
10089
10090
10091
10092
10093
10094 # If no C compiler was specified, use CC.
10095 LTCC=${LTCC-"$CC"}
10096
10097 # If no C compiler flags were specified, use CFLAGS.
10098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10099
10100 # Allow CC to be a program name with arguments.
10101 compiler=$CC
10102
10103 # Save the default compiler, since it gets overwritten when the other
10104 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10105 compiler_DEFAULT=$CC
10106
10107 # save warnings/boilerplate of simple test code
10108 ac_outfile=conftest.$ac_objext
10109 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10111 _lt_compiler_boilerplate=`cat conftest.err`
10112 $RM conftest*
10113
10114 ac_outfile=conftest.$ac_objext
10115 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10117 _lt_linker_boilerplate=`cat conftest.err`
10118 $RM -r conftest*
10119
10120
10121 ## CAVEAT EMPTOR:
10122 ## There is no encapsulation within the following macros, do not change
10123 ## the running order or otherwise move them around unless you know exactly
10124 ## what you are doing...
10125 if test -n "$compiler"; then
10126
10127 lt_prog_compiler_no_builtin_flag=
10128
10129 if test "$GCC" = yes; then
10130   case $cc_basename in
10131   nvcc*)
10132     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10133   *)
10134     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10135   esac
10136
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10138 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10139 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10140   $as_echo_n "(cached) " >&6
10141 else
10142   lt_cv_prog_compiler_rtti_exceptions=no
10143    ac_outfile=conftest.$ac_objext
10144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10145    lt_compiler_flag="-fno-rtti -fno-exceptions"
10146    # Insert the option either (1) after the last *FLAGS variable, or
10147    # (2) before a word containing "conftest.", or (3) at the end.
10148    # Note that $ac_compile itself does not contain backslashes and begins
10149    # with a dollar sign (not a hyphen), so the echo should work correctly.
10150    # The option is referenced via a variable to avoid confusing sed.
10151    lt_compile=`echo "$ac_compile" | $SED \
10152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154    -e 's:$: $lt_compiler_flag:'`
10155    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156    (eval "$lt_compile" 2>conftest.err)
10157    ac_status=$?
10158    cat conftest.err >&5
10159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160    if (exit $ac_status) && test -s "$ac_outfile"; then
10161      # The compiler can only warn and ignore the option if not recognized
10162      # So say no if there are warnings other than the usual output.
10163      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10164      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10165      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10166        lt_cv_prog_compiler_rtti_exceptions=yes
10167      fi
10168    fi
10169    $RM conftest*
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10173 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10174
10175 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10176     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10177 else
10178     :
10179 fi
10180
10181 fi
10182
10183
10184
10185
10186
10187
10188   lt_prog_compiler_wl=
10189 lt_prog_compiler_pic=
10190 lt_prog_compiler_static=
10191
10192
10193   if test "$GCC" = yes; then
10194     lt_prog_compiler_wl='-Wl,'
10195     lt_prog_compiler_static='-static'
10196
10197     case $host_os in
10198       aix*)
10199       # All AIX code is PIC.
10200       if test "$host_cpu" = ia64; then
10201         # AIX 5 now supports IA64 processor
10202         lt_prog_compiler_static='-Bstatic'
10203       fi
10204       ;;
10205
10206     amigaos*)
10207       case $host_cpu in
10208       powerpc)
10209             # see comment about AmigaOS4 .so support
10210             lt_prog_compiler_pic='-fPIC'
10211         ;;
10212       m68k)
10213             # FIXME: we need at least 68020 code to build shared libraries, but
10214             # adding the `-m68020' flag to GCC prevents building anything better,
10215             # like `-m68040'.
10216             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10217         ;;
10218       esac
10219       ;;
10220
10221     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10222       # PIC is the default for these OSes.
10223       ;;
10224
10225     mingw* | cygwin* | pw32* | os2* | cegcc*)
10226       # This hack is so that the source file can tell whether it is being
10227       # built for inclusion in a dll (and should export symbols for example).
10228       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10229       # (--disable-auto-import) libraries
10230       lt_prog_compiler_pic='-DDLL_EXPORT'
10231       ;;
10232
10233     darwin* | rhapsody*)
10234       # PIC is the default on this platform
10235       # Common symbols not allowed in MH_DYLIB files
10236       lt_prog_compiler_pic='-fno-common'
10237       ;;
10238
10239     haiku*)
10240       # PIC is the default for Haiku.
10241       # The "-static" flag exists, but is broken.
10242       lt_prog_compiler_static=
10243       ;;
10244
10245     hpux*)
10246       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10247       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10248       # sets the default TLS model and affects inlining.
10249       case $host_cpu in
10250       hppa*64*)
10251         # +Z the default
10252         ;;
10253       *)
10254         lt_prog_compiler_pic='-fPIC'
10255         ;;
10256       esac
10257       ;;
10258
10259     interix[3-9]*)
10260       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10261       # Instead, we relocate shared libraries at runtime.
10262       ;;
10263
10264     msdosdjgpp*)
10265       # Just because we use GCC doesn't mean we suddenly get shared libraries
10266       # on systems that don't support them.
10267       lt_prog_compiler_can_build_shared=no
10268       enable_shared=no
10269       ;;
10270
10271     *nto* | *qnx*)
10272       # QNX uses GNU C++, but need to define -shared option too, otherwise
10273       # it will coredump.
10274       lt_prog_compiler_pic='-fPIC -shared'
10275       ;;
10276
10277     sysv4*MP*)
10278       if test -d /usr/nec; then
10279         lt_prog_compiler_pic=-Kconform_pic
10280       fi
10281       ;;
10282
10283     *)
10284       lt_prog_compiler_pic='-fPIC'
10285       ;;
10286     esac
10287
10288     case $cc_basename in
10289     nvcc*) # Cuda Compiler Driver 2.2
10290       lt_prog_compiler_wl='-Xlinker '
10291       if test -n "$lt_prog_compiler_pic"; then
10292         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10293       fi
10294       ;;
10295     esac
10296   else
10297     # PORTME Check for flag to pass linker flags through the system compiler.
10298     case $host_os in
10299     aix*)
10300       lt_prog_compiler_wl='-Wl,'
10301       if test "$host_cpu" = ia64; then
10302         # AIX 5 now supports IA64 processor
10303         lt_prog_compiler_static='-Bstatic'
10304       else
10305         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10306       fi
10307       ;;
10308
10309     mingw* | cygwin* | pw32* | os2* | cegcc*)
10310       # This hack is so that the source file can tell whether it is being
10311       # built for inclusion in a dll (and should export symbols for example).
10312       lt_prog_compiler_pic='-DDLL_EXPORT'
10313       ;;
10314
10315     hpux9* | hpux10* | hpux11*)
10316       lt_prog_compiler_wl='-Wl,'
10317       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10318       # not for PA HP-UX.
10319       case $host_cpu in
10320       hppa*64*|ia64*)
10321         # +Z the default
10322         ;;
10323       *)
10324         lt_prog_compiler_pic='+Z'
10325         ;;
10326       esac
10327       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10328       lt_prog_compiler_static='${wl}-a ${wl}archive'
10329       ;;
10330
10331     irix5* | irix6* | nonstopux*)
10332       lt_prog_compiler_wl='-Wl,'
10333       # PIC (with -KPIC) is the default.
10334       lt_prog_compiler_static='-non_shared'
10335       ;;
10336
10337     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10338       case $cc_basename in
10339       # old Intel for x86_64 which still supported -KPIC.
10340       ecc*)
10341         lt_prog_compiler_wl='-Wl,'
10342         lt_prog_compiler_pic='-KPIC'
10343         lt_prog_compiler_static='-static'
10344         ;;
10345       # icc used to be incompatible with GCC.
10346       # ICC 10 doesn't accept -KPIC any more.
10347       icc* | ifort*)
10348         lt_prog_compiler_wl='-Wl,'
10349         lt_prog_compiler_pic='-fPIC'
10350         lt_prog_compiler_static='-static'
10351         ;;
10352       # Lahey Fortran 8.1.
10353       lf95*)
10354         lt_prog_compiler_wl='-Wl,'
10355         lt_prog_compiler_pic='--shared'
10356         lt_prog_compiler_static='--static'
10357         ;;
10358       nagfor*)
10359         # NAG Fortran compiler
10360         lt_prog_compiler_wl='-Wl,-Wl,,'
10361         lt_prog_compiler_pic='-PIC'
10362         lt_prog_compiler_static='-Bstatic'
10363         ;;
10364       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10365         # Portland Group compilers (*not* the Pentium gcc compiler,
10366         # which looks to be a dead project)
10367         lt_prog_compiler_wl='-Wl,'
10368         lt_prog_compiler_pic='-fpic'
10369         lt_prog_compiler_static='-Bstatic'
10370         ;;
10371       ccc*)
10372         lt_prog_compiler_wl='-Wl,'
10373         # All Alpha code is PIC.
10374         lt_prog_compiler_static='-non_shared'
10375         ;;
10376       xl* | bgxl* | bgf* | mpixl*)
10377         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10378         lt_prog_compiler_wl='-Wl,'
10379         lt_prog_compiler_pic='-qpic'
10380         lt_prog_compiler_static='-qstaticlink'
10381         ;;
10382       *)
10383         case `$CC -V 2>&1 | sed 5q` in
10384         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10385           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10386           lt_prog_compiler_pic='-KPIC'
10387           lt_prog_compiler_static='-Bstatic'
10388           lt_prog_compiler_wl=''
10389           ;;
10390         *Sun\ F* | *Sun*Fortran*)
10391           lt_prog_compiler_pic='-KPIC'
10392           lt_prog_compiler_static='-Bstatic'
10393           lt_prog_compiler_wl='-Qoption ld '
10394           ;;
10395         *Sun\ C*)
10396           # Sun C 5.9
10397           lt_prog_compiler_pic='-KPIC'
10398           lt_prog_compiler_static='-Bstatic'
10399           lt_prog_compiler_wl='-Wl,'
10400           ;;
10401         *Intel*\ [CF]*Compiler*)
10402           lt_prog_compiler_wl='-Wl,'
10403           lt_prog_compiler_pic='-fPIC'
10404           lt_prog_compiler_static='-static'
10405           ;;
10406         *Portland\ Group*)
10407           lt_prog_compiler_wl='-Wl,'
10408           lt_prog_compiler_pic='-fpic'
10409           lt_prog_compiler_static='-Bstatic'
10410           ;;
10411         esac
10412         ;;
10413       esac
10414       ;;
10415
10416     newsos6)
10417       lt_prog_compiler_pic='-KPIC'
10418       lt_prog_compiler_static='-Bstatic'
10419       ;;
10420
10421     *nto* | *qnx*)
10422       # QNX uses GNU C++, but need to define -shared option too, otherwise
10423       # it will coredump.
10424       lt_prog_compiler_pic='-fPIC -shared'
10425       ;;
10426
10427     osf3* | osf4* | osf5*)
10428       lt_prog_compiler_wl='-Wl,'
10429       # All OSF/1 code is PIC.
10430       lt_prog_compiler_static='-non_shared'
10431       ;;
10432
10433     rdos*)
10434       lt_prog_compiler_static='-non_shared'
10435       ;;
10436
10437     solaris*)
10438       lt_prog_compiler_pic='-KPIC'
10439       lt_prog_compiler_static='-Bstatic'
10440       case $cc_basename in
10441       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10442         lt_prog_compiler_wl='-Qoption ld ';;
10443       *)
10444         lt_prog_compiler_wl='-Wl,';;
10445       esac
10446       ;;
10447
10448     sunos4*)
10449       lt_prog_compiler_wl='-Qoption ld '
10450       lt_prog_compiler_pic='-PIC'
10451       lt_prog_compiler_static='-Bstatic'
10452       ;;
10453
10454     sysv4 | sysv4.2uw2* | sysv4.3*)
10455       lt_prog_compiler_wl='-Wl,'
10456       lt_prog_compiler_pic='-KPIC'
10457       lt_prog_compiler_static='-Bstatic'
10458       ;;
10459
10460     sysv4*MP*)
10461       if test -d /usr/nec ;then
10462         lt_prog_compiler_pic='-Kconform_pic'
10463         lt_prog_compiler_static='-Bstatic'
10464       fi
10465       ;;
10466
10467     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10468       lt_prog_compiler_wl='-Wl,'
10469       lt_prog_compiler_pic='-KPIC'
10470       lt_prog_compiler_static='-Bstatic'
10471       ;;
10472
10473     unicos*)
10474       lt_prog_compiler_wl='-Wl,'
10475       lt_prog_compiler_can_build_shared=no
10476       ;;
10477
10478     uts4*)
10479       lt_prog_compiler_pic='-pic'
10480       lt_prog_compiler_static='-Bstatic'
10481       ;;
10482
10483     *)
10484       lt_prog_compiler_can_build_shared=no
10485       ;;
10486     esac
10487   fi
10488
10489 case $host_os in
10490   # For platforms which do not support PIC, -DPIC is meaningless:
10491   *djgpp*)
10492     lt_prog_compiler_pic=
10493     ;;
10494   *)
10495     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10496     ;;
10497 esac
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10500 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10501 if ${lt_cv_prog_compiler_pic+:} false; then :
10502   $as_echo_n "(cached) " >&6
10503 else
10504   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10505 fi
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10507 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10508 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10509
10510 #
10511 # Check to make sure the PIC flag actually works.
10512 #
10513 if test -n "$lt_prog_compiler_pic"; then
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10516 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   lt_cv_prog_compiler_pic_works=no
10520    ac_outfile=conftest.$ac_objext
10521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10522    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10523    # Insert the option either (1) after the last *FLAGS variable, or
10524    # (2) before a word containing "conftest.", or (3) at the end.
10525    # Note that $ac_compile itself does not contain backslashes and begins
10526    # with a dollar sign (not a hyphen), so the echo should work correctly.
10527    # The option is referenced via a variable to avoid confusing sed.
10528    lt_compile=`echo "$ac_compile" | $SED \
10529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10531    -e 's:$: $lt_compiler_flag:'`
10532    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10533    (eval "$lt_compile" 2>conftest.err)
10534    ac_status=$?
10535    cat conftest.err >&5
10536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537    if (exit $ac_status) && test -s "$ac_outfile"; then
10538      # The compiler can only warn and ignore the option if not recognized
10539      # So say no if there are warnings other than the usual output.
10540      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10541      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10542      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10543        lt_cv_prog_compiler_pic_works=yes
10544      fi
10545    fi
10546    $RM conftest*
10547
10548 fi
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10551
10552 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10553     case $lt_prog_compiler_pic in
10554      "" | " "*) ;;
10555      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10556      esac
10557 else
10558     lt_prog_compiler_pic=
10559      lt_prog_compiler_can_build_shared=no
10560 fi
10561
10562 fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574 #
10575 # Check to make sure the static flag actually works.
10576 #
10577 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10579 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10580 if ${lt_cv_prog_compiler_static_works+:} false; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   lt_cv_prog_compiler_static_works=no
10584    save_LDFLAGS="$LDFLAGS"
10585    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10586    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10587    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10588      # The linker can only warn and ignore the option if not recognized
10589      # So say no if there are warnings
10590      if test -s conftest.err; then
10591        # Append any errors to the config.log.
10592        cat conftest.err 1>&5
10593        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10594        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10595        if diff conftest.exp conftest.er2 >/dev/null; then
10596          lt_cv_prog_compiler_static_works=yes
10597        fi
10598      else
10599        lt_cv_prog_compiler_static_works=yes
10600      fi
10601    fi
10602    $RM -r conftest*
10603    LDFLAGS="$save_LDFLAGS"
10604
10605 fi
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10607 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10608
10609 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10610     :
10611 else
10612     lt_prog_compiler_static=
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10623 if ${lt_cv_prog_compiler_c_o+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   lt_cv_prog_compiler_c_o=no
10627    $RM -r conftest 2>/dev/null
10628    mkdir conftest
10629    cd conftest
10630    mkdir out
10631    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10632
10633    lt_compiler_flag="-o out/conftest2.$ac_objext"
10634    # Insert the option either (1) after the last *FLAGS variable, or
10635    # (2) before a word containing "conftest.", or (3) at the end.
10636    # Note that $ac_compile itself does not contain backslashes and begins
10637    # with a dollar sign (not a hyphen), so the echo should work correctly.
10638    lt_compile=`echo "$ac_compile" | $SED \
10639    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10641    -e 's:$: $lt_compiler_flag:'`
10642    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10643    (eval "$lt_compile" 2>out/conftest.err)
10644    ac_status=$?
10645    cat out/conftest.err >&5
10646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10648    then
10649      # The compiler can only warn and ignore the option if not recognized
10650      # So say no if there are warnings
10651      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10652      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10653      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10654        lt_cv_prog_compiler_c_o=yes
10655      fi
10656    fi
10657    chmod u+w . 2>&5
10658    $RM conftest*
10659    # SGI C++ compiler will create directory out/ii_files/ for
10660    # template instantiation
10661    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10662    $RM out/* && rmdir out
10663    cd ..
10664    $RM -r conftest
10665    $RM conftest*
10666
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10670
10671
10672
10673
10674
10675
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10678 if ${lt_cv_prog_compiler_c_o+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   lt_cv_prog_compiler_c_o=no
10682    $RM -r conftest 2>/dev/null
10683    mkdir conftest
10684    cd conftest
10685    mkdir out
10686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10687
10688    lt_compiler_flag="-o out/conftest2.$ac_objext"
10689    # Insert the option either (1) after the last *FLAGS variable, or
10690    # (2) before a word containing "conftest.", or (3) at the end.
10691    # Note that $ac_compile itself does not contain backslashes and begins
10692    # with a dollar sign (not a hyphen), so the echo should work correctly.
10693    lt_compile=`echo "$ac_compile" | $SED \
10694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10696    -e 's:$: $lt_compiler_flag:'`
10697    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10698    (eval "$lt_compile" 2>out/conftest.err)
10699    ac_status=$?
10700    cat out/conftest.err >&5
10701    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10703    then
10704      # The compiler can only warn and ignore the option if not recognized
10705      # So say no if there are warnings
10706      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10707      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10708      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10709        lt_cv_prog_compiler_c_o=yes
10710      fi
10711    fi
10712    chmod u+w . 2>&5
10713    $RM conftest*
10714    # SGI C++ compiler will create directory out/ii_files/ for
10715    # template instantiation
10716    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10717    $RM out/* && rmdir out
10718    cd ..
10719    $RM -r conftest
10720    $RM conftest*
10721
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10725
10726
10727
10728
10729 hard_links="nottested"
10730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10731   # do not overwrite the value of need_locks provided by the user
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10733 $as_echo_n "checking if we can lock with hard links... " >&6; }
10734   hard_links=yes
10735   $RM conftest*
10736   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10737   touch conftest.a
10738   ln conftest.a conftest.b 2>&5 || hard_links=no
10739   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10741 $as_echo "$hard_links" >&6; }
10742   if test "$hard_links" = no; then
10743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10744 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10745     need_locks=warn
10746   fi
10747 else
10748   need_locks=no
10749 fi
10750
10751
10752
10753
10754
10755
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10758
10759   runpath_var=
10760   allow_undefined_flag=
10761   always_export_symbols=no
10762   archive_cmds=
10763   archive_expsym_cmds=
10764   compiler_needs_object=no
10765   enable_shared_with_static_runtimes=no
10766   export_dynamic_flag_spec=
10767   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10768   hardcode_automatic=no
10769   hardcode_direct=no
10770   hardcode_direct_absolute=no
10771   hardcode_libdir_flag_spec=
10772   hardcode_libdir_separator=
10773   hardcode_minus_L=no
10774   hardcode_shlibpath_var=unsupported
10775   inherit_rpath=no
10776   link_all_deplibs=unknown
10777   module_cmds=
10778   module_expsym_cmds=
10779   old_archive_from_new_cmds=
10780   old_archive_from_expsyms_cmds=
10781   thread_safe_flag_spec=
10782   whole_archive_flag_spec=
10783   # include_expsyms should be a list of space-separated symbols to be *always*
10784   # included in the symbol list
10785   include_expsyms=
10786   # exclude_expsyms can be an extended regexp of symbols to exclude
10787   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10788   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10789   # as well as any symbol that contains `d'.
10790   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10791   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10792   # platforms (ab)use it in PIC code, but their linkers get confused if
10793   # the symbol is explicitly referenced.  Since portable code cannot
10794   # rely on this symbol name, it's probably fine to never include it in
10795   # preloaded symbol tables.
10796   # Exclude shared library initialization/finalization symbols.
10797   extract_expsyms_cmds=
10798
10799   case $host_os in
10800   cygwin* | mingw* | pw32* | cegcc*)
10801     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10802     # When not using gcc, we currently assume that we are using
10803     # Microsoft Visual C++.
10804     if test "$GCC" != yes; then
10805       with_gnu_ld=no
10806     fi
10807     ;;
10808   interix*)
10809     # we just hope/assume this is gcc and not c89 (= MSVC++)
10810     with_gnu_ld=yes
10811     ;;
10812   openbsd*)
10813     with_gnu_ld=no
10814     ;;
10815   linux* | k*bsd*-gnu | gnu*)
10816     link_all_deplibs=no
10817     ;;
10818   esac
10819
10820   ld_shlibs=yes
10821
10822   # On some targets, GNU ld is compatible enough with the native linker
10823   # that we're better off using the native interface for both.
10824   lt_use_gnu_ld_interface=no
10825   if test "$with_gnu_ld" = yes; then
10826     case $host_os in
10827       aix*)
10828         # The AIX port of GNU ld has always aspired to compatibility
10829         # with the native linker.  However, as the warning in the GNU ld
10830         # block says, versions before 2.19.5* couldn't really create working
10831         # shared libraries, regardless of the interface used.
10832         case `$LD -v 2>&1` in
10833           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10834           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10835           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10836           *)
10837             lt_use_gnu_ld_interface=yes
10838             ;;
10839         esac
10840         ;;
10841       *)
10842         lt_use_gnu_ld_interface=yes
10843         ;;
10844     esac
10845   fi
10846
10847   if test "$lt_use_gnu_ld_interface" = yes; then
10848     # If archive_cmds runs LD, not CC, wlarc should be empty
10849     wlarc='${wl}'
10850
10851     # Set some defaults for GNU ld with shared library support. These
10852     # are reset later if shared libraries are not supported. Putting them
10853     # here allows them to be overridden if necessary.
10854     runpath_var=LD_RUN_PATH
10855     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10856     export_dynamic_flag_spec='${wl}--export-dynamic'
10857     # ancient GNU ld didn't support --whole-archive et. al.
10858     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10859       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10860     else
10861       whole_archive_flag_spec=
10862     fi
10863     supports_anon_versioning=no
10864     case `$LD -v 2>&1` in
10865       *GNU\ gold*) supports_anon_versioning=yes ;;
10866       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10867       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10868       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10869       *\ 2.11.*) ;; # other 2.11 versions
10870       *) supports_anon_versioning=yes ;;
10871     esac
10872
10873     # See if GNU ld supports shared libraries.
10874     case $host_os in
10875     aix[3-9]*)
10876       # On AIX/PPC, the GNU linker is very broken
10877       if test "$host_cpu" != ia64; then
10878         ld_shlibs=no
10879         cat <<_LT_EOF 1>&2
10880
10881 *** Warning: the GNU linker, at least up to release 2.19, is reported
10882 *** to be unable to reliably create shared libraries on AIX.
10883 *** Therefore, libtool is disabling shared libraries support.  If you
10884 *** really care for shared libraries, you may want to install binutils
10885 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10886 *** You will then need to restart the configuration process.
10887
10888 _LT_EOF
10889       fi
10890       ;;
10891
10892     amigaos*)
10893       case $host_cpu in
10894       powerpc)
10895             # see comment about AmigaOS4 .so support
10896             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10897             archive_expsym_cmds=''
10898         ;;
10899       m68k)
10900             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)'
10901             hardcode_libdir_flag_spec='-L$libdir'
10902             hardcode_minus_L=yes
10903         ;;
10904       esac
10905       ;;
10906
10907     beos*)
10908       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10909         allow_undefined_flag=unsupported
10910         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10911         # support --undefined.  This deserves some investigation.  FIXME
10912         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10913       else
10914         ld_shlibs=no
10915       fi
10916       ;;
10917
10918     cygwin* | mingw* | pw32* | cegcc*)
10919       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10920       # as there is no search path for DLLs.
10921       hardcode_libdir_flag_spec='-L$libdir'
10922       export_dynamic_flag_spec='${wl}--export-all-symbols'
10923       allow_undefined_flag=unsupported
10924       always_export_symbols=no
10925       enable_shared_with_static_runtimes=yes
10926       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'
10927       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10928
10929       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10930         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10931         # If the export-symbols file already is a .def file (1st line
10932         # is EXPORTS), use it as is; otherwise, prepend...
10933         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10934           cp $export_symbols $output_objdir/$soname.def;
10935         else
10936           echo EXPORTS > $output_objdir/$soname.def;
10937           cat $export_symbols >> $output_objdir/$soname.def;
10938         fi~
10939         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10940       else
10941         ld_shlibs=no
10942       fi
10943       ;;
10944
10945     haiku*)
10946       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947       link_all_deplibs=yes
10948       ;;
10949
10950     interix[3-9]*)
10951       hardcode_direct=no
10952       hardcode_shlibpath_var=no
10953       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10954       export_dynamic_flag_spec='${wl}-E'
10955       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10956       # Instead, shared libraries are loaded at an image base (0x10000000 by
10957       # default) and relocated if they conflict, which is a slow very memory
10958       # consuming and fragmenting process.  To avoid this, we pick a random,
10959       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10960       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10961       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10962       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'
10963       ;;
10964
10965     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10966       tmp_diet=no
10967       if test "$host_os" = linux-dietlibc; then
10968         case $cc_basename in
10969           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10970         esac
10971       fi
10972       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10973          && test "$tmp_diet" = no
10974       then
10975         tmp_addflag=' $pic_flag'
10976         tmp_sharedflag='-shared'
10977         case $cc_basename,$host_cpu in
10978         pgcc*)                          # Portland Group C compiler
10979           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'
10980           tmp_addflag=' $pic_flag'
10981           ;;
10982         pgf77* | pgf90* | pgf95* | pgfortran*)
10983                                         # Portland Group f77 and f90 compilers
10984           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'
10985           tmp_addflag=' $pic_flag -Mnomain' ;;
10986         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10987           tmp_addflag=' -i_dynamic' ;;
10988         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10989           tmp_addflag=' -i_dynamic -nofor_main' ;;
10990         ifc* | ifort*)                  # Intel Fortran compiler
10991           tmp_addflag=' -nofor_main' ;;
10992         lf95*)                          # Lahey Fortran 8.1
10993           whole_archive_flag_spec=
10994           tmp_sharedflag='--shared' ;;
10995         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10996           tmp_sharedflag='-qmkshrobj'
10997           tmp_addflag= ;;
10998         nvcc*)  # Cuda Compiler Driver 2.2
10999           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'
11000           compiler_needs_object=yes
11001           ;;
11002         esac
11003         case `$CC -V 2>&1 | sed 5q` in
11004         *Sun\ C*)                       # Sun C 5.9
11005           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'
11006           compiler_needs_object=yes
11007           tmp_sharedflag='-G' ;;
11008         *Sun\ F*)                       # Sun Fortran 8.3
11009           tmp_sharedflag='-G' ;;
11010         esac
11011         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012
11013         if test "x$supports_anon_versioning" = xyes; then
11014           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11015             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11016             echo "local: *; };" >> $output_objdir/$libname.ver~
11017             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11018         fi
11019
11020         case $cc_basename in
11021         xlf* | bgf* | bgxlf* | mpixlf*)
11022           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11023           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11024           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11025           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11026           if test "x$supports_anon_versioning" = xyes; then
11027             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11028               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11029               echo "local: *; };" >> $output_objdir/$libname.ver~
11030               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11031           fi
11032           ;;
11033         esac
11034       else
11035         ld_shlibs=no
11036       fi
11037       ;;
11038
11039     netbsd* | netbsdelf*-gnu)
11040       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11041         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11042         wlarc=
11043       else
11044         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11045         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11046       fi
11047       ;;
11048
11049     solaris*)
11050       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11051         ld_shlibs=no
11052         cat <<_LT_EOF 1>&2
11053
11054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11055 *** create shared libraries on Solaris systems.  Therefore, libtool
11056 *** is disabling shared libraries support.  We urge you to upgrade GNU
11057 *** binutils to release 2.9.1 or newer.  Another option is to modify
11058 *** your PATH or compiler configuration so that the native linker is
11059 *** used, and then restart.
11060
11061 _LT_EOF
11062       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11063         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11065       else
11066         ld_shlibs=no
11067       fi
11068       ;;
11069
11070     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11071       case `$LD -v 2>&1` in
11072         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11073         ld_shlibs=no
11074         cat <<_LT_EOF 1>&2
11075
11076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11077 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11078 *** is disabling shared libraries support.  We urge you to upgrade GNU
11079 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11080 *** your PATH or compiler configuration so that the native linker is
11081 *** used, and then restart.
11082
11083 _LT_EOF
11084         ;;
11085         *)
11086           # For security reasons, it is highly recommended that you always
11087           # use absolute paths for naming shared libraries, and exclude the
11088           # DT_RUNPATH tag from executables and libraries.  But doing so
11089           # requires that you compile everything twice, which is a pain.
11090           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11091             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11092             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11093             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11094           else
11095             ld_shlibs=no
11096           fi
11097         ;;
11098       esac
11099       ;;
11100
11101     sunos4*)
11102       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11103       wlarc=
11104       hardcode_direct=yes
11105       hardcode_shlibpath_var=no
11106       ;;
11107
11108     *)
11109       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11110         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11112       else
11113         ld_shlibs=no
11114       fi
11115       ;;
11116     esac
11117
11118     if test "$ld_shlibs" = no; then
11119       runpath_var=
11120       hardcode_libdir_flag_spec=
11121       export_dynamic_flag_spec=
11122       whole_archive_flag_spec=
11123     fi
11124   else
11125     # PORTME fill in a description of your system's linker (not GNU ld)
11126     case $host_os in
11127     aix3*)
11128       allow_undefined_flag=unsupported
11129       always_export_symbols=yes
11130       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'
11131       # Note: this linker hardcodes the directories in LIBPATH if there
11132       # are no directories specified by -L.
11133       hardcode_minus_L=yes
11134       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11135         # Neither direct hardcoding nor static linking is supported with a
11136         # broken collect2.
11137         hardcode_direct=unsupported
11138       fi
11139       ;;
11140
11141     aix[4-9]*)
11142       if test "$host_cpu" = ia64; then
11143         # On IA64, the linker does run time linking by default, so we don't
11144         # have to do anything special.
11145         aix_use_runtimelinking=no
11146         exp_sym_flag='-Bexport'
11147         no_entry_flag=""
11148       else
11149         # If we're using GNU nm, then we don't want the "-C" option.
11150         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11151         # Also, AIX nm treats weak defined symbols like other global
11152         # defined symbols, whereas GNU nm marks them as "W".
11153         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11154           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'
11155         else
11156           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'
11157         fi
11158         aix_use_runtimelinking=no
11159
11160         # Test if we are trying to use run time linking or normal
11161         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11162         # need to do runtime linking.
11163         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11164           for ld_flag in $LDFLAGS; do
11165           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11166             aix_use_runtimelinking=yes
11167             break
11168           fi
11169           done
11170           ;;
11171         esac
11172
11173         exp_sym_flag='-bexport'
11174         no_entry_flag='-bnoentry'
11175       fi
11176
11177       # When large executables or shared objects are built, AIX ld can
11178       # have problems creating the table of contents.  If linking a library
11179       # or program results in "error TOC overflow" add -mminimal-toc to
11180       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11181       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11182
11183       archive_cmds=''
11184       hardcode_direct=yes
11185       hardcode_direct_absolute=yes
11186       hardcode_libdir_separator=':'
11187       link_all_deplibs=yes
11188       file_list_spec='${wl}-f,'
11189
11190       if test "$GCC" = yes; then
11191         case $host_os in aix4.[012]|aix4.[012].*)
11192         # We only want to do this on AIX 4.2 and lower, the check
11193         # below for broken collect2 doesn't work under 4.3+
11194           collect2name=`${CC} -print-prog-name=collect2`
11195           if test -f "$collect2name" &&
11196            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11197           then
11198           # We have reworked collect2
11199           :
11200           else
11201           # We have old collect2
11202           hardcode_direct=unsupported
11203           # It fails to find uninstalled libraries when the uninstalled
11204           # path is not listed in the libpath.  Setting hardcode_minus_L
11205           # to unsupported forces relinking
11206           hardcode_minus_L=yes
11207           hardcode_libdir_flag_spec='-L$libdir'
11208           hardcode_libdir_separator=
11209           fi
11210           ;;
11211         esac
11212         shared_flag='-shared'
11213         if test "$aix_use_runtimelinking" = yes; then
11214           shared_flag="$shared_flag "'${wl}-G'
11215         fi
11216         link_all_deplibs=no
11217       else
11218         # not using gcc
11219         if test "$host_cpu" = ia64; then
11220         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221         # chokes on -Wl,-G. The following line is correct:
11222           shared_flag='-G'
11223         else
11224           if test "$aix_use_runtimelinking" = yes; then
11225             shared_flag='${wl}-G'
11226           else
11227             shared_flag='${wl}-bM:SRE'
11228           fi
11229         fi
11230       fi
11231
11232       export_dynamic_flag_spec='${wl}-bexpall'
11233       # It seems that -bexpall does not export symbols beginning with
11234       # underscore (_), so it is better to generate a list of symbols to export.
11235       always_export_symbols=yes
11236       if test "$aix_use_runtimelinking" = yes; then
11237         # Warning - without using the other runtime loading flags (-brtl),
11238         # -berok will link without error, but may produce a broken library.
11239         allow_undefined_flag='-berok'
11240         # Determine the default libpath from the value encoded in an
11241         # empty executable.
11242         if test "${lt_cv_aix_libpath+set}" = set; then
11243   aix_libpath=$lt_cv_aix_libpath
11244 else
11245   if ${lt_cv_aix_libpath_+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h.  */
11250
11251 int
11252 main ()
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260
11261   lt_aix_libpath_sed='
11262       /Import File Strings/,/^$/ {
11263           /^0/ {
11264               s/^0  *\([^ ]*\) *$/\1/
11265               p
11266           }
11267       }'
11268   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11269   # Check for a 64-bit object if we didn't find anything.
11270   if test -z "$lt_cv_aix_libpath_"; then
11271     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11272   fi
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276   if test -z "$lt_cv_aix_libpath_"; then
11277     lt_cv_aix_libpath_="/usr/lib:/lib"
11278   fi
11279
11280 fi
11281
11282   aix_libpath=$lt_cv_aix_libpath_
11283 fi
11284
11285         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11286         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"
11287       else
11288         if test "$host_cpu" = ia64; then
11289           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11290           allow_undefined_flag="-z nodefs"
11291           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"
11292         else
11293          # Determine the default libpath from the value encoded in an
11294          # empty executable.
11295          if test "${lt_cv_aix_libpath+set}" = set; then
11296   aix_libpath=$lt_cv_aix_libpath
11297 else
11298   if ${lt_cv_aix_libpath_+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h.  */
11303
11304 int
11305 main ()
11306 {
11307
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313
11314   lt_aix_libpath_sed='
11315       /Import File Strings/,/^$/ {
11316           /^0/ {
11317               s/^0  *\([^ ]*\) *$/\1/
11318               p
11319           }
11320       }'
11321   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322   # Check for a 64-bit object if we didn't find anything.
11323   if test -z "$lt_cv_aix_libpath_"; then
11324     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11325   fi
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329   if test -z "$lt_cv_aix_libpath_"; then
11330     lt_cv_aix_libpath_="/usr/lib:/lib"
11331   fi
11332
11333 fi
11334
11335   aix_libpath=$lt_cv_aix_libpath_
11336 fi
11337
11338          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11339           # Warning - without using the other run time loading flags,
11340           # -berok will link without error, but may produce a broken library.
11341           no_undefined_flag=' ${wl}-bernotok'
11342           allow_undefined_flag=' ${wl}-berok'
11343           if test "$with_gnu_ld" = yes; then
11344             # We only use this code for GNU lds that support --whole-archive.
11345             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11346           else
11347             # Exported symbols can be pulled into shared objects from archives
11348             whole_archive_flag_spec='$convenience'
11349           fi
11350           archive_cmds_need_lc=yes
11351           # This is similar to how AIX traditionally builds its shared libraries.
11352           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'
11353         fi
11354       fi
11355       ;;
11356
11357     amigaos*)
11358       case $host_cpu in
11359       powerpc)
11360             # see comment about AmigaOS4 .so support
11361             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11362             archive_expsym_cmds=''
11363         ;;
11364       m68k)
11365             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)'
11366             hardcode_libdir_flag_spec='-L$libdir'
11367             hardcode_minus_L=yes
11368         ;;
11369       esac
11370       ;;
11371
11372     bsdi[45]*)
11373       export_dynamic_flag_spec=-rdynamic
11374       ;;
11375
11376     cygwin* | mingw* | pw32* | cegcc*)
11377       # When not using gcc, we currently assume that we are using
11378       # Microsoft Visual C++.
11379       # hardcode_libdir_flag_spec is actually meaningless, as there is
11380       # no search path for DLLs.
11381       case $cc_basename in
11382       cl*)
11383         # Native MSVC
11384         hardcode_libdir_flag_spec=' '
11385         allow_undefined_flag=unsupported
11386         always_export_symbols=yes
11387         file_list_spec='@'
11388         # Tell ltmain to make .lib files, not .a files.
11389         libext=lib
11390         # Tell ltmain to make .dll files, not .so files.
11391         shrext_cmds=".dll"
11392         # FIXME: Setting linknames here is a bad hack.
11393         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11394         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11395             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11396           else
11397             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11398           fi~
11399           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11400           linknames='
11401         # The linker will not automatically build a static lib if we build a DLL.
11402         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11403         enable_shared_with_static_runtimes=yes
11404         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11405         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11406         # Don't use ranlib
11407         old_postinstall_cmds='chmod 644 $oldlib'
11408         postlink_cmds='lt_outputfile="@OUTPUT@"~
11409           lt_tool_outputfile="@TOOL_OUTPUT@"~
11410           case $lt_outputfile in
11411             *.exe|*.EXE) ;;
11412             *)
11413               lt_outputfile="$lt_outputfile.exe"
11414               lt_tool_outputfile="$lt_tool_outputfile.exe"
11415               ;;
11416           esac~
11417           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11418             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11419             $RM "$lt_outputfile.manifest";
11420           fi'
11421         ;;
11422       *)
11423         # Assume MSVC wrapper
11424         hardcode_libdir_flag_spec=' '
11425         allow_undefined_flag=unsupported
11426         # Tell ltmain to make .lib files, not .a files.
11427         libext=lib
11428         # Tell ltmain to make .dll files, not .so files.
11429         shrext_cmds=".dll"
11430         # FIXME: Setting linknames here is a bad hack.
11431         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11432         # The linker will automatically build a .lib file if we build a DLL.
11433         old_archive_from_new_cmds='true'
11434         # FIXME: Should let the user specify the lib program.
11435         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11436         enable_shared_with_static_runtimes=yes
11437         ;;
11438       esac
11439       ;;
11440
11441     darwin* | rhapsody*)
11442
11443
11444   archive_cmds_need_lc=no
11445   hardcode_direct=no
11446   hardcode_automatic=yes
11447   hardcode_shlibpath_var=unsupported
11448   if test "$lt_cv_ld_force_load" = "yes"; then
11449     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\"`'
11450
11451   else
11452     whole_archive_flag_spec=''
11453   fi
11454   link_all_deplibs=yes
11455   allow_undefined_flag="$_lt_dar_allow_undefined"
11456   case $cc_basename in
11457      ifort*) _lt_dar_can_shared=yes ;;
11458      *) _lt_dar_can_shared=$GCC ;;
11459   esac
11460   if test "$_lt_dar_can_shared" = "yes"; then
11461     output_verbose_link_cmd=func_echo_all
11462     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11463     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11464     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}"
11465     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}"
11466
11467   else
11468   ld_shlibs=no
11469   fi
11470
11471       ;;
11472
11473     dgux*)
11474       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475       hardcode_libdir_flag_spec='-L$libdir'
11476       hardcode_shlibpath_var=no
11477       ;;
11478
11479     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11480     # support.  Future versions do this automatically, but an explicit c++rt0.o
11481     # does not break anything, and helps significantly (at the cost of a little
11482     # extra space).
11483     freebsd2.2*)
11484       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11485       hardcode_libdir_flag_spec='-R$libdir'
11486       hardcode_direct=yes
11487       hardcode_shlibpath_var=no
11488       ;;
11489
11490     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11491     freebsd2.*)
11492       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11493       hardcode_direct=yes
11494       hardcode_minus_L=yes
11495       hardcode_shlibpath_var=no
11496       ;;
11497
11498     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11499     freebsd* | dragonfly*)
11500       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11501       hardcode_libdir_flag_spec='-R$libdir'
11502       hardcode_direct=yes
11503       hardcode_shlibpath_var=no
11504       ;;
11505
11506     hpux9*)
11507       if test "$GCC" = yes; then
11508         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'
11509       else
11510         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'
11511       fi
11512       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11513       hardcode_libdir_separator=:
11514       hardcode_direct=yes
11515
11516       # hardcode_minus_L: Not really in the search PATH,
11517       # but as the default location of the library.
11518       hardcode_minus_L=yes
11519       export_dynamic_flag_spec='${wl}-E'
11520       ;;
11521
11522     hpux10*)
11523       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11524         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11525       else
11526         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11527       fi
11528       if test "$with_gnu_ld" = no; then
11529         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530         hardcode_libdir_separator=:
11531         hardcode_direct=yes
11532         hardcode_direct_absolute=yes
11533         export_dynamic_flag_spec='${wl}-E'
11534         # hardcode_minus_L: Not really in the search PATH,
11535         # but as the default location of the library.
11536         hardcode_minus_L=yes
11537       fi
11538       ;;
11539
11540     hpux11*)
11541       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11542         case $host_cpu in
11543         hppa*64*)
11544           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11545           ;;
11546         ia64*)
11547           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11548           ;;
11549         *)
11550           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11551           ;;
11552         esac
11553       else
11554         case $host_cpu in
11555         hppa*64*)
11556           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11557           ;;
11558         ia64*)
11559           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11560           ;;
11561         *)
11562
11563           # Older versions of the 11.00 compiler do not understand -b yet
11564           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11565           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11566 $as_echo_n "checking if $CC understands -b... " >&6; }
11567 if ${lt_cv_prog_compiler__b+:} false; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   lt_cv_prog_compiler__b=no
11571    save_LDFLAGS="$LDFLAGS"
11572    LDFLAGS="$LDFLAGS -b"
11573    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11574    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575      # The linker can only warn and ignore the option if not recognized
11576      # So say no if there are warnings
11577      if test -s conftest.err; then
11578        # Append any errors to the config.log.
11579        cat conftest.err 1>&5
11580        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11581        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582        if diff conftest.exp conftest.er2 >/dev/null; then
11583          lt_cv_prog_compiler__b=yes
11584        fi
11585      else
11586        lt_cv_prog_compiler__b=yes
11587      fi
11588    fi
11589    $RM -r conftest*
11590    LDFLAGS="$save_LDFLAGS"
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11595
11596 if test x"$lt_cv_prog_compiler__b" = xyes; then
11597     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11598 else
11599     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11600 fi
11601
11602           ;;
11603         esac
11604       fi
11605       if test "$with_gnu_ld" = no; then
11606         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11607         hardcode_libdir_separator=:
11608
11609         case $host_cpu in
11610         hppa*64*|ia64*)
11611           hardcode_direct=no
11612           hardcode_shlibpath_var=no
11613           ;;
11614         *)
11615           hardcode_direct=yes
11616           hardcode_direct_absolute=yes
11617           export_dynamic_flag_spec='${wl}-E'
11618
11619           # hardcode_minus_L: Not really in the search PATH,
11620           # but as the default location of the library.
11621           hardcode_minus_L=yes
11622           ;;
11623         esac
11624       fi
11625       ;;
11626
11627     irix5* | irix6* | nonstopux*)
11628       if test "$GCC" = yes; then
11629         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'
11630         # Try to use the -exported_symbol ld option, if it does not
11631         # work, assume that -exports_file does not work either and
11632         # implicitly export all symbols.
11633         # This should be the same for all languages, so no per-tag cache variable.
11634         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11636 if ${lt_cv_irix_exported_symbol+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   save_LDFLAGS="$LDFLAGS"
11640            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11641            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643 int foo (void) { return 0; }
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646   lt_cv_irix_exported_symbol=yes
11647 else
11648   lt_cv_irix_exported_symbol=no
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext \
11651     conftest$ac_exeext conftest.$ac_ext
11652            LDFLAGS="$save_LDFLAGS"
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11656         if test "$lt_cv_irix_exported_symbol" = yes; then
11657           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'
11658         fi
11659       else
11660         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'
11661         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'
11662       fi
11663       archive_cmds_need_lc='no'
11664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11665       hardcode_libdir_separator=:
11666       inherit_rpath=yes
11667       link_all_deplibs=yes
11668       ;;
11669
11670     netbsd* | netbsdelf*-gnu)
11671       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11672         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11673       else
11674         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11675       fi
11676       hardcode_libdir_flag_spec='-R$libdir'
11677       hardcode_direct=yes
11678       hardcode_shlibpath_var=no
11679       ;;
11680
11681     newsos6)
11682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11683       hardcode_direct=yes
11684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11685       hardcode_libdir_separator=:
11686       hardcode_shlibpath_var=no
11687       ;;
11688
11689     *nto* | *qnx*)
11690       ;;
11691
11692     openbsd*)
11693       if test -f /usr/libexec/ld.so; then
11694         hardcode_direct=yes
11695         hardcode_shlibpath_var=no
11696         hardcode_direct_absolute=yes
11697         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11699           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11700           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11701           export_dynamic_flag_spec='${wl}-E'
11702         else
11703           case $host_os in
11704            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11705              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11706              hardcode_libdir_flag_spec='-R$libdir'
11707              ;;
11708            *)
11709              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11711              ;;
11712           esac
11713         fi
11714       else
11715         ld_shlibs=no
11716       fi
11717       ;;
11718
11719     os2*)
11720       hardcode_libdir_flag_spec='-L$libdir'
11721       hardcode_minus_L=yes
11722       allow_undefined_flag=unsupported
11723       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'
11724       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11725       ;;
11726
11727     osf3*)
11728       if test "$GCC" = yes; then
11729         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11730         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'
11731       else
11732         allow_undefined_flag=' -expect_unresolved \*'
11733         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'
11734       fi
11735       archive_cmds_need_lc='no'
11736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11737       hardcode_libdir_separator=:
11738       ;;
11739
11740     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11741       if test "$GCC" = yes; then
11742         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11743         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'
11744         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11745       else
11746         allow_undefined_flag=' -expect_unresolved \*'
11747         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'
11748         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~
11749         $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'
11750
11751         # Both c and cxx compiler support -rpath directly
11752         hardcode_libdir_flag_spec='-rpath $libdir'
11753       fi
11754       archive_cmds_need_lc='no'
11755       hardcode_libdir_separator=:
11756       ;;
11757
11758     solaris*)
11759       no_undefined_flag=' -z defs'
11760       if test "$GCC" = yes; then
11761         wlarc='${wl}'
11762         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11763         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11764           $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'
11765       else
11766         case `$CC -V 2>&1` in
11767         *"Compilers 5.0"*)
11768           wlarc=''
11769           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11771           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11772           ;;
11773         *)
11774           wlarc='${wl}'
11775           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11776           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11777           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11778           ;;
11779         esac
11780       fi
11781       hardcode_libdir_flag_spec='-R$libdir'
11782       hardcode_shlibpath_var=no
11783       case $host_os in
11784       solaris2.[0-5] | solaris2.[0-5].*) ;;
11785       *)
11786         # The compiler driver will combine and reorder linker options,
11787         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11788         # but is careful enough not to reorder.
11789         # Supported since Solaris 2.6 (maybe 2.5.1?)
11790         if test "$GCC" = yes; then
11791           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11792         else
11793           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11794         fi
11795         ;;
11796       esac
11797       link_all_deplibs=yes
11798       ;;
11799
11800     sunos4*)
11801       if test "x$host_vendor" = xsequent; then
11802         # Use $CC to link under sequent, because it throws in some extra .o
11803         # files that make .init and .fini sections work.
11804         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11805       else
11806         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11807       fi
11808       hardcode_libdir_flag_spec='-L$libdir'
11809       hardcode_direct=yes
11810       hardcode_minus_L=yes
11811       hardcode_shlibpath_var=no
11812       ;;
11813
11814     sysv4)
11815       case $host_vendor in
11816         sni)
11817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818           hardcode_direct=yes # is this really true???
11819         ;;
11820         siemens)
11821           ## LD is ld it makes a PLAMLIB
11822           ## CC just makes a GrossModule.
11823           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11824           reload_cmds='$CC -r -o $output$reload_objs'
11825           hardcode_direct=no
11826         ;;
11827         motorola)
11828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11829           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11830         ;;
11831       esac
11832       runpath_var='LD_RUN_PATH'
11833       hardcode_shlibpath_var=no
11834       ;;
11835
11836     sysv4.3*)
11837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838       hardcode_shlibpath_var=no
11839       export_dynamic_flag_spec='-Bexport'
11840       ;;
11841
11842     sysv4*MP*)
11843       if test -d /usr/nec; then
11844         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845         hardcode_shlibpath_var=no
11846         runpath_var=LD_RUN_PATH
11847         hardcode_runpath_var=yes
11848         ld_shlibs=yes
11849       fi
11850       ;;
11851
11852     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853       no_undefined_flag='${wl}-z,text'
11854       archive_cmds_need_lc=no
11855       hardcode_shlibpath_var=no
11856       runpath_var='LD_RUN_PATH'
11857
11858       if test "$GCC" = yes; then
11859         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861       else
11862         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11864       fi
11865       ;;
11866
11867     sysv5* | sco3.2v5* | sco5v6*)
11868       # Note: We can NOT use -z defs as we might desire, because we do not
11869       # link with -lc, and that would cause any symbols used from libc to
11870       # always be unresolved, which means just about no library would
11871       # ever link correctly.  If we're not using GNU ld we use -z text
11872       # though, which does catch some bad symbols but isn't as heavy-handed
11873       # as -z defs.
11874       no_undefined_flag='${wl}-z,text'
11875       allow_undefined_flag='${wl}-z,nodefs'
11876       archive_cmds_need_lc=no
11877       hardcode_shlibpath_var=no
11878       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11879       hardcode_libdir_separator=':'
11880       link_all_deplibs=yes
11881       export_dynamic_flag_spec='${wl}-Bexport'
11882       runpath_var='LD_RUN_PATH'
11883
11884       if test "$GCC" = yes; then
11885         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11887       else
11888         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11889         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11890       fi
11891       ;;
11892
11893     uts4*)
11894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895       hardcode_libdir_flag_spec='-L$libdir'
11896       hardcode_shlibpath_var=no
11897       ;;
11898
11899     *)
11900       ld_shlibs=no
11901       ;;
11902     esac
11903
11904     if test x$host_vendor = xsni; then
11905       case $host in
11906       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11907         export_dynamic_flag_spec='${wl}-Blargedynsym'
11908         ;;
11909       esac
11910     fi
11911   fi
11912
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11914 $as_echo "$ld_shlibs" >&6; }
11915 test "$ld_shlibs" = no && can_build_shared=no
11916
11917 with_gnu_ld=$with_gnu_ld
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 #
11934 # Do we need to explicitly link libc?
11935 #
11936 case "x$archive_cmds_need_lc" in
11937 x|xyes)
11938   # Assume -lc should be added
11939   archive_cmds_need_lc=yes
11940
11941   if test "$enable_shared" = yes && test "$GCC" = yes; then
11942     case $archive_cmds in
11943     *'~'*)
11944       # FIXME: we may have to deal with multi-command sequences.
11945       ;;
11946     '$CC '*)
11947       # Test whether the compiler implicitly links with -lc since on some
11948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11949       # to ld, don't add -lc before -lgcc.
11950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11952 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   $RM conftest*
11956         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11957
11958         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11959   (eval $ac_compile) 2>&5
11960   ac_status=$?
11961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962   test $ac_status = 0; } 2>conftest.err; then
11963           soname=conftest
11964           lib=conftest
11965           libobjs=conftest.$ac_objext
11966           deplibs=
11967           wl=$lt_prog_compiler_wl
11968           pic_flag=$lt_prog_compiler_pic
11969           compiler_flags=-v
11970           linker_flags=-v
11971           verstring=
11972           output_objdir=.
11973           libname=conftest
11974           lt_save_allow_undefined_flag=$allow_undefined_flag
11975           allow_undefined_flag=
11976           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11977   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11978   ac_status=$?
11979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980   test $ac_status = 0; }
11981           then
11982             lt_cv_archive_cmds_need_lc=no
11983           else
11984             lt_cv_archive_cmds_need_lc=yes
11985           fi
11986           allow_undefined_flag=$lt_save_allow_undefined_flag
11987         else
11988           cat conftest.err 1>&5
11989         fi
11990         $RM conftest*
11991
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11994 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11995       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11996       ;;
11997     esac
11998   fi
11999   ;;
12000 esac
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12155
12156 if test "$GCC" = yes; then
12157   case $host_os in
12158     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12159     *) lt_awk_arg="/^libraries:/" ;;
12160   esac
12161   case $host_os in
12162     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12163     *) lt_sed_strip_eq="s,=/,/,g" ;;
12164   esac
12165   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12166   case $lt_search_path_spec in
12167   *\;*)
12168     # if the path contains ";" then we assume it to be the separator
12169     # otherwise default to the standard path separator (i.e. ":") - it is
12170     # assumed that no part of a normal pathname contains ";" but that should
12171     # okay in the real world where ";" in dirpaths is itself problematic.
12172     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12173     ;;
12174   *)
12175     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12176     ;;
12177   esac
12178   # Ok, now we have the path, separated by spaces, we can step through it
12179   # and add multilib dir if necessary.
12180   lt_tmp_lt_search_path_spec=
12181   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12182   for lt_sys_path in $lt_search_path_spec; do
12183     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12184       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12185     else
12186       test -d "$lt_sys_path" && \
12187         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12188     fi
12189   done
12190   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12191 BEGIN {RS=" "; FS="/|\n";} {
12192   lt_foo="";
12193   lt_count=0;
12194   for (lt_i = NF; lt_i > 0; lt_i--) {
12195     if ($lt_i != "" && $lt_i != ".") {
12196       if ($lt_i == "..") {
12197         lt_count++;
12198       } else {
12199         if (lt_count == 0) {
12200           lt_foo="/" $lt_i lt_foo;
12201         } else {
12202           lt_count--;
12203         }
12204       }
12205     }
12206   }
12207   if (lt_foo != "") { lt_freq[lt_foo]++; }
12208   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12209 }'`
12210   # AWK program above erroneously prepends '/' to C:/dos/paths
12211   # for these hosts.
12212   case $host_os in
12213     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12214       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12215   esac
12216   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12217 else
12218   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12219 fi
12220 library_names_spec=
12221 libname_spec='lib$name'
12222 soname_spec=
12223 shrext_cmds=".so"
12224 postinstall_cmds=
12225 postuninstall_cmds=
12226 finish_cmds=
12227 finish_eval=
12228 shlibpath_var=
12229 shlibpath_overrides_runpath=unknown
12230 version_type=none
12231 dynamic_linker="$host_os ld.so"
12232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12233 need_lib_prefix=unknown
12234 hardcode_into_libs=no
12235
12236 # when you set need_version to no, make sure it does not cause -set_version
12237 # flags to be left without arguments
12238 need_version=unknown
12239
12240 case $host_os in
12241 aix3*)
12242   version_type=linux # correct to gnu/linux during the next big refactor
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12244   shlibpath_var=LIBPATH
12245
12246   # AIX 3 has no versioning support, so we append a major version to the name.
12247   soname_spec='${libname}${release}${shared_ext}$major'
12248   ;;
12249
12250 aix[4-9]*)
12251   version_type=linux # correct to gnu/linux during the next big refactor
12252   need_lib_prefix=no
12253   need_version=no
12254   hardcode_into_libs=yes
12255   if test "$host_cpu" = ia64; then
12256     # AIX 5 supports IA64
12257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12258     shlibpath_var=LD_LIBRARY_PATH
12259   else
12260     # With GCC up to 2.95.x, collect2 would create an import file
12261     # for dependence libraries.  The import file would start with
12262     # the line `#! .'.  This would cause the generated library to
12263     # depend on `.', always an invalid library.  This was fixed in
12264     # development snapshots of GCC prior to 3.0.
12265     case $host_os in
12266       aix4 | aix4.[01] | aix4.[01].*)
12267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12268            echo ' yes '
12269            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12270         :
12271       else
12272         can_build_shared=no
12273       fi
12274       ;;
12275     esac
12276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12277     # soname into executable. Probably we can add versioning support to
12278     # collect2, so additional links can be useful in future.
12279     if test "$aix_use_runtimelinking" = yes; then
12280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12281       # instead of lib<name>.a to let people know that these are not
12282       # typical AIX shared libraries.
12283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284     else
12285       # We preserve .a as extension for shared libraries through AIX4.2
12286       # and later when we are not doing run time linking.
12287       library_names_spec='${libname}${release}.a $libname.a'
12288       soname_spec='${libname}${release}${shared_ext}$major'
12289     fi
12290     shlibpath_var=LIBPATH
12291   fi
12292   ;;
12293
12294 amigaos*)
12295   case $host_cpu in
12296   powerpc)
12297     # Since July 2007 AmigaOS4 officially supports .so libraries.
12298     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300     ;;
12301   m68k)
12302     library_names_spec='$libname.ixlibrary $libname.a'
12303     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304     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'
12305     ;;
12306   esac
12307   ;;
12308
12309 beos*)
12310   library_names_spec='${libname}${shared_ext}'
12311   dynamic_linker="$host_os ld.so"
12312   shlibpath_var=LIBRARY_PATH
12313   ;;
12314
12315 bsdi[45]*)
12316   version_type=linux # correct to gnu/linux during the next big refactor
12317   need_version=no
12318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319   soname_spec='${libname}${release}${shared_ext}$major'
12320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324   # the default ld.so.conf also contains /usr/contrib/lib and
12325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326   # libtool to hard-code these into programs
12327   ;;
12328
12329 cygwin* | mingw* | pw32* | cegcc*)
12330   version_type=windows
12331   shrext_cmds=".dll"
12332   need_version=no
12333   need_lib_prefix=no
12334
12335   case $GCC,$cc_basename in
12336   yes,*)
12337     # gcc
12338     library_names_spec='$libname.dll.a'
12339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340     postinstall_cmds='base_file=`basename \${file}`~
12341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12342       dldir=$destdir/`dirname \$dlpath`~
12343       test -d \$dldir || mkdir -p \$dldir~
12344       $install_prog $dir/$dlname \$dldir/$dlname~
12345       chmod a+x \$dldir/$dlname~
12346       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12348       fi'
12349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350       dlpath=$dir/\$dldll~
12351        $RM \$dlpath'
12352     shlibpath_overrides_runpath=yes
12353
12354     case $host_os in
12355     cygwin*)
12356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12358
12359       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12360       ;;
12361     mingw* | cegcc*)
12362       # MinGW DLLs use traditional 'lib' prefix
12363       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12364       ;;
12365     pw32*)
12366       # pw32 DLLs use 'pw' prefix rather than 'lib'
12367       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12368       ;;
12369     esac
12370     dynamic_linker='Win32 ld.exe'
12371     ;;
12372
12373   *,cl*)
12374     # Native MSVC
12375     libname_spec='$name'
12376     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377     library_names_spec='${libname}.dll.lib'
12378
12379     case $build_os in
12380     mingw*)
12381       sys_lib_search_path_spec=
12382       lt_save_ifs=$IFS
12383       IFS=';'
12384       for lt_path in $LIB
12385       do
12386         IFS=$lt_save_ifs
12387         # Let DOS variable expansion print the short 8.3 style file name.
12388         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12390       done
12391       IFS=$lt_save_ifs
12392       # Convert to MSYS style.
12393       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12394       ;;
12395     cygwin*)
12396       # Convert to unix form, then to dos form, then back to unix form
12397       # but this time dos style (no spaces!) so that the unix form looks
12398       # like /cygdrive/c/PROGRA~1:/cygdr...
12399       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12402       ;;
12403     *)
12404       sys_lib_search_path_spec="$LIB"
12405       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406         # It is most probably a Windows format PATH.
12407         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12408       else
12409         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12410       fi
12411       # FIXME: find the short name or the path components, as spaces are
12412       # common. (e.g. "Program Files" -> "PROGRA~1")
12413       ;;
12414     esac
12415
12416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417     postinstall_cmds='base_file=`basename \${file}`~
12418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12419       dldir=$destdir/`dirname \$dlpath`~
12420       test -d \$dldir || mkdir -p \$dldir~
12421       $install_prog $dir/$dlname \$dldir/$dlname'
12422     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423       dlpath=$dir/\$dldll~
12424        $RM \$dlpath'
12425     shlibpath_overrides_runpath=yes
12426     dynamic_linker='Win32 link.exe'
12427     ;;
12428
12429   *)
12430     # Assume MSVC wrapper
12431     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12432     dynamic_linker='Win32 ld.exe'
12433     ;;
12434   esac
12435   # FIXME: first we should search . and the directory the executable is in
12436   shlibpath_var=PATH
12437   ;;
12438
12439 darwin* | rhapsody*)
12440   dynamic_linker="$host_os dyld"
12441   version_type=darwin
12442   need_lib_prefix=no
12443   need_version=no
12444   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12445   soname_spec='${libname}${release}${major}$shared_ext'
12446   shlibpath_overrides_runpath=yes
12447   shlibpath_var=DYLD_LIBRARY_PATH
12448   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12449
12450   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12452   ;;
12453
12454 dgux*)
12455   version_type=linux # correct to gnu/linux during the next big refactor
12456   need_lib_prefix=no
12457   need_version=no
12458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12459   soname_spec='${libname}${release}${shared_ext}$major'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   ;;
12462
12463 freebsd* | dragonfly*)
12464   # DragonFly does not have aout.  When/if they implement a new
12465   # versioning mechanism, adjust this.
12466   if test -x /usr/bin/objformat; then
12467     objformat=`/usr/bin/objformat`
12468   else
12469     case $host_os in
12470     freebsd[23].*) objformat=aout ;;
12471     *) objformat=elf ;;
12472     esac
12473   fi
12474   version_type=freebsd-$objformat
12475   case $version_type in
12476     freebsd-elf*)
12477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478       need_version=no
12479       need_lib_prefix=no
12480       ;;
12481     freebsd-*)
12482       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12483       need_version=yes
12484       ;;
12485   esac
12486   shlibpath_var=LD_LIBRARY_PATH
12487   case $host_os in
12488   freebsd2.*)
12489     shlibpath_overrides_runpath=yes
12490     ;;
12491   freebsd3.[01]* | freebsdelf3.[01]*)
12492     shlibpath_overrides_runpath=yes
12493     hardcode_into_libs=yes
12494     ;;
12495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497     shlibpath_overrides_runpath=no
12498     hardcode_into_libs=yes
12499     ;;
12500   *) # from 4.6 on, and DragonFly
12501     shlibpath_overrides_runpath=yes
12502     hardcode_into_libs=yes
12503     ;;
12504   esac
12505   ;;
12506
12507 gnu*)
12508   version_type=linux # correct to gnu/linux during the next big refactor
12509   need_lib_prefix=no
12510   need_version=no
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   shlibpath_var=LD_LIBRARY_PATH
12514   shlibpath_overrides_runpath=no
12515   hardcode_into_libs=yes
12516   ;;
12517
12518 haiku*)
12519   version_type=linux # correct to gnu/linux during the next big refactor
12520   need_lib_prefix=no
12521   need_version=no
12522   dynamic_linker="$host_os runtime_loader"
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LIBRARY_PATH
12526   shlibpath_overrides_runpath=yes
12527   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12528   hardcode_into_libs=yes
12529   ;;
12530
12531 hpux9* | hpux10* | hpux11*)
12532   # Give a soname corresponding to the major version so that dld.sl refuses to
12533   # link against other versions.
12534   version_type=sunos
12535   need_lib_prefix=no
12536   need_version=no
12537   case $host_cpu in
12538   ia64*)
12539     shrext_cmds='.so'
12540     hardcode_into_libs=yes
12541     dynamic_linker="$host_os dld.so"
12542     shlibpath_var=LD_LIBRARY_PATH
12543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545     soname_spec='${libname}${release}${shared_ext}$major'
12546     if test "X$HPUX_IA64_MODE" = X32; then
12547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12548     else
12549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12550     fi
12551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552     ;;
12553   hppa*64*)
12554     shrext_cmds='.sl'
12555     hardcode_into_libs=yes
12556     dynamic_linker="$host_os dld.sl"
12557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560     soname_spec='${libname}${release}${shared_ext}$major'
12561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563     ;;
12564   *)
12565     shrext_cmds='.sl'
12566     dynamic_linker="$host_os dld.sl"
12567     shlibpath_var=SHLIB_PATH
12568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570     soname_spec='${libname}${release}${shared_ext}$major'
12571     ;;
12572   esac
12573   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574   postinstall_cmds='chmod 555 $lib'
12575   # or fails outright, so override atomically:
12576   install_override_mode=555
12577   ;;
12578
12579 interix[3-9]*)
12580   version_type=linux # correct to gnu/linux during the next big refactor
12581   need_lib_prefix=no
12582   need_version=no
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584   soname_spec='${libname}${release}${shared_ext}$major'
12585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   shlibpath_overrides_runpath=no
12588   hardcode_into_libs=yes
12589   ;;
12590
12591 irix5* | irix6* | nonstopux*)
12592   case $host_os in
12593     nonstopux*) version_type=nonstopux ;;
12594     *)
12595         if test "$lt_cv_prog_gnu_ld" = yes; then
12596                 version_type=linux # correct to gnu/linux during the next big refactor
12597         else
12598                 version_type=irix
12599         fi ;;
12600   esac
12601   need_lib_prefix=no
12602   need_version=no
12603   soname_spec='${libname}${release}${shared_ext}$major'
12604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12605   case $host_os in
12606   irix5* | nonstopux*)
12607     libsuff= shlibsuff=
12608     ;;
12609   *)
12610     case $LD in # libtool.m4 will add one of these switches to LD
12611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612       libsuff= shlibsuff= libmagic=32-bit;;
12613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614       libsuff=32 shlibsuff=N32 libmagic=N32;;
12615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617     *) libsuff= shlibsuff= libmagic=never-match;;
12618     esac
12619     ;;
12620   esac
12621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622   shlibpath_overrides_runpath=no
12623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625   hardcode_into_libs=yes
12626   ;;
12627
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12630   dynamic_linker=no
12631   ;;
12632
12633 # This must be glibc/ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635   version_type=linux # correct to gnu/linux during the next big refactor
12636   need_lib_prefix=no
12637   need_version=no
12638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641   shlibpath_var=LD_LIBRARY_PATH
12642   shlibpath_overrides_runpath=no
12643
12644   # Some binutils ld are patched to set DT_RUNPATH
12645   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   lt_cv_shlibpath_overrides_runpath=no
12649     save_LDFLAGS=$LDFLAGS
12650     save_libdir=$libdir
12651     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h.  */
12655
12656 int
12657 main ()
12658 {
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12666   lt_cv_shlibpath_overrides_runpath=yes
12667 fi
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670     conftest$ac_exeext conftest.$ac_ext
12671     LDFLAGS=$save_LDFLAGS
12672     libdir=$save_libdir
12673
12674 fi
12675
12676   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12677
12678   # This implies no fast_install, which is unacceptable.
12679   # Some rework will be needed to allow for fast_install
12680   # before this can be enabled.
12681   hardcode_into_libs=yes
12682
12683   # Append ld.so.conf contents to the search path
12684   if test -f /etc/ld.so.conf; then
12685     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' ' '`
12686     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12687   fi
12688
12689   # We used to test for /lib/ld.so.1 and disable shared libraries on
12690   # powerpc, because MkLinux only supported shared libraries with the
12691   # GNU dynamic linker.  Since this was broken with cross compilers,
12692   # most powerpc-linux boxes support dynamic linking these days and
12693   # people can always --disable-shared, the test was removed, and we
12694   # assume the GNU/Linux dynamic linker is in use.
12695   dynamic_linker='GNU/Linux ld.so'
12696   ;;
12697
12698 netbsdelf*-gnu)
12699   version_type=linux
12700   need_lib_prefix=no
12701   need_version=no
12702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12703   soname_spec='${libname}${release}${shared_ext}$major'
12704   shlibpath_var=LD_LIBRARY_PATH
12705   shlibpath_overrides_runpath=no
12706   hardcode_into_libs=yes
12707   dynamic_linker='NetBSD ld.elf_so'
12708   ;;
12709
12710 netbsd*)
12711   version_type=sunos
12712   need_lib_prefix=no
12713   need_version=no
12714   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12716     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12717     dynamic_linker='NetBSD (a.out) ld.so'
12718   else
12719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12720     soname_spec='${libname}${release}${shared_ext}$major'
12721     dynamic_linker='NetBSD ld.elf_so'
12722   fi
12723   shlibpath_var=LD_LIBRARY_PATH
12724   shlibpath_overrides_runpath=yes
12725   hardcode_into_libs=yes
12726   ;;
12727
12728 newsos6)
12729   version_type=linux # correct to gnu/linux during the next big refactor
12730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731   shlibpath_var=LD_LIBRARY_PATH
12732   shlibpath_overrides_runpath=yes
12733   ;;
12734
12735 *nto* | *qnx*)
12736   version_type=qnx
12737   need_lib_prefix=no
12738   need_version=no
12739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740   soname_spec='${libname}${release}${shared_ext}$major'
12741   shlibpath_var=LD_LIBRARY_PATH
12742   shlibpath_overrides_runpath=no
12743   hardcode_into_libs=yes
12744   dynamic_linker='ldqnx.so'
12745   ;;
12746
12747 openbsd*)
12748   version_type=sunos
12749   sys_lib_dlsearch_path_spec="/usr/lib"
12750   need_lib_prefix=no
12751   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12752   case $host_os in
12753     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12754     *)                          need_version=no  ;;
12755   esac
12756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12758   shlibpath_var=LD_LIBRARY_PATH
12759   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12760     case $host_os in
12761       openbsd2.[89] | openbsd2.[89].*)
12762         shlibpath_overrides_runpath=no
12763         ;;
12764       *)
12765         shlibpath_overrides_runpath=yes
12766         ;;
12767       esac
12768   else
12769     shlibpath_overrides_runpath=yes
12770   fi
12771   ;;
12772
12773 os2*)
12774   libname_spec='$name'
12775   shrext_cmds=".dll"
12776   need_lib_prefix=no
12777   library_names_spec='$libname${shared_ext} $libname.a'
12778   dynamic_linker='OS/2 ld.exe'
12779   shlibpath_var=LIBPATH
12780   ;;
12781
12782 osf3* | osf4* | osf5*)
12783   version_type=osf
12784   need_lib_prefix=no
12785   need_version=no
12786   soname_spec='${libname}${release}${shared_ext}$major'
12787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788   shlibpath_var=LD_LIBRARY_PATH
12789   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12790   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12791   ;;
12792
12793 rdos*)
12794   dynamic_linker=no
12795   ;;
12796
12797 solaris*)
12798   version_type=linux # correct to gnu/linux during the next big refactor
12799   need_lib_prefix=no
12800   need_version=no
12801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802   soname_spec='${libname}${release}${shared_ext}$major'
12803   shlibpath_var=LD_LIBRARY_PATH
12804   shlibpath_overrides_runpath=yes
12805   hardcode_into_libs=yes
12806   # ldd complains unless libraries are executable
12807   postinstall_cmds='chmod +x $lib'
12808   ;;
12809
12810 sunos4*)
12811   version_type=sunos
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12814   shlibpath_var=LD_LIBRARY_PATH
12815   shlibpath_overrides_runpath=yes
12816   if test "$with_gnu_ld" = yes; then
12817     need_lib_prefix=no
12818   fi
12819   need_version=yes
12820   ;;
12821
12822 sysv4 | sysv4.3*)
12823   version_type=linux # correct to gnu/linux during the next big refactor
12824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825   soname_spec='${libname}${release}${shared_ext}$major'
12826   shlibpath_var=LD_LIBRARY_PATH
12827   case $host_vendor in
12828     sni)
12829       shlibpath_overrides_runpath=no
12830       need_lib_prefix=no
12831       runpath_var=LD_RUN_PATH
12832       ;;
12833     siemens)
12834       need_lib_prefix=no
12835       ;;
12836     motorola)
12837       need_lib_prefix=no
12838       need_version=no
12839       shlibpath_overrides_runpath=no
12840       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12841       ;;
12842   esac
12843   ;;
12844
12845 sysv4*MP*)
12846   if test -d /usr/nec ;then
12847     version_type=linux # correct to gnu/linux during the next big refactor
12848     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12849     soname_spec='$libname${shared_ext}.$major'
12850     shlibpath_var=LD_LIBRARY_PATH
12851   fi
12852   ;;
12853
12854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12855   version_type=freebsd-elf
12856   need_lib_prefix=no
12857   need_version=no
12858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12859   soname_spec='${libname}${release}${shared_ext}$major'
12860   shlibpath_var=LD_LIBRARY_PATH
12861   shlibpath_overrides_runpath=yes
12862   hardcode_into_libs=yes
12863   if test "$with_gnu_ld" = yes; then
12864     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12865   else
12866     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12867     case $host_os in
12868       sco3.2v5*)
12869         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12870         ;;
12871     esac
12872   fi
12873   sys_lib_dlsearch_path_spec='/usr/lib'
12874   ;;
12875
12876 tpf*)
12877   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12878   version_type=linux # correct to gnu/linux during the next big refactor
12879   need_lib_prefix=no
12880   need_version=no
12881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12882   shlibpath_var=LD_LIBRARY_PATH
12883   shlibpath_overrides_runpath=no
12884   hardcode_into_libs=yes
12885   ;;
12886
12887 uts4*)
12888   version_type=linux # correct to gnu/linux during the next big refactor
12889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890   soname_spec='${libname}${release}${shared_ext}$major'
12891   shlibpath_var=LD_LIBRARY_PATH
12892   ;;
12893
12894 *)
12895   dynamic_linker=no
12896   ;;
12897 esac
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12899 $as_echo "$dynamic_linker" >&6; }
12900 test "$dynamic_linker" = no && can_build_shared=no
12901
12902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12903 if test "$GCC" = yes; then
12904   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12905 fi
12906
12907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12908   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12909 fi
12910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12911   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12912 fi
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13007 hardcode_action=
13008 if test -n "$hardcode_libdir_flag_spec" ||
13009    test -n "$runpath_var" ||
13010    test "X$hardcode_automatic" = "Xyes" ; then
13011
13012   # We can hardcode non-existent directories.
13013   if test "$hardcode_direct" != no &&
13014      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015      # have to relink, otherwise we might link with an installed library
13016      # when we should be linking with a yet-to-be-installed one
13017      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13018      test "$hardcode_minus_L" != no; then
13019     # Linking always hardcodes the temporary library directory.
13020     hardcode_action=relink
13021   else
13022     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023     hardcode_action=immediate
13024   fi
13025 else
13026   # We cannot hardcode anything, or else we can only hardcode existing
13027   # directories.
13028   hardcode_action=unsupported
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13031 $as_echo "$hardcode_action" >&6; }
13032
13033 if test "$hardcode_action" = relink ||
13034    test "$inherit_rpath" = yes; then
13035   # Fast installation is not supported
13036   enable_fast_install=no
13037 elif test "$shlibpath_overrides_runpath" = yes ||
13038      test "$enable_shared" = no; then
13039   # Fast installation is not necessary
13040   enable_fast_install=needless
13041 fi
13042
13043
13044
13045
13046
13047
13048   if test "x$enable_dlopen" != xyes; then
13049   enable_dlopen=unknown
13050   enable_dlopen_self=unknown
13051   enable_dlopen_self_static=unknown
13052 else
13053   lt_cv_dlopen=no
13054   lt_cv_dlopen_libs=
13055
13056   case $host_os in
13057   beos*)
13058     lt_cv_dlopen="load_add_on"
13059     lt_cv_dlopen_libs=
13060     lt_cv_dlopen_self=yes
13061     ;;
13062
13063   mingw* | pw32* | cegcc*)
13064     lt_cv_dlopen="LoadLibrary"
13065     lt_cv_dlopen_libs=
13066     ;;
13067
13068   cygwin*)
13069     lt_cv_dlopen="dlopen"
13070     lt_cv_dlopen_libs=
13071     ;;
13072
13073   darwin*)
13074   # if libdl is installed we need to link against it
13075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13077 if ${ac_cv_lib_dl_dlopen+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-ldl  $LIBS"
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084
13085 /* Override any GCC internal prototype to avoid an error.
13086    Use char because int might match the return type of a GCC
13087    builtin and then its argument prototype would still apply.  */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char dlopen ();
13092 int
13093 main ()
13094 {
13095 return dlopen ();
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"; then :
13101   ac_cv_lib_dl_dlopen=yes
13102 else
13103   ac_cv_lib_dl_dlopen=no
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106     conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13111 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13112   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13113 else
13114
13115     lt_cv_dlopen="dyld"
13116     lt_cv_dlopen_libs=
13117     lt_cv_dlopen_self=yes
13118
13119 fi
13120
13121     ;;
13122
13123   *)
13124     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13125 if test "x$ac_cv_func_shl_load" = xyes; then :
13126   lt_cv_dlopen="shl_load"
13127 else
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13129 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13130 if ${ac_cv_lib_dld_shl_load+:} false; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-ldld  $LIBS"
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137
13138 /* Override any GCC internal prototype to avoid an error.
13139    Use char because int might match the return type of a GCC
13140    builtin and then its argument prototype would still apply.  */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 char shl_load ();
13145 int
13146 main ()
13147 {
13148 return shl_load ();
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154   ac_cv_lib_dld_shl_load=yes
13155 else
13156   ac_cv_lib_dld_shl_load=no
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext \
13159     conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13163 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13164 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13165   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13166 else
13167   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13168 if test "x$ac_cv_func_dlopen" = xyes; then :
13169   lt_cv_dlopen="dlopen"
13170 else
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13173 if ${ac_cv_lib_dl_dlopen+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-ldl  $LIBS"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h.  */
13180
13181 /* Override any GCC internal prototype to avoid an error.
13182    Use char because int might match the return type of a GCC
13183    builtin and then its argument prototype would still apply.  */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char dlopen ();
13188 int
13189 main ()
13190 {
13191 return dlopen ();
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197   ac_cv_lib_dl_dlopen=yes
13198 else
13199   ac_cv_lib_dl_dlopen=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202     conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13207 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13209 else
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13212 if ${ac_cv_lib_svld_dlopen+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-lsvld  $LIBS"
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219
13220 /* Override any GCC internal prototype to avoid an error.
13221    Use char because int might match the return type of a GCC
13222    builtin and then its argument prototype would still apply.  */
13223 #ifdef __cplusplus
13224 extern "C"
13225 #endif
13226 char dlopen ();
13227 int
13228 main ()
13229 {
13230 return dlopen ();
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_c_try_link "$LINENO"; then :
13236   ac_cv_lib_svld_dlopen=yes
13237 else
13238   ac_cv_lib_svld_dlopen=no
13239 fi
13240 rm -f core conftest.err conftest.$ac_objext \
13241     conftest$ac_exeext conftest.$ac_ext
13242 LIBS=$ac_check_lib_save_LIBS
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13245 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13246 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13247   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13248 else
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13250 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13251 if ${ac_cv_lib_dld_dld_link+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   ac_check_lib_save_LIBS=$LIBS
13255 LIBS="-ldld  $LIBS"
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258
13259 /* Override any GCC internal prototype to avoid an error.
13260    Use char because int might match the return type of a GCC
13261    builtin and then its argument prototype would still apply.  */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char dld_link ();
13266 int
13267 main ()
13268 {
13269 return dld_link ();
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"; then :
13275   ac_cv_lib_dld_dld_link=yes
13276 else
13277   ac_cv_lib_dld_dld_link=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext \
13280     conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13284 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13285 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13286   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13287 fi
13288
13289
13290 fi
13291
13292
13293 fi
13294
13295
13296 fi
13297
13298
13299 fi
13300
13301
13302 fi
13303
13304     ;;
13305   esac
13306
13307   if test "x$lt_cv_dlopen" != xno; then
13308     enable_dlopen=yes
13309   else
13310     enable_dlopen=no
13311   fi
13312
13313   case $lt_cv_dlopen in
13314   dlopen)
13315     save_CPPFLAGS="$CPPFLAGS"
13316     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13317
13318     save_LDFLAGS="$LDFLAGS"
13319     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13320
13321     save_LIBS="$LIBS"
13322     LIBS="$lt_cv_dlopen_libs $LIBS"
13323
13324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13325 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13326 if ${lt_cv_dlopen_self+:} false; then :
13327   $as_echo_n "(cached) " >&6
13328 else
13329           if test "$cross_compiling" = yes; then :
13330   lt_cv_dlopen_self=cross
13331 else
13332   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13333   lt_status=$lt_dlunknown
13334   cat > conftest.$ac_ext <<_LT_EOF
13335 #line $LINENO "configure"
13336 #include "confdefs.h"
13337
13338 #if HAVE_DLFCN_H
13339 #include <dlfcn.h>
13340 #endif
13341
13342 #include <stdio.h>
13343
13344 #ifdef RTLD_GLOBAL
13345 #  define LT_DLGLOBAL           RTLD_GLOBAL
13346 #else
13347 #  ifdef DL_GLOBAL
13348 #    define LT_DLGLOBAL         DL_GLOBAL
13349 #  else
13350 #    define LT_DLGLOBAL         0
13351 #  endif
13352 #endif
13353
13354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13355    find out it does not work in some platform. */
13356 #ifndef LT_DLLAZY_OR_NOW
13357 #  ifdef RTLD_LAZY
13358 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13359 #  else
13360 #    ifdef DL_LAZY
13361 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13362 #    else
13363 #      ifdef RTLD_NOW
13364 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13365 #      else
13366 #        ifdef DL_NOW
13367 #          define LT_DLLAZY_OR_NOW      DL_NOW
13368 #        else
13369 #          define LT_DLLAZY_OR_NOW      0
13370 #        endif
13371 #      endif
13372 #    endif
13373 #  endif
13374 #endif
13375
13376 /* When -fvisbility=hidden is used, assume the code has been annotated
13377    correspondingly for the symbols needed.  */
13378 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13379 int fnord () __attribute__((visibility("default")));
13380 #endif
13381
13382 int fnord () { return 42; }
13383 int main ()
13384 {
13385   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13386   int status = $lt_dlunknown;
13387
13388   if (self)
13389     {
13390       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13391       else
13392         {
13393           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13394           else puts (dlerror ());
13395         }
13396       /* dlclose (self); */
13397     }
13398   else
13399     puts (dlerror ());
13400
13401   return status;
13402 }
13403 _LT_EOF
13404   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13405   (eval $ac_link) 2>&5
13406   ac_status=$?
13407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13409     (./conftest; exit; ) >&5 2>/dev/null
13410     lt_status=$?
13411     case x$lt_status in
13412       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13413       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13414       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13415     esac
13416   else :
13417     # compilation failed
13418     lt_cv_dlopen_self=no
13419   fi
13420 fi
13421 rm -fr conftest*
13422
13423
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13426 $as_echo "$lt_cv_dlopen_self" >&6; }
13427
13428     if test "x$lt_cv_dlopen_self" = xyes; then
13429       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13431 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13432 if ${lt_cv_dlopen_self_static+:} false; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435           if test "$cross_compiling" = yes; then :
13436   lt_cv_dlopen_self_static=cross
13437 else
13438   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13439   lt_status=$lt_dlunknown
13440   cat > conftest.$ac_ext <<_LT_EOF
13441 #line $LINENO "configure"
13442 #include "confdefs.h"
13443
13444 #if HAVE_DLFCN_H
13445 #include <dlfcn.h>
13446 #endif
13447
13448 #include <stdio.h>
13449
13450 #ifdef RTLD_GLOBAL
13451 #  define LT_DLGLOBAL           RTLD_GLOBAL
13452 #else
13453 #  ifdef DL_GLOBAL
13454 #    define LT_DLGLOBAL         DL_GLOBAL
13455 #  else
13456 #    define LT_DLGLOBAL         0
13457 #  endif
13458 #endif
13459
13460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13461    find out it does not work in some platform. */
13462 #ifndef LT_DLLAZY_OR_NOW
13463 #  ifdef RTLD_LAZY
13464 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13465 #  else
13466 #    ifdef DL_LAZY
13467 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13468 #    else
13469 #      ifdef RTLD_NOW
13470 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13471 #      else
13472 #        ifdef DL_NOW
13473 #          define LT_DLLAZY_OR_NOW      DL_NOW
13474 #        else
13475 #          define LT_DLLAZY_OR_NOW      0
13476 #        endif
13477 #      endif
13478 #    endif
13479 #  endif
13480 #endif
13481
13482 /* When -fvisbility=hidden is used, assume the code has been annotated
13483    correspondingly for the symbols needed.  */
13484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13485 int fnord () __attribute__((visibility("default")));
13486 #endif
13487
13488 int fnord () { return 42; }
13489 int main ()
13490 {
13491   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13492   int status = $lt_dlunknown;
13493
13494   if (self)
13495     {
13496       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13497       else
13498         {
13499           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13500           else puts (dlerror ());
13501         }
13502       /* dlclose (self); */
13503     }
13504   else
13505     puts (dlerror ());
13506
13507   return status;
13508 }
13509 _LT_EOF
13510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13511   (eval $ac_link) 2>&5
13512   ac_status=$?
13513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13515     (./conftest; exit; ) >&5 2>/dev/null
13516     lt_status=$?
13517     case x$lt_status in
13518       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13519       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13520       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13521     esac
13522   else :
13523     # compilation failed
13524     lt_cv_dlopen_self_static=no
13525   fi
13526 fi
13527 rm -fr conftest*
13528
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13532 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13533     fi
13534
13535     CPPFLAGS="$save_CPPFLAGS"
13536     LDFLAGS="$save_LDFLAGS"
13537     LIBS="$save_LIBS"
13538     ;;
13539   esac
13540
13541   case $lt_cv_dlopen_self in
13542   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13543   *) enable_dlopen_self=unknown ;;
13544   esac
13545
13546   case $lt_cv_dlopen_self_static in
13547   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13548   *) enable_dlopen_self_static=unknown ;;
13549   esac
13550 fi
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568 striplib=
13569 old_striplib=
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13571 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13572 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13573   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13574   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576 $as_echo "yes" >&6; }
13577 else
13578 # FIXME - insert some real tests, host_os isn't really good enough
13579   case $host_os in
13580   darwin*)
13581     if test -n "$STRIP" ; then
13582       striplib="$STRIP -x"
13583       old_striplib="$STRIP -S"
13584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13585 $as_echo "yes" >&6; }
13586     else
13587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589     fi
13590     ;;
13591   *)
13592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13594     ;;
13595   esac
13596 fi
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609   # Report which library types will actually be built
13610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13611 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13613 $as_echo "$can_build_shared" >&6; }
13614
13615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13616 $as_echo_n "checking whether to build shared libraries... " >&6; }
13617   test "$can_build_shared" = "no" && enable_shared=no
13618
13619   # On AIX, shared libraries and static libraries use the same namespace, and
13620   # are all built from PIC.
13621   case $host_os in
13622   aix3*)
13623     test "$enable_shared" = yes && enable_static=no
13624     if test -n "$RANLIB"; then
13625       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13626       postinstall_cmds='$RANLIB $lib'
13627     fi
13628     ;;
13629
13630   aix[4-9]*)
13631     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13632       test "$enable_shared" = yes && enable_static=no
13633     fi
13634     ;;
13635   esac
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13637 $as_echo "$enable_shared" >&6; }
13638
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13640 $as_echo_n "checking whether to build static libraries... " >&6; }
13641   # Make sure either enable_shared or enable_static is yes.
13642   test "$enable_shared" = yes || enable_static=yes
13643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13644 $as_echo "$enable_static" >&6; }
13645
13646
13647
13648
13649 fi
13650 ac_ext=c
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13655
13656 CC="$lt_save_CC"
13657
13658       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13659     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13660     (test "X$CXX" != "Xg++"))) ; then
13661   ac_ext=cpp
13662 ac_cpp='$CXXCPP $CPPFLAGS'
13663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13668 if test -z "$CXXCPP"; then
13669   if ${ac_cv_prog_CXXCPP+:} false; then :
13670   $as_echo_n "(cached) " >&6
13671 else
13672       # Double quotes because CXXCPP needs to be expanded
13673     for CXXCPP in "$CXX -E" "/lib/cpp"
13674     do
13675       ac_preproc_ok=false
13676 for ac_cxx_preproc_warn_flag in '' yes
13677 do
13678   # Use a header file that comes with gcc, so configuring glibc
13679   # with a fresh cross-compiler works.
13680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681   # <limits.h> exists even on freestanding compilers.
13682   # On the NeXT, cc -E runs the code through the compiler's parser,
13683   # not just through cpp. "Syntax error" is here to catch this case.
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686 #ifdef __STDC__
13687 # include <limits.h>
13688 #else
13689 # include <assert.h>
13690 #endif
13691                      Syntax error
13692 _ACEOF
13693 if ac_fn_cxx_try_cpp "$LINENO"; then :
13694
13695 else
13696   # Broken: fails on valid input.
13697 continue
13698 fi
13699 rm -f conftest.err conftest.i conftest.$ac_ext
13700
13701   # OK, works on sane cases.  Now check whether nonexistent headers
13702   # can be detected and how.
13703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h.  */
13705 #include <ac_nonexistent.h>
13706 _ACEOF
13707 if ac_fn_cxx_try_cpp "$LINENO"; then :
13708   # Broken: success on invalid input.
13709 continue
13710 else
13711   # Passes both tests.
13712 ac_preproc_ok=:
13713 break
13714 fi
13715 rm -f conftest.err conftest.i conftest.$ac_ext
13716
13717 done
13718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13719 rm -f conftest.i conftest.err conftest.$ac_ext
13720 if $ac_preproc_ok; then :
13721   break
13722 fi
13723
13724     done
13725     ac_cv_prog_CXXCPP=$CXXCPP
13726
13727 fi
13728   CXXCPP=$ac_cv_prog_CXXCPP
13729 else
13730   ac_cv_prog_CXXCPP=$CXXCPP
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13733 $as_echo "$CXXCPP" >&6; }
13734 ac_preproc_ok=false
13735 for ac_cxx_preproc_warn_flag in '' yes
13736 do
13737   # Use a header file that comes with gcc, so configuring glibc
13738   # with a fresh cross-compiler works.
13739   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13740   # <limits.h> exists even on freestanding compilers.
13741   # On the NeXT, cc -E runs the code through the compiler's parser,
13742   # not just through cpp. "Syntax error" is here to catch this case.
13743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h.  */
13745 #ifdef __STDC__
13746 # include <limits.h>
13747 #else
13748 # include <assert.h>
13749 #endif
13750                      Syntax error
13751 _ACEOF
13752 if ac_fn_cxx_try_cpp "$LINENO"; then :
13753
13754 else
13755   # Broken: fails on valid input.
13756 continue
13757 fi
13758 rm -f conftest.err conftest.i conftest.$ac_ext
13759
13760   # OK, works on sane cases.  Now check whether nonexistent headers
13761   # can be detected and how.
13762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h.  */
13764 #include <ac_nonexistent.h>
13765 _ACEOF
13766 if ac_fn_cxx_try_cpp "$LINENO"; then :
13767   # Broken: success on invalid input.
13768 continue
13769 else
13770   # Passes both tests.
13771 ac_preproc_ok=:
13772 break
13773 fi
13774 rm -f conftest.err conftest.i conftest.$ac_ext
13775
13776 done
13777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13778 rm -f conftest.i conftest.err conftest.$ac_ext
13779 if $ac_preproc_ok; then :
13780
13781 else
13782   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13784 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13785 See \`config.log' for more details" "$LINENO" 5; }
13786 fi
13787
13788 ac_ext=c
13789 ac_cpp='$CPP $CPPFLAGS'
13790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13793
13794 else
13795   _lt_caught_CXX_error=yes
13796 fi
13797
13798 ac_ext=cpp
13799 ac_cpp='$CXXCPP $CPPFLAGS'
13800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13803
13804 archive_cmds_need_lc_CXX=no
13805 allow_undefined_flag_CXX=
13806 always_export_symbols_CXX=no
13807 archive_expsym_cmds_CXX=
13808 compiler_needs_object_CXX=no
13809 export_dynamic_flag_spec_CXX=
13810 hardcode_direct_CXX=no
13811 hardcode_direct_absolute_CXX=no
13812 hardcode_libdir_flag_spec_CXX=
13813 hardcode_libdir_separator_CXX=
13814 hardcode_minus_L_CXX=no
13815 hardcode_shlibpath_var_CXX=unsupported
13816 hardcode_automatic_CXX=no
13817 inherit_rpath_CXX=no
13818 module_cmds_CXX=
13819 module_expsym_cmds_CXX=
13820 link_all_deplibs_CXX=unknown
13821 old_archive_cmds_CXX=$old_archive_cmds
13822 reload_flag_CXX=$reload_flag
13823 reload_cmds_CXX=$reload_cmds
13824 no_undefined_flag_CXX=
13825 whole_archive_flag_spec_CXX=
13826 enable_shared_with_static_runtimes_CXX=no
13827
13828 # Source file extension for C++ test sources.
13829 ac_ext=cpp
13830
13831 # Object file extension for compiled C++ test sources.
13832 objext=o
13833 objext_CXX=$objext
13834
13835 # No sense in running all these tests if we already determined that
13836 # the CXX compiler isn't working.  Some variables (like enable_shared)
13837 # are currently assumed to apply to all compilers on this platform,
13838 # and will be corrupted by setting them based on a non-working compiler.
13839 if test "$_lt_caught_CXX_error" != yes; then
13840   # Code to be used in simple compile tests
13841   lt_simple_compile_test_code="int some_variable = 0;"
13842
13843   # Code to be used in simple link tests
13844   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13845
13846   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13847
13848
13849
13850
13851
13852
13853 # If no C compiler was specified, use CC.
13854 LTCC=${LTCC-"$CC"}
13855
13856 # If no C compiler flags were specified, use CFLAGS.
13857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13858
13859 # Allow CC to be a program name with arguments.
13860 compiler=$CC
13861
13862
13863   # save warnings/boilerplate of simple test code
13864   ac_outfile=conftest.$ac_objext
13865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13867 _lt_compiler_boilerplate=`cat conftest.err`
13868 $RM conftest*
13869
13870   ac_outfile=conftest.$ac_objext
13871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13873 _lt_linker_boilerplate=`cat conftest.err`
13874 $RM -r conftest*
13875
13876
13877   # Allow CC to be a program name with arguments.
13878   lt_save_CC=$CC
13879   lt_save_CFLAGS=$CFLAGS
13880   lt_save_LD=$LD
13881   lt_save_GCC=$GCC
13882   GCC=$GXX
13883   lt_save_with_gnu_ld=$with_gnu_ld
13884   lt_save_path_LD=$lt_cv_path_LD
13885   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13886     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13887   else
13888     $as_unset lt_cv_prog_gnu_ld
13889   fi
13890   if test -n "${lt_cv_path_LDCXX+set}"; then
13891     lt_cv_path_LD=$lt_cv_path_LDCXX
13892   else
13893     $as_unset lt_cv_path_LD
13894   fi
13895   test -z "${LDCXX+set}" || LD=$LDCXX
13896   CC=${CXX-"c++"}
13897   CFLAGS=$CXXFLAGS
13898   compiler=$CC
13899   compiler_CXX=$CC
13900   for cc_temp in $compiler""; do
13901   case $cc_temp in
13902     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13903     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13904     \-*) ;;
13905     *) break;;
13906   esac
13907 done
13908 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13909
13910
13911   if test -n "$compiler"; then
13912     # We don't want -fno-exception when compiling C++ code, so set the
13913     # no_builtin_flag separately
13914     if test "$GXX" = yes; then
13915       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13916     else
13917       lt_prog_compiler_no_builtin_flag_CXX=
13918     fi
13919
13920     if test "$GXX" = yes; then
13921       # Set up default GNU C++ configuration
13922
13923
13924
13925 # Check whether --with-gnu-ld was given.
13926 if test "${with_gnu_ld+set}" = set; then :
13927   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13928 else
13929   with_gnu_ld=no
13930 fi
13931
13932 ac_prog=ld
13933 if test "$GCC" = yes; then
13934   # Check if gcc -print-prog-name=ld gives a path.
13935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13936 $as_echo_n "checking for ld used by $CC... " >&6; }
13937   case $host in
13938   *-*-mingw*)
13939     # gcc leaves a trailing carriage return which upsets mingw
13940     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13941   *)
13942     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13943   esac
13944   case $ac_prog in
13945     # Accept absolute paths.
13946     [\\/]* | ?:[\\/]*)
13947       re_direlt='/[^/][^/]*/\.\./'
13948       # Canonicalize the pathname of ld
13949       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13950       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13951         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13952       done
13953       test -z "$LD" && LD="$ac_prog"
13954       ;;
13955   "")
13956     # If it fails, then pretend we aren't using GCC.
13957     ac_prog=ld
13958     ;;
13959   *)
13960     # If it is relative, then search for the first ld in PATH.
13961     with_gnu_ld=unknown
13962     ;;
13963   esac
13964 elif test "$with_gnu_ld" = yes; then
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13966 $as_echo_n "checking for GNU ld... " >&6; }
13967 else
13968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13969 $as_echo_n "checking for non-GNU ld... " >&6; }
13970 fi
13971 if ${lt_cv_path_LD+:} false; then :
13972   $as_echo_n "(cached) " >&6
13973 else
13974   if test -z "$LD"; then
13975   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13976   for ac_dir in $PATH; do
13977     IFS="$lt_save_ifs"
13978     test -z "$ac_dir" && ac_dir=.
13979     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13980       lt_cv_path_LD="$ac_dir/$ac_prog"
13981       # Check to see if the program is GNU ld.  I'd rather use --version,
13982       # but apparently some variants of GNU ld only accept -v.
13983       # Break only if it was the GNU/non-GNU ld that we prefer.
13984       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13985       *GNU* | *'with BFD'*)
13986         test "$with_gnu_ld" != no && break
13987         ;;
13988       *)
13989         test "$with_gnu_ld" != yes && break
13990         ;;
13991       esac
13992     fi
13993   done
13994   IFS="$lt_save_ifs"
13995 else
13996   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13997 fi
13998 fi
13999
14000 LD="$lt_cv_path_LD"
14001 if test -n "$LD"; then
14002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14003 $as_echo "$LD" >&6; }
14004 else
14005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14007 fi
14008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14011 if ${lt_cv_prog_gnu_ld+:} false; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14015 case `$LD -v 2>&1 </dev/null` in
14016 *GNU* | *'with BFD'*)
14017   lt_cv_prog_gnu_ld=yes
14018   ;;
14019 *)
14020   lt_cv_prog_gnu_ld=no
14021   ;;
14022 esac
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14026 with_gnu_ld=$lt_cv_prog_gnu_ld
14027
14028
14029
14030
14031
14032
14033
14034       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14035       # archiving commands below assume that GNU ld is being used.
14036       if test "$with_gnu_ld" = yes; then
14037         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14039
14040         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14042
14043         # If archive_cmds runs LD, not CC, wlarc should be empty
14044         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14045         #     investigate it a little bit more. (MM)
14046         wlarc='${wl}'
14047
14048         # ancient GNU ld didn't support --whole-archive et. al.
14049         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14050           $GREP 'no-whole-archive' > /dev/null; then
14051           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14052         else
14053           whole_archive_flag_spec_CXX=
14054         fi
14055       else
14056         with_gnu_ld=no
14057         wlarc=
14058
14059         # A generic and very simple default shared library creation
14060         # command for GNU C++ for the case where it uses the native
14061         # linker, instead of GNU ld.  If possible, this setting should
14062         # overridden to take advantage of the native linker features on
14063         # the platform it is being used on.
14064         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14065       fi
14066
14067       # Commands to make compiler produce verbose output that lists
14068       # what "hidden" libraries, object files and flags are used when
14069       # linking a shared library.
14070       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14071
14072     else
14073       GXX=no
14074       with_gnu_ld=no
14075       wlarc=
14076     fi
14077
14078     # PORTME: fill in a description of your system's C++ link characteristics
14079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14080 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14081     ld_shlibs_CXX=yes
14082     case $host_os in
14083       aix3*)
14084         # FIXME: insert proper C++ library support
14085         ld_shlibs_CXX=no
14086         ;;
14087       aix[4-9]*)
14088         if test "$host_cpu" = ia64; then
14089           # On IA64, the linker does run time linking by default, so we don't
14090           # have to do anything special.
14091           aix_use_runtimelinking=no
14092           exp_sym_flag='-Bexport'
14093           no_entry_flag=""
14094         else
14095           aix_use_runtimelinking=no
14096
14097           # Test if we are trying to use run time linking or normal
14098           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14099           # need to do runtime linking.
14100           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14101             for ld_flag in $LDFLAGS; do
14102               case $ld_flag in
14103               *-brtl*)
14104                 aix_use_runtimelinking=yes
14105                 break
14106                 ;;
14107               esac
14108             done
14109             ;;
14110           esac
14111
14112           exp_sym_flag='-bexport'
14113           no_entry_flag='-bnoentry'
14114         fi
14115
14116         # When large executables or shared objects are built, AIX ld can
14117         # have problems creating the table of contents.  If linking a library
14118         # or program results in "error TOC overflow" add -mminimal-toc to
14119         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14120         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14121
14122         archive_cmds_CXX=''
14123         hardcode_direct_CXX=yes
14124         hardcode_direct_absolute_CXX=yes
14125         hardcode_libdir_separator_CXX=':'
14126         link_all_deplibs_CXX=yes
14127         file_list_spec_CXX='${wl}-f,'
14128
14129         if test "$GXX" = yes; then
14130           case $host_os in aix4.[012]|aix4.[012].*)
14131           # We only want to do this on AIX 4.2 and lower, the check
14132           # below for broken collect2 doesn't work under 4.3+
14133           collect2name=`${CC} -print-prog-name=collect2`
14134           if test -f "$collect2name" &&
14135              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14136           then
14137             # We have reworked collect2
14138             :
14139           else
14140             # We have old collect2
14141             hardcode_direct_CXX=unsupported
14142             # It fails to find uninstalled libraries when the uninstalled
14143             # path is not listed in the libpath.  Setting hardcode_minus_L
14144             # to unsupported forces relinking
14145             hardcode_minus_L_CXX=yes
14146             hardcode_libdir_flag_spec_CXX='-L$libdir'
14147             hardcode_libdir_separator_CXX=
14148           fi
14149           esac
14150           shared_flag='-shared'
14151           if test "$aix_use_runtimelinking" = yes; then
14152             shared_flag="$shared_flag "'${wl}-G'
14153           fi
14154         else
14155           # not using gcc
14156           if test "$host_cpu" = ia64; then
14157           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14158           # chokes on -Wl,-G. The following line is correct:
14159           shared_flag='-G'
14160           else
14161             if test "$aix_use_runtimelinking" = yes; then
14162               shared_flag='${wl}-G'
14163             else
14164               shared_flag='${wl}-bM:SRE'
14165             fi
14166           fi
14167         fi
14168
14169         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14170         # It seems that -bexpall does not export symbols beginning with
14171         # underscore (_), so it is better to generate a list of symbols to
14172         # export.
14173         always_export_symbols_CXX=yes
14174         if test "$aix_use_runtimelinking" = yes; then
14175           # Warning - without using the other runtime loading flags (-brtl),
14176           # -berok will link without error, but may produce a broken library.
14177           allow_undefined_flag_CXX='-berok'
14178           # Determine the default libpath from the value encoded in an empty
14179           # executable.
14180           if test "${lt_cv_aix_libpath+set}" = set; then
14181   aix_libpath=$lt_cv_aix_libpath
14182 else
14183   if ${lt_cv_aix_libpath__CXX+:} false; then :
14184   $as_echo_n "(cached) " >&6
14185 else
14186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h.  */
14188
14189 int
14190 main ()
14191 {
14192
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_cxx_try_link "$LINENO"; then :
14198
14199   lt_aix_libpath_sed='
14200       /Import File Strings/,/^$/ {
14201           /^0/ {
14202               s/^0  *\([^ ]*\) *$/\1/
14203               p
14204           }
14205       }'
14206   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14207   # Check for a 64-bit object if we didn't find anything.
14208   if test -z "$lt_cv_aix_libpath__CXX"; then
14209     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14210   fi
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext \
14213     conftest$ac_exeext conftest.$ac_ext
14214   if test -z "$lt_cv_aix_libpath__CXX"; then
14215     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14216   fi
14217
14218 fi
14219
14220   aix_libpath=$lt_cv_aix_libpath__CXX
14221 fi
14222
14223           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14224
14225           archive_expsym_cmds_CXX='$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"
14226         else
14227           if test "$host_cpu" = ia64; then
14228             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14229             allow_undefined_flag_CXX="-z nodefs"
14230             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14231           else
14232             # Determine the default libpath from the value encoded in an
14233             # empty executable.
14234             if test "${lt_cv_aix_libpath+set}" = set; then
14235   aix_libpath=$lt_cv_aix_libpath
14236 else
14237   if ${lt_cv_aix_libpath__CXX+:} false; then :
14238   $as_echo_n "(cached) " >&6
14239 else
14240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h.  */
14242
14243 int
14244 main ()
14245 {
14246
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_cxx_try_link "$LINENO"; then :
14252
14253   lt_aix_libpath_sed='
14254       /Import File Strings/,/^$/ {
14255           /^0/ {
14256               s/^0  *\([^ ]*\) *$/\1/
14257               p
14258           }
14259       }'
14260   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14261   # Check for a 64-bit object if we didn't find anything.
14262   if test -z "$lt_cv_aix_libpath__CXX"; then
14263     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264   fi
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267     conftest$ac_exeext conftest.$ac_ext
14268   if test -z "$lt_cv_aix_libpath__CXX"; then
14269     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14270   fi
14271
14272 fi
14273
14274   aix_libpath=$lt_cv_aix_libpath__CXX
14275 fi
14276
14277             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14278             # Warning - without using the other run time loading flags,
14279             # -berok will link without error, but may produce a broken library.
14280             no_undefined_flag_CXX=' ${wl}-bernotok'
14281             allow_undefined_flag_CXX=' ${wl}-berok'
14282             if test "$with_gnu_ld" = yes; then
14283               # We only use this code for GNU lds that support --whole-archive.
14284               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14285             else
14286               # Exported symbols can be pulled into shared objects from archives
14287               whole_archive_flag_spec_CXX='$convenience'
14288             fi
14289             archive_cmds_need_lc_CXX=yes
14290             # This is similar to how AIX traditionally builds its shared
14291             # libraries.
14292             archive_expsym_cmds_CXX="\$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'
14293           fi
14294         fi
14295         ;;
14296
14297       beos*)
14298         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14299           allow_undefined_flag_CXX=unsupported
14300           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14301           # support --undefined.  This deserves some investigation.  FIXME
14302           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303         else
14304           ld_shlibs_CXX=no
14305         fi
14306         ;;
14307
14308       chorus*)
14309         case $cc_basename in
14310           *)
14311           # FIXME: insert proper C++ library support
14312           ld_shlibs_CXX=no
14313           ;;
14314         esac
14315         ;;
14316
14317       cygwin* | mingw* | pw32* | cegcc*)
14318         case $GXX,$cc_basename in
14319         ,cl* | no,cl*)
14320           # Native MSVC
14321           # hardcode_libdir_flag_spec is actually meaningless, as there is
14322           # no search path for DLLs.
14323           hardcode_libdir_flag_spec_CXX=' '
14324           allow_undefined_flag_CXX=unsupported
14325           always_export_symbols_CXX=yes
14326           file_list_spec_CXX='@'
14327           # Tell ltmain to make .lib files, not .a files.
14328           libext=lib
14329           # Tell ltmain to make .dll files, not .so files.
14330           shrext_cmds=".dll"
14331           # FIXME: Setting linknames here is a bad hack.
14332           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14333           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14334               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14335             else
14336               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14337             fi~
14338             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14339             linknames='
14340           # The linker will not automatically build a static lib if we build a DLL.
14341           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14342           enable_shared_with_static_runtimes_CXX=yes
14343           # Don't use ranlib
14344           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14345           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14346             lt_tool_outputfile="@TOOL_OUTPUT@"~
14347             case $lt_outputfile in
14348               *.exe|*.EXE) ;;
14349               *)
14350                 lt_outputfile="$lt_outputfile.exe"
14351                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14352                 ;;
14353             esac~
14354             func_to_tool_file "$lt_outputfile"~
14355             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14356               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14357               $RM "$lt_outputfile.manifest";
14358             fi'
14359           ;;
14360         *)
14361           # g++
14362           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14363           # as there is no search path for DLLs.
14364           hardcode_libdir_flag_spec_CXX='-L$libdir'
14365           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14366           allow_undefined_flag_CXX=unsupported
14367           always_export_symbols_CXX=no
14368           enable_shared_with_static_runtimes_CXX=yes
14369
14370           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14371             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14372             # If the export-symbols file already is a .def file (1st line
14373             # is EXPORTS), use it as is; otherwise, prepend...
14374             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14375               cp $export_symbols $output_objdir/$soname.def;
14376             else
14377               echo EXPORTS > $output_objdir/$soname.def;
14378               cat $export_symbols >> $output_objdir/$soname.def;
14379             fi~
14380             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14381           else
14382             ld_shlibs_CXX=no
14383           fi
14384           ;;
14385         esac
14386         ;;
14387       darwin* | rhapsody*)
14388
14389
14390   archive_cmds_need_lc_CXX=no
14391   hardcode_direct_CXX=no
14392   hardcode_automatic_CXX=yes
14393   hardcode_shlibpath_var_CXX=unsupported
14394   if test "$lt_cv_ld_force_load" = "yes"; then
14395     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14396
14397   else
14398     whole_archive_flag_spec_CXX=''
14399   fi
14400   link_all_deplibs_CXX=yes
14401   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14402   case $cc_basename in
14403      ifort*) _lt_dar_can_shared=yes ;;
14404      *) _lt_dar_can_shared=$GCC ;;
14405   esac
14406   if test "$_lt_dar_can_shared" = "yes"; then
14407     output_verbose_link_cmd=func_echo_all
14408     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14409     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14410     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14411     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14412        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14413       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14414       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14415     fi
14416
14417   else
14418   ld_shlibs_CXX=no
14419   fi
14420
14421         ;;
14422
14423       dgux*)
14424         case $cc_basename in
14425           ec++*)
14426             # FIXME: insert proper C++ library support
14427             ld_shlibs_CXX=no
14428             ;;
14429           ghcx*)
14430             # Green Hills C++ Compiler
14431             # FIXME: insert proper C++ library support
14432             ld_shlibs_CXX=no
14433             ;;
14434           *)
14435             # FIXME: insert proper C++ library support
14436             ld_shlibs_CXX=no
14437             ;;
14438         esac
14439         ;;
14440
14441       freebsd2.*)
14442         # C++ shared libraries reported to be fairly broken before
14443         # switch to ELF
14444         ld_shlibs_CXX=no
14445         ;;
14446
14447       freebsd-elf*)
14448         archive_cmds_need_lc_CXX=no
14449         ;;
14450
14451       freebsd* | dragonfly*)
14452         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14453         # conventions
14454         ld_shlibs_CXX=yes
14455         ;;
14456
14457       gnu*)
14458         ;;
14459
14460       haiku*)
14461         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462         link_all_deplibs_CXX=yes
14463         ;;
14464
14465       hpux9*)
14466         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14467         hardcode_libdir_separator_CXX=:
14468         export_dynamic_flag_spec_CXX='${wl}-E'
14469         hardcode_direct_CXX=yes
14470         hardcode_minus_L_CXX=yes # Not in the search PATH,
14471                                              # but as the default
14472                                              # location of the library.
14473
14474         case $cc_basename in
14475           CC*)
14476             # FIXME: insert proper C++ library support
14477             ld_shlibs_CXX=no
14478             ;;
14479           aCC*)
14480             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14481             # Commands to make compiler produce verbose output that lists
14482             # what "hidden" libraries, object files and flags are used when
14483             # linking a shared library.
14484             #
14485             # There doesn't appear to be a way to prevent this compiler from
14486             # explicitly linking system object files so we need to strip them
14487             # from the output so that they don't get included in the library
14488             # dependencies.
14489             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14490             ;;
14491           *)
14492             if test "$GXX" = yes; then
14493               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14494             else
14495               # FIXME: insert proper C++ library support
14496               ld_shlibs_CXX=no
14497             fi
14498             ;;
14499         esac
14500         ;;
14501
14502       hpux10*|hpux11*)
14503         if test $with_gnu_ld = no; then
14504           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14505           hardcode_libdir_separator_CXX=:
14506
14507           case $host_cpu in
14508             hppa*64*|ia64*)
14509               ;;
14510             *)
14511               export_dynamic_flag_spec_CXX='${wl}-E'
14512               ;;
14513           esac
14514         fi
14515         case $host_cpu in
14516           hppa*64*|ia64*)
14517             hardcode_direct_CXX=no
14518             hardcode_shlibpath_var_CXX=no
14519             ;;
14520           *)
14521             hardcode_direct_CXX=yes
14522             hardcode_direct_absolute_CXX=yes
14523             hardcode_minus_L_CXX=yes # Not in the search PATH,
14524                                                  # but as the default
14525                                                  # location of the library.
14526             ;;
14527         esac
14528
14529         case $cc_basename in
14530           CC*)
14531             # FIXME: insert proper C++ library support
14532             ld_shlibs_CXX=no
14533             ;;
14534           aCC*)
14535             case $host_cpu in
14536               hppa*64*)
14537                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14538                 ;;
14539               ia64*)
14540                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14541                 ;;
14542               *)
14543                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14544                 ;;
14545             esac
14546             # Commands to make compiler produce verbose output that lists
14547             # what "hidden" libraries, object files and flags are used when
14548             # linking a shared library.
14549             #
14550             # There doesn't appear to be a way to prevent this compiler from
14551             # explicitly linking system object files so we need to strip them
14552             # from the output so that they don't get included in the library
14553             # dependencies.
14554             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14555             ;;
14556           *)
14557             if test "$GXX" = yes; then
14558               if test $with_gnu_ld = no; then
14559                 case $host_cpu in
14560                   hppa*64*)
14561                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14562                     ;;
14563                   ia64*)
14564                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14565                     ;;
14566                   *)
14567                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14568                     ;;
14569                 esac
14570               fi
14571             else
14572               # FIXME: insert proper C++ library support
14573               ld_shlibs_CXX=no
14574             fi
14575             ;;
14576         esac
14577         ;;
14578
14579       interix[3-9]*)
14580         hardcode_direct_CXX=no
14581         hardcode_shlibpath_var_CXX=no
14582         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14583         export_dynamic_flag_spec_CXX='${wl}-E'
14584         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14585         # Instead, shared libraries are loaded at an image base (0x10000000 by
14586         # default) and relocated if they conflict, which is a slow very memory
14587         # consuming and fragmenting process.  To avoid this, we pick a random,
14588         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14589         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14590         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14591         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14592         ;;
14593       irix5* | irix6*)
14594         case $cc_basename in
14595           CC*)
14596             # SGI C++
14597             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14598
14599             # Archives containing C++ object files must be created using
14600             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14601             # necessary to make sure instantiated templates are included
14602             # in the archive.
14603             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14604             ;;
14605           *)
14606             if test "$GXX" = yes; then
14607               if test "$with_gnu_ld" = no; then
14608                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14609               else
14610                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14611               fi
14612             fi
14613             link_all_deplibs_CXX=yes
14614             ;;
14615         esac
14616         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14617         hardcode_libdir_separator_CXX=:
14618         inherit_rpath_CXX=yes
14619         ;;
14620
14621       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14622         case $cc_basename in
14623           KCC*)
14624             # Kuck and Associates, Inc. (KAI) C++ Compiler
14625
14626             # KCC will only create a shared library if the output file
14627             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14628             # to its proper name (with version) after linking.
14629             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14630             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14631             # Commands to make compiler produce verbose output that lists
14632             # what "hidden" libraries, object files and flags are used when
14633             # linking a shared library.
14634             #
14635             # There doesn't appear to be a way to prevent this compiler from
14636             # explicitly linking system object files so we need to strip them
14637             # from the output so that they don't get included in the library
14638             # dependencies.
14639             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14640
14641             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14642             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14643
14644             # Archives containing C++ object files must be created using
14645             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14646             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14647             ;;
14648           icpc* | ecpc* )
14649             # Intel C++
14650             with_gnu_ld=yes
14651             # version 8.0 and above of icpc choke on multiply defined symbols
14652             # if we add $predep_objects and $postdep_objects, however 7.1 and
14653             # earlier do not add the objects themselves.
14654             case `$CC -V 2>&1` in
14655               *"Version 7."*)
14656                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14658                 ;;
14659               *)  # Version 8.0 or newer
14660                 tmp_idyn=
14661                 case $host_cpu in
14662                   ia64*) tmp_idyn=' -i_dynamic';;
14663                 esac
14664                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14665                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14666                 ;;
14667             esac
14668             archive_cmds_need_lc_CXX=no
14669             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14670             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14671             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14672             ;;
14673           pgCC* | pgcpp*)
14674             # Portland Group C++ compiler
14675             case `$CC -V` in
14676             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14677               prelink_cmds_CXX='tpldir=Template.dir~
14678                 rm -rf $tpldir~
14679                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14680                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14681               old_archive_cmds_CXX='tpldir=Template.dir~
14682                 rm -rf $tpldir~
14683                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14684                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14685                 $RANLIB $oldlib'
14686               archive_cmds_CXX='tpldir=Template.dir~
14687                 rm -rf $tpldir~
14688                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14689                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14690               archive_expsym_cmds_CXX='tpldir=Template.dir~
14691                 rm -rf $tpldir~
14692                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14693                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14694               ;;
14695             *) # Version 6 and above use weak symbols
14696               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14697               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14698               ;;
14699             esac
14700
14701             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14702             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14703             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14704             ;;
14705           cxx*)
14706             # Compaq C++
14707             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14708             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14709
14710             runpath_var=LD_RUN_PATH
14711             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14712             hardcode_libdir_separator_CXX=:
14713
14714             # Commands to make compiler produce verbose output that lists
14715             # what "hidden" libraries, object files and flags are used when
14716             # linking a shared library.
14717             #
14718             # There doesn't appear to be a way to prevent this compiler from
14719             # explicitly linking system object files so we need to strip them
14720             # from the output so that they don't get included in the library
14721             # dependencies.
14722             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14723             ;;
14724           xl* | mpixl* | bgxl*)
14725             # IBM XL 8.0 on PPC, with GNU ld
14726             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14727             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14728             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14729             if test "x$supports_anon_versioning" = xyes; then
14730               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14731                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14732                 echo "local: *; };" >> $output_objdir/$libname.ver~
14733                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14734             fi
14735             ;;
14736           *)
14737             case `$CC -V 2>&1 | sed 5q` in
14738             *Sun\ C*)
14739               # Sun C++ 5.9
14740               no_undefined_flag_CXX=' -zdefs'
14741               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14742               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14743               hardcode_libdir_flag_spec_CXX='-R$libdir'
14744               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14745               compiler_needs_object_CXX=yes
14746
14747               # Not sure whether something based on
14748               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14749               # would be better.
14750               output_verbose_link_cmd='func_echo_all'
14751
14752               # Archives containing C++ object files must be created using
14753               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14754               # necessary to make sure instantiated templates are included
14755               # in the archive.
14756               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14757               ;;
14758             esac
14759             ;;
14760         esac
14761         ;;
14762
14763       lynxos*)
14764         # FIXME: insert proper C++ library support
14765         ld_shlibs_CXX=no
14766         ;;
14767
14768       m88k*)
14769         # FIXME: insert proper C++ library support
14770         ld_shlibs_CXX=no
14771         ;;
14772
14773       mvs*)
14774         case $cc_basename in
14775           cxx*)
14776             # FIXME: insert proper C++ library support
14777             ld_shlibs_CXX=no
14778             ;;
14779           *)
14780             # FIXME: insert proper C++ library support
14781             ld_shlibs_CXX=no
14782             ;;
14783         esac
14784         ;;
14785
14786       netbsd*)
14787         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14788           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14789           wlarc=
14790           hardcode_libdir_flag_spec_CXX='-R$libdir'
14791           hardcode_direct_CXX=yes
14792           hardcode_shlibpath_var_CXX=no
14793         fi
14794         # Workaround some broken pre-1.5 toolchains
14795         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14796         ;;
14797
14798       *nto* | *qnx*)
14799         ld_shlibs_CXX=yes
14800         ;;
14801
14802       openbsd2*)
14803         # C++ shared libraries are fairly broken
14804         ld_shlibs_CXX=no
14805         ;;
14806
14807       openbsd*)
14808         if test -f /usr/libexec/ld.so; then
14809           hardcode_direct_CXX=yes
14810           hardcode_shlibpath_var_CXX=no
14811           hardcode_direct_absolute_CXX=yes
14812           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14813           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14814           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14815             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14816             export_dynamic_flag_spec_CXX='${wl}-E'
14817             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14818           fi
14819           output_verbose_link_cmd=func_echo_all
14820         else
14821           ld_shlibs_CXX=no
14822         fi
14823         ;;
14824
14825       osf3* | osf4* | osf5*)
14826         case $cc_basename in
14827           KCC*)
14828             # Kuck and Associates, Inc. (KAI) C++ Compiler
14829
14830             # KCC will only create a shared library if the output file
14831             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14832             # to its proper name (with version) after linking.
14833             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14834
14835             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14836             hardcode_libdir_separator_CXX=:
14837
14838             # Archives containing C++ object files must be created using
14839             # the KAI C++ compiler.
14840             case $host in
14841               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14842               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14843             esac
14844             ;;
14845           RCC*)
14846             # Rational C++ 2.4.1
14847             # FIXME: insert proper C++ library support
14848             ld_shlibs_CXX=no
14849             ;;
14850           cxx*)
14851             case $host in
14852               osf3*)
14853                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14854                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14855                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14856                 ;;
14857               *)
14858                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14859                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14860                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14861                   echo "-hidden">> $lib.exp~
14862                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14863                   $RM $lib.exp'
14864                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14865                 ;;
14866             esac
14867
14868             hardcode_libdir_separator_CXX=:
14869
14870             # Commands to make compiler produce verbose output that lists
14871             # what "hidden" libraries, object files and flags are used when
14872             # linking a shared library.
14873             #
14874             # There doesn't appear to be a way to prevent this compiler from
14875             # explicitly linking system object files so we need to strip them
14876             # from the output so that they don't get included in the library
14877             # dependencies.
14878             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14879             ;;
14880           *)
14881             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14882               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14883               case $host in
14884                 osf3*)
14885                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14886                   ;;
14887                 *)
14888                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14889                   ;;
14890               esac
14891
14892               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14893               hardcode_libdir_separator_CXX=:
14894
14895               # Commands to make compiler produce verbose output that lists
14896               # what "hidden" libraries, object files and flags are used when
14897               # linking a shared library.
14898               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14899
14900             else
14901               # FIXME: insert proper C++ library support
14902               ld_shlibs_CXX=no
14903             fi
14904             ;;
14905         esac
14906         ;;
14907
14908       psos*)
14909         # FIXME: insert proper C++ library support
14910         ld_shlibs_CXX=no
14911         ;;
14912
14913       sunos4*)
14914         case $cc_basename in
14915           CC*)
14916             # Sun C++ 4.x
14917             # FIXME: insert proper C++ library support
14918             ld_shlibs_CXX=no
14919             ;;
14920           lcc*)
14921             # Lucid
14922             # FIXME: insert proper C++ library support
14923             ld_shlibs_CXX=no
14924             ;;
14925           *)
14926             # FIXME: insert proper C++ library support
14927             ld_shlibs_CXX=no
14928             ;;
14929         esac
14930         ;;
14931
14932       solaris*)
14933         case $cc_basename in
14934           CC* | sunCC*)
14935             # Sun C++ 4.2, 5.x and Centerline C++
14936             archive_cmds_need_lc_CXX=yes
14937             no_undefined_flag_CXX=' -zdefs'
14938             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14939             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14940               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14941
14942             hardcode_libdir_flag_spec_CXX='-R$libdir'
14943             hardcode_shlibpath_var_CXX=no
14944             case $host_os in
14945               solaris2.[0-5] | solaris2.[0-5].*) ;;
14946               *)
14947                 # The compiler driver will combine and reorder linker options,
14948                 # but understands `-z linker_flag'.
14949                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14950                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14951                 ;;
14952             esac
14953             link_all_deplibs_CXX=yes
14954
14955             output_verbose_link_cmd='func_echo_all'
14956
14957             # Archives containing C++ object files must be created using
14958             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14959             # necessary to make sure instantiated templates are included
14960             # in the archive.
14961             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14962             ;;
14963           gcx*)
14964             # Green Hills C++ Compiler
14965             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14966
14967             # The C++ compiler must be used to create the archive.
14968             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14969             ;;
14970           *)
14971             # GNU C++ compiler with Solaris linker
14972             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14973               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14974               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14975                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14976                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14977                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14978
14979                 # Commands to make compiler produce verbose output that lists
14980                 # what "hidden" libraries, object files and flags are used when
14981                 # linking a shared library.
14982                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14983               else
14984                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14985                 # platform.
14986                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14987                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14988                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14989
14990                 # Commands to make compiler produce verbose output that lists
14991                 # what "hidden" libraries, object files and flags are used when
14992                 # linking a shared library.
14993                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14994               fi
14995
14996               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14997               case $host_os in
14998                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14999                 *)
15000                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15001                   ;;
15002               esac
15003             fi
15004             ;;
15005         esac
15006         ;;
15007
15008     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15009       no_undefined_flag_CXX='${wl}-z,text'
15010       archive_cmds_need_lc_CXX=no
15011       hardcode_shlibpath_var_CXX=no
15012       runpath_var='LD_RUN_PATH'
15013
15014       case $cc_basename in
15015         CC*)
15016           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018           ;;
15019         *)
15020           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15022           ;;
15023       esac
15024       ;;
15025
15026       sysv5* | sco3.2v5* | sco5v6*)
15027         # Note: We can NOT use -z defs as we might desire, because we do not
15028         # link with -lc, and that would cause any symbols used from libc to
15029         # always be unresolved, which means just about no library would
15030         # ever link correctly.  If we're not using GNU ld we use -z text
15031         # though, which does catch some bad symbols but isn't as heavy-handed
15032         # as -z defs.
15033         no_undefined_flag_CXX='${wl}-z,text'
15034         allow_undefined_flag_CXX='${wl}-z,nodefs'
15035         archive_cmds_need_lc_CXX=no
15036         hardcode_shlibpath_var_CXX=no
15037         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15038         hardcode_libdir_separator_CXX=':'
15039         link_all_deplibs_CXX=yes
15040         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15041         runpath_var='LD_RUN_PATH'
15042
15043         case $cc_basename in
15044           CC*)
15045             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15048               '"$old_archive_cmds_CXX"
15049             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15050               '"$reload_cmds_CXX"
15051             ;;
15052           *)
15053             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15054             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055             ;;
15056         esac
15057       ;;
15058
15059       tandem*)
15060         case $cc_basename in
15061           NCC*)
15062             # NonStop-UX NCC 3.20
15063             # FIXME: insert proper C++ library support
15064             ld_shlibs_CXX=no
15065             ;;
15066           *)
15067             # FIXME: insert proper C++ library support
15068             ld_shlibs_CXX=no
15069             ;;
15070         esac
15071         ;;
15072
15073       vxworks*)
15074         # FIXME: insert proper C++ library support
15075         ld_shlibs_CXX=no
15076         ;;
15077
15078       *)
15079         # FIXME: insert proper C++ library support
15080         ld_shlibs_CXX=no
15081         ;;
15082     esac
15083
15084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15085 $as_echo "$ld_shlibs_CXX" >&6; }
15086     test "$ld_shlibs_CXX" = no && can_build_shared=no
15087
15088     GCC_CXX="$GXX"
15089     LD_CXX="$LD"
15090
15091     ## CAVEAT EMPTOR:
15092     ## There is no encapsulation within the following macros, do not change
15093     ## the running order or otherwise move them around unless you know exactly
15094     ## what you are doing...
15095     # Dependencies to place before and after the object being linked:
15096 predep_objects_CXX=
15097 postdep_objects_CXX=
15098 predeps_CXX=
15099 postdeps_CXX=
15100 compiler_lib_search_path_CXX=
15101
15102 cat > conftest.$ac_ext <<_LT_EOF
15103 class Foo
15104 {
15105 public:
15106   Foo (void) { a = 0; }
15107 private:
15108   int a;
15109 };
15110 _LT_EOF
15111
15112
15113 _lt_libdeps_save_CFLAGS=$CFLAGS
15114 case "$CC $CFLAGS " in #(
15115 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15116 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15117 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15118 esac
15119
15120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15121   (eval $ac_compile) 2>&5
15122   ac_status=$?
15123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15124   test $ac_status = 0; }; then
15125   # Parse the compiler output and extract the necessary
15126   # objects, libraries and library flags.
15127
15128   # Sentinel used to keep track of whether or not we are before
15129   # the conftest object file.
15130   pre_test_object_deps_done=no
15131
15132   for p in `eval "$output_verbose_link_cmd"`; do
15133     case ${prev}${p} in
15134
15135     -L* | -R* | -l*)
15136        # Some compilers place space between "-{L,R}" and the path.
15137        # Remove the space.
15138        if test $p = "-L" ||
15139           test $p = "-R"; then
15140          prev=$p
15141          continue
15142        fi
15143
15144        # Expand the sysroot to ease extracting the directories later.
15145        if test -z "$prev"; then
15146          case $p in
15147          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15148          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15149          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15150          esac
15151        fi
15152        case $p in
15153        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15154        esac
15155        if test "$pre_test_object_deps_done" = no; then
15156          case ${prev} in
15157          -L | -R)
15158            # Internal compiler library paths should come after those
15159            # provided the user.  The postdeps already come after the
15160            # user supplied libs so there is no need to process them.
15161            if test -z "$compiler_lib_search_path_CXX"; then
15162              compiler_lib_search_path_CXX="${prev}${p}"
15163            else
15164              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15165            fi
15166            ;;
15167          # The "-l" case would never come before the object being
15168          # linked, so don't bother handling this case.
15169          esac
15170        else
15171          if test -z "$postdeps_CXX"; then
15172            postdeps_CXX="${prev}${p}"
15173          else
15174            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15175          fi
15176        fi
15177        prev=
15178        ;;
15179
15180     *.lto.$objext) ;; # Ignore GCC LTO objects
15181     *.$objext)
15182        # This assumes that the test object file only shows up
15183        # once in the compiler output.
15184        if test "$p" = "conftest.$objext"; then
15185          pre_test_object_deps_done=yes
15186          continue
15187        fi
15188
15189        if test "$pre_test_object_deps_done" = no; then
15190          if test -z "$predep_objects_CXX"; then
15191            predep_objects_CXX="$p"
15192          else
15193            predep_objects_CXX="$predep_objects_CXX $p"
15194          fi
15195        else
15196          if test -z "$postdep_objects_CXX"; then
15197            postdep_objects_CXX="$p"
15198          else
15199            postdep_objects_CXX="$postdep_objects_CXX $p"
15200          fi
15201        fi
15202        ;;
15203
15204     *) ;; # Ignore the rest.
15205
15206     esac
15207   done
15208
15209   # Clean up.
15210   rm -f a.out a.exe
15211 else
15212   echo "libtool.m4: error: problem compiling CXX test program"
15213 fi
15214
15215 $RM -f confest.$objext
15216 CFLAGS=$_lt_libdeps_save_CFLAGS
15217
15218 # PORTME: override above test on systems where it is broken
15219 case $host_os in
15220 interix[3-9]*)
15221   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15222   # hack all around it, let's just trust "g++" to DTRT.
15223   predep_objects_CXX=
15224   postdep_objects_CXX=
15225   postdeps_CXX=
15226   ;;
15227
15228 linux*)
15229   case `$CC -V 2>&1 | sed 5q` in
15230   *Sun\ C*)
15231     # Sun C++ 5.9
15232
15233     # The more standards-conforming stlport4 library is
15234     # incompatible with the Cstd library. Avoid specifying
15235     # it if it's in CXXFLAGS. Ignore libCrun as
15236     # -library=stlport4 depends on it.
15237     case " $CXX $CXXFLAGS " in
15238     *" -library=stlport4 "*)
15239       solaris_use_stlport4=yes
15240       ;;
15241     esac
15242
15243     if test "$solaris_use_stlport4" != yes; then
15244       postdeps_CXX='-library=Cstd -library=Crun'
15245     fi
15246     ;;
15247   esac
15248   ;;
15249
15250 solaris*)
15251   case $cc_basename in
15252   CC* | sunCC*)
15253     # The more standards-conforming stlport4 library is
15254     # incompatible with the Cstd library. Avoid specifying
15255     # it if it's in CXXFLAGS. Ignore libCrun as
15256     # -library=stlport4 depends on it.
15257     case " $CXX $CXXFLAGS " in
15258     *" -library=stlport4 "*)
15259       solaris_use_stlport4=yes
15260       ;;
15261     esac
15262
15263     # Adding this requires a known-good setup of shared libraries for
15264     # Sun compiler versions before 5.6, else PIC objects from an old
15265     # archive will be linked into the output, leading to subtle bugs.
15266     if test "$solaris_use_stlport4" != yes; then
15267       postdeps_CXX='-library=Cstd -library=Crun'
15268     fi
15269     ;;
15270   esac
15271   ;;
15272 esac
15273
15274
15275 case " $postdeps_CXX " in
15276 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15277 esac
15278  compiler_lib_search_dirs_CXX=
15279 if test -n "${compiler_lib_search_path_CXX}"; then
15280  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15281 fi
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313     lt_prog_compiler_wl_CXX=
15314 lt_prog_compiler_pic_CXX=
15315 lt_prog_compiler_static_CXX=
15316
15317
15318   # C++ specific cases for pic, static, wl, etc.
15319   if test "$GXX" = yes; then
15320     lt_prog_compiler_wl_CXX='-Wl,'
15321     lt_prog_compiler_static_CXX='-static'
15322
15323     case $host_os in
15324     aix*)
15325       # All AIX code is PIC.
15326       if test "$host_cpu" = ia64; then
15327         # AIX 5 now supports IA64 processor
15328         lt_prog_compiler_static_CXX='-Bstatic'
15329       fi
15330       ;;
15331
15332     amigaos*)
15333       case $host_cpu in
15334       powerpc)
15335             # see comment about AmigaOS4 .so support
15336             lt_prog_compiler_pic_CXX='-fPIC'
15337         ;;
15338       m68k)
15339             # FIXME: we need at least 68020 code to build shared libraries, but
15340             # adding the `-m68020' flag to GCC prevents building anything better,
15341             # like `-m68040'.
15342             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15343         ;;
15344       esac
15345       ;;
15346
15347     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15348       # PIC is the default for these OSes.
15349       ;;
15350     mingw* | cygwin* | os2* | pw32* | cegcc*)
15351       # This hack is so that the source file can tell whether it is being
15352       # built for inclusion in a dll (and should export symbols for example).
15353       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15354       # (--disable-auto-import) libraries
15355       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15356       ;;
15357     darwin* | rhapsody*)
15358       # PIC is the default on this platform
15359       # Common symbols not allowed in MH_DYLIB files
15360       lt_prog_compiler_pic_CXX='-fno-common'
15361       ;;
15362     *djgpp*)
15363       # DJGPP does not support shared libraries at all
15364       lt_prog_compiler_pic_CXX=
15365       ;;
15366     haiku*)
15367       # PIC is the default for Haiku.
15368       # The "-static" flag exists, but is broken.
15369       lt_prog_compiler_static_CXX=
15370       ;;
15371     interix[3-9]*)
15372       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15373       # Instead, we relocate shared libraries at runtime.
15374       ;;
15375     sysv4*MP*)
15376       if test -d /usr/nec; then
15377         lt_prog_compiler_pic_CXX=-Kconform_pic
15378       fi
15379       ;;
15380     hpux*)
15381       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15382       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15383       # sets the default TLS model and affects inlining.
15384       case $host_cpu in
15385       hppa*64*)
15386         ;;
15387       *)
15388         lt_prog_compiler_pic_CXX='-fPIC'
15389         ;;
15390       esac
15391       ;;
15392     *qnx* | *nto*)
15393       # QNX uses GNU C++, but need to define -shared option too, otherwise
15394       # it will coredump.
15395       lt_prog_compiler_pic_CXX='-fPIC -shared'
15396       ;;
15397     *)
15398       lt_prog_compiler_pic_CXX='-fPIC'
15399       ;;
15400     esac
15401   else
15402     case $host_os in
15403       aix[4-9]*)
15404         # All AIX code is PIC.
15405         if test "$host_cpu" = ia64; then
15406           # AIX 5 now supports IA64 processor
15407           lt_prog_compiler_static_CXX='-Bstatic'
15408         else
15409           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15410         fi
15411         ;;
15412       chorus*)
15413         case $cc_basename in
15414         cxch68*)
15415           # Green Hills C++ Compiler
15416           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15417           ;;
15418         esac
15419         ;;
15420       mingw* | cygwin* | os2* | pw32* | cegcc*)
15421         # This hack is so that the source file can tell whether it is being
15422         # built for inclusion in a dll (and should export symbols for example).
15423         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15424         ;;
15425       dgux*)
15426         case $cc_basename in
15427           ec++*)
15428             lt_prog_compiler_pic_CXX='-KPIC'
15429             ;;
15430           ghcx*)
15431             # Green Hills C++ Compiler
15432             lt_prog_compiler_pic_CXX='-pic'
15433             ;;
15434           *)
15435             ;;
15436         esac
15437         ;;
15438       freebsd* | dragonfly*)
15439         # FreeBSD uses GNU C++
15440         ;;
15441       hpux9* | hpux10* | hpux11*)
15442         case $cc_basename in
15443           CC*)
15444             lt_prog_compiler_wl_CXX='-Wl,'
15445             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15446             if test "$host_cpu" != ia64; then
15447               lt_prog_compiler_pic_CXX='+Z'
15448             fi
15449             ;;
15450           aCC*)
15451             lt_prog_compiler_wl_CXX='-Wl,'
15452             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15453             case $host_cpu in
15454             hppa*64*|ia64*)
15455               # +Z the default
15456               ;;
15457             *)
15458               lt_prog_compiler_pic_CXX='+Z'
15459               ;;
15460             esac
15461             ;;
15462           *)
15463             ;;
15464         esac
15465         ;;
15466       interix*)
15467         # This is c89, which is MS Visual C++ (no shared libs)
15468         # Anyone wants to do a port?
15469         ;;
15470       irix5* | irix6* | nonstopux*)
15471         case $cc_basename in
15472           CC*)
15473             lt_prog_compiler_wl_CXX='-Wl,'
15474             lt_prog_compiler_static_CXX='-non_shared'
15475             # CC pic flag -KPIC is the default.
15476             ;;
15477           *)
15478             ;;
15479         esac
15480         ;;
15481       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15482         case $cc_basename in
15483           KCC*)
15484             # KAI C++ Compiler
15485             lt_prog_compiler_wl_CXX='--backend -Wl,'
15486             lt_prog_compiler_pic_CXX='-fPIC'
15487             ;;
15488           ecpc* )
15489             # old Intel C++ for x86_64 which still supported -KPIC.
15490             lt_prog_compiler_wl_CXX='-Wl,'
15491             lt_prog_compiler_pic_CXX='-KPIC'
15492             lt_prog_compiler_static_CXX='-static'
15493             ;;
15494           icpc* )
15495             # Intel C++, used to be incompatible with GCC.
15496             # ICC 10 doesn't accept -KPIC any more.
15497             lt_prog_compiler_wl_CXX='-Wl,'
15498             lt_prog_compiler_pic_CXX='-fPIC'
15499             lt_prog_compiler_static_CXX='-static'
15500             ;;
15501           pgCC* | pgcpp*)
15502             # Portland Group C++ compiler
15503             lt_prog_compiler_wl_CXX='-Wl,'
15504             lt_prog_compiler_pic_CXX='-fpic'
15505             lt_prog_compiler_static_CXX='-Bstatic'
15506             ;;
15507           cxx*)
15508             # Compaq C++
15509             # Make sure the PIC flag is empty.  It appears that all Alpha
15510             # Linux and Compaq Tru64 Unix objects are PIC.
15511             lt_prog_compiler_pic_CXX=
15512             lt_prog_compiler_static_CXX='-non_shared'
15513             ;;
15514           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15515             # IBM XL 8.0, 9.0 on PPC and BlueGene
15516             lt_prog_compiler_wl_CXX='-Wl,'
15517             lt_prog_compiler_pic_CXX='-qpic'
15518             lt_prog_compiler_static_CXX='-qstaticlink'
15519             ;;
15520           *)
15521             case `$CC -V 2>&1 | sed 5q` in
15522             *Sun\ C*)
15523               # Sun C++ 5.9
15524               lt_prog_compiler_pic_CXX='-KPIC'
15525               lt_prog_compiler_static_CXX='-Bstatic'
15526               lt_prog_compiler_wl_CXX='-Qoption ld '
15527               ;;
15528             esac
15529             ;;
15530         esac
15531         ;;
15532       lynxos*)
15533         ;;
15534       m88k*)
15535         ;;
15536       mvs*)
15537         case $cc_basename in
15538           cxx*)
15539             lt_prog_compiler_pic_CXX='-W c,exportall'
15540             ;;
15541           *)
15542             ;;
15543         esac
15544         ;;
15545       netbsd* | netbsdelf*-gnu)
15546         ;;
15547       *qnx* | *nto*)
15548         # QNX uses GNU C++, but need to define -shared option too, otherwise
15549         # it will coredump.
15550         lt_prog_compiler_pic_CXX='-fPIC -shared'
15551         ;;
15552       osf3* | osf4* | osf5*)
15553         case $cc_basename in
15554           KCC*)
15555             lt_prog_compiler_wl_CXX='--backend -Wl,'
15556             ;;
15557           RCC*)
15558             # Rational C++ 2.4.1
15559             lt_prog_compiler_pic_CXX='-pic'
15560             ;;
15561           cxx*)
15562             # Digital/Compaq C++
15563             lt_prog_compiler_wl_CXX='-Wl,'
15564             # Make sure the PIC flag is empty.  It appears that all Alpha
15565             # Linux and Compaq Tru64 Unix objects are PIC.
15566             lt_prog_compiler_pic_CXX=
15567             lt_prog_compiler_static_CXX='-non_shared'
15568             ;;
15569           *)
15570             ;;
15571         esac
15572         ;;
15573       psos*)
15574         ;;
15575       solaris*)
15576         case $cc_basename in
15577           CC* | sunCC*)
15578             # Sun C++ 4.2, 5.x and Centerline C++
15579             lt_prog_compiler_pic_CXX='-KPIC'
15580             lt_prog_compiler_static_CXX='-Bstatic'
15581             lt_prog_compiler_wl_CXX='-Qoption ld '
15582             ;;
15583           gcx*)
15584             # Green Hills C++ Compiler
15585             lt_prog_compiler_pic_CXX='-PIC'
15586             ;;
15587           *)
15588             ;;
15589         esac
15590         ;;
15591       sunos4*)
15592         case $cc_basename in
15593           CC*)
15594             # Sun C++ 4.x
15595             lt_prog_compiler_pic_CXX='-pic'
15596             lt_prog_compiler_static_CXX='-Bstatic'
15597             ;;
15598           lcc*)
15599             # Lucid
15600             lt_prog_compiler_pic_CXX='-pic'
15601             ;;
15602           *)
15603             ;;
15604         esac
15605         ;;
15606       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15607         case $cc_basename in
15608           CC*)
15609             lt_prog_compiler_wl_CXX='-Wl,'
15610             lt_prog_compiler_pic_CXX='-KPIC'
15611             lt_prog_compiler_static_CXX='-Bstatic'
15612             ;;
15613         esac
15614         ;;
15615       tandem*)
15616         case $cc_basename in
15617           NCC*)
15618             # NonStop-UX NCC 3.20
15619             lt_prog_compiler_pic_CXX='-KPIC'
15620             ;;
15621           *)
15622             ;;
15623         esac
15624         ;;
15625       vxworks*)
15626         ;;
15627       *)
15628         lt_prog_compiler_can_build_shared_CXX=no
15629         ;;
15630     esac
15631   fi
15632
15633 case $host_os in
15634   # For platforms which do not support PIC, -DPIC is meaningless:
15635   *djgpp*)
15636     lt_prog_compiler_pic_CXX=
15637     ;;
15638   *)
15639     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15640     ;;
15641 esac
15642
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15644 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15645 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15646   $as_echo_n "(cached) " >&6
15647 else
15648   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15651 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15652 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15653
15654 #
15655 # Check to make sure the PIC flag actually works.
15656 #
15657 if test -n "$lt_prog_compiler_pic_CXX"; then
15658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15660 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15661   $as_echo_n "(cached) " >&6
15662 else
15663   lt_cv_prog_compiler_pic_works_CXX=no
15664    ac_outfile=conftest.$ac_objext
15665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15666    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15667    # Insert the option either (1) after the last *FLAGS variable, or
15668    # (2) before a word containing "conftest.", or (3) at the end.
15669    # Note that $ac_compile itself does not contain backslashes and begins
15670    # with a dollar sign (not a hyphen), so the echo should work correctly.
15671    # The option is referenced via a variable to avoid confusing sed.
15672    lt_compile=`echo "$ac_compile" | $SED \
15673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15675    -e 's:$: $lt_compiler_flag:'`
15676    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15677    (eval "$lt_compile" 2>conftest.err)
15678    ac_status=$?
15679    cat conftest.err >&5
15680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681    if (exit $ac_status) && test -s "$ac_outfile"; then
15682      # The compiler can only warn and ignore the option if not recognized
15683      # So say no if there are warnings other than the usual output.
15684      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15687        lt_cv_prog_compiler_pic_works_CXX=yes
15688      fi
15689    fi
15690    $RM conftest*
15691
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15694 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15695
15696 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15697     case $lt_prog_compiler_pic_CXX in
15698      "" | " "*) ;;
15699      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15700      esac
15701 else
15702     lt_prog_compiler_pic_CXX=
15703      lt_prog_compiler_can_build_shared_CXX=no
15704 fi
15705
15706 fi
15707
15708
15709
15710
15711
15712 #
15713 # Check to make sure the static flag actually works.
15714 #
15715 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15718 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15719   $as_echo_n "(cached) " >&6
15720 else
15721   lt_cv_prog_compiler_static_works_CXX=no
15722    save_LDFLAGS="$LDFLAGS"
15723    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15724    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15725    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15726      # The linker can only warn and ignore the option if not recognized
15727      # So say no if there are warnings
15728      if test -s conftest.err; then
15729        # Append any errors to the config.log.
15730        cat conftest.err 1>&5
15731        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15732        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15733        if diff conftest.exp conftest.er2 >/dev/null; then
15734          lt_cv_prog_compiler_static_works_CXX=yes
15735        fi
15736      else
15737        lt_cv_prog_compiler_static_works_CXX=yes
15738      fi
15739    fi
15740    $RM -r conftest*
15741    LDFLAGS="$save_LDFLAGS"
15742
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15745 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15746
15747 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15748     :
15749 else
15750     lt_prog_compiler_static_CXX=
15751 fi
15752
15753
15754
15755
15756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15758 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15759   $as_echo_n "(cached) " >&6
15760 else
15761   lt_cv_prog_compiler_c_o_CXX=no
15762    $RM -r conftest 2>/dev/null
15763    mkdir conftest
15764    cd conftest
15765    mkdir out
15766    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15767
15768    lt_compiler_flag="-o out/conftest2.$ac_objext"
15769    # Insert the option either (1) after the last *FLAGS variable, or
15770    # (2) before a word containing "conftest.", or (3) at the end.
15771    # Note that $ac_compile itself does not contain backslashes and begins
15772    # with a dollar sign (not a hyphen), so the echo should work correctly.
15773    lt_compile=`echo "$ac_compile" | $SED \
15774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776    -e 's:$: $lt_compiler_flag:'`
15777    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15778    (eval "$lt_compile" 2>out/conftest.err)
15779    ac_status=$?
15780    cat out/conftest.err >&5
15781    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15783    then
15784      # The compiler can only warn and ignore the option if not recognized
15785      # So say no if there are warnings
15786      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15787      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15788      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15789        lt_cv_prog_compiler_c_o_CXX=yes
15790      fi
15791    fi
15792    chmod u+w . 2>&5
15793    $RM conftest*
15794    # SGI C++ compiler will create directory out/ii_files/ for
15795    # template instantiation
15796    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15797    $RM out/* && rmdir out
15798    cd ..
15799    $RM -r conftest
15800    $RM conftest*
15801
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15804 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15805
15806
15807
15808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15810 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15811   $as_echo_n "(cached) " >&6
15812 else
15813   lt_cv_prog_compiler_c_o_CXX=no
15814    $RM -r conftest 2>/dev/null
15815    mkdir conftest
15816    cd conftest
15817    mkdir out
15818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
15820    lt_compiler_flag="-o out/conftest2.$ac_objext"
15821    # Insert the option either (1) after the last *FLAGS variable, or
15822    # (2) before a word containing "conftest.", or (3) at the end.
15823    # Note that $ac_compile itself does not contain backslashes and begins
15824    # with a dollar sign (not a hyphen), so the echo should work correctly.
15825    lt_compile=`echo "$ac_compile" | $SED \
15826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15828    -e 's:$: $lt_compiler_flag:'`
15829    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15830    (eval "$lt_compile" 2>out/conftest.err)
15831    ac_status=$?
15832    cat out/conftest.err >&5
15833    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15835    then
15836      # The compiler can only warn and ignore the option if not recognized
15837      # So say no if there are warnings
15838      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15839      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15840      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15841        lt_cv_prog_compiler_c_o_CXX=yes
15842      fi
15843    fi
15844    chmod u+w . 2>&5
15845    $RM conftest*
15846    # SGI C++ compiler will create directory out/ii_files/ for
15847    # template instantiation
15848    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15849    $RM out/* && rmdir out
15850    cd ..
15851    $RM -r conftest
15852    $RM conftest*
15853
15854 fi
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15856 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15857
15858
15859
15860
15861 hard_links="nottested"
15862 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15863   # do not overwrite the value of need_locks provided by the user
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15865 $as_echo_n "checking if we can lock with hard links... " >&6; }
15866   hard_links=yes
15867   $RM conftest*
15868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15869   touch conftest.a
15870   ln conftest.a conftest.b 2>&5 || hard_links=no
15871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15873 $as_echo "$hard_links" >&6; }
15874   if test "$hard_links" = no; then
15875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15876 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15877     need_locks=warn
15878   fi
15879 else
15880   need_locks=no
15881 fi
15882
15883
15884
15885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15887
15888   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15889   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15890   case $host_os in
15891   aix[4-9]*)
15892     # If we're using GNU nm, then we don't want the "-C" option.
15893     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15894     # Also, AIX nm treats weak defined symbols like other global defined
15895     # symbols, whereas GNU nm marks them as "W".
15896     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15897       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15898     else
15899       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15900     fi
15901     ;;
15902   pw32*)
15903     export_symbols_cmds_CXX="$ltdll_cmds"
15904     ;;
15905   cygwin* | mingw* | cegcc*)
15906     case $cc_basename in
15907     cl*)
15908       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15909       ;;
15910     *)
15911       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15912       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15913       ;;
15914     esac
15915     ;;
15916   linux* | k*bsd*-gnu | gnu*)
15917     link_all_deplibs_CXX=no
15918     ;;
15919   *)
15920     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15921     ;;
15922   esac
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15925 $as_echo "$ld_shlibs_CXX" >&6; }
15926 test "$ld_shlibs_CXX" = no && can_build_shared=no
15927
15928 with_gnu_ld_CXX=$with_gnu_ld
15929
15930
15931
15932
15933
15934
15935 #
15936 # Do we need to explicitly link libc?
15937 #
15938 case "x$archive_cmds_need_lc_CXX" in
15939 x|xyes)
15940   # Assume -lc should be added
15941   archive_cmds_need_lc_CXX=yes
15942
15943   if test "$enable_shared" = yes && test "$GCC" = yes; then
15944     case $archive_cmds_CXX in
15945     *'~'*)
15946       # FIXME: we may have to deal with multi-command sequences.
15947       ;;
15948     '$CC '*)
15949       # Test whether the compiler implicitly links with -lc since on some
15950       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15951       # to ld, don't add -lc before -lgcc.
15952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15953 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15954 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15955   $as_echo_n "(cached) " >&6
15956 else
15957   $RM conftest*
15958         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15959
15960         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15961   (eval $ac_compile) 2>&5
15962   ac_status=$?
15963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964   test $ac_status = 0; } 2>conftest.err; then
15965           soname=conftest
15966           lib=conftest
15967           libobjs=conftest.$ac_objext
15968           deplibs=
15969           wl=$lt_prog_compiler_wl_CXX
15970           pic_flag=$lt_prog_compiler_pic_CXX
15971           compiler_flags=-v
15972           linker_flags=-v
15973           verstring=
15974           output_objdir=.
15975           libname=conftest
15976           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15977           allow_undefined_flag_CXX=
15978           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15979   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15980   ac_status=$?
15981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982   test $ac_status = 0; }
15983           then
15984             lt_cv_archive_cmds_need_lc_CXX=no
15985           else
15986             lt_cv_archive_cmds_need_lc_CXX=yes
15987           fi
15988           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15989         else
15990           cat conftest.err 1>&5
15991         fi
15992         $RM conftest*
15993
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15996 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15997       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15998       ;;
15999     esac
16000   fi
16001   ;;
16002 esac
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16067
16068 library_names_spec=
16069 libname_spec='lib$name'
16070 soname_spec=
16071 shrext_cmds=".so"
16072 postinstall_cmds=
16073 postuninstall_cmds=
16074 finish_cmds=
16075 finish_eval=
16076 shlibpath_var=
16077 shlibpath_overrides_runpath=unknown
16078 version_type=none
16079 dynamic_linker="$host_os ld.so"
16080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16081 need_lib_prefix=unknown
16082 hardcode_into_libs=no
16083
16084 # when you set need_version to no, make sure it does not cause -set_version
16085 # flags to be left without arguments
16086 need_version=unknown
16087
16088 case $host_os in
16089 aix3*)
16090   version_type=linux # correct to gnu/linux during the next big refactor
16091   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16092   shlibpath_var=LIBPATH
16093
16094   # AIX 3 has no versioning support, so we append a major version to the name.
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   ;;
16097
16098 aix[4-9]*)
16099   version_type=linux # correct to gnu/linux during the next big refactor
16100   need_lib_prefix=no
16101   need_version=no
16102   hardcode_into_libs=yes
16103   if test "$host_cpu" = ia64; then
16104     # AIX 5 supports IA64
16105     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16106     shlibpath_var=LD_LIBRARY_PATH
16107   else
16108     # With GCC up to 2.95.x, collect2 would create an import file
16109     # for dependence libraries.  The import file would start with
16110     # the line `#! .'.  This would cause the generated library to
16111     # depend on `.', always an invalid library.  This was fixed in
16112     # development snapshots of GCC prior to 3.0.
16113     case $host_os in
16114       aix4 | aix4.[01] | aix4.[01].*)
16115       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16116            echo ' yes '
16117            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16118         :
16119       else
16120         can_build_shared=no
16121       fi
16122       ;;
16123     esac
16124     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16125     # soname into executable. Probably we can add versioning support to
16126     # collect2, so additional links can be useful in future.
16127     if test "$aix_use_runtimelinking" = yes; then
16128       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16129       # instead of lib<name>.a to let people know that these are not
16130       # typical AIX shared libraries.
16131       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132     else
16133       # We preserve .a as extension for shared libraries through AIX4.2
16134       # and later when we are not doing run time linking.
16135       library_names_spec='${libname}${release}.a $libname.a'
16136       soname_spec='${libname}${release}${shared_ext}$major'
16137     fi
16138     shlibpath_var=LIBPATH
16139   fi
16140   ;;
16141
16142 amigaos*)
16143   case $host_cpu in
16144   powerpc)
16145     # Since July 2007 AmigaOS4 officially supports .so libraries.
16146     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148     ;;
16149   m68k)
16150     library_names_spec='$libname.ixlibrary $libname.a'
16151     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16152     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'
16153     ;;
16154   esac
16155   ;;
16156
16157 beos*)
16158   library_names_spec='${libname}${shared_ext}'
16159   dynamic_linker="$host_os ld.so"
16160   shlibpath_var=LIBRARY_PATH
16161   ;;
16162
16163 bsdi[45]*)
16164   version_type=linux # correct to gnu/linux during the next big refactor
16165   need_version=no
16166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167   soname_spec='${libname}${release}${shared_ext}$major'
16168   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16169   shlibpath_var=LD_LIBRARY_PATH
16170   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16171   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16172   # the default ld.so.conf also contains /usr/contrib/lib and
16173   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16174   # libtool to hard-code these into programs
16175   ;;
16176
16177 cygwin* | mingw* | pw32* | cegcc*)
16178   version_type=windows
16179   shrext_cmds=".dll"
16180   need_version=no
16181   need_lib_prefix=no
16182
16183   case $GCC,$cc_basename in
16184   yes,*)
16185     # gcc
16186     library_names_spec='$libname.dll.a'
16187     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16188     postinstall_cmds='base_file=`basename \${file}`~
16189       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16190       dldir=$destdir/`dirname \$dlpath`~
16191       test -d \$dldir || mkdir -p \$dldir~
16192       $install_prog $dir/$dlname \$dldir/$dlname~
16193       chmod a+x \$dldir/$dlname~
16194       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16195         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16196       fi'
16197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16198       dlpath=$dir/\$dldll~
16199        $RM \$dlpath'
16200     shlibpath_overrides_runpath=yes
16201
16202     case $host_os in
16203     cygwin*)
16204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16206
16207       ;;
16208     mingw* | cegcc*)
16209       # MinGW DLLs use traditional 'lib' prefix
16210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16211       ;;
16212     pw32*)
16213       # pw32 DLLs use 'pw' prefix rather than 'lib'
16214       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16215       ;;
16216     esac
16217     dynamic_linker='Win32 ld.exe'
16218     ;;
16219
16220   *,cl*)
16221     # Native MSVC
16222     libname_spec='$name'
16223     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16224     library_names_spec='${libname}.dll.lib'
16225
16226     case $build_os in
16227     mingw*)
16228       sys_lib_search_path_spec=
16229       lt_save_ifs=$IFS
16230       IFS=';'
16231       for lt_path in $LIB
16232       do
16233         IFS=$lt_save_ifs
16234         # Let DOS variable expansion print the short 8.3 style file name.
16235         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16236         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16237       done
16238       IFS=$lt_save_ifs
16239       # Convert to MSYS style.
16240       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16241       ;;
16242     cygwin*)
16243       # Convert to unix form, then to dos form, then back to unix form
16244       # but this time dos style (no spaces!) so that the unix form looks
16245       # like /cygdrive/c/PROGRA~1:/cygdr...
16246       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16247       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16248       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16249       ;;
16250     *)
16251       sys_lib_search_path_spec="$LIB"
16252       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16253         # It is most probably a Windows format PATH.
16254         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16255       else
16256         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16257       fi
16258       # FIXME: find the short name or the path components, as spaces are
16259       # common. (e.g. "Program Files" -> "PROGRA~1")
16260       ;;
16261     esac
16262
16263     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16264     postinstall_cmds='base_file=`basename \${file}`~
16265       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16266       dldir=$destdir/`dirname \$dlpath`~
16267       test -d \$dldir || mkdir -p \$dldir~
16268       $install_prog $dir/$dlname \$dldir/$dlname'
16269     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16270       dlpath=$dir/\$dldll~
16271        $RM \$dlpath'
16272     shlibpath_overrides_runpath=yes
16273     dynamic_linker='Win32 link.exe'
16274     ;;
16275
16276   *)
16277     # Assume MSVC wrapper
16278     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16279     dynamic_linker='Win32 ld.exe'
16280     ;;
16281   esac
16282   # FIXME: first we should search . and the directory the executable is in
16283   shlibpath_var=PATH
16284   ;;
16285
16286 darwin* | rhapsody*)
16287   dynamic_linker="$host_os dyld"
16288   version_type=darwin
16289   need_lib_prefix=no
16290   need_version=no
16291   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16292   soname_spec='${libname}${release}${major}$shared_ext'
16293   shlibpath_overrides_runpath=yes
16294   shlibpath_var=DYLD_LIBRARY_PATH
16295   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16296
16297   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16298   ;;
16299
16300 dgux*)
16301   version_type=linux # correct to gnu/linux during the next big refactor
16302   need_lib_prefix=no
16303   need_version=no
16304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16305   soname_spec='${libname}${release}${shared_ext}$major'
16306   shlibpath_var=LD_LIBRARY_PATH
16307   ;;
16308
16309 freebsd* | dragonfly*)
16310   # DragonFly does not have aout.  When/if they implement a new
16311   # versioning mechanism, adjust this.
16312   if test -x /usr/bin/objformat; then
16313     objformat=`/usr/bin/objformat`
16314   else
16315     case $host_os in
16316     freebsd[23].*) objformat=aout ;;
16317     *) objformat=elf ;;
16318     esac
16319   fi
16320   version_type=freebsd-$objformat
16321   case $version_type in
16322     freebsd-elf*)
16323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16324       need_version=no
16325       need_lib_prefix=no
16326       ;;
16327     freebsd-*)
16328       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16329       need_version=yes
16330       ;;
16331   esac
16332   shlibpath_var=LD_LIBRARY_PATH
16333   case $host_os in
16334   freebsd2.*)
16335     shlibpath_overrides_runpath=yes
16336     ;;
16337   freebsd3.[01]* | freebsdelf3.[01]*)
16338     shlibpath_overrides_runpath=yes
16339     hardcode_into_libs=yes
16340     ;;
16341   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16342   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16343     shlibpath_overrides_runpath=no
16344     hardcode_into_libs=yes
16345     ;;
16346   *) # from 4.6 on, and DragonFly
16347     shlibpath_overrides_runpath=yes
16348     hardcode_into_libs=yes
16349     ;;
16350   esac
16351   ;;
16352
16353 gnu*)
16354   version_type=linux # correct to gnu/linux during the next big refactor
16355   need_lib_prefix=no
16356   need_version=no
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   shlibpath_overrides_runpath=no
16361   hardcode_into_libs=yes
16362   ;;
16363
16364 haiku*)
16365   version_type=linux # correct to gnu/linux during the next big refactor
16366   need_lib_prefix=no
16367   need_version=no
16368   dynamic_linker="$host_os runtime_loader"
16369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16370   soname_spec='${libname}${release}${shared_ext}$major'
16371   shlibpath_var=LIBRARY_PATH
16372   shlibpath_overrides_runpath=yes
16373   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16374   hardcode_into_libs=yes
16375   ;;
16376
16377 hpux9* | hpux10* | hpux11*)
16378   # Give a soname corresponding to the major version so that dld.sl refuses to
16379   # link against other versions.
16380   version_type=sunos
16381   need_lib_prefix=no
16382   need_version=no
16383   case $host_cpu in
16384   ia64*)
16385     shrext_cmds='.so'
16386     hardcode_into_libs=yes
16387     dynamic_linker="$host_os dld.so"
16388     shlibpath_var=LD_LIBRARY_PATH
16389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391     soname_spec='${libname}${release}${shared_ext}$major'
16392     if test "X$HPUX_IA64_MODE" = X32; then
16393       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16394     else
16395       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16396     fi
16397     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16398     ;;
16399   hppa*64*)
16400     shrext_cmds='.sl'
16401     hardcode_into_libs=yes
16402     dynamic_linker="$host_os dld.sl"
16403     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406     soname_spec='${libname}${release}${shared_ext}$major'
16407     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16409     ;;
16410   *)
16411     shrext_cmds='.sl'
16412     dynamic_linker="$host_os dld.sl"
16413     shlibpath_var=SHLIB_PATH
16414     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416     soname_spec='${libname}${release}${shared_ext}$major'
16417     ;;
16418   esac
16419   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16420   postinstall_cmds='chmod 555 $lib'
16421   # or fails outright, so override atomically:
16422   install_override_mode=555
16423   ;;
16424
16425 interix[3-9]*)
16426   version_type=linux # correct to gnu/linux during the next big refactor
16427   need_lib_prefix=no
16428   need_version=no
16429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16430   soname_spec='${libname}${release}${shared_ext}$major'
16431   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   shlibpath_overrides_runpath=no
16434   hardcode_into_libs=yes
16435   ;;
16436
16437 irix5* | irix6* | nonstopux*)
16438   case $host_os in
16439     nonstopux*) version_type=nonstopux ;;
16440     *)
16441         if test "$lt_cv_prog_gnu_ld" = yes; then
16442                 version_type=linux # correct to gnu/linux during the next big refactor
16443         else
16444                 version_type=irix
16445         fi ;;
16446   esac
16447   need_lib_prefix=no
16448   need_version=no
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16451   case $host_os in
16452   irix5* | nonstopux*)
16453     libsuff= shlibsuff=
16454     ;;
16455   *)
16456     case $LD in # libtool.m4 will add one of these switches to LD
16457     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16458       libsuff= shlibsuff= libmagic=32-bit;;
16459     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16460       libsuff=32 shlibsuff=N32 libmagic=N32;;
16461     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16462       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16463     *) libsuff= shlibsuff= libmagic=never-match;;
16464     esac
16465     ;;
16466   esac
16467   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16468   shlibpath_overrides_runpath=no
16469   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16470   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16471   hardcode_into_libs=yes
16472   ;;
16473
16474 # No shared lib support for Linux oldld, aout, or coff.
16475 linux*oldld* | linux*aout* | linux*coff*)
16476   dynamic_linker=no
16477   ;;
16478
16479 # This must be glibc/ELF.
16480 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16481   version_type=linux # correct to gnu/linux during the next big refactor
16482   need_lib_prefix=no
16483   need_version=no
16484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485   soname_spec='${libname}${release}${shared_ext}$major'
16486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16487   shlibpath_var=LD_LIBRARY_PATH
16488   shlibpath_overrides_runpath=no
16489
16490   # Some binutils ld are patched to set DT_RUNPATH
16491   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   lt_cv_shlibpath_overrides_runpath=no
16495     save_LDFLAGS=$LDFLAGS
16496     save_libdir=$libdir
16497     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16498          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 int
16503 main ()
16504 {
16505
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_cxx_try_link "$LINENO"; then :
16511   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16512   lt_cv_shlibpath_overrides_runpath=yes
16513 fi
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext \
16516     conftest$ac_exeext conftest.$ac_ext
16517     LDFLAGS=$save_LDFLAGS
16518     libdir=$save_libdir
16519
16520 fi
16521
16522   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16523
16524   # This implies no fast_install, which is unacceptable.
16525   # Some rework will be needed to allow for fast_install
16526   # before this can be enabled.
16527   hardcode_into_libs=yes
16528
16529   # Append ld.so.conf contents to the search path
16530   if test -f /etc/ld.so.conf; then
16531     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' ' '`
16532     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16533   fi
16534
16535   # We used to test for /lib/ld.so.1 and disable shared libraries on
16536   # powerpc, because MkLinux only supported shared libraries with the
16537   # GNU dynamic linker.  Since this was broken with cross compilers,
16538   # most powerpc-linux boxes support dynamic linking these days and
16539   # people can always --disable-shared, the test was removed, and we
16540   # assume the GNU/Linux dynamic linker is in use.
16541   dynamic_linker='GNU/Linux ld.so'
16542   ;;
16543
16544 netbsdelf*-gnu)
16545   version_type=linux
16546   need_lib_prefix=no
16547   need_version=no
16548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16549   soname_spec='${libname}${release}${shared_ext}$major'
16550   shlibpath_var=LD_LIBRARY_PATH
16551   shlibpath_overrides_runpath=no
16552   hardcode_into_libs=yes
16553   dynamic_linker='NetBSD ld.elf_so'
16554   ;;
16555
16556 netbsd*)
16557   version_type=sunos
16558   need_lib_prefix=no
16559   need_version=no
16560   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16562     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16563     dynamic_linker='NetBSD (a.out) ld.so'
16564   else
16565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16566     soname_spec='${libname}${release}${shared_ext}$major'
16567     dynamic_linker='NetBSD ld.elf_so'
16568   fi
16569   shlibpath_var=LD_LIBRARY_PATH
16570   shlibpath_overrides_runpath=yes
16571   hardcode_into_libs=yes
16572   ;;
16573
16574 newsos6)
16575   version_type=linux # correct to gnu/linux during the next big refactor
16576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577   shlibpath_var=LD_LIBRARY_PATH
16578   shlibpath_overrides_runpath=yes
16579   ;;
16580
16581 *nto* | *qnx*)
16582   version_type=qnx
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   shlibpath_overrides_runpath=no
16589   hardcode_into_libs=yes
16590   dynamic_linker='ldqnx.so'
16591   ;;
16592
16593 openbsd*)
16594   version_type=sunos
16595   sys_lib_dlsearch_path_spec="/usr/lib"
16596   need_lib_prefix=no
16597   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16598   case $host_os in
16599     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16600     *)                          need_version=no  ;;
16601   esac
16602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16603   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16604   shlibpath_var=LD_LIBRARY_PATH
16605   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16606     case $host_os in
16607       openbsd2.[89] | openbsd2.[89].*)
16608         shlibpath_overrides_runpath=no
16609         ;;
16610       *)
16611         shlibpath_overrides_runpath=yes
16612         ;;
16613       esac
16614   else
16615     shlibpath_overrides_runpath=yes
16616   fi
16617   ;;
16618
16619 os2*)
16620   libname_spec='$name'
16621   shrext_cmds=".dll"
16622   need_lib_prefix=no
16623   library_names_spec='$libname${shared_ext} $libname.a'
16624   dynamic_linker='OS/2 ld.exe'
16625   shlibpath_var=LIBPATH
16626   ;;
16627
16628 osf3* | osf4* | osf5*)
16629   version_type=osf
16630   need_lib_prefix=no
16631   need_version=no
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634   shlibpath_var=LD_LIBRARY_PATH
16635   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16636   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16637   ;;
16638
16639 rdos*)
16640   dynamic_linker=no
16641   ;;
16642
16643 solaris*)
16644   version_type=linux # correct to gnu/linux during the next big refactor
16645   need_lib_prefix=no
16646   need_version=no
16647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648   soname_spec='${libname}${release}${shared_ext}$major'
16649   shlibpath_var=LD_LIBRARY_PATH
16650   shlibpath_overrides_runpath=yes
16651   hardcode_into_libs=yes
16652   # ldd complains unless libraries are executable
16653   postinstall_cmds='chmod +x $lib'
16654   ;;
16655
16656 sunos4*)
16657   version_type=sunos
16658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16659   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   shlibpath_overrides_runpath=yes
16662   if test "$with_gnu_ld" = yes; then
16663     need_lib_prefix=no
16664   fi
16665   need_version=yes
16666   ;;
16667
16668 sysv4 | sysv4.3*)
16669   version_type=linux # correct to gnu/linux during the next big refactor
16670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671   soname_spec='${libname}${release}${shared_ext}$major'
16672   shlibpath_var=LD_LIBRARY_PATH
16673   case $host_vendor in
16674     sni)
16675       shlibpath_overrides_runpath=no
16676       need_lib_prefix=no
16677       runpath_var=LD_RUN_PATH
16678       ;;
16679     siemens)
16680       need_lib_prefix=no
16681       ;;
16682     motorola)
16683       need_lib_prefix=no
16684       need_version=no
16685       shlibpath_overrides_runpath=no
16686       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16687       ;;
16688   esac
16689   ;;
16690
16691 sysv4*MP*)
16692   if test -d /usr/nec ;then
16693     version_type=linux # correct to gnu/linux during the next big refactor
16694     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16695     soname_spec='$libname${shared_ext}.$major'
16696     shlibpath_var=LD_LIBRARY_PATH
16697   fi
16698   ;;
16699
16700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16701   version_type=freebsd-elf
16702   need_lib_prefix=no
16703   need_version=no
16704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16705   soname_spec='${libname}${release}${shared_ext}$major'
16706   shlibpath_var=LD_LIBRARY_PATH
16707   shlibpath_overrides_runpath=yes
16708   hardcode_into_libs=yes
16709   if test "$with_gnu_ld" = yes; then
16710     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16711   else
16712     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16713     case $host_os in
16714       sco3.2v5*)
16715         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16716         ;;
16717     esac
16718   fi
16719   sys_lib_dlsearch_path_spec='/usr/lib'
16720   ;;
16721
16722 tpf*)
16723   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16724   version_type=linux # correct to gnu/linux during the next big refactor
16725   need_lib_prefix=no
16726   need_version=no
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728   shlibpath_var=LD_LIBRARY_PATH
16729   shlibpath_overrides_runpath=no
16730   hardcode_into_libs=yes
16731   ;;
16732
16733 uts4*)
16734   version_type=linux # correct to gnu/linux during the next big refactor
16735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736   soname_spec='${libname}${release}${shared_ext}$major'
16737   shlibpath_var=LD_LIBRARY_PATH
16738   ;;
16739
16740 *)
16741   dynamic_linker=no
16742   ;;
16743 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16745 $as_echo "$dynamic_linker" >&6; }
16746 test "$dynamic_linker" = no && can_build_shared=no
16747
16748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16749 if test "$GCC" = yes; then
16750   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16751 fi
16752
16753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16754   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16755 fi
16756 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16757   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16758 fi
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16799 hardcode_action_CXX=
16800 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16801    test -n "$runpath_var_CXX" ||
16802    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16803
16804   # We can hardcode non-existent directories.
16805   if test "$hardcode_direct_CXX" != no &&
16806      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16807      # have to relink, otherwise we might link with an installed library
16808      # when we should be linking with a yet-to-be-installed one
16809      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16810      test "$hardcode_minus_L_CXX" != no; then
16811     # Linking always hardcodes the temporary library directory.
16812     hardcode_action_CXX=relink
16813   else
16814     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16815     hardcode_action_CXX=immediate
16816   fi
16817 else
16818   # We cannot hardcode anything, or else we can only hardcode existing
16819   # directories.
16820   hardcode_action_CXX=unsupported
16821 fi
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16823 $as_echo "$hardcode_action_CXX" >&6; }
16824
16825 if test "$hardcode_action_CXX" = relink ||
16826    test "$inherit_rpath_CXX" = yes; then
16827   # Fast installation is not supported
16828   enable_fast_install=no
16829 elif test "$shlibpath_overrides_runpath" = yes ||
16830      test "$enable_shared" = no; then
16831   # Fast installation is not necessary
16832   enable_fast_install=needless
16833 fi
16834
16835
16836
16837
16838
16839
16840
16841   fi # test -n "$compiler"
16842
16843   CC=$lt_save_CC
16844   CFLAGS=$lt_save_CFLAGS
16845   LDCXX=$LD
16846   LD=$lt_save_LD
16847   GCC=$lt_save_GCC
16848   with_gnu_ld=$lt_save_with_gnu_ld
16849   lt_cv_path_LDCXX=$lt_cv_path_LD
16850   lt_cv_path_LD=$lt_save_path_LD
16851   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16852   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16853 fi # test "$_lt_caught_CXX_error" != yes
16854
16855 ac_ext=c
16856 ac_cpp='$CPP $CPPFLAGS'
16857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875         ac_config_commands="$ac_config_commands libtool"
16876
16877
16878
16879
16880 # Only expand once:
16881
16882
16883 if test -n "$ac_tool_prefix"; then
16884   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16885 set dummy ${ac_tool_prefix}windres; ac_word=$2
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16887 $as_echo_n "checking for $ac_word... " >&6; }
16888 if ${ac_cv_prog_RC+:} false; then :
16889   $as_echo_n "(cached) " >&6
16890 else
16891   if test -n "$RC"; then
16892   ac_cv_prog_RC="$RC" # Let the user override the test.
16893 else
16894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895 for as_dir in $PATH
16896 do
16897   IFS=$as_save_IFS
16898   test -z "$as_dir" && as_dir=.
16899     for ac_exec_ext in '' $ac_executable_extensions; do
16900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16901     ac_cv_prog_RC="${ac_tool_prefix}windres"
16902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16903     break 2
16904   fi
16905 done
16906   done
16907 IFS=$as_save_IFS
16908
16909 fi
16910 fi
16911 RC=$ac_cv_prog_RC
16912 if test -n "$RC"; then
16913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16914 $as_echo "$RC" >&6; }
16915 else
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917 $as_echo "no" >&6; }
16918 fi
16919
16920
16921 fi
16922 if test -z "$ac_cv_prog_RC"; then
16923   ac_ct_RC=$RC
16924   # Extract the first word of "windres", so it can be a program name with args.
16925 set dummy windres; ac_word=$2
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16927 $as_echo_n "checking for $ac_word... " >&6; }
16928 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16929   $as_echo_n "(cached) " >&6
16930 else
16931   if test -n "$ac_ct_RC"; then
16932   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16933 else
16934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16935 for as_dir in $PATH
16936 do
16937   IFS=$as_save_IFS
16938   test -z "$as_dir" && as_dir=.
16939     for ac_exec_ext in '' $ac_executable_extensions; do
16940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16941     ac_cv_prog_ac_ct_RC="windres"
16942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16943     break 2
16944   fi
16945 done
16946   done
16947 IFS=$as_save_IFS
16948
16949 fi
16950 fi
16951 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16952 if test -n "$ac_ct_RC"; then
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16954 $as_echo "$ac_ct_RC" >&6; }
16955 else
16956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16958 fi
16959
16960   if test "x$ac_ct_RC" = x; then
16961     RC=""
16962   else
16963     case $cross_compiling:$ac_tool_warned in
16964 yes:)
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16967 ac_tool_warned=yes ;;
16968 esac
16969     RC=$ac_ct_RC
16970   fi
16971 else
16972   RC="$ac_cv_prog_RC"
16973 fi
16974
16975
16976
16977
16978 # Source file extension for RC test sources.
16979 ac_ext=rc
16980
16981 # Object file extension for compiled RC test sources.
16982 objext=o
16983 objext_RC=$objext
16984
16985 # Code to be used in simple compile tests
16986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16987
16988 # Code to be used in simple link tests
16989 lt_simple_link_test_code="$lt_simple_compile_test_code"
16990
16991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16992
16993
16994
16995
16996
16997
16998 # If no C compiler was specified, use CC.
16999 LTCC=${LTCC-"$CC"}
17000
17001 # If no C compiler flags were specified, use CFLAGS.
17002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17003
17004 # Allow CC to be a program name with arguments.
17005 compiler=$CC
17006
17007
17008 # save warnings/boilerplate of simple test code
17009 ac_outfile=conftest.$ac_objext
17010 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17012 _lt_compiler_boilerplate=`cat conftest.err`
17013 $RM conftest*
17014
17015 ac_outfile=conftest.$ac_objext
17016 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17018 _lt_linker_boilerplate=`cat conftest.err`
17019 $RM -r conftest*
17020
17021
17022 # Allow CC to be a program name with arguments.
17023 lt_save_CC="$CC"
17024 lt_save_CFLAGS=$CFLAGS
17025 lt_save_GCC=$GCC
17026 GCC=
17027 CC=${RC-"windres"}
17028 CFLAGS=
17029 compiler=$CC
17030 compiler_RC=$CC
17031 for cc_temp in $compiler""; do
17032   case $cc_temp in
17033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17035     \-*) ;;
17036     *) break;;
17037   esac
17038 done
17039 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17040
17041 lt_cv_prog_compiler_c_o_RC=yes
17042
17043 if test -n "$compiler"; then
17044   :
17045
17046
17047
17048 fi
17049
17050 GCC=$lt_save_GCC
17051 ac_ext=c
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17056
17057 CC=$lt_save_CC
17058 CFLAGS=$lt_save_CFLAGS
17059
17060
17061 # For now we hardcode the use of version scripts.  It would be better
17062 # to write a test for this or even implement this within libtool.
17063 have_ld_version_script=no
17064 case "${host}" in
17065     *-*-linux*)
17066         have_ld_version_script=yes
17067         ;;
17068     *-*-gnu*)
17069         have_ld_version_script=yes
17070         ;;
17071     *-apple-darwin*)
17072
17073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17074
17075         ;;
17076 esac
17077
17078  if test "$have_ld_version_script" = "yes"; then
17079   HAVE_LD_VERSION_SCRIPT_TRUE=
17080   HAVE_LD_VERSION_SCRIPT_FALSE='#'
17081 else
17082   HAVE_LD_VERSION_SCRIPT_TRUE='#'
17083   HAVE_LD_VERSION_SCRIPT_FALSE=
17084 fi
17085
17086
17087 GPG_DEFAULT=no
17088 GPGSM_DEFAULT=no
17089 GPGCONF_DEFAULT=no
17090 G13_DEFAULT=no
17091 component_system=None
17092 have_dosish_system=no
17093 have_android_system=no
17094 have_w32_system=no
17095 have_w64_system=no
17096 build_w32_glib=no
17097 build_w32_qt=no
17098 case "${host}" in
17099     x86_64-*mingw32*)
17100         have_w64_system=yes
17101         ;;
17102     *-mingw32ce*)
17103         have_w32ce_system=yes
17104         ;;
17105     *-linux-androideabi)
17106         have_android_system=yes
17107         ;;
17108 esac
17109 case "${host}" in
17110     *-mingw32ce*|*-mingw32*)
17111         have_dosish_system=yes
17112         have_w32_system=yes
17113         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17114         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17115         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17116         G13_DEFAULT='c:\\gnupg\\g13.exe'
17117         #component_system='COM+'
17118
17119         # Check whether --enable-glibtest was given.
17120 if test "${enable_glibtest+set}" = set; then :
17121   enableval=$enable_glibtest;
17122 else
17123   enable_glibtest=yes
17124 fi
17125
17126
17127   pkg_config_args=glib-2.0
17128   for module in .
17129   do
17130       case "$module" in
17131          gmodule)
17132              pkg_config_args="$pkg_config_args gmodule-2.0"
17133          ;;
17134          gmodule-no-export)
17135              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17136          ;;
17137          gobject)
17138              pkg_config_args="$pkg_config_args gobject-2.0"
17139          ;;
17140          gthread)
17141              pkg_config_args="$pkg_config_args gthread-2.0"
17142          ;;
17143       esac
17144   done
17145
17146   # Extract the first word of "pkg-config", so it can be a program name with args.
17147 set dummy pkg-config; ac_word=$2
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17149 $as_echo_n "checking for $ac_word... " >&6; }
17150 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17151   $as_echo_n "(cached) " >&6
17152 else
17153   case $PKG_CONFIG in
17154   [\\/]* | ?:[\\/]*)
17155   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17156   ;;
17157   *)
17158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17159 for as_dir in $PATH
17160 do
17161   IFS=$as_save_IFS
17162   test -z "$as_dir" && as_dir=.
17163     for ac_exec_ext in '' $ac_executable_extensions; do
17164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17165     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17167     break 2
17168   fi
17169 done
17170   done
17171 IFS=$as_save_IFS
17172
17173   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17174   ;;
17175 esac
17176 fi
17177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17178 if test -n "$PKG_CONFIG"; then
17179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17180 $as_echo "$PKG_CONFIG" >&6; }
17181 else
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17184 fi
17185
17186
17187
17188   no_glib=""
17189
17190   if test x$PKG_CONFIG != xno ; then
17191     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17192       :
17193     else
17194       echo *** pkg-config too old; version 0.7 or better required.
17195       no_glib=yes
17196       PKG_CONFIG=no
17197     fi
17198   else
17199     no_glib=yes
17200   fi
17201
17202   min_glib_version=2.0.0
17203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17204 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17205
17206   if test x$PKG_CONFIG != xno ; then
17207     ## don't try to run the test against uninstalled libtool libs
17208     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17209           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17210           enable_glibtest=no
17211     fi
17212
17213     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17214           :
17215     else
17216           no_glib=yes
17217     fi
17218   fi
17219
17220   if test x"$no_glib" = x ; then
17221     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17222     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17223     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17224
17225     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17226     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17227     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17228            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17229     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17230            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17231     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17232            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17233     if test "x$enable_glibtest" = "xyes" ; then
17234       ac_save_CFLAGS="$CFLAGS"
17235       ac_save_LIBS="$LIBS"
17236       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17237       LIBS="$GLIB_LIBS $LIBS"
17238       rm -f conf.glibtest
17239       if test "$cross_compiling" = yes; then :
17240   echo $ac_n "cross compiling; assumed OK... $ac_c"
17241 else
17242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h.  */
17244
17245 #include <glib.h>
17246 #include <stdio.h>
17247 #include <stdlib.h>
17248
17249 int
17250 main ()
17251 {
17252   int major, minor, micro;
17253   char *tmp_version;
17254
17255   system ("touch conf.glibtest");
17256
17257   /* HP/UX 9 (%@#!) writes to sscanf strings */
17258   tmp_version = g_strdup("$min_glib_version");
17259   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17260      printf("%s, bad version string\n", "$min_glib_version");
17261      exit(1);
17262    }
17263
17264   if ((glib_major_version != $glib_config_major_version) ||
17265       (glib_minor_version != $glib_config_minor_version) ||
17266       (glib_micro_version != $glib_config_micro_version))
17267     {
17268       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17269              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17270              glib_major_version, glib_minor_version, glib_micro_version);
17271       printf ("*** was found! If pkg-config was correct, then it is best\n");
17272       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17273       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17274       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17275       printf("*** required on your system.\n");
17276       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17277       printf("*** to point to the correct configuration files\n");
17278     }
17279   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17280            (glib_minor_version != GLIB_MINOR_VERSION) ||
17281            (glib_micro_version != GLIB_MICRO_VERSION))
17282     {
17283       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17284              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17285       printf("*** library (version %d.%d.%d)\n",
17286              glib_major_version, glib_minor_version, glib_micro_version);
17287     }
17288   else
17289     {
17290       if ((glib_major_version > major) ||
17291         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17292         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17293       {
17294         return 0;
17295        }
17296      else
17297       {
17298         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17299                glib_major_version, glib_minor_version, glib_micro_version);
17300         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17301                major, minor, micro);
17302         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17303         printf("***\n");
17304         printf("*** If you have already installed a sufficiently new version, this error\n");
17305         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17306         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17307         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17308         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17309         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17310         printf("*** so that the correct libraries are found at run-time))\n");
17311       }
17312     }
17313   return 1;
17314 }
17315
17316 _ACEOF
17317 if ac_fn_c_try_run "$LINENO"; then :
17318
17319 else
17320   no_glib=yes
17321 fi
17322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17323   conftest.$ac_objext conftest.beam conftest.$ac_ext
17324 fi
17325
17326        CFLAGS="$ac_save_CFLAGS"
17327        LIBS="$ac_save_LIBS"
17328      fi
17329   fi
17330   if test "x$no_glib" = x ; then
17331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17332 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17333      :
17334   else
17335      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17336 $as_echo "no" >&6; }
17337      if test "$PKG_CONFIG" = "no" ; then
17338        echo "*** A new enough version of pkg-config was not found."
17339        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17340      else
17341        if test -f conf.glibtest ; then
17342         :
17343        else
17344           echo "*** Could not run GLIB test program, checking why..."
17345           ac_save_CFLAGS="$CFLAGS"
17346           ac_save_LIBS="$LIBS"
17347           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17348           LIBS="$LIBS $GLIB_LIBS"
17349           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h.  */
17351
17352 #include <glib.h>
17353 #include <stdio.h>
17354
17355 int
17356 main ()
17357 {
17358  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 if ac_fn_c_try_link "$LINENO"; then :
17364    echo "*** The test program compiled, but did not run. This usually means"
17365           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17366           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17367           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17368           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17369           echo "*** is required on your system"
17370           echo "***"
17371           echo "*** If you have an old version installed, it is best to remove it, although"
17372           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17373 else
17374    echo "*** The test program failed to compile or link. See the file config.log for the"
17375           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext \
17378     conftest$ac_exeext conftest.$ac_ext
17379           CFLAGS="$ac_save_CFLAGS"
17380           LIBS="$ac_save_LIBS"
17381        fi
17382      fi
17383      GLIB_CFLAGS=""
17384      GLIB_LIBS=""
17385      GLIB_GENMARSHAL=""
17386      GOBJECT_QUERY=""
17387      GLIB_MKENUMS=""
17388      :
17389   fi
17390
17391
17392
17393
17394
17395   rm -f conf.glibtest
17396
17397         # Check whether --enable-w32-glib was given.
17398 if test "${enable_w32_glib+set}" = set; then :
17399   enableval=$enable_w32_glib; build_w32_glib=$enableval
17400 fi
17401
17402
17403         # Check disabled, because the qt-dev packages in gpg4win do
17404         # not provide any support for cross compilation.
17405         # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17406
17407         # Use it like this:
17408         # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17409
17410
17411         # Check whether --enable-w32-qt was given.
17412 if test "${enable_w32_qt+set}" = set; then :
17413   enableval=$enable_w32_qt; build_w32_qt=$enableval
17414 fi
17415
17416         ;;
17417     *)
17418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17419 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17420 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17421   $as_echo_n "(cached) " >&6
17422 else
17423   ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-lpthread  $LIBS"
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h.  */
17427
17428 /* Override any GCC internal prototype to avoid an error.
17429    Use char because int might match the return type of a GCC
17430    builtin and then its argument prototype would still apply.  */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 char pthread_create ();
17435 int
17436 main ()
17437 {
17438 return pthread_create ();
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 if ac_fn_c_try_link "$LINENO"; then :
17444   ac_cv_lib_pthread_pthread_create=yes
17445 else
17446   ac_cv_lib_pthread_pthread_create=no
17447 fi
17448 rm -f core conftest.err conftest.$ac_objext \
17449     conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17453 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17454 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17455   have_pthread=yes
17456 fi
17457
17458         if test "$have_pthread" = yes; then
17459
17460 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17461
17462         fi
17463
17464         # XXX: Probably use exec-prefix here?
17465 #       GPG_DEFAULT='/usr/bin/gpg'
17466 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17467 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17468 #       G13_DEFAULT='/usr/bin/g13'
17469         ;;
17470 esac
17471
17472 if test "$have_dosish_system" = yes; then
17473
17474 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17475
17476 fi
17477  if test "$have_dosish_system" = yes; then
17478   HAVE_DOSISH_SYSTEM_TRUE=
17479   HAVE_DOSISH_SYSTEM_FALSE='#'
17480 else
17481   HAVE_DOSISH_SYSTEM_TRUE='#'
17482   HAVE_DOSISH_SYSTEM_FALSE=
17483 fi
17484
17485
17486 if test "$have_w32_system" = yes; then
17487
17488 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17489
17490 fi
17491  if test "$have_w32_system" = yes; then
17492   HAVE_W32_SYSTEM_TRUE=
17493   HAVE_W32_SYSTEM_FALSE='#'
17494 else
17495   HAVE_W32_SYSTEM_TRUE='#'
17496   HAVE_W32_SYSTEM_FALSE=
17497 fi
17498
17499
17500 if test "$have_w64_system" = yes; then
17501
17502 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17503
17504 fi
17505  if test "$have_w64_system" = yes; then
17506   HAVE_W64_SYSTEM_TRUE=
17507   HAVE_W64_SYSTEM_FALSE='#'
17508 else
17509   HAVE_W64_SYSTEM_TRUE='#'
17510   HAVE_W64_SYSTEM_FALSE=
17511 fi
17512
17513
17514 if test "$have_w32ce_system" = yes; then
17515
17516 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17517
17518 fi
17519  if test "$have_w32ce_system" = yes; then
17520   HAVE_W32CE_SYSTEM_TRUE=
17521   HAVE_W32CE_SYSTEM_FALSE='#'
17522 else
17523   HAVE_W32CE_SYSTEM_TRUE='#'
17524   HAVE_W32CE_SYSTEM_FALSE=
17525 fi
17526
17527
17528 if test "$have_android_system" = yes; then
17529
17530 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17531
17532 fi
17533  if test "$have_android_system" = yes; then
17534   HAVE_ANDROID_SYSTEM_TRUE=
17535   HAVE_ANDROID_SYSTEM_FALSE='#'
17536 else
17537   HAVE_ANDROID_SYSTEM_TRUE='#'
17538   HAVE_ANDROID_SYSTEM_FALSE=
17539 fi
17540
17541
17542  if test "$build_w32_glib" = yes; then
17543   BUILD_W32_GLIB_TRUE=
17544   BUILD_W32_GLIB_FALSE='#'
17545 else
17546   BUILD_W32_GLIB_TRUE='#'
17547   BUILD_W32_GLIB_FALSE=
17548 fi
17549
17550  if test "$build_w32_qt" = yes; then
17551   BUILD_W32_QT_TRUE=
17552   BUILD_W32_QT_FALSE='#'
17553 else
17554   BUILD_W32_QT_TRUE='#'
17555   BUILD_W32_QT_FALSE=
17556 fi
17557
17558
17559  if test "$have_pthread" = "yes"; then
17560   HAVE_PTHREAD_TRUE=
17561   HAVE_PTHREAD_FALSE='#'
17562 else
17563   HAVE_PTHREAD_TRUE='#'
17564   HAVE_PTHREAD_FALSE=
17565 fi
17566
17567
17568
17569 # Check whether --enable-fixed-path was given.
17570 if test "${enable_fixed_path+set}" = set; then :
17571   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17572 else
17573   fixed_search_path=""
17574 fi
17575
17576 if test x$fixed_search_path != x ; then
17577
17578 cat >>confdefs.h <<_ACEOF
17579 #define FIXED_SEARCH_PATH "$fixed_search_path"
17580 _ACEOF
17581
17582 fi
17583
17584
17585 #
17586 # Provide information about the build.
17587 #
17588 BUILD_REVISION="052a9e3"
17589
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define BUILD_REVISION "$BUILD_REVISION"
17593 _ACEOF
17594
17595
17596 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17597 BUILD_FILEVERSION="${BUILD_FILEVERSION}1322"
17598
17599
17600 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17601
17602
17603 cat >>confdefs.h <<_ACEOF
17604 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17605 _ACEOF
17606
17607
17608 #
17609 # Options to disable some regression tests
17610 #
17611 run_gpgconf_test="yes"
17612 # Check whether --enable-gpgconf-test was given.
17613 if test "${enable_gpgconf_test+set}" = set; then :
17614   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
17615 fi
17616
17617  if test "$run_gpgconf_test" = "yes"; then
17618   RUN_GPGCONF_TESTS_TRUE=
17619   RUN_GPGCONF_TESTS_FALSE='#'
17620 else
17621   RUN_GPGCONF_TESTS_TRUE='#'
17622   RUN_GPGCONF_TESTS_FALSE=
17623 fi
17624
17625
17626 run_gpg_test="yes"
17627 # Check whether --enable-gpg-test was given.
17628 if test "${enable_gpg_test+set}" = set; then :
17629   enableval=$enable_gpg_test; run_gpg_test=$enableval
17630 fi
17631
17632  if test "$run_gpg_test" = "yes"; then
17633   RUN_GPG_TESTS_TRUE=
17634   RUN_GPG_TESTS_FALSE='#'
17635 else
17636   RUN_GPG_TESTS_TRUE='#'
17637   RUN_GPG_TESTS_FALSE=
17638 fi
17639
17640
17641 run_gpgsm_test="yes"
17642 # Check whether --enable-gpgsm-test was given.
17643 if test "${enable_gpgsm_test+set}" = set; then :
17644   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
17645 fi
17646
17647  if test "$run_gpgsm_test" = "yes"; then
17648   RUN_GPGSM_TESTS_TRUE=
17649   RUN_GPGSM_TESTS_FALSE='#'
17650 else
17651   RUN_GPGSM_TESTS_TRUE='#'
17652   RUN_GPGSM_TESTS_FALSE=
17653 fi
17654
17655
17656 run_g13_test="yes"
17657 # Check whether --enable-g13-test was given.
17658 if test "${enable_g13_test+set}" = set; then :
17659   enableval=$enable_g13_test; run_g13_test=$enableval
17660 fi
17661
17662  if test "$run_g13_test" = "yes"; then
17663   RUN_G13_TESTS_TRUE=
17664   RUN_G13_TESTS_FALSE='#'
17665 else
17666   RUN_G13_TESTS_TRUE='#'
17667   RUN_G13_TESTS_FALSE=
17668 fi
17669
17670
17671
17672 # Checks for header files.
17673
17674
17675
17676   for ac_header in $ac_header_list
17677 do :
17678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17680 "
17681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17682   cat >>confdefs.h <<_ACEOF
17683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17684 _ACEOF
17685
17686 fi
17687
17688 done
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 # Type checks.
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17711 $as_echo_n "checking for inline... " >&6; }
17712 if ${ac_cv_c_inline+:} false; then :
17713   $as_echo_n "(cached) " >&6
17714 else
17715   ac_cv_c_inline=no
17716 for ac_kw in inline __inline__ __inline; do
17717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h.  */
17719 #ifndef __cplusplus
17720 typedef int foo_t;
17721 static $ac_kw foo_t static_foo () {return 0; }
17722 $ac_kw foo_t foo () {return 0; }
17723 #endif
17724
17725 _ACEOF
17726 if ac_fn_c_try_compile "$LINENO"; then :
17727   ac_cv_c_inline=$ac_kw
17728 fi
17729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730   test "$ac_cv_c_inline" != no && break
17731 done
17732
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17735 $as_echo "$ac_cv_c_inline" >&6; }
17736
17737 case $ac_cv_c_inline in
17738   inline | yes) ;;
17739   *)
17740     case $ac_cv_c_inline in
17741       no) ac_val=;;
17742       *) ac_val=$ac_cv_c_inline;;
17743     esac
17744     cat >>confdefs.h <<_ACEOF
17745 #ifndef __cplusplus
17746 #define inline $ac_val
17747 #endif
17748 _ACEOF
17749     ;;
17750 esac
17751
17752 # The cast to long int works around a bug in the HP C Compiler
17753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17755 # This bug is HP SR number 8606223364.
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17757 $as_echo_n "checking size of unsigned int... " >&6; }
17758 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17759   $as_echo_n "(cached) " >&6
17760 else
17761   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17762
17763 else
17764   if test "$ac_cv_type_unsigned_int" = yes; then
17765      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17767 as_fn_error 77 "cannot compute sizeof (unsigned int)
17768 See \`config.log' for more details" "$LINENO" 5; }
17769    else
17770      ac_cv_sizeof_unsigned_int=0
17771    fi
17772 fi
17773
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17776 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17777
17778
17779
17780 cat >>confdefs.h <<_ACEOF
17781 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17782 _ACEOF
17783
17784
17785 # Check whether --enable-largefile was given.
17786 if test "${enable_largefile+set}" = set; then :
17787   enableval=$enable_largefile;
17788 fi
17789
17790 if test "$enable_largefile" != no; then
17791
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17793 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17794 if ${ac_cv_sys_largefile_CC+:} false; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   ac_cv_sys_largefile_CC=no
17798      if test "$GCC" != yes; then
17799        ac_save_CC=$CC
17800        while :; do
17801          # IRIX 6.2 and later do not support large files by default,
17802          # so use the C compiler's -n32 option if that helps.
17803          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h.  */
17805 #include <sys/types.h>
17806  /* Check that off_t can represent 2**63 - 1 correctly.
17807     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17808     since some C++ compilers masquerading as C compilers
17809     incorrectly reject 9223372036854775807.  */
17810 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17811   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17812                        && LARGE_OFF_T % 2147483647 == 1)
17813                       ? 1 : -1];
17814 int
17815 main ()
17816 {
17817
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822          if ac_fn_c_try_compile "$LINENO"; then :
17823   break
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext
17826          CC="$CC -n32"
17827          if ac_fn_c_try_compile "$LINENO"; then :
17828   ac_cv_sys_largefile_CC=' -n32'; break
17829 fi
17830 rm -f core conftest.err conftest.$ac_objext
17831          break
17832        done
17833        CC=$ac_save_CC
17834        rm -f conftest.$ac_ext
17835     fi
17836 fi
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17838 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17839   if test "$ac_cv_sys_largefile_CC" != no; then
17840     CC=$CC$ac_cv_sys_largefile_CC
17841   fi
17842
17843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17844 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17845 if ${ac_cv_sys_file_offset_bits+:} false; then :
17846   $as_echo_n "(cached) " >&6
17847 else
17848   while :; do
17849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h.  */
17851 #include <sys/types.h>
17852  /* Check that off_t can represent 2**63 - 1 correctly.
17853     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17854     since some C++ compilers masquerading as C compilers
17855     incorrectly reject 9223372036854775807.  */
17856 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17857   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17858                        && LARGE_OFF_T % 2147483647 == 1)
17859                       ? 1 : -1];
17860 int
17861 main ()
17862 {
17863
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 if ac_fn_c_try_compile "$LINENO"; then :
17869   ac_cv_sys_file_offset_bits=no; break
17870 fi
17871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h.  */
17874 #define _FILE_OFFSET_BITS 64
17875 #include <sys/types.h>
17876  /* Check that off_t can represent 2**63 - 1 correctly.
17877     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17878     since some C++ compilers masquerading as C compilers
17879     incorrectly reject 9223372036854775807.  */
17880 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17881   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17882                        && LARGE_OFF_T % 2147483647 == 1)
17883                       ? 1 : -1];
17884 int
17885 main ()
17886 {
17887
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 if ac_fn_c_try_compile "$LINENO"; then :
17893   ac_cv_sys_file_offset_bits=64; break
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896   ac_cv_sys_file_offset_bits=unknown
17897   break
17898 done
17899 fi
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17901 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17902 case $ac_cv_sys_file_offset_bits in #(
17903   no | unknown) ;;
17904   *)
17905 cat >>confdefs.h <<_ACEOF
17906 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17907 _ACEOF
17908 ;;
17909 esac
17910 rm -rf conftest*
17911   if test $ac_cv_sys_file_offset_bits = unknown; then
17912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17913 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17914 if ${ac_cv_sys_large_files+:} false; then :
17915   $as_echo_n "(cached) " >&6
17916 else
17917   while :; do
17918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920 #include <sys/types.h>
17921  /* Check that off_t can represent 2**63 - 1 correctly.
17922     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17923     since some C++ compilers masquerading as C compilers
17924     incorrectly reject 9223372036854775807.  */
17925 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17926   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17927                        && LARGE_OFF_T % 2147483647 == 1)
17928                       ? 1 : -1];
17929 int
17930 main ()
17931 {
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938   ac_cv_sys_large_files=no; break
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h.  */
17943 #define _LARGE_FILES 1
17944 #include <sys/types.h>
17945  /* Check that off_t can represent 2**63 - 1 correctly.
17946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17947     since some C++ compilers masquerading as C compilers
17948     incorrectly reject 9223372036854775807.  */
17949 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17951                        && LARGE_OFF_T % 2147483647 == 1)
17952                       ? 1 : -1];
17953 int
17954 main ()
17955 {
17956
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 if ac_fn_c_try_compile "$LINENO"; then :
17962   ac_cv_sys_large_files=1; break
17963 fi
17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17965   ac_cv_sys_large_files=unknown
17966   break
17967 done
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17970 $as_echo "$ac_cv_sys_large_files" >&6; }
17971 case $ac_cv_sys_large_files in #(
17972   no | unknown) ;;
17973   *)
17974 cat >>confdefs.h <<_ACEOF
17975 #define _LARGE_FILES $ac_cv_sys_large_files
17976 _ACEOF
17977 ;;
17978 esac
17979 rm -rf conftest*
17980   fi
17981
17982
17983 fi
17984
17985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17986 if test "x$ac_cv_type_off_t" = xyes; then :
17987
17988 else
17989
17990 cat >>confdefs.h <<_ACEOF
17991 #define off_t long int
17992 _ACEOF
17993
17994 fi
17995
17996
17997   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17998 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17999
18000 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
18001
18002 else
18003   for ac_type in 'unsigned int' 'unsigned long int' \
18004         'unsigned long long int'; do
18005        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h.  */
18007 $ac_includes_default
18008 int
18009 main ()
18010 {
18011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
18012 test_array [0] = 0;
18013 return test_array [0];
18014
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_compile "$LINENO"; then :
18020
18021 cat >>confdefs.h <<_ACEOF
18022 #define uintptr_t $ac_type
18023 _ACEOF
18024
18025           ac_type=
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028        test -z "$ac_type" && break
18029      done
18030 fi
18031
18032
18033
18034 # A simple compile time check in gpgme.h for GNU/Linux systems that
18035 # prevents a file offset bits mismatch between gpgme and the application.
18036 NEED__FILE_OFFSET_BITS=0
18037 if test "$have_w32_system" != yes; then
18038   case "$ac_cv_sys_file_offset_bits" in
18039     "" | no | unknown) ;;
18040     *)
18041     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
18042     ;;
18043   esac
18044 fi
18045
18046
18047 # Figure out platform dependent typedefs for gpgme.h
18048 if test "$have_w32_system" = yes; then
18049     INSERT__TYPEDEFS_FOR_GPGME_H="
18050 #ifdef _WIN64
18051 # include <stdint.h>
18052   typedef int64_t gpgme_off_t;
18053   typedef int64_t gpgme_ssize_t;
18054 #else /* _WIN32 */
18055   typedef long gpgme_off_t;
18056   typedef long gpgme_ssize_t;
18057 #endif /* _WIN32 */"
18058     API__OFF_T="gpgme_off_t"
18059     API__SSIZE_T="gpgme_ssize_t"
18060 else
18061     INSERT__TYPEDEFS_FOR_GPGME_H="
18062 #include <sys/types.h>
18063 typedef off_t   gpgme_off_t;
18064 typedef ssize_t gpgme_ssize_t;"
18065     API__OFF_T="off_t"
18066     API__SSIZE_T="ssize_t"
18067 fi
18068
18069
18070
18071
18072
18073
18074
18075 # Checks for compiler features.
18076 if test "$GCC" = yes; then
18077     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
18078     if test "$have_w32_system" = yes; then
18079        CFLAGS="$CFLAGS -mms-bitfields"
18080     fi
18081 fi
18082
18083 # Only used for debugging, so no serious test needed (for actual
18084 # functionality you have to test libc as well, this only tests the
18085 # compiler).
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
18087 $as_echo_n "checking for __thread... " >&6; }
18088 if ${gpgme_cv_tls_works+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h.  */
18093 __thread int foo;
18094 int
18095 main ()
18096 {
18097
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"; then :
18103   gpgme_cv_tls_works=yes
18104 else
18105   gpgme_cv_tls_works=no
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 fi
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
18110 $as_echo "$gpgme_cv_tls_works" >&6; }
18111 if test "$gpgme_cv_tls_works" = yes; then
18112
18113 $as_echo "#define HAVE_TLS 1" >>confdefs.h
18114
18115 fi
18116
18117
18118 # Checks for library functions.
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
18120 $as_echo "$as_me: checking for libraries" >&6;}
18121
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18123 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18124 if ${ac_cv_sys_largefile_source+:} false; then :
18125   $as_echo_n "(cached) " >&6
18126 else
18127   while :; do
18128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h.  */
18130 #include <sys/types.h> /* for off_t */
18131      #include <stdio.h>
18132 int
18133 main ()
18134 {
18135 int (*fp) (FILE *, off_t, int) = fseeko;
18136      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_c_try_link "$LINENO"; then :
18142   ac_cv_sys_largefile_source=no; break
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext \
18145     conftest$ac_exeext conftest.$ac_ext
18146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h.  */
18148 #define _LARGEFILE_SOURCE 1
18149 #include <sys/types.h> /* for off_t */
18150      #include <stdio.h>
18151 int
18152 main ()
18153 {
18154 int (*fp) (FILE *, off_t, int) = fseeko;
18155      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 if ac_fn_c_try_link "$LINENO"; then :
18161   ac_cv_sys_largefile_source=1; break
18162 fi
18163 rm -f core conftest.err conftest.$ac_objext \
18164     conftest$ac_exeext conftest.$ac_ext
18165   ac_cv_sys_largefile_source=unknown
18166   break
18167 done
18168 fi
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
18170 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18171 case $ac_cv_sys_largefile_source in #(
18172   no | unknown) ;;
18173   *)
18174 cat >>confdefs.h <<_ACEOF
18175 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18176 _ACEOF
18177 ;;
18178 esac
18179 rm -rf conftest*
18180
18181 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18182 # in glibc 2.1.3, but that breaks too many other things.
18183 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18184 if test $ac_cv_sys_largefile_source != unknown; then
18185
18186 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
18187
18188 fi
18189
18190
18191 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
18192 if test "x$ac_cv_func_vasprintf" = xyes; then :
18193   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
18194
18195 else
18196   case " $LIBOBJS " in
18197   *" vasprintf.$ac_objext "* ) ;;
18198   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
18199  ;;
18200 esac
18201
18202 fi
18203
18204
18205 if test "$ac_cv_func_vasprintf" != yes; then
18206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
18207 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
18208   if ${gnupg_cv_must_copy_va_byval+:} false; then :
18209   $as_echo_n "(cached) " >&6
18210 else
18211
18212     if test "$cross_compiling" = yes; then
18213       gnupg_cv_must_copy_va_byval=no
18214     else
18215       gnupg_cv_must_copy_va_byval=no
18216       if test "$cross_compiling" = yes; then :
18217   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18219 as_fn_error $? "cannot run test program while cross compiling
18220 See \`config.log' for more details" "$LINENO" 5; }
18221 else
18222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h.  */
18224
18225        #include <stdarg.h>
18226        void f (int i, ...)
18227        {
18228           va_list args1, args2;
18229           va_start (args1, i);
18230           args2 = args1;
18231           if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
18232             exit (1);
18233           va_end (args1);
18234           va_end (args2);
18235        }
18236
18237        int main()
18238        {
18239           f (0, 42);
18240             return 0;
18241        }
18242
18243 _ACEOF
18244 if ac_fn_c_try_run "$LINENO"; then :
18245   gnupg_cv_must_copy_va_byval=yes
18246 fi
18247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18248   conftest.$ac_objext conftest.beam conftest.$ac_ext
18249 fi
18250
18251     fi
18252
18253 fi
18254
18255   if test "$gnupg_cv_must_copy_va_byval" = yes; then
18256
18257 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
18258
18259   fi
18260   if test "$cross_compiling" = yes; then
18261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
18262 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
18263   else
18264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
18265 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
18266   fi
18267
18268 fi
18269
18270 # Try to find a thread-safe version of ttyname().
18271 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
18272 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
18273   ac_have_decl=1
18274 else
18275   ac_have_decl=0
18276 fi
18277
18278 cat >>confdefs.h <<_ACEOF
18279 #define HAVE_DECL_TTYNAME_R $ac_have_decl
18280 _ACEOF
18281
18282
18283   for ac_header in unistd.h
18284 do :
18285   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18286 if test "x$ac_cv_header_unistd_h" = xyes; then :
18287   cat >>confdefs.h <<_ACEOF
18288 #define HAVE_UNISTD_H 1
18289 _ACEOF
18290
18291 fi
18292
18293 done
18294
18295
18296
18297   if test $ac_cv_have_decl_ttyname_r = no; then
18298     HAVE_DECL_TTYNAME_R=0
18299   fi
18300
18301   for ac_func in ttyname_r
18302 do :
18303   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
18304 if test "x$ac_cv_func_ttyname_r" = xyes; then :
18305   cat >>confdefs.h <<_ACEOF
18306 #define HAVE_TTYNAME_R 1
18307 _ACEOF
18308
18309 fi
18310 done
18311
18312   if test $ac_cv_func_ttyname_r = no; then
18313     HAVE_TTYNAME_R=0
18314     case " $LIBOBJS " in
18315   *" ttyname_r.$ac_objext "* ) ;;
18316   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18317  ;;
18318 esac
18319
18320
18321 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18322
18323   else
18324     HAVE_TTYNAME_R=1
18325             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
18326 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
18327 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
18328   $as_echo_n "(cached) " >&6
18329 else
18330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h.  */
18332 #include <stddef.h>
18333               #include <unistd.h>
18334 int
18335 main ()
18336 {
18337 *ttyname_r (0, NULL, 0);
18338   ;
18339   return 0;
18340 }
18341
18342 _ACEOF
18343 if ac_fn_c_try_compile "$LINENO"; then :
18344   gnupg_cv_func_ttyname_r_posix=no
18345 else
18346   gnupg_cv_func_ttyname_r_posix=yes
18347 fi
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349
18350 fi
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18352 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18353     if test $gnupg_cv_func_ttyname_r_posix = no; then
18354       case " $LIBOBJS " in
18355   *" ttyname_r.$ac_objext "* ) ;;
18356   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18357  ;;
18358 esac
18359
18360       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18361
18362     elif test "$have_android_system" = yes; then
18363       # Android has ttyname and ttyname_r but they are only stubs and
18364       # print an annoying warning message.  Thus we need to replace
18365       # ttyname_r with our own dummy function.
18366       case " $LIBOBJS " in
18367   *" ttyname_r.$ac_objext "* ) ;;
18368   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18369  ;;
18370 esac
18371
18372       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18373
18374     else
18375
18376 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18377
18378
18379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18380 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18381 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18382   $as_echo_n "(cached) " >&6
18383 else
18384
18385                               case "$host_os" in
18386                       # Guess no on Solaris.
18387             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18388                       # Guess no on OSF/1.
18389             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
18390                       # Guess yes otherwise.
18391             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18392           esac
18393           if test "$cross_compiling" = yes; then :
18394   :
18395 else
18396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h.  */
18398
18399 #include <fcntl.h>
18400 #include <unistd.h>
18401 int
18402 main (void)
18403 {
18404   int result = 0;
18405   int fd;
18406   char buf[31]; /* use any size < 128 here */
18407
18408   fd = open ("/dev/tty", O_RDONLY);
18409   if (fd < 0)
18410     result |= 16;
18411   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18412     result |= 17;
18413   else if (ttyname_r (fd, buf, 1) == 0)
18414     result |= 18;
18415   return result;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_run "$LINENO"; then :
18419   gnupg_cv_func_ttyname_r_works=yes
18420 else
18421   case $? in
18422                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18423              esac
18424 fi
18425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18426   conftest.$ac_objext conftest.beam conftest.$ac_ext
18427 fi
18428
18429
18430 fi
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18432 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18433       case "$gnupg_cv_func_ttyname_r_works" in
18434         *yes) ;;
18435         *) case " $LIBOBJS " in
18436   *" ttyname_r.$ac_objext "* ) ;;
18437   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18438  ;;
18439 esac
18440
18441            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18442
18443
18444 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18445
18446            ;;
18447       esac
18448     fi
18449   fi
18450
18451 if test "$ac_cv_func_ttyname_r" != yes; then
18452   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18453 ***
18454 *** ttyname() is not thread-safe and ttyname_r() does not exist
18455 ***" >&5
18456 $as_echo "$as_me: WARNING:
18457 ***
18458 *** ttyname() is not thread-safe and ttyname_r() does not exist
18459 ***" >&2;}
18460 fi
18461
18462 # Try to find a thread-safe version of getenv().
18463 have_thread_safe_getenv=no
18464
18465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18466 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18467 if ${ac_cv_gnu_library_2_1+:} false; then :
18468   $as_echo_n "(cached) " >&6
18469 else
18470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h.  */
18472
18473 #include <features.h>
18474 #ifdef __GNU_LIBRARY__
18475  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18476   Lucky GNU user
18477  #endif
18478 #endif
18479
18480 _ACEOF
18481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18482   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18483   ac_cv_gnu_library_2_1=yes
18484 else
18485   ac_cv_gnu_library_2_1=no
18486 fi
18487 rm -f conftest*
18488
18489
18490
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18493 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18494
18495     GLIBC21="$ac_cv_gnu_library_2_1"
18496
18497
18498 if test $GLIBC21 = yes; then
18499   have_thread_safe_getenv=yes
18500 fi
18501 if test $have_thread_safe_getenv = yes; then
18502
18503 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18504
18505 fi
18506 have_getenv_r=no
18507 for ac_func in getenv_r
18508 do :
18509   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18510 if test "x$ac_cv_func_getenv_r" = xyes; then :
18511   cat >>confdefs.h <<_ACEOF
18512 #define HAVE_GETENV_R 1
18513 _ACEOF
18514  have_getenv_r=yes
18515 fi
18516 done
18517
18518 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18520 ***
18521 *** getenv() is not thread-safe and getenv_r() does not exist
18522 ***" >&5
18523 $as_echo "$as_me: WARNING:
18524 ***
18525 *** getenv() is not thread-safe and getenv_r() does not exist
18526 ***" >&2;}
18527 fi
18528
18529 # For converting time strings to seconds since Epoch, we need the timegm
18530 # function.
18531 for ac_func in timegm
18532 do :
18533   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18534 if test "x$ac_cv_func_timegm" = xyes; then :
18535   cat >>confdefs.h <<_ACEOF
18536 #define HAVE_TIMEGM 1
18537 _ACEOF
18538
18539 fi
18540 done
18541
18542 if test "$ac_cv_func_timegm" != yes; then
18543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18544 ***
18545 *** timegm() not available - a non-thread-safe kludge will be used
18546 *** and the TZ variable might be changed at runtime.
18547 ***" >&5
18548 $as_echo "$as_me: WARNING:
18549 ***
18550 *** timegm() not available - a non-thread-safe kludge will be used
18551 *** and the TZ variable might be changed at runtime.
18552 ***" >&2;}
18553 fi
18554
18555 for ac_func in setlocale
18556 do :
18557   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18558 if test "x$ac_cv_func_setlocale" = xyes; then :
18559   cat >>confdefs.h <<_ACEOF
18560 #define HAVE_SETLOCALE 1
18561 _ACEOF
18562
18563 fi
18564 done
18565
18566
18567 # Checking for libgpg-error.
18568 have_gpg_error=no
18569
18570   gpg_error_config_prefix=""
18571
18572 # Check whether --with-libgpg-error-prefix was given.
18573 if test "${with_libgpg_error_prefix+set}" = set; then :
18574   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18575 fi
18576
18577
18578
18579 # Check whether --with-gpg-error-prefix was given.
18580 if test "${with_gpg_error_prefix+set}" = set; then :
18581   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18582 fi
18583
18584
18585   if test x"${GPG_ERROR_CONFIG}" = x ; then
18586      if test x"${gpg_error_config_prefix}" != x ; then
18587         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
18588      else
18589        case "${SYSROOT}" in
18590          /*)
18591            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
18592              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
18593            fi
18594            ;;
18595          '')
18596            ;;
18597           *)
18598            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18599 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18600            ;;
18601        esac
18602      fi
18603   fi
18604
18605   # Extract the first word of "gpg-error-config", so it can be a program name with args.
18606 set dummy gpg-error-config; ac_word=$2
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18608 $as_echo_n "checking for $ac_word... " >&6; }
18609 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18610   $as_echo_n "(cached) " >&6
18611 else
18612   case $GPG_ERROR_CONFIG in
18613   [\\/]* | ?:[\\/]*)
18614   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18615   ;;
18616   *)
18617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618 for as_dir in $PATH
18619 do
18620   IFS=$as_save_IFS
18621   test -z "$as_dir" && as_dir=.
18622     for ac_exec_ext in '' $ac_executable_extensions; do
18623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18624     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18626     break 2
18627   fi
18628 done
18629   done
18630 IFS=$as_save_IFS
18631
18632   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
18633   ;;
18634 esac
18635 fi
18636 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18637 if test -n "$GPG_ERROR_CONFIG"; then
18638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18639 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18640 else
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18643 fi
18644
18645
18646   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18648 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18649   ok=no
18650   if test "$GPG_ERROR_CONFIG" != "no" \
18651      && test -f "$GPG_ERROR_CONFIG" ; then
18652     req_major=`echo $min_gpg_error_version | \
18653                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18654     req_minor=`echo $min_gpg_error_version | \
18655                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18656     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18657     major=`echo $gpg_error_config_version | \
18658                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18659     minor=`echo $gpg_error_config_version | \
18660                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18661     if test "$major" -gt "$req_major"; then
18662         ok=yes
18663     else
18664         if test "$major" -eq "$req_major"; then
18665             if test "$minor" -ge "$req_minor"; then
18666                ok=yes
18667             fi
18668         fi
18669     fi
18670   fi
18671   if test $ok = yes; then
18672     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18673     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18674     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
18675     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
18676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18677 $as_echo "yes ($gpg_error_config_version)" >&6; }
18678     have_gpg_error=yes
18679     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18680     if test x"$gpg_error_config_host" != xnone ; then
18681       if test x"$gpg_error_config_host" != x"$host" ; then
18682   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18683 ***
18684 *** The config script $GPG_ERROR_CONFIG was
18685 *** built for $gpg_error_config_host and thus may not match the
18686 *** used host $host.
18687 *** You may want to use the configure option --with-gpg-error-prefix
18688 *** to specify a matching config script or use \$SYSROOT.
18689 ***" >&5
18690 $as_echo "$as_me: WARNING:
18691 ***
18692 *** The config script $GPG_ERROR_CONFIG was
18693 *** built for $gpg_error_config_host and thus may not match the
18694 *** used host $host.
18695 *** You may want to use the configure option --with-gpg-error-prefix
18696 *** to specify a matching config script or use \$SYSROOT.
18697 ***" >&2;}
18698         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
18699       fi
18700     fi
18701   else
18702     GPG_ERROR_CFLAGS=""
18703     GPG_ERROR_LIBS=""
18704     GPG_ERROR_MT_CFLAGS=""
18705     GPG_ERROR_MT_LIBS=""
18706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18708     have_gpg_error=no
18709   fi
18710
18711
18712
18713
18714
18715
18716 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18717
18718
18719 # And for libassuan.
18720 have_libassuan=no
18721
18722
18723 # Check whether --with-libassuan-prefix was given.
18724 if test "${with_libassuan_prefix+set}" = set; then :
18725   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18726 else
18727   libassuan_config_prefix=""
18728 fi
18729
18730   if test x$libassuan_config_prefix != x ; then
18731     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18732     if test x${LIBASSUAN_CONFIG+set} != xset ; then
18733       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18734     fi
18735   fi
18736
18737   if test -n "$ac_tool_prefix"; then
18738   # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18739 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18741 $as_echo_n "checking for $ac_word... " >&6; }
18742 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18743   $as_echo_n "(cached) " >&6
18744 else
18745   case $LIBASSUAN_CONFIG in
18746   [\\/]* | ?:[\\/]*)
18747   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18748   ;;
18749   *)
18750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18752 do
18753   IFS=$as_save_IFS
18754   test -z "$as_dir" && as_dir=.
18755     for ac_exec_ext in '' $ac_executable_extensions; do
18756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18759     break 2
18760   fi
18761 done
18762   done
18763 IFS=$as_save_IFS
18764
18765   ;;
18766 esac
18767 fi
18768 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18769 if test -n "$LIBASSUAN_CONFIG"; then
18770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18771 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18772 else
18773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18774 $as_echo "no" >&6; }
18775 fi
18776
18777
18778 fi
18779 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18780   ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18781   # Extract the first word of "libassuan-config", so it can be a program name with args.
18782 set dummy libassuan-config; ac_word=$2
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18784 $as_echo_n "checking for $ac_word... " >&6; }
18785 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18786   $as_echo_n "(cached) " >&6
18787 else
18788   case $ac_pt_LIBASSUAN_CONFIG in
18789   [\\/]* | ?:[\\/]*)
18790   ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18791   ;;
18792   *)
18793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794 for as_dir in $PATH
18795 do
18796   IFS=$as_save_IFS
18797   test -z "$as_dir" && as_dir=.
18798     for ac_exec_ext in '' $ac_executable_extensions; do
18799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18800     ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18802     break 2
18803   fi
18804 done
18805   done
18806 IFS=$as_save_IFS
18807
18808   ;;
18809 esac
18810 fi
18811 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18812 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18814 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18815 else
18816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18818 fi
18819
18820   if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18821     LIBASSUAN_CONFIG="no"
18822   else
18823     case $cross_compiling:$ac_tool_warned in
18824 yes:)
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18827 ac_tool_warned=yes ;;
18828 esac
18829     LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18830   fi
18831 else
18832   LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18833 fi
18834
18835
18836   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18837   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18838     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18839     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18840   else
18841     req_libassuan_api=0
18842     min_libassuan_version="$tmp"
18843   fi
18844
18845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18846 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18847   ok=no
18848   if test "$LIBASSUAN_CONFIG" != "no" \
18849      && test -f "$LIBASSUAN_CONFIG" ; then
18850     req_major=`echo $min_libassuan_version | \
18851                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18852     req_minor=`echo $min_libassuan_version | \
18853                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18854     req_micro=`echo $min_libassuan_version | \
18855                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18856
18857     libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18858     major=`echo $libassuan_config_version | \
18859                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18860     minor=`echo $libassuan_config_version | \
18861                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18862     micro=`echo $libassuan_config_version | \
18863                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18864
18865     if test "$major" -gt "$req_major"; then
18866         ok=yes
18867     else
18868         if test "$major" -eq "$req_major"; then
18869             if test "$minor" -gt "$req_minor"; then
18870                ok=yes
18871             else
18872                if test "$minor" -eq "$req_minor"; then
18873                    if test "$micro" -ge "$req_micro"; then
18874                      ok=yes
18875                    fi
18876                fi
18877             fi
18878         fi
18879     fi
18880   fi
18881
18882   if test $ok = yes; then
18883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18884 $as_echo "yes ($libassuan_config_version)" >&6; }
18885   else
18886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887 $as_echo "no" >&6; }
18888   fi
18889
18890   if test $ok = yes; then
18891     if test "$req_libassuan_api" -gt 0 ; then
18892       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18893       if test "$tmp" -gt 0 ; then
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18895 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18896         if test "$req_libassuan_api" -eq "$tmp" ; then
18897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18898 $as_echo "okay" >&6; }
18899         else
18900           ok=no
18901           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
18902 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
18903         fi
18904       fi
18905     fi
18906   fi
18907
18908   if test $ok = yes; then
18909     if test x"$host" != x ; then
18910       libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18911       if test x"$libassuan_config_host" != xnone ; then
18912         if test x"$libassuan_config_host" != x"$host" ; then
18913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18914 ***
18915 *** The config script $LIBASSUAN_CONFIG was
18916 *** built for $libassuan_config_host and thus may not match the
18917 *** used host $host.
18918 *** You may want to use the configure option --with-libassuan-prefix
18919 *** to specify a matching config script.
18920 ***" >&5
18921 $as_echo "$as_me: WARNING:
18922 ***
18923 *** The config script $LIBASSUAN_CONFIG was
18924 *** built for $libassuan_config_host and thus may not match the
18925 *** used host $host.
18926 *** You may want to use the configure option --with-libassuan-prefix
18927 *** to specify a matching config script.
18928 ***" >&2;}
18929         fi
18930       fi
18931     fi
18932   fi
18933
18934   if test $ok = yes; then
18935     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18936     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18937     have_libassuan=yes
18938   else
18939     LIBASSUAN_CFLAGS=""
18940     LIBASSUAN_LIBS=""
18941     have_libassuan=no
18942   fi
18943
18944
18945
18946 if test "$have_libassuan" = "yes"; then
18947
18948 cat >>confdefs.h <<_ACEOF
18949 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18950 _ACEOF
18951
18952 fi
18953
18954
18955 #
18956 # Other checks
18957 #
18958
18959 # Check for funopen
18960 for ac_func in funopen
18961 do :
18962   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18963 if test "x$ac_cv_func_funopen" = xyes; then :
18964   cat >>confdefs.h <<_ACEOF
18965 #define HAVE_FUNOPEN 1
18966 _ACEOF
18967
18968 fi
18969 done
18970
18971 if test $ac_cv_func_funopen != yes; then
18972     # No funopen but we can implement that in terms of fopencookie.
18973     for ac_func in fopencookie
18974 do :
18975   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18976 if test "x$ac_cv_func_fopencookie" = xyes; then :
18977   cat >>confdefs.h <<_ACEOF
18978 #define HAVE_FOPENCOOKIE 1
18979 _ACEOF
18980
18981 fi
18982 done
18983
18984     if test $ac_cv_func_fopencookie = yes; then
18985         ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18986 if test "x$ac_cv_func_funopen" = xyes; then :
18987   $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
18988
18989 else
18990   case " $LIBOBJS " in
18991   *" funopen.$ac_objext "* ) ;;
18992   *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
18993  ;;
18994 esac
18995
18996 fi
18997
18998
18999     else
19000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19001 ***
19002 *** No implementation of fopencookie or funopen available
19003 ***" >&5
19004 $as_echo "$as_me: WARNING:
19005 ***
19006 *** No implementation of fopencookie or funopen available
19007 ***" >&2;}
19008     fi
19009 fi
19010
19011 # Check for getgid etc
19012 for ac_func in getgid getegid
19013 do :
19014   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19017   cat >>confdefs.h <<_ACEOF
19018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19019 _ACEOF
19020
19021 fi
19022 done
19023
19024
19025
19026 # Replacement functions.
19027 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
19028 if test "x$ac_cv_func_stpcpy" = xyes; then :
19029   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
19030
19031 else
19032   case " $LIBOBJS " in
19033   *" stpcpy.$ac_objext "* ) ;;
19034   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
19035  ;;
19036 esac
19037
19038 fi
19039
19040
19041 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19042 if test "x$ac_cv_func_setenv" = xyes; then :
19043   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
19044
19045 else
19046   case " $LIBOBJS " in
19047   *" setenv.$ac_objext "* ) ;;
19048   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19049  ;;
19050 esac
19051
19052 fi
19053
19054
19055
19056 # Assuan check for descriptor passing.
19057 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
19058 #include <stdlib.h>
19059 #include <stddef.h>
19060 #include <stdio.h>
19061 #include <sys/types.h>
19062 #include <sys/socket.h>
19063 #include <sys/un.h>
19064 #if HAVE_SYS_UIO_H
19065 #include <sys/uio.h>
19066 #endif
19067 #include <unistd.h>
19068
19069 "
19070 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
19071   supports_descriptor_passing=yes
19072 else
19073   supports_descriptor_passing=no
19074                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19075 ***
19076 *** Data structure for sending ancillary data missing.
19077 *** Descriptor passing won't work.
19078 ***" >&5
19079 $as_echo "$as_me: WARNING:
19080 ***
19081 *** Data structure for sending ancillary data missing.
19082 *** Descriptor passing won't work.
19083 ***" >&2;}
19084 fi
19085
19086
19087
19088 case "${host}" in
19089     *-apple-darwin*)
19090       use_descriptor_passing=no
19091       ;;
19092     *)
19093       use_descriptor_passing=yes
19094       ;;
19095 esac
19096 # Check whether --enable-fd-passing was given.
19097 if test "${enable_fd_passing+set}" = set; then :
19098   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
19099 fi
19100
19101
19102 if test "$supports_descriptor_passing" != "yes"; then
19103   use_descriptor_passing=no
19104 fi
19105
19106 if test "$use_descriptor_passing" = "yes"; then
19107
19108 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
19109
19110 fi
19111
19112  if test "$use_descriptor_passing" = "yes"; then
19113   USE_DESCRIPTOR_PASSING_TRUE=
19114   USE_DESCRIPTOR_PASSING_FALSE='#'
19115 else
19116   USE_DESCRIPTOR_PASSING_TRUE='#'
19117   USE_DESCRIPTOR_PASSING_FALSE=
19118 fi
19119
19120
19121
19122 uiserver=no
19123 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
19124   uiserver=yes
19125 fi
19126 if test "$uiserver" != "no"; then
19127
19128 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
19129
19130 fi
19131  if test "$uiserver" != "no"; then
19132   HAVE_UISERVER_TRUE=
19133   HAVE_UISERVER_FALSE='#'
19134 else
19135   HAVE_UISERVER_TRUE='#'
19136   HAVE_UISERVER_FALSE=
19137 fi
19138
19139
19140
19141 # Add a few constants to help porting to W32
19142
19143
19144
19145
19146
19147 # Substitution used for gpgme-config
19148 GPGME_CONFIG_LIBS="-lgpgme"
19149 GPGME_CONFIG_CFLAGS=""
19150 GPGME_CONFIG_HOST="$host"
19151
19152
19153
19154
19155
19156 # Frob'da Variables
19157 LTLIBOBJS=`echo "$LIBOBJS" |
19158            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
19159
19160
19161 # Some checks for gpgme-tool
19162 # Done at top: AC_CHECK_HEADER([argp.h])
19163 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
19164 "
19165 if test "x$ac_cv_type_error_t" = xyes; then :
19166
19167 cat >>confdefs.h <<_ACEOF
19168 #define HAVE_ERROR_T 1
19169 _ACEOF
19170
19171
19172 else
19173
19174 $as_echo "#define error_t int" >>confdefs.h
19175
19176 fi
19177
19178
19179
19180 # A substitution to set generated files in a Emacs buffer to read-only.
19181 emacs_local_vars_begin='Local Variables:'
19182
19183 emacs_local_vars_read_only='buffer-read-only: t'
19184
19185 emacs_local_vars_end='End:'
19186
19187
19188
19189 # Last check.
19190 die=no
19191 if test "$have_gpg_error" = "no"; then
19192    die=yes
19193    { $as_echo "$as_me:${as_lineno-$LINENO}:
19194 ***
19195 *** You need libgpg-error to build this program.
19196 **  This library is for example available at
19197 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19198 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19199 ***" >&5
19200 $as_echo "$as_me:
19201 ***
19202 *** You need libgpg-error to build this program.
19203 **  This library is for example available at
19204 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19205 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19206 ***" >&6;}
19207 fi
19208 if test "$have_libassuan" = "no"; then
19209    die=yes
19210    { $as_echo "$as_me:${as_lineno-$LINENO}:
19211 ***
19212 *** You need libassuan to build this program.
19213 *** This library is for example available at
19214 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19215 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19216 ***" >&5
19217 $as_echo "$as_me:
19218 ***
19219 *** You need libassuan to build this program.
19220 *** This library is for example available at
19221 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19222 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19223 ***" >&6;}
19224 fi
19225
19226 if test "$die" = "yes"; then
19227     as_fn_error $? "
19228 ***
19229 *** Required libraries not found. Please consult the above messages
19230 *** and install them before running configure again.
19231 ***" "$LINENO" 5
19232 fi
19233
19234
19235 #
19236 # Create config files
19237
19238 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc src/gpgme.h"
19239
19240 ac_config_files="$ac_config_files src/gpgme-config"
19241
19242 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19243
19244 cat >confcache <<\_ACEOF
19245 # This file is a shell script that caches the results of configure
19246 # tests run on this system so they can be shared between configure
19247 # scripts and configure runs, see configure's option --config-cache.
19248 # It is not useful on other systems.  If it contains results you don't
19249 # want to keep, you may remove or edit it.
19250 #
19251 # config.status only pays attention to the cache file if you give it
19252 # the --recheck option to rerun configure.
19253 #
19254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19256 # following values.
19257
19258 _ACEOF
19259
19260 # The following way of writing the cache mishandles newlines in values,
19261 # but we know of no workaround that is simple, portable, and efficient.
19262 # So, we kill variables containing newlines.
19263 # Ultrix sh set writes to stderr and can't be redirected directly,
19264 # and sets the high bit in the cache file unless we assign to the vars.
19265 (
19266   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19267     eval ac_val=\$$ac_var
19268     case $ac_val in #(
19269     *${as_nl}*)
19270       case $ac_var in #(
19271       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19273       esac
19274       case $ac_var in #(
19275       _ | IFS | as_nl) ;; #(
19276       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19277       *) { eval $ac_var=; unset $ac_var;} ;;
19278       esac ;;
19279     esac
19280   done
19281
19282   (set) 2>&1 |
19283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19284     *${as_nl}ac_space=\ *)
19285       # `set' does not quote correctly, so add quotes: double-quote
19286       # substitution turns \\\\ into \\, and sed turns \\ into \.
19287       sed -n \
19288         "s/'/'\\\\''/g;
19289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19290       ;; #(
19291     *)
19292       # `set' quotes correctly as required by POSIX, so do not add quotes.
19293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19294       ;;
19295     esac |
19296     sort
19297 ) |
19298   sed '
19299      /^ac_cv_env_/b end
19300      t clear
19301      :clear
19302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19303      t end
19304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19305      :end' >>confcache
19306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19307   if test -w "$cache_file"; then
19308     if test "x$cache_file" != "x/dev/null"; then
19309       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19310 $as_echo "$as_me: updating cache $cache_file" >&6;}
19311       if test ! -f "$cache_file" || test -h "$cache_file"; then
19312         cat confcache >"$cache_file"
19313       else
19314         case $cache_file in #(
19315         */* | ?:*)
19316           mv -f confcache "$cache_file"$$ &&
19317           mv -f "$cache_file"$$ "$cache_file" ;; #(
19318         *)
19319           mv -f confcache "$cache_file" ;;
19320         esac
19321       fi
19322     fi
19323   else
19324     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19325 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19326   fi
19327 fi
19328 rm -f confcache
19329
19330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19331 # Let make expand exec_prefix.
19332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19333
19334 DEFS=-DHAVE_CONFIG_H
19335
19336 ac_libobjs=
19337 ac_ltlibobjs=
19338 U=
19339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19340   # 1. Remove the extension, and $U if already installed.
19341   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19342   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19343   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19344   #    will be set to the directory where LIBOBJS objects are built.
19345   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19346   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19347 done
19348 LIBOBJS=$ac_libobjs
19349
19350 LTLIBOBJS=$ac_ltlibobjs
19351
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19354 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19355    if test -n "$am_sleep_pid"; then
19356      # Hide warnings about reused PIDs.
19357      wait $am_sleep_pid 2>/dev/null
19358    fi
19359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19360 $as_echo "done" >&6; }
19361  if test -n "$EXEEXT"; then
19362   am__EXEEXT_TRUE=
19363   am__EXEEXT_FALSE='#'
19364 else
19365   am__EXEEXT_TRUE='#'
19366   am__EXEEXT_FALSE=
19367 fi
19368
19369 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19370   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19372 fi
19373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19374   as_fn_error $? "conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19376 fi
19377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19378   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19380 fi
19381 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19382   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19384 fi
19385 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19386   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19388 fi
19389 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19390   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19392 fi
19393 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19394   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19396 fi
19397 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19398   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19400 fi
19401 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19402   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19404 fi
19405 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19406   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19408 fi
19409 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19410   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19412 fi
19413 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19414   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19416 fi
19417 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19418   as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19420 fi
19421 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19422   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19424 fi
19425 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19426   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19428 fi
19429 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19430   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19432 fi
19433 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19434   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19436 fi
19437 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19438   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19440 fi
19441 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19442   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19444 fi
19445 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19446   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19448 fi
19449
19450 : "${CONFIG_STATUS=./config.status}"
19451 ac_write_fail=0
19452 ac_clean_files_save=$ac_clean_files
19453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19456 as_write_fail=0
19457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19458 #! $SHELL
19459 # Generated by $as_me.
19460 # Run this file to recreate the current configuration.
19461 # Compiler output produced by configure, useful for debugging
19462 # configure, is in config.log if it exists.
19463
19464 debug=false
19465 ac_cs_recheck=false
19466 ac_cs_silent=false
19467
19468 SHELL=\${CONFIG_SHELL-$SHELL}
19469 export SHELL
19470 _ASEOF
19471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19472 ## -------------------- ##
19473 ## M4sh Initialization. ##
19474 ## -------------------- ##
19475
19476 # Be more Bourne compatible
19477 DUALCASE=1; export DUALCASE # for MKS sh
19478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19479   emulate sh
19480   NULLCMD=:
19481   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19482   # is contrary to our usage.  Disable this feature.
19483   alias -g '${1+"$@"}'='"$@"'
19484   setopt NO_GLOB_SUBST
19485 else
19486   case `(set -o) 2>/dev/null` in #(
19487   *posix*) :
19488     set -o posix ;; #(
19489   *) :
19490      ;;
19491 esac
19492 fi
19493
19494
19495 as_nl='
19496 '
19497 export as_nl
19498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19502 # Prefer a ksh shell builtin over an external printf program on Solaris,
19503 # but without wasting forks for bash or zsh.
19504 if test -z "$BASH_VERSION$ZSH_VERSION" \
19505     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19506   as_echo='print -r --'
19507   as_echo_n='print -rn --'
19508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19509   as_echo='printf %s\n'
19510   as_echo_n='printf %s'
19511 else
19512   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19513     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19514     as_echo_n='/usr/ucb/echo -n'
19515   else
19516     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19517     as_echo_n_body='eval
19518       arg=$1;
19519       case $arg in #(
19520       *"$as_nl"*)
19521         expr "X$arg" : "X\\(.*\\)$as_nl";
19522         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19523       esac;
19524       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19525     '
19526     export as_echo_n_body
19527     as_echo_n='sh -c $as_echo_n_body as_echo'
19528   fi
19529   export as_echo_body
19530   as_echo='sh -c $as_echo_body as_echo'
19531 fi
19532
19533 # The user is always right.
19534 if test "${PATH_SEPARATOR+set}" != set; then
19535   PATH_SEPARATOR=:
19536   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19537     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19538       PATH_SEPARATOR=';'
19539   }
19540 fi
19541
19542
19543 # IFS
19544 # We need space, tab and new line, in precisely that order.  Quoting is
19545 # there to prevent editors from complaining about space-tab.
19546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19547 # splitting by setting IFS to empty value.)
19548 IFS=" ""        $as_nl"
19549
19550 # Find who we are.  Look in the path if we contain no directory separator.
19551 as_myself=
19552 case $0 in #((
19553   *[\\/]* ) as_myself=$0 ;;
19554   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19556 do
19557   IFS=$as_save_IFS
19558   test -z "$as_dir" && as_dir=.
19559     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19560   done
19561 IFS=$as_save_IFS
19562
19563      ;;
19564 esac
19565 # We did not find ourselves, most probably we were run as `sh COMMAND'
19566 # in which case we are not to be found in the path.
19567 if test "x$as_myself" = x; then
19568   as_myself=$0
19569 fi
19570 if test ! -f "$as_myself"; then
19571   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19572   exit 1
19573 fi
19574
19575 # Unset variables that we do not need and which cause bugs (e.g. in
19576 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19577 # suppresses any "Segmentation fault" message there.  '((' could
19578 # trigger a bug in pdksh 5.2.14.
19579 for as_var in BASH_ENV ENV MAIL MAILPATH
19580 do eval test x\${$as_var+set} = xset \
19581   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19582 done
19583 PS1='$ '
19584 PS2='> '
19585 PS4='+ '
19586
19587 # NLS nuisances.
19588 LC_ALL=C
19589 export LC_ALL
19590 LANGUAGE=C
19591 export LANGUAGE
19592
19593 # CDPATH.
19594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19595
19596
19597 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19598 # ----------------------------------------
19599 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19600 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19601 # script with STATUS, using 1 if that was 0.
19602 as_fn_error ()
19603 {
19604   as_status=$1; test $as_status -eq 0 && as_status=1
19605   if test "$4"; then
19606     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19607     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19608   fi
19609   $as_echo "$as_me: error: $2" >&2
19610   as_fn_exit $as_status
19611 } # as_fn_error
19612
19613
19614 # as_fn_set_status STATUS
19615 # -----------------------
19616 # Set $? to STATUS, without forking.
19617 as_fn_set_status ()
19618 {
19619   return $1
19620 } # as_fn_set_status
19621
19622 # as_fn_exit STATUS
19623 # -----------------
19624 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19625 as_fn_exit ()
19626 {
19627   set +e
19628   as_fn_set_status $1
19629   exit $1
19630 } # as_fn_exit
19631
19632 # as_fn_unset VAR
19633 # ---------------
19634 # Portably unset VAR.
19635 as_fn_unset ()
19636 {
19637   { eval $1=; unset $1;}
19638 }
19639 as_unset=as_fn_unset
19640 # as_fn_append VAR VALUE
19641 # ----------------------
19642 # Append the text in VALUE to the end of the definition contained in VAR. Take
19643 # advantage of any shell optimizations that allow amortized linear growth over
19644 # repeated appends, instead of the typical quadratic growth present in naive
19645 # implementations.
19646 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19647   eval 'as_fn_append ()
19648   {
19649     eval $1+=\$2
19650   }'
19651 else
19652   as_fn_append ()
19653   {
19654     eval $1=\$$1\$2
19655   }
19656 fi # as_fn_append
19657
19658 # as_fn_arith ARG...
19659 # ------------------
19660 # Perform arithmetic evaluation on the ARGs, and store the result in the
19661 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19662 # must be portable across $(()) and expr.
19663 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19664   eval 'as_fn_arith ()
19665   {
19666     as_val=$(( $* ))
19667   }'
19668 else
19669   as_fn_arith ()
19670   {
19671     as_val=`expr "$@" || test $? -eq 1`
19672   }
19673 fi # as_fn_arith
19674
19675
19676 if expr a : '\(a\)' >/dev/null 2>&1 &&
19677    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19678   as_expr=expr
19679 else
19680   as_expr=false
19681 fi
19682
19683 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19684   as_basename=basename
19685 else
19686   as_basename=false
19687 fi
19688
19689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19690   as_dirname=dirname
19691 else
19692   as_dirname=false
19693 fi
19694
19695 as_me=`$as_basename -- "$0" ||
19696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19697          X"$0" : 'X\(//\)$' \| \
19698          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19699 $as_echo X/"$0" |
19700     sed '/^.*\/\([^/][^/]*\)\/*$/{
19701             s//\1/
19702             q
19703           }
19704           /^X\/\(\/\/\)$/{
19705             s//\1/
19706             q
19707           }
19708           /^X\/\(\/\).*/{
19709             s//\1/
19710             q
19711           }
19712           s/.*/./; q'`
19713
19714 # Avoid depending upon Character Ranges.
19715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19718 as_cr_digits='0123456789'
19719 as_cr_alnum=$as_cr_Letters$as_cr_digits
19720
19721 ECHO_C= ECHO_N= ECHO_T=
19722 case `echo -n x` in #(((((
19723 -n*)
19724   case `echo 'xy\c'` in
19725   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19726   xy)  ECHO_C='\c';;
19727   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19728        ECHO_T=' ';;
19729   esac;;
19730 *)
19731   ECHO_N='-n';;
19732 esac
19733
19734 rm -f conf$$ conf$$.exe conf$$.file
19735 if test -d conf$$.dir; then
19736   rm -f conf$$.dir/conf$$.file
19737 else
19738   rm -f conf$$.dir
19739   mkdir conf$$.dir 2>/dev/null
19740 fi
19741 if (echo >conf$$.file) 2>/dev/null; then
19742   if ln -s conf$$.file conf$$ 2>/dev/null; then
19743     as_ln_s='ln -s'
19744     # ... but there are two gotchas:
19745     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19746     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19747     # In both cases, we have to default to `cp -pR'.
19748     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19749       as_ln_s='cp -pR'
19750   elif ln conf$$.file conf$$ 2>/dev/null; then
19751     as_ln_s=ln
19752   else
19753     as_ln_s='cp -pR'
19754   fi
19755 else
19756   as_ln_s='cp -pR'
19757 fi
19758 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19759 rmdir conf$$.dir 2>/dev/null
19760
19761
19762 # as_fn_mkdir_p
19763 # -------------
19764 # Create "$as_dir" as a directory, including parents if necessary.
19765 as_fn_mkdir_p ()
19766 {
19767
19768   case $as_dir in #(
19769   -*) as_dir=./$as_dir;;
19770   esac
19771   test -d "$as_dir" || eval $as_mkdir_p || {
19772     as_dirs=
19773     while :; do
19774       case $as_dir in #(
19775       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19776       *) as_qdir=$as_dir;;
19777       esac
19778       as_dirs="'$as_qdir' $as_dirs"
19779       as_dir=`$as_dirname -- "$as_dir" ||
19780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19781          X"$as_dir" : 'X\(//\)[^/]' \| \
19782          X"$as_dir" : 'X\(//\)$' \| \
19783          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19784 $as_echo X"$as_dir" |
19785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19786             s//\1/
19787             q
19788           }
19789           /^X\(\/\/\)[^/].*/{
19790             s//\1/
19791             q
19792           }
19793           /^X\(\/\/\)$/{
19794             s//\1/
19795             q
19796           }
19797           /^X\(\/\).*/{
19798             s//\1/
19799             q
19800           }
19801           s/.*/./; q'`
19802       test -d "$as_dir" && break
19803     done
19804     test -z "$as_dirs" || eval "mkdir $as_dirs"
19805   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19806
19807
19808 } # as_fn_mkdir_p
19809 if mkdir -p . 2>/dev/null; then
19810   as_mkdir_p='mkdir -p "$as_dir"'
19811 else
19812   test -d ./-p && rmdir ./-p
19813   as_mkdir_p=false
19814 fi
19815
19816
19817 # as_fn_executable_p FILE
19818 # -----------------------
19819 # Test if FILE is an executable regular file.
19820 as_fn_executable_p ()
19821 {
19822   test -f "$1" && test -x "$1"
19823 } # as_fn_executable_p
19824 as_test_x='test -x'
19825 as_executable_p=as_fn_executable_p
19826
19827 # Sed expression to map a string onto a valid CPP name.
19828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19829
19830 # Sed expression to map a string onto a valid variable name.
19831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19832
19833
19834 exec 6>&1
19835 ## ----------------------------------- ##
19836 ## Main body of $CONFIG_STATUS script. ##
19837 ## ----------------------------------- ##
19838 _ASEOF
19839 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19840
19841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19842 # Save the log message, to keep $0 and so on meaningful, and to
19843 # report actual input values of CONFIG_FILES etc. instead of their
19844 # values after options handling.
19845 ac_log="
19846 This file was extended by gpgme $as_me 1.5.5, which was
19847 generated by GNU Autoconf 2.69.  Invocation command line was
19848
19849   CONFIG_FILES    = $CONFIG_FILES
19850   CONFIG_HEADERS  = $CONFIG_HEADERS
19851   CONFIG_LINKS    = $CONFIG_LINKS
19852   CONFIG_COMMANDS = $CONFIG_COMMANDS
19853   $ $0 $@
19854
19855 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19856 "
19857
19858 _ACEOF
19859
19860 case $ac_config_files in *"
19861 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19862 esac
19863
19864 case $ac_config_headers in *"
19865 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19866 esac
19867
19868
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 # Files that config.status was made for.
19871 config_files="$ac_config_files"
19872 config_headers="$ac_config_headers"
19873 config_commands="$ac_config_commands"
19874
19875 _ACEOF
19876
19877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19878 ac_cs_usage="\
19879 \`$as_me' instantiates files and other configuration actions
19880 from templates according to the current configuration.  Unless the files
19881 and actions are specified as TAGs, all are instantiated by default.
19882
19883 Usage: $0 [OPTION]... [TAG]...
19884
19885   -h, --help       print this help, then exit
19886   -V, --version    print version number and configuration settings, then exit
19887       --config     print configuration, then exit
19888   -q, --quiet, --silent
19889                    do not print progress messages
19890   -d, --debug      don't remove temporary files
19891       --recheck    update $as_me by reconfiguring in the same conditions
19892       --file=FILE[:TEMPLATE]
19893                    instantiate the configuration file FILE
19894       --header=FILE[:TEMPLATE]
19895                    instantiate the configuration header FILE
19896
19897 Configuration files:
19898 $config_files
19899
19900 Configuration headers:
19901 $config_headers
19902
19903 Configuration commands:
19904 $config_commands
19905
19906 Report bugs to <http://bugs.gnupg.org>."
19907
19908 _ACEOF
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19911 ac_cs_version="\\
19912 gpgme config.status 1.5.5
19913 configured by $0, generated by GNU Autoconf 2.69,
19914   with options \\"\$ac_cs_config\\"
19915
19916 Copyright (C) 2012 Free Software Foundation, Inc.
19917 This config.status script is free software; the Free Software Foundation
19918 gives unlimited permission to copy, distribute and modify it."
19919
19920 ac_pwd='$ac_pwd'
19921 srcdir='$srcdir'
19922 INSTALL='$INSTALL'
19923 MKDIR_P='$MKDIR_P'
19924 AWK='$AWK'
19925 test -n "\$AWK" || AWK=awk
19926 _ACEOF
19927
19928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929 # The default lists apply if the user does not specify any file.
19930 ac_need_defaults=:
19931 while test $# != 0
19932 do
19933   case $1 in
19934   --*=?*)
19935     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19936     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19937     ac_shift=:
19938     ;;
19939   --*=)
19940     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19941     ac_optarg=
19942     ac_shift=:
19943     ;;
19944   *)
19945     ac_option=$1
19946     ac_optarg=$2
19947     ac_shift=shift
19948     ;;
19949   esac
19950
19951   case $ac_option in
19952   # Handling of the options.
19953   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19954     ac_cs_recheck=: ;;
19955   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19956     $as_echo "$ac_cs_version"; exit ;;
19957   --config | --confi | --conf | --con | --co | --c )
19958     $as_echo "$ac_cs_config"; exit ;;
19959   --debug | --debu | --deb | --de | --d | -d )
19960     debug=: ;;
19961   --file | --fil | --fi | --f )
19962     $ac_shift
19963     case $ac_optarg in
19964     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19965     '') as_fn_error $? "missing file argument" ;;
19966     esac
19967     as_fn_append CONFIG_FILES " '$ac_optarg'"
19968     ac_need_defaults=false;;
19969   --header | --heade | --head | --hea )
19970     $ac_shift
19971     case $ac_optarg in
19972     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19973     esac
19974     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19975     ac_need_defaults=false;;
19976   --he | --h)
19977     # Conflict between --help and --header
19978     as_fn_error $? "ambiguous option: \`$1'
19979 Try \`$0 --help' for more information.";;
19980   --help | --hel | -h )
19981     $as_echo "$ac_cs_usage"; exit ;;
19982   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19983   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19984     ac_cs_silent=: ;;
19985
19986   # This is an error.
19987   -*) as_fn_error $? "unrecognized option: \`$1'
19988 Try \`$0 --help' for more information." ;;
19989
19990   *) as_fn_append ac_config_targets " $1"
19991      ac_need_defaults=false ;;
19992
19993   esac
19994   shift
19995 done
19996
19997 ac_configure_extra_args=
19998
19999 if $ac_cs_silent; then
20000   exec 6>/dev/null
20001   ac_configure_extra_args="$ac_configure_extra_args --silent"
20002 fi
20003
20004 _ACEOF
20005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 if \$ac_cs_recheck; then
20007   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20008   shift
20009   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20010   CONFIG_SHELL='$SHELL'
20011   export CONFIG_SHELL
20012   exec "\$@"
20013 fi
20014
20015 _ACEOF
20016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20017 exec 5>>config.log
20018 {
20019   echo
20020   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20021 ## Running $as_me. ##
20022 _ASBOX
20023   $as_echo "$ac_log"
20024 } >&5
20025
20026 _ACEOF
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 #
20029 # INIT-COMMANDS
20030 #
20031 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20032
20033
20034 # The HP-UX ksh and POSIX shell print the target directory to stdout
20035 # if CDPATH is set.
20036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20037
20038 sed_quote_subst='$sed_quote_subst'
20039 double_quote_subst='$double_quote_subst'
20040 delay_variable_subst='$delay_variable_subst'
20041 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20042 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20043 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20044 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20045 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20047 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20048 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20049 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20050 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20051 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20052 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20053 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20054 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20055 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20056 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20057 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20058 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20059 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20060 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20061 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20062 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20063 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20064 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20065 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20066 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20067 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20068 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20069 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20070 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20071 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20072 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20073 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20074 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20075 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20076 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20077 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20078 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20079 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20080 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20098 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"`'
20099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20133 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20134 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20135 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20136 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20137 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20138 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20139 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20140 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20141 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20142 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20143 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20144 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20145 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20146 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20147 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20148 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20149 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20150 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20151 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20152 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20153 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20154 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20155 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20156 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20157 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20158 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20159 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20160 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20161 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20162 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20163 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20164 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20165 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20166 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20167 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20168 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20169 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20170 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20171 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20172 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20173 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20174 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20175 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20176 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20177 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20178 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20179 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20180 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20181 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20182 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20183 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20184 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20185 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20186 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20187 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20188 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20189 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20190 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20191 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20192 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20193 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20194 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20195 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20196 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20197 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20198 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20199 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20200 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20201 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20202 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20203 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20204 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20205 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20206 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20207 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20208 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20209 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20210 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20211 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20212 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20213 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20214 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20215 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20216 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20217 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20218 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20219 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20220 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20222 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20223 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20224 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20225 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20226 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20228 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20229 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20230 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20231 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20232 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20233 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20234 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20235 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20236 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20237 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20238 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20239 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20240 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20241 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20242 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20243 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20244 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20245 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20246 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20247 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20248 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20249 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20250 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20251 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20252 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20253 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20254 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20255 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20256 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20257 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20258 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20259 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20260 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20261 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20262 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20263 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20264 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20265 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20266 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20267 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20268 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20269 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20270 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20271 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20272 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20273 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20274
20275 LTCC='$LTCC'
20276 LTCFLAGS='$LTCFLAGS'
20277 compiler='$compiler_DEFAULT'
20278
20279 # A function that is used when there is no print builtin or printf.
20280 func_fallback_echo ()
20281 {
20282   eval 'cat <<_LTECHO_EOF
20283 \$1
20284 _LTECHO_EOF'
20285 }
20286
20287 # Quote evaled strings.
20288 for var in AS \
20289 DLLTOOL \
20290 OBJDUMP \
20291 SHELL \
20292 ECHO \
20293 PATH_SEPARATOR \
20294 SED \
20295 GREP \
20296 EGREP \
20297 FGREP \
20298 LD \
20299 NM \
20300 LN_S \
20301 lt_SP2NL \
20302 lt_NL2SP \
20303 reload_flag \
20304 deplibs_check_method \
20305 file_magic_cmd \
20306 file_magic_glob \
20307 want_nocaseglob \
20308 sharedlib_from_linklib_cmd \
20309 AR \
20310 AR_FLAGS \
20311 archiver_list_spec \
20312 STRIP \
20313 RANLIB \
20314 CC \
20315 CFLAGS \
20316 compiler \
20317 lt_cv_sys_global_symbol_pipe \
20318 lt_cv_sys_global_symbol_to_cdecl \
20319 lt_cv_sys_global_symbol_to_c_name_address \
20320 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20321 nm_file_list_spec \
20322 lt_prog_compiler_no_builtin_flag \
20323 lt_prog_compiler_pic \
20324 lt_prog_compiler_wl \
20325 lt_prog_compiler_static \
20326 lt_cv_prog_compiler_c_o \
20327 need_locks \
20328 MANIFEST_TOOL \
20329 DSYMUTIL \
20330 NMEDIT \
20331 LIPO \
20332 OTOOL \
20333 OTOOL64 \
20334 shrext_cmds \
20335 export_dynamic_flag_spec \
20336 whole_archive_flag_spec \
20337 compiler_needs_object \
20338 with_gnu_ld \
20339 allow_undefined_flag \
20340 no_undefined_flag \
20341 hardcode_libdir_flag_spec \
20342 hardcode_libdir_separator \
20343 exclude_expsyms \
20344 include_expsyms \
20345 file_list_spec \
20346 variables_saved_for_relink \
20347 libname_spec \
20348 library_names_spec \
20349 soname_spec \
20350 install_override_mode \
20351 finish_eval \
20352 old_striplib \
20353 striplib \
20354 compiler_lib_search_dirs \
20355 predep_objects \
20356 postdep_objects \
20357 predeps \
20358 postdeps \
20359 compiler_lib_search_path \
20360 LD_CXX \
20361 LD_RC \
20362 reload_flag_CXX \
20363 reload_flag_RC \
20364 compiler_CXX \
20365 compiler_RC \
20366 lt_prog_compiler_no_builtin_flag_CXX \
20367 lt_prog_compiler_no_builtin_flag_RC \
20368 lt_prog_compiler_pic_CXX \
20369 lt_prog_compiler_pic_RC \
20370 lt_prog_compiler_wl_CXX \
20371 lt_prog_compiler_wl_RC \
20372 lt_prog_compiler_static_CXX \
20373 lt_prog_compiler_static_RC \
20374 lt_cv_prog_compiler_c_o_CXX \
20375 lt_cv_prog_compiler_c_o_RC \
20376 export_dynamic_flag_spec_CXX \
20377 export_dynamic_flag_spec_RC \
20378 whole_archive_flag_spec_CXX \
20379 whole_archive_flag_spec_RC \
20380 compiler_needs_object_CXX \
20381 compiler_needs_object_RC \
20382 with_gnu_ld_CXX \
20383 with_gnu_ld_RC \
20384 allow_undefined_flag_CXX \
20385 allow_undefined_flag_RC \
20386 no_undefined_flag_CXX \
20387 no_undefined_flag_RC \
20388 hardcode_libdir_flag_spec_CXX \
20389 hardcode_libdir_flag_spec_RC \
20390 hardcode_libdir_separator_CXX \
20391 hardcode_libdir_separator_RC \
20392 exclude_expsyms_CXX \
20393 exclude_expsyms_RC \
20394 include_expsyms_CXX \
20395 include_expsyms_RC \
20396 file_list_spec_CXX \
20397 file_list_spec_RC \
20398 compiler_lib_search_dirs_CXX \
20399 compiler_lib_search_dirs_RC \
20400 predep_objects_CXX \
20401 predep_objects_RC \
20402 postdep_objects_CXX \
20403 postdep_objects_RC \
20404 predeps_CXX \
20405 predeps_RC \
20406 postdeps_CXX \
20407 postdeps_RC \
20408 compiler_lib_search_path_CXX \
20409 compiler_lib_search_path_RC; do
20410     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20411     *[\\\\\\\`\\"\\\$]*)
20412       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20413       ;;
20414     *)
20415       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20416       ;;
20417     esac
20418 done
20419
20420 # Double-quote double-evaled strings.
20421 for var in reload_cmds \
20422 old_postinstall_cmds \
20423 old_postuninstall_cmds \
20424 old_archive_cmds \
20425 extract_expsyms_cmds \
20426 old_archive_from_new_cmds \
20427 old_archive_from_expsyms_cmds \
20428 archive_cmds \
20429 archive_expsym_cmds \
20430 module_cmds \
20431 module_expsym_cmds \
20432 export_symbols_cmds \
20433 prelink_cmds \
20434 postlink_cmds \
20435 postinstall_cmds \
20436 postuninstall_cmds \
20437 finish_cmds \
20438 sys_lib_search_path_spec \
20439 sys_lib_dlsearch_path_spec \
20440 reload_cmds_CXX \
20441 reload_cmds_RC \
20442 old_archive_cmds_CXX \
20443 old_archive_cmds_RC \
20444 old_archive_from_new_cmds_CXX \
20445 old_archive_from_new_cmds_RC \
20446 old_archive_from_expsyms_cmds_CXX \
20447 old_archive_from_expsyms_cmds_RC \
20448 archive_cmds_CXX \
20449 archive_cmds_RC \
20450 archive_expsym_cmds_CXX \
20451 archive_expsym_cmds_RC \
20452 module_cmds_CXX \
20453 module_cmds_RC \
20454 module_expsym_cmds_CXX \
20455 module_expsym_cmds_RC \
20456 export_symbols_cmds_CXX \
20457 export_symbols_cmds_RC \
20458 prelink_cmds_CXX \
20459 prelink_cmds_RC \
20460 postlink_cmds_CXX \
20461 postlink_cmds_RC; do
20462     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20463     *[\\\\\\\`\\"\\\$]*)
20464       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20465       ;;
20466     *)
20467       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20468       ;;
20469     esac
20470 done
20471
20472 ac_aux_dir='$ac_aux_dir'
20473 xsi_shell='$xsi_shell'
20474 lt_shell_append='$lt_shell_append'
20475
20476 # See if we are running on zsh, and set the options which allow our
20477 # commands through without removal of \ escapes INIT.
20478 if test -n "\${ZSH_VERSION+set}" ; then
20479    setopt NO_GLOB_SUBST
20480 fi
20481
20482
20483     PACKAGE='$PACKAGE'
20484     VERSION='$VERSION'
20485     TIMESTAMP='$TIMESTAMP'
20486     RM='$RM'
20487     ofile='$ofile'
20488
20489
20490
20491
20492
20493
20494
20495
20496 _ACEOF
20497
20498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20499
20500 # Handling of arguments.
20501 for ac_config_target in $ac_config_targets
20502 do
20503   case $ac_config_target in
20504     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20505     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20506     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20507     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20508     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20509     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20510     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20511     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20512     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20513     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20514     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20515     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20516     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20517     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20518     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20519     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20520
20521   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20522   esac
20523 done
20524
20525
20526 # If the user did not use the arguments to specify the items to instantiate,
20527 # then the envvar interface is used.  Set only those that are not.
20528 # We use the long form for the default assignment because of an extremely
20529 # bizarre bug on SunOS 4.1.3.
20530 if $ac_need_defaults; then
20531   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20532   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20533   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20534 fi
20535
20536 # Have a temporary directory for convenience.  Make it in the build tree
20537 # simply because there is no reason against having it here, and in addition,
20538 # creating and moving files from /tmp can sometimes cause problems.
20539 # Hook for its removal unless debugging.
20540 # Note that there is a small window in which the directory will not be cleaned:
20541 # after its creation but before its name has been assigned to `$tmp'.
20542 $debug ||
20543 {
20544   tmp= ac_tmp=
20545   trap 'exit_status=$?
20546   : "${ac_tmp:=$tmp}"
20547   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20548 ' 0
20549   trap 'as_fn_exit 1' 1 2 13 15
20550 }
20551 # Create a (secure) tmp directory for tmp files.
20552
20553 {
20554   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20555   test -d "$tmp"
20556 }  ||
20557 {
20558   tmp=./conf$$-$RANDOM
20559   (umask 077 && mkdir "$tmp")
20560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20561 ac_tmp=$tmp
20562
20563 # Set up the scripts for CONFIG_FILES section.
20564 # No need to generate them if there are no CONFIG_FILES.
20565 # This happens for instance with `./config.status config.h'.
20566 if test -n "$CONFIG_FILES"; then
20567
20568
20569 ac_cr=`echo X | tr X '\015'`
20570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20571 # But we know of no other shell where ac_cr would be empty at this
20572 # point, so we can use a bashism as a fallback.
20573 if test "x$ac_cr" = x; then
20574   eval ac_cr=\$\'\\r\'
20575 fi
20576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20578   ac_cs_awk_cr='\\r'
20579 else
20580   ac_cs_awk_cr=$ac_cr
20581 fi
20582
20583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20584 _ACEOF
20585
20586
20587 {
20588   echo "cat >conf$$subs.awk <<_ACEOF" &&
20589   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20590   echo "_ACEOF"
20591 } >conf$$subs.sh ||
20592   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20594 ac_delim='%!_!# '
20595 for ac_last_try in false false false false false :; do
20596   . ./conf$$subs.sh ||
20597     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20598
20599   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20600   if test $ac_delim_n = $ac_delim_num; then
20601     break
20602   elif $ac_last_try; then
20603     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20604   else
20605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20606   fi
20607 done
20608 rm -f conf$$subs.sh
20609
20610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20612 _ACEOF
20613 sed -n '
20614 h
20615 s/^/S["/; s/!.*/"]=/
20616 p
20617 g
20618 s/^[^!]*!//
20619 :repl
20620 t repl
20621 s/'"$ac_delim"'$//
20622 t delim
20623 :nl
20624 h
20625 s/\(.\{148\}\)..*/\1/
20626 t more1
20627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20628 p
20629 n
20630 b repl
20631 :more1
20632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20633 p
20634 g
20635 s/.\{148\}//
20636 t nl
20637 :delim
20638 h
20639 s/\(.\{148\}\)..*/\1/
20640 t more2
20641 s/["\\]/\\&/g; s/^/"/; s/$/"/
20642 p
20643 b
20644 :more2
20645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20646 p
20647 g
20648 s/.\{148\}//
20649 t delim
20650 ' <conf$$subs.awk | sed '
20651 /^[^""]/{
20652   N
20653   s/\n//
20654 }
20655 ' >>$CONFIG_STATUS || ac_write_fail=1
20656 rm -f conf$$subs.awk
20657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20658 _ACAWK
20659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20660   for (key in S) S_is_set[key] = 1
20661   FS = "\a"
20662
20663 }
20664 {
20665   line = $ 0
20666   nfields = split(line, field, "@")
20667   substed = 0
20668   len = length(field[1])
20669   for (i = 2; i < nfields; i++) {
20670     key = field[i]
20671     keylen = length(key)
20672     if (S_is_set[key]) {
20673       value = S[key]
20674       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20675       len += length(value) + length(field[++i])
20676       substed = 1
20677     } else
20678       len += 1 + keylen
20679   }
20680
20681   print line
20682 }
20683
20684 _ACAWK
20685 _ACEOF
20686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20688   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20689 else
20690   cat
20691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20692   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20693 _ACEOF
20694
20695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20697 # trailing colons and then remove the whole line if VPATH becomes empty
20698 # (actually we leave an empty line to preserve line numbers).
20699 if test "x$srcdir" = x.; then
20700   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20701 h
20702 s///
20703 s/^/:/
20704 s/[      ]*$/:/
20705 s/:\$(srcdir):/:/g
20706 s/:\${srcdir}:/:/g
20707 s/:@srcdir@:/:/g
20708 s/^:*//
20709 s/:*$//
20710 x
20711 s/\(=[   ]*\).*/\1/
20712 G
20713 s/\n//
20714 s/^[^=]*=[       ]*$//
20715 }'
20716 fi
20717
20718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20719 fi # test -n "$CONFIG_FILES"
20720
20721 # Set up the scripts for CONFIG_HEADERS section.
20722 # No need to generate them if there are no CONFIG_HEADERS.
20723 # This happens for instance with `./config.status Makefile'.
20724 if test -n "$CONFIG_HEADERS"; then
20725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20726 BEGIN {
20727 _ACEOF
20728
20729 # Transform confdefs.h into an awk script `defines.awk', embedded as
20730 # here-document in config.status, that substitutes the proper values into
20731 # config.h.in to produce config.h.
20732
20733 # Create a delimiter string that does not exist in confdefs.h, to ease
20734 # handling of long lines.
20735 ac_delim='%!_!# '
20736 for ac_last_try in false false :; do
20737   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20738   if test -z "$ac_tt"; then
20739     break
20740   elif $ac_last_try; then
20741     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20742   else
20743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20744   fi
20745 done
20746
20747 # For the awk script, D is an array of macro values keyed by name,
20748 # likewise P contains macro parameters if any.  Preserve backslash
20749 # newline sequences.
20750
20751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20752 sed -n '
20753 s/.\{148\}/&'"$ac_delim"'/g
20754 t rset
20755 :rset
20756 s/^[     ]*#[    ]*define[       ][      ]*/ /
20757 t def
20758 d
20759 :def
20760 s/\\$//
20761 t bsnl
20762 s/["\\]/\\&/g
20763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20764 D["\1"]=" \3"/p
20765 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20766 d
20767 :bsnl
20768 s/["\\]/\\&/g
20769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20770 D["\1"]=" \3\\\\\\n"\\/p
20771 t cont
20772 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20773 t cont
20774 d
20775 :cont
20776 n
20777 s/.\{148\}/&'"$ac_delim"'/g
20778 t clear
20779 :clear
20780 s/\\$//
20781 t bsnlc
20782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20783 d
20784 :bsnlc
20785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20786 b cont
20787 ' <confdefs.h | sed '
20788 s/'"$ac_delim"'/"\\\
20789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20790
20791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792   for (key in D) D_is_set[key] = 1
20793   FS = "\a"
20794 }
20795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20796   line = \$ 0
20797   split(line, arg, " ")
20798   if (arg[1] == "#") {
20799     defundef = arg[2]
20800     mac1 = arg[3]
20801   } else {
20802     defundef = substr(arg[1], 2)
20803     mac1 = arg[2]
20804   }
20805   split(mac1, mac2, "(") #)
20806   macro = mac2[1]
20807   prefix = substr(line, 1, index(line, defundef) - 1)
20808   if (D_is_set[macro]) {
20809     # Preserve the white space surrounding the "#".
20810     print prefix "define", macro P[macro] D[macro]
20811     next
20812   } else {
20813     # Replace #undef with comments.  This is necessary, for example,
20814     # in the case of _POSIX_SOURCE, which is predefined and required
20815     # on some systems where configure will not decide to define it.
20816     if (defundef == "undef") {
20817       print "/*", prefix defundef, macro, "*/"
20818       next
20819     }
20820   }
20821 }
20822 { print }
20823 _ACAWK
20824 _ACEOF
20825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20826   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20827 fi # test -n "$CONFIG_HEADERS"
20828
20829
20830 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20831 shift
20832 for ac_tag
20833 do
20834   case $ac_tag in
20835   :[FHLC]) ac_mode=$ac_tag; continue;;
20836   esac
20837   case $ac_mode$ac_tag in
20838   :[FHL]*:*);;
20839   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20840   :[FH]-) ac_tag=-:-;;
20841   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20842   esac
20843   ac_save_IFS=$IFS
20844   IFS=:
20845   set x $ac_tag
20846   IFS=$ac_save_IFS
20847   shift
20848   ac_file=$1
20849   shift
20850
20851   case $ac_mode in
20852   :L) ac_source=$1;;
20853   :[FH])
20854     ac_file_inputs=
20855     for ac_f
20856     do
20857       case $ac_f in
20858       -) ac_f="$ac_tmp/stdin";;
20859       *) # Look for the file first in the build tree, then in the source tree
20860          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20861          # because $ac_f cannot contain `:'.
20862          test -f "$ac_f" ||
20863            case $ac_f in
20864            [\\/$]*) false;;
20865            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20866            esac ||
20867            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20868       esac
20869       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20870       as_fn_append ac_file_inputs " '$ac_f'"
20871     done
20872
20873     # Let's still pretend it is `configure' which instantiates (i.e., don't
20874     # use $as_me), people would be surprised to read:
20875     #    /* config.h.  Generated by config.status.  */
20876     configure_input='Generated from '`
20877           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20878         `' by configure.'
20879     if test x"$ac_file" != x-; then
20880       configure_input="$ac_file.  $configure_input"
20881       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20882 $as_echo "$as_me: creating $ac_file" >&6;}
20883     fi
20884     # Neutralize special characters interpreted by sed in replacement strings.
20885     case $configure_input in #(
20886     *\&* | *\|* | *\\* )
20887        ac_sed_conf_input=`$as_echo "$configure_input" |
20888        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20889     *) ac_sed_conf_input=$configure_input;;
20890     esac
20891
20892     case $ac_tag in
20893     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20894       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20895     esac
20896     ;;
20897   esac
20898
20899   ac_dir=`$as_dirname -- "$ac_file" ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901          X"$ac_file" : 'X\(//\)[^/]' \| \
20902          X"$ac_file" : 'X\(//\)$' \| \
20903          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20904 $as_echo X"$ac_file" |
20905     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20906             s//\1/
20907             q
20908           }
20909           /^X\(\/\/\)[^/].*/{
20910             s//\1/
20911             q
20912           }
20913           /^X\(\/\/\)$/{
20914             s//\1/
20915             q
20916           }
20917           /^X\(\/\).*/{
20918             s//\1/
20919             q
20920           }
20921           s/.*/./; q'`
20922   as_dir="$ac_dir"; as_fn_mkdir_p
20923   ac_builddir=.
20924
20925 case "$ac_dir" in
20926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20927 *)
20928   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20929   # A ".." for each directory in $ac_dir_suffix.
20930   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20931   case $ac_top_builddir_sub in
20932   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20933   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20934   esac ;;
20935 esac
20936 ac_abs_top_builddir=$ac_pwd
20937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20938 # for backward compatibility:
20939 ac_top_builddir=$ac_top_build_prefix
20940
20941 case $srcdir in
20942   .)  # We are building in place.
20943     ac_srcdir=.
20944     ac_top_srcdir=$ac_top_builddir_sub
20945     ac_abs_top_srcdir=$ac_pwd ;;
20946   [\\/]* | ?:[\\/]* )  # Absolute name.
20947     ac_srcdir=$srcdir$ac_dir_suffix;
20948     ac_top_srcdir=$srcdir
20949     ac_abs_top_srcdir=$srcdir ;;
20950   *) # Relative name.
20951     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20952     ac_top_srcdir=$ac_top_build_prefix$srcdir
20953     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20954 esac
20955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20956
20957
20958   case $ac_mode in
20959   :F)
20960   #
20961   # CONFIG_FILE
20962   #
20963
20964   case $INSTALL in
20965   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20966   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20967   esac
20968   ac_MKDIR_P=$MKDIR_P
20969   case $MKDIR_P in
20970   [\\/$]* | ?:[\\/]* ) ;;
20971   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20972   esac
20973 _ACEOF
20974
20975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20976 # If the template does not know about datarootdir, expand it.
20977 # FIXME: This hack should be removed a few years after 2.60.
20978 ac_datarootdir_hack=; ac_datarootdir_seen=
20979 ac_sed_dataroot='
20980 /datarootdir/ {
20981   p
20982   q
20983 }
20984 /@datadir@/p
20985 /@docdir@/p
20986 /@infodir@/p
20987 /@localedir@/p
20988 /@mandir@/p'
20989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20990 *datarootdir*) ac_datarootdir_seen=yes;;
20991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20992   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20993 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20994 _ACEOF
20995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20996   ac_datarootdir_hack='
20997   s&@datadir@&$datadir&g
20998   s&@docdir@&$docdir&g
20999   s&@infodir@&$infodir&g
21000   s&@localedir@&$localedir&g
21001   s&@mandir@&$mandir&g
21002   s&\\\${datarootdir}&$datarootdir&g' ;;
21003 esac
21004 _ACEOF
21005
21006 # Neutralize VPATH when `$srcdir' = `.'.
21007 # Shell code in configure.ac might set extrasub.
21008 # FIXME: do we really want to maintain this feature?
21009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21010 ac_sed_extra="$ac_vpsub
21011 $extrasub
21012 _ACEOF
21013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21014 :t
21015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21016 s|@configure_input@|$ac_sed_conf_input|;t t
21017 s&@top_builddir@&$ac_top_builddir_sub&;t t
21018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21019 s&@srcdir@&$ac_srcdir&;t t
21020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21021 s&@top_srcdir@&$ac_top_srcdir&;t t
21022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21023 s&@builddir@&$ac_builddir&;t t
21024 s&@abs_builddir@&$ac_abs_builddir&;t t
21025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21026 s&@INSTALL@&$ac_INSTALL&;t t
21027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21028 $ac_datarootdir_hack
21029 "
21030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21031   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21032
21033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21034   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21035   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21036       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21037   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21038 which seems to be undefined.  Please make sure it is defined" >&5
21039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21040 which seems to be undefined.  Please make sure it is defined" >&2;}
21041
21042   rm -f "$ac_tmp/stdin"
21043   case $ac_file in
21044   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21045   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21046   esac \
21047   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21048  ;;
21049   :H)
21050   #
21051   # CONFIG_HEADER
21052   #
21053   if test x"$ac_file" != x-; then
21054     {
21055       $as_echo "/* $configure_input  */" \
21056       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21057     } >"$ac_tmp/config.h" \
21058       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21059     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21060       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21062     else
21063       rm -f "$ac_file"
21064       mv "$ac_tmp/config.h" "$ac_file" \
21065         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21066     fi
21067   else
21068     $as_echo "/* $configure_input  */" \
21069       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21070       || as_fn_error $? "could not create -" "$LINENO" 5
21071   fi
21072 # Compute "$ac_file"'s index in $config_headers.
21073 _am_arg="$ac_file"
21074 _am_stamp_count=1
21075 for _am_header in $config_headers :; do
21076   case $_am_header in
21077     $_am_arg | $_am_arg:* )
21078       break ;;
21079     * )
21080       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21081   esac
21082 done
21083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21085          X"$_am_arg" : 'X\(//\)[^/]' \| \
21086          X"$_am_arg" : 'X\(//\)$' \| \
21087          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21088 $as_echo X"$_am_arg" |
21089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21090             s//\1/
21091             q
21092           }
21093           /^X\(\/\/\)[^/].*/{
21094             s//\1/
21095             q
21096           }
21097           /^X\(\/\/\)$/{
21098             s//\1/
21099             q
21100           }
21101           /^X\(\/\).*/{
21102             s//\1/
21103             q
21104           }
21105           s/.*/./; q'`/stamp-h$_am_stamp_count
21106  ;;
21107
21108   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21109 $as_echo "$as_me: executing $ac_file commands" >&6;}
21110  ;;
21111   esac
21112
21113
21114   case $ac_file$ac_mode in
21115     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21116   # Older Autoconf quotes --file arguments for eval, but not when files
21117   # are listed without --file.  Let's play safe and only enable the eval
21118   # if we detect the quoting.
21119   case $CONFIG_FILES in
21120   *\'*) eval set x "$CONFIG_FILES" ;;
21121   *)   set x $CONFIG_FILES ;;
21122   esac
21123   shift
21124   for mf
21125   do
21126     # Strip MF so we end up with the name of the file.
21127     mf=`echo "$mf" | sed -e 's/:.*$//'`
21128     # Check whether this is an Automake generated Makefile or not.
21129     # We used to match only the files named 'Makefile.in', but
21130     # some people rename them; so instead we look at the file content.
21131     # Grep'ing the first line is not enough: some people post-process
21132     # each Makefile.in and add a new line on top of each file to say so.
21133     # Grep'ing the whole file is not good either: AIX grep has a line
21134     # limit of 2048, but all sed's we know have understand at least 4000.
21135     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21136       dirpart=`$as_dirname -- "$mf" ||
21137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138          X"$mf" : 'X\(//\)[^/]' \| \
21139          X"$mf" : 'X\(//\)$' \| \
21140          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21141 $as_echo X"$mf" |
21142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21143             s//\1/
21144             q
21145           }
21146           /^X\(\/\/\)[^/].*/{
21147             s//\1/
21148             q
21149           }
21150           /^X\(\/\/\)$/{
21151             s//\1/
21152             q
21153           }
21154           /^X\(\/\).*/{
21155             s//\1/
21156             q
21157           }
21158           s/.*/./; q'`
21159     else
21160       continue
21161     fi
21162     # Extract the definition of DEPDIR, am__include, and am__quote
21163     # from the Makefile without running 'make'.
21164     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21165     test -z "$DEPDIR" && continue
21166     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21167     test -z "$am__include" && continue
21168     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21169     # Find all dependency output files, they are included files with
21170     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21171     # simplest approach to changing $(DEPDIR) to its actual value in the
21172     # expansion.
21173     for file in `sed -n "
21174       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21175          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21176       # Make sure the directory exists.
21177       test -f "$dirpart/$file" && continue
21178       fdir=`$as_dirname -- "$file" ||
21179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21180          X"$file" : 'X\(//\)[^/]' \| \
21181          X"$file" : 'X\(//\)$' \| \
21182          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21183 $as_echo X"$file" |
21184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21185             s//\1/
21186             q
21187           }
21188           /^X\(\/\/\)[^/].*/{
21189             s//\1/
21190             q
21191           }
21192           /^X\(\/\/\)$/{
21193             s//\1/
21194             q
21195           }
21196           /^X\(\/\).*/{
21197             s//\1/
21198             q
21199           }
21200           s/.*/./; q'`
21201       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21202       # echo "creating $dirpart/$file"
21203       echo '# dummy' > "$dirpart/$file"
21204     done
21205   done
21206 }
21207  ;;
21208     "libtool":C)
21209
21210     # See if we are running on zsh, and set the options which allow our
21211     # commands through without removal of \ escapes.
21212     if test -n "${ZSH_VERSION+set}" ; then
21213       setopt NO_GLOB_SUBST
21214     fi
21215
21216     cfgfile="${ofile}T"
21217     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21218     $RM "$cfgfile"
21219
21220     cat <<_LT_EOF >> "$cfgfile"
21221 #! $SHELL
21222
21223 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21224 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21227 #
21228 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21229 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21230 #                 Foundation, Inc.
21231 #   Written by Gordon Matzigkeit, 1996
21232 #
21233 #   This file is part of GNU Libtool.
21234 #
21235 # GNU Libtool is free software; you can redistribute it and/or
21236 # modify it under the terms of the GNU General Public License as
21237 # published by the Free Software Foundation; either version 2 of
21238 # the License, or (at your option) any later version.
21239 #
21240 # As a special exception to the GNU General Public License,
21241 # if you distribute this file as part of a program or library that
21242 # is built using GNU Libtool, you may include this file under the
21243 # same distribution terms that you use for the rest of that program.
21244 #
21245 # GNU Libtool is distributed in the hope that it will be useful,
21246 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21248 # GNU General Public License for more details.
21249 #
21250 # You should have received a copy of the GNU General Public License
21251 # along with GNU Libtool; see the file COPYING.  If not, a copy
21252 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21253 # obtained by writing to the Free Software Foundation, Inc.,
21254 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21255
21256
21257 # The names of the tagged configurations supported by this script.
21258 available_tags="CXX RC "
21259
21260 # ### BEGIN LIBTOOL CONFIG
21261
21262 # Which release of libtool.m4 was used?
21263 macro_version=$macro_version
21264 macro_revision=$macro_revision
21265
21266 # Assembler program.
21267 AS=$lt_AS
21268
21269 # DLL creation program.
21270 DLLTOOL=$lt_DLLTOOL
21271
21272 # Object dumper program.
21273 OBJDUMP=$lt_OBJDUMP
21274
21275 # Whether or not to build static libraries.
21276 build_old_libs=$enable_static
21277
21278 # Whether or not to build shared libraries.
21279 build_libtool_libs=$enable_shared
21280
21281 # What type of objects to build.
21282 pic_mode=$pic_mode
21283
21284 # Whether or not to optimize for fast installation.
21285 fast_install=$enable_fast_install
21286
21287 # Shell to use when invoking shell scripts.
21288 SHELL=$lt_SHELL
21289
21290 # An echo program that protects backslashes.
21291 ECHO=$lt_ECHO
21292
21293 # The PATH separator for the build system.
21294 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21295
21296 # The host system.
21297 host_alias=$host_alias
21298 host=$host
21299 host_os=$host_os
21300
21301 # The build system.
21302 build_alias=$build_alias
21303 build=$build
21304 build_os=$build_os
21305
21306 # A sed program that does not truncate output.
21307 SED=$lt_SED
21308
21309 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21310 Xsed="\$SED -e 1s/^X//"
21311
21312 # A grep program that handles long lines.
21313 GREP=$lt_GREP
21314
21315 # An ERE matcher.
21316 EGREP=$lt_EGREP
21317
21318 # A literal string matcher.
21319 FGREP=$lt_FGREP
21320
21321 # A BSD- or MS-compatible name lister.
21322 NM=$lt_NM
21323
21324 # Whether we need soft or hard links.
21325 LN_S=$lt_LN_S
21326
21327 # What is the maximum length of a command?
21328 max_cmd_len=$max_cmd_len
21329
21330 # Object file suffix (normally "o").
21331 objext=$ac_objext
21332
21333 # Executable file suffix (normally "").
21334 exeext=$exeext
21335
21336 # whether the shell understands "unset".
21337 lt_unset=$lt_unset
21338
21339 # turn spaces into newlines.
21340 SP2NL=$lt_lt_SP2NL
21341
21342 # turn newlines into spaces.
21343 NL2SP=$lt_lt_NL2SP
21344
21345 # convert \$build file names to \$host format.
21346 to_host_file_cmd=$lt_cv_to_host_file_cmd
21347
21348 # convert \$build files to toolchain format.
21349 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21350
21351 # Method to check whether dependent libraries are shared objects.
21352 deplibs_check_method=$lt_deplibs_check_method
21353
21354 # Command to use when deplibs_check_method = "file_magic".
21355 file_magic_cmd=$lt_file_magic_cmd
21356
21357 # How to find potential files when deplibs_check_method = "file_magic".
21358 file_magic_glob=$lt_file_magic_glob
21359
21360 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21361 want_nocaseglob=$lt_want_nocaseglob
21362
21363 # Command to associate shared and link libraries.
21364 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21365
21366 # The archiver.
21367 AR=$lt_AR
21368
21369 # Flags to create an archive.
21370 AR_FLAGS=$lt_AR_FLAGS
21371
21372 # How to feed a file listing to the archiver.
21373 archiver_list_spec=$lt_archiver_list_spec
21374
21375 # A symbol stripping program.
21376 STRIP=$lt_STRIP
21377
21378 # Commands used to install an old-style archive.
21379 RANLIB=$lt_RANLIB
21380 old_postinstall_cmds=$lt_old_postinstall_cmds
21381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21382
21383 # Whether to use a lock for old archive extraction.
21384 lock_old_archive_extraction=$lock_old_archive_extraction
21385
21386 # A C compiler.
21387 LTCC=$lt_CC
21388
21389 # LTCC compiler flags.
21390 LTCFLAGS=$lt_CFLAGS
21391
21392 # Take the output of nm and produce a listing of raw symbols and C names.
21393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21394
21395 # Transform the output of nm in a proper C declaration.
21396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21397
21398 # Transform the output of nm in a C name address pair.
21399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21400
21401 # Transform the output of nm in a C name address pair when lib prefix is needed.
21402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21403
21404 # Specify filename containing input files for \$NM.
21405 nm_file_list_spec=$lt_nm_file_list_spec
21406
21407 # The root where to search for dependent libraries,and in which our libraries should be installed.
21408 lt_sysroot=$lt_sysroot
21409
21410 # The name of the directory that contains temporary libtool files.
21411 objdir=$objdir
21412
21413 # Used to examine libraries when file_magic_cmd begins with "file".
21414 MAGIC_CMD=$MAGIC_CMD
21415
21416 # Must we lock files when doing compilation?
21417 need_locks=$lt_need_locks
21418
21419 # Manifest tool.
21420 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21421
21422 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21423 DSYMUTIL=$lt_DSYMUTIL
21424
21425 # Tool to change global to local symbols on Mac OS X.
21426 NMEDIT=$lt_NMEDIT
21427
21428 # Tool to manipulate fat objects and archives on Mac OS X.
21429 LIPO=$lt_LIPO
21430
21431 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21432 OTOOL=$lt_OTOOL
21433
21434 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21435 OTOOL64=$lt_OTOOL64
21436
21437 # Old archive suffix (normally "a").
21438 libext=$libext
21439
21440 # Shared library suffix (normally ".so").
21441 shrext_cmds=$lt_shrext_cmds
21442
21443 # The commands to extract the exported symbol list from a shared archive.
21444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21445
21446 # Variables whose values should be saved in libtool wrapper scripts and
21447 # restored at link time.
21448 variables_saved_for_relink=$lt_variables_saved_for_relink
21449
21450 # Do we need the "lib" prefix for modules?
21451 need_lib_prefix=$need_lib_prefix
21452
21453 # Do we need a version for libraries?
21454 need_version=$need_version
21455
21456 # Library versioning type.
21457 version_type=$version_type
21458
21459 # Shared library runtime path variable.
21460 runpath_var=$runpath_var
21461
21462 # Shared library path variable.
21463 shlibpath_var=$shlibpath_var
21464
21465 # Is shlibpath searched before the hard-coded library search path?
21466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21467
21468 # Format of library name prefix.
21469 libname_spec=$lt_libname_spec
21470
21471 # List of archive names.  First name is the real one, the rest are links.
21472 # The last name is the one that the linker finds with -lNAME
21473 library_names_spec=$lt_library_names_spec
21474
21475 # The coded name of the library, if different from the real name.
21476 soname_spec=$lt_soname_spec
21477
21478 # Permission mode override for installation of shared libraries.
21479 install_override_mode=$lt_install_override_mode
21480
21481 # Command to use after installation of a shared archive.
21482 postinstall_cmds=$lt_postinstall_cmds
21483
21484 # Command to use after uninstallation of a shared archive.
21485 postuninstall_cmds=$lt_postuninstall_cmds
21486
21487 # Commands used to finish a libtool library installation in a directory.
21488 finish_cmds=$lt_finish_cmds
21489
21490 # As "finish_cmds", except a single script fragment to be evaled but
21491 # not shown.
21492 finish_eval=$lt_finish_eval
21493
21494 # Whether we should hardcode library paths into libraries.
21495 hardcode_into_libs=$hardcode_into_libs
21496
21497 # Compile-time system search path for libraries.
21498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21499
21500 # Run-time system search path for libraries.
21501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21502
21503 # Whether dlopen is supported.
21504 dlopen_support=$enable_dlopen
21505
21506 # Whether dlopen of programs is supported.
21507 dlopen_self=$enable_dlopen_self
21508
21509 # Whether dlopen of statically linked programs is supported.
21510 dlopen_self_static=$enable_dlopen_self_static
21511
21512 # Commands to strip libraries.
21513 old_striplib=$lt_old_striplib
21514 striplib=$lt_striplib
21515
21516
21517 # The linker used to build libraries.
21518 LD=$lt_LD
21519
21520 # How to create reloadable object files.
21521 reload_flag=$lt_reload_flag
21522 reload_cmds=$lt_reload_cmds
21523
21524 # Commands used to build an old-style archive.
21525 old_archive_cmds=$lt_old_archive_cmds
21526
21527 # A language specific compiler.
21528 CC=$lt_compiler
21529
21530 # Is the compiler the GNU compiler?
21531 with_gcc=$GCC
21532
21533 # Compiler flag to turn off builtin functions.
21534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21535
21536 # Additional compiler flags for building library objects.
21537 pic_flag=$lt_lt_prog_compiler_pic
21538
21539 # How to pass a linker flag through the compiler.
21540 wl=$lt_lt_prog_compiler_wl
21541
21542 # Compiler flag to prevent dynamic linking.
21543 link_static_flag=$lt_lt_prog_compiler_static
21544
21545 # Does compiler simultaneously support -c and -o options?
21546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21547
21548 # Whether or not to add -lc for building shared libraries.
21549 build_libtool_need_lc=$archive_cmds_need_lc
21550
21551 # Whether or not to disallow shared libs when runtime libs are static.
21552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21553
21554 # Compiler flag to allow reflexive dlopens.
21555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21556
21557 # Compiler flag to generate shared objects directly from archives.
21558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21559
21560 # Whether the compiler copes with passing no objects directly.
21561 compiler_needs_object=$lt_compiler_needs_object
21562
21563 # Create an old-style archive from a shared archive.
21564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21565
21566 # Create a temporary old-style archive to link instead of a shared archive.
21567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21568
21569 # Commands used to build a shared archive.
21570 archive_cmds=$lt_archive_cmds
21571 archive_expsym_cmds=$lt_archive_expsym_cmds
21572
21573 # Commands used to build a loadable module if different from building
21574 # a shared archive.
21575 module_cmds=$lt_module_cmds
21576 module_expsym_cmds=$lt_module_expsym_cmds
21577
21578 # Whether we are building with GNU ld or not.
21579 with_gnu_ld=$lt_with_gnu_ld
21580
21581 # Flag that allows shared libraries with undefined symbols to be built.
21582 allow_undefined_flag=$lt_allow_undefined_flag
21583
21584 # Flag that enforces no undefined symbols.
21585 no_undefined_flag=$lt_no_undefined_flag
21586
21587 # Flag to hardcode \$libdir into a binary during linking.
21588 # This must work even if \$libdir does not exist
21589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21590
21591 # Whether we need a single "-rpath" flag with a separated argument.
21592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21593
21594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21595 # DIR into the resulting binary.
21596 hardcode_direct=$hardcode_direct
21597
21598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21599 # DIR into the resulting binary and the resulting library dependency is
21600 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21601 # library is relocated.
21602 hardcode_direct_absolute=$hardcode_direct_absolute
21603
21604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21605 # into the resulting binary.
21606 hardcode_minus_L=$hardcode_minus_L
21607
21608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21609 # into the resulting binary.
21610 hardcode_shlibpath_var=$hardcode_shlibpath_var
21611
21612 # Set to "yes" if building a shared library automatically hardcodes DIR
21613 # into the library and all subsequent libraries and executables linked
21614 # against it.
21615 hardcode_automatic=$hardcode_automatic
21616
21617 # Set to yes if linker adds runtime paths of dependent libraries
21618 # to runtime path list.
21619 inherit_rpath=$inherit_rpath
21620
21621 # Whether libtool must link a program against all its dependency libraries.
21622 link_all_deplibs=$link_all_deplibs
21623
21624 # Set to "yes" if exported symbols are required.
21625 always_export_symbols=$always_export_symbols
21626
21627 # The commands to list exported symbols.
21628 export_symbols_cmds=$lt_export_symbols_cmds
21629
21630 # Symbols that should not be listed in the preloaded symbols.
21631 exclude_expsyms=$lt_exclude_expsyms
21632
21633 # Symbols that must always be exported.
21634 include_expsyms=$lt_include_expsyms
21635
21636 # Commands necessary for linking programs (against libraries) with templates.
21637 prelink_cmds=$lt_prelink_cmds
21638
21639 # Commands necessary for finishing linking programs.
21640 postlink_cmds=$lt_postlink_cmds
21641
21642 # Specify filename containing input files.
21643 file_list_spec=$lt_file_list_spec
21644
21645 # How to hardcode a shared library path into an executable.
21646 hardcode_action=$hardcode_action
21647
21648 # The directories searched by this compiler when creating a shared library.
21649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21650
21651 # Dependencies to place before and after the objects being linked to
21652 # create a shared library.
21653 predep_objects=$lt_predep_objects
21654 postdep_objects=$lt_postdep_objects
21655 predeps=$lt_predeps
21656 postdeps=$lt_postdeps
21657
21658 # The library search path used internally by the compiler when linking
21659 # a shared library.
21660 compiler_lib_search_path=$lt_compiler_lib_search_path
21661
21662 # ### END LIBTOOL CONFIG
21663
21664 _LT_EOF
21665
21666   case $host_os in
21667   aix3*)
21668     cat <<\_LT_EOF >> "$cfgfile"
21669 # AIX sometimes has problems with the GCC collect2 program.  For some
21670 # reason, if we set the COLLECT_NAMES environment variable, the problems
21671 # vanish in a puff of smoke.
21672 if test "X${COLLECT_NAMES+set}" != Xset; then
21673   COLLECT_NAMES=
21674   export COLLECT_NAMES
21675 fi
21676 _LT_EOF
21677     ;;
21678   esac
21679
21680
21681 ltmain="$ac_aux_dir/ltmain.sh"
21682
21683
21684   # We use sed instead of cat because bash on DJGPP gets confused if
21685   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21686   # text mode, it properly converts lines to CR/LF.  This bash problem
21687   # is reportedly fixed, but why not run on old versions too?
21688   sed '$q' "$ltmain" >> "$cfgfile" \
21689      || (rm -f "$cfgfile"; exit 1)
21690
21691   if test x"$xsi_shell" = xyes; then
21692   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21693 func_dirname ()\
21694 {\
21695 \    case ${1} in\
21696 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21697 \      *  ) func_dirname_result="${3}" ;;\
21698 \    esac\
21699 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21700   && mv -f "$cfgfile.tmp" "$cfgfile" \
21701     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21702 test 0 -eq $? || _lt_function_replace_fail=:
21703
21704
21705   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21706 func_basename ()\
21707 {\
21708 \    func_basename_result="${1##*/}"\
21709 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21710   && mv -f "$cfgfile.tmp" "$cfgfile" \
21711     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21712 test 0 -eq $? || _lt_function_replace_fail=:
21713
21714
21715   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21716 func_dirname_and_basename ()\
21717 {\
21718 \    case ${1} in\
21719 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21720 \      *  ) func_dirname_result="${3}" ;;\
21721 \    esac\
21722 \    func_basename_result="${1##*/}"\
21723 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21724   && mv -f "$cfgfile.tmp" "$cfgfile" \
21725     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21726 test 0 -eq $? || _lt_function_replace_fail=:
21727
21728
21729   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21730 func_stripname ()\
21731 {\
21732 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21733 \    # positional parameters, so assign one to ordinary parameter first.\
21734 \    func_stripname_result=${3}\
21735 \    func_stripname_result=${func_stripname_result#"${1}"}\
21736 \    func_stripname_result=${func_stripname_result%"${2}"}\
21737 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21738   && mv -f "$cfgfile.tmp" "$cfgfile" \
21739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21740 test 0 -eq $? || _lt_function_replace_fail=:
21741
21742
21743   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21744 func_split_long_opt ()\
21745 {\
21746 \    func_split_long_opt_name=${1%%=*}\
21747 \    func_split_long_opt_arg=${1#*=}\
21748 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21749   && mv -f "$cfgfile.tmp" "$cfgfile" \
21750     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21751 test 0 -eq $? || _lt_function_replace_fail=:
21752
21753
21754   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21755 func_split_short_opt ()\
21756 {\
21757 \    func_split_short_opt_arg=${1#??}\
21758 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21759 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21760   && mv -f "$cfgfile.tmp" "$cfgfile" \
21761     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21762 test 0 -eq $? || _lt_function_replace_fail=:
21763
21764
21765   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21766 func_lo2o ()\
21767 {\
21768 \    case ${1} in\
21769 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21770 \      *)    func_lo2o_result=${1} ;;\
21771 \    esac\
21772 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21773   && mv -f "$cfgfile.tmp" "$cfgfile" \
21774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21775 test 0 -eq $? || _lt_function_replace_fail=:
21776
21777
21778   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21779 func_xform ()\
21780 {\
21781     func_xform_result=${1%.*}.lo\
21782 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21783   && mv -f "$cfgfile.tmp" "$cfgfile" \
21784     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21785 test 0 -eq $? || _lt_function_replace_fail=:
21786
21787
21788   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21789 func_arith ()\
21790 {\
21791     func_arith_result=$(( $* ))\
21792 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21793   && mv -f "$cfgfile.tmp" "$cfgfile" \
21794     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21795 test 0 -eq $? || _lt_function_replace_fail=:
21796
21797
21798   sed -e '/^func_len ()$/,/^} # func_len /c\
21799 func_len ()\
21800 {\
21801     func_len_result=${#1}\
21802 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21803   && mv -f "$cfgfile.tmp" "$cfgfile" \
21804     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21805 test 0 -eq $? || _lt_function_replace_fail=:
21806
21807 fi
21808
21809 if test x"$lt_shell_append" = xyes; then
21810   sed -e '/^func_append ()$/,/^} # func_append /c\
21811 func_append ()\
21812 {\
21813     eval "${1}+=\\${2}"\
21814 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21815   && mv -f "$cfgfile.tmp" "$cfgfile" \
21816     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21817 test 0 -eq $? || _lt_function_replace_fail=:
21818
21819
21820   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21821 func_append_quoted ()\
21822 {\
21823 \    func_quote_for_eval "${2}"\
21824 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21825 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21826   && mv -f "$cfgfile.tmp" "$cfgfile" \
21827     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21828 test 0 -eq $? || _lt_function_replace_fail=:
21829
21830
21831   # Save a `func_append' function call where possible by direct use of '+='
21832   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21833     && mv -f "$cfgfile.tmp" "$cfgfile" \
21834       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835   test 0 -eq $? || _lt_function_replace_fail=:
21836 else
21837   # Save a `func_append' function call even when '+=' is not available
21838   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21839     && mv -f "$cfgfile.tmp" "$cfgfile" \
21840       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21841   test 0 -eq $? || _lt_function_replace_fail=:
21842 fi
21843
21844 if test x"$_lt_function_replace_fail" = x":"; then
21845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21846 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21847 fi
21848
21849
21850    mv -f "$cfgfile" "$ofile" ||
21851     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21852   chmod +x "$ofile"
21853
21854
21855     cat <<_LT_EOF >> "$ofile"
21856
21857 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21858
21859 # The linker used to build libraries.
21860 LD=$lt_LD_CXX
21861
21862 # How to create reloadable object files.
21863 reload_flag=$lt_reload_flag_CXX
21864 reload_cmds=$lt_reload_cmds_CXX
21865
21866 # Commands used to build an old-style archive.
21867 old_archive_cmds=$lt_old_archive_cmds_CXX
21868
21869 # A language specific compiler.
21870 CC=$lt_compiler_CXX
21871
21872 # Is the compiler the GNU compiler?
21873 with_gcc=$GCC_CXX
21874
21875 # Compiler flag to turn off builtin functions.
21876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21877
21878 # Additional compiler flags for building library objects.
21879 pic_flag=$lt_lt_prog_compiler_pic_CXX
21880
21881 # How to pass a linker flag through the compiler.
21882 wl=$lt_lt_prog_compiler_wl_CXX
21883
21884 # Compiler flag to prevent dynamic linking.
21885 link_static_flag=$lt_lt_prog_compiler_static_CXX
21886
21887 # Does compiler simultaneously support -c and -o options?
21888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21889
21890 # Whether or not to add -lc for building shared libraries.
21891 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21892
21893 # Whether or not to disallow shared libs when runtime libs are static.
21894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21895
21896 # Compiler flag to allow reflexive dlopens.
21897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21898
21899 # Compiler flag to generate shared objects directly from archives.
21900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21901
21902 # Whether the compiler copes with passing no objects directly.
21903 compiler_needs_object=$lt_compiler_needs_object_CXX
21904
21905 # Create an old-style archive from a shared archive.
21906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21907
21908 # Create a temporary old-style archive to link instead of a shared archive.
21909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21910
21911 # Commands used to build a shared archive.
21912 archive_cmds=$lt_archive_cmds_CXX
21913 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21914
21915 # Commands used to build a loadable module if different from building
21916 # a shared archive.
21917 module_cmds=$lt_module_cmds_CXX
21918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21919
21920 # Whether we are building with GNU ld or not.
21921 with_gnu_ld=$lt_with_gnu_ld_CXX
21922
21923 # Flag that allows shared libraries with undefined symbols to be built.
21924 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21925
21926 # Flag that enforces no undefined symbols.
21927 no_undefined_flag=$lt_no_undefined_flag_CXX
21928
21929 # Flag to hardcode \$libdir into a binary during linking.
21930 # This must work even if \$libdir does not exist
21931 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21932
21933 # Whether we need a single "-rpath" flag with a separated argument.
21934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21935
21936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21937 # DIR into the resulting binary.
21938 hardcode_direct=$hardcode_direct_CXX
21939
21940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21941 # DIR into the resulting binary and the resulting library dependency is
21942 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21943 # library is relocated.
21944 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21945
21946 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21947 # into the resulting binary.
21948 hardcode_minus_L=$hardcode_minus_L_CXX
21949
21950 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21951 # into the resulting binary.
21952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21953
21954 # Set to "yes" if building a shared library automatically hardcodes DIR
21955 # into the library and all subsequent libraries and executables linked
21956 # against it.
21957 hardcode_automatic=$hardcode_automatic_CXX
21958
21959 # Set to yes if linker adds runtime paths of dependent libraries
21960 # to runtime path list.
21961 inherit_rpath=$inherit_rpath_CXX
21962
21963 # Whether libtool must link a program against all its dependency libraries.
21964 link_all_deplibs=$link_all_deplibs_CXX
21965
21966 # Set to "yes" if exported symbols are required.
21967 always_export_symbols=$always_export_symbols_CXX
21968
21969 # The commands to list exported symbols.
21970 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21971
21972 # Symbols that should not be listed in the preloaded symbols.
21973 exclude_expsyms=$lt_exclude_expsyms_CXX
21974
21975 # Symbols that must always be exported.
21976 include_expsyms=$lt_include_expsyms_CXX
21977
21978 # Commands necessary for linking programs (against libraries) with templates.
21979 prelink_cmds=$lt_prelink_cmds_CXX
21980
21981 # Commands necessary for finishing linking programs.
21982 postlink_cmds=$lt_postlink_cmds_CXX
21983
21984 # Specify filename containing input files.
21985 file_list_spec=$lt_file_list_spec_CXX
21986
21987 # How to hardcode a shared library path into an executable.
21988 hardcode_action=$hardcode_action_CXX
21989
21990 # The directories searched by this compiler when creating a shared library.
21991 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21992
21993 # Dependencies to place before and after the objects being linked to
21994 # create a shared library.
21995 predep_objects=$lt_predep_objects_CXX
21996 postdep_objects=$lt_postdep_objects_CXX
21997 predeps=$lt_predeps_CXX
21998 postdeps=$lt_postdeps_CXX
21999
22000 # The library search path used internally by the compiler when linking
22001 # a shared library.
22002 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22003
22004 # ### END LIBTOOL TAG CONFIG: CXX
22005 _LT_EOF
22006
22007
22008     cat <<_LT_EOF >> "$ofile"
22009
22010 # ### BEGIN LIBTOOL TAG CONFIG: RC
22011
22012 # The linker used to build libraries.
22013 LD=$lt_LD_RC
22014
22015 # How to create reloadable object files.
22016 reload_flag=$lt_reload_flag_RC
22017 reload_cmds=$lt_reload_cmds_RC
22018
22019 # Commands used to build an old-style archive.
22020 old_archive_cmds=$lt_old_archive_cmds_RC
22021
22022 # A language specific compiler.
22023 CC=$lt_compiler_RC
22024
22025 # Is the compiler the GNU compiler?
22026 with_gcc=$GCC_RC
22027
22028 # Compiler flag to turn off builtin functions.
22029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22030
22031 # Additional compiler flags for building library objects.
22032 pic_flag=$lt_lt_prog_compiler_pic_RC
22033
22034 # How to pass a linker flag through the compiler.
22035 wl=$lt_lt_prog_compiler_wl_RC
22036
22037 # Compiler flag to prevent dynamic linking.
22038 link_static_flag=$lt_lt_prog_compiler_static_RC
22039
22040 # Does compiler simultaneously support -c and -o options?
22041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22042
22043 # Whether or not to add -lc for building shared libraries.
22044 build_libtool_need_lc=$archive_cmds_need_lc_RC
22045
22046 # Whether or not to disallow shared libs when runtime libs are static.
22047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22048
22049 # Compiler flag to allow reflexive dlopens.
22050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22051
22052 # Compiler flag to generate shared objects directly from archives.
22053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22054
22055 # Whether the compiler copes with passing no objects directly.
22056 compiler_needs_object=$lt_compiler_needs_object_RC
22057
22058 # Create an old-style archive from a shared archive.
22059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22060
22061 # Create a temporary old-style archive to link instead of a shared archive.
22062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22063
22064 # Commands used to build a shared archive.
22065 archive_cmds=$lt_archive_cmds_RC
22066 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22067
22068 # Commands used to build a loadable module if different from building
22069 # a shared archive.
22070 module_cmds=$lt_module_cmds_RC
22071 module_expsym_cmds=$lt_module_expsym_cmds_RC
22072
22073 # Whether we are building with GNU ld or not.
22074 with_gnu_ld=$lt_with_gnu_ld_RC
22075
22076 # Flag that allows shared libraries with undefined symbols to be built.
22077 allow_undefined_flag=$lt_allow_undefined_flag_RC
22078
22079 # Flag that enforces no undefined symbols.
22080 no_undefined_flag=$lt_no_undefined_flag_RC
22081
22082 # Flag to hardcode \$libdir into a binary during linking.
22083 # This must work even if \$libdir does not exist
22084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22085
22086 # Whether we need a single "-rpath" flag with a separated argument.
22087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22088
22089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22090 # DIR into the resulting binary.
22091 hardcode_direct=$hardcode_direct_RC
22092
22093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22094 # DIR into the resulting binary and the resulting library dependency is
22095 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22096 # library is relocated.
22097 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22098
22099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22100 # into the resulting binary.
22101 hardcode_minus_L=$hardcode_minus_L_RC
22102
22103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22104 # into the resulting binary.
22105 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22106
22107 # Set to "yes" if building a shared library automatically hardcodes DIR
22108 # into the library and all subsequent libraries and executables linked
22109 # against it.
22110 hardcode_automatic=$hardcode_automatic_RC
22111
22112 # Set to yes if linker adds runtime paths of dependent libraries
22113 # to runtime path list.
22114 inherit_rpath=$inherit_rpath_RC
22115
22116 # Whether libtool must link a program against all its dependency libraries.
22117 link_all_deplibs=$link_all_deplibs_RC
22118
22119 # Set to "yes" if exported symbols are required.
22120 always_export_symbols=$always_export_symbols_RC
22121
22122 # The commands to list exported symbols.
22123 export_symbols_cmds=$lt_export_symbols_cmds_RC
22124
22125 # Symbols that should not be listed in the preloaded symbols.
22126 exclude_expsyms=$lt_exclude_expsyms_RC
22127
22128 # Symbols that must always be exported.
22129 include_expsyms=$lt_include_expsyms_RC
22130
22131 # Commands necessary for linking programs (against libraries) with templates.
22132 prelink_cmds=$lt_prelink_cmds_RC
22133
22134 # Commands necessary for finishing linking programs.
22135 postlink_cmds=$lt_postlink_cmds_RC
22136
22137 # Specify filename containing input files.
22138 file_list_spec=$lt_file_list_spec_RC
22139
22140 # How to hardcode a shared library path into an executable.
22141 hardcode_action=$hardcode_action_RC
22142
22143 # The directories searched by this compiler when creating a shared library.
22144 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22145
22146 # Dependencies to place before and after the objects being linked to
22147 # create a shared library.
22148 predep_objects=$lt_predep_objects_RC
22149 postdep_objects=$lt_postdep_objects_RC
22150 predeps=$lt_predeps_RC
22151 postdeps=$lt_postdeps_RC
22152
22153 # The library search path used internally by the compiler when linking
22154 # a shared library.
22155 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22156
22157 # ### END LIBTOOL TAG CONFIG: RC
22158 _LT_EOF
22159
22160  ;;
22161     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
22162
22163   esac
22164 done # for ac_tag
22165
22166
22167 as_fn_exit 0
22168 _ACEOF
22169 ac_clean_files=$ac_clean_files_save
22170
22171 test $ac_write_fail = 0 ||
22172   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22173
22174
22175 # configure is writing to config.log, and then calls config.status.
22176 # config.status does its own redirection, appending to config.log.
22177 # Unfortunately, on DOS this fails, as config.log is still kept open
22178 # by configure, so config.status won't be able to write to it; its
22179 # output is simply discarded.  So we exec the FD to /dev/null,
22180 # effectively closing config.log, so it can be properly (re)opened and
22181 # appended to by config.status.  When coming back to configure, we
22182 # need to make the FD available again.
22183 if test "$no_create" != yes; then
22184   ac_cs_success=:
22185   ac_config_status_args=
22186   test "$silent" = yes &&
22187     ac_config_status_args="$ac_config_status_args --quiet"
22188   exec 5>/dev/null
22189   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22190   exec 5>>config.log
22191   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22192   # would make configure fail if this is the last instruction.
22193   $ac_cs_success || as_fn_exit 1
22194 fi
22195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22196   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22198 fi
22199
22200
22201 echo "
22202         GPGME v${VERSION} has been configured as follows:
22203
22204         Revision:        052a9e3  (1322)
22205         Platform:        $host
22206
22207         UI Server:       $uiserver
22208         FD Passing:      $use_descriptor_passing
22209         GPGME Pthread:   $have_pthread
22210 "
22211 if test "x${gpg_config_script_warn}" != x; then
22212 cat <<G10EOF
22213         Mismatches between the target platform and the to
22214         be used libraries have been been detected for:
22215          ${gpg_config_script_warn}
22216         Please check above for warning messages.
22217
22218 G10EOF
22219 fi