124194575ac490611ffbf9828dfa9948a0a7c975
[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.4.1.
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.4.1'
594 PACKAGE_STRING='gpgme 1.4.1'
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 RUN_G13_TESTS_FALSE
651 RUN_G13_TESTS_TRUE
652 HAVE_G13_FALSE
653 HAVE_G13_TRUE
654 G13
655 RUN_GPGCONF_TESTS_FALSE
656 RUN_GPGCONF_TESTS_TRUE
657 HAVE_GPGCONF_FALSE
658 HAVE_GPGCONF_TRUE
659 GPGCONF
660 RUN_GPGSM_TESTS_FALSE
661 RUN_GPGSM_TESTS_TRUE
662 HAVE_GPGSM_FALSE
663 HAVE_GPGSM_TRUE
664 GPGSM
665 GPG_PATH
666 RUN_GPG_TESTS_FALSE
667 RUN_GPG_TESTS_TRUE
668 GPG
669 HAVE_ASSUAN_FALSE
670 HAVE_ASSUAN_TRUE
671 LIBASSUAN_LIBS
672 LIBASSUAN_CFLAGS
673 LIBASSUAN_CONFIG
674 GPG_ERROR_LIBS
675 GPG_ERROR_CFLAGS
676 GPG_ERROR_CONFIG
677 GLIBC21
678 LIBOBJS
679 INSERT__TYPEDEFS_FOR_GPGME_H
680 NEED__FILE_OFFSET_BITS
681 BUILD_TIMESTAMP
682 BUILD_FILEVERSION
683 BUILD_REVISION
684 HAVE_PTHREAD_FALSE
685 HAVE_PTHREAD_TRUE
686 BUILD_W32_QT_FALSE
687 BUILD_W32_QT_TRUE
688 BUILD_W32_GLIB_FALSE
689 BUILD_W32_GLIB_TRUE
690 HAVE_ANDROID_SYSTEM_FALSE
691 HAVE_ANDROID_SYSTEM_TRUE
692 HAVE_W32CE_SYSTEM_FALSE
693 HAVE_W32CE_SYSTEM_TRUE
694 HAVE_W64_SYSTEM_FALSE
695 HAVE_W64_SYSTEM_TRUE
696 HAVE_W32_SYSTEM_FALSE
697 HAVE_W32_SYSTEM_TRUE
698 HAVE_DOSISH_SYSTEM_FALSE
699 HAVE_DOSISH_SYSTEM_TRUE
700 QT4_CORE_LIBS
701 QT4_CORE_CFLAGS
702 GLIB_MKENUMS
703 GOBJECT_QUERY
704 GLIB_GENMARSHAL
705 GLIB_LIBS
706 GLIB_CFLAGS
707 PKG_CONFIG
708 HAVE_LD_VERSION_SCRIPT_FALSE
709 HAVE_LD_VERSION_SCRIPT_TRUE
710 RC
711 CXXCPP
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 MANIFEST_TOOL
718 RANLIB
719 ac_ct_AR
720 AR
721 LN_S
722 NM
723 ac_ct_DUMPBIN
724 DUMPBIN
725 LD
726 FGREP
727 SED
728 LIBTOOL
729 OBJDUMP
730 DLLTOOL
731 AS
732 VERSION_NUMBER
733 LIBGPGME_LT_REVISION
734 LIBGPGME_LT_AGE
735 LIBGPGME_LT_CURRENT
736 GITLOG_TO_CHANGELOG
737 am__fastdepCXX_FALSE
738 am__fastdepCXX_TRUE
739 CXXDEPMODE
740 ac_ct_CXX
741 CXXFLAGS
742 CXX
743 EGREP
744 GREP
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 MAINT
772 MAINTAINER_MODE_FALSE
773 MAINTAINER_MODE_TRUE
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_maintainer_mode
839 enable_dependency_tracking
840 enable_static
841 enable_shared
842 with_pic
843 enable_fast_install
844 with_gnu_ld
845 with_sysroot
846 enable_libtool_lock
847 enable_glibtest
848 enable_w32_glib
849 enable_w32_qt
850 enable_largefile
851 with_libgpg_error_prefix
852 with_gpg_error_prefix
853 with_libassuan_prefix
854 with_gpg_version
855 with_gpgsm_version
856 with_gpgconf_version
857 with_g13_version
858 with_gpg
859 enable_gpg_test
860 with_gpgsm
861 enable_gpgsm_test
862 with_gpgconf
863 enable_gpgconf_test
864 with_g13
865 enable_g13_test
866 enable_fd_passing
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 CXX
878 CXXFLAGS
879 CCC
880 CXXCPP'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
930
931 ac_prev=
932 ac_dashdash=
933 for ac_option
934 do
935   # If the previous option needs an argument, assign it.
936   if test -n "$ac_prev"; then
937     eval $ac_prev=\$ac_option
938     ac_prev=
939     continue
940   fi
941
942   case $ac_option in
943   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944   *=)   ac_optarg= ;;
945   *)    ac_optarg=yes ;;
946   esac
947
948   # Accept the important Cygnus configure options, so we can diagnose typos.
949
950   case $ac_dashdash$ac_option in
951   --)
952     ac_dashdash=yes ;;
953
954   -bindir | --bindir | --bindi | --bind | --bin | --bi)
955     ac_prev=bindir ;;
956   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957     bindir=$ac_optarg ;;
958
959   -build | --build | --buil | --bui | --bu)
960     ac_prev=build_alias ;;
961   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962     build_alias=$ac_optarg ;;
963
964   -cache-file | --cache-file | --cache-fil | --cache-fi \
965   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966     ac_prev=cache_file ;;
967   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969     cache_file=$ac_optarg ;;
970
971   --config-cache | -C)
972     cache_file=config.cache ;;
973
974   -datadir | --datadir | --datadi | --datad)
975     ac_prev=datadir ;;
976   -datadir=* | --datadir=* | --datadi=* | --datad=*)
977     datadir=$ac_optarg ;;
978
979   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980   | --dataroo | --dataro | --datar)
981     ac_prev=datarootdir ;;
982   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984     datarootdir=$ac_optarg ;;
985
986   -disable-* | --disable-*)
987     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988     # Reject names that are not valid shell variable names.
989     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990       as_fn_error $? "invalid feature name: $ac_useropt"
991     ac_useropt_orig=$ac_useropt
992     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993     case $ac_user_opts in
994       *"
995 "enable_$ac_useropt"
996 "*) ;;
997       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998          ac_unrecognized_sep=', ';;
999     esac
1000     eval enable_$ac_useropt=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016       as_fn_error $? "invalid feature name: $ac_useropt"
1017     ac_useropt_orig=$ac_useropt
1018     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019     case $ac_user_opts in
1020       *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024          ac_unrecognized_sep=', ';;
1025     esac
1026     eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030   | --exec | --exe | --ex)
1031     ac_prev=exec_prefix ;;
1032   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034   | --exec=* | --exe=* | --ex=*)
1035     exec_prefix=$ac_optarg ;;
1036
1037   -gas | --gas | --ga | --g)
1038     # Obsolete; use --with-gas.
1039     with_gas=yes ;;
1040
1041   -help | --help | --hel | --he | -h)
1042     ac_init_help=long ;;
1043   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044     ac_init_help=recursive ;;
1045   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046     ac_init_help=short ;;
1047
1048   -host | --host | --hos | --ho)
1049     ac_prev=host_alias ;;
1050   -host=* | --host=* | --hos=* | --ho=*)
1051     host_alias=$ac_optarg ;;
1052
1053   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054     ac_prev=htmldir ;;
1055   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056   | --ht=*)
1057     htmldir=$ac_optarg ;;
1058
1059   -includedir | --includedir | --includedi | --included | --include \
1060   | --includ | --inclu | --incl | --inc)
1061     ac_prev=includedir ;;
1062   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063   | --includ=* | --inclu=* | --incl=* | --inc=*)
1064     includedir=$ac_optarg ;;
1065
1066   -infodir | --infodir | --infodi | --infod | --info | --inf)
1067     ac_prev=infodir ;;
1068   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069     infodir=$ac_optarg ;;
1070
1071   -libdir | --libdir | --libdi | --libd)
1072     ac_prev=libdir ;;
1073   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074     libdir=$ac_optarg ;;
1075
1076   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077   | --libexe | --libex | --libe)
1078     ac_prev=libexecdir ;;
1079   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080   | --libexe=* | --libex=* | --libe=*)
1081     libexecdir=$ac_optarg ;;
1082
1083   -localedir | --localedir | --localedi | --localed | --locale)
1084     ac_prev=localedir ;;
1085   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086     localedir=$ac_optarg ;;
1087
1088   -localstatedir | --localstatedir | --localstatedi | --localstated \
1089   | --localstate | --localstat | --localsta | --localst | --locals)
1090     ac_prev=localstatedir ;;
1091   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093     localstatedir=$ac_optarg ;;
1094
1095   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096     ac_prev=mandir ;;
1097   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098     mandir=$ac_optarg ;;
1099
1100   -nfp | --nfp | --nf)
1101     # Obsolete; use --without-fp.
1102     with_fp=no ;;
1103
1104   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105   | --no-cr | --no-c | -n)
1106     no_create=yes ;;
1107
1108   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110     no_recursion=yes ;;
1111
1112   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114   | --oldin | --oldi | --old | --ol | --o)
1115     ac_prev=oldincludedir ;;
1116   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119     oldincludedir=$ac_optarg ;;
1120
1121   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122     ac_prev=prefix ;;
1123   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124     prefix=$ac_optarg ;;
1125
1126   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127   | --program-pre | --program-pr | --program-p)
1128     ac_prev=program_prefix ;;
1129   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131     program_prefix=$ac_optarg ;;
1132
1133   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134   | --program-suf | --program-su | --program-s)
1135     ac_prev=program_suffix ;;
1136   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138     program_suffix=$ac_optarg ;;
1139
1140   -program-transform-name | --program-transform-name \
1141   | --program-transform-nam | --program-transform-na \
1142   | --program-transform-n | --program-transform- \
1143   | --program-transform | --program-transfor \
1144   | --program-transfo | --program-transf \
1145   | --program-trans | --program-tran \
1146   | --progr-tra | --program-tr | --program-t)
1147     ac_prev=program_transform_name ;;
1148   -program-transform-name=* | --program-transform-name=* \
1149   | --program-transform-nam=* | --program-transform-na=* \
1150   | --program-transform-n=* | --program-transform-=* \
1151   | --program-transform=* | --program-transfor=* \
1152   | --program-transfo=* | --program-transf=* \
1153   | --program-trans=* | --program-tran=* \
1154   | --progr-tra=* | --program-tr=* | --program-t=*)
1155     program_transform_name=$ac_optarg ;;
1156
1157   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158     ac_prev=pdfdir ;;
1159   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160     pdfdir=$ac_optarg ;;
1161
1162   -psdir | --psdir | --psdi | --psd | --ps)
1163     ac_prev=psdir ;;
1164   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165     psdir=$ac_optarg ;;
1166
1167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168   | -silent | --silent | --silen | --sile | --sil)
1169     silent=yes ;;
1170
1171   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172     ac_prev=sbindir ;;
1173   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174   | --sbi=* | --sb=*)
1175     sbindir=$ac_optarg ;;
1176
1177   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179   | --sharedst | --shareds | --shared | --share | --shar \
1180   | --sha | --sh)
1181     ac_prev=sharedstatedir ;;
1182   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185   | --sha=* | --sh=*)
1186     sharedstatedir=$ac_optarg ;;
1187
1188   -site | --site | --sit)
1189     ac_prev=site ;;
1190   -site=* | --site=* | --sit=*)
1191     site=$ac_optarg ;;
1192
1193   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194     ac_prev=srcdir ;;
1195   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196     srcdir=$ac_optarg ;;
1197
1198   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199   | --syscon | --sysco | --sysc | --sys | --sy)
1200     ac_prev=sysconfdir ;;
1201   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203     sysconfdir=$ac_optarg ;;
1204
1205   -target | --target | --targe | --targ | --tar | --ta | --t)
1206     ac_prev=target_alias ;;
1207   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208     target_alias=$ac_optarg ;;
1209
1210   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211     verbose=yes ;;
1212
1213   -version | --version | --versio | --versi | --vers | -V)
1214     ac_init_version=: ;;
1215
1216   -with-* | --with-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid package name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236       as_fn_error $? "invalid package name: $ac_useropt"
1237     ac_useropt_orig=$ac_useropt
1238     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239     case $ac_user_opts in
1240       *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244          ac_unrecognized_sep=', ';;
1245     esac
1246     eval with_$ac_useropt=no ;;
1247
1248   --x)
1249     # Obsolete; use --with-x.
1250     with_x=yes ;;
1251
1252   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253   | --x-incl | --x-inc | --x-in | --x-i)
1254     ac_prev=x_includes ;;
1255   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257     x_includes=$ac_optarg ;;
1258
1259   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261     ac_prev=x_libraries ;;
1262   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264     x_libraries=$ac_optarg ;;
1265
1266   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1268     ;;
1269
1270   *=*)
1271     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272     # Reject names that are not valid shell variable names.
1273     case $ac_envvar in #(
1274       '' | [0-9]* | *[!_$as_cr_alnum]* )
1275       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276     esac
1277     eval $ac_envvar=\$ac_optarg
1278     export $ac_envvar ;;
1279
1280   *)
1281     # FIXME: should be removed in autoconf 3.0.
1282     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286     ;;
1287
1288   esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293   as_fn_error $? "missing argument to $ac_option"
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297   case $enable_option_checking in
1298     no) ;;
1299     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301   esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306                 datadir sysconfdir sharedstatedir localstatedir includedir \
1307                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308                 libdir localedir mandir
1309 do
1310   eval ac_val=\$$ac_var
1311   # Remove trailing slashes.
1312   case $ac_val in
1313     */ )
1314       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315       eval $ac_var=\$ac_val;;
1316   esac
1317   # Be sure to have absolute directory names.
1318   case $ac_val in
1319     [\\/$]* | ?:[\\/]* )  continue;;
1320     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321   esac
1322   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334   if test "x$build_alias" = x; then
1335     cross_compiling=maybe
1336   elif test "x$build_alias" != "x$host_alias"; then
1337     cross_compiling=yes
1338   fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350   as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352   as_fn_error $? "pwd does not report name of working directory"
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357   ac_srcdir_defaulted=yes
1358   # Try the directory containing this script, then the parent directory.
1359   ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361          X"$as_myself" : 'X\(//\)[^/]' \| \
1362          X"$as_myself" : 'X\(//\)$' \| \
1363          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)[^/].*/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\).*/{
1378             s//\1/
1379             q
1380           }
1381           s/.*/./; q'`
1382   srcdir=$ac_confdir
1383   if test ! -r "$srcdir/$ac_unique_file"; then
1384     srcdir=..
1385   fi
1386 else
1387   ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396         pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399   srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_env_${ac_var}_value=\$${ac_var}
1410   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418   # Omit some internal or obsolete options to make the list less imposing.
1419   # This message is too long to be a string in the A/UX 3.1 sh.
1420   cat <<_ACEOF
1421 \`configure' configures gpgme 1.4.1 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431   -h, --help              display this help and exit
1432       --help=short        display options specific to this package
1433       --help=recursive    display the short help of all the included packages
1434   -V, --version           display version information and exit
1435   -q, --quiet, --silent   do not print \`checking ...' messages
1436       --cache-file=FILE   cache test results in FILE [disabled]
1437   -C, --config-cache      alias for \`--cache-file=config.cache'
1438   -n, --no-create         do not create output files
1439       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442   --prefix=PREFIX         install architecture-independent files in PREFIX
1443                           [$ac_default_prefix]
1444   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445                           [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455   --bindir=DIR            user executables [EPREFIX/bin]
1456   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1457   --libexecdir=DIR        program executables [EPREFIX/libexec]
1458   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1459   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1460   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1461   --libdir=DIR            object code libraries [EPREFIX/lib]
1462   --includedir=DIR        C header files [PREFIX/include]
1463   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1464   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1465   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1466   --infodir=DIR           info documentation [DATAROOTDIR/info]
1467   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1468   --mandir=DIR            man documentation [DATAROOTDIR/man]
1469   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1470   --htmldir=DIR           html documentation [DOCDIR]
1471   --dvidir=DIR            dvi documentation [DOCDIR]
1472   --pdfdir=DIR            pdf documentation [DOCDIR]
1473   --psdir=DIR             ps documentation [DOCDIR]
1474 _ACEOF
1475
1476   cat <<\_ACEOF
1477
1478 Program names:
1479   --program-prefix=PREFIX            prepend PREFIX to installed program names
1480   --program-suffix=SUFFIX            append SUFFIX to installed program names
1481   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483 System types:
1484   --build=BUILD     configure for building on BUILD [guessed]
1485   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486 _ACEOF
1487 fi
1488
1489 if test -n "$ac_init_help"; then
1490   case $ac_init_help in
1491      short | recursive ) echo "Configuration of gpgme 1.4.1:";;
1492    esac
1493   cat <<\_ACEOF
1494
1495 Optional Features:
1496   --disable-option-checking  ignore unrecognized --enable/--with options
1497   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499   --enable-maintainer-mode  enable make rules and dependencies not useful
1500                           (and sometimes confusing) to the casual installer
1501   --disable-dependency-tracking  speeds up one-time build
1502   --enable-dependency-tracking   do not reject slow dependency extractors
1503   --enable-static[=PKGS]  build static libraries [default=no]
1504   --enable-shared[=PKGS]  build shared libraries [default=yes]
1505   --enable-fast-install[=PKGS]
1506                           optimize for fast installation [default=yes]
1507   --disable-libtool-lock  avoid locking (might break parallel builds)
1508   --disable-glibtest      do not try to compile and run a test GLIB program
1509   --enable-w32-glib       build GPGME Glib for W32
1510   --enable-w32-qt         build GPGME Qt for W32
1511   --disable-largefile     omit support for large files
1512   --disable-gpg-test      disable GPG run test
1513   --disable-gpgsm-test    disable GPGSM run test
1514   --disable-gpgconf-test  disable GPGCONF run test
1515   --disable-g13-test      disable G13 run test
1516   --disable-fd-passing    do not use FD passing
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-sysroot=DIR Search for dependent libraries within DIR
1525                         (or the compiler's sysroot if not specified).
1526   --with-libgpg-error-prefix=PFX
1527                           prefix where GPG Error is installed (optional)
1528
1529   --with-libassuan-prefix=PFX
1530                           prefix where LIBASSUAN is installed (optional)
1531   --with-gpg-version=VER  require GnuPG version VER
1532   --with-gpgsm-version=VER
1533                           require GPGSM version VER
1534   --with-gpgconf-version=VER
1535                           require GPGCONF version VER
1536   --with-g13-version=VER  require G13 version VER
1537   --with-gpg=PATH         use GnuPG binary at PATH
1538   --with-gpgsm=PATH       use GpgSM binary at PATH
1539   --with-gpgconf=PATH     use gpgconf binary at PATH
1540   --with-g13=PATH         use g13 binary at PATH
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CPP         C preprocessor
1551   CXX         C++ compiler command
1552   CXXFLAGS    C++ compiler flags
1553   CXXCPP      C++ preprocessor
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <http://bugs.gnupg.org>.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564   # If there are subdirs, report their specific --help.
1565   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566     test -d "$ac_dir" ||
1567       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568       continue
1569     ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575   # A ".." for each directory in $ac_dir_suffix.
1576   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577   case $ac_top_builddir_sub in
1578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580   esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588   .)  # We are building in place.
1589     ac_srcdir=.
1590     ac_top_srcdir=$ac_top_builddir_sub
1591     ac_abs_top_srcdir=$ac_pwd ;;
1592   [\\/]* | ?:[\\/]* )  # Absolute name.
1593     ac_srcdir=$srcdir$ac_dir_suffix;
1594     ac_top_srcdir=$srcdir
1595     ac_abs_top_srcdir=$srcdir ;;
1596   *) # Relative name.
1597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598     ac_top_srcdir=$ac_top_build_prefix$srcdir
1599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603     cd "$ac_dir" || { ac_status=$?; continue; }
1604     # Check for guested configure.
1605     if test -f "$ac_srcdir/configure.gnu"; then
1606       echo &&
1607       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608     elif test -f "$ac_srcdir/configure"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure" --help=recursive
1611     else
1612       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613     fi || ac_status=$?
1614     cd "$ac_pwd" || { ac_status=$?; break; }
1615   done
1616 fi
1617
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620   cat <<\_ACEOF
1621 gpgme configure 1.4.1
1622 generated by GNU Autoconf 2.69
1623
1624 Copyright (C) 2012 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628   exit
1629 fi
1630
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1634
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext
1642   if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_compile") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest.$ac_objext; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666         ac_retval=1
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } > conftest.i && {
1695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703     ac_retval=1
1704 fi
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713 # the include files in INCLUDES and setting the cache variable VAR
1714 # accordingly.
1715 ac_fn_c_check_header_mongrel ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   if eval \${$3+:} false; then :
1719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722   $as_echo_n "(cached) " >&6
1723 fi
1724 eval ac_res=\$$3
1725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 else
1728   # Is the header compilable?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730 $as_echo_n "checking $2 usability... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 $4
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737   ac_header_compiler=yes
1738 else
1739   ac_header_compiler=no
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743 $as_echo "$ac_header_compiler" >&6; }
1744
1745 # Is the header present?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747 $as_echo_n "checking $2 presence... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_cpp "$LINENO"; then :
1753   ac_header_preproc=yes
1754 else
1755   ac_header_preproc=no
1756 fi
1757 rm -f conftest.err conftest.i conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759 $as_echo "$ac_header_preproc" >&6; }
1760
1761 # So?  What about this header?
1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1763   yes:no: )
1764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768     ;;
1769   no:yes:* )
1770     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1773 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1777 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ( $as_echo "## ------------------------------------ ##
1781 ## Report this to http://bugs.gnupg.org ##
1782 ## ------------------------------------ ##"
1783      ) | sed "s/^/$as_me: WARNING:     /" >&2
1784     ;;
1785 esac
1786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789   $as_echo_n "(cached) " >&6
1790 else
1791   eval "$3=\$ac_header_compiler"
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 fi
1797   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_header_mongrel
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811   *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815   (eval "$ac_link") 2>&5
1816   ac_status=$?
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819   { { case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_try") 2>&5
1826   ac_status=$?
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; }; }; then :
1829   ac_retval=0
1830 else
1831   $as_echo "$as_me: program exited with status $ac_status" >&5
1832        $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835        ac_retval=$ac_status
1836 fi
1837   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839   as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861   eval "$3=yes"
1862 else
1863   eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   rm -f conftest.$ac_objext
1881   if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_compile") 2>conftest.err
1889   ac_status=$?
1890   if test -s conftest.err; then
1891     grep -v '^ *+' conftest.err >conftest.er1
1892     cat conftest.er1 >&5
1893     mv -f conftest.er1 conftest.err
1894   fi
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } && {
1897          test -z "$ac_cxx_werror_flag" ||
1898          test ! -s conftest.err
1899        } && test -s conftest.$ac_objext; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905         ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_cxx_try_compile
1911
1912 # ac_fn_c_try_link LINENO
1913 # -----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_c_try_link ()
1916 {
1917   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918   rm -f conftest.$ac_objext conftest$ac_exeext
1919   if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926   (eval "$ac_link") 2>conftest.err
1927   ac_status=$?
1928   if test -s conftest.err; then
1929     grep -v '^ *+' conftest.err >conftest.er1
1930     cat conftest.er1 >&5
1931     mv -f conftest.er1 conftest.err
1932   fi
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } && {
1935          test -z "$ac_c_werror_flag" ||
1936          test ! -s conftest.err
1937        } && test -s conftest$ac_exeext && {
1938          test "$cross_compiling" = yes ||
1939          test -x conftest$ac_exeext
1940        }; then :
1941   ac_retval=0
1942 else
1943   $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946         ac_retval=1
1947 fi
1948   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950   # interfere with the next link command; also delete a directory that is
1951   # left behind by Apple's compiler.  We do this before executing the actions.
1952   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954   as_fn_set_status $ac_retval
1955
1956 } # ac_fn_c_try_link
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967   $as_echo_n "(cached) " >&6
1968 else
1969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976     which can conflict with char $2 (); below.
1977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978     <limits.h> exists even on freestanding compilers.  */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989    Use char because int might match the return type of a GCC
1990    builtin and then its argument prototype would still apply.  */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996     to always fail with ENOSYS.  Some functions are actually named
1997     something starting with __ and the normal name is an alias.  */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011   eval "$3=yes"
2012 else
2013   eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016     conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 case "(($ac_try" in
2033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034   *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039   ac_status=$?
2040   if test -s conftest.err; then
2041     grep -v '^ *+' conftest.err >conftest.er1
2042     cat conftest.er1 >&5
2043     mv -f conftest.er1 conftest.err
2044   fi
2045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046   test $ac_status = 0; } > conftest.i && {
2047          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048          test ! -s conftest.err
2049        }; then :
2050   ac_retval=0
2051 else
2052   $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055     ac_retval=1
2056 fi
2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058   as_fn_set_status $ac_retval
2059
2060 } # ac_fn_cxx_try_cpp
2061
2062 # ac_fn_cxx_try_link LINENO
2063 # -------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2065 ac_fn_cxx_try_link ()
2066 {
2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068   rm -f conftest.$ac_objext conftest$ac_exeext
2069   if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072   *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076   (eval "$ac_link") 2>conftest.err
2077   ac_status=$?
2078   if test -s conftest.err; then
2079     grep -v '^ *+' conftest.err >conftest.er1
2080     cat conftest.er1 >&5
2081     mv -f conftest.er1 conftest.err
2082   fi
2083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084   test $ac_status = 0; } && {
2085          test -z "$ac_cxx_werror_flag" ||
2086          test ! -s conftest.err
2087        } && test -s conftest$ac_exeext && {
2088          test "$cross_compiling" = yes ||
2089          test -x conftest$ac_exeext
2090        }; then :
2091   ac_retval=0
2092 else
2093   $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096         ac_retval=1
2097 fi
2098   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100   # interfere with the next link command; also delete a directory that is
2101   # left behind by Apple's compiler.  We do this before executing the actions.
2102   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104   as_fn_set_status $ac_retval
2105
2106 } # ac_fn_cxx_try_link
2107
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2112 # computed
2113 ac_fn_c_compute_int ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   if test "$cross_compiling" = yes; then
2117     # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2125 test_array [0] = 0;
2126 return test_array [0];
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133   ac_lo=0 ac_mid=0
2134   while :; do
2135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2144
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150   ac_hi=$ac_mid; break
2151 else
2152   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153                         if test $ac_lo -le $ac_mid; then
2154                           ac_lo= ac_hi=
2155                           break
2156                         fi
2157                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160   done
2161 else
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 static int test_array [1 - 2 * !(($2) < 0)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   ac_hi=-1 ac_mid=-1
2178   while :; do
2179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0;
2187 return test_array [0];
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   ac_lo=$ac_mid; break
2195 else
2196   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197                         if test $ac_mid -le $ac_hi; then
2198                           ac_lo= ac_hi=
2199                           break
2200                         fi
2201                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204   done
2205 else
2206   ac_lo= ac_hi=
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   ac_hi=$ac_mid
2230 else
2231   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239   else
2240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
2251   FILE *f = fopen ("conftest.val", "w");
2252   if (! f)
2253     return 1;
2254   if (($2) < 0)
2255     {
2256       long int i = longval ();
2257       if (i != ($2))
2258         return 1;
2259       fprintf (f, "%ld", i);
2260     }
2261   else
2262     {
2263       unsigned long int i = ulongval ();
2264       if (i != ($2))
2265         return 1;
2266       fprintf (f, "%lu", i);
2267     }
2268   /* Do not output a trailing newline, as this causes \r\n confusion
2269      on some platforms.  */
2270   return ferror (f) || fclose (f) != 0;
2271
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279   ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282   conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285   fi
2286   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287   as_fn_set_status $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290
2291 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2292 # -------------------------------------------
2293 # Tests whether TYPE exists after having included INCLUDES, setting cache
2294 # variable VAR accordingly.
2295 ac_fn_c_check_type ()
2296 {
2297   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301   $as_echo_n "(cached) " >&6
2302 else
2303   eval "$3=no"
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof ($2))
2311          return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h.  */
2319 $4
2320 int
2321 main ()
2322 {
2323 if (sizeof (($2)))
2324             return 0;
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330
2331 else
2332   eval "$3=yes"
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342
2343 } # ac_fn_c_check_type
2344
2345 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2346 # ---------------------------------------------
2347 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2348 # accordingly.
2349 ac_fn_c_check_decl ()
2350 {
2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352   as_decl_name=`echo $2|sed 's/ *(.*//'`
2353   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2355 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2356 if eval \${$3+:} false; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $4
2362 int
2363 main ()
2364 {
2365 #ifndef $as_decl_name
2366 #ifdef __cplusplus
2367   (void) $as_decl_use;
2368 #else
2369   (void) $as_decl_name;
2370 #endif
2371 #endif
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378   eval "$3=yes"
2379 else
2380   eval "$3=no"
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 fi
2384 eval ac_res=\$$3
2385                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2388
2389 } # ac_fn_c_check_decl
2390
2391 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2392 # ----------------------------------------------------
2393 # Tries to find if the field MEMBER exists in type AGGR, after including
2394 # INCLUDES, setting cache variable VAR accordingly.
2395 ac_fn_c_check_member ()
2396 {
2397   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2399 $as_echo_n "checking for $2.$3... " >&6; }
2400 if eval \${$4+:} false; then :
2401   $as_echo_n "(cached) " >&6
2402 else
2403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $5
2406 int
2407 main ()
2408 {
2409 static $2 ac_aggr;
2410 if (ac_aggr.$3)
2411 return 0;
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   eval "$4=yes"
2418 else
2419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $5
2422 int
2423 main ()
2424 {
2425 static $2 ac_aggr;
2426 if (sizeof ac_aggr.$3)
2427 return 0;
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433   eval "$4=yes"
2434 else
2435   eval "$4=no"
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 fi
2441 eval ac_res=\$$4
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445
2446 } # ac_fn_c_check_member
2447 cat >config.log <<_ACEOF
2448 This file contains any messages produced by compilers while
2449 running configure, to aid debugging if configure makes a mistake.
2450
2451 It was created by gpgme $as_me 1.4.1, which was
2452 generated by GNU Autoconf 2.69.  Invocation command line was
2453
2454   $ $0 $@
2455
2456 _ACEOF
2457 exec 5>>config.log
2458 {
2459 cat <<_ASUNAME
2460 ## --------- ##
2461 ## Platform. ##
2462 ## --------- ##
2463
2464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2469
2470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2471 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2472
2473 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2474 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2476 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2477 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2478 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2479 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2480
2481 _ASUNAME
2482
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488     $as_echo "PATH: $as_dir"
2489   done
2490 IFS=$as_save_IFS
2491
2492 } >&5
2493
2494 cat >&5 <<_ACEOF
2495
2496
2497 ## ----------- ##
2498 ## Core tests. ##
2499 ## ----------- ##
2500
2501 _ACEOF
2502
2503
2504 # Keep a trace of the command line.
2505 # Strip out --no-create and --no-recursion so they do not pile up.
2506 # Strip out --silent because we don't want to record it for future runs.
2507 # Also quote any args containing shell meta-characters.
2508 # Make two passes to allow for proper duplicate-argument suppression.
2509 ac_configure_args=
2510 ac_configure_args0=
2511 ac_configure_args1=
2512 ac_must_keep_next=false
2513 for ac_pass in 1 2
2514 do
2515   for ac_arg
2516   do
2517     case $ac_arg in
2518     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2519     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2520     | -silent | --silent | --silen | --sile | --sil)
2521       continue ;;
2522     *\'*)
2523       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2524     esac
2525     case $ac_pass in
2526     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2527     2)
2528       as_fn_append ac_configure_args1 " '$ac_arg'"
2529       if test $ac_must_keep_next = true; then
2530         ac_must_keep_next=false # Got value, back to normal.
2531       else
2532         case $ac_arg in
2533           *=* | --config-cache | -C | -disable-* | --disable-* \
2534           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2535           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2536           | -with-* | --with-* | -without-* | --without-* | --x)
2537             case "$ac_configure_args0 " in
2538               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2539             esac
2540             ;;
2541           -* ) ac_must_keep_next=true ;;
2542         esac
2543       fi
2544       as_fn_append ac_configure_args " '$ac_arg'"
2545       ;;
2546     esac
2547   done
2548 done
2549 { ac_configure_args0=; unset ac_configure_args0;}
2550 { ac_configure_args1=; unset ac_configure_args1;}
2551
2552 # When interrupted or exit'd, cleanup temporary files, and complete
2553 # config.log.  We remove comments because anyway the quotes in there
2554 # would cause problems or look ugly.
2555 # WARNING: Use '\'' to represent an apostrophe within the trap.
2556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2557 trap 'exit_status=$?
2558   # Save into config.log some information that might help in debugging.
2559   {
2560     echo
2561
2562     $as_echo "## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##"
2565     echo
2566     # The following way of writing the cache mishandles newlines in values,
2567 (
2568   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2569     eval ac_val=\$$ac_var
2570     case $ac_val in #(
2571     *${as_nl}*)
2572       case $ac_var in #(
2573       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2575       esac
2576       case $ac_var in #(
2577       _ | IFS | as_nl) ;; #(
2578       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2579       *) { eval $ac_var=; unset $ac_var;} ;;
2580       esac ;;
2581     esac
2582   done
2583   (set) 2>&1 |
2584     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2585     *${as_nl}ac_space=\ *)
2586       sed -n \
2587         "s/'\''/'\''\\\\'\'''\''/g;
2588           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2589       ;; #(
2590     *)
2591       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2592       ;;
2593     esac |
2594     sort
2595 )
2596     echo
2597
2598     $as_echo "## ----------------- ##
2599 ## Output variables. ##
2600 ## ----------------- ##"
2601     echo
2602     for ac_var in $ac_subst_vars
2603     do
2604       eval ac_val=\$$ac_var
2605       case $ac_val in
2606       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2607       esac
2608       $as_echo "$ac_var='\''$ac_val'\''"
2609     done | sort
2610     echo
2611
2612     if test -n "$ac_subst_files"; then
2613       $as_echo "## ------------------- ##
2614 ## File substitutions. ##
2615 ## ------------------- ##"
2616       echo
2617       for ac_var in $ac_subst_files
2618       do
2619         eval ac_val=\$$ac_var
2620         case $ac_val in
2621         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2622         esac
2623         $as_echo "$ac_var='\''$ac_val'\''"
2624       done | sort
2625       echo
2626     fi
2627
2628     if test -s confdefs.h; then
2629       $as_echo "## ----------- ##
2630 ## confdefs.h. ##
2631 ## ----------- ##"
2632       echo
2633       cat confdefs.h
2634       echo
2635     fi
2636     test "$ac_signal" != 0 &&
2637       $as_echo "$as_me: caught signal $ac_signal"
2638     $as_echo "$as_me: exit $exit_status"
2639   } >&5
2640   rm -f core *.core core.conftest.* &&
2641     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2642     exit $exit_status
2643 ' 0
2644 for ac_signal in 1 2 13 15; do
2645   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2646 done
2647 ac_signal=0
2648
2649 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2650 rm -f -r conftest* confdefs.h
2651
2652 $as_echo "/* confdefs.h */" > confdefs.h
2653
2654 # Predefined preprocessor variables.
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_NAME "$PACKAGE_NAME"
2658 _ACEOF
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2662 _ACEOF
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2666 _ACEOF
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_STRING "$PACKAGE_STRING"
2670 _ACEOF
2671
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2674 _ACEOF
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_URL "$PACKAGE_URL"
2678 _ACEOF
2679
2680
2681 # Let the site file select an alternate cache file if it wants to.
2682 # Prefer an explicitly selected file to automatically selected ones.
2683 ac_site_file1=NONE
2684 ac_site_file2=NONE
2685 if test -n "$CONFIG_SITE"; then
2686   # We do not want a PATH search for config.site.
2687   case $CONFIG_SITE in #((
2688     -*)  ac_site_file1=./$CONFIG_SITE;;
2689     */*) ac_site_file1=$CONFIG_SITE;;
2690     *)   ac_site_file1=./$CONFIG_SITE;;
2691   esac
2692 elif test "x$prefix" != xNONE; then
2693   ac_site_file1=$prefix/share/config.site
2694   ac_site_file2=$prefix/etc/config.site
2695 else
2696   ac_site_file1=$ac_default_prefix/share/config.site
2697   ac_site_file2=$ac_default_prefix/etc/config.site
2698 fi
2699 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2700 do
2701   test "x$ac_site_file" = xNONE && continue
2702   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2703     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2704 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2705     sed 's/^/| /' "$ac_site_file" >&5
2706     . "$ac_site_file" \
2707       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 as_fn_error $? "failed to load site script $ac_site_file
2710 See \`config.log' for more details" "$LINENO" 5; }
2711   fi
2712 done
2713
2714 if test -r "$cache_file"; then
2715   # Some versions of bash will fail to source /dev/null (special files
2716   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2717   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2718     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2719 $as_echo "$as_me: loading cache $cache_file" >&6;}
2720     case $cache_file in
2721       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2722       *)                      . "./$cache_file";;
2723     esac
2724   fi
2725 else
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2727 $as_echo "$as_me: creating cache $cache_file" >&6;}
2728   >$cache_file
2729 fi
2730
2731 as_fn_append ac_header_list " locale.h"
2732 as_fn_append ac_header_list " sys/select.h"
2733 as_fn_append ac_header_list " sys/uio.h"
2734 as_fn_append ac_header_list " argp.h"
2735 as_fn_append ac_header_list " unistd.h"
2736 as_fn_append ac_header_list " sys/time.h"
2737 as_fn_append ac_header_list " sys/types.h"
2738 as_fn_append ac_header_list " sys/stat.h"
2739 # Check that the precious variables saved in the cache have kept the same
2740 # value.
2741 ac_cache_corrupted=false
2742 for ac_var in $ac_precious_vars; do
2743   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744   eval ac_new_set=\$ac_env_${ac_var}_set
2745   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746   eval ac_new_val=\$ac_env_${ac_var}_value
2747   case $ac_old_set,$ac_new_set in
2748     set,)
2749       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751       ac_cache_corrupted=: ;;
2752     ,set)
2753       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755       ac_cache_corrupted=: ;;
2756     ,);;
2757     *)
2758       if test "x$ac_old_val" != "x$ac_new_val"; then
2759         # differences in whitespace do not lead to failure.
2760         ac_old_val_w=`echo x $ac_old_val`
2761         ac_new_val_w=`echo x $ac_new_val`
2762         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765           ac_cache_corrupted=:
2766         else
2767           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769           eval $ac_var=\$ac_old_val
2770         fi
2771         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2772 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2773         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2774 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2775       fi;;
2776   esac
2777   # Pass precious variables to config.status.
2778   if test "$ac_new_set" = set; then
2779     case $ac_new_val in
2780     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781     *) ac_arg=$ac_var=$ac_new_val ;;
2782     esac
2783     case " $ac_configure_args " in
2784       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2785       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786     esac
2787   fi
2788 done
2789 if $ac_cache_corrupted; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2794   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2795 fi
2796 ## -------------------- ##
2797 ## Main body of script. ##
2798 ## -------------------- ##
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806
2807
2808 # LT Version numbers, remember to change them just *before* a release.
2809 #   (Code changed:                      REVISION++)
2810 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2811 #   (Interfaces added:                  AGE++)
2812 #   (Interfaces removed/changed:        AGE=0)
2813 #
2814 LIBGPGME_LT_CURRENT=20
2815 # Subtract 2 from this value if you want to make the LFS transition an
2816 # ABI break.  [Note to self: Remove this comment with the next regular break.]
2817 LIBGPGME_LT_AGE=9
2818 LIBGPGME_LT_REVISION=1
2819
2820 # If the API is changed in an incompatible way: increment the next counter.
2821 GPGME_CONFIG_API_VERSION=1
2822 ##############################################
2823
2824 NEED_GPG_ERROR_VERSION=1.8
2825 NEED_LIBASSUAN_API=2
2826 NEED_LIBASSUAN_VERSION=2.0.2
2827
2828
2829 PACKAGE=$PACKAGE_NAME
2830 VERSION=$PACKAGE_VERSION
2831
2832 ac_aux_dir=
2833 for ac_dir in build-aux "$srcdir"/build-aux; do
2834   if test -f "$ac_dir/install-sh"; then
2835     ac_aux_dir=$ac_dir
2836     ac_install_sh="$ac_aux_dir/install-sh -c"
2837     break
2838   elif test -f "$ac_dir/install.sh"; then
2839     ac_aux_dir=$ac_dir
2840     ac_install_sh="$ac_aux_dir/install.sh -c"
2841     break
2842   elif test -f "$ac_dir/shtool"; then
2843     ac_aux_dir=$ac_dir
2844     ac_install_sh="$ac_aux_dir/shtool install -c"
2845     break
2846   fi
2847 done
2848 if test -z "$ac_aux_dir"; then
2849   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2850 fi
2851
2852 # These three variables are undocumented and unsupported,
2853 # and are intended to be withdrawn in a future Autoconf release.
2854 # They can cause serious problems if a builder's source tree is in a directory
2855 # whose full name contains unusual characters.
2856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2858 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2859
2860
2861
2862
2863 ac_config_headers="$ac_config_headers config.h"
2864
2865 am__api_version='1.11'
2866
2867 # Find a good install program.  We prefer a C program (faster),
2868 # so one script is as good as another.  But avoid the broken or
2869 # incompatible versions:
2870 # SysV /etc/install, /usr/sbin/install
2871 # SunOS /usr/etc/install
2872 # IRIX /sbin/install
2873 # AIX /bin/install
2874 # AmigaOS /C/install, which installs bootblocks on floppy discs
2875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2878 # OS/2's system install, which has a completely different semantic
2879 # ./install, which can be erroneously created by make from ./install.sh.
2880 # Reject install programs that cannot install multiple files.
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2882 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2883 if test -z "$INSTALL"; then
2884 if ${ac_cv_path_install+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892     # Account for people who put trailing slashes in PATH elements.
2893 case $as_dir/ in #((
2894   ./ | .// | /[cC]/* | \
2895   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897   /usr/ucb/* ) ;;
2898   *)
2899     # OSF1 and SCO ODT 3.0 have their own names for install.
2900     # Don't use installbsd from OSF since it installs stuff as root
2901     # by default.
2902     for ac_prog in ginstall scoinst install; do
2903       for ac_exec_ext in '' $ac_executable_extensions; do
2904         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905           if test $ac_prog = install &&
2906             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907             # AIX install.  It has an incompatible calling convention.
2908             :
2909           elif test $ac_prog = install &&
2910             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911             # program-specific install script used by HP pwplus--don't use.
2912             :
2913           else
2914             rm -rf conftest.one conftest.two conftest.dir
2915             echo one > conftest.one
2916             echo two > conftest.two
2917             mkdir conftest.dir
2918             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2919               test -s conftest.one && test -s conftest.two &&
2920               test -s conftest.dir/conftest.one &&
2921               test -s conftest.dir/conftest.two
2922             then
2923               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924               break 3
2925             fi
2926           fi
2927         fi
2928       done
2929     done
2930     ;;
2931 esac
2932
2933   done
2934 IFS=$as_save_IFS
2935
2936 rm -rf conftest.one conftest.two conftest.dir
2937
2938 fi
2939   if test "${ac_cv_path_install+set}" = set; then
2940     INSTALL=$ac_cv_path_install
2941   else
2942     # As a last resort, use the slow shell script.  Don't cache a
2943     # value for INSTALL within a source directory, because that will
2944     # break other packages using the cache if that directory is
2945     # removed, or if the value is a relative name.
2946     INSTALL=$ac_install_sh
2947   fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2950 $as_echo "$INSTALL" >&6; }
2951
2952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2953 # It thinks the first close brace ends the variable substitution.
2954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2955
2956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2957
2958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2961 $as_echo_n "checking whether build environment is sane... " >&6; }
2962 # Just in case
2963 sleep 1
2964 echo timestamp > conftest.file
2965 # Reject unsafe characters in $srcdir or the absolute working directory
2966 # name.  Accept space and tab only in the latter.
2967 am_lf='
2968 '
2969 case `pwd` in
2970   *[\\\"\#\$\&\'\`$am_lf]*)
2971     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2972 esac
2973 case $srcdir in
2974   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2975     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2976 esac
2977
2978 # Do `set' in a subshell so we don't clobber the current shell's
2979 # arguments.  Must try -L first in case configure is actually a
2980 # symlink; some systems play weird games with the mod time of symlinks
2981 # (eg FreeBSD returns the mod time of the symlink's containing
2982 # directory).
2983 if (
2984    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2985    if test "$*" = "X"; then
2986       # -L didn't work.
2987       set X `ls -t "$srcdir/configure" conftest.file`
2988    fi
2989    rm -f conftest.file
2990    if test "$*" != "X $srcdir/configure conftest.file" \
2991       && test "$*" != "X conftest.file $srcdir/configure"; then
2992
2993       # If neither matched, then we have a broken ls.  This can happen
2994       # if, for instance, CONFIG_SHELL is bash and it inherits a
2995       # broken ls alias from the environment.  This has actually
2996       # happened.  Such a system could not be considered "sane".
2997       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2998 alias in your environment" "$LINENO" 5
2999    fi
3000
3001    test "$2" = conftest.file
3002    )
3003 then
3004    # Ok.
3005    :
3006 else
3007    as_fn_error $? "newly created file is older than distributed files!
3008 Check your system clock" "$LINENO" 5
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 test "$program_prefix" != NONE &&
3013   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3014 # Use a double $ so make ignores it.
3015 test "$program_suffix" != NONE &&
3016   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3017 # Double any \ or $.
3018 # By default was `s,x,x', remove it if useless.
3019 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3020 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3021
3022 # expand $ac_aux_dir to an absolute path
3023 am_aux_dir=`cd $ac_aux_dir && pwd`
3024
3025 if test x"${MISSING+set}" != xset; then
3026   case $am_aux_dir in
3027   *\ * | *\     *)
3028     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3029   *)
3030     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3031   esac
3032 fi
3033 # Use eval to expand $SHELL
3034 if eval "$MISSING --run true"; then
3035   am_missing_run="$MISSING --run "
3036 else
3037   am_missing_run=
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3039 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3040 fi
3041
3042 if test x"${install_sh}" != xset; then
3043   case $am_aux_dir in
3044   *\ * | *\     *)
3045     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3046   *)
3047     install_sh="\${SHELL} $am_aux_dir/install-sh"
3048   esac
3049 fi
3050
3051 # Installed binaries are usually stripped using `strip' when the user
3052 # run `make install-strip'.  However `strip' might not be the right
3053 # tool to use in cross-compilation environments, therefore Automake
3054 # will honor the `STRIP' environment variable to overrule this program.
3055 if test "$cross_compiling" != no; then
3056   if test -n "$ac_tool_prefix"; then
3057   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}strip; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_STRIP+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$STRIP"; then
3065   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 STRIP=$ac_cv_prog_STRIP
3085 if test -n "$STRIP"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3087 $as_echo "$STRIP" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$ac_cv_prog_STRIP"; then
3096   ac_ct_STRIP=$STRIP
3097   # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$ac_ct_STRIP"; then
3105   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114     ac_cv_prog_ac_ct_STRIP="strip"
3115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119   done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3127 $as_echo "$ac_ct_STRIP" >&6; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133   if test "x$ac_ct_STRIP" = x; then
3134     STRIP=":"
3135   else
3136     case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142     STRIP=$ac_ct_STRIP
3143   fi
3144 else
3145   STRIP="$ac_cv_prog_STRIP"
3146 fi
3147
3148 fi
3149 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3152 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3153 if test -z "$MKDIR_P"; then
3154   if ${ac_cv_path_mkdir+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_prog in mkdir gmkdir; do
3163          for ac_exec_ext in '' $ac_executable_extensions; do
3164            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3165            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3166              'mkdir (GNU coreutils) '* | \
3167              'mkdir (coreutils) '* | \
3168              'mkdir (fileutils) '4.1*)
3169                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3170                break 3;;
3171            esac
3172          done
3173        done
3174   done
3175 IFS=$as_save_IFS
3176
3177 fi
3178
3179   test -d ./--version && rmdir ./--version
3180   if test "${ac_cv_path_mkdir+set}" = set; then
3181     MKDIR_P="$ac_cv_path_mkdir -p"
3182   else
3183     # As a last resort, use the slow shell script.  Don't cache a
3184     # value for MKDIR_P within a source directory, because that will
3185     # break other packages using the cache if that directory is
3186     # removed, or if the value is a relative name.
3187     MKDIR_P="$ac_install_sh -d"
3188   fi
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3191 $as_echo "$MKDIR_P" >&6; }
3192
3193 mkdir_p="$MKDIR_P"
3194 case $mkdir_p in
3195   [\\/$]* | ?:[\\/]*) ;;
3196   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3197 esac
3198
3199 for ac_prog in gawk mawk nawk awk
3200 do
3201   # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_AWK+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$AWK"; then
3209   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218     ac_cv_prog_AWK="$ac_prog"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 AWK=$ac_cv_prog_AWK
3229 if test -n "$AWK"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3231 $as_echo "$AWK" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238   test -n "$AWK" && break
3239 done
3240
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3243 set x ${MAKE-make}
3244 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3245 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   cat >conftest.make <<\_ACEOF
3249 SHELL = /bin/sh
3250 all:
3251         @echo '@@@%%%=$(MAKE)=@@@%%%'
3252 _ACEOF
3253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3255   *@@@%%%=?*=@@@%%%*)
3256     eval ac_cv_prog_make_${ac_make}_set=yes;;
3257   *)
3258     eval ac_cv_prog_make_${ac_make}_set=no;;
3259 esac
3260 rm -f conftest.make
3261 fi
3262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3265   SET_MAKE=
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269   SET_MAKE="MAKE=${MAKE-make}"
3270 fi
3271
3272 rm -rf .tst 2>/dev/null
3273 mkdir .tst 2>/dev/null
3274 if test -d .tst; then
3275   am__leading_dot=.
3276 else
3277   am__leading_dot=_
3278 fi
3279 rmdir .tst 2>/dev/null
3280
3281 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3282   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3283   # is not polluted with repeated "-I."
3284   am__isrc=' -I$(srcdir)'
3285   # test to see if srcdir already configured
3286   if test -f $srcdir/config.status; then
3287     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3288   fi
3289 fi
3290
3291 # test whether we have cygpath
3292 if test -z "$CYGPATH_W"; then
3293   if (cygpath --version) >/dev/null 2>/dev/null; then
3294     CYGPATH_W='cygpath -w'
3295   else
3296     CYGPATH_W=echo
3297   fi
3298 fi
3299
3300
3301 # Define the identity of the package.
3302  PACKAGE='gpgme'
3303  VERSION='1.4.1'
3304
3305
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE "$PACKAGE"
3308 _ACEOF
3309
3310
3311 cat >>confdefs.h <<_ACEOF
3312 #define VERSION "$VERSION"
3313 _ACEOF
3314
3315 # Some tools Automake needs.
3316
3317 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318
3319
3320 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321
3322
3323 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324
3325
3326 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327
3328
3329 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3330
3331 # We need awk for the "check" target.  The system "awk" is bad on
3332 # some platforms.
3333 # Always define AMTAR for backward compatibility.  Yes, it's still used
3334 # in the wild :-(  We should find a proper way to deprecate it ...
3335 AMTAR='$${TAR-tar}'
3336
3337 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3338
3339
3340
3341
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3346     # Check whether --enable-maintainer-mode was given.
3347 if test "${enable_maintainer_mode+set}" = set; then :
3348   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3349 else
3350   USE_MAINTAINER_MODE=no
3351 fi
3352
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3355    if test $USE_MAINTAINER_MODE = yes; then
3356   MAINTAINER_MODE_TRUE=
3357   MAINTAINER_MODE_FALSE='#'
3358 else
3359   MAINTAINER_MODE_TRUE='#'
3360   MAINTAINER_MODE_FALSE=
3361 fi
3362
3363   MAINT=$MAINTAINER_MODE_TRUE
3364
3365
3366 # Make sure we can run config.sub.
3367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3369
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371 $as_echo_n "checking build system type... " >&6; }
3372 if ${ac_cv_build+:} false; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   ac_build_alias=$build_alias
3376 test "x$ac_build_alias" = x &&
3377   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378 test "x$ac_build_alias" = x &&
3379   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385 $as_echo "$ac_cv_build" >&6; }
3386 case $ac_cv_build in
3387 *-*-*) ;;
3388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3389 esac
3390 build=$ac_cv_build
3391 ac_save_IFS=$IFS; IFS='-'
3392 set x $ac_cv_build
3393 shift
3394 build_cpu=$1
3395 build_vendor=$2
3396 shift; shift
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3399 build_os=$*
3400 IFS=$ac_save_IFS
3401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405 $as_echo_n "checking host system type... " >&6; }
3406 if ${ac_cv_host+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test "x$host_alias" = x; then
3410   ac_cv_host=$ac_cv_build
3411 else
3412   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3414 fi
3415
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418 $as_echo "$ac_cv_host" >&6; }
3419 case $ac_cv_host in
3420 *-*-*) ;;
3421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3422 esac
3423 host=$ac_cv_host
3424 ac_save_IFS=$IFS; IFS='-'
3425 set x $ac_cv_host
3426 shift
3427 host_cpu=$1
3428 host_vendor=$2
3429 shift; shift
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3432 host_os=$*
3433 IFS=$ac_save_IFS
3434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3435
3436
3437
3438 # Enable GNU extensions on systems that have them.
3439 DEPDIR="${am__leading_dot}deps"
3440
3441 ac_config_commands="$ac_config_commands depfiles"
3442
3443
3444 am_make=${MAKE-make}
3445 cat > confinc << 'END'
3446 am__doit:
3447         @echo this is the am__doit target
3448 .PHONY: am__doit
3449 END
3450 # If we don't find an include directive, just comment out the code.
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3452 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3453 am__include="#"
3454 am__quote=
3455 _am_result=none
3456 # First try GNU make style include.
3457 echo "include confinc" > confmf
3458 # Ignore all kinds of additional output from `make'.
3459 case `$am_make -s -f confmf 2> /dev/null` in #(
3460 *the\ am__doit\ target*)
3461   am__include=include
3462   am__quote=
3463   _am_result=GNU
3464   ;;
3465 esac
3466 # Now try BSD make style include.
3467 if test "$am__include" = "#"; then
3468    echo '.include "confinc"' > confmf
3469    case `$am_make -s -f confmf 2> /dev/null` in #(
3470    *the\ am__doit\ target*)
3471      am__include=.include
3472      am__quote="\""
3473      _am_result=BSD
3474      ;;
3475    esac
3476 fi
3477
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3480 $as_echo "$_am_result" >&6; }
3481 rm -f confinc confmf
3482
3483 # Check whether --enable-dependency-tracking was given.
3484 if test "${enable_dependency_tracking+set}" = set; then :
3485   enableval=$enable_dependency_tracking;
3486 fi
3487
3488 if test "x$enable_dependency_tracking" != xno; then
3489   am_depcomp="$ac_aux_dir/depcomp"
3490   AMDEPBACKSLASH='\'
3491   am__nodep='_no'
3492 fi
3493  if test "x$enable_dependency_tracking" != xno; then
3494   AMDEP_TRUE=
3495   AMDEP_FALSE='#'
3496 else
3497   AMDEP_TRUE='#'
3498   AMDEP_FALSE=
3499 fi
3500
3501
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   if test -n "$CC"; then
3516   ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523     for ac_exec_ext in '' $ac_executable_extensions; do
3524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530   done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$ac_cv_prog_CC"; then
3547   ac_ct_CC=$CC
3548   # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   if test -n "$ac_ct_CC"; then
3556   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_prog_ac_ct_CC="gcc"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3579 else
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584   if test "x$ac_ct_CC" = x; then
3585     CC=""
3586   else
3587     case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593     CC=$ac_ct_CC
3594   fi
3595 else
3596   CC="$ac_cv_prog_CC"
3597 fi
3598
3599 if test -z "$CC"; then
3600           if test -n "$ac_tool_prefix"; then
3601     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608   if test -n "$CC"; then
3609   ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616     for ac_exec_ext in '' $ac_executable_extensions; do
3617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618     ac_cv_prog_CC="${ac_tool_prefix}cc"
3619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623   done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638   fi
3639 fi
3640 if test -z "$CC"; then
3641   # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   if test -n "$CC"; then
3649   ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651   ac_prog_rejected=no
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657     for ac_exec_ext in '' $ac_executable_extensions; do
3658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660        ac_prog_rejected=yes
3661        continue
3662      fi
3663     ac_cv_prog_CC="cc"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 if test $ac_prog_rejected = yes; then
3672   # We found a bogon in the path, so make sure we never use it.
3673   set dummy $ac_cv_prog_CC
3674   shift
3675   if test $# != 0; then
3676     # We chose a different compiler from the bogus one.
3677     # However, it has the same basename, so the bogon will be chosen
3678     # first if we set CC to just the basename; use the full file name.
3679     shift
3680     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3681   fi
3682 fi
3683 fi
3684 fi
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694
3695 fi
3696 if test -z "$CC"; then
3697   if test -n "$ac_tool_prefix"; then
3698   for ac_prog in cl.exe
3699   do
3700     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737     test -n "$CC" && break
3738   done
3739 fi
3740 if test -z "$CC"; then
3741   ac_ct_CC=$CC
3742   for ac_prog in cl.exe
3743 do
3744   # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -n "$ac_ct_CC"; then
3752   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757   IFS=$as_save_IFS
3758   test -z "$as_dir" && as_dir=.
3759     for ac_exec_ext in '' $ac_executable_extensions; do
3760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761     ac_cv_prog_ac_ct_CC="$ac_prog"
3762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763     break 2
3764   fi
3765 done
3766   done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3775 else
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781   test -n "$ac_ct_CC" && break
3782 done
3783
3784   if test "x$ac_ct_CC" = x; then
3785     CC=""
3786   else
3787     case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793     CC=$ac_ct_CC
3794   fi
3795 fi
3796
3797 fi
3798
3799
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details" "$LINENO" 5; }
3804
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810   { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818   ac_status=$?
3819   if test -s conftest.err; then
3820     sed '10a\
3821 ... rest of stderr output deleted ...
3822          10q' conftest.err >conftest.er1
3823     cat conftest.er1 >&5
3824   fi
3825   rm -f conftest.er1 conftest.err
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }
3828 done
3829
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 ac_clean_files_save=$ac_clean_files
3842 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843 # Try to create an executable without -o first, disregard a.out.
3844 # It will help us diagnose broken compilers, and finding out an intuition
3845 # of exeext.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847 $as_echo_n "checking whether the C compiler works... " >&6; }
3848 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849
3850 # The possible output files:
3851 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852
3853 ac_rmfiles=
3854 for ac_file in $ac_files
3855 do
3856   case $ac_file in
3857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859   esac
3860 done
3861 rm -f $ac_rmfiles
3862
3863 if { { ac_try="$ac_link_default"
3864 case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870   (eval "$ac_link_default") 2>&5
3871   ac_status=$?
3872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873   test $ac_status = 0; }; then :
3874   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3876 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3877 # so that the user can short-circuit this test for compilers unknown to
3878 # Autoconf.
3879 for ac_file in $ac_files ''
3880 do
3881   test -f "$ac_file" || continue
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3884         ;;
3885     [ab].out )
3886         # We found the default executable, but exeext='' is most
3887         # certainly right.
3888         break;;
3889     *.* )
3890         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3891         then :; else
3892            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893         fi
3894         # We set ac_cv_exeext here because the later test for it is not
3895         # safe: cross compilers may not add the suffix if given an `-o'
3896         # argument, so we may need to know it at that point already.
3897         # Even if this section looks crufty: it has the advantage of
3898         # actually working.
3899         break;;
3900     * )
3901         break;;
3902   esac
3903 done
3904 test "$ac_cv_exeext" = no && ac_cv_exeext=
3905
3906 else
3907   ac_file=''
3908 fi
3909 if test -z "$ac_file"; then :
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error 77 "C compiler cannot create executables
3918 See \`config.log' for more details" "$LINENO" 5; }
3919 else
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921 $as_echo "yes" >&6; }
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926 $as_echo "$ac_file" >&6; }
3927 ac_exeext=$ac_cv_exeext
3928
3929 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932 $as_echo_n "checking for suffix of executables... " >&6; }
3933 if { { ac_try="$ac_link"
3934 case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940   (eval "$ac_link") 2>&5
3941   ac_status=$?
3942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943   test $ac_status = 0; }; then :
3944   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3945 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3946 # work properly (i.e., refer to `conftest.exe'), while it won't with
3947 # `rm'.
3948 for ac_file in conftest.exe conftest conftest.*; do
3949   test -f "$ac_file" || continue
3950   case $ac_file in
3951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953           break;;
3954     * ) break;;
3955   esac
3956 done
3957 else
3958   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 fi
3963 rm -f conftest conftest$ac_cv_exeext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3965 $as_echo "$ac_cv_exeext" >&6; }
3966
3967 rm -f conftest.$ac_ext
3968 EXEEXT=$ac_cv_exeext
3969 ac_exeext=$EXEEXT
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972 #include <stdio.h>
3973 int
3974 main ()
3975 {
3976 FILE *f = fopen ("conftest.out", "w");
3977  return ferror (f) || fclose (f) != 0;
3978
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 ac_clean_files="$ac_clean_files conftest.out"
3984 # Check that the compiler produces executables we can run.  If not, either
3985 # the compiler is broken, or we cross compile.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3987 $as_echo_n "checking whether we are cross compiling... " >&6; }
3988 if test "$cross_compiling" != yes; then
3989   { { ac_try="$ac_link"
3990 case "(($ac_try" in
3991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992   *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996   (eval "$ac_link") 2>&5
3997   ac_status=$?
3998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999   test $ac_status = 0; }
4000   if { ac_try='./conftest$ac_cv_exeext'
4001   { { case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007   (eval "$ac_try") 2>&5
4008   ac_status=$?
4009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010   test $ac_status = 0; }; }; then
4011     cross_compiling=no
4012   else
4013     if test "$cross_compiling" = maybe; then
4014         cross_compiling=yes
4015     else
4016         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "cannot run C compiled programs.
4019 If you meant to cross compile, use \`--host'.
4020 See \`config.log' for more details" "$LINENO" 5; }
4021     fi
4022   fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025 $as_echo "$cross_compiling" >&6; }
4026
4027 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4028 ac_clean_files=$ac_clean_files_save
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if ${ac_cv_objext+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053   (eval "$ac_compile") 2>&5
4054   ac_status=$?
4055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056   test $ac_status = 0; }; then :
4057   for ac_file in conftest.o conftest.obj conftest.*; do
4058   test -f "$ac_file" || continue;
4059   case $ac_file in
4060     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062        break;;
4063   esac
4064 done
4065 else
4066   $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details" "$LINENO" 5; }
4073 fi
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if ${ac_cv_c_compiler_gnu+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087
4088 int
4089 main ()
4090 {
4091 #ifndef __GNUC__
4092        choke me
4093 #endif
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_compiler_gnu=yes
4101 else
4102   ac_compiler_gnu=no
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4111   GCC=yes
4112 else
4113   GCC=
4114 fi
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if ${ac_cv_prog_cc_g+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   ac_save_c_werror_flag=$ac_c_werror_flag
4123    ac_c_werror_flag=yes
4124    ac_cv_prog_cc_g=no
4125    CFLAGS="-g"
4126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138   ac_cv_prog_cc_g=yes
4139 else
4140   CFLAGS=""
4141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143
4144 int
4145 main ()
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153
4154 else
4155   ac_c_werror_flag=$ac_save_c_werror_flag
4156          CFLAGS="-g"
4157          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h.  */
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169   ac_cv_prog_cc_g=yes
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176    ac_c_werror_flag=$ac_save_c_werror_flag
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181   CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183   if test "$GCC" = yes; then
4184     CFLAGS="-g -O2"
4185   else
4186     CFLAGS="-g"
4187   fi
4188 else
4189   if test "$GCC" = yes; then
4190     CFLAGS="-O2"
4191   else
4192     CFLAGS=
4193   fi
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if ${ac_cv_prog_cc_c89+:} false; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   ac_cv_prog_cc_c89=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204 #include <stdarg.h>
4205 #include <stdio.h>
4206 struct stat;
4207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4208 struct buf { int x; };
4209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210 static char *e (p, i)
4211      char **p;
4212      int i;
4213 {
4214   return p[i];
4215 }
4216 static char *f (char * (*g) (char **, int), char **p, ...)
4217 {
4218   char *s;
4219   va_list v;
4220   va_start (v,p);
4221   s = g (p, va_arg (v,int));
4222   va_end (v);
4223   return s;
4224 }
4225
4226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4227    function prototypes and stuff, but not '\xHH' hex character constants.
4228    These don't provoke an error unfortunately, instead are silently treated
4229    as 'x'.  The following induces an error, until -std is added to get
4230    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4231    array size at least.  It's necessary to write '\x00'==0 to get something
4232    that's true only with -std.  */
4233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234
4235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236    inside strings and character constants.  */
4237 #define FOO(x) 'x'
4238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239
4240 int test (int i, double x);
4241 struct s1 {int (*f) (int a);};
4242 struct s2 {int (*f) (double a);};
4243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 int argc;
4245 char **argv;
4246 int
4247 main ()
4248 {
4249 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 do
4257   CC="$ac_save_CC $ac_arg"
4258   if ac_fn_c_try_compile "$LINENO"; then :
4259   ac_cv_prog_cc_c89=$ac_arg
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext
4262   test "x$ac_cv_prog_cc_c89" != "xno" && break
4263 done
4264 rm -f conftest.$ac_ext
4265 CC=$ac_save_CC
4266
4267 fi
4268 # AC_CACHE_VAL
4269 case "x$ac_cv_prog_cc_c89" in
4270   x)
4271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 $as_echo "none needed" >&6; } ;;
4273   xno)
4274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 $as_echo "unsupported" >&6; } ;;
4276   *)
4277     CC="$CC $ac_cv_prog_cc_c89"
4278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280 esac
4281 if test "x$ac_cv_prog_cc_c89" != xno; then :
4282
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291 depcc="$CC"   am_compiler_list=
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4294 $as_echo_n "checking dependency style of $depcc... " >&6; }
4295 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4299   # We make a subdir and do the tests there.  Otherwise we can end up
4300   # making bogus files that we don't know about and never remove.  For
4301   # instance it was reported that on HP-UX the gcc test will end up
4302   # making a dummy file named `D' -- because `-MD' means `put the output
4303   # in D'.
4304   rm -rf conftest.dir
4305   mkdir conftest.dir
4306   # Copy depcomp to subdir because otherwise we won't find it if we're
4307   # using a relative directory.
4308   cp "$am_depcomp" conftest.dir
4309   cd conftest.dir
4310   # We will build objects and dependencies in a subdirectory because
4311   # it helps to detect inapplicable dependency modes.  For instance
4312   # both Tru64's cc and ICC support -MD to output dependencies as a
4313   # side effect of compilation, but ICC will put the dependencies in
4314   # the current directory while Tru64 will put them in the object
4315   # directory.
4316   mkdir sub
4317
4318   am_cv_CC_dependencies_compiler_type=none
4319   if test "$am_compiler_list" = ""; then
4320      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4321   fi
4322   am__universal=false
4323   case " $depcc " in #(
4324      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4325      esac
4326
4327   for depmode in $am_compiler_list; do
4328     # Setup a source with many dependencies, because some compilers
4329     # like to wrap large dependency lists on column 80 (with \), and
4330     # we should not choose a depcomp mode which is confused by this.
4331     #
4332     # We need to recreate these files for each test, as the compiler may
4333     # overwrite some of them when testing with obscure command lines.
4334     # This happens at least with the AIX C compiler.
4335     : > sub/conftest.c
4336     for i in 1 2 3 4 5 6; do
4337       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4338       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4339       # Solaris 8's {/usr,}/bin/sh.
4340       touch sub/conftst$i.h
4341     done
4342     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4343
4344     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4345     # mode.  It turns out that the SunPro C++ compiler does not properly
4346     # handle `-M -o', and we need to detect this.  Also, some Intel
4347     # versions had trouble with output in subdirs
4348     am__obj=sub/conftest.${OBJEXT-o}
4349     am__minus_obj="-o $am__obj"
4350     case $depmode in
4351     gcc)
4352       # This depmode causes a compiler race in universal mode.
4353       test "$am__universal" = false || continue
4354       ;;
4355     nosideeffect)
4356       # after this tag, mechanisms are not by side-effect, so they'll
4357       # only be used when explicitly requested
4358       if test "x$enable_dependency_tracking" = xyes; then
4359         continue
4360       else
4361         break
4362       fi
4363       ;;
4364     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4365       # This compiler won't grok `-c -o', but also, the minuso test has
4366       # not run yet.  These depmodes are late enough in the game, and
4367       # so weak that their functioning should not be impacted.
4368       am__obj=conftest.${OBJEXT-o}
4369       am__minus_obj=
4370       ;;
4371     none) break ;;
4372     esac
4373     if depmode=$depmode \
4374        source=sub/conftest.c object=$am__obj \
4375        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4376        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4377          >/dev/null 2>conftest.err &&
4378        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4379        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4380        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4382       # icc doesn't choke on unknown options, it will just issue warnings
4383       # or remarks (even with -Werror).  So we grep stderr for any message
4384       # that says an option was ignored or not supported.
4385       # When given -MP, icc 7.0 and 7.1 complain thusly:
4386       #   icc: Command line warning: ignoring option '-M'; no argument required
4387       # The diagnosis changed in icc 8.0:
4388       #   icc: Command line remark: option '-MP' not supported
4389       if (grep 'ignoring option' conftest.err ||
4390           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4391         am_cv_CC_dependencies_compiler_type=$depmode
4392         break
4393       fi
4394     fi
4395   done
4396
4397   cd ..
4398   rm -rf conftest.dir
4399 else
4400   am_cv_CC_dependencies_compiler_type=none
4401 fi
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4407
4408  if
4409   test "x$enable_dependency_tracking" != xno \
4410   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4411   am__fastdepCC_TRUE=
4412   am__fastdepCC_FALSE='#'
4413 else
4414   am__fastdepCC_TRUE='#'
4415   am__fastdepCC_FALSE=
4416 fi
4417
4418
4419
4420 ac_ext=c
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4427 # On Suns, sometimes $CPP names a directory.
4428 if test -n "$CPP" && test -d "$CPP"; then
4429   CPP=
4430 fi
4431 if test -z "$CPP"; then
4432   if ${ac_cv_prog_CPP+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435       # Double quotes because CPP needs to be expanded
4436     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4437     do
4438       ac_preproc_ok=false
4439 for ac_c_preproc_warn_flag in '' yes
4440 do
4441   # Use a header file that comes with gcc, so configuring glibc
4442   # with a fresh cross-compiler works.
4443   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444   # <limits.h> exists even on freestanding compilers.
4445   # On the NeXT, cc -E runs the code through the compiler's parser,
4446   # not just through cpp. "Syntax error" is here to catch this case.
4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #ifdef __STDC__
4450 # include <limits.h>
4451 #else
4452 # include <assert.h>
4453 #endif
4454                      Syntax error
4455 _ACEOF
4456 if ac_fn_c_try_cpp "$LINENO"; then :
4457
4458 else
4459   # Broken: fails on valid input.
4460 continue
4461 fi
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464   # OK, works on sane cases.  Now check whether nonexistent headers
4465   # can be detected and how.
4466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h.  */
4468 #include <ac_nonexistent.h>
4469 _ACEOF
4470 if ac_fn_c_try_cpp "$LINENO"; then :
4471   # Broken: success on invalid input.
4472 continue
4473 else
4474   # Passes both tests.
4475 ac_preproc_ok=:
4476 break
4477 fi
4478 rm -f conftest.err conftest.i conftest.$ac_ext
4479
4480 done
4481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4482 rm -f conftest.i conftest.err conftest.$ac_ext
4483 if $ac_preproc_ok; then :
4484   break
4485 fi
4486
4487     done
4488     ac_cv_prog_CPP=$CPP
4489
4490 fi
4491   CPP=$ac_cv_prog_CPP
4492 else
4493   ac_cv_prog_CPP=$CPP
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4496 $as_echo "$CPP" >&6; }
4497 ac_preproc_ok=false
4498 for ac_c_preproc_warn_flag in '' yes
4499 do
4500   # Use a header file that comes with gcc, so configuring glibc
4501   # with a fresh cross-compiler works.
4502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503   # <limits.h> exists even on freestanding compilers.
4504   # On the NeXT, cc -E runs the code through the compiler's parser,
4505   # not just through cpp. "Syntax error" is here to catch this case.
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #ifdef __STDC__
4509 # include <limits.h>
4510 #else
4511 # include <assert.h>
4512 #endif
4513                      Syntax error
4514 _ACEOF
4515 if ac_fn_c_try_cpp "$LINENO"; then :
4516
4517 else
4518   # Broken: fails on valid input.
4519 continue
4520 fi
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523   # OK, works on sane cases.  Now check whether nonexistent headers
4524   # can be detected and how.
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527 #include <ac_nonexistent.h>
4528 _ACEOF
4529 if ac_fn_c_try_cpp "$LINENO"; then :
4530   # Broken: success on invalid input.
4531 continue
4532 else
4533   # Passes both tests.
4534 ac_preproc_ok=:
4535 break
4536 fi
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4538
4539 done
4540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4541 rm -f conftest.i conftest.err conftest.$ac_ext
4542 if $ac_preproc_ok; then :
4543
4544 else
4545   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 fi
4550
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4559 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4560 if ${ac_cv_path_GREP+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   if test -z "$GREP"; then
4564   ac_path_GREP_found=false
4565   # Loop through the user's path and test for each of PROGNAME-LIST
4566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571     for ac_prog in grep ggrep; do
4572     for ac_exec_ext in '' $ac_executable_extensions; do
4573       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4574       as_fn_executable_p "$ac_path_GREP" || continue
4575 # Check for GNU ac_path_GREP and select it if it is found.
4576   # Check for GNU $ac_path_GREP
4577 case `"$ac_path_GREP" --version 2>&1` in
4578 *GNU*)
4579   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4580 *)
4581   ac_count=0
4582   $as_echo_n 0123456789 >"conftest.in"
4583   while :
4584   do
4585     cat "conftest.in" "conftest.in" >"conftest.tmp"
4586     mv "conftest.tmp" "conftest.in"
4587     cp "conftest.in" "conftest.nl"
4588     $as_echo 'GREP' >> "conftest.nl"
4589     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591     as_fn_arith $ac_count + 1 && ac_count=$as_val
4592     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4593       # Best one so far, save it but keep looking for a better one
4594       ac_cv_path_GREP="$ac_path_GREP"
4595       ac_path_GREP_max=$ac_count
4596     fi
4597     # 10*(2^10) chars as input seems more than enough
4598     test $ac_count -gt 10 && break
4599   done
4600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601 esac
4602
4603       $ac_path_GREP_found && break 3
4604     done
4605   done
4606   done
4607 IFS=$as_save_IFS
4608   if test -z "$ac_cv_path_GREP"; then
4609     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4610   fi
4611 else
4612   ac_cv_path_GREP=$GREP
4613 fi
4614
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4617 $as_echo "$ac_cv_path_GREP" >&6; }
4618  GREP="$ac_cv_path_GREP"
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4622 $as_echo_n "checking for egrep... " >&6; }
4623 if ${ac_cv_path_EGREP+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4627    then ac_cv_path_EGREP="$GREP -E"
4628    else
4629      if test -z "$EGREP"; then
4630   ac_path_EGREP_found=false
4631   # Loop through the user's path and test for each of PROGNAME-LIST
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637     for ac_prog in egrep; do
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4640       as_fn_executable_p "$ac_path_EGREP" || continue
4641 # Check for GNU ac_path_EGREP and select it if it is found.
4642   # Check for GNU $ac_path_EGREP
4643 case `"$ac_path_EGREP" --version 2>&1` in
4644 *GNU*)
4645   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4646 *)
4647   ac_count=0
4648   $as_echo_n 0123456789 >"conftest.in"
4649   while :
4650   do
4651     cat "conftest.in" "conftest.in" >"conftest.tmp"
4652     mv "conftest.tmp" "conftest.in"
4653     cp "conftest.in" "conftest.nl"
4654     $as_echo 'EGREP' >> "conftest.nl"
4655     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657     as_fn_arith $ac_count + 1 && ac_count=$as_val
4658     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4659       # Best one so far, save it but keep looking for a better one
4660       ac_cv_path_EGREP="$ac_path_EGREP"
4661       ac_path_EGREP_max=$ac_count
4662     fi
4663     # 10*(2^10) chars as input seems more than enough
4664     test $ac_count -gt 10 && break
4665   done
4666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669       $ac_path_EGREP_found && break 3
4670     done
4671   done
4672   done
4673 IFS=$as_save_IFS
4674   if test -z "$ac_cv_path_EGREP"; then
4675     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676   fi
4677 else
4678   ac_cv_path_EGREP=$EGREP
4679 fi
4680
4681    fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4684 $as_echo "$ac_cv_path_EGREP" >&6; }
4685  EGREP="$ac_cv_path_EGREP"
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4689 $as_echo_n "checking for ANSI C header files... " >&6; }
4690 if ${ac_cv_header_stdc+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h.  */
4695 #include <stdlib.h>
4696 #include <stdarg.h>
4697 #include <string.h>
4698 #include <float.h>
4699
4700 int
4701 main ()
4702 {
4703
4704   ;
4705   return 0;
4706 }
4707 _ACEOF
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709   ac_cv_header_stdc=yes
4710 else
4711   ac_cv_header_stdc=no
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714
4715 if test $ac_cv_header_stdc = yes; then
4716   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719 #include <string.h>
4720
4721 _ACEOF
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723   $EGREP "memchr" >/dev/null 2>&1; then :
4724
4725 else
4726   ac_cv_header_stdc=no
4727 fi
4728 rm -f conftest*
4729
4730 fi
4731
4732 if test $ac_cv_header_stdc = yes; then
4733   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 #include <stdlib.h>
4737
4738 _ACEOF
4739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740   $EGREP "free" >/dev/null 2>&1; then :
4741
4742 else
4743   ac_cv_header_stdc=no
4744 fi
4745 rm -f conftest*
4746
4747 fi
4748
4749 if test $ac_cv_header_stdc = yes; then
4750   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4751   if test "$cross_compiling" = yes; then :
4752   :
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756 #include <ctype.h>
4757 #include <stdlib.h>
4758 #if ((' ' & 0x0FF) == 0x020)
4759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4761 #else
4762 # define ISLOWER(c) \
4763                    (('a' <= (c) && (c) <= 'i') \
4764                      || ('j' <= (c) && (c) <= 'r') \
4765                      || ('s' <= (c) && (c) <= 'z'))
4766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4767 #endif
4768
4769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4770 int
4771 main ()
4772 {
4773   int i;
4774   for (i = 0; i < 256; i++)
4775     if (XOR (islower (i), ISLOWER (i))
4776         || toupper (i) != TOUPPER (i))
4777       return 2;
4778   return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_run "$LINENO"; then :
4782
4783 else
4784   ac_cv_header_stdc=no
4785 fi
4786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4787   conftest.$ac_objext conftest.beam conftest.$ac_ext
4788 fi
4789
4790 fi
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4793 $as_echo "$ac_cv_header_stdc" >&6; }
4794 if test $ac_cv_header_stdc = yes; then
4795
4796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4797
4798 fi
4799
4800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802                   inttypes.h stdint.h unistd.h
4803 do :
4804   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4806 "
4807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4808   cat >>confdefs.h <<_ACEOF
4809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4810 _ACEOF
4811
4812 fi
4813
4814 done
4815
4816
4817
4818   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4819 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4820   MINIX=yes
4821 else
4822   MINIX=
4823 fi
4824
4825
4826   if test "$MINIX" = yes; then
4827
4828 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4829
4830
4831 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4832
4833
4834 $as_echo "#define _MINIX 1" >>confdefs.h
4835
4836   fi
4837
4838
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4840 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4841 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h.  */
4846
4847 #         define __EXTENSIONS__ 1
4848           $ac_includes_default
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858   ac_cv_safe_to_define___extensions__=yes
4859 else
4860   ac_cv_safe_to_define___extensions__=no
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4865 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4866   test $ac_cv_safe_to_define___extensions__ = yes &&
4867     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4868
4869   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4870
4871   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4872
4873   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4874
4875   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4876
4877
4878
4879
4880
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 if test -n "$ac_tool_prefix"; then
4888   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$CC"; then
4896   ac_cv_prog_CC="$CC" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_CC"; then
4927   ac_ct_CC=$CC
4928   # Extract the first word of "gcc", so it can be a program name with args.
4929 set dummy gcc; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$ac_ct_CC"; then
4936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945     ac_cv_prog_ac_ct_CC="gcc"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956 if test -n "$ac_ct_CC"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958 $as_echo "$ac_ct_CC" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964   if test "x$ac_ct_CC" = x; then
4965     CC=""
4966   else
4967     case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973     CC=$ac_ct_CC
4974   fi
4975 else
4976   CC="$ac_cv_prog_CC"
4977 fi
4978
4979 if test -z "$CC"; then
4980           if test -n "$ac_tool_prefix"; then
4981     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}cc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_CC+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$CC"; then
4989   ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_CC="${ac_tool_prefix}cc"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 CC=$ac_cv_prog_CC
5009 if test -n "$CC"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017
5018   fi
5019 fi
5020 if test -z "$CC"; then
5021   # Extract the first word of "cc", so it can be a program name with args.
5022 set dummy cc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_CC+:} false; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   if test -n "$CC"; then
5029   ac_cv_prog_CC="$CC" # Let the user override the test.
5030 else
5031   ac_prog_rejected=no
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040        ac_prog_rejected=yes
5041        continue
5042      fi
5043     ac_cv_prog_CC="cc"
5044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048   done
5049 IFS=$as_save_IFS
5050
5051 if test $ac_prog_rejected = yes; then
5052   # We found a bogon in the path, so make sure we never use it.
5053   set dummy $ac_cv_prog_CC
5054   shift
5055   if test $# != 0; then
5056     # We chose a different compiler from the bogus one.
5057     # However, it has the same basename, so the bogon will be chosen
5058     # first if we set CC to just the basename; use the full file name.
5059     shift
5060     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5061   fi
5062 fi
5063 fi
5064 fi
5065 CC=$ac_cv_prog_CC
5066 if test -n "$CC"; then
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068 $as_echo "$CC" >&6; }
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 fi
5076 if test -z "$CC"; then
5077   if test -n "$ac_tool_prefix"; then
5078   for ac_prog in cl.exe
5079   do
5080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -n "$CC"; then
5088   ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 CC=$ac_cv_prog_CC
5108 if test -n "$CC"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 $as_echo "$CC" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117     test -n "$CC" && break
5118   done
5119 fi
5120 if test -z "$CC"; then
5121   ac_ct_CC=$CC
5122   for ac_prog in cl.exe
5123 do
5124   # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   if test -n "$ac_ct_CC"; then
5132   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141     ac_cv_prog_ac_ct_CC="$ac_prog"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152 if test -n "$ac_ct_CC"; then
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154 $as_echo "$ac_ct_CC" >&6; }
5155 else
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161   test -n "$ac_ct_CC" && break
5162 done
5163
5164   if test "x$ac_ct_CC" = x; then
5165     CC=""
5166   else
5167     case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173     CC=$ac_ct_CC
5174   fi
5175 fi
5176
5177 fi
5178
5179
5180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error $? "no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details" "$LINENO" 5; }
5184
5185 # Provide some information about the compiler.
5186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5187 set X $ac_compile
5188 ac_compiler=$2
5189 for ac_option in --version -v -V -qversion; do
5190   { { ac_try="$ac_compiler $ac_option >&5"
5191 case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196 $as_echo "$ac_try_echo"; } >&5
5197   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5198   ac_status=$?
5199   if test -s conftest.err; then
5200     sed '10a\
5201 ... rest of stderr output deleted ...
5202          10q' conftest.err >conftest.er1
5203     cat conftest.er1 >&5
5204   fi
5205   rm -f conftest.er1 conftest.err
5206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207   test $ac_status = 0; }
5208 done
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5212 if ${ac_cv_c_compiler_gnu+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h.  */
5217
5218 int
5219 main ()
5220 {
5221 #ifndef __GNUC__
5222        choke me
5223 #endif
5224
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"; then :
5230   ac_compiler_gnu=yes
5231 else
5232   ac_compiler_gnu=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240 if test $ac_compiler_gnu = yes; then
5241   GCC=yes
5242 else
5243   GCC=
5244 fi
5245 ac_test_CFLAGS=${CFLAGS+set}
5246 ac_save_CFLAGS=$CFLAGS
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5249 if ${ac_cv_prog_cc_g+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   ac_save_c_werror_flag=$ac_c_werror_flag
5253    ac_c_werror_flag=yes
5254    ac_cv_prog_cc_g=no
5255    CFLAGS="-g"
5256    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h.  */
5258
5259 int
5260 main ()
5261 {
5262
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268   ac_cv_prog_cc_g=yes
5269 else
5270   CFLAGS=""
5271       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273
5274 int
5275 main ()
5276 {
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283
5284 else
5285   ac_c_werror_flag=$ac_save_c_werror_flag
5286          CFLAGS="-g"
5287          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289
5290 int
5291 main ()
5292 {
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299   ac_cv_prog_cc_g=yes
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306    ac_c_werror_flag=$ac_save_c_werror_flag
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309 $as_echo "$ac_cv_prog_cc_g" >&6; }
5310 if test "$ac_test_CFLAGS" = set; then
5311   CFLAGS=$ac_save_CFLAGS
5312 elif test $ac_cv_prog_cc_g = yes; then
5313   if test "$GCC" = yes; then
5314     CFLAGS="-g -O2"
5315   else
5316     CFLAGS="-g"
5317   fi
5318 else
5319   if test "$GCC" = yes; then
5320     CFLAGS="-O2"
5321   else
5322     CFLAGS=
5323   fi
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5327 if ${ac_cv_prog_cc_c89+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   ac_cv_prog_cc_c89=no
5331 ac_save_CC=$CC
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #include <stdarg.h>
5335 #include <stdio.h>
5336 struct stat;
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5341      char **p;
5342      int i;
5343 {
5344   return p[i];
5345 }
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5347 {
5348   char *s;
5349   va_list v;
5350   va_start (v,p);
5351   s = g (p, va_arg (v,int));
5352   va_end (v);
5353   return s;
5354 }
5355
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5357    function prototypes and stuff, but not '\xHH' hex character constants.
5358    These don't provoke an error unfortunately, instead are silently treated
5359    as 'x'.  The following induces an error, until -std is added to get
5360    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5361    array size at least.  It's necessary to write '\x00'==0 to get something
5362    that's true only with -std.  */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366    inside strings and character constants.  */
5367 #define FOO(x) 'x'
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374 int argc;
5375 char **argv;
5376 int
5377 main ()
5378 {
5379 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386 do
5387   CC="$ac_save_CC $ac_arg"
5388   if ac_fn_c_try_compile "$LINENO"; then :
5389   ac_cv_prog_cc_c89=$ac_arg
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext
5392   test "x$ac_cv_prog_cc_c89" != "xno" && break
5393 done
5394 rm -f conftest.$ac_ext
5395 CC=$ac_save_CC
5396
5397 fi
5398 # AC_CACHE_VAL
5399 case "x$ac_cv_prog_cc_c89" in
5400   x)
5401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 $as_echo "none needed" >&6; } ;;
5403   xno)
5404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405 $as_echo "unsupported" >&6; } ;;
5406   *)
5407     CC="$CC $ac_cv_prog_cc_c89"
5408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5410 esac
5411 if test "x$ac_cv_prog_cc_c89" != xno; then :
5412
5413 fi
5414
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
5421 depcc="$CC"   am_compiler_list=
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5424 $as_echo_n "checking dependency style of $depcc... " >&6; }
5425 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429   # We make a subdir and do the tests there.  Otherwise we can end up
5430   # making bogus files that we don't know about and never remove.  For
5431   # instance it was reported that on HP-UX the gcc test will end up
5432   # making a dummy file named `D' -- because `-MD' means `put the output
5433   # in D'.
5434   rm -rf conftest.dir
5435   mkdir conftest.dir
5436   # Copy depcomp to subdir because otherwise we won't find it if we're
5437   # using a relative directory.
5438   cp "$am_depcomp" conftest.dir
5439   cd conftest.dir
5440   # We will build objects and dependencies in a subdirectory because
5441   # it helps to detect inapplicable dependency modes.  For instance
5442   # both Tru64's cc and ICC support -MD to output dependencies as a
5443   # side effect of compilation, but ICC will put the dependencies in
5444   # the current directory while Tru64 will put them in the object
5445   # directory.
5446   mkdir sub
5447
5448   am_cv_CC_dependencies_compiler_type=none
5449   if test "$am_compiler_list" = ""; then
5450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5451   fi
5452   am__universal=false
5453   case " $depcc " in #(
5454      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5455      esac
5456
5457   for depmode in $am_compiler_list; do
5458     # Setup a source with many dependencies, because some compilers
5459     # like to wrap large dependency lists on column 80 (with \), and
5460     # we should not choose a depcomp mode which is confused by this.
5461     #
5462     # We need to recreate these files for each test, as the compiler may
5463     # overwrite some of them when testing with obscure command lines.
5464     # This happens at least with the AIX C compiler.
5465     : > sub/conftest.c
5466     for i in 1 2 3 4 5 6; do
5467       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5469       # Solaris 8's {/usr,}/bin/sh.
5470       touch sub/conftst$i.h
5471     done
5472     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473
5474     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5475     # mode.  It turns out that the SunPro C++ compiler does not properly
5476     # handle `-M -o', and we need to detect this.  Also, some Intel
5477     # versions had trouble with output in subdirs
5478     am__obj=sub/conftest.${OBJEXT-o}
5479     am__minus_obj="-o $am__obj"
5480     case $depmode in
5481     gcc)
5482       # This depmode causes a compiler race in universal mode.
5483       test "$am__universal" = false || continue
5484       ;;
5485     nosideeffect)
5486       # after this tag, mechanisms are not by side-effect, so they'll
5487       # only be used when explicitly requested
5488       if test "x$enable_dependency_tracking" = xyes; then
5489         continue
5490       else
5491         break
5492       fi
5493       ;;
5494     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5495       # This compiler won't grok `-c -o', but also, the minuso test has
5496       # not run yet.  These depmodes are late enough in the game, and
5497       # so weak that their functioning should not be impacted.
5498       am__obj=conftest.${OBJEXT-o}
5499       am__minus_obj=
5500       ;;
5501     none) break ;;
5502     esac
5503     if depmode=$depmode \
5504        source=sub/conftest.c object=$am__obj \
5505        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5507          >/dev/null 2>conftest.err &&
5508        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5509        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5511        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512       # icc doesn't choke on unknown options, it will just issue warnings
5513       # or remarks (even with -Werror).  So we grep stderr for any message
5514       # that says an option was ignored or not supported.
5515       # When given -MP, icc 7.0 and 7.1 complain thusly:
5516       #   icc: Command line warning: ignoring option '-M'; no argument required
5517       # The diagnosis changed in icc 8.0:
5518       #   icc: Command line remark: option '-MP' not supported
5519       if (grep 'ignoring option' conftest.err ||
5520           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521         am_cv_CC_dependencies_compiler_type=$depmode
5522         break
5523       fi
5524     fi
5525   done
5526
5527   cd ..
5528   rm -rf conftest.dir
5529 else
5530   am_cv_CC_dependencies_compiler_type=none
5531 fi
5532
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5535 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5537
5538  if
5539   test "x$enable_dependency_tracking" != xno \
5540   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5541   am__fastdepCC_TRUE=
5542   am__fastdepCC_FALSE='#'
5543 else
5544   am__fastdepCC_TRUE='#'
5545   am__fastdepCC_FALSE=
5546 fi
5547
5548
5549 ac_ext=cpp
5550 ac_cpp='$CXXCPP $CPPFLAGS'
5551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5554 if test -z "$CXX"; then
5555   if test -n "$CCC"; then
5556     CXX=$CCC
5557   else
5558     if test -n "$ac_tool_prefix"; then
5559   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5560   do
5561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_CXX+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   if test -n "$CXX"; then
5569   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576     for ac_exec_ext in '' $ac_executable_extensions; do
5577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583   done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 CXX=$ac_cv_prog_CXX
5589 if test -n "$CXX"; then
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5591 $as_echo "$CXX" >&6; }
5592 else
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598     test -n "$CXX" && break
5599   done
5600 fi
5601 if test -z "$CXX"; then
5602   ac_ct_CXX=$CXX
5603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5604 do
5605   # Extract the first word of "$ac_prog", so it can be a program name with args.
5606 set dummy $ac_prog; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if test -n "$ac_ct_CXX"; then
5613   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_ac_ct_CXX="$ac_prog"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5633 if test -n "$ac_ct_CXX"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5635 $as_echo "$ac_ct_CXX" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642   test -n "$ac_ct_CXX" && break
5643 done
5644
5645   if test "x$ac_ct_CXX" = x; then
5646     CXX="g++"
5647   else
5648     case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654     CXX=$ac_ct_CXX
5655   fi
5656 fi
5657
5658   fi
5659 fi
5660 # Provide some information about the compiler.
5661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5662 set X $ac_compile
5663 ac_compiler=$2
5664 for ac_option in --version -v -V -qversion; do
5665   { { ac_try="$ac_compiler $ac_option >&5"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5673   ac_status=$?
5674   if test -s conftest.err; then
5675     sed '10a\
5676 ... rest of stderr output deleted ...
5677          10q' conftest.err >conftest.er1
5678     cat conftest.er1 >&5
5679   fi
5680   rm -f conftest.er1 conftest.err
5681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682   test $ac_status = 0; }
5683 done
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5687 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692
5693 int
5694 main ()
5695 {
5696 #ifndef __GNUC__
5697        choke me
5698 #endif
5699
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5705   ac_compiler_gnu=yes
5706 else
5707   ac_compiler_gnu=no
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5715 if test $ac_compiler_gnu = yes; then
5716   GXX=yes
5717 else
5718   GXX=
5719 fi
5720 ac_test_CXXFLAGS=${CXXFLAGS+set}
5721 ac_save_CXXFLAGS=$CXXFLAGS
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5724 if ${ac_cv_prog_cxx_g+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5728    ac_cxx_werror_flag=yes
5729    ac_cv_prog_cxx_g=no
5730    CXXFLAGS="-g"
5731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h.  */
5733
5734 int
5735 main ()
5736 {
5737
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_cxx_try_compile "$LINENO"; then :
5743   ac_cv_prog_cxx_g=yes
5744 else
5745   CXXFLAGS=""
5746       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h.  */
5748
5749 int
5750 main ()
5751 {
5752
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_cxx_try_compile "$LINENO"; then :
5758
5759 else
5760   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5761          CXXFLAGS="-g"
5762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h.  */
5764
5765 int
5766 main ()
5767 {
5768
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_cxx_try_compile "$LINENO"; then :
5774   ac_cv_prog_cxx_g=yes
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5785 if test "$ac_test_CXXFLAGS" = set; then
5786   CXXFLAGS=$ac_save_CXXFLAGS
5787 elif test $ac_cv_prog_cxx_g = yes; then
5788   if test "$GXX" = yes; then
5789     CXXFLAGS="-g -O2"
5790   else
5791     CXXFLAGS="-g"
5792   fi
5793 else
5794   if test "$GXX" = yes; then
5795     CXXFLAGS="-O2"
5796   else
5797     CXXFLAGS=
5798   fi
5799 fi
5800 ac_ext=c
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
5806 depcc="$CXX"  am_compiler_list=
5807
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5809 $as_echo_n "checking dependency style of $depcc... " >&6; }
5810 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5814   # We make a subdir and do the tests there.  Otherwise we can end up
5815   # making bogus files that we don't know about and never remove.  For
5816   # instance it was reported that on HP-UX the gcc test will end up
5817   # making a dummy file named `D' -- because `-MD' means `put the output
5818   # in D'.
5819   rm -rf conftest.dir
5820   mkdir conftest.dir
5821   # Copy depcomp to subdir because otherwise we won't find it if we're
5822   # using a relative directory.
5823   cp "$am_depcomp" conftest.dir
5824   cd conftest.dir
5825   # We will build objects and dependencies in a subdirectory because
5826   # it helps to detect inapplicable dependency modes.  For instance
5827   # both Tru64's cc and ICC support -MD to output dependencies as a
5828   # side effect of compilation, but ICC will put the dependencies in
5829   # the current directory while Tru64 will put them in the object
5830   # directory.
5831   mkdir sub
5832
5833   am_cv_CXX_dependencies_compiler_type=none
5834   if test "$am_compiler_list" = ""; then
5835      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5836   fi
5837   am__universal=false
5838   case " $depcc " in #(
5839      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5840      esac
5841
5842   for depmode in $am_compiler_list; do
5843     # Setup a source with many dependencies, because some compilers
5844     # like to wrap large dependency lists on column 80 (with \), and
5845     # we should not choose a depcomp mode which is confused by this.
5846     #
5847     # We need to recreate these files for each test, as the compiler may
5848     # overwrite some of them when testing with obscure command lines.
5849     # This happens at least with the AIX C compiler.
5850     : > sub/conftest.c
5851     for i in 1 2 3 4 5 6; do
5852       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5853       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5854       # Solaris 8's {/usr,}/bin/sh.
5855       touch sub/conftst$i.h
5856     done
5857     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5858
5859     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5860     # mode.  It turns out that the SunPro C++ compiler does not properly
5861     # handle `-M -o', and we need to detect this.  Also, some Intel
5862     # versions had trouble with output in subdirs
5863     am__obj=sub/conftest.${OBJEXT-o}
5864     am__minus_obj="-o $am__obj"
5865     case $depmode in
5866     gcc)
5867       # This depmode causes a compiler race in universal mode.
5868       test "$am__universal" = false || continue
5869       ;;
5870     nosideeffect)
5871       # after this tag, mechanisms are not by side-effect, so they'll
5872       # only be used when explicitly requested
5873       if test "x$enable_dependency_tracking" = xyes; then
5874         continue
5875       else
5876         break
5877       fi
5878       ;;
5879     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5880       # This compiler won't grok `-c -o', but also, the minuso test has
5881       # not run yet.  These depmodes are late enough in the game, and
5882       # so weak that their functioning should not be impacted.
5883       am__obj=conftest.${OBJEXT-o}
5884       am__minus_obj=
5885       ;;
5886     none) break ;;
5887     esac
5888     if depmode=$depmode \
5889        source=sub/conftest.c object=$am__obj \
5890        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5891        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5892          >/dev/null 2>conftest.err &&
5893        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5894        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5895        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5896        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5897       # icc doesn't choke on unknown options, it will just issue warnings
5898       # or remarks (even with -Werror).  So we grep stderr for any message
5899       # that says an option was ignored or not supported.
5900       # When given -MP, icc 7.0 and 7.1 complain thusly:
5901       #   icc: Command line warning: ignoring option '-M'; no argument required
5902       # The diagnosis changed in icc 8.0:
5903       #   icc: Command line remark: option '-MP' not supported
5904       if (grep 'ignoring option' conftest.err ||
5905           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5906         am_cv_CXX_dependencies_compiler_type=$depmode
5907         break
5908       fi
5909     fi
5910   done
5911
5912   cd ..
5913   rm -rf conftest.dir
5914 else
5915   am_cv_CXX_dependencies_compiler_type=none
5916 fi
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5920 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5921 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5922
5923  if
5924   test "x$enable_dependency_tracking" != xno \
5925   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5926   am__fastdepCXX_TRUE=
5927   am__fastdepCXX_FALSE='#'
5928 else
5929   am__fastdepCXX_TRUE='#'
5930   am__fastdepCXX_FALSE=
5931 fi
5932
5933
5934
5935 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
5936 for ac_prog in gitlog-to-changelog
5937 do
5938   # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   if test -n "$GITLOG_TO_CHANGELOG"; then
5946   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
5956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960   done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
5966 if test -n "$GITLOG_TO_CHANGELOG"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
5968 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974
5975   test -n "$GITLOG_TO_CHANGELOG" && break
5976 done
5977 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 cat >>confdefs.h <<_ACEOF
5988 #define PACKAGE "$PACKAGE"
5989 _ACEOF
5990
5991
5992 cat >>confdefs.h <<_ACEOF
5993 #define VERSION "$VERSION"
5994 _ACEOF
5995
5996 VERSION_NUMBER=0x010401
5997
5998
5999 # Don't default to build static libs.
6000
6001 case `pwd` in
6002   *\ * | *\     *)
6003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6005 esac
6006
6007
6008
6009 macro_version='2.4.2'
6010 macro_revision='1.3337'
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 ltmain="$ac_aux_dir/ltmain.sh"
6025
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6029
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6032
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6036
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6039
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6042
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6052   ECHO='print -r --'
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6054   ECHO='printf %s\n'
6055 else
6056   # Use this function as a fallback that always works.
6057   func_fallback_echo ()
6058   {
6059     eval 'cat <<_LTECHO_EOF
6060 $1
6061 _LTECHO_EOF'
6062   }
6063   ECHO='func_fallback_echo'
6064 fi
6065
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6068 func_echo_all ()
6069 {
6070     $ECHO ""
6071 }
6072
6073 case "$ECHO" in
6074   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101      for ac_i in 1 2 3 4 5 6 7; do
6102        ac_script="$ac_script$as_nl$ac_script"
6103      done
6104      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105      { ac_script=; unset ac_script;}
6106      if test -z "$SED"; then
6107   ac_path_SED_found=false
6108   # Loop through the user's path and test for each of PROGNAME-LIST
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_prog in sed gsed; do
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117       as_fn_executable_p "$ac_path_SED" || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119   # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6121 *GNU*)
6122   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6123 *)
6124   ac_count=0
6125   $as_echo_n 0123456789 >"conftest.in"
6126   while :
6127   do
6128     cat "conftest.in" "conftest.in" >"conftest.tmp"
6129     mv "conftest.tmp" "conftest.in"
6130     cp "conftest.in" "conftest.nl"
6131     $as_echo '' >> "conftest.nl"
6132     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134     as_fn_arith $ac_count + 1 && ac_count=$as_val
6135     if test $ac_count -gt ${ac_path_SED_max-0}; then
6136       # Best one so far, save it but keep looking for a better one
6137       ac_cv_path_SED="$ac_path_SED"
6138       ac_path_SED_max=$ac_count
6139     fi
6140     # 10*(2^10) chars as input seems more than enough
6141     test $ac_count -gt 10 && break
6142   done
6143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6144 esac
6145
6146       $ac_path_SED_found && break 3
6147     done
6148   done
6149   done
6150 IFS=$as_save_IFS
6151   if test -z "$ac_cv_path_SED"; then
6152     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6153   fi
6154 else
6155   ac_cv_path_SED=$SED
6156 fi
6157
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161  SED="$ac_cv_path_SED"
6162   rm -f conftest.sed
6163
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183    then ac_cv_path_FGREP="$GREP -F"
6184    else
6185      if test -z "$FGREP"; then
6186   ac_path_FGREP_found=false
6187   # Loop through the user's path and test for each of PROGNAME-LIST
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_prog in fgrep; do
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196       as_fn_executable_p "$ac_path_FGREP" || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198   # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6200 *GNU*)
6201   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6202 *)
6203   ac_count=0
6204   $as_echo_n 0123456789 >"conftest.in"
6205   while :
6206   do
6207     cat "conftest.in" "conftest.in" >"conftest.tmp"
6208     mv "conftest.tmp" "conftest.in"
6209     cp "conftest.in" "conftest.nl"
6210     $as_echo 'FGREP' >> "conftest.nl"
6211     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213     as_fn_arith $ac_count + 1 && ac_count=$as_val
6214     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215       # Best one so far, save it but keep looking for a better one
6216       ac_cv_path_FGREP="$ac_path_FGREP"
6217       ac_path_FGREP_max=$ac_count
6218     fi
6219     # 10*(2^10) chars as input seems more than enough
6220     test $ac_count -gt 10 && break
6221   done
6222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 esac
6224
6225       $ac_path_FGREP_found && break 3
6226     done
6227   done
6228   done
6229 IFS=$as_save_IFS
6230   if test -z "$ac_cv_path_FGREP"; then
6231     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232   fi
6233 else
6234   ac_cv_path_FGREP=$FGREP
6235 fi
6236
6237    fi
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241  FGREP="$ac_cv_path_FGREP"
6242
6243
6244 test -z "$GREP" && GREP=grep
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6267 else
6268   with_gnu_ld=no
6269 fi
6270
6271 ac_prog=ld
6272 if test "$GCC" = yes; then
6273   # Check if gcc -print-prog-name=ld gives a path.
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6276   case $host in
6277   *-*-mingw*)
6278     # gcc leaves a trailing carriage return which upsets mingw
6279     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6280   *)
6281     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6282   esac
6283   case $ac_prog in
6284     # Accept absolute paths.
6285     [\\/]* | ?:[\\/]*)
6286       re_direlt='/[^/][^/]*/\.\./'
6287       # Canonicalize the pathname of ld
6288       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6291       done
6292       test -z "$LD" && LD="$ac_prog"
6293       ;;
6294   "")
6295     # If it fails, then pretend we aren't using GCC.
6296     ac_prog=ld
6297     ;;
6298   *)
6299     # If it is relative, then search for the first ld in PATH.
6300     with_gnu_ld=unknown
6301     ;;
6302   esac
6303 elif test "$with_gnu_ld" = yes; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6309 fi
6310 if ${lt_cv_path_LD+:} false; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   if test -z "$LD"; then
6314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315   for ac_dir in $PATH; do
6316     IFS="$lt_save_ifs"
6317     test -z "$ac_dir" && ac_dir=.
6318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319       lt_cv_path_LD="$ac_dir/$ac_prog"
6320       # Check to see if the program is GNU ld.  I'd rather use --version,
6321       # but apparently some variants of GNU ld only accept -v.
6322       # Break only if it was the GNU/non-GNU ld that we prefer.
6323       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324       *GNU* | *'with BFD'*)
6325         test "$with_gnu_ld" != no && break
6326         ;;
6327       *)
6328         test "$with_gnu_ld" != yes && break
6329         ;;
6330       esac
6331     fi
6332   done
6333   IFS="$lt_save_ifs"
6334 else
6335   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6336 fi
6337 fi
6338
6339 LD="$lt_cv_path_LD"
6340 if test -n "$LD"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356   lt_cv_prog_gnu_ld=yes
6357   ;;
6358 *)
6359   lt_cv_prog_gnu_ld=no
6360   ;;
6361 esac
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$NM"; then
6381   # Let the user override the test.
6382   lt_cv_path_NM="$NM"
6383 else
6384   lt_nm_to_check="${ac_tool_prefix}nm"
6385   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386     lt_nm_to_check="$lt_nm_to_check nm"
6387   fi
6388   for lt_tmp_nm in $lt_nm_to_check; do
6389     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6391       IFS="$lt_save_ifs"
6392       test -z "$ac_dir" && ac_dir=.
6393       tmp_nm="$ac_dir/$lt_tmp_nm"
6394       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395         # Check to see if the nm accepts a BSD-compat flag.
6396         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397         #   nm: unknown option "B" ignored
6398         # Tru64's nm complains that /dev/null is an invalid object file
6399         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400         */dev/null* | *'Invalid file or object type'*)
6401           lt_cv_path_NM="$tmp_nm -B"
6402           break
6403           ;;
6404         *)
6405           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6406           */dev/null*)
6407             lt_cv_path_NM="$tmp_nm -p"
6408             break
6409             ;;
6410           *)
6411             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412             continue # so that we can try to find one that supports BSD flags
6413             ;;
6414           esac
6415           ;;
6416         esac
6417       fi
6418     done
6419     IFS="$lt_save_ifs"
6420   done
6421   : ${lt_cv_path_NM=no}
6422 fi
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6427   NM="$lt_cv_path_NM"
6428 else
6429   # Didn't find any BSD compatible name lister, look for dumpbin.
6430   if test -n "$DUMPBIN"; then :
6431     # Let the user override the test.
6432   else
6433     if test -n "$ac_tool_prefix"; then
6434   for ac_prog in dumpbin "link -dump"
6435   do
6436     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$DUMPBIN"; then
6444   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451     for ac_exec_ext in '' $ac_executable_extensions; do
6452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458   done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473     test -n "$DUMPBIN" && break
6474   done
6475 fi
6476 if test -z "$DUMPBIN"; then
6477   ac_ct_DUMPBIN=$DUMPBIN
6478   for ac_prog in dumpbin "link -dump"
6479 do
6480   # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_DUMPBIN"; then
6488   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517   test -n "$ac_ct_DUMPBIN" && break
6518 done
6519
6520   if test "x$ac_ct_DUMPBIN" = x; then
6521     DUMPBIN=":"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     DUMPBIN=$ac_ct_DUMPBIN
6530   fi
6531 fi
6532
6533     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6534     *COFF*)
6535       DUMPBIN="$DUMPBIN -symbols"
6536       ;;
6537     *)
6538       DUMPBIN=:
6539       ;;
6540     esac
6541   fi
6542
6543   if test "$DUMPBIN" != ":"; then
6544     NM="$DUMPBIN"
6545   fi
6546 fi
6547 test -z "$NM" && NM=nm
6548
6549
6550
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   lt_cv_nm_interface="BSD nm"
6560   echo "int some_variable = 0;" > conftest.$ac_ext
6561   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562   (eval "$ac_compile" 2>conftest.err)
6563   cat conftest.err >&5
6564   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566   cat conftest.err >&5
6567   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568   cat conftest.out >&5
6569   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570     lt_cv_nm_interface="MS dumpbin"
6571   fi
6572   rm -f conftest*
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6579 LN_S=$as_ln_s
6580 if test "$LN_S" = "ln -s"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6586 fi
6587
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594     i=0
6595   teststring="ABCD"
6596
6597   case $build_os in
6598   msdosdjgpp*)
6599     # On DJGPP, this test can blow up pretty badly due to problems in libc
6600     # (any single argument exceeding 2000 bytes causes a buffer overrun
6601     # during glob expansion).  Even if it were fixed, the result of this
6602     # check would be larger than it should be.
6603     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6604     ;;
6605
6606   gnu*)
6607     # Under GNU Hurd, this test is not required because there is
6608     # no limit to the length of command line arguments.
6609     # Libtool will interpret -1 as no limit whatsoever
6610     lt_cv_sys_max_cmd_len=-1;
6611     ;;
6612
6613   cygwin* | mingw* | cegcc*)
6614     # On Win9x/ME, this test blows up -- it succeeds, but takes
6615     # about 5 minutes as the teststring grows exponentially.
6616     # Worse, since 9x/ME are not pre-emptively multitasking,
6617     # you end up with a "frozen" computer, even though with patience
6618     # the test eventually succeeds (with a max line length of 256k).
6619     # Instead, let's just punt: use the minimum linelength reported by
6620     # all of the supported platforms: 8192 (on NT/2K/XP).
6621     lt_cv_sys_max_cmd_len=8192;
6622     ;;
6623
6624   mint*)
6625     # On MiNT this can take a long time and run out of memory.
6626     lt_cv_sys_max_cmd_len=8192;
6627     ;;
6628
6629   amigaos*)
6630     # On AmigaOS with pdksh, this test takes hours, literally.
6631     # So we just punt and use a minimum line length of 8192.
6632     lt_cv_sys_max_cmd_len=8192;
6633     ;;
6634
6635   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636     # This has been around since 386BSD, at least.  Likely further.
6637     if test -x /sbin/sysctl; then
6638       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639     elif test -x /usr/sbin/sysctl; then
6640       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6641     else
6642       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6643     fi
6644     # And add a safety zone
6645     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647     ;;
6648
6649   interix*)
6650     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651     lt_cv_sys_max_cmd_len=196608
6652     ;;
6653
6654   os2*)
6655     # The test takes a long time on OS/2.
6656     lt_cv_sys_max_cmd_len=8192
6657     ;;
6658
6659   osf*)
6660     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6661     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6662     # nice to cause kernel panics so lets avoid the loop below.
6663     # First set a reasonable default.
6664     lt_cv_sys_max_cmd_len=16384
6665     #
6666     if test -x /sbin/sysconfig; then
6667       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6668         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6669       esac
6670     fi
6671     ;;
6672   sco3.2v5*)
6673     lt_cv_sys_max_cmd_len=102400
6674     ;;
6675   sysv5* | sco5v6* | sysv4.2uw2*)
6676     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6677     if test -n "$kargmax"; then
6678       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6679     else
6680       lt_cv_sys_max_cmd_len=32768
6681     fi
6682     ;;
6683   *)
6684     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6685     if test -n "$lt_cv_sys_max_cmd_len"; then
6686       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6687       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6688     else
6689       # Make teststring a little bigger before we do anything with it.
6690       # a 1K string should be a reasonable start.
6691       for i in 1 2 3 4 5 6 7 8 ; do
6692         teststring=$teststring$teststring
6693       done
6694       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6695       # If test is not a shell built-in, we'll probably end up computing a
6696       # maximum length that is only half of the actual maximum length, but
6697       # we can't tell.
6698       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6699                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6700               test $i != 17 # 1/2 MB should be enough
6701       do
6702         i=`expr $i + 1`
6703         teststring=$teststring$teststring
6704       done
6705       # Only check the string length outside the loop.
6706       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6707       teststring=
6708       # Add a significant safety factor because C++ compilers can tack on
6709       # massive amounts of additional arguments before passing them to the
6710       # linker.  It appears as though 1/2 is a usable value.
6711       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6712     fi
6713     ;;
6714   esac
6715
6716 fi
6717
6718 if test -n $lt_cv_sys_max_cmd_len ; then
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6720 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6721 else
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6723 $as_echo "none" >&6; }
6724 fi
6725 max_cmd_len=$lt_cv_sys_max_cmd_len
6726
6727
6728
6729
6730
6731
6732 : ${CP="cp -f"}
6733 : ${MV="mv -f"}
6734 : ${RM="rm -f"}
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6737 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6738 # Try some XSI features
6739 xsi_shell=no
6740 ( _lt_dummy="a/b/c"
6741   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6742       = c,a/b,b/c, \
6743     && eval 'test $(( 1 + 1 )) -eq 2 \
6744     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6745   && xsi_shell=yes
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6747 $as_echo "$xsi_shell" >&6; }
6748
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6751 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6752 lt_shell_append=no
6753 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6754     >/dev/null 2>&1 \
6755   && lt_shell_append=yes
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6757 $as_echo "$lt_shell_append" >&6; }
6758
6759
6760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6761   lt_unset=unset
6762 else
6763   lt_unset=false
6764 fi
6765
6766
6767
6768
6769
6770 # test EBCDIC or ASCII
6771 case `echo X|tr X '\101'` in
6772  A) # ASCII based system
6773     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6774   lt_SP2NL='tr \040 \012'
6775   lt_NL2SP='tr \015\012 \040\040'
6776   ;;
6777  *) # EBCDIC based system
6778   lt_SP2NL='tr \100 \n'
6779   lt_NL2SP='tr \r\n \100\100'
6780   ;;
6781 esac
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6792 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6793 if ${lt_cv_to_host_file_cmd+:} false; then :
6794   $as_echo_n "(cached) " >&6
6795 else
6796   case $host in
6797   *-*-mingw* )
6798     case $build in
6799       *-*-mingw* ) # actually msys
6800         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6801         ;;
6802       *-*-cygwin* )
6803         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6804         ;;
6805       * ) # otherwise, assume *nix
6806         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6807         ;;
6808     esac
6809     ;;
6810   *-*-cygwin* )
6811     case $build in
6812       *-*-mingw* ) # actually msys
6813         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6814         ;;
6815       *-*-cygwin* )
6816         lt_cv_to_host_file_cmd=func_convert_file_noop
6817         ;;
6818       * ) # otherwise, assume *nix
6819         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6820         ;;
6821     esac
6822     ;;
6823   * ) # unhandled hosts (and "normal" native builds)
6824     lt_cv_to_host_file_cmd=func_convert_file_noop
6825     ;;
6826 esac
6827
6828 fi
6829
6830 to_host_file_cmd=$lt_cv_to_host_file_cmd
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6832 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6833
6834
6835
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6839 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6840 if ${lt_cv_to_tool_file_cmd+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   #assume ordinary cross tools, or native build.
6844 lt_cv_to_tool_file_cmd=func_convert_file_noop
6845 case $host in
6846   *-*-mingw* )
6847     case $build in
6848       *-*-mingw* ) # actually msys
6849         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6850         ;;
6851     esac
6852     ;;
6853 esac
6854
6855 fi
6856
6857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6859 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6860
6861
6862
6863
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if ${lt_cv_ld_reload_flag+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   lt_cv_ld_reload_flag='-r'
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6876 "" | " "*) ;;
6877 *) reload_flag=" $reload_flag" ;;
6878 esac
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880 case $host_os in
6881   cygwin* | mingw* | pw32* | cegcc*)
6882     if test "$GCC" != yes; then
6883       reload_cmds=false
6884     fi
6885     ;;
6886   darwin*)
6887     if test "$GCC" = yes; then
6888       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6889     else
6890       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6891     fi
6892     ;;
6893 esac
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 if test -n "$ac_tool_prefix"; then
6904   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_OBJDUMP+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$OBJDUMP"; then
6912   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 OBJDUMP=$ac_cv_prog_OBJDUMP
6932 if test -n "$OBJDUMP"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6934 $as_echo "$OBJDUMP" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 fi
6942 if test -z "$ac_cv_prog_OBJDUMP"; then
6943   ac_ct_OBJDUMP=$OBJDUMP
6944   # Extract the first word of "objdump", so it can be a program name with args.
6945 set dummy objdump; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$ac_ct_OBJDUMP"; then
6952   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6972 if test -n "$ac_ct_OBJDUMP"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6974 $as_echo "$ac_ct_OBJDUMP" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980   if test "x$ac_ct_OBJDUMP" = x; then
6981     OBJDUMP="false"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     OBJDUMP=$ac_ct_OBJDUMP
6990   fi
6991 else
6992   OBJDUMP="$ac_cv_prog_OBJDUMP"
6993 fi
6994
6995 test -z "$OBJDUMP" && OBJDUMP=objdump
6996
6997
6998
6999
7000
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7020
7021 case $host_os in
7022 aix[4-9]*)
7023   lt_cv_deplibs_check_method=pass_all
7024   ;;
7025
7026 beos*)
7027   lt_cv_deplibs_check_method=pass_all
7028   ;;
7029
7030 bsdi[45]*)
7031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032   lt_cv_file_magic_cmd='/usr/bin/file -L'
7033   lt_cv_file_magic_test_file=/shlib/libc.so
7034   ;;
7035
7036 cygwin*)
7037   # func_win32_libid is a shell function defined in ltmain.sh
7038   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039   lt_cv_file_magic_cmd='func_win32_libid'
7040   ;;
7041
7042 mingw* | pw32*)
7043   # Base MSYS/MinGW do not provide the 'file' command needed by
7044   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045   # unless we find 'file', for example because we are cross-compiling.
7046   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049     lt_cv_file_magic_cmd='func_win32_libid'
7050   else
7051     # Keep this pattern in sync with the one in func_win32_libid.
7052     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053     lt_cv_file_magic_cmd='$OBJDUMP -f'
7054   fi
7055   ;;
7056
7057 cegcc*)
7058   # use the weaker test based on 'objdump'. See mingw*.
7059   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060   lt_cv_file_magic_cmd='$OBJDUMP -f'
7061   ;;
7062
7063 darwin* | rhapsody*)
7064   lt_cv_deplibs_check_method=pass_all
7065   ;;
7066
7067 freebsd* | dragonfly*)
7068   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7069     case $host_cpu in
7070     i*86 )
7071       # Not sure whether the presence of OpenBSD here was a mistake.
7072       # Let's accept both of them until this is cleared up.
7073       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074       lt_cv_file_magic_cmd=/usr/bin/file
7075       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7076       ;;
7077     esac
7078   else
7079     lt_cv_deplibs_check_method=pass_all
7080   fi
7081   ;;
7082
7083 gnu*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 haiku*)
7088   lt_cv_deplibs_check_method=pass_all
7089   ;;
7090
7091 hpux10.20* | hpux11*)
7092   lt_cv_file_magic_cmd=/usr/bin/file
7093   case $host_cpu in
7094   ia64*)
7095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7097     ;;
7098   hppa*64*)
7099     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]'
7100     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7101     ;;
7102   *)
7103     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7105     ;;
7106   esac
7107   ;;
7108
7109 interix[3-9]*)
7110   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7112   ;;
7113
7114 irix5* | irix6* | nonstopux*)
7115   case $LD in
7116   *-32|*"-32 ") libmagic=32-bit;;
7117   *-n32|*"-n32 ") libmagic=N32;;
7118   *-64|*"-64 ") libmagic=64-bit;;
7119   *) libmagic=never-match;;
7120   esac
7121   lt_cv_deplibs_check_method=pass_all
7122   ;;
7123
7124 # This must be glibc/ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 netbsd* | netbsdelf*-gnu)
7130   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7132   else
7133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134   fi
7135   ;;
7136
7137 newos6*)
7138   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139   lt_cv_file_magic_cmd=/usr/bin/file
7140   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7141   ;;
7142
7143 *nto* | *qnx*)
7144   lt_cv_deplibs_check_method=pass_all
7145   ;;
7146
7147 openbsd*)
7148   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7150   else
7151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7152   fi
7153   ;;
7154
7155 osf3* | osf4* | osf5*)
7156   lt_cv_deplibs_check_method=pass_all
7157   ;;
7158
7159 rdos*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162
7163 solaris*)
7164   lt_cv_deplibs_check_method=pass_all
7165   ;;
7166
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168   lt_cv_deplibs_check_method=pass_all
7169   ;;
7170
7171 sysv4 | sysv4.3*)
7172   case $host_vendor in
7173   motorola)
7174     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]'
7175     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7176     ;;
7177   ncr)
7178     lt_cv_deplibs_check_method=pass_all
7179     ;;
7180   sequent)
7181     lt_cv_file_magic_cmd='/bin/file'
7182     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7183     ;;
7184   sni)
7185     lt_cv_file_magic_cmd='/bin/file'
7186     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187     lt_cv_file_magic_test_file=/lib/libc.so
7188     ;;
7189   siemens)
7190     lt_cv_deplibs_check_method=pass_all
7191     ;;
7192   pc)
7193     lt_cv_deplibs_check_method=pass_all
7194     ;;
7195   esac
7196   ;;
7197
7198 tpf*)
7199   lt_cv_deplibs_check_method=pass_all
7200   ;;
7201 esac
7202
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7206
7207 file_magic_glob=
7208 want_nocaseglob=no
7209 if test "$build" = "$host"; then
7210   case $host_os in
7211   mingw* | pw32*)
7212     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7213       want_nocaseglob=yes
7214     else
7215       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7216     fi
7217     ;;
7218   esac
7219 fi
7220
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 if test -n "$ac_tool_prefix"; then
7247   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$DLLTOOL"; then
7255   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286   ac_ct_DLLTOOL=$DLLTOOL
7287   # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$ac_ct_DLLTOOL"; then
7295   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323   if test "x$ac_ct_DLLTOOL" = x; then
7324     DLLTOOL="false"
7325   else
7326     case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332     DLLTOOL=$ac_ct_DLLTOOL
7333   fi
7334 else
7335   DLLTOOL="$ac_cv_prog_DLLTOOL"
7336 fi
7337
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7339
7340
7341
7342
7343
7344
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7347 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7348 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   lt_cv_sharedlib_from_linklib_cmd='unknown'
7352
7353 case $host_os in
7354 cygwin* | mingw* | pw32* | cegcc*)
7355   # two different shell functions defined in ltmain.sh
7356   # decide which to use based on capabilities of $DLLTOOL
7357   case `$DLLTOOL --help 2>&1` in
7358   *--identify-strict*)
7359     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7360     ;;
7361   *)
7362     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7363     ;;
7364   esac
7365   ;;
7366 *)
7367   # fallback: assume linklib IS sharedlib
7368   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7369   ;;
7370 esac
7371
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7374 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7375 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7376 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7377
7378
7379
7380
7381
7382
7383
7384 if test -n "$ac_tool_prefix"; then
7385   for ac_prog in ar
7386   do
7387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_AR+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$AR"; then
7395   ac_cv_prog_AR="$AR" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 AR=$ac_cv_prog_AR
7415 if test -n "$AR"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7417 $as_echo "$AR" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424     test -n "$AR" && break
7425   done
7426 fi
7427 if test -z "$AR"; then
7428   ac_ct_AR=$AR
7429   for ac_prog in ar
7430 do
7431   # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   if test -n "$ac_ct_AR"; then
7439   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446     for ac_exec_ext in '' $ac_executable_extensions; do
7447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_prog_ac_ct_AR="$ac_prog"
7449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453   done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459 if test -n "$ac_ct_AR"; then
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7461 $as_echo "$ac_ct_AR" >&6; }
7462 else
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467
7468   test -n "$ac_ct_AR" && break
7469 done
7470
7471   if test "x$ac_ct_AR" = x; then
7472     AR="false"
7473   else
7474     case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480     AR=$ac_ct_AR
7481   fi
7482 fi
7483
7484 : ${AR=ar}
7485 : ${AR_FLAGS=cru}
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7498 $as_echo_n "checking for archiver @FILE support... " >&6; }
7499 if ${lt_cv_ar_at_file+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   lt_cv_ar_at_file=no
7503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505
7506 int
7507 main ()
7508 {
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515   echo conftest.$ac_objext > conftest.lst
7516       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7517       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7518   (eval $lt_ar_try) 2>&5
7519   ac_status=$?
7520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521   test $ac_status = 0; }
7522       if test "$ac_status" -eq 0; then
7523         # Ensure the archiver fails upon bogus file names.
7524         rm -f conftest.$ac_objext libconftest.a
7525         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7526   (eval $lt_ar_try) 2>&5
7527   ac_status=$?
7528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529   test $ac_status = 0; }
7530         if test "$ac_status" -ne 0; then
7531           lt_cv_ar_at_file=@
7532         fi
7533       fi
7534       rm -f conftest.* libconftest.a
7535
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7541 $as_echo "$lt_cv_ar_at_file" >&6; }
7542
7543 if test "x$lt_cv_ar_at_file" = xno; then
7544   archiver_list_spec=
7545 else
7546   archiver_list_spec=$lt_cv_ar_at_file
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555 if test -n "$ac_tool_prefix"; then
7556   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}strip; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_STRIP+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -n "$STRIP"; then
7564   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571     for ac_exec_ext in '' $ac_executable_extensions; do
7572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578   done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 STRIP=$ac_cv_prog_STRIP
7584 if test -n "$STRIP"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7586 $as_echo "$STRIP" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_STRIP"; then
7595   ac_ct_STRIP=$STRIP
7596   # Extract the first word of "strip", so it can be a program name with args.
7597 set dummy strip; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$ac_ct_STRIP"; then
7604   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613     ac_cv_prog_ac_ct_STRIP="strip"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7624 if test -n "$ac_ct_STRIP"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7626 $as_echo "$ac_ct_STRIP" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632   if test "x$ac_ct_STRIP" = x; then
7633     STRIP=":"
7634   else
7635     case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641     STRIP=$ac_ct_STRIP
7642   fi
7643 else
7644   STRIP="$ac_cv_prog_STRIP"
7645 fi
7646
7647 test -z "$STRIP" && STRIP=:
7648
7649
7650
7651
7652
7653
7654 if test -n "$ac_tool_prefix"; then
7655   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_RANLIB+:} false; then :
7660   $as_echo_n "(cached) " >&6
7661 else
7662   if test -n "$RANLIB"; then
7663   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 RANLIB=$ac_cv_prog_RANLIB
7683 if test -n "$RANLIB"; then
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7685 $as_echo "$RANLIB" >&6; }
7686 else
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692 fi
7693 if test -z "$ac_cv_prog_RANLIB"; then
7694   ac_ct_RANLIB=$RANLIB
7695   # Extract the first word of "ranlib", so it can be a program name with args.
7696 set dummy ranlib; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   if test -n "$ac_ct_RANLIB"; then
7703   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710     for ac_exec_ext in '' $ac_executable_extensions; do
7711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712     ac_cv_prog_ac_ct_RANLIB="ranlib"
7713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717   done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7723 if test -n "$ac_ct_RANLIB"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7725 $as_echo "$ac_ct_RANLIB" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731   if test "x$ac_ct_RANLIB" = x; then
7732     RANLIB=":"
7733   else
7734     case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740     RANLIB=$ac_ct_RANLIB
7741   fi
7742 else
7743   RANLIB="$ac_cv_prog_RANLIB"
7744 fi
7745
7746 test -z "$RANLIB" && RANLIB=:
7747
7748
7749
7750
7751
7752
7753 # Determine commands to create old-style static archives.
7754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7755 old_postinstall_cmds='chmod 644 $oldlib'
7756 old_postuninstall_cmds=
7757
7758 if test -n "$RANLIB"; then
7759   case $host_os in
7760   openbsd*)
7761     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7762     ;;
7763   *)
7764     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7765     ;;
7766   esac
7767   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7768 fi
7769
7770 case $host_os in
7771   darwin*)
7772     lock_old_archive_extraction=yes ;;
7773   *)
7774     lock_old_archive_extraction=no ;;
7775 esac
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 # If no C compiler was specified, use CC.
7816 LTCC=${LTCC-"$CC"}
7817
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7820
7821 # Allow CC to be a program name with arguments.
7822 compiler=$CC
7823
7824
7825 # Check for command to grab the raw symbol name followed by C symbol from nm.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7827 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7828 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831
7832 # These are sane defaults that work on at least a few old systems.
7833 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7834
7835 # Character class describing NM global symbol codes.
7836 symcode='[BCDEGRST]'
7837
7838 # Regexp to match symbols that can be accessed directly from C.
7839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7840
7841 # Define system-specific variables.
7842 case $host_os in
7843 aix*)
7844   symcode='[BCDT]'
7845   ;;
7846 cygwin* | mingw* | pw32* | cegcc*)
7847   symcode='[ABCDGISTW]'
7848   ;;
7849 hpux*)
7850   if test "$host_cpu" = ia64; then
7851     symcode='[ABCDEGRST]'
7852   fi
7853   ;;
7854 irix* | nonstopux*)
7855   symcode='[BCDEGRST]'
7856   ;;
7857 osf*)
7858   symcode='[BCDEGQRST]'
7859   ;;
7860 solaris*)
7861   symcode='[BDRT]'
7862   ;;
7863 sco3.2v5*)
7864   symcode='[DT]'
7865   ;;
7866 sysv4.2uw2*)
7867   symcode='[DT]'
7868   ;;
7869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7870   symcode='[ABDT]'
7871   ;;
7872 sysv4)
7873   symcode='[DFNSTU]'
7874   ;;
7875 esac
7876
7877 # If we're using GNU nm, then use its standard symbol codes.
7878 case `$NM -V 2>&1` in
7879 *GNU* | *'with BFD'*)
7880   symcode='[ABCDGIRSTW]' ;;
7881 esac
7882
7883 # Transform an extracted symbol line into a proper C declaration.
7884 # Some systems (esp. on ia64) link data and code symbols differently,
7885 # so use this general approach.
7886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7887
7888 # Transform an extracted symbol line into symbol name and symbol address
7889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7890 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'"
7891
7892 # Handle CRLF in mingw tool chain
7893 opt_cr=
7894 case $build_os in
7895 mingw*)
7896   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7897   ;;
7898 esac
7899
7900 # Try without a prefix underscore, then with it.
7901 for ac_symprfx in "" "_"; do
7902
7903   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7904   symxfrm="\\1 $ac_symprfx\\2 \\2"
7905
7906   # Write the raw and C identifiers.
7907   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7908     # Fake it for dumpbin and say T for any non-static function
7909     # and D for any global variable.
7910     # Also find C++ and __fastcall symbols from MSVC++,
7911     # which start with @ or ?.
7912     lt_cv_sys_global_symbol_pipe="$AWK '"\
7913 "     {last_section=section; section=\$ 3};"\
7914 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7915 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 "     \$ 0!~/External *\|/{next};"\
7917 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 "     {if(hide[section]) next};"\
7919 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 "     ' prfx=^$ac_symprfx"
7924   else
7925     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7926   fi
7927   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7928
7929   # Check to see that the pipe works correctly.
7930   pipe_works=no
7931
7932   rm -f conftest*
7933   cat > conftest.$ac_ext <<_LT_EOF
7934 #ifdef __cplusplus
7935 extern "C" {
7936 #endif
7937 char nm_test_var;
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7940 #ifdef __cplusplus
7941 }
7942 #endif
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7944 _LT_EOF
7945
7946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947   (eval $ac_compile) 2>&5
7948   ac_status=$?
7949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950   test $ac_status = 0; }; then
7951     # Now try to grab the symbols.
7952     nlist=conftest.nm
7953     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7955   ac_status=$?
7956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957   test $ac_status = 0; } && test -s "$nlist"; then
7958       # Try sorting and uniquifying the output.
7959       if sort "$nlist" | uniq > "$nlist"T; then
7960         mv -f "$nlist"T "$nlist"
7961       else
7962         rm -f "$nlist"T
7963       fi
7964
7965       # Make sure that we snagged all the symbols we need.
7966       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968           cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data.  */
7976 # define LT_DLSYM_CONST
7977 #else
7978 # define LT_DLSYM_CONST const
7979 #endif
7980
7981 #ifdef __cplusplus
7982 extern "C" {
7983 #endif
7984
7985 _LT_EOF
7986           # Now generate the symbol file.
7987           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7988
7989           cat <<_LT_EOF >> conftest.$ac_ext
7990
7991 /* The mapping between symbol names and symbols.  */
7992 LT_DLSYM_CONST struct {
7993   const char *name;
7994   void       *address;
7995 }
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7997 {
7998   { "@PROGRAM@", (void *) 0 },
7999 _LT_EOF
8000           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001           cat <<\_LT_EOF >> conftest.$ac_ext
8002   {0, (void *) 0}
8003 };
8004
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008   return lt__PROGRAM__LTX_preloaded_symbols;
8009 }
8010 #endif
8011
8012 #ifdef __cplusplus
8013 }
8014 #endif
8015 _LT_EOF
8016           # Now try linking the two files.
8017           mv conftest.$ac_objext conftstm.$ac_objext
8018           lt_globsym_save_LIBS=$LIBS
8019           lt_globsym_save_CFLAGS=$CFLAGS
8020           LIBS="conftstm.$ac_objext"
8021           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023   (eval $ac_link) 2>&5
8024   ac_status=$?
8025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8027             pipe_works=yes
8028           fi
8029           LIBS=$lt_globsym_save_LIBS
8030           CFLAGS=$lt_globsym_save_CFLAGS
8031         else
8032           echo "cannot find nm_test_func in $nlist" >&5
8033         fi
8034       else
8035         echo "cannot find nm_test_var in $nlist" >&5
8036       fi
8037     else
8038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8039     fi
8040   else
8041     echo "$progname: failed program was:" >&5
8042     cat conftest.$ac_ext >&5
8043   fi
8044   rm -rf conftest* conftst*
8045
8046   # Do not use the global_symbol_pipe unless it works.
8047   if test "$pipe_works" = yes; then
8048     break
8049   else
8050     lt_cv_sys_global_symbol_pipe=
8051   fi
8052 done
8053
8054 fi
8055
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057   lt_cv_sys_global_symbol_to_cdecl=
8058 fi
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8065 fi
8066
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069   nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071   nm_file_list_spec='@'
8072 fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8102
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105   withval=$with_sysroot;
8106 else
8107   with_sysroot=no
8108 fi
8109
8110
8111 lt_sysroot=
8112 case ${with_sysroot} in #(
8113  yes)
8114    if test "$GCC" = yes; then
8115      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8116    fi
8117    ;; #(
8118  /*)
8119    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8120    ;; #(
8121  no|'')
8122    ;; #(
8123  *)
8124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8127    ;;
8128 esac
8129
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8132
8133
8134
8135
8136
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139   enableval=$enable_libtool_lock;
8140 fi
8141
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8143
8144 # Some flags need to be propagated to the compiler or linker for good
8145 # libtool support.
8146 case $host in
8147 ia64-*-hpux*)
8148   # Find out which ABI we are using.
8149   echo 'int i;' > conftest.$ac_ext
8150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151   (eval $ac_compile) 2>&5
8152   ac_status=$?
8153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154   test $ac_status = 0; }; then
8155     case `/usr/bin/file conftest.$ac_objext` in
8156       *ELF-32*)
8157         HPUX_IA64_MODE="32"
8158         ;;
8159       *ELF-64*)
8160         HPUX_IA64_MODE="64"
8161         ;;
8162     esac
8163   fi
8164   rm -rf conftest*
8165   ;;
8166 *-*-irix6*)
8167   # Find out which ABI we are using.
8168   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170   (eval $ac_compile) 2>&5
8171   ac_status=$?
8172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173   test $ac_status = 0; }; then
8174     if test "$lt_cv_prog_gnu_ld" = yes; then
8175       case `/usr/bin/file conftest.$ac_objext` in
8176         *32-bit*)
8177           LD="${LD-ld} -melf32bsmip"
8178           ;;
8179         *N32*)
8180           LD="${LD-ld} -melf32bmipn32"
8181           ;;
8182         *64-bit*)
8183           LD="${LD-ld} -melf64bmip"
8184         ;;
8185       esac
8186     else
8187       case `/usr/bin/file conftest.$ac_objext` in
8188         *32-bit*)
8189           LD="${LD-ld} -32"
8190           ;;
8191         *N32*)
8192           LD="${LD-ld} -n32"
8193           ;;
8194         *64-bit*)
8195           LD="${LD-ld} -64"
8196           ;;
8197       esac
8198     fi
8199   fi
8200   rm -rf conftest*
8201   ;;
8202
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205   # Find out which ABI we are using.
8206   echo 'int i;' > conftest.$ac_ext
8207   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211   test $ac_status = 0; }; then
8212     case `/usr/bin/file conftest.o` in
8213       *32-bit*)
8214         case $host in
8215           x86_64-*kfreebsd*-gnu)
8216             LD="${LD-ld} -m elf_i386_fbsd"
8217             ;;
8218           x86_64-*linux*)
8219             LD="${LD-ld} -m elf_i386"
8220             ;;
8221           ppc64-*linux*|powerpc64-*linux*)
8222             LD="${LD-ld} -m elf32ppclinux"
8223             ;;
8224           s390x-*linux*)
8225             LD="${LD-ld} -m elf_s390"
8226             ;;
8227           sparc64-*linux*)
8228             LD="${LD-ld} -m elf32_sparc"
8229             ;;
8230         esac
8231         ;;
8232       *64-bit*)
8233         case $host in
8234           x86_64-*kfreebsd*-gnu)
8235             LD="${LD-ld} -m elf_x86_64_fbsd"
8236             ;;
8237           x86_64-*linux*)
8238             LD="${LD-ld} -m elf_x86_64"
8239             ;;
8240           ppc*-*linux*|powerpc*-*linux*)
8241             LD="${LD-ld} -m elf64ppc"
8242             ;;
8243           s390*-*linux*|s390*-*tpf*)
8244             LD="${LD-ld} -m elf64_s390"
8245             ;;
8246           sparc*-*linux*)
8247             LD="${LD-ld} -m elf64_sparc"
8248             ;;
8249         esac
8250         ;;
8251     esac
8252   fi
8253   rm -rf conftest*
8254   ;;
8255
8256 *-*-sco3.2v5*)
8257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258   SAVE_CFLAGS="$CFLAGS"
8259   CFLAGS="$CFLAGS -belf"
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   ac_ext=c
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273
8274 int
8275 main ()
8276 {
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283   lt_cv_cc_needs_belf=yes
8284 else
8285   lt_cv_cc_needs_belf=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289      ac_ext=c
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300     CFLAGS="$SAVE_CFLAGS"
8301   fi
8302   ;;
8303 *-*solaris*)
8304   # Find out which ABI we are using.
8305   echo 'int i;' > conftest.$ac_ext
8306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307   (eval $ac_compile) 2>&5
8308   ac_status=$?
8309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310   test $ac_status = 0; }; then
8311     case `/usr/bin/file conftest.o` in
8312     *64-bit*)
8313       case $lt_cv_prog_gnu_ld in
8314       yes*)
8315         case $host in
8316         i?86-*-solaris*)
8317           LD="${LD-ld} -m elf_x86_64"
8318           ;;
8319         sparc*-*-solaris*)
8320           LD="${LD-ld} -m elf64_sparc"
8321           ;;
8322         esac
8323         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8324         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8325           LD="${LD-ld}_sol2"
8326         fi
8327         ;;
8328       *)
8329         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8330           LD="${LD-ld} -64"
8331         fi
8332         ;;
8333       esac
8334       ;;
8335     esac
8336   fi
8337   rm -rf conftest*
8338   ;;
8339 esac
8340
8341 need_locks="$enable_libtool_lock"
8342
8343 if test -n "$ac_tool_prefix"; then
8344   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}mt; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if test -n "$MANIFEST_TOOL"; then
8352   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   test -z "$as_dir" && as_dir=.
8359     for ac_exec_ext in '' $ac_executable_extensions; do
8360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363     break 2
8364   fi
8365 done
8366   done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8372 if test -n "$MANIFEST_TOOL"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8374 $as_echo "$MANIFEST_TOOL" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8383   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8384   # Extract the first word of "mt", so it can be a program name with args.
8385 set dummy mt; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   if test -n "$ac_ct_MANIFEST_TOOL"; then
8392   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8412 if test -n "$ac_ct_MANIFEST_TOOL"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8421     MANIFEST_TOOL=":"
8422   else
8423     case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8430   fi
8431 else
8432   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8433 fi
8434
8435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8438 if ${lt_cv_path_mainfest_tool+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   lt_cv_path_mainfest_tool=no
8442   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8443   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8444   cat conftest.err >&5
8445   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8446     lt_cv_path_mainfest_tool=yes
8447   fi
8448   rm -f conftest*
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8452 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8453   MANIFEST_TOOL=:
8454 fi
8455
8456
8457
8458
8459
8460
8461   case $host_os in
8462     rhapsody* | darwin*)
8463     if test -n "$ac_tool_prefix"; then
8464   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   if test -n "$DSYMUTIL"; then
8472   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8492 if test -n "$DSYMUTIL"; then
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8494 $as_echo "$DSYMUTIL" >&6; }
8495 else
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 fi
8502 if test -z "$ac_cv_prog_DSYMUTIL"; then
8503   ac_ct_DSYMUTIL=$DSYMUTIL
8504   # Extract the first word of "dsymutil", so it can be a program name with args.
8505 set dummy dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   if test -n "$ac_ct_DSYMUTIL"; then
8512   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8532 if test -n "$ac_ct_DSYMUTIL"; then
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8535 else
8536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540   if test "x$ac_ct_DSYMUTIL" = x; then
8541     DSYMUTIL=":"
8542   else
8543     case $cross_compiling:$ac_tool_warned in
8544 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549     DSYMUTIL=$ac_ct_DSYMUTIL
8550   fi
8551 else
8552   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8553 fi
8554
8555     if test -n "$ac_tool_prefix"; then
8556   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_NMEDIT+:} false; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   if test -n "$NMEDIT"; then
8564   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569   IFS=$as_save_IFS
8570   test -z "$as_dir" && as_dir=.
8571     for ac_exec_ext in '' $ac_executable_extensions; do
8572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575     break 2
8576   fi
8577 done
8578   done
8579 IFS=$as_save_IFS
8580
8581 fi
8582 fi
8583 NMEDIT=$ac_cv_prog_NMEDIT
8584 if test -n "$NMEDIT"; then
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8586 $as_echo "$NMEDIT" >&6; }
8587 else
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591
8592
8593 fi
8594 if test -z "$ac_cv_prog_NMEDIT"; then
8595   ac_ct_NMEDIT=$NMEDIT
8596   # Extract the first word of "nmedit", so it can be a program name with args.
8597 set dummy nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   if test -n "$ac_ct_NMEDIT"; then
8604   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611     for ac_exec_ext in '' $ac_executable_extensions; do
8612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618   done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8624 if test -n "$ac_ct_NMEDIT"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8626 $as_echo "$ac_ct_NMEDIT" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632   if test "x$ac_ct_NMEDIT" = x; then
8633     NMEDIT=":"
8634   else
8635     case $cross_compiling:$ac_tool_warned in
8636 yes:)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8639 ac_tool_warned=yes ;;
8640 esac
8641     NMEDIT=$ac_ct_NMEDIT
8642   fi
8643 else
8644   NMEDIT="$ac_cv_prog_NMEDIT"
8645 fi
8646
8647     if test -n "$ac_tool_prefix"; then
8648   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LIPO+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   if test -n "$LIPO"; then
8656   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661   IFS=$as_save_IFS
8662   test -z "$as_dir" && as_dir=.
8663     for ac_exec_ext in '' $ac_executable_extensions; do
8664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667     break 2
8668   fi
8669 done
8670   done
8671 IFS=$as_save_IFS
8672
8673 fi
8674 fi
8675 LIPO=$ac_cv_prog_LIPO
8676 if test -n "$LIPO"; then
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678 $as_echo "$LIPO" >&6; }
8679 else
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 fi
8686 if test -z "$ac_cv_prog_LIPO"; then
8687   ac_ct_LIPO=$LIPO
8688   # Extract the first word of "lipo", so it can be a program name with args.
8689 set dummy lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$ac_ct_LIPO"; then
8696   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705     ac_cv_prog_ac_ct_LIPO="lipo"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8716 if test -n "$ac_ct_LIPO"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8718 $as_echo "$ac_ct_LIPO" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724   if test "x$ac_ct_LIPO" = x; then
8725     LIPO=":"
8726   else
8727     case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733     LIPO=$ac_ct_LIPO
8734   fi
8735 else
8736   LIPO="$ac_cv_prog_LIPO"
8737 fi
8738
8739     if test -n "$ac_tool_prefix"; then
8740   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}otool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_OTOOL+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   if test -n "$OTOOL"; then
8748   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753   IFS=$as_save_IFS
8754   test -z "$as_dir" && as_dir=.
8755     for ac_exec_ext in '' $ac_executable_extensions; do
8756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759     break 2
8760   fi
8761 done
8762   done
8763 IFS=$as_save_IFS
8764
8765 fi
8766 fi
8767 OTOOL=$ac_cv_prog_OTOOL
8768 if test -n "$OTOOL"; then
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8770 $as_echo "$OTOOL" >&6; }
8771 else
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777 fi
8778 if test -z "$ac_cv_prog_OTOOL"; then
8779   ac_ct_OTOOL=$OTOOL
8780   # Extract the first word of "otool", so it can be a program name with args.
8781 set dummy otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   if test -n "$ac_ct_OTOOL"; then
8788   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793   IFS=$as_save_IFS
8794   test -z "$as_dir" && as_dir=.
8795     for ac_exec_ext in '' $ac_executable_extensions; do
8796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797     ac_cv_prog_ac_ct_OTOOL="otool"
8798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799     break 2
8800   fi
8801 done
8802   done
8803 IFS=$as_save_IFS
8804
8805 fi
8806 fi
8807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8808 if test -n "$ac_ct_OTOOL"; then
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8810 $as_echo "$ac_ct_OTOOL" >&6; }
8811 else
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816   if test "x$ac_ct_OTOOL" = x; then
8817     OTOOL=":"
8818   else
8819     case $cross_compiling:$ac_tool_warned in
8820 yes:)
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8824 esac
8825     OTOOL=$ac_ct_OTOOL
8826   fi
8827 else
8828   OTOOL="$ac_cv_prog_OTOOL"
8829 fi
8830
8831     if test -n "$ac_tool_prefix"; then
8832   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_OTOOL64+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   if test -n "$OTOOL64"; then
8840   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845   IFS=$as_save_IFS
8846   test -z "$as_dir" && as_dir=.
8847     for ac_exec_ext in '' $ac_executable_extensions; do
8848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851     break 2
8852   fi
8853 done
8854   done
8855 IFS=$as_save_IFS
8856
8857 fi
8858 fi
8859 OTOOL64=$ac_cv_prog_OTOOL64
8860 if test -n "$OTOOL64"; then
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8862 $as_echo "$OTOOL64" >&6; }
8863 else
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869 fi
8870 if test -z "$ac_cv_prog_OTOOL64"; then
8871   ac_ct_OTOOL64=$OTOOL64
8872   # Extract the first word of "otool64", so it can be a program name with args.
8873 set dummy otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8877   $as_echo_n "(cached) " >&6
8878 else
8879   if test -n "$ac_ct_OTOOL64"; then
8880   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885   IFS=$as_save_IFS
8886   test -z "$as_dir" && as_dir=.
8887     for ac_exec_ext in '' $ac_executable_extensions; do
8888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889     ac_cv_prog_ac_ct_OTOOL64="otool64"
8890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891     break 2
8892   fi
8893 done
8894   done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8900 if test -n "$ac_ct_OTOOL64"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8902 $as_echo "$ac_ct_OTOOL64" >&6; }
8903 else
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908   if test "x$ac_ct_OTOOL64" = x; then
8909     OTOOL64=":"
8910   else
8911     case $cross_compiling:$ac_tool_warned in
8912 yes:)
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8916 esac
8917     OTOOL64=$ac_ct_OTOOL64
8918   fi
8919 else
8920   OTOOL64="$ac_cv_prog_OTOOL64"
8921 fi
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8950 $as_echo_n "checking for -single_module linker flag... " >&6; }
8951 if ${lt_cv_apple_cc_single_mod+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   lt_cv_apple_cc_single_mod=no
8955       if test -z "${LT_MULTI_MODULE}"; then
8956         # By default we will add the -single_module flag. You can override
8957         # by either setting the environment variable LT_MULTI_MODULE
8958         # non-empty at configure time, or by adding -multi_module to the
8959         # link flags.
8960         rm -rf libconftest.dylib*
8961         echo "int foo(void){return 1;}" > conftest.c
8962         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c" >&5
8964         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8965           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8966         _lt_result=$?
8967         # If there is a non-empty error log, and "single_module"
8968         # appears in it, assume the flag caused a linker warning
8969         if test -s conftest.err && $GREP single_module conftest.err; then
8970           cat conftest.err >&5
8971         # Otherwise, if the output was created with a 0 exit code from
8972         # the compiler, it worked.
8973         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8974           lt_cv_apple_cc_single_mod=yes
8975         else
8976           cat conftest.err >&5
8977         fi
8978         rm -rf libconftest.dylib*
8979         rm -f conftest.*
8980       fi
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8984
8985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   lt_cv_ld_exported_symbols_list=no
8991       save_LDFLAGS=$LDFLAGS
8992       echo "_main" > conftest.sym
8993       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h.  */
8996
8997 int
8998 main ()
8999 {
9000
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006   lt_cv_ld_exported_symbols_list=yes
9007 else
9008   lt_cv_ld_exported_symbols_list=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011     conftest$ac_exeext conftest.$ac_ext
9012         LDFLAGS="$save_LDFLAGS"
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9017
9018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9019 $as_echo_n "checking for -force_load linker flag... " >&6; }
9020 if ${lt_cv_ld_force_load+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   lt_cv_ld_force_load=no
9024       cat > conftest.c << _LT_EOF
9025 int forced_loaded() { return 2;}
9026 _LT_EOF
9027       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9028       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9029       echo "$AR cru libconftest.a conftest.o" >&5
9030       $AR cru libconftest.a conftest.o 2>&5
9031       echo "$RANLIB libconftest.a" >&5
9032       $RANLIB libconftest.a 2>&5
9033       cat > conftest.c << _LT_EOF
9034 int main() { return 0;}
9035 _LT_EOF
9036       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9037       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9038       _lt_result=$?
9039       if test -s conftest.err && $GREP force_load conftest.err; then
9040         cat conftest.err >&5
9041       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9042         lt_cv_ld_force_load=yes
9043       else
9044         cat conftest.err >&5
9045       fi
9046         rm -f conftest.err libconftest.a conftest conftest.c
9047         rm -rf conftest.dSYM
9048
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9051 $as_echo "$lt_cv_ld_force_load" >&6; }
9052     case $host_os in
9053     rhapsody* | darwin1.[012])
9054       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9055     darwin1.*)
9056       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9057     darwin*) # darwin 5.x on
9058       # if running on 10.5 or later, the deployment target defaults
9059       # to the OS version, if on x86, and 10.4, the deployment
9060       # target defaults to 10.4. Don't you love it?
9061       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9062         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9063           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9064         10.[012]*)
9065           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9066         10.*)
9067           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9068       esac
9069     ;;
9070   esac
9071     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9072       _lt_dar_single_mod='$single_module'
9073     fi
9074     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9075       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9076     else
9077       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9078     fi
9079     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9080       _lt_dsymutil='~$DSYMUTIL $lib || :'
9081     else
9082       _lt_dsymutil=
9083     fi
9084     ;;
9085   esac
9086
9087 for ac_header in dlfcn.h
9088 do :
9089   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9090 "
9091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9092   cat >>confdefs.h <<_ACEOF
9093 #define HAVE_DLFCN_H 1
9094 _ACEOF
9095
9096 fi
9097
9098 done
9099
9100
9101
9102
9103 func_stripname_cnf ()
9104 {
9105   case ${2} in
9106   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9107   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9108   esac
9109 } # func_stripname_cnf
9110
9111
9112
9113
9114
9115 # Set options
9116 enable_win32_dll=yes
9117
9118 case $host in
9119 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9120   if test -n "$ac_tool_prefix"; then
9121   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9122 set dummy ${ac_tool_prefix}as; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_AS+:} false; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   if test -n "$AS"; then
9129   ac_cv_prog_AS="$AS" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134   IFS=$as_save_IFS
9135   test -z "$as_dir" && as_dir=.
9136     for ac_exec_ext in '' $ac_executable_extensions; do
9137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138     ac_cv_prog_AS="${ac_tool_prefix}as"
9139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140     break 2
9141   fi
9142 done
9143   done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 AS=$ac_cv_prog_AS
9149 if test -n "$AS"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9151 $as_echo "$AS" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 fi
9159 if test -z "$ac_cv_prog_AS"; then
9160   ac_ct_AS=$AS
9161   # Extract the first word of "as", so it can be a program name with args.
9162 set dummy as; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9166   $as_echo_n "(cached) " >&6
9167 else
9168   if test -n "$ac_ct_AS"; then
9169   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9173 do
9174   IFS=$as_save_IFS
9175   test -z "$as_dir" && as_dir=.
9176     for ac_exec_ext in '' $ac_executable_extensions; do
9177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9178     ac_cv_prog_ac_ct_AS="as"
9179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180     break 2
9181   fi
9182 done
9183   done
9184 IFS=$as_save_IFS
9185
9186 fi
9187 fi
9188 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9189 if test -n "$ac_ct_AS"; then
9190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9191 $as_echo "$ac_ct_AS" >&6; }
9192 else
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9195 fi
9196
9197   if test "x$ac_ct_AS" = x; then
9198     AS="false"
9199   else
9200     case $cross_compiling:$ac_tool_warned in
9201 yes:)
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9204 ac_tool_warned=yes ;;
9205 esac
9206     AS=$ac_ct_AS
9207   fi
9208 else
9209   AS="$ac_cv_prog_AS"
9210 fi
9211
9212   if test -n "$ac_tool_prefix"; then
9213   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_DLLTOOL+:} false; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   if test -n "$DLLTOOL"; then
9221   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9225 do
9226   IFS=$as_save_IFS
9227   test -z "$as_dir" && as_dir=.
9228     for ac_exec_ext in '' $ac_executable_extensions; do
9229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9230     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232     break 2
9233   fi
9234 done
9235   done
9236 IFS=$as_save_IFS
9237
9238 fi
9239 fi
9240 DLLTOOL=$ac_cv_prog_DLLTOOL
9241 if test -n "$DLLTOOL"; then
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9243 $as_echo "$DLLTOOL" >&6; }
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248
9249
9250 fi
9251 if test -z "$ac_cv_prog_DLLTOOL"; then
9252   ac_ct_DLLTOOL=$DLLTOOL
9253   # Extract the first word of "dlltool", so it can be a program name with args.
9254 set dummy dlltool; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   if test -n "$ac_ct_DLLTOOL"; then
9261   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9262 else
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9265 do
9266   IFS=$as_save_IFS
9267   test -z "$as_dir" && as_dir=.
9268     for ac_exec_ext in '' $ac_executable_extensions; do
9269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9270     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272     break 2
9273   fi
9274 done
9275   done
9276 IFS=$as_save_IFS
9277
9278 fi
9279 fi
9280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9281 if test -n "$ac_ct_DLLTOOL"; then
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9283 $as_echo "$ac_ct_DLLTOOL" >&6; }
9284 else
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9288
9289   if test "x$ac_ct_DLLTOOL" = x; then
9290     DLLTOOL="false"
9291   else
9292     case $cross_compiling:$ac_tool_warned in
9293 yes:)
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9297 esac
9298     DLLTOOL=$ac_ct_DLLTOOL
9299   fi
9300 else
9301   DLLTOOL="$ac_cv_prog_DLLTOOL"
9302 fi
9303
9304   if test -n "$ac_tool_prefix"; then
9305   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if ${ac_cv_prog_OBJDUMP+:} false; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   if test -n "$OBJDUMP"; then
9313   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318   IFS=$as_save_IFS
9319   test -z "$as_dir" && as_dir=.
9320     for ac_exec_ext in '' $ac_executable_extensions; do
9321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324     break 2
9325   fi
9326 done
9327   done
9328 IFS=$as_save_IFS
9329
9330 fi
9331 fi
9332 OBJDUMP=$ac_cv_prog_OBJDUMP
9333 if test -n "$OBJDUMP"; then
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9335 $as_echo "$OBJDUMP" >&6; }
9336 else
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9339 fi
9340
9341
9342 fi
9343 if test -z "$ac_cv_prog_OBJDUMP"; then
9344   ac_ct_OBJDUMP=$OBJDUMP
9345   # Extract the first word of "objdump", so it can be a program name with args.
9346 set dummy objdump; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   if test -n "$ac_ct_OBJDUMP"; then
9353   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9354 else
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9357 do
9358   IFS=$as_save_IFS
9359   test -z "$as_dir" && as_dir=.
9360     for ac_exec_ext in '' $ac_executable_extensions; do
9361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9364     break 2
9365   fi
9366 done
9367   done
9368 IFS=$as_save_IFS
9369
9370 fi
9371 fi
9372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9373 if test -n "$ac_ct_OBJDUMP"; then
9374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9375 $as_echo "$ac_ct_OBJDUMP" >&6; }
9376 else
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9379 fi
9380
9381   if test "x$ac_ct_OBJDUMP" = x; then
9382     OBJDUMP="false"
9383   else
9384     case $cross_compiling:$ac_tool_warned in
9385 yes:)
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9388 ac_tool_warned=yes ;;
9389 esac
9390     OBJDUMP=$ac_ct_OBJDUMP
9391   fi
9392 else
9393   OBJDUMP="$ac_cv_prog_OBJDUMP"
9394 fi
9395
9396   ;;
9397 esac
9398
9399 test -z "$AS" && AS=as
9400
9401
9402
9403
9404
9405 test -z "$DLLTOOL" && DLLTOOL=dlltool
9406
9407
9408
9409
9410
9411 test -z "$OBJDUMP" && OBJDUMP=objdump
9412
9413
9414
9415
9416 # Check whether --enable-static was given.
9417 if test "${enable_static+set}" = set; then :
9418   enableval=$enable_static; p=${PACKAGE-default}
9419     case $enableval in
9420     yes) enable_static=yes ;;
9421     no) enable_static=no ;;
9422     *)
9423      enable_static=no
9424       # Look at the argument we got.  We use all the common list separators.
9425       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9426       for pkg in $enableval; do
9427         IFS="$lt_save_ifs"
9428         if test "X$pkg" = "X$p"; then
9429           enable_static=yes
9430         fi
9431       done
9432       IFS="$lt_save_ifs"
9433       ;;
9434     esac
9435 else
9436   enable_static=no
9437 fi
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448         enable_dlopen=no
9449
9450
9451
9452             # Check whether --enable-shared was given.
9453 if test "${enable_shared+set}" = set; then :
9454   enableval=$enable_shared; p=${PACKAGE-default}
9455     case $enableval in
9456     yes) enable_shared=yes ;;
9457     no) enable_shared=no ;;
9458     *)
9459       enable_shared=no
9460       # Look at the argument we got.  We use all the common list separators.
9461       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9462       for pkg in $enableval; do
9463         IFS="$lt_save_ifs"
9464         if test "X$pkg" = "X$p"; then
9465           enable_shared=yes
9466         fi
9467       done
9468       IFS="$lt_save_ifs"
9469       ;;
9470     esac
9471 else
9472   enable_shared=yes
9473 fi
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485 # Check whether --with-pic was given.
9486 if test "${with_pic+set}" = set; then :
9487   withval=$with_pic; lt_p=${PACKAGE-default}
9488     case $withval in
9489     yes|no) pic_mode=$withval ;;
9490     *)
9491       pic_mode=default
9492       # Look at the argument we got.  We use all the common list separators.
9493       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9494       for lt_pkg in $withval; do
9495         IFS="$lt_save_ifs"
9496         if test "X$lt_pkg" = "X$lt_p"; then
9497           pic_mode=yes
9498         fi
9499       done
9500       IFS="$lt_save_ifs"
9501       ;;
9502     esac
9503 else
9504   pic_mode=default
9505 fi
9506
9507
9508 test -z "$pic_mode" && pic_mode=default
9509
9510
9511
9512
9513
9514
9515
9516   # Check whether --enable-fast-install was given.
9517 if test "${enable_fast_install+set}" = set; then :
9518   enableval=$enable_fast_install; p=${PACKAGE-default}
9519     case $enableval in
9520     yes) enable_fast_install=yes ;;
9521     no) enable_fast_install=no ;;
9522     *)
9523       enable_fast_install=no
9524       # Look at the argument we got.  We use all the common list separators.
9525       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9526       for pkg in $enableval; do
9527         IFS="$lt_save_ifs"
9528         if test "X$pkg" = "X$p"; then
9529           enable_fast_install=yes
9530         fi
9531       done
9532       IFS="$lt_save_ifs"
9533       ;;
9534     esac
9535 else
9536   enable_fast_install=yes
9537 fi
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549 # This can be used to rebuild libtool when needed
9550 LIBTOOL_DEPS="$ltmain"
9551
9552 # Always use our own libtool.
9553 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 test -z "$LN_S" && LN_S="ln -s"
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 if test -n "${ZSH_VERSION+set}" ; then
9600    setopt NO_GLOB_SUBST
9601 fi
9602
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9604 $as_echo_n "checking for objdir... " >&6; }
9605 if ${lt_cv_objdir+:} false; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608   rm -f .libs 2>/dev/null
9609 mkdir .libs 2>/dev/null
9610 if test -d .libs; then
9611   lt_cv_objdir=.libs
9612 else
9613   # MS-DOS does not allow filenames that begin with a dot.
9614   lt_cv_objdir=_libs
9615 fi
9616 rmdir .libs 2>/dev/null
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9619 $as_echo "$lt_cv_objdir" >&6; }
9620 objdir=$lt_cv_objdir
9621
9622
9623
9624
9625
9626 cat >>confdefs.h <<_ACEOF
9627 #define LT_OBJDIR "$lt_cv_objdir/"
9628 _ACEOF
9629
9630
9631
9632
9633 case $host_os in
9634 aix3*)
9635   # AIX sometimes has problems with the GCC collect2 program.  For some
9636   # reason, if we set the COLLECT_NAMES environment variable, the problems
9637   # vanish in a puff of smoke.
9638   if test "X${COLLECT_NAMES+set}" != Xset; then
9639     COLLECT_NAMES=
9640     export COLLECT_NAMES
9641   fi
9642   ;;
9643 esac
9644
9645 # Global variables:
9646 ofile=libtool
9647 can_build_shared=yes
9648
9649 # All known linkers require a `.a' archive for static linking (except MSVC,
9650 # which needs '.lib').
9651 libext=a
9652
9653 with_gnu_ld="$lt_cv_prog_gnu_ld"
9654
9655 old_CC="$CC"
9656 old_CFLAGS="$CFLAGS"
9657
9658 # Set sane defaults for various variables
9659 test -z "$CC" && CC=cc
9660 test -z "$LTCC" && LTCC=$CC
9661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9662 test -z "$LD" && LD=ld
9663 test -z "$ac_objext" && ac_objext=o
9664
9665 for cc_temp in $compiler""; do
9666   case $cc_temp in
9667     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9668     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9669     \-*) ;;
9670     *) break;;
9671   esac
9672 done
9673 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9674
9675
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9679 file_magic*)
9680   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   case $MAGIC_CMD in
9687 [\\/*] |  ?:[\\/]*)
9688   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9689   ;;
9690 *)
9691   lt_save_MAGIC_CMD="$MAGIC_CMD"
9692   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9693   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9694   for ac_dir in $ac_dummy; do
9695     IFS="$lt_save_ifs"
9696     test -z "$ac_dir" && ac_dir=.
9697     if test -f $ac_dir/${ac_tool_prefix}file; then
9698       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9699       if test -n "$file_magic_test_file"; then
9700         case $deplibs_check_method in
9701         "file_magic "*)
9702           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9703           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9704           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9705             $EGREP "$file_magic_regex" > /dev/null; then
9706             :
9707           else
9708             cat <<_LT_EOF 1>&2
9709
9710 *** Warning: the command libtool uses to detect shared libraries,
9711 *** $file_magic_cmd, produces output that libtool cannot recognize.
9712 *** The result is that libtool may fail to recognize shared libraries
9713 *** as such.  This will affect the creation of libtool libraries that
9714 *** depend on shared libraries, but programs linked with such libtool
9715 *** libraries will work regardless of this problem.  Nevertheless, you
9716 *** may want to report the problem to your system manager and/or to
9717 *** bug-libtool@gnu.org
9718
9719 _LT_EOF
9720           fi ;;
9721         esac
9722       fi
9723       break
9724     fi
9725   done
9726   IFS="$lt_save_ifs"
9727   MAGIC_CMD="$lt_save_MAGIC_CMD"
9728   ;;
9729 esac
9730 fi
9731
9732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9733 if test -n "$MAGIC_CMD"; then
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9735 $as_echo "$MAGIC_CMD" >&6; }
9736 else
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740
9741
9742
9743
9744
9745 if test -z "$lt_cv_path_MAGIC_CMD"; then
9746   if test -n "$ac_tool_prefix"; then
9747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9748 $as_echo_n "checking for file... " >&6; }
9749 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9750   $as_echo_n "(cached) " >&6
9751 else
9752   case $MAGIC_CMD in
9753 [\\/*] |  ?:[\\/]*)
9754   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9755   ;;
9756 *)
9757   lt_save_MAGIC_CMD="$MAGIC_CMD"
9758   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9759   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9760   for ac_dir in $ac_dummy; do
9761     IFS="$lt_save_ifs"
9762     test -z "$ac_dir" && ac_dir=.
9763     if test -f $ac_dir/file; then
9764       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9765       if test -n "$file_magic_test_file"; then
9766         case $deplibs_check_method in
9767         "file_magic "*)
9768           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9769           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9770           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9771             $EGREP "$file_magic_regex" > /dev/null; then
9772             :
9773           else
9774             cat <<_LT_EOF 1>&2
9775
9776 *** Warning: the command libtool uses to detect shared libraries,
9777 *** $file_magic_cmd, produces output that libtool cannot recognize.
9778 *** The result is that libtool may fail to recognize shared libraries
9779 *** as such.  This will affect the creation of libtool libraries that
9780 *** depend on shared libraries, but programs linked with such libtool
9781 *** libraries will work regardless of this problem.  Nevertheless, you
9782 *** may want to report the problem to your system manager and/or to
9783 *** bug-libtool@gnu.org
9784
9785 _LT_EOF
9786           fi ;;
9787         esac
9788       fi
9789       break
9790     fi
9791   done
9792   IFS="$lt_save_ifs"
9793   MAGIC_CMD="$lt_save_MAGIC_CMD"
9794   ;;
9795 esac
9796 fi
9797
9798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9799 if test -n "$MAGIC_CMD"; then
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9801 $as_echo "$MAGIC_CMD" >&6; }
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808   else
9809     MAGIC_CMD=:
9810   fi
9811 fi
9812
9813   fi
9814   ;;
9815 esac
9816
9817 # Use C for the default configuration in the libtool script
9818
9819 lt_save_CC="$CC"
9820 ac_ext=c
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
9826
9827 # Source file extension for C test sources.
9828 ac_ext=c
9829
9830 # Object file extension for compiled C test sources.
9831 objext=o
9832 objext=$objext
9833
9834 # Code to be used in simple compile tests
9835 lt_simple_compile_test_code="int some_variable = 0;"
9836
9837 # Code to be used in simple link tests
9838 lt_simple_link_test_code='int main(){return(0);}'
9839
9840
9841
9842
9843
9844
9845
9846 # If no C compiler was specified, use CC.
9847 LTCC=${LTCC-"$CC"}
9848
9849 # If no C compiler flags were specified, use CFLAGS.
9850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9851
9852 # Allow CC to be a program name with arguments.
9853 compiler=$CC
9854
9855 # Save the default compiler, since it gets overwritten when the other
9856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9857 compiler_DEFAULT=$CC
9858
9859 # save warnings/boilerplate of simple test code
9860 ac_outfile=conftest.$ac_objext
9861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9863 _lt_compiler_boilerplate=`cat conftest.err`
9864 $RM conftest*
9865
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_linker_boilerplate=`cat conftest.err`
9870 $RM -r conftest*
9871
9872
9873 ## CAVEAT EMPTOR:
9874 ## There is no encapsulation within the following macros, do not change
9875 ## the running order or otherwise move them around unless you know exactly
9876 ## what you are doing...
9877 if test -n "$compiler"; then
9878
9879 lt_prog_compiler_no_builtin_flag=
9880
9881 if test "$GCC" = yes; then
9882   case $cc_basename in
9883   nvcc*)
9884     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9885   *)
9886     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9887   esac
9888
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   lt_cv_prog_compiler_rtti_exceptions=no
9895    ac_outfile=conftest.$ac_objext
9896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897    lt_compiler_flag="-fno-rtti -fno-exceptions"
9898    # Insert the option either (1) after the last *FLAGS variable, or
9899    # (2) before a word containing "conftest.", or (3) at the end.
9900    # Note that $ac_compile itself does not contain backslashes and begins
9901    # with a dollar sign (not a hyphen), so the echo should work correctly.
9902    # The option is referenced via a variable to avoid confusing sed.
9903    lt_compile=`echo "$ac_compile" | $SED \
9904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906    -e 's:$: $lt_compiler_flag:'`
9907    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908    (eval "$lt_compile" 2>conftest.err)
9909    ac_status=$?
9910    cat conftest.err >&5
9911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912    if (exit $ac_status) && test -s "$ac_outfile"; then
9913      # The compiler can only warn and ignore the option if not recognized
9914      # So say no if there are warnings other than the usual output.
9915      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9916      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9918        lt_cv_prog_compiler_rtti_exceptions=yes
9919      fi
9920    fi
9921    $RM conftest*
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9926
9927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9928     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9929 else
9930     :
9931 fi
9932
9933 fi
9934
9935
9936
9937
9938
9939
9940   lt_prog_compiler_wl=
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_static=
9943
9944
9945   if test "$GCC" = yes; then
9946     lt_prog_compiler_wl='-Wl,'
9947     lt_prog_compiler_static='-static'
9948
9949     case $host_os in
9950       aix*)
9951       # All AIX code is PIC.
9952       if test "$host_cpu" = ia64; then
9953         # AIX 5 now supports IA64 processor
9954         lt_prog_compiler_static='-Bstatic'
9955       fi
9956       ;;
9957
9958     amigaos*)
9959       case $host_cpu in
9960       powerpc)
9961             # see comment about AmigaOS4 .so support
9962             lt_prog_compiler_pic='-fPIC'
9963         ;;
9964       m68k)
9965             # FIXME: we need at least 68020 code to build shared libraries, but
9966             # adding the `-m68020' flag to GCC prevents building anything better,
9967             # like `-m68040'.
9968             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9969         ;;
9970       esac
9971       ;;
9972
9973     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9974       # PIC is the default for these OSes.
9975       ;;
9976
9977     mingw* | cygwin* | pw32* | os2* | cegcc*)
9978       # This hack is so that the source file can tell whether it is being
9979       # built for inclusion in a dll (and should export symbols for example).
9980       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9981       # (--disable-auto-import) libraries
9982       lt_prog_compiler_pic='-DDLL_EXPORT'
9983       ;;
9984
9985     darwin* | rhapsody*)
9986       # PIC is the default on this platform
9987       # Common symbols not allowed in MH_DYLIB files
9988       lt_prog_compiler_pic='-fno-common'
9989       ;;
9990
9991     haiku*)
9992       # PIC is the default for Haiku.
9993       # The "-static" flag exists, but is broken.
9994       lt_prog_compiler_static=
9995       ;;
9996
9997     hpux*)
9998       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9999       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10000       # sets the default TLS model and affects inlining.
10001       case $host_cpu in
10002       hppa*64*)
10003         # +Z the default
10004         ;;
10005       *)
10006         lt_prog_compiler_pic='-fPIC'
10007         ;;
10008       esac
10009       ;;
10010
10011     interix[3-9]*)
10012       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10013       # Instead, we relocate shared libraries at runtime.
10014       ;;
10015
10016     msdosdjgpp*)
10017       # Just because we use GCC doesn't mean we suddenly get shared libraries
10018       # on systems that don't support them.
10019       lt_prog_compiler_can_build_shared=no
10020       enable_shared=no
10021       ;;
10022
10023     *nto* | *qnx*)
10024       # QNX uses GNU C++, but need to define -shared option too, otherwise
10025       # it will coredump.
10026       lt_prog_compiler_pic='-fPIC -shared'
10027       ;;
10028
10029     sysv4*MP*)
10030       if test -d /usr/nec; then
10031         lt_prog_compiler_pic=-Kconform_pic
10032       fi
10033       ;;
10034
10035     *)
10036       lt_prog_compiler_pic='-fPIC'
10037       ;;
10038     esac
10039
10040     case $cc_basename in
10041     nvcc*) # Cuda Compiler Driver 2.2
10042       lt_prog_compiler_wl='-Xlinker '
10043       if test -n "$lt_prog_compiler_pic"; then
10044         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10045       fi
10046       ;;
10047     esac
10048   else
10049     # PORTME Check for flag to pass linker flags through the system compiler.
10050     case $host_os in
10051     aix*)
10052       lt_prog_compiler_wl='-Wl,'
10053       if test "$host_cpu" = ia64; then
10054         # AIX 5 now supports IA64 processor
10055         lt_prog_compiler_static='-Bstatic'
10056       else
10057         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10058       fi
10059       ;;
10060
10061     mingw* | cygwin* | pw32* | os2* | cegcc*)
10062       # This hack is so that the source file can tell whether it is being
10063       # built for inclusion in a dll (and should export symbols for example).
10064       lt_prog_compiler_pic='-DDLL_EXPORT'
10065       ;;
10066
10067     hpux9* | hpux10* | hpux11*)
10068       lt_prog_compiler_wl='-Wl,'
10069       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10070       # not for PA HP-UX.
10071       case $host_cpu in
10072       hppa*64*|ia64*)
10073         # +Z the default
10074         ;;
10075       *)
10076         lt_prog_compiler_pic='+Z'
10077         ;;
10078       esac
10079       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10080       lt_prog_compiler_static='${wl}-a ${wl}archive'
10081       ;;
10082
10083     irix5* | irix6* | nonstopux*)
10084       lt_prog_compiler_wl='-Wl,'
10085       # PIC (with -KPIC) is the default.
10086       lt_prog_compiler_static='-non_shared'
10087       ;;
10088
10089     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10090       case $cc_basename in
10091       # old Intel for x86_64 which still supported -KPIC.
10092       ecc*)
10093         lt_prog_compiler_wl='-Wl,'
10094         lt_prog_compiler_pic='-KPIC'
10095         lt_prog_compiler_static='-static'
10096         ;;
10097       # icc used to be incompatible with GCC.
10098       # ICC 10 doesn't accept -KPIC any more.
10099       icc* | ifort*)
10100         lt_prog_compiler_wl='-Wl,'
10101         lt_prog_compiler_pic='-fPIC'
10102         lt_prog_compiler_static='-static'
10103         ;;
10104       # Lahey Fortran 8.1.
10105       lf95*)
10106         lt_prog_compiler_wl='-Wl,'
10107         lt_prog_compiler_pic='--shared'
10108         lt_prog_compiler_static='--static'
10109         ;;
10110       nagfor*)
10111         # NAG Fortran compiler
10112         lt_prog_compiler_wl='-Wl,-Wl,,'
10113         lt_prog_compiler_pic='-PIC'
10114         lt_prog_compiler_static='-Bstatic'
10115         ;;
10116       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10117         # Portland Group compilers (*not* the Pentium gcc compiler,
10118         # which looks to be a dead project)
10119         lt_prog_compiler_wl='-Wl,'
10120         lt_prog_compiler_pic='-fpic'
10121         lt_prog_compiler_static='-Bstatic'
10122         ;;
10123       ccc*)
10124         lt_prog_compiler_wl='-Wl,'
10125         # All Alpha code is PIC.
10126         lt_prog_compiler_static='-non_shared'
10127         ;;
10128       xl* | bgxl* | bgf* | mpixl*)
10129         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10130         lt_prog_compiler_wl='-Wl,'
10131         lt_prog_compiler_pic='-qpic'
10132         lt_prog_compiler_static='-qstaticlink'
10133         ;;
10134       *)
10135         case `$CC -V 2>&1 | sed 5q` in
10136         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10137           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10138           lt_prog_compiler_pic='-KPIC'
10139           lt_prog_compiler_static='-Bstatic'
10140           lt_prog_compiler_wl=''
10141           ;;
10142         *Sun\ F* | *Sun*Fortran*)
10143           lt_prog_compiler_pic='-KPIC'
10144           lt_prog_compiler_static='-Bstatic'
10145           lt_prog_compiler_wl='-Qoption ld '
10146           ;;
10147         *Sun\ C*)
10148           # Sun C 5.9
10149           lt_prog_compiler_pic='-KPIC'
10150           lt_prog_compiler_static='-Bstatic'
10151           lt_prog_compiler_wl='-Wl,'
10152           ;;
10153         *Intel*\ [CF]*Compiler*)
10154           lt_prog_compiler_wl='-Wl,'
10155           lt_prog_compiler_pic='-fPIC'
10156           lt_prog_compiler_static='-static'
10157           ;;
10158         *Portland\ Group*)
10159           lt_prog_compiler_wl='-Wl,'
10160           lt_prog_compiler_pic='-fpic'
10161           lt_prog_compiler_static='-Bstatic'
10162           ;;
10163         esac
10164         ;;
10165       esac
10166       ;;
10167
10168     newsos6)
10169       lt_prog_compiler_pic='-KPIC'
10170       lt_prog_compiler_static='-Bstatic'
10171       ;;
10172
10173     *nto* | *qnx*)
10174       # QNX uses GNU C++, but need to define -shared option too, otherwise
10175       # it will coredump.
10176       lt_prog_compiler_pic='-fPIC -shared'
10177       ;;
10178
10179     osf3* | osf4* | osf5*)
10180       lt_prog_compiler_wl='-Wl,'
10181       # All OSF/1 code is PIC.
10182       lt_prog_compiler_static='-non_shared'
10183       ;;
10184
10185     rdos*)
10186       lt_prog_compiler_static='-non_shared'
10187       ;;
10188
10189     solaris*)
10190       lt_prog_compiler_pic='-KPIC'
10191       lt_prog_compiler_static='-Bstatic'
10192       case $cc_basename in
10193       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10194         lt_prog_compiler_wl='-Qoption ld ';;
10195       *)
10196         lt_prog_compiler_wl='-Wl,';;
10197       esac
10198       ;;
10199
10200     sunos4*)
10201       lt_prog_compiler_wl='-Qoption ld '
10202       lt_prog_compiler_pic='-PIC'
10203       lt_prog_compiler_static='-Bstatic'
10204       ;;
10205
10206     sysv4 | sysv4.2uw2* | sysv4.3*)
10207       lt_prog_compiler_wl='-Wl,'
10208       lt_prog_compiler_pic='-KPIC'
10209       lt_prog_compiler_static='-Bstatic'
10210       ;;
10211
10212     sysv4*MP*)
10213       if test -d /usr/nec ;then
10214         lt_prog_compiler_pic='-Kconform_pic'
10215         lt_prog_compiler_static='-Bstatic'
10216       fi
10217       ;;
10218
10219     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10220       lt_prog_compiler_wl='-Wl,'
10221       lt_prog_compiler_pic='-KPIC'
10222       lt_prog_compiler_static='-Bstatic'
10223       ;;
10224
10225     unicos*)
10226       lt_prog_compiler_wl='-Wl,'
10227       lt_prog_compiler_can_build_shared=no
10228       ;;
10229
10230     uts4*)
10231       lt_prog_compiler_pic='-pic'
10232       lt_prog_compiler_static='-Bstatic'
10233       ;;
10234
10235     *)
10236       lt_prog_compiler_can_build_shared=no
10237       ;;
10238     esac
10239   fi
10240
10241 case $host_os in
10242   # For platforms which do not support PIC, -DPIC is meaningless:
10243   *djgpp*)
10244     lt_prog_compiler_pic=
10245     ;;
10246   *)
10247     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10248     ;;
10249 esac
10250
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10253 if ${lt_cv_prog_compiler_pic+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10257 fi
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10259 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10260 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10261
10262 #
10263 # Check to make sure the PIC flag actually works.
10264 #
10265 if test -n "$lt_prog_compiler_pic"; then
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10268 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10269   $as_echo_n "(cached) " >&6
10270 else
10271   lt_cv_prog_compiler_pic_works=no
10272    ac_outfile=conftest.$ac_objext
10273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10274    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10275    # Insert the option either (1) after the last *FLAGS variable, or
10276    # (2) before a word containing "conftest.", or (3) at the end.
10277    # Note that $ac_compile itself does not contain backslashes and begins
10278    # with a dollar sign (not a hyphen), so the echo should work correctly.
10279    # The option is referenced via a variable to avoid confusing sed.
10280    lt_compile=`echo "$ac_compile" | $SED \
10281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10283    -e 's:$: $lt_compiler_flag:'`
10284    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10285    (eval "$lt_compile" 2>conftest.err)
10286    ac_status=$?
10287    cat conftest.err >&5
10288    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289    if (exit $ac_status) && test -s "$ac_outfile"; then
10290      # The compiler can only warn and ignore the option if not recognized
10291      # So say no if there are warnings other than the usual output.
10292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10293      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10294      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10295        lt_cv_prog_compiler_pic_works=yes
10296      fi
10297    fi
10298    $RM conftest*
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10302 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10303
10304 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10305     case $lt_prog_compiler_pic in
10306      "" | " "*) ;;
10307      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10308      esac
10309 else
10310     lt_prog_compiler_pic=
10311      lt_prog_compiler_can_build_shared=no
10312 fi
10313
10314 fi
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326 #
10327 # Check to make sure the static flag actually works.
10328 #
10329 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10332 if ${lt_cv_prog_compiler_static_works+:} false; then :
10333   $as_echo_n "(cached) " >&6
10334 else
10335   lt_cv_prog_compiler_static_works=no
10336    save_LDFLAGS="$LDFLAGS"
10337    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10338    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10339    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10340      # The linker can only warn and ignore the option if not recognized
10341      # So say no if there are warnings
10342      if test -s conftest.err; then
10343        # Append any errors to the config.log.
10344        cat conftest.err 1>&5
10345        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10346        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10347        if diff conftest.exp conftest.er2 >/dev/null; then
10348          lt_cv_prog_compiler_static_works=yes
10349        fi
10350      else
10351        lt_cv_prog_compiler_static_works=yes
10352      fi
10353    fi
10354    $RM -r conftest*
10355    LDFLAGS="$save_LDFLAGS"
10356
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10359 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10360
10361 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10362     :
10363 else
10364     lt_prog_compiler_static=
10365 fi
10366
10367
10368
10369
10370
10371
10372
10373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10375 if ${lt_cv_prog_compiler_c_o+:} false; then :
10376   $as_echo_n "(cached) " >&6
10377 else
10378   lt_cv_prog_compiler_c_o=no
10379    $RM -r conftest 2>/dev/null
10380    mkdir conftest
10381    cd conftest
10382    mkdir out
10383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10384
10385    lt_compiler_flag="-o out/conftest2.$ac_objext"
10386    # Insert the option either (1) after the last *FLAGS variable, or
10387    # (2) before a word containing "conftest.", or (3) at the end.
10388    # Note that $ac_compile itself does not contain backslashes and begins
10389    # with a dollar sign (not a hyphen), so the echo should work correctly.
10390    lt_compile=`echo "$ac_compile" | $SED \
10391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10393    -e 's:$: $lt_compiler_flag:'`
10394    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10395    (eval "$lt_compile" 2>out/conftest.err)
10396    ac_status=$?
10397    cat out/conftest.err >&5
10398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10400    then
10401      # The compiler can only warn and ignore the option if not recognized
10402      # So say no if there are warnings
10403      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10404      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10405      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10406        lt_cv_prog_compiler_c_o=yes
10407      fi
10408    fi
10409    chmod u+w . 2>&5
10410    $RM conftest*
10411    # SGI C++ compiler will create directory out/ii_files/ for
10412    # template instantiation
10413    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10414    $RM out/* && rmdir out
10415    cd ..
10416    $RM -r conftest
10417    $RM conftest*
10418
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10421 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10422
10423
10424
10425
10426
10427
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10429 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10430 if ${lt_cv_prog_compiler_c_o+:} false; then :
10431   $as_echo_n "(cached) " >&6
10432 else
10433   lt_cv_prog_compiler_c_o=no
10434    $RM -r conftest 2>/dev/null
10435    mkdir conftest
10436    cd conftest
10437    mkdir out
10438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10439
10440    lt_compiler_flag="-o out/conftest2.$ac_objext"
10441    # Insert the option either (1) after the last *FLAGS variable, or
10442    # (2) before a word containing "conftest.", or (3) at the end.
10443    # Note that $ac_compile itself does not contain backslashes and begins
10444    # with a dollar sign (not a hyphen), so the echo should work correctly.
10445    lt_compile=`echo "$ac_compile" | $SED \
10446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10448    -e 's:$: $lt_compiler_flag:'`
10449    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10450    (eval "$lt_compile" 2>out/conftest.err)
10451    ac_status=$?
10452    cat out/conftest.err >&5
10453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10455    then
10456      # The compiler can only warn and ignore the option if not recognized
10457      # So say no if there are warnings
10458      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10461        lt_cv_prog_compiler_c_o=yes
10462      fi
10463    fi
10464    chmod u+w . 2>&5
10465    $RM conftest*
10466    # SGI C++ compiler will create directory out/ii_files/ for
10467    # template instantiation
10468    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10469    $RM out/* && rmdir out
10470    cd ..
10471    $RM -r conftest
10472    $RM conftest*
10473
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10476 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10477
10478
10479
10480
10481 hard_links="nottested"
10482 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10483   # do not overwrite the value of need_locks provided by the user
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10485 $as_echo_n "checking if we can lock with hard links... " >&6; }
10486   hard_links=yes
10487   $RM conftest*
10488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10489   touch conftest.a
10490   ln conftest.a conftest.b 2>&5 || hard_links=no
10491   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10493 $as_echo "$hard_links" >&6; }
10494   if test "$hard_links" = no; then
10495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10496 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10497     need_locks=warn
10498   fi
10499 else
10500   need_locks=no
10501 fi
10502
10503
10504
10505
10506
10507
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10510
10511   runpath_var=
10512   allow_undefined_flag=
10513   always_export_symbols=no
10514   archive_cmds=
10515   archive_expsym_cmds=
10516   compiler_needs_object=no
10517   enable_shared_with_static_runtimes=no
10518   export_dynamic_flag_spec=
10519   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10520   hardcode_automatic=no
10521   hardcode_direct=no
10522   hardcode_direct_absolute=no
10523   hardcode_libdir_flag_spec=
10524   hardcode_libdir_separator=
10525   hardcode_minus_L=no
10526   hardcode_shlibpath_var=unsupported
10527   inherit_rpath=no
10528   link_all_deplibs=unknown
10529   module_cmds=
10530   module_expsym_cmds=
10531   old_archive_from_new_cmds=
10532   old_archive_from_expsyms_cmds=
10533   thread_safe_flag_spec=
10534   whole_archive_flag_spec=
10535   # include_expsyms should be a list of space-separated symbols to be *always*
10536   # included in the symbol list
10537   include_expsyms=
10538   # exclude_expsyms can be an extended regexp of symbols to exclude
10539   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10540   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10541   # as well as any symbol that contains `d'.
10542   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10543   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10544   # platforms (ab)use it in PIC code, but their linkers get confused if
10545   # the symbol is explicitly referenced.  Since portable code cannot
10546   # rely on this symbol name, it's probably fine to never include it in
10547   # preloaded symbol tables.
10548   # Exclude shared library initialization/finalization symbols.
10549   extract_expsyms_cmds=
10550
10551   case $host_os in
10552   cygwin* | mingw* | pw32* | cegcc*)
10553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10554     # When not using gcc, we currently assume that we are using
10555     # Microsoft Visual C++.
10556     if test "$GCC" != yes; then
10557       with_gnu_ld=no
10558     fi
10559     ;;
10560   interix*)
10561     # we just hope/assume this is gcc and not c89 (= MSVC++)
10562     with_gnu_ld=yes
10563     ;;
10564   openbsd*)
10565     with_gnu_ld=no
10566     ;;
10567   linux* | k*bsd*-gnu | gnu*)
10568     link_all_deplibs=no
10569     ;;
10570   esac
10571
10572   ld_shlibs=yes
10573
10574   # On some targets, GNU ld is compatible enough with the native linker
10575   # that we're better off using the native interface for both.
10576   lt_use_gnu_ld_interface=no
10577   if test "$with_gnu_ld" = yes; then
10578     case $host_os in
10579       aix*)
10580         # The AIX port of GNU ld has always aspired to compatibility
10581         # with the native linker.  However, as the warning in the GNU ld
10582         # block says, versions before 2.19.5* couldn't really create working
10583         # shared libraries, regardless of the interface used.
10584         case `$LD -v 2>&1` in
10585           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10586           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10587           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10588           *)
10589             lt_use_gnu_ld_interface=yes
10590             ;;
10591         esac
10592         ;;
10593       *)
10594         lt_use_gnu_ld_interface=yes
10595         ;;
10596     esac
10597   fi
10598
10599   if test "$lt_use_gnu_ld_interface" = yes; then
10600     # If archive_cmds runs LD, not CC, wlarc should be empty
10601     wlarc='${wl}'
10602
10603     # Set some defaults for GNU ld with shared library support. These
10604     # are reset later if shared libraries are not supported. Putting them
10605     # here allows them to be overridden if necessary.
10606     runpath_var=LD_RUN_PATH
10607     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608     export_dynamic_flag_spec='${wl}--export-dynamic'
10609     # ancient GNU ld didn't support --whole-archive et. al.
10610     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10611       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10612     else
10613       whole_archive_flag_spec=
10614     fi
10615     supports_anon_versioning=no
10616     case `$LD -v 2>&1` in
10617       *GNU\ gold*) supports_anon_versioning=yes ;;
10618       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10619       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10620       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10621       *\ 2.11.*) ;; # other 2.11 versions
10622       *) supports_anon_versioning=yes ;;
10623     esac
10624
10625     # See if GNU ld supports shared libraries.
10626     case $host_os in
10627     aix[3-9]*)
10628       # On AIX/PPC, the GNU linker is very broken
10629       if test "$host_cpu" != ia64; then
10630         ld_shlibs=no
10631         cat <<_LT_EOF 1>&2
10632
10633 *** Warning: the GNU linker, at least up to release 2.19, is reported
10634 *** to be unable to reliably create shared libraries on AIX.
10635 *** Therefore, libtool is disabling shared libraries support.  If you
10636 *** really care for shared libraries, you may want to install binutils
10637 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10638 *** You will then need to restart the configuration process.
10639
10640 _LT_EOF
10641       fi
10642       ;;
10643
10644     amigaos*)
10645       case $host_cpu in
10646       powerpc)
10647             # see comment about AmigaOS4 .so support
10648             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649             archive_expsym_cmds=''
10650         ;;
10651       m68k)
10652             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)'
10653             hardcode_libdir_flag_spec='-L$libdir'
10654             hardcode_minus_L=yes
10655         ;;
10656       esac
10657       ;;
10658
10659     beos*)
10660       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10661         allow_undefined_flag=unsupported
10662         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10663         # support --undefined.  This deserves some investigation.  FIXME
10664         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665       else
10666         ld_shlibs=no
10667       fi
10668       ;;
10669
10670     cygwin* | mingw* | pw32* | cegcc*)
10671       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10672       # as there is no search path for DLLs.
10673       hardcode_libdir_flag_spec='-L$libdir'
10674       export_dynamic_flag_spec='${wl}--export-all-symbols'
10675       allow_undefined_flag=unsupported
10676       always_export_symbols=no
10677       enable_shared_with_static_runtimes=yes
10678       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'
10679       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10680
10681       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10682         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10683         # If the export-symbols file already is a .def file (1st line
10684         # is EXPORTS), use it as is; otherwise, prepend...
10685         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10686           cp $export_symbols $output_objdir/$soname.def;
10687         else
10688           echo EXPORTS > $output_objdir/$soname.def;
10689           cat $export_symbols >> $output_objdir/$soname.def;
10690         fi~
10691         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10692       else
10693         ld_shlibs=no
10694       fi
10695       ;;
10696
10697     haiku*)
10698       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699       link_all_deplibs=yes
10700       ;;
10701
10702     interix[3-9]*)
10703       hardcode_direct=no
10704       hardcode_shlibpath_var=no
10705       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10706       export_dynamic_flag_spec='${wl}-E'
10707       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10708       # Instead, shared libraries are loaded at an image base (0x10000000 by
10709       # default) and relocated if they conflict, which is a slow very memory
10710       # consuming and fragmenting process.  To avoid this, we pick a random,
10711       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10712       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10713       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10714       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'
10715       ;;
10716
10717     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10718       tmp_diet=no
10719       if test "$host_os" = linux-dietlibc; then
10720         case $cc_basename in
10721           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10722         esac
10723       fi
10724       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10725          && test "$tmp_diet" = no
10726       then
10727         tmp_addflag=' $pic_flag'
10728         tmp_sharedflag='-shared'
10729         case $cc_basename,$host_cpu in
10730         pgcc*)                          # Portland Group C compiler
10731           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'
10732           tmp_addflag=' $pic_flag'
10733           ;;
10734         pgf77* | pgf90* | pgf95* | pgfortran*)
10735                                         # Portland Group f77 and f90 compilers
10736           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'
10737           tmp_addflag=' $pic_flag -Mnomain' ;;
10738         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10739           tmp_addflag=' -i_dynamic' ;;
10740         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10741           tmp_addflag=' -i_dynamic -nofor_main' ;;
10742         ifc* | ifort*)                  # Intel Fortran compiler
10743           tmp_addflag=' -nofor_main' ;;
10744         lf95*)                          # Lahey Fortran 8.1
10745           whole_archive_flag_spec=
10746           tmp_sharedflag='--shared' ;;
10747         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10748           tmp_sharedflag='-qmkshrobj'
10749           tmp_addflag= ;;
10750         nvcc*)  # Cuda Compiler Driver 2.2
10751           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'
10752           compiler_needs_object=yes
10753           ;;
10754         esac
10755         case `$CC -V 2>&1 | sed 5q` in
10756         *Sun\ C*)                       # Sun C 5.9
10757           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'
10758           compiler_needs_object=yes
10759           tmp_sharedflag='-G' ;;
10760         *Sun\ F*)                       # Sun Fortran 8.3
10761           tmp_sharedflag='-G' ;;
10762         esac
10763         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10764
10765         if test "x$supports_anon_versioning" = xyes; then
10766           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10767             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10768             echo "local: *; };" >> $output_objdir/$libname.ver~
10769             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10770         fi
10771
10772         case $cc_basename in
10773         xlf* | bgf* | bgxlf* | mpixlf*)
10774           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10775           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10776           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10777           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10778           if test "x$supports_anon_versioning" = xyes; then
10779             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10780               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10781               echo "local: *; };" >> $output_objdir/$libname.ver~
10782               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10783           fi
10784           ;;
10785         esac
10786       else
10787         ld_shlibs=no
10788       fi
10789       ;;
10790
10791     netbsd* | netbsdelf*-gnu)
10792       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10793         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10794         wlarc=
10795       else
10796         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10798       fi
10799       ;;
10800
10801     solaris*)
10802       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10803         ld_shlibs=no
10804         cat <<_LT_EOF 1>&2
10805
10806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10807 *** create shared libraries on Solaris systems.  Therefore, libtool
10808 *** is disabling shared libraries support.  We urge you to upgrade GNU
10809 *** binutils to release 2.9.1 or newer.  Another option is to modify
10810 *** your PATH or compiler configuration so that the native linker is
10811 *** used, and then restart.
10812
10813 _LT_EOF
10814       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10815         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10816         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10817       else
10818         ld_shlibs=no
10819       fi
10820       ;;
10821
10822     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10823       case `$LD -v 2>&1` in
10824         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10825         ld_shlibs=no
10826         cat <<_LT_EOF 1>&2
10827
10828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10829 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10830 *** is disabling shared libraries support.  We urge you to upgrade GNU
10831 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10832 *** your PATH or compiler configuration so that the native linker is
10833 *** used, and then restart.
10834
10835 _LT_EOF
10836         ;;
10837         *)
10838           # For security reasons, it is highly recommended that you always
10839           # use absolute paths for naming shared libraries, and exclude the
10840           # DT_RUNPATH tag from executables and libraries.  But doing so
10841           # requires that you compile everything twice, which is a pain.
10842           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10843             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10845             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10846           else
10847             ld_shlibs=no
10848           fi
10849         ;;
10850       esac
10851       ;;
10852
10853     sunos4*)
10854       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10855       wlarc=
10856       hardcode_direct=yes
10857       hardcode_shlibpath_var=no
10858       ;;
10859
10860     *)
10861       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10862         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10864       else
10865         ld_shlibs=no
10866       fi
10867       ;;
10868     esac
10869
10870     if test "$ld_shlibs" = no; then
10871       runpath_var=
10872       hardcode_libdir_flag_spec=
10873       export_dynamic_flag_spec=
10874       whole_archive_flag_spec=
10875     fi
10876   else
10877     # PORTME fill in a description of your system's linker (not GNU ld)
10878     case $host_os in
10879     aix3*)
10880       allow_undefined_flag=unsupported
10881       always_export_symbols=yes
10882       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'
10883       # Note: this linker hardcodes the directories in LIBPATH if there
10884       # are no directories specified by -L.
10885       hardcode_minus_L=yes
10886       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10887         # Neither direct hardcoding nor static linking is supported with a
10888         # broken collect2.
10889         hardcode_direct=unsupported
10890       fi
10891       ;;
10892
10893     aix[4-9]*)
10894       if test "$host_cpu" = ia64; then
10895         # On IA64, the linker does run time linking by default, so we don't
10896         # have to do anything special.
10897         aix_use_runtimelinking=no
10898         exp_sym_flag='-Bexport'
10899         no_entry_flag=""
10900       else
10901         # If we're using GNU nm, then we don't want the "-C" option.
10902         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10903         # Also, AIX nm treats weak defined symbols like other global
10904         # defined symbols, whereas GNU nm marks them as "W".
10905         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10906           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'
10907         else
10908           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'
10909         fi
10910         aix_use_runtimelinking=no
10911
10912         # Test if we are trying to use run time linking or normal
10913         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10914         # need to do runtime linking.
10915         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10916           for ld_flag in $LDFLAGS; do
10917           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10918             aix_use_runtimelinking=yes
10919             break
10920           fi
10921           done
10922           ;;
10923         esac
10924
10925         exp_sym_flag='-bexport'
10926         no_entry_flag='-bnoentry'
10927       fi
10928
10929       # When large executables or shared objects are built, AIX ld can
10930       # have problems creating the table of contents.  If linking a library
10931       # or program results in "error TOC overflow" add -mminimal-toc to
10932       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10933       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10934
10935       archive_cmds=''
10936       hardcode_direct=yes
10937       hardcode_direct_absolute=yes
10938       hardcode_libdir_separator=':'
10939       link_all_deplibs=yes
10940       file_list_spec='${wl}-f,'
10941
10942       if test "$GCC" = yes; then
10943         case $host_os in aix4.[012]|aix4.[012].*)
10944         # We only want to do this on AIX 4.2 and lower, the check
10945         # below for broken collect2 doesn't work under 4.3+
10946           collect2name=`${CC} -print-prog-name=collect2`
10947           if test -f "$collect2name" &&
10948            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10949           then
10950           # We have reworked collect2
10951           :
10952           else
10953           # We have old collect2
10954           hardcode_direct=unsupported
10955           # It fails to find uninstalled libraries when the uninstalled
10956           # path is not listed in the libpath.  Setting hardcode_minus_L
10957           # to unsupported forces relinking
10958           hardcode_minus_L=yes
10959           hardcode_libdir_flag_spec='-L$libdir'
10960           hardcode_libdir_separator=
10961           fi
10962           ;;
10963         esac
10964         shared_flag='-shared'
10965         if test "$aix_use_runtimelinking" = yes; then
10966           shared_flag="$shared_flag "'${wl}-G'
10967         fi
10968         link_all_deplibs=no
10969       else
10970         # not using gcc
10971         if test "$host_cpu" = ia64; then
10972         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10973         # chokes on -Wl,-G. The following line is correct:
10974           shared_flag='-G'
10975         else
10976           if test "$aix_use_runtimelinking" = yes; then
10977             shared_flag='${wl}-G'
10978           else
10979             shared_flag='${wl}-bM:SRE'
10980           fi
10981         fi
10982       fi
10983
10984       export_dynamic_flag_spec='${wl}-bexpall'
10985       # It seems that -bexpall does not export symbols beginning with
10986       # underscore (_), so it is better to generate a list of symbols to export.
10987       always_export_symbols=yes
10988       if test "$aix_use_runtimelinking" = yes; then
10989         # Warning - without using the other runtime loading flags (-brtl),
10990         # -berok will link without error, but may produce a broken library.
10991         allow_undefined_flag='-berok'
10992         # Determine the default libpath from the value encoded in an
10993         # empty executable.
10994         if test "${lt_cv_aix_libpath+set}" = set; then
10995   aix_libpath=$lt_cv_aix_libpath
10996 else
10997   if ${lt_cv_aix_libpath_+:} false; then :
10998   $as_echo_n "(cached) " >&6
10999 else
11000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h.  */
11002
11003 int
11004 main ()
11005 {
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 if ac_fn_c_try_link "$LINENO"; then :
11012
11013   lt_aix_libpath_sed='
11014       /Import File Strings/,/^$/ {
11015           /^0/ {
11016               s/^0  *\([^ ]*\) *$/\1/
11017               p
11018           }
11019       }'
11020   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11021   # Check for a 64-bit object if we didn't find anything.
11022   if test -z "$lt_cv_aix_libpath_"; then
11023     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11024   fi
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027     conftest$ac_exeext conftest.$ac_ext
11028   if test -z "$lt_cv_aix_libpath_"; then
11029     lt_cv_aix_libpath_="/usr/lib:/lib"
11030   fi
11031
11032 fi
11033
11034   aix_libpath=$lt_cv_aix_libpath_
11035 fi
11036
11037         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11038         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"
11039       else
11040         if test "$host_cpu" = ia64; then
11041           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11042           allow_undefined_flag="-z nodefs"
11043           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"
11044         else
11045          # Determine the default libpath from the value encoded in an
11046          # empty executable.
11047          if test "${lt_cv_aix_libpath+set}" = set; then
11048   aix_libpath=$lt_cv_aix_libpath
11049 else
11050   if ${lt_cv_aix_libpath_+:} false; then :
11051   $as_echo_n "(cached) " >&6
11052 else
11053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h.  */
11055
11056 int
11057 main ()
11058 {
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065
11066   lt_aix_libpath_sed='
11067       /Import File Strings/,/^$/ {
11068           /^0/ {
11069               s/^0  *\([^ ]*\) *$/\1/
11070               p
11071           }
11072       }'
11073   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11074   # Check for a 64-bit object if we didn't find anything.
11075   if test -z "$lt_cv_aix_libpath_"; then
11076     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11077   fi
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext \
11080     conftest$ac_exeext conftest.$ac_ext
11081   if test -z "$lt_cv_aix_libpath_"; then
11082     lt_cv_aix_libpath_="/usr/lib:/lib"
11083   fi
11084
11085 fi
11086
11087   aix_libpath=$lt_cv_aix_libpath_
11088 fi
11089
11090          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11091           # Warning - without using the other run time loading flags,
11092           # -berok will link without error, but may produce a broken library.
11093           no_undefined_flag=' ${wl}-bernotok'
11094           allow_undefined_flag=' ${wl}-berok'
11095           if test "$with_gnu_ld" = yes; then
11096             # We only use this code for GNU lds that support --whole-archive.
11097             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11098           else
11099             # Exported symbols can be pulled into shared objects from archives
11100             whole_archive_flag_spec='$convenience'
11101           fi
11102           archive_cmds_need_lc=yes
11103           # This is similar to how AIX traditionally builds its shared libraries.
11104           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'
11105         fi
11106       fi
11107       ;;
11108
11109     amigaos*)
11110       case $host_cpu in
11111       powerpc)
11112             # see comment about AmigaOS4 .so support
11113             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114             archive_expsym_cmds=''
11115         ;;
11116       m68k)
11117             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)'
11118             hardcode_libdir_flag_spec='-L$libdir'
11119             hardcode_minus_L=yes
11120         ;;
11121       esac
11122       ;;
11123
11124     bsdi[45]*)
11125       export_dynamic_flag_spec=-rdynamic
11126       ;;
11127
11128     cygwin* | mingw* | pw32* | cegcc*)
11129       # When not using gcc, we currently assume that we are using
11130       # Microsoft Visual C++.
11131       # hardcode_libdir_flag_spec is actually meaningless, as there is
11132       # no search path for DLLs.
11133       case $cc_basename in
11134       cl*)
11135         # Native MSVC
11136         hardcode_libdir_flag_spec=' '
11137         allow_undefined_flag=unsupported
11138         always_export_symbols=yes
11139         file_list_spec='@'
11140         # Tell ltmain to make .lib files, not .a files.
11141         libext=lib
11142         # Tell ltmain to make .dll files, not .so files.
11143         shrext_cmds=".dll"
11144         # FIXME: Setting linknames here is a bad hack.
11145         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11146         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11147             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11148           else
11149             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11150           fi~
11151           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11152           linknames='
11153         # The linker will not automatically build a static lib if we build a DLL.
11154         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11155         enable_shared_with_static_runtimes=yes
11156         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11157         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11158         # Don't use ranlib
11159         old_postinstall_cmds='chmod 644 $oldlib'
11160         postlink_cmds='lt_outputfile="@OUTPUT@"~
11161           lt_tool_outputfile="@TOOL_OUTPUT@"~
11162           case $lt_outputfile in
11163             *.exe|*.EXE) ;;
11164             *)
11165               lt_outputfile="$lt_outputfile.exe"
11166               lt_tool_outputfile="$lt_tool_outputfile.exe"
11167               ;;
11168           esac~
11169           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11170             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11171             $RM "$lt_outputfile.manifest";
11172           fi'
11173         ;;
11174       *)
11175         # Assume MSVC wrapper
11176         hardcode_libdir_flag_spec=' '
11177         allow_undefined_flag=unsupported
11178         # Tell ltmain to make .lib files, not .a files.
11179         libext=lib
11180         # Tell ltmain to make .dll files, not .so files.
11181         shrext_cmds=".dll"
11182         # FIXME: Setting linknames here is a bad hack.
11183         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11184         # The linker will automatically build a .lib file if we build a DLL.
11185         old_archive_from_new_cmds='true'
11186         # FIXME: Should let the user specify the lib program.
11187         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11188         enable_shared_with_static_runtimes=yes
11189         ;;
11190       esac
11191       ;;
11192
11193     darwin* | rhapsody*)
11194
11195
11196   archive_cmds_need_lc=no
11197   hardcode_direct=no
11198   hardcode_automatic=yes
11199   hardcode_shlibpath_var=unsupported
11200   if test "$lt_cv_ld_force_load" = "yes"; then
11201     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\"`'
11202
11203   else
11204     whole_archive_flag_spec=''
11205   fi
11206   link_all_deplibs=yes
11207   allow_undefined_flag="$_lt_dar_allow_undefined"
11208   case $cc_basename in
11209      ifort*) _lt_dar_can_shared=yes ;;
11210      *) _lt_dar_can_shared=$GCC ;;
11211   esac
11212   if test "$_lt_dar_can_shared" = "yes"; then
11213     output_verbose_link_cmd=func_echo_all
11214     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11215     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11216     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}"
11217     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}"
11218
11219   else
11220   ld_shlibs=no
11221   fi
11222
11223       ;;
11224
11225     dgux*)
11226       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227       hardcode_libdir_flag_spec='-L$libdir'
11228       hardcode_shlibpath_var=no
11229       ;;
11230
11231     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11232     # support.  Future versions do this automatically, but an explicit c++rt0.o
11233     # does not break anything, and helps significantly (at the cost of a little
11234     # extra space).
11235     freebsd2.2*)
11236       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11237       hardcode_libdir_flag_spec='-R$libdir'
11238       hardcode_direct=yes
11239       hardcode_shlibpath_var=no
11240       ;;
11241
11242     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11243     freebsd2.*)
11244       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245       hardcode_direct=yes
11246       hardcode_minus_L=yes
11247       hardcode_shlibpath_var=no
11248       ;;
11249
11250     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11251     freebsd* | dragonfly*)
11252       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11253       hardcode_libdir_flag_spec='-R$libdir'
11254       hardcode_direct=yes
11255       hardcode_shlibpath_var=no
11256       ;;
11257
11258     hpux9*)
11259       if test "$GCC" = yes; then
11260         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'
11261       else
11262         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'
11263       fi
11264       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11265       hardcode_libdir_separator=:
11266       hardcode_direct=yes
11267
11268       # hardcode_minus_L: Not really in the search PATH,
11269       # but as the default location of the library.
11270       hardcode_minus_L=yes
11271       export_dynamic_flag_spec='${wl}-E'
11272       ;;
11273
11274     hpux10*)
11275       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11276         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11277       else
11278         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11279       fi
11280       if test "$with_gnu_ld" = no; then
11281         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11282         hardcode_libdir_separator=:
11283         hardcode_direct=yes
11284         hardcode_direct_absolute=yes
11285         export_dynamic_flag_spec='${wl}-E'
11286         # hardcode_minus_L: Not really in the search PATH,
11287         # but as the default location of the library.
11288         hardcode_minus_L=yes
11289       fi
11290       ;;
11291
11292     hpux11*)
11293       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11294         case $host_cpu in
11295         hppa*64*)
11296           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11297           ;;
11298         ia64*)
11299           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11300           ;;
11301         *)
11302           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11303           ;;
11304         esac
11305       else
11306         case $host_cpu in
11307         hppa*64*)
11308           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11309           ;;
11310         ia64*)
11311           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11312           ;;
11313         *)
11314
11315           # Older versions of the 11.00 compiler do not understand -b yet
11316           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11317           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11318 $as_echo_n "checking if $CC understands -b... " >&6; }
11319 if ${lt_cv_prog_compiler__b+:} false; then :
11320   $as_echo_n "(cached) " >&6
11321 else
11322   lt_cv_prog_compiler__b=no
11323    save_LDFLAGS="$LDFLAGS"
11324    LDFLAGS="$LDFLAGS -b"
11325    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11326    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11327      # The linker can only warn and ignore the option if not recognized
11328      # So say no if there are warnings
11329      if test -s conftest.err; then
11330        # Append any errors to the config.log.
11331        cat conftest.err 1>&5
11332        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11333        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11334        if diff conftest.exp conftest.er2 >/dev/null; then
11335          lt_cv_prog_compiler__b=yes
11336        fi
11337      else
11338        lt_cv_prog_compiler__b=yes
11339      fi
11340    fi
11341    $RM -r conftest*
11342    LDFLAGS="$save_LDFLAGS"
11343
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11346 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11347
11348 if test x"$lt_cv_prog_compiler__b" = xyes; then
11349     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11350 else
11351     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11352 fi
11353
11354           ;;
11355         esac
11356       fi
11357       if test "$with_gnu_ld" = no; then
11358         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11359         hardcode_libdir_separator=:
11360
11361         case $host_cpu in
11362         hppa*64*|ia64*)
11363           hardcode_direct=no
11364           hardcode_shlibpath_var=no
11365           ;;
11366         *)
11367           hardcode_direct=yes
11368           hardcode_direct_absolute=yes
11369           export_dynamic_flag_spec='${wl}-E'
11370
11371           # hardcode_minus_L: Not really in the search PATH,
11372           # but as the default location of the library.
11373           hardcode_minus_L=yes
11374           ;;
11375         esac
11376       fi
11377       ;;
11378
11379     irix5* | irix6* | nonstopux*)
11380       if test "$GCC" = yes; then
11381         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'
11382         # Try to use the -exported_symbol ld option, if it does not
11383         # work, assume that -exports_file does not work either and
11384         # implicitly export all symbols.
11385         # This should be the same for all languages, so no per-tag cache variable.
11386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11387 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11388 if ${lt_cv_irix_exported_symbol+:} false; then :
11389   $as_echo_n "(cached) " >&6
11390 else
11391   save_LDFLAGS="$LDFLAGS"
11392            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11393            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h.  */
11395 int foo (void) { return 0; }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398   lt_cv_irix_exported_symbol=yes
11399 else
11400   lt_cv_irix_exported_symbol=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403     conftest$ac_exeext conftest.$ac_ext
11404            LDFLAGS="$save_LDFLAGS"
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11407 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11408         if test "$lt_cv_irix_exported_symbol" = yes; then
11409           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'
11410         fi
11411       else
11412         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'
11413         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'
11414       fi
11415       archive_cmds_need_lc='no'
11416       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11417       hardcode_libdir_separator=:
11418       inherit_rpath=yes
11419       link_all_deplibs=yes
11420       ;;
11421
11422     netbsd* | netbsdelf*-gnu)
11423       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11425       else
11426         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11427       fi
11428       hardcode_libdir_flag_spec='-R$libdir'
11429       hardcode_direct=yes
11430       hardcode_shlibpath_var=no
11431       ;;
11432
11433     newsos6)
11434       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11435       hardcode_direct=yes
11436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11437       hardcode_libdir_separator=:
11438       hardcode_shlibpath_var=no
11439       ;;
11440
11441     *nto* | *qnx*)
11442       ;;
11443
11444     openbsd*)
11445       if test -f /usr/libexec/ld.so; then
11446         hardcode_direct=yes
11447         hardcode_shlibpath_var=no
11448         hardcode_direct_absolute=yes
11449         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11450           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11451           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11452           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11453           export_dynamic_flag_spec='${wl}-E'
11454         else
11455           case $host_os in
11456            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11457              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11458              hardcode_libdir_flag_spec='-R$libdir'
11459              ;;
11460            *)
11461              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11462              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11463              ;;
11464           esac
11465         fi
11466       else
11467         ld_shlibs=no
11468       fi
11469       ;;
11470
11471     os2*)
11472       hardcode_libdir_flag_spec='-L$libdir'
11473       hardcode_minus_L=yes
11474       allow_undefined_flag=unsupported
11475       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'
11476       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11477       ;;
11478
11479     osf3*)
11480       if test "$GCC" = yes; then
11481         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11482         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'
11483       else
11484         allow_undefined_flag=' -expect_unresolved \*'
11485         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'
11486       fi
11487       archive_cmds_need_lc='no'
11488       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489       hardcode_libdir_separator=:
11490       ;;
11491
11492     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11493       if test "$GCC" = yes; then
11494         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11495         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'
11496         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11497       else
11498         allow_undefined_flag=' -expect_unresolved \*'
11499         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'
11500         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~
11501         $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'
11502
11503         # Both c and cxx compiler support -rpath directly
11504         hardcode_libdir_flag_spec='-rpath $libdir'
11505       fi
11506       archive_cmds_need_lc='no'
11507       hardcode_libdir_separator=:
11508       ;;
11509
11510     solaris*)
11511       no_undefined_flag=' -z defs'
11512       if test "$GCC" = yes; then
11513         wlarc='${wl}'
11514         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11515         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11516           $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'
11517       else
11518         case `$CC -V 2>&1` in
11519         *"Compilers 5.0"*)
11520           wlarc=''
11521           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11523           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11524           ;;
11525         *)
11526           wlarc='${wl}'
11527           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11528           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11529           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11530           ;;
11531         esac
11532       fi
11533       hardcode_libdir_flag_spec='-R$libdir'
11534       hardcode_shlibpath_var=no
11535       case $host_os in
11536       solaris2.[0-5] | solaris2.[0-5].*) ;;
11537       *)
11538         # The compiler driver will combine and reorder linker options,
11539         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11540         # but is careful enough not to reorder.
11541         # Supported since Solaris 2.6 (maybe 2.5.1?)
11542         if test "$GCC" = yes; then
11543           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11544         else
11545           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11546         fi
11547         ;;
11548       esac
11549       link_all_deplibs=yes
11550       ;;
11551
11552     sunos4*)
11553       if test "x$host_vendor" = xsequent; then
11554         # Use $CC to link under sequent, because it throws in some extra .o
11555         # files that make .init and .fini sections work.
11556         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11557       else
11558         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11559       fi
11560       hardcode_libdir_flag_spec='-L$libdir'
11561       hardcode_direct=yes
11562       hardcode_minus_L=yes
11563       hardcode_shlibpath_var=no
11564       ;;
11565
11566     sysv4)
11567       case $host_vendor in
11568         sni)
11569           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570           hardcode_direct=yes # is this really true???
11571         ;;
11572         siemens)
11573           ## LD is ld it makes a PLAMLIB
11574           ## CC just makes a GrossModule.
11575           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11576           reload_cmds='$CC -r -o $output$reload_objs'
11577           hardcode_direct=no
11578         ;;
11579         motorola)
11580           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11582         ;;
11583       esac
11584       runpath_var='LD_RUN_PATH'
11585       hardcode_shlibpath_var=no
11586       ;;
11587
11588     sysv4.3*)
11589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590       hardcode_shlibpath_var=no
11591       export_dynamic_flag_spec='-Bexport'
11592       ;;
11593
11594     sysv4*MP*)
11595       if test -d /usr/nec; then
11596         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11597         hardcode_shlibpath_var=no
11598         runpath_var=LD_RUN_PATH
11599         hardcode_runpath_var=yes
11600         ld_shlibs=yes
11601       fi
11602       ;;
11603
11604     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11605       no_undefined_flag='${wl}-z,text'
11606       archive_cmds_need_lc=no
11607       hardcode_shlibpath_var=no
11608       runpath_var='LD_RUN_PATH'
11609
11610       if test "$GCC" = yes; then
11611         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11612         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11613       else
11614         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11616       fi
11617       ;;
11618
11619     sysv5* | sco3.2v5* | sco5v6*)
11620       # Note: We can NOT use -z defs as we might desire, because we do not
11621       # link with -lc, and that would cause any symbols used from libc to
11622       # always be unresolved, which means just about no library would
11623       # ever link correctly.  If we're not using GNU ld we use -z text
11624       # though, which does catch some bad symbols but isn't as heavy-handed
11625       # as -z defs.
11626       no_undefined_flag='${wl}-z,text'
11627       allow_undefined_flag='${wl}-z,nodefs'
11628       archive_cmds_need_lc=no
11629       hardcode_shlibpath_var=no
11630       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11631       hardcode_libdir_separator=':'
11632       link_all_deplibs=yes
11633       export_dynamic_flag_spec='${wl}-Bexport'
11634       runpath_var='LD_RUN_PATH'
11635
11636       if test "$GCC" = yes; then
11637         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11638         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11639       else
11640         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11641         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11642       fi
11643       ;;
11644
11645     uts4*)
11646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11647       hardcode_libdir_flag_spec='-L$libdir'
11648       hardcode_shlibpath_var=no
11649       ;;
11650
11651     *)
11652       ld_shlibs=no
11653       ;;
11654     esac
11655
11656     if test x$host_vendor = xsni; then
11657       case $host in
11658       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11659         export_dynamic_flag_spec='${wl}-Blargedynsym'
11660         ;;
11661       esac
11662     fi
11663   fi
11664
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11666 $as_echo "$ld_shlibs" >&6; }
11667 test "$ld_shlibs" = no && can_build_shared=no
11668
11669 with_gnu_ld=$with_gnu_ld
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685 #
11686 # Do we need to explicitly link libc?
11687 #
11688 case "x$archive_cmds_need_lc" in
11689 x|xyes)
11690   # Assume -lc should be added
11691   archive_cmds_need_lc=yes
11692
11693   if test "$enable_shared" = yes && test "$GCC" = yes; then
11694     case $archive_cmds in
11695     *'~'*)
11696       # FIXME: we may have to deal with multi-command sequences.
11697       ;;
11698     '$CC '*)
11699       # Test whether the compiler implicitly links with -lc since on some
11700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11701       # to ld, don't add -lc before -lgcc.
11702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11704 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   $RM conftest*
11708         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11709
11710         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11711   (eval $ac_compile) 2>&5
11712   ac_status=$?
11713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714   test $ac_status = 0; } 2>conftest.err; then
11715           soname=conftest
11716           lib=conftest
11717           libobjs=conftest.$ac_objext
11718           deplibs=
11719           wl=$lt_prog_compiler_wl
11720           pic_flag=$lt_prog_compiler_pic
11721           compiler_flags=-v
11722           linker_flags=-v
11723           verstring=
11724           output_objdir=.
11725           libname=conftest
11726           lt_save_allow_undefined_flag=$allow_undefined_flag
11727           allow_undefined_flag=
11728           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11729   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11730   ac_status=$?
11731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732   test $ac_status = 0; }
11733           then
11734             lt_cv_archive_cmds_need_lc=no
11735           else
11736             lt_cv_archive_cmds_need_lc=yes
11737           fi
11738           allow_undefined_flag=$lt_save_allow_undefined_flag
11739         else
11740           cat conftest.err 1>&5
11741         fi
11742         $RM conftest*
11743
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11746 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11747       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11748       ;;
11749     esac
11750   fi
11751   ;;
11752 esac
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11907
11908 if test "$GCC" = yes; then
11909   case $host_os in
11910     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11911     *) lt_awk_arg="/^libraries:/" ;;
11912   esac
11913   case $host_os in
11914     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11915     *) lt_sed_strip_eq="s,=/,/,g" ;;
11916   esac
11917   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11918   case $lt_search_path_spec in
11919   *\;*)
11920     # if the path contains ";" then we assume it to be the separator
11921     # otherwise default to the standard path separator (i.e. ":") - it is
11922     # assumed that no part of a normal pathname contains ";" but that should
11923     # okay in the real world where ";" in dirpaths is itself problematic.
11924     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11925     ;;
11926   *)
11927     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11928     ;;
11929   esac
11930   # Ok, now we have the path, separated by spaces, we can step through it
11931   # and add multilib dir if necessary.
11932   lt_tmp_lt_search_path_spec=
11933   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11934   for lt_sys_path in $lt_search_path_spec; do
11935     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11936       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11937     else
11938       test -d "$lt_sys_path" && \
11939         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11940     fi
11941   done
11942   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11943 BEGIN {RS=" "; FS="/|\n";} {
11944   lt_foo="";
11945   lt_count=0;
11946   for (lt_i = NF; lt_i > 0; lt_i--) {
11947     if ($lt_i != "" && $lt_i != ".") {
11948       if ($lt_i == "..") {
11949         lt_count++;
11950       } else {
11951         if (lt_count == 0) {
11952           lt_foo="/" $lt_i lt_foo;
11953         } else {
11954           lt_count--;
11955         }
11956       }
11957     }
11958   }
11959   if (lt_foo != "") { lt_freq[lt_foo]++; }
11960   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11961 }'`
11962   # AWK program above erroneously prepends '/' to C:/dos/paths
11963   # for these hosts.
11964   case $host_os in
11965     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11966       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11967   esac
11968   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11969 else
11970   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11971 fi
11972 library_names_spec=
11973 libname_spec='lib$name'
11974 soname_spec=
11975 shrext_cmds=".so"
11976 postinstall_cmds=
11977 postuninstall_cmds=
11978 finish_cmds=
11979 finish_eval=
11980 shlibpath_var=
11981 shlibpath_overrides_runpath=unknown
11982 version_type=none
11983 dynamic_linker="$host_os ld.so"
11984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11985 need_lib_prefix=unknown
11986 hardcode_into_libs=no
11987
11988 # when you set need_version to no, make sure it does not cause -set_version
11989 # flags to be left without arguments
11990 need_version=unknown
11991
11992 case $host_os in
11993 aix3*)
11994   version_type=linux # correct to gnu/linux during the next big refactor
11995   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11996   shlibpath_var=LIBPATH
11997
11998   # AIX 3 has no versioning support, so we append a major version to the name.
11999   soname_spec='${libname}${release}${shared_ext}$major'
12000   ;;
12001
12002 aix[4-9]*)
12003   version_type=linux # correct to gnu/linux during the next big refactor
12004   need_lib_prefix=no
12005   need_version=no
12006   hardcode_into_libs=yes
12007   if test "$host_cpu" = ia64; then
12008     # AIX 5 supports IA64
12009     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12010     shlibpath_var=LD_LIBRARY_PATH
12011   else
12012     # With GCC up to 2.95.x, collect2 would create an import file
12013     # for dependence libraries.  The import file would start with
12014     # the line `#! .'.  This would cause the generated library to
12015     # depend on `.', always an invalid library.  This was fixed in
12016     # development snapshots of GCC prior to 3.0.
12017     case $host_os in
12018       aix4 | aix4.[01] | aix4.[01].*)
12019       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12020            echo ' yes '
12021            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12022         :
12023       else
12024         can_build_shared=no
12025       fi
12026       ;;
12027     esac
12028     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12029     # soname into executable. Probably we can add versioning support to
12030     # collect2, so additional links can be useful in future.
12031     if test "$aix_use_runtimelinking" = yes; then
12032       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12033       # instead of lib<name>.a to let people know that these are not
12034       # typical AIX shared libraries.
12035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12036     else
12037       # We preserve .a as extension for shared libraries through AIX4.2
12038       # and later when we are not doing run time linking.
12039       library_names_spec='${libname}${release}.a $libname.a'
12040       soname_spec='${libname}${release}${shared_ext}$major'
12041     fi
12042     shlibpath_var=LIBPATH
12043   fi
12044   ;;
12045
12046 amigaos*)
12047   case $host_cpu in
12048   powerpc)
12049     # Since July 2007 AmigaOS4 officially supports .so libraries.
12050     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052     ;;
12053   m68k)
12054     library_names_spec='$libname.ixlibrary $libname.a'
12055     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12056     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'
12057     ;;
12058   esac
12059   ;;
12060
12061 beos*)
12062   library_names_spec='${libname}${shared_ext}'
12063   dynamic_linker="$host_os ld.so"
12064   shlibpath_var=LIBRARY_PATH
12065   ;;
12066
12067 bsdi[45]*)
12068   version_type=linux # correct to gnu/linux during the next big refactor
12069   need_version=no
12070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071   soname_spec='${libname}${release}${shared_ext}$major'
12072   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12073   shlibpath_var=LD_LIBRARY_PATH
12074   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12075   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12076   # the default ld.so.conf also contains /usr/contrib/lib and
12077   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12078   # libtool to hard-code these into programs
12079   ;;
12080
12081 cygwin* | mingw* | pw32* | cegcc*)
12082   version_type=windows
12083   shrext_cmds=".dll"
12084   need_version=no
12085   need_lib_prefix=no
12086
12087   case $GCC,$cc_basename in
12088   yes,*)
12089     # gcc
12090     library_names_spec='$libname.dll.a'
12091     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12092     postinstall_cmds='base_file=`basename \${file}`~
12093       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12094       dldir=$destdir/`dirname \$dlpath`~
12095       test -d \$dldir || mkdir -p \$dldir~
12096       $install_prog $dir/$dlname \$dldir/$dlname~
12097       chmod a+x \$dldir/$dlname~
12098       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12099         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12100       fi'
12101     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12102       dlpath=$dir/\$dldll~
12103        $RM \$dlpath'
12104     shlibpath_overrides_runpath=yes
12105
12106     case $host_os in
12107     cygwin*)
12108       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12109       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12110
12111       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12112       ;;
12113     mingw* | cegcc*)
12114       # MinGW DLLs use traditional 'lib' prefix
12115       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12116       ;;
12117     pw32*)
12118       # pw32 DLLs use 'pw' prefix rather than 'lib'
12119       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12120       ;;
12121     esac
12122     dynamic_linker='Win32 ld.exe'
12123     ;;
12124
12125   *,cl*)
12126     # Native MSVC
12127     libname_spec='$name'
12128     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12129     library_names_spec='${libname}.dll.lib'
12130
12131     case $build_os in
12132     mingw*)
12133       sys_lib_search_path_spec=
12134       lt_save_ifs=$IFS
12135       IFS=';'
12136       for lt_path in $LIB
12137       do
12138         IFS=$lt_save_ifs
12139         # Let DOS variable expansion print the short 8.3 style file name.
12140         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12141         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12142       done
12143       IFS=$lt_save_ifs
12144       # Convert to MSYS style.
12145       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12146       ;;
12147     cygwin*)
12148       # Convert to unix form, then to dos form, then back to unix form
12149       # but this time dos style (no spaces!) so that the unix form looks
12150       # like /cygdrive/c/PROGRA~1:/cygdr...
12151       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12152       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12153       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12154       ;;
12155     *)
12156       sys_lib_search_path_spec="$LIB"
12157       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12158         # It is most probably a Windows format PATH.
12159         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12160       else
12161         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12162       fi
12163       # FIXME: find the short name or the path components, as spaces are
12164       # common. (e.g. "Program Files" -> "PROGRA~1")
12165       ;;
12166     esac
12167
12168     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12169     postinstall_cmds='base_file=`basename \${file}`~
12170       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12171       dldir=$destdir/`dirname \$dlpath`~
12172       test -d \$dldir || mkdir -p \$dldir~
12173       $install_prog $dir/$dlname \$dldir/$dlname'
12174     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12175       dlpath=$dir/\$dldll~
12176        $RM \$dlpath'
12177     shlibpath_overrides_runpath=yes
12178     dynamic_linker='Win32 link.exe'
12179     ;;
12180
12181   *)
12182     # Assume MSVC wrapper
12183     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12184     dynamic_linker='Win32 ld.exe'
12185     ;;
12186   esac
12187   # FIXME: first we should search . and the directory the executable is in
12188   shlibpath_var=PATH
12189   ;;
12190
12191 darwin* | rhapsody*)
12192   dynamic_linker="$host_os dyld"
12193   version_type=darwin
12194   need_lib_prefix=no
12195   need_version=no
12196   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12197   soname_spec='${libname}${release}${major}$shared_ext'
12198   shlibpath_overrides_runpath=yes
12199   shlibpath_var=DYLD_LIBRARY_PATH
12200   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12201
12202   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12203   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12204   ;;
12205
12206 dgux*)
12207   version_type=linux # correct to gnu/linux during the next big refactor
12208   need_lib_prefix=no
12209   need_version=no
12210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12211   soname_spec='${libname}${release}${shared_ext}$major'
12212   shlibpath_var=LD_LIBRARY_PATH
12213   ;;
12214
12215 freebsd* | dragonfly*)
12216   # DragonFly does not have aout.  When/if they implement a new
12217   # versioning mechanism, adjust this.
12218   if test -x /usr/bin/objformat; then
12219     objformat=`/usr/bin/objformat`
12220   else
12221     case $host_os in
12222     freebsd[23].*) objformat=aout ;;
12223     *) objformat=elf ;;
12224     esac
12225   fi
12226   version_type=freebsd-$objformat
12227   case $version_type in
12228     freebsd-elf*)
12229       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12230       need_version=no
12231       need_lib_prefix=no
12232       ;;
12233     freebsd-*)
12234       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12235       need_version=yes
12236       ;;
12237   esac
12238   shlibpath_var=LD_LIBRARY_PATH
12239   case $host_os in
12240   freebsd2.*)
12241     shlibpath_overrides_runpath=yes
12242     ;;
12243   freebsd3.[01]* | freebsdelf3.[01]*)
12244     shlibpath_overrides_runpath=yes
12245     hardcode_into_libs=yes
12246     ;;
12247   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12248   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12249     shlibpath_overrides_runpath=no
12250     hardcode_into_libs=yes
12251     ;;
12252   *) # from 4.6 on, and DragonFly
12253     shlibpath_overrides_runpath=yes
12254     hardcode_into_libs=yes
12255     ;;
12256   esac
12257   ;;
12258
12259 gnu*)
12260   version_type=linux # correct to gnu/linux during the next big refactor
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12264   soname_spec='${libname}${release}${shared_ext}$major'
12265   shlibpath_var=LD_LIBRARY_PATH
12266   shlibpath_overrides_runpath=no
12267   hardcode_into_libs=yes
12268   ;;
12269
12270 haiku*)
12271   version_type=linux # correct to gnu/linux during the next big refactor
12272   need_lib_prefix=no
12273   need_version=no
12274   dynamic_linker="$host_os runtime_loader"
12275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12276   soname_spec='${libname}${release}${shared_ext}$major'
12277   shlibpath_var=LIBRARY_PATH
12278   shlibpath_overrides_runpath=yes
12279   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12280   hardcode_into_libs=yes
12281   ;;
12282
12283 hpux9* | hpux10* | hpux11*)
12284   # Give a soname corresponding to the major version so that dld.sl refuses to
12285   # link against other versions.
12286   version_type=sunos
12287   need_lib_prefix=no
12288   need_version=no
12289   case $host_cpu in
12290   ia64*)
12291     shrext_cmds='.so'
12292     hardcode_into_libs=yes
12293     dynamic_linker="$host_os dld.so"
12294     shlibpath_var=LD_LIBRARY_PATH
12295     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297     soname_spec='${libname}${release}${shared_ext}$major'
12298     if test "X$HPUX_IA64_MODE" = X32; then
12299       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12300     else
12301       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12302     fi
12303     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12304     ;;
12305   hppa*64*)
12306     shrext_cmds='.sl'
12307     hardcode_into_libs=yes
12308     dynamic_linker="$host_os dld.sl"
12309     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12310     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312     soname_spec='${libname}${release}${shared_ext}$major'
12313     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12315     ;;
12316   *)
12317     shrext_cmds='.sl'
12318     dynamic_linker="$host_os dld.sl"
12319     shlibpath_var=SHLIB_PATH
12320     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322     soname_spec='${libname}${release}${shared_ext}$major'
12323     ;;
12324   esac
12325   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12326   postinstall_cmds='chmod 555 $lib'
12327   # or fails outright, so override atomically:
12328   install_override_mode=555
12329   ;;
12330
12331 interix[3-9]*)
12332   version_type=linux # correct to gnu/linux during the next big refactor
12333   need_lib_prefix=no
12334   need_version=no
12335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12336   soname_spec='${libname}${release}${shared_ext}$major'
12337   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12338   shlibpath_var=LD_LIBRARY_PATH
12339   shlibpath_overrides_runpath=no
12340   hardcode_into_libs=yes
12341   ;;
12342
12343 irix5* | irix6* | nonstopux*)
12344   case $host_os in
12345     nonstopux*) version_type=nonstopux ;;
12346     *)
12347         if test "$lt_cv_prog_gnu_ld" = yes; then
12348                 version_type=linux # correct to gnu/linux during the next big refactor
12349         else
12350                 version_type=irix
12351         fi ;;
12352   esac
12353   need_lib_prefix=no
12354   need_version=no
12355   soname_spec='${libname}${release}${shared_ext}$major'
12356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12357   case $host_os in
12358   irix5* | nonstopux*)
12359     libsuff= shlibsuff=
12360     ;;
12361   *)
12362     case $LD in # libtool.m4 will add one of these switches to LD
12363     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12364       libsuff= shlibsuff= libmagic=32-bit;;
12365     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12366       libsuff=32 shlibsuff=N32 libmagic=N32;;
12367     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12368       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12369     *) libsuff= shlibsuff= libmagic=never-match;;
12370     esac
12371     ;;
12372   esac
12373   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12374   shlibpath_overrides_runpath=no
12375   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12376   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12377   hardcode_into_libs=yes
12378   ;;
12379
12380 # No shared lib support for Linux oldld, aout, or coff.
12381 linux*oldld* | linux*aout* | linux*coff*)
12382   dynamic_linker=no
12383   ;;
12384
12385 # This must be glibc/ELF.
12386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12387   version_type=linux # correct to gnu/linux during the next big refactor
12388   need_lib_prefix=no
12389   need_version=no
12390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391   soname_spec='${libname}${release}${shared_ext}$major'
12392   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12393   shlibpath_var=LD_LIBRARY_PATH
12394   shlibpath_overrides_runpath=no
12395
12396   # Some binutils ld are patched to set DT_RUNPATH
12397   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400   lt_cv_shlibpath_overrides_runpath=no
12401     save_LDFLAGS=$LDFLAGS
12402     save_libdir=$libdir
12403     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12404          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h.  */
12407
12408 int
12409 main ()
12410 {
12411
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12418   lt_cv_shlibpath_overrides_runpath=yes
12419 fi
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext \
12422     conftest$ac_exeext conftest.$ac_ext
12423     LDFLAGS=$save_LDFLAGS
12424     libdir=$save_libdir
12425
12426 fi
12427
12428   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12429
12430   # This implies no fast_install, which is unacceptable.
12431   # Some rework will be needed to allow for fast_install
12432   # before this can be enabled.
12433   hardcode_into_libs=yes
12434
12435   # Append ld.so.conf contents to the search path
12436   if test -f /etc/ld.so.conf; then
12437     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' ' '`
12438     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12439   fi
12440
12441   # We used to test for /lib/ld.so.1 and disable shared libraries on
12442   # powerpc, because MkLinux only supported shared libraries with the
12443   # GNU dynamic linker.  Since this was broken with cross compilers,
12444   # most powerpc-linux boxes support dynamic linking these days and
12445   # people can always --disable-shared, the test was removed, and we
12446   # assume the GNU/Linux dynamic linker is in use.
12447   dynamic_linker='GNU/Linux ld.so'
12448   ;;
12449
12450 netbsdelf*-gnu)
12451   version_type=linux
12452   need_lib_prefix=no
12453   need_version=no
12454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12455   soname_spec='${libname}${release}${shared_ext}$major'
12456   shlibpath_var=LD_LIBRARY_PATH
12457   shlibpath_overrides_runpath=no
12458   hardcode_into_libs=yes
12459   dynamic_linker='NetBSD ld.elf_so'
12460   ;;
12461
12462 netbsd*)
12463   version_type=sunos
12464   need_lib_prefix=no
12465   need_version=no
12466   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12469     dynamic_linker='NetBSD (a.out) ld.so'
12470   else
12471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472     soname_spec='${libname}${release}${shared_ext}$major'
12473     dynamic_linker='NetBSD ld.elf_so'
12474   fi
12475   shlibpath_var=LD_LIBRARY_PATH
12476   shlibpath_overrides_runpath=yes
12477   hardcode_into_libs=yes
12478   ;;
12479
12480 newsos6)
12481   version_type=linux # correct to gnu/linux during the next big refactor
12482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483   shlibpath_var=LD_LIBRARY_PATH
12484   shlibpath_overrides_runpath=yes
12485   ;;
12486
12487 *nto* | *qnx*)
12488   version_type=qnx
12489   need_lib_prefix=no
12490   need_version=no
12491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492   soname_spec='${libname}${release}${shared_ext}$major'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   shlibpath_overrides_runpath=no
12495   hardcode_into_libs=yes
12496   dynamic_linker='ldqnx.so'
12497   ;;
12498
12499 openbsd*)
12500   version_type=sunos
12501   sys_lib_dlsearch_path_spec="/usr/lib"
12502   need_lib_prefix=no
12503   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12504   case $host_os in
12505     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12506     *)                          need_version=no  ;;
12507   esac
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12510   shlibpath_var=LD_LIBRARY_PATH
12511   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12512     case $host_os in
12513       openbsd2.[89] | openbsd2.[89].*)
12514         shlibpath_overrides_runpath=no
12515         ;;
12516       *)
12517         shlibpath_overrides_runpath=yes
12518         ;;
12519       esac
12520   else
12521     shlibpath_overrides_runpath=yes
12522   fi
12523   ;;
12524
12525 os2*)
12526   libname_spec='$name'
12527   shrext_cmds=".dll"
12528   need_lib_prefix=no
12529   library_names_spec='$libname${shared_ext} $libname.a'
12530   dynamic_linker='OS/2 ld.exe'
12531   shlibpath_var=LIBPATH
12532   ;;
12533
12534 osf3* | osf4* | osf5*)
12535   version_type=osf
12536   need_lib_prefix=no
12537   need_version=no
12538   soname_spec='${libname}${release}${shared_ext}$major'
12539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540   shlibpath_var=LD_LIBRARY_PATH
12541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12543   ;;
12544
12545 rdos*)
12546   dynamic_linker=no
12547   ;;
12548
12549 solaris*)
12550   version_type=linux # correct to gnu/linux during the next big refactor
12551   need_lib_prefix=no
12552   need_version=no
12553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12554   soname_spec='${libname}${release}${shared_ext}$major'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   shlibpath_overrides_runpath=yes
12557   hardcode_into_libs=yes
12558   # ldd complains unless libraries are executable
12559   postinstall_cmds='chmod +x $lib'
12560   ;;
12561
12562 sunos4*)
12563   version_type=sunos
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=yes
12568   if test "$with_gnu_ld" = yes; then
12569     need_lib_prefix=no
12570   fi
12571   need_version=yes
12572   ;;
12573
12574 sysv4 | sysv4.3*)
12575   version_type=linux # correct to gnu/linux during the next big refactor
12576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577   soname_spec='${libname}${release}${shared_ext}$major'
12578   shlibpath_var=LD_LIBRARY_PATH
12579   case $host_vendor in
12580     sni)
12581       shlibpath_overrides_runpath=no
12582       need_lib_prefix=no
12583       runpath_var=LD_RUN_PATH
12584       ;;
12585     siemens)
12586       need_lib_prefix=no
12587       ;;
12588     motorola)
12589       need_lib_prefix=no
12590       need_version=no
12591       shlibpath_overrides_runpath=no
12592       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12593       ;;
12594   esac
12595   ;;
12596
12597 sysv4*MP*)
12598   if test -d /usr/nec ;then
12599     version_type=linux # correct to gnu/linux during the next big refactor
12600     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12601     soname_spec='$libname${shared_ext}.$major'
12602     shlibpath_var=LD_LIBRARY_PATH
12603   fi
12604   ;;
12605
12606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12607   version_type=freebsd-elf
12608   need_lib_prefix=no
12609   need_version=no
12610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12611   soname_spec='${libname}${release}${shared_ext}$major'
12612   shlibpath_var=LD_LIBRARY_PATH
12613   shlibpath_overrides_runpath=yes
12614   hardcode_into_libs=yes
12615   if test "$with_gnu_ld" = yes; then
12616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12617   else
12618     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12619     case $host_os in
12620       sco3.2v5*)
12621         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12622         ;;
12623     esac
12624   fi
12625   sys_lib_dlsearch_path_spec='/usr/lib'
12626   ;;
12627
12628 tpf*)
12629   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12630   version_type=linux # correct to gnu/linux during the next big refactor
12631   need_lib_prefix=no
12632   need_version=no
12633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12634   shlibpath_var=LD_LIBRARY_PATH
12635   shlibpath_overrides_runpath=no
12636   hardcode_into_libs=yes
12637   ;;
12638
12639 uts4*)
12640   version_type=linux # correct to gnu/linux during the next big refactor
12641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642   soname_spec='${libname}${release}${shared_ext}$major'
12643   shlibpath_var=LD_LIBRARY_PATH
12644   ;;
12645
12646 *)
12647   dynamic_linker=no
12648   ;;
12649 esac
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12651 $as_echo "$dynamic_linker" >&6; }
12652 test "$dynamic_linker" = no && can_build_shared=no
12653
12654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12655 if test "$GCC" = yes; then
12656   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12657 fi
12658
12659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12660   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12661 fi
12662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12663   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12664 fi
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12758 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12759 hardcode_action=
12760 if test -n "$hardcode_libdir_flag_spec" ||
12761    test -n "$runpath_var" ||
12762    test "X$hardcode_automatic" = "Xyes" ; then
12763
12764   # We can hardcode non-existent directories.
12765   if test "$hardcode_direct" != no &&
12766      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12767      # have to relink, otherwise we might link with an installed library
12768      # when we should be linking with a yet-to-be-installed one
12769      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12770      test "$hardcode_minus_L" != no; then
12771     # Linking always hardcodes the temporary library directory.
12772     hardcode_action=relink
12773   else
12774     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12775     hardcode_action=immediate
12776   fi
12777 else
12778   # We cannot hardcode anything, or else we can only hardcode existing
12779   # directories.
12780   hardcode_action=unsupported
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12783 $as_echo "$hardcode_action" >&6; }
12784
12785 if test "$hardcode_action" = relink ||
12786    test "$inherit_rpath" = yes; then
12787   # Fast installation is not supported
12788   enable_fast_install=no
12789 elif test "$shlibpath_overrides_runpath" = yes ||
12790      test "$enable_shared" = no; then
12791   # Fast installation is not necessary
12792   enable_fast_install=needless
12793 fi
12794
12795
12796
12797
12798
12799
12800   if test "x$enable_dlopen" != xyes; then
12801   enable_dlopen=unknown
12802   enable_dlopen_self=unknown
12803   enable_dlopen_self_static=unknown
12804 else
12805   lt_cv_dlopen=no
12806   lt_cv_dlopen_libs=
12807
12808   case $host_os in
12809   beos*)
12810     lt_cv_dlopen="load_add_on"
12811     lt_cv_dlopen_libs=
12812     lt_cv_dlopen_self=yes
12813     ;;
12814
12815   mingw* | pw32* | cegcc*)
12816     lt_cv_dlopen="LoadLibrary"
12817     lt_cv_dlopen_libs=
12818     ;;
12819
12820   cygwin*)
12821     lt_cv_dlopen="dlopen"
12822     lt_cv_dlopen_libs=
12823     ;;
12824
12825   darwin*)
12826   # if libdl is installed we need to link against it
12827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12829 if ${ac_cv_lib_dl_dlopen+:} false; then :
12830   $as_echo_n "(cached) " >&6
12831 else
12832   ac_check_lib_save_LIBS=$LIBS
12833 LIBS="-ldl  $LIBS"
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h.  */
12836
12837 /* Override any GCC internal prototype to avoid an error.
12838    Use char because int might match the return type of a GCC
12839    builtin and then its argument prototype would still apply.  */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 char dlopen ();
12844 int
12845 main ()
12846 {
12847 return dlopen ();
12848   ;
12849   return 0;
12850 }
12851 _ACEOF
12852 if ac_fn_c_try_link "$LINENO"; then :
12853   ac_cv_lib_dl_dlopen=yes
12854 else
12855   ac_cv_lib_dl_dlopen=no
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext \
12858     conftest$ac_exeext conftest.$ac_ext
12859 LIBS=$ac_check_lib_save_LIBS
12860 fi
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12864   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12865 else
12866
12867     lt_cv_dlopen="dyld"
12868     lt_cv_dlopen_libs=
12869     lt_cv_dlopen_self=yes
12870
12871 fi
12872
12873     ;;
12874
12875   *)
12876     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12877 if test "x$ac_cv_func_shl_load" = xyes; then :
12878   lt_cv_dlopen="shl_load"
12879 else
12880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12882 if ${ac_cv_lib_dld_shl_load+:} false; then :
12883   $as_echo_n "(cached) " >&6
12884 else
12885   ac_check_lib_save_LIBS=$LIBS
12886 LIBS="-ldld  $LIBS"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889
12890 /* Override any GCC internal prototype to avoid an error.
12891    Use char because int might match the return type of a GCC
12892    builtin and then its argument prototype would still apply.  */
12893 #ifdef __cplusplus
12894 extern "C"
12895 #endif
12896 char shl_load ();
12897 int
12898 main ()
12899 {
12900 return shl_load ();
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 if ac_fn_c_try_link "$LINENO"; then :
12906   ac_cv_lib_dld_shl_load=yes
12907 else
12908   ac_cv_lib_dld_shl_load=no
12909 fi
12910 rm -f core conftest.err conftest.$ac_objext \
12911     conftest$ac_exeext conftest.$ac_ext
12912 LIBS=$ac_check_lib_save_LIBS
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12915 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12916 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12917   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12918 else
12919   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12920 if test "x$ac_cv_func_dlopen" = xyes; then :
12921   lt_cv_dlopen="dlopen"
12922 else
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12925 if ${ac_cv_lib_dl_dlopen+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   ac_check_lib_save_LIBS=$LIBS
12929 LIBS="-ldl  $LIBS"
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h.  */
12932
12933 /* Override any GCC internal prototype to avoid an error.
12934    Use char because int might match the return type of a GCC
12935    builtin and then its argument prototype would still apply.  */
12936 #ifdef __cplusplus
12937 extern "C"
12938 #endif
12939 char dlopen ();
12940 int
12941 main ()
12942 {
12943 return dlopen ();
12944   ;
12945   return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_c_try_link "$LINENO"; then :
12949   ac_cv_lib_dl_dlopen=yes
12950 else
12951   ac_cv_lib_dl_dlopen=no
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext \
12954     conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12960   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12961 else
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12964 if ${ac_cv_lib_svld_dlopen+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-lsvld  $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h.  */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973    Use char because int might match the return type of a GCC
12974    builtin and then its argument prototype would still apply.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char dlopen ();
12979 int
12980 main ()
12981 {
12982 return dlopen ();
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988   ac_cv_lib_svld_dlopen=yes
12989 else
12990   ac_cv_lib_svld_dlopen=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993     conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12999   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13000 else
13001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13003 if ${ac_cv_lib_dld_dld_link+:} false; then :
13004   $as_echo_n "(cached) " >&6
13005 else
13006   ac_check_lib_save_LIBS=$LIBS
13007 LIBS="-ldld  $LIBS"
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h.  */
13010
13011 /* Override any GCC internal prototype to avoid an error.
13012    Use char because int might match the return type of a GCC
13013    builtin and then its argument prototype would still apply.  */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 char dld_link ();
13018 int
13019 main ()
13020 {
13021 return dld_link ();
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027   ac_cv_lib_dld_dld_link=yes
13028 else
13029   ac_cv_lib_dld_dld_link=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext \
13032     conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13036 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13037 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13038   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13039 fi
13040
13041
13042 fi
13043
13044
13045 fi
13046
13047
13048 fi
13049
13050
13051 fi
13052
13053
13054 fi
13055
13056     ;;
13057   esac
13058
13059   if test "x$lt_cv_dlopen" != xno; then
13060     enable_dlopen=yes
13061   else
13062     enable_dlopen=no
13063   fi
13064
13065   case $lt_cv_dlopen in
13066   dlopen)
13067     save_CPPFLAGS="$CPPFLAGS"
13068     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13069
13070     save_LDFLAGS="$LDFLAGS"
13071     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13072
13073     save_LIBS="$LIBS"
13074     LIBS="$lt_cv_dlopen_libs $LIBS"
13075
13076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13077 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13078 if ${lt_cv_dlopen_self+:} false; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081           if test "$cross_compiling" = yes; then :
13082   lt_cv_dlopen_self=cross
13083 else
13084   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13085   lt_status=$lt_dlunknown
13086   cat > conftest.$ac_ext <<_LT_EOF
13087 #line $LINENO "configure"
13088 #include "confdefs.h"
13089
13090 #if HAVE_DLFCN_H
13091 #include <dlfcn.h>
13092 #endif
13093
13094 #include <stdio.h>
13095
13096 #ifdef RTLD_GLOBAL
13097 #  define LT_DLGLOBAL           RTLD_GLOBAL
13098 #else
13099 #  ifdef DL_GLOBAL
13100 #    define LT_DLGLOBAL         DL_GLOBAL
13101 #  else
13102 #    define LT_DLGLOBAL         0
13103 #  endif
13104 #endif
13105
13106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13107    find out it does not work in some platform. */
13108 #ifndef LT_DLLAZY_OR_NOW
13109 #  ifdef RTLD_LAZY
13110 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13111 #  else
13112 #    ifdef DL_LAZY
13113 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13114 #    else
13115 #      ifdef RTLD_NOW
13116 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13117 #      else
13118 #        ifdef DL_NOW
13119 #          define LT_DLLAZY_OR_NOW      DL_NOW
13120 #        else
13121 #          define LT_DLLAZY_OR_NOW      0
13122 #        endif
13123 #      endif
13124 #    endif
13125 #  endif
13126 #endif
13127
13128 /* When -fvisbility=hidden is used, assume the code has been annotated
13129    correspondingly for the symbols needed.  */
13130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13131 int fnord () __attribute__((visibility("default")));
13132 #endif
13133
13134 int fnord () { return 42; }
13135 int main ()
13136 {
13137   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13138   int status = $lt_dlunknown;
13139
13140   if (self)
13141     {
13142       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13143       else
13144         {
13145           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13146           else puts (dlerror ());
13147         }
13148       /* dlclose (self); */
13149     }
13150   else
13151     puts (dlerror ());
13152
13153   return status;
13154 }
13155 _LT_EOF
13156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13157   (eval $ac_link) 2>&5
13158   ac_status=$?
13159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13161     (./conftest; exit; ) >&5 2>/dev/null
13162     lt_status=$?
13163     case x$lt_status in
13164       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13165       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13166       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13167     esac
13168   else :
13169     # compilation failed
13170     lt_cv_dlopen_self=no
13171   fi
13172 fi
13173 rm -fr conftest*
13174
13175
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13178 $as_echo "$lt_cv_dlopen_self" >&6; }
13179
13180     if test "x$lt_cv_dlopen_self" = xyes; then
13181       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13183 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13184 if ${lt_cv_dlopen_self_static+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187           if test "$cross_compiling" = yes; then :
13188   lt_cv_dlopen_self_static=cross
13189 else
13190   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13191   lt_status=$lt_dlunknown
13192   cat > conftest.$ac_ext <<_LT_EOF
13193 #line $LINENO "configure"
13194 #include "confdefs.h"
13195
13196 #if HAVE_DLFCN_H
13197 #include <dlfcn.h>
13198 #endif
13199
13200 #include <stdio.h>
13201
13202 #ifdef RTLD_GLOBAL
13203 #  define LT_DLGLOBAL           RTLD_GLOBAL
13204 #else
13205 #  ifdef DL_GLOBAL
13206 #    define LT_DLGLOBAL         DL_GLOBAL
13207 #  else
13208 #    define LT_DLGLOBAL         0
13209 #  endif
13210 #endif
13211
13212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13213    find out it does not work in some platform. */
13214 #ifndef LT_DLLAZY_OR_NOW
13215 #  ifdef RTLD_LAZY
13216 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13217 #  else
13218 #    ifdef DL_LAZY
13219 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13220 #    else
13221 #      ifdef RTLD_NOW
13222 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13223 #      else
13224 #        ifdef DL_NOW
13225 #          define LT_DLLAZY_OR_NOW      DL_NOW
13226 #        else
13227 #          define LT_DLLAZY_OR_NOW      0
13228 #        endif
13229 #      endif
13230 #    endif
13231 #  endif
13232 #endif
13233
13234 /* When -fvisbility=hidden is used, assume the code has been annotated
13235    correspondingly for the symbols needed.  */
13236 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13237 int fnord () __attribute__((visibility("default")));
13238 #endif
13239
13240 int fnord () { return 42; }
13241 int main ()
13242 {
13243   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13244   int status = $lt_dlunknown;
13245
13246   if (self)
13247     {
13248       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13249       else
13250         {
13251           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13252           else puts (dlerror ());
13253         }
13254       /* dlclose (self); */
13255     }
13256   else
13257     puts (dlerror ());
13258
13259   return status;
13260 }
13261 _LT_EOF
13262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13263   (eval $ac_link) 2>&5
13264   ac_status=$?
13265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13266   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13267     (./conftest; exit; ) >&5 2>/dev/null
13268     lt_status=$?
13269     case x$lt_status in
13270       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13271       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13272       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13273     esac
13274   else :
13275     # compilation failed
13276     lt_cv_dlopen_self_static=no
13277   fi
13278 fi
13279 rm -fr conftest*
13280
13281
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13285     fi
13286
13287     CPPFLAGS="$save_CPPFLAGS"
13288     LDFLAGS="$save_LDFLAGS"
13289     LIBS="$save_LIBS"
13290     ;;
13291   esac
13292
13293   case $lt_cv_dlopen_self in
13294   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13295   *) enable_dlopen_self=unknown ;;
13296   esac
13297
13298   case $lt_cv_dlopen_self_static in
13299   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13300   *) enable_dlopen_self_static=unknown ;;
13301   esac
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 striplib=
13321 old_striplib=
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13325   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13326   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13328 $as_echo "yes" >&6; }
13329 else
13330 # FIXME - insert some real tests, host_os isn't really good enough
13331   case $host_os in
13332   darwin*)
13333     if test -n "$STRIP" ; then
13334       striplib="$STRIP -x"
13335       old_striplib="$STRIP -S"
13336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13338     else
13339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341     fi
13342     ;;
13343   *)
13344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13346     ;;
13347   esac
13348 fi
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361   # Report which library types will actually be built
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13365 $as_echo "$can_build_shared" >&6; }
13366
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13368 $as_echo_n "checking whether to build shared libraries... " >&6; }
13369   test "$can_build_shared" = "no" && enable_shared=no
13370
13371   # On AIX, shared libraries and static libraries use the same namespace, and
13372   # are all built from PIC.
13373   case $host_os in
13374   aix3*)
13375     test "$enable_shared" = yes && enable_static=no
13376     if test -n "$RANLIB"; then
13377       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13378       postinstall_cmds='$RANLIB $lib'
13379     fi
13380     ;;
13381
13382   aix[4-9]*)
13383     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13384       test "$enable_shared" = yes && enable_static=no
13385     fi
13386     ;;
13387   esac
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13389 $as_echo "$enable_shared" >&6; }
13390
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13392 $as_echo_n "checking whether to build static libraries... " >&6; }
13393   # Make sure either enable_shared or enable_static is yes.
13394   test "$enable_shared" = yes || enable_static=yes
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13396 $as_echo "$enable_static" >&6; }
13397
13398
13399
13400
13401 fi
13402 ac_ext=c
13403 ac_cpp='$CPP $CPPFLAGS'
13404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13407
13408 CC="$lt_save_CC"
13409
13410       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13411     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13412     (test "X$CXX" != "Xg++"))) ; then
13413   ac_ext=cpp
13414 ac_cpp='$CXXCPP $CPPFLAGS'
13415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13419 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13420 if test -z "$CXXCPP"; then
13421   if ${ac_cv_prog_CXXCPP+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424       # Double quotes because CXXCPP needs to be expanded
13425     for CXXCPP in "$CXX -E" "/lib/cpp"
13426     do
13427       ac_preproc_ok=false
13428 for ac_cxx_preproc_warn_flag in '' yes
13429 do
13430   # Use a header file that comes with gcc, so configuring glibc
13431   # with a fresh cross-compiler works.
13432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13433   # <limits.h> exists even on freestanding compilers.
13434   # On the NeXT, cc -E runs the code through the compiler's parser,
13435   # not just through cpp. "Syntax error" is here to catch this case.
13436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h.  */
13438 #ifdef __STDC__
13439 # include <limits.h>
13440 #else
13441 # include <assert.h>
13442 #endif
13443                      Syntax error
13444 _ACEOF
13445 if ac_fn_cxx_try_cpp "$LINENO"; then :
13446
13447 else
13448   # Broken: fails on valid input.
13449 continue
13450 fi
13451 rm -f conftest.err conftest.i conftest.$ac_ext
13452
13453   # OK, works on sane cases.  Now check whether nonexistent headers
13454   # can be detected and how.
13455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h.  */
13457 #include <ac_nonexistent.h>
13458 _ACEOF
13459 if ac_fn_cxx_try_cpp "$LINENO"; then :
13460   # Broken: success on invalid input.
13461 continue
13462 else
13463   # Passes both tests.
13464 ac_preproc_ok=:
13465 break
13466 fi
13467 rm -f conftest.err conftest.i conftest.$ac_ext
13468
13469 done
13470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13471 rm -f conftest.i conftest.err conftest.$ac_ext
13472 if $ac_preproc_ok; then :
13473   break
13474 fi
13475
13476     done
13477     ac_cv_prog_CXXCPP=$CXXCPP
13478
13479 fi
13480   CXXCPP=$ac_cv_prog_CXXCPP
13481 else
13482   ac_cv_prog_CXXCPP=$CXXCPP
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13485 $as_echo "$CXXCPP" >&6; }
13486 ac_preproc_ok=false
13487 for ac_cxx_preproc_warn_flag in '' yes
13488 do
13489   # Use a header file that comes with gcc, so configuring glibc
13490   # with a fresh cross-compiler works.
13491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13492   # <limits.h> exists even on freestanding compilers.
13493   # On the NeXT, cc -E runs the code through the compiler's parser,
13494   # not just through cpp. "Syntax error" is here to catch this case.
13495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h.  */
13497 #ifdef __STDC__
13498 # include <limits.h>
13499 #else
13500 # include <assert.h>
13501 #endif
13502                      Syntax error
13503 _ACEOF
13504 if ac_fn_cxx_try_cpp "$LINENO"; then :
13505
13506 else
13507   # Broken: fails on valid input.
13508 continue
13509 fi
13510 rm -f conftest.err conftest.i conftest.$ac_ext
13511
13512   # OK, works on sane cases.  Now check whether nonexistent headers
13513   # can be detected and how.
13514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h.  */
13516 #include <ac_nonexistent.h>
13517 _ACEOF
13518 if ac_fn_cxx_try_cpp "$LINENO"; then :
13519   # Broken: success on invalid input.
13520 continue
13521 else
13522   # Passes both tests.
13523 ac_preproc_ok=:
13524 break
13525 fi
13526 rm -f conftest.err conftest.i conftest.$ac_ext
13527
13528 done
13529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13530 rm -f conftest.i conftest.err conftest.$ac_ext
13531 if $ac_preproc_ok; then :
13532
13533 else
13534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13536 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13537 See \`config.log' for more details" "$LINENO" 5; }
13538 fi
13539
13540 ac_ext=c
13541 ac_cpp='$CPP $CPPFLAGS'
13542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13545
13546 else
13547   _lt_caught_CXX_error=yes
13548 fi
13549
13550 ac_ext=cpp
13551 ac_cpp='$CXXCPP $CPPFLAGS'
13552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13555
13556 archive_cmds_need_lc_CXX=no
13557 allow_undefined_flag_CXX=
13558 always_export_symbols_CXX=no
13559 archive_expsym_cmds_CXX=
13560 compiler_needs_object_CXX=no
13561 export_dynamic_flag_spec_CXX=
13562 hardcode_direct_CXX=no
13563 hardcode_direct_absolute_CXX=no
13564 hardcode_libdir_flag_spec_CXX=
13565 hardcode_libdir_separator_CXX=
13566 hardcode_minus_L_CXX=no
13567 hardcode_shlibpath_var_CXX=unsupported
13568 hardcode_automatic_CXX=no
13569 inherit_rpath_CXX=no
13570 module_cmds_CXX=
13571 module_expsym_cmds_CXX=
13572 link_all_deplibs_CXX=unknown
13573 old_archive_cmds_CXX=$old_archive_cmds
13574 reload_flag_CXX=$reload_flag
13575 reload_cmds_CXX=$reload_cmds
13576 no_undefined_flag_CXX=
13577 whole_archive_flag_spec_CXX=
13578 enable_shared_with_static_runtimes_CXX=no
13579
13580 # Source file extension for C++ test sources.
13581 ac_ext=cpp
13582
13583 # Object file extension for compiled C++ test sources.
13584 objext=o
13585 objext_CXX=$objext
13586
13587 # No sense in running all these tests if we already determined that
13588 # the CXX compiler isn't working.  Some variables (like enable_shared)
13589 # are currently assumed to apply to all compilers on this platform,
13590 # and will be corrupted by setting them based on a non-working compiler.
13591 if test "$_lt_caught_CXX_error" != yes; then
13592   # Code to be used in simple compile tests
13593   lt_simple_compile_test_code="int some_variable = 0;"
13594
13595   # Code to be used in simple link tests
13596   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13597
13598   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13599
13600
13601
13602
13603
13604
13605 # If no C compiler was specified, use CC.
13606 LTCC=${LTCC-"$CC"}
13607
13608 # If no C compiler flags were specified, use CFLAGS.
13609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13610
13611 # Allow CC to be a program name with arguments.
13612 compiler=$CC
13613
13614
13615   # save warnings/boilerplate of simple test code
13616   ac_outfile=conftest.$ac_objext
13617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13619 _lt_compiler_boilerplate=`cat conftest.err`
13620 $RM conftest*
13621
13622   ac_outfile=conftest.$ac_objext
13623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13625 _lt_linker_boilerplate=`cat conftest.err`
13626 $RM -r conftest*
13627
13628
13629   # Allow CC to be a program name with arguments.
13630   lt_save_CC=$CC
13631   lt_save_CFLAGS=$CFLAGS
13632   lt_save_LD=$LD
13633   lt_save_GCC=$GCC
13634   GCC=$GXX
13635   lt_save_with_gnu_ld=$with_gnu_ld
13636   lt_save_path_LD=$lt_cv_path_LD
13637   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13638     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13639   else
13640     $as_unset lt_cv_prog_gnu_ld
13641   fi
13642   if test -n "${lt_cv_path_LDCXX+set}"; then
13643     lt_cv_path_LD=$lt_cv_path_LDCXX
13644   else
13645     $as_unset lt_cv_path_LD
13646   fi
13647   test -z "${LDCXX+set}" || LD=$LDCXX
13648   CC=${CXX-"c++"}
13649   CFLAGS=$CXXFLAGS
13650   compiler=$CC
13651   compiler_CXX=$CC
13652   for cc_temp in $compiler""; do
13653   case $cc_temp in
13654     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13655     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13656     \-*) ;;
13657     *) break;;
13658   esac
13659 done
13660 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13661
13662
13663   if test -n "$compiler"; then
13664     # We don't want -fno-exception when compiling C++ code, so set the
13665     # no_builtin_flag separately
13666     if test "$GXX" = yes; then
13667       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13668     else
13669       lt_prog_compiler_no_builtin_flag_CXX=
13670     fi
13671
13672     if test "$GXX" = yes; then
13673       # Set up default GNU C++ configuration
13674
13675
13676
13677 # Check whether --with-gnu-ld was given.
13678 if test "${with_gnu_ld+set}" = set; then :
13679   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13680 else
13681   with_gnu_ld=no
13682 fi
13683
13684 ac_prog=ld
13685 if test "$GCC" = yes; then
13686   # Check if gcc -print-prog-name=ld gives a path.
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13688 $as_echo_n "checking for ld used by $CC... " >&6; }
13689   case $host in
13690   *-*-mingw*)
13691     # gcc leaves a trailing carriage return which upsets mingw
13692     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13693   *)
13694     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13695   esac
13696   case $ac_prog in
13697     # Accept absolute paths.
13698     [\\/]* | ?:[\\/]*)
13699       re_direlt='/[^/][^/]*/\.\./'
13700       # Canonicalize the pathname of ld
13701       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13702       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13703         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13704       done
13705       test -z "$LD" && LD="$ac_prog"
13706       ;;
13707   "")
13708     # If it fails, then pretend we aren't using GCC.
13709     ac_prog=ld
13710     ;;
13711   *)
13712     # If it is relative, then search for the first ld in PATH.
13713     with_gnu_ld=unknown
13714     ;;
13715   esac
13716 elif test "$with_gnu_ld" = yes; then
13717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13718 $as_echo_n "checking for GNU ld... " >&6; }
13719 else
13720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13721 $as_echo_n "checking for non-GNU ld... " >&6; }
13722 fi
13723 if ${lt_cv_path_LD+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   if test -z "$LD"; then
13727   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13728   for ac_dir in $PATH; do
13729     IFS="$lt_save_ifs"
13730     test -z "$ac_dir" && ac_dir=.
13731     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13732       lt_cv_path_LD="$ac_dir/$ac_prog"
13733       # Check to see if the program is GNU ld.  I'd rather use --version,
13734       # but apparently some variants of GNU ld only accept -v.
13735       # Break only if it was the GNU/non-GNU ld that we prefer.
13736       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13737       *GNU* | *'with BFD'*)
13738         test "$with_gnu_ld" != no && break
13739         ;;
13740       *)
13741         test "$with_gnu_ld" != yes && break
13742         ;;
13743       esac
13744     fi
13745   done
13746   IFS="$lt_save_ifs"
13747 else
13748   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13749 fi
13750 fi
13751
13752 LD="$lt_cv_path_LD"
13753 if test -n "$LD"; then
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13755 $as_echo "$LD" >&6; }
13756 else
13757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13759 fi
13760 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13762 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13763 if ${lt_cv_prog_gnu_ld+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13767 case `$LD -v 2>&1 </dev/null` in
13768 *GNU* | *'with BFD'*)
13769   lt_cv_prog_gnu_ld=yes
13770   ;;
13771 *)
13772   lt_cv_prog_gnu_ld=no
13773   ;;
13774 esac
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13777 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13778 with_gnu_ld=$lt_cv_prog_gnu_ld
13779
13780
13781
13782
13783
13784
13785
13786       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13787       # archiving commands below assume that GNU ld is being used.
13788       if test "$with_gnu_ld" = yes; then
13789         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790         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'
13791
13792         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13793         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13794
13795         # If archive_cmds runs LD, not CC, wlarc should be empty
13796         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13797         #     investigate it a little bit more. (MM)
13798         wlarc='${wl}'
13799
13800         # ancient GNU ld didn't support --whole-archive et. al.
13801         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13802           $GREP 'no-whole-archive' > /dev/null; then
13803           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13804         else
13805           whole_archive_flag_spec_CXX=
13806         fi
13807       else
13808         with_gnu_ld=no
13809         wlarc=
13810
13811         # A generic and very simple default shared library creation
13812         # command for GNU C++ for the case where it uses the native
13813         # linker, instead of GNU ld.  If possible, this setting should
13814         # overridden to take advantage of the native linker features on
13815         # the platform it is being used on.
13816         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13817       fi
13818
13819       # Commands to make compiler produce verbose output that lists
13820       # what "hidden" libraries, object files and flags are used when
13821       # linking a shared library.
13822       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13823
13824     else
13825       GXX=no
13826       with_gnu_ld=no
13827       wlarc=
13828     fi
13829
13830     # PORTME: fill in a description of your system's C++ link characteristics
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13833     ld_shlibs_CXX=yes
13834     case $host_os in
13835       aix3*)
13836         # FIXME: insert proper C++ library support
13837         ld_shlibs_CXX=no
13838         ;;
13839       aix[4-9]*)
13840         if test "$host_cpu" = ia64; then
13841           # On IA64, the linker does run time linking by default, so we don't
13842           # have to do anything special.
13843           aix_use_runtimelinking=no
13844           exp_sym_flag='-Bexport'
13845           no_entry_flag=""
13846         else
13847           aix_use_runtimelinking=no
13848
13849           # Test if we are trying to use run time linking or normal
13850           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13851           # need to do runtime linking.
13852           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13853             for ld_flag in $LDFLAGS; do
13854               case $ld_flag in
13855               *-brtl*)
13856                 aix_use_runtimelinking=yes
13857                 break
13858                 ;;
13859               esac
13860             done
13861             ;;
13862           esac
13863
13864           exp_sym_flag='-bexport'
13865           no_entry_flag='-bnoentry'
13866         fi
13867
13868         # When large executables or shared objects are built, AIX ld can
13869         # have problems creating the table of contents.  If linking a library
13870         # or program results in "error TOC overflow" add -mminimal-toc to
13871         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13872         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13873
13874         archive_cmds_CXX=''
13875         hardcode_direct_CXX=yes
13876         hardcode_direct_absolute_CXX=yes
13877         hardcode_libdir_separator_CXX=':'
13878         link_all_deplibs_CXX=yes
13879         file_list_spec_CXX='${wl}-f,'
13880
13881         if test "$GXX" = yes; then
13882           case $host_os in aix4.[012]|aix4.[012].*)
13883           # We only want to do this on AIX 4.2 and lower, the check
13884           # below for broken collect2 doesn't work under 4.3+
13885           collect2name=`${CC} -print-prog-name=collect2`
13886           if test -f "$collect2name" &&
13887              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13888           then
13889             # We have reworked collect2
13890             :
13891           else
13892             # We have old collect2
13893             hardcode_direct_CXX=unsupported
13894             # It fails to find uninstalled libraries when the uninstalled
13895             # path is not listed in the libpath.  Setting hardcode_minus_L
13896             # to unsupported forces relinking
13897             hardcode_minus_L_CXX=yes
13898             hardcode_libdir_flag_spec_CXX='-L$libdir'
13899             hardcode_libdir_separator_CXX=
13900           fi
13901           esac
13902           shared_flag='-shared'
13903           if test "$aix_use_runtimelinking" = yes; then
13904             shared_flag="$shared_flag "'${wl}-G'
13905           fi
13906         else
13907           # not using gcc
13908           if test "$host_cpu" = ia64; then
13909           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13910           # chokes on -Wl,-G. The following line is correct:
13911           shared_flag='-G'
13912           else
13913             if test "$aix_use_runtimelinking" = yes; then
13914               shared_flag='${wl}-G'
13915             else
13916               shared_flag='${wl}-bM:SRE'
13917             fi
13918           fi
13919         fi
13920
13921         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13922         # It seems that -bexpall does not export symbols beginning with
13923         # underscore (_), so it is better to generate a list of symbols to
13924         # export.
13925         always_export_symbols_CXX=yes
13926         if test "$aix_use_runtimelinking" = yes; then
13927           # Warning - without using the other runtime loading flags (-brtl),
13928           # -berok will link without error, but may produce a broken library.
13929           allow_undefined_flag_CXX='-berok'
13930           # Determine the default libpath from the value encoded in an empty
13931           # executable.
13932           if test "${lt_cv_aix_libpath+set}" = set; then
13933   aix_libpath=$lt_cv_aix_libpath
13934 else
13935   if ${lt_cv_aix_libpath__CXX+:} false; then :
13936   $as_echo_n "(cached) " >&6
13937 else
13938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940
13941 int
13942 main ()
13943 {
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 if ac_fn_cxx_try_link "$LINENO"; then :
13950
13951   lt_aix_libpath_sed='
13952       /Import File Strings/,/^$/ {
13953           /^0/ {
13954               s/^0  *\([^ ]*\) *$/\1/
13955               p
13956           }
13957       }'
13958   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959   # Check for a 64-bit object if we didn't find anything.
13960   if test -z "$lt_cv_aix_libpath__CXX"; then
13961     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13962   fi
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext \
13965     conftest$ac_exeext conftest.$ac_ext
13966   if test -z "$lt_cv_aix_libpath__CXX"; then
13967     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13968   fi
13969
13970 fi
13971
13972   aix_libpath=$lt_cv_aix_libpath__CXX
13973 fi
13974
13975           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13976
13977           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"
13978         else
13979           if test "$host_cpu" = ia64; then
13980             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13981             allow_undefined_flag_CXX="-z nodefs"
13982             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"
13983           else
13984             # Determine the default libpath from the value encoded in an
13985             # empty executable.
13986             if test "${lt_cv_aix_libpath+set}" = set; then
13987   aix_libpath=$lt_cv_aix_libpath
13988 else
13989   if ${lt_cv_aix_libpath__CXX+:} false; then :
13990   $as_echo_n "(cached) " >&6
13991 else
13992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994
13995 int
13996 main ()
13997 {
13998
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_cxx_try_link "$LINENO"; then :
14004
14005   lt_aix_libpath_sed='
14006       /Import File Strings/,/^$/ {
14007           /^0/ {
14008               s/^0  *\([^ ]*\) *$/\1/
14009               p
14010           }
14011       }'
14012   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14013   # Check for a 64-bit object if we didn't find anything.
14014   if test -z "$lt_cv_aix_libpath__CXX"; then
14015     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14016   fi
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext \
14019     conftest$ac_exeext conftest.$ac_ext
14020   if test -z "$lt_cv_aix_libpath__CXX"; then
14021     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14022   fi
14023
14024 fi
14025
14026   aix_libpath=$lt_cv_aix_libpath__CXX
14027 fi
14028
14029             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14030             # Warning - without using the other run time loading flags,
14031             # -berok will link without error, but may produce a broken library.
14032             no_undefined_flag_CXX=' ${wl}-bernotok'
14033             allow_undefined_flag_CXX=' ${wl}-berok'
14034             if test "$with_gnu_ld" = yes; then
14035               # We only use this code for GNU lds that support --whole-archive.
14036               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14037             else
14038               # Exported symbols can be pulled into shared objects from archives
14039               whole_archive_flag_spec_CXX='$convenience'
14040             fi
14041             archive_cmds_need_lc_CXX=yes
14042             # This is similar to how AIX traditionally builds its shared
14043             # libraries.
14044             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'
14045           fi
14046         fi
14047         ;;
14048
14049       beos*)
14050         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14051           allow_undefined_flag_CXX=unsupported
14052           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14053           # support --undefined.  This deserves some investigation.  FIXME
14054           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055         else
14056           ld_shlibs_CXX=no
14057         fi
14058         ;;
14059
14060       chorus*)
14061         case $cc_basename in
14062           *)
14063           # FIXME: insert proper C++ library support
14064           ld_shlibs_CXX=no
14065           ;;
14066         esac
14067         ;;
14068
14069       cygwin* | mingw* | pw32* | cegcc*)
14070         case $GXX,$cc_basename in
14071         ,cl* | no,cl*)
14072           # Native MSVC
14073           # hardcode_libdir_flag_spec is actually meaningless, as there is
14074           # no search path for DLLs.
14075           hardcode_libdir_flag_spec_CXX=' '
14076           allow_undefined_flag_CXX=unsupported
14077           always_export_symbols_CXX=yes
14078           file_list_spec_CXX='@'
14079           # Tell ltmain to make .lib files, not .a files.
14080           libext=lib
14081           # Tell ltmain to make .dll files, not .so files.
14082           shrext_cmds=".dll"
14083           # FIXME: Setting linknames here is a bad hack.
14084           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14085           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14087             else
14088               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14089             fi~
14090             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14091             linknames='
14092           # The linker will not automatically build a static lib if we build a DLL.
14093           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14094           enable_shared_with_static_runtimes_CXX=yes
14095           # Don't use ranlib
14096           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14097           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14098             lt_tool_outputfile="@TOOL_OUTPUT@"~
14099             case $lt_outputfile in
14100               *.exe|*.EXE) ;;
14101               *)
14102                 lt_outputfile="$lt_outputfile.exe"
14103                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14104                 ;;
14105             esac~
14106             func_to_tool_file "$lt_outputfile"~
14107             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14108               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14109               $RM "$lt_outputfile.manifest";
14110             fi'
14111           ;;
14112         *)
14113           # g++
14114           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14115           # as there is no search path for DLLs.
14116           hardcode_libdir_flag_spec_CXX='-L$libdir'
14117           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14118           allow_undefined_flag_CXX=unsupported
14119           always_export_symbols_CXX=no
14120           enable_shared_with_static_runtimes_CXX=yes
14121
14122           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14123             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'
14124             # If the export-symbols file already is a .def file (1st line
14125             # is EXPORTS), use it as is; otherwise, prepend...
14126             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14127               cp $export_symbols $output_objdir/$soname.def;
14128             else
14129               echo EXPORTS > $output_objdir/$soname.def;
14130               cat $export_symbols >> $output_objdir/$soname.def;
14131             fi~
14132             $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'
14133           else
14134             ld_shlibs_CXX=no
14135           fi
14136           ;;
14137         esac
14138         ;;
14139       darwin* | rhapsody*)
14140
14141
14142   archive_cmds_need_lc_CXX=no
14143   hardcode_direct_CXX=no
14144   hardcode_automatic_CXX=yes
14145   hardcode_shlibpath_var_CXX=unsupported
14146   if test "$lt_cv_ld_force_load" = "yes"; then
14147     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\"`'
14148
14149   else
14150     whole_archive_flag_spec_CXX=''
14151   fi
14152   link_all_deplibs_CXX=yes
14153   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14154   case $cc_basename in
14155      ifort*) _lt_dar_can_shared=yes ;;
14156      *) _lt_dar_can_shared=$GCC ;;
14157   esac
14158   if test "$_lt_dar_can_shared" = "yes"; then
14159     output_verbose_link_cmd=func_echo_all
14160     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}"
14161     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14162     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}"
14163     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}"
14164        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14165       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}"
14166       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}"
14167     fi
14168
14169   else
14170   ld_shlibs_CXX=no
14171   fi
14172
14173         ;;
14174
14175       dgux*)
14176         case $cc_basename in
14177           ec++*)
14178             # FIXME: insert proper C++ library support
14179             ld_shlibs_CXX=no
14180             ;;
14181           ghcx*)
14182             # Green Hills C++ Compiler
14183             # FIXME: insert proper C++ library support
14184             ld_shlibs_CXX=no
14185             ;;
14186           *)
14187             # FIXME: insert proper C++ library support
14188             ld_shlibs_CXX=no
14189             ;;
14190         esac
14191         ;;
14192
14193       freebsd2.*)
14194         # C++ shared libraries reported to be fairly broken before
14195         # switch to ELF
14196         ld_shlibs_CXX=no
14197         ;;
14198
14199       freebsd-elf*)
14200         archive_cmds_need_lc_CXX=no
14201         ;;
14202
14203       freebsd* | dragonfly*)
14204         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14205         # conventions
14206         ld_shlibs_CXX=yes
14207         ;;
14208
14209       gnu*)
14210         ;;
14211
14212       haiku*)
14213         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214         link_all_deplibs_CXX=yes
14215         ;;
14216
14217       hpux9*)
14218         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14219         hardcode_libdir_separator_CXX=:
14220         export_dynamic_flag_spec_CXX='${wl}-E'
14221         hardcode_direct_CXX=yes
14222         hardcode_minus_L_CXX=yes # Not in the search PATH,
14223                                              # but as the default
14224                                              # location of the library.
14225
14226         case $cc_basename in
14227           CC*)
14228             # FIXME: insert proper C++ library support
14229             ld_shlibs_CXX=no
14230             ;;
14231           aCC*)
14232             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'
14233             # Commands to make compiler produce verbose output that lists
14234             # what "hidden" libraries, object files and flags are used when
14235             # linking a shared library.
14236             #
14237             # There doesn't appear to be a way to prevent this compiler from
14238             # explicitly linking system object files so we need to strip them
14239             # from the output so that they don't get included in the library
14240             # dependencies.
14241             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"'
14242             ;;
14243           *)
14244             if test "$GXX" = yes; then
14245               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'
14246             else
14247               # FIXME: insert proper C++ library support
14248               ld_shlibs_CXX=no
14249             fi
14250             ;;
14251         esac
14252         ;;
14253
14254       hpux10*|hpux11*)
14255         if test $with_gnu_ld = no; then
14256           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14257           hardcode_libdir_separator_CXX=:
14258
14259           case $host_cpu in
14260             hppa*64*|ia64*)
14261               ;;
14262             *)
14263               export_dynamic_flag_spec_CXX='${wl}-E'
14264               ;;
14265           esac
14266         fi
14267         case $host_cpu in
14268           hppa*64*|ia64*)
14269             hardcode_direct_CXX=no
14270             hardcode_shlibpath_var_CXX=no
14271             ;;
14272           *)
14273             hardcode_direct_CXX=yes
14274             hardcode_direct_absolute_CXX=yes
14275             hardcode_minus_L_CXX=yes # Not in the search PATH,
14276                                                  # but as the default
14277                                                  # location of the library.
14278             ;;
14279         esac
14280
14281         case $cc_basename in
14282           CC*)
14283             # FIXME: insert proper C++ library support
14284             ld_shlibs_CXX=no
14285             ;;
14286           aCC*)
14287             case $host_cpu in
14288               hppa*64*)
14289                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14290                 ;;
14291               ia64*)
14292                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14293                 ;;
14294               *)
14295                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14296                 ;;
14297             esac
14298             # Commands to make compiler produce verbose output that lists
14299             # what "hidden" libraries, object files and flags are used when
14300             # linking a shared library.
14301             #
14302             # There doesn't appear to be a way to prevent this compiler from
14303             # explicitly linking system object files so we need to strip them
14304             # from the output so that they don't get included in the library
14305             # dependencies.
14306             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"'
14307             ;;
14308           *)
14309             if test "$GXX" = yes; then
14310               if test $with_gnu_ld = no; then
14311                 case $host_cpu in
14312                   hppa*64*)
14313                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14314                     ;;
14315                   ia64*)
14316                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14317                     ;;
14318                   *)
14319                     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'
14320                     ;;
14321                 esac
14322               fi
14323             else
14324               # FIXME: insert proper C++ library support
14325               ld_shlibs_CXX=no
14326             fi
14327             ;;
14328         esac
14329         ;;
14330
14331       interix[3-9]*)
14332         hardcode_direct_CXX=no
14333         hardcode_shlibpath_var_CXX=no
14334         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14335         export_dynamic_flag_spec_CXX='${wl}-E'
14336         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14337         # Instead, shared libraries are loaded at an image base (0x10000000 by
14338         # default) and relocated if they conflict, which is a slow very memory
14339         # consuming and fragmenting process.  To avoid this, we pick a random,
14340         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14341         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14342         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'
14343         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'
14344         ;;
14345       irix5* | irix6*)
14346         case $cc_basename in
14347           CC*)
14348             # SGI C++
14349             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'
14350
14351             # Archives containing C++ object files must be created using
14352             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14353             # necessary to make sure instantiated templates are included
14354             # in the archive.
14355             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14356             ;;
14357           *)
14358             if test "$GXX" = yes; then
14359               if test "$with_gnu_ld" = no; then
14360                 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'
14361               else
14362                 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'
14363               fi
14364             fi
14365             link_all_deplibs_CXX=yes
14366             ;;
14367         esac
14368         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14369         hardcode_libdir_separator_CXX=:
14370         inherit_rpath_CXX=yes
14371         ;;
14372
14373       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14374         case $cc_basename in
14375           KCC*)
14376             # Kuck and Associates, Inc. (KAI) C++ Compiler
14377
14378             # KCC will only create a shared library if the output file
14379             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14380             # to its proper name (with version) after linking.
14381             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'
14382             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'
14383             # Commands to make compiler produce verbose output that lists
14384             # what "hidden" libraries, object files and flags are used when
14385             # linking a shared library.
14386             #
14387             # There doesn't appear to be a way to prevent this compiler from
14388             # explicitly linking system object files so we need to strip them
14389             # from the output so that they don't get included in the library
14390             # dependencies.
14391             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"'
14392
14393             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14394             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14395
14396             # Archives containing C++ object files must be created using
14397             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14398             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14399             ;;
14400           icpc* | ecpc* )
14401             # Intel C++
14402             with_gnu_ld=yes
14403             # version 8.0 and above of icpc choke on multiply defined symbols
14404             # if we add $predep_objects and $postdep_objects, however 7.1 and
14405             # earlier do not add the objects themselves.
14406             case `$CC -V 2>&1` in
14407               *"Version 7."*)
14408                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409                 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'
14410                 ;;
14411               *)  # Version 8.0 or newer
14412                 tmp_idyn=
14413                 case $host_cpu in
14414                   ia64*) tmp_idyn=' -i_dynamic';;
14415                 esac
14416                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417                 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'
14418                 ;;
14419             esac
14420             archive_cmds_need_lc_CXX=no
14421             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14422             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14423             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14424             ;;
14425           pgCC* | pgcpp*)
14426             # Portland Group C++ compiler
14427             case `$CC -V` in
14428             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14429               prelink_cmds_CXX='tpldir=Template.dir~
14430                 rm -rf $tpldir~
14431                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14432                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14433               old_archive_cmds_CXX='tpldir=Template.dir~
14434                 rm -rf $tpldir~
14435                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14436                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14437                 $RANLIB $oldlib'
14438               archive_cmds_CXX='tpldir=Template.dir~
14439                 rm -rf $tpldir~
14440                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14441                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14442               archive_expsym_cmds_CXX='tpldir=Template.dir~
14443                 rm -rf $tpldir~
14444                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14445                 $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'
14446               ;;
14447             *) # Version 6 and above use weak symbols
14448               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14449               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'
14450               ;;
14451             esac
14452
14453             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14454             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14455             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'
14456             ;;
14457           cxx*)
14458             # Compaq C++
14459             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460             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'
14461
14462             runpath_var=LD_RUN_PATH
14463             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14464             hardcode_libdir_separator_CXX=:
14465
14466             # Commands to make compiler produce verbose output that lists
14467             # what "hidden" libraries, object files and flags are used when
14468             # linking a shared library.
14469             #
14470             # There doesn't appear to be a way to prevent this compiler from
14471             # explicitly linking system object files so we need to strip them
14472             # from the output so that they don't get included in the library
14473             # dependencies.
14474             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'
14475             ;;
14476           xl* | mpixl* | bgxl*)
14477             # IBM XL 8.0 on PPC, with GNU ld
14478             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14479             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14480             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481             if test "x$supports_anon_versioning" = xyes; then
14482               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14483                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484                 echo "local: *; };" >> $output_objdir/$libname.ver~
14485                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14486             fi
14487             ;;
14488           *)
14489             case `$CC -V 2>&1 | sed 5q` in
14490             *Sun\ C*)
14491               # Sun C++ 5.9
14492               no_undefined_flag_CXX=' -zdefs'
14493               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494               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'
14495               hardcode_libdir_flag_spec_CXX='-R$libdir'
14496               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'
14497               compiler_needs_object_CXX=yes
14498
14499               # Not sure whether something based on
14500               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14501               # would be better.
14502               output_verbose_link_cmd='func_echo_all'
14503
14504               # Archives containing C++ object files must be created using
14505               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14506               # necessary to make sure instantiated templates are included
14507               # in the archive.
14508               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14509               ;;
14510             esac
14511             ;;
14512         esac
14513         ;;
14514
14515       lynxos*)
14516         # FIXME: insert proper C++ library support
14517         ld_shlibs_CXX=no
14518         ;;
14519
14520       m88k*)
14521         # FIXME: insert proper C++ library support
14522         ld_shlibs_CXX=no
14523         ;;
14524
14525       mvs*)
14526         case $cc_basename in
14527           cxx*)
14528             # FIXME: insert proper C++ library support
14529             ld_shlibs_CXX=no
14530             ;;
14531           *)
14532             # FIXME: insert proper C++ library support
14533             ld_shlibs_CXX=no
14534             ;;
14535         esac
14536         ;;
14537
14538       netbsd*)
14539         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14540           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14541           wlarc=
14542           hardcode_libdir_flag_spec_CXX='-R$libdir'
14543           hardcode_direct_CXX=yes
14544           hardcode_shlibpath_var_CXX=no
14545         fi
14546         # Workaround some broken pre-1.5 toolchains
14547         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14548         ;;
14549
14550       *nto* | *qnx*)
14551         ld_shlibs_CXX=yes
14552         ;;
14553
14554       openbsd2*)
14555         # C++ shared libraries are fairly broken
14556         ld_shlibs_CXX=no
14557         ;;
14558
14559       openbsd*)
14560         if test -f /usr/libexec/ld.so; then
14561           hardcode_direct_CXX=yes
14562           hardcode_shlibpath_var_CXX=no
14563           hardcode_direct_absolute_CXX=yes
14564           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14565           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14566           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14567             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14568             export_dynamic_flag_spec_CXX='${wl}-E'
14569             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14570           fi
14571           output_verbose_link_cmd=func_echo_all
14572         else
14573           ld_shlibs_CXX=no
14574         fi
14575         ;;
14576
14577       osf3* | osf4* | osf5*)
14578         case $cc_basename in
14579           KCC*)
14580             # Kuck and Associates, Inc. (KAI) C++ Compiler
14581
14582             # KCC will only create a shared library if the output file
14583             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14584             # to its proper name (with version) after linking.
14585             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'
14586
14587             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14588             hardcode_libdir_separator_CXX=:
14589
14590             # Archives containing C++ object files must be created using
14591             # the KAI C++ compiler.
14592             case $host in
14593               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14594               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14595             esac
14596             ;;
14597           RCC*)
14598             # Rational C++ 2.4.1
14599             # FIXME: insert proper C++ library support
14600             ld_shlibs_CXX=no
14601             ;;
14602           cxx*)
14603             case $host in
14604               osf3*)
14605                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14606                 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'
14607                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14608                 ;;
14609               *)
14610                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14611                 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'
14612                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14613                   echo "-hidden">> $lib.exp~
14614                   $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~
14615                   $RM $lib.exp'
14616                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14617                 ;;
14618             esac
14619
14620             hardcode_libdir_separator_CXX=:
14621
14622             # Commands to make compiler produce verbose output that lists
14623             # what "hidden" libraries, object files and flags are used when
14624             # linking a shared library.
14625             #
14626             # There doesn't appear to be a way to prevent this compiler from
14627             # explicitly linking system object files so we need to strip them
14628             # from the output so that they don't get included in the library
14629             # dependencies.
14630             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"'
14631             ;;
14632           *)
14633             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14634               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14635               case $host in
14636                 osf3*)
14637                   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'
14638                   ;;
14639                 *)
14640                   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'
14641                   ;;
14642               esac
14643
14644               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14645               hardcode_libdir_separator_CXX=:
14646
14647               # Commands to make compiler produce verbose output that lists
14648               # what "hidden" libraries, object files and flags are used when
14649               # linking a shared library.
14650               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14651
14652             else
14653               # FIXME: insert proper C++ library support
14654               ld_shlibs_CXX=no
14655             fi
14656             ;;
14657         esac
14658         ;;
14659
14660       psos*)
14661         # FIXME: insert proper C++ library support
14662         ld_shlibs_CXX=no
14663         ;;
14664
14665       sunos4*)
14666         case $cc_basename in
14667           CC*)
14668             # Sun C++ 4.x
14669             # FIXME: insert proper C++ library support
14670             ld_shlibs_CXX=no
14671             ;;
14672           lcc*)
14673             # Lucid
14674             # FIXME: insert proper C++ library support
14675             ld_shlibs_CXX=no
14676             ;;
14677           *)
14678             # FIXME: insert proper C++ library support
14679             ld_shlibs_CXX=no
14680             ;;
14681         esac
14682         ;;
14683
14684       solaris*)
14685         case $cc_basename in
14686           CC* | sunCC*)
14687             # Sun C++ 4.2, 5.x and Centerline C++
14688             archive_cmds_need_lc_CXX=yes
14689             no_undefined_flag_CXX=' -zdefs'
14690             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14691             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14692               $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'
14693
14694             hardcode_libdir_flag_spec_CXX='-R$libdir'
14695             hardcode_shlibpath_var_CXX=no
14696             case $host_os in
14697               solaris2.[0-5] | solaris2.[0-5].*) ;;
14698               *)
14699                 # The compiler driver will combine and reorder linker options,
14700                 # but understands `-z linker_flag'.
14701                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14702                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14703                 ;;
14704             esac
14705             link_all_deplibs_CXX=yes
14706
14707             output_verbose_link_cmd='func_echo_all'
14708
14709             # Archives containing C++ object files must be created using
14710             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14711             # necessary to make sure instantiated templates are included
14712             # in the archive.
14713             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14714             ;;
14715           gcx*)
14716             # Green Hills C++ Compiler
14717             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14718
14719             # The C++ compiler must be used to create the archive.
14720             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14721             ;;
14722           *)
14723             # GNU C++ compiler with Solaris linker
14724             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14725               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14726               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14727                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14728                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14730
14731                 # Commands to make compiler produce verbose output that lists
14732                 # what "hidden" libraries, object files and flags are used when
14733                 # linking a shared library.
14734                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14735               else
14736                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14737                 # platform.
14738                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14739                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14740                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14741
14742                 # Commands to make compiler produce verbose output that lists
14743                 # what "hidden" libraries, object files and flags are used when
14744                 # linking a shared library.
14745                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14746               fi
14747
14748               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14749               case $host_os in
14750                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14751                 *)
14752                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14753                   ;;
14754               esac
14755             fi
14756             ;;
14757         esac
14758         ;;
14759
14760     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14761       no_undefined_flag_CXX='${wl}-z,text'
14762       archive_cmds_need_lc_CXX=no
14763       hardcode_shlibpath_var_CXX=no
14764       runpath_var='LD_RUN_PATH'
14765
14766       case $cc_basename in
14767         CC*)
14768           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14769           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14770           ;;
14771         *)
14772           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14773           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14774           ;;
14775       esac
14776       ;;
14777
14778       sysv5* | sco3.2v5* | sco5v6*)
14779         # Note: We can NOT use -z defs as we might desire, because we do not
14780         # link with -lc, and that would cause any symbols used from libc to
14781         # always be unresolved, which means just about no library would
14782         # ever link correctly.  If we're not using GNU ld we use -z text
14783         # though, which does catch some bad symbols but isn't as heavy-handed
14784         # as -z defs.
14785         no_undefined_flag_CXX='${wl}-z,text'
14786         allow_undefined_flag_CXX='${wl}-z,nodefs'
14787         archive_cmds_need_lc_CXX=no
14788         hardcode_shlibpath_var_CXX=no
14789         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14790         hardcode_libdir_separator_CXX=':'
14791         link_all_deplibs_CXX=yes
14792         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14793         runpath_var='LD_RUN_PATH'
14794
14795         case $cc_basename in
14796           CC*)
14797             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14800               '"$old_archive_cmds_CXX"
14801             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14802               '"$reload_cmds_CXX"
14803             ;;
14804           *)
14805             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14806             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14807             ;;
14808         esac
14809       ;;
14810
14811       tandem*)
14812         case $cc_basename in
14813           NCC*)
14814             # NonStop-UX NCC 3.20
14815             # FIXME: insert proper C++ library support
14816             ld_shlibs_CXX=no
14817             ;;
14818           *)
14819             # FIXME: insert proper C++ library support
14820             ld_shlibs_CXX=no
14821             ;;
14822         esac
14823         ;;
14824
14825       vxworks*)
14826         # FIXME: insert proper C++ library support
14827         ld_shlibs_CXX=no
14828         ;;
14829
14830       *)
14831         # FIXME: insert proper C++ library support
14832         ld_shlibs_CXX=no
14833         ;;
14834     esac
14835
14836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14837 $as_echo "$ld_shlibs_CXX" >&6; }
14838     test "$ld_shlibs_CXX" = no && can_build_shared=no
14839
14840     GCC_CXX="$GXX"
14841     LD_CXX="$LD"
14842
14843     ## CAVEAT EMPTOR:
14844     ## There is no encapsulation within the following macros, do not change
14845     ## the running order or otherwise move them around unless you know exactly
14846     ## what you are doing...
14847     # Dependencies to place before and after the object being linked:
14848 predep_objects_CXX=
14849 postdep_objects_CXX=
14850 predeps_CXX=
14851 postdeps_CXX=
14852 compiler_lib_search_path_CXX=
14853
14854 cat > conftest.$ac_ext <<_LT_EOF
14855 class Foo
14856 {
14857 public:
14858   Foo (void) { a = 0; }
14859 private:
14860   int a;
14861 };
14862 _LT_EOF
14863
14864
14865 _lt_libdeps_save_CFLAGS=$CFLAGS
14866 case "$CC $CFLAGS " in #(
14867 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14868 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14869 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14870 esac
14871
14872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14873   (eval $ac_compile) 2>&5
14874   ac_status=$?
14875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876   test $ac_status = 0; }; then
14877   # Parse the compiler output and extract the necessary
14878   # objects, libraries and library flags.
14879
14880   # Sentinel used to keep track of whether or not we are before
14881   # the conftest object file.
14882   pre_test_object_deps_done=no
14883
14884   for p in `eval "$output_verbose_link_cmd"`; do
14885     case ${prev}${p} in
14886
14887     -L* | -R* | -l*)
14888        # Some compilers place space between "-{L,R}" and the path.
14889        # Remove the space.
14890        if test $p = "-L" ||
14891           test $p = "-R"; then
14892          prev=$p
14893          continue
14894        fi
14895
14896        # Expand the sysroot to ease extracting the directories later.
14897        if test -z "$prev"; then
14898          case $p in
14899          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14900          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14901          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14902          esac
14903        fi
14904        case $p in
14905        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14906        esac
14907        if test "$pre_test_object_deps_done" = no; then
14908          case ${prev} in
14909          -L | -R)
14910            # Internal compiler library paths should come after those
14911            # provided the user.  The postdeps already come after the
14912            # user supplied libs so there is no need to process them.
14913            if test -z "$compiler_lib_search_path_CXX"; then
14914              compiler_lib_search_path_CXX="${prev}${p}"
14915            else
14916              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14917            fi
14918            ;;
14919          # The "-l" case would never come before the object being
14920          # linked, so don't bother handling this case.
14921          esac
14922        else
14923          if test -z "$postdeps_CXX"; then
14924            postdeps_CXX="${prev}${p}"
14925          else
14926            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14927          fi
14928        fi
14929        prev=
14930        ;;
14931
14932     *.lto.$objext) ;; # Ignore GCC LTO objects
14933     *.$objext)
14934        # This assumes that the test object file only shows up
14935        # once in the compiler output.
14936        if test "$p" = "conftest.$objext"; then
14937          pre_test_object_deps_done=yes
14938          continue
14939        fi
14940
14941        if test "$pre_test_object_deps_done" = no; then
14942          if test -z "$predep_objects_CXX"; then
14943            predep_objects_CXX="$p"
14944          else
14945            predep_objects_CXX="$predep_objects_CXX $p"
14946          fi
14947        else
14948          if test -z "$postdep_objects_CXX"; then
14949            postdep_objects_CXX="$p"
14950          else
14951            postdep_objects_CXX="$postdep_objects_CXX $p"
14952          fi
14953        fi
14954        ;;
14955
14956     *) ;; # Ignore the rest.
14957
14958     esac
14959   done
14960
14961   # Clean up.
14962   rm -f a.out a.exe
14963 else
14964   echo "libtool.m4: error: problem compiling CXX test program"
14965 fi
14966
14967 $RM -f confest.$objext
14968 CFLAGS=$_lt_libdeps_save_CFLAGS
14969
14970 # PORTME: override above test on systems where it is broken
14971 case $host_os in
14972 interix[3-9]*)
14973   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14974   # hack all around it, let's just trust "g++" to DTRT.
14975   predep_objects_CXX=
14976   postdep_objects_CXX=
14977   postdeps_CXX=
14978   ;;
14979
14980 linux*)
14981   case `$CC -V 2>&1 | sed 5q` in
14982   *Sun\ C*)
14983     # Sun C++ 5.9
14984
14985     # The more standards-conforming stlport4 library is
14986     # incompatible with the Cstd library. Avoid specifying
14987     # it if it's in CXXFLAGS. Ignore libCrun as
14988     # -library=stlport4 depends on it.
14989     case " $CXX $CXXFLAGS " in
14990     *" -library=stlport4 "*)
14991       solaris_use_stlport4=yes
14992       ;;
14993     esac
14994
14995     if test "$solaris_use_stlport4" != yes; then
14996       postdeps_CXX='-library=Cstd -library=Crun'
14997     fi
14998     ;;
14999   esac
15000   ;;
15001
15002 solaris*)
15003   case $cc_basename in
15004   CC* | sunCC*)
15005     # The more standards-conforming stlport4 library is
15006     # incompatible with the Cstd library. Avoid specifying
15007     # it if it's in CXXFLAGS. Ignore libCrun as
15008     # -library=stlport4 depends on it.
15009     case " $CXX $CXXFLAGS " in
15010     *" -library=stlport4 "*)
15011       solaris_use_stlport4=yes
15012       ;;
15013     esac
15014
15015     # Adding this requires a known-good setup of shared libraries for
15016     # Sun compiler versions before 5.6, else PIC objects from an old
15017     # archive will be linked into the output, leading to subtle bugs.
15018     if test "$solaris_use_stlport4" != yes; then
15019       postdeps_CXX='-library=Cstd -library=Crun'
15020     fi
15021     ;;
15022   esac
15023   ;;
15024 esac
15025
15026
15027 case " $postdeps_CXX " in
15028 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15029 esac
15030  compiler_lib_search_dirs_CXX=
15031 if test -n "${compiler_lib_search_path_CXX}"; then
15032  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15033 fi
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065     lt_prog_compiler_wl_CXX=
15066 lt_prog_compiler_pic_CXX=
15067 lt_prog_compiler_static_CXX=
15068
15069
15070   # C++ specific cases for pic, static, wl, etc.
15071   if test "$GXX" = yes; then
15072     lt_prog_compiler_wl_CXX='-Wl,'
15073     lt_prog_compiler_static_CXX='-static'
15074
15075     case $host_os in
15076     aix*)
15077       # All AIX code is PIC.
15078       if test "$host_cpu" = ia64; then
15079         # AIX 5 now supports IA64 processor
15080         lt_prog_compiler_static_CXX='-Bstatic'
15081       fi
15082       ;;
15083
15084     amigaos*)
15085       case $host_cpu in
15086       powerpc)
15087             # see comment about AmigaOS4 .so support
15088             lt_prog_compiler_pic_CXX='-fPIC'
15089         ;;
15090       m68k)
15091             # FIXME: we need at least 68020 code to build shared libraries, but
15092             # adding the `-m68020' flag to GCC prevents building anything better,
15093             # like `-m68040'.
15094             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15095         ;;
15096       esac
15097       ;;
15098
15099     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15100       # PIC is the default for these OSes.
15101       ;;
15102     mingw* | cygwin* | os2* | pw32* | cegcc*)
15103       # This hack is so that the source file can tell whether it is being
15104       # built for inclusion in a dll (and should export symbols for example).
15105       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15106       # (--disable-auto-import) libraries
15107       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15108       ;;
15109     darwin* | rhapsody*)
15110       # PIC is the default on this platform
15111       # Common symbols not allowed in MH_DYLIB files
15112       lt_prog_compiler_pic_CXX='-fno-common'
15113       ;;
15114     *djgpp*)
15115       # DJGPP does not support shared libraries at all
15116       lt_prog_compiler_pic_CXX=
15117       ;;
15118     haiku*)
15119       # PIC is the default for Haiku.
15120       # The "-static" flag exists, but is broken.
15121       lt_prog_compiler_static_CXX=
15122       ;;
15123     interix[3-9]*)
15124       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15125       # Instead, we relocate shared libraries at runtime.
15126       ;;
15127     sysv4*MP*)
15128       if test -d /usr/nec; then
15129         lt_prog_compiler_pic_CXX=-Kconform_pic
15130       fi
15131       ;;
15132     hpux*)
15133       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15134       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15135       # sets the default TLS model and affects inlining.
15136       case $host_cpu in
15137       hppa*64*)
15138         ;;
15139       *)
15140         lt_prog_compiler_pic_CXX='-fPIC'
15141         ;;
15142       esac
15143       ;;
15144     *qnx* | *nto*)
15145       # QNX uses GNU C++, but need to define -shared option too, otherwise
15146       # it will coredump.
15147       lt_prog_compiler_pic_CXX='-fPIC -shared'
15148       ;;
15149     *)
15150       lt_prog_compiler_pic_CXX='-fPIC'
15151       ;;
15152     esac
15153   else
15154     case $host_os in
15155       aix[4-9]*)
15156         # All AIX code is PIC.
15157         if test "$host_cpu" = ia64; then
15158           # AIX 5 now supports IA64 processor
15159           lt_prog_compiler_static_CXX='-Bstatic'
15160         else
15161           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15162         fi
15163         ;;
15164       chorus*)
15165         case $cc_basename in
15166         cxch68*)
15167           # Green Hills C++ Compiler
15168           # _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"
15169           ;;
15170         esac
15171         ;;
15172       mingw* | cygwin* | os2* | pw32* | cegcc*)
15173         # This hack is so that the source file can tell whether it is being
15174         # built for inclusion in a dll (and should export symbols for example).
15175         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15176         ;;
15177       dgux*)
15178         case $cc_basename in
15179           ec++*)
15180             lt_prog_compiler_pic_CXX='-KPIC'
15181             ;;
15182           ghcx*)
15183             # Green Hills C++ Compiler
15184             lt_prog_compiler_pic_CXX='-pic'
15185             ;;
15186           *)
15187             ;;
15188         esac
15189         ;;
15190       freebsd* | dragonfly*)
15191         # FreeBSD uses GNU C++
15192         ;;
15193       hpux9* | hpux10* | hpux11*)
15194         case $cc_basename in
15195           CC*)
15196             lt_prog_compiler_wl_CXX='-Wl,'
15197             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15198             if test "$host_cpu" != ia64; then
15199               lt_prog_compiler_pic_CXX='+Z'
15200             fi
15201             ;;
15202           aCC*)
15203             lt_prog_compiler_wl_CXX='-Wl,'
15204             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15205             case $host_cpu in
15206             hppa*64*|ia64*)
15207               # +Z the default
15208               ;;
15209             *)
15210               lt_prog_compiler_pic_CXX='+Z'
15211               ;;
15212             esac
15213             ;;
15214           *)
15215             ;;
15216         esac
15217         ;;
15218       interix*)
15219         # This is c89, which is MS Visual C++ (no shared libs)
15220         # Anyone wants to do a port?
15221         ;;
15222       irix5* | irix6* | nonstopux*)
15223         case $cc_basename in
15224           CC*)
15225             lt_prog_compiler_wl_CXX='-Wl,'
15226             lt_prog_compiler_static_CXX='-non_shared'
15227             # CC pic flag -KPIC is the default.
15228             ;;
15229           *)
15230             ;;
15231         esac
15232         ;;
15233       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15234         case $cc_basename in
15235           KCC*)
15236             # KAI C++ Compiler
15237             lt_prog_compiler_wl_CXX='--backend -Wl,'
15238             lt_prog_compiler_pic_CXX='-fPIC'
15239             ;;
15240           ecpc* )
15241             # old Intel C++ for x86_64 which still supported -KPIC.
15242             lt_prog_compiler_wl_CXX='-Wl,'
15243             lt_prog_compiler_pic_CXX='-KPIC'
15244             lt_prog_compiler_static_CXX='-static'
15245             ;;
15246           icpc* )
15247             # Intel C++, used to be incompatible with GCC.
15248             # ICC 10 doesn't accept -KPIC any more.
15249             lt_prog_compiler_wl_CXX='-Wl,'
15250             lt_prog_compiler_pic_CXX='-fPIC'
15251             lt_prog_compiler_static_CXX='-static'
15252             ;;
15253           pgCC* | pgcpp*)
15254             # Portland Group C++ compiler
15255             lt_prog_compiler_wl_CXX='-Wl,'
15256             lt_prog_compiler_pic_CXX='-fpic'
15257             lt_prog_compiler_static_CXX='-Bstatic'
15258             ;;
15259           cxx*)
15260             # Compaq C++
15261             # Make sure the PIC flag is empty.  It appears that all Alpha
15262             # Linux and Compaq Tru64 Unix objects are PIC.
15263             lt_prog_compiler_pic_CXX=
15264             lt_prog_compiler_static_CXX='-non_shared'
15265             ;;
15266           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15267             # IBM XL 8.0, 9.0 on PPC and BlueGene
15268             lt_prog_compiler_wl_CXX='-Wl,'
15269             lt_prog_compiler_pic_CXX='-qpic'
15270             lt_prog_compiler_static_CXX='-qstaticlink'
15271             ;;
15272           *)
15273             case `$CC -V 2>&1 | sed 5q` in
15274             *Sun\ C*)
15275               # Sun C++ 5.9
15276               lt_prog_compiler_pic_CXX='-KPIC'
15277               lt_prog_compiler_static_CXX='-Bstatic'
15278               lt_prog_compiler_wl_CXX='-Qoption ld '
15279               ;;
15280             esac
15281             ;;
15282         esac
15283         ;;
15284       lynxos*)
15285         ;;
15286       m88k*)
15287         ;;
15288       mvs*)
15289         case $cc_basename in
15290           cxx*)
15291             lt_prog_compiler_pic_CXX='-W c,exportall'
15292             ;;
15293           *)
15294             ;;
15295         esac
15296         ;;
15297       netbsd* | netbsdelf*-gnu)
15298         ;;
15299       *qnx* | *nto*)
15300         # QNX uses GNU C++, but need to define -shared option too, otherwise
15301         # it will coredump.
15302         lt_prog_compiler_pic_CXX='-fPIC -shared'
15303         ;;
15304       osf3* | osf4* | osf5*)
15305         case $cc_basename in
15306           KCC*)
15307             lt_prog_compiler_wl_CXX='--backend -Wl,'
15308             ;;
15309           RCC*)
15310             # Rational C++ 2.4.1
15311             lt_prog_compiler_pic_CXX='-pic'
15312             ;;
15313           cxx*)
15314             # Digital/Compaq C++
15315             lt_prog_compiler_wl_CXX='-Wl,'
15316             # Make sure the PIC flag is empty.  It appears that all Alpha
15317             # Linux and Compaq Tru64 Unix objects are PIC.
15318             lt_prog_compiler_pic_CXX=
15319             lt_prog_compiler_static_CXX='-non_shared'
15320             ;;
15321           *)
15322             ;;
15323         esac
15324         ;;
15325       psos*)
15326         ;;
15327       solaris*)
15328         case $cc_basename in
15329           CC* | sunCC*)
15330             # Sun C++ 4.2, 5.x and Centerline C++
15331             lt_prog_compiler_pic_CXX='-KPIC'
15332             lt_prog_compiler_static_CXX='-Bstatic'
15333             lt_prog_compiler_wl_CXX='-Qoption ld '
15334             ;;
15335           gcx*)
15336             # Green Hills C++ Compiler
15337             lt_prog_compiler_pic_CXX='-PIC'
15338             ;;
15339           *)
15340             ;;
15341         esac
15342         ;;
15343       sunos4*)
15344         case $cc_basename in
15345           CC*)
15346             # Sun C++ 4.x
15347             lt_prog_compiler_pic_CXX='-pic'
15348             lt_prog_compiler_static_CXX='-Bstatic'
15349             ;;
15350           lcc*)
15351             # Lucid
15352             lt_prog_compiler_pic_CXX='-pic'
15353             ;;
15354           *)
15355             ;;
15356         esac
15357         ;;
15358       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15359         case $cc_basename in
15360           CC*)
15361             lt_prog_compiler_wl_CXX='-Wl,'
15362             lt_prog_compiler_pic_CXX='-KPIC'
15363             lt_prog_compiler_static_CXX='-Bstatic'
15364             ;;
15365         esac
15366         ;;
15367       tandem*)
15368         case $cc_basename in
15369           NCC*)
15370             # NonStop-UX NCC 3.20
15371             lt_prog_compiler_pic_CXX='-KPIC'
15372             ;;
15373           *)
15374             ;;
15375         esac
15376         ;;
15377       vxworks*)
15378         ;;
15379       *)
15380         lt_prog_compiler_can_build_shared_CXX=no
15381         ;;
15382     esac
15383   fi
15384
15385 case $host_os in
15386   # For platforms which do not support PIC, -DPIC is meaningless:
15387   *djgpp*)
15388     lt_prog_compiler_pic_CXX=
15389     ;;
15390   *)
15391     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15392     ;;
15393 esac
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15397 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15403 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15404 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15405
15406 #
15407 # Check to make sure the PIC flag actually works.
15408 #
15409 if test -n "$lt_prog_compiler_pic_CXX"; then
15410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15412 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15413   $as_echo_n "(cached) " >&6
15414 else
15415   lt_cv_prog_compiler_pic_works_CXX=no
15416    ac_outfile=conftest.$ac_objext
15417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15418    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15419    # Insert the option either (1) after the last *FLAGS variable, or
15420    # (2) before a word containing "conftest.", or (3) at the end.
15421    # Note that $ac_compile itself does not contain backslashes and begins
15422    # with a dollar sign (not a hyphen), so the echo should work correctly.
15423    # The option is referenced via a variable to avoid confusing sed.
15424    lt_compile=`echo "$ac_compile" | $SED \
15425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15427    -e 's:$: $lt_compiler_flag:'`
15428    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15429    (eval "$lt_compile" 2>conftest.err)
15430    ac_status=$?
15431    cat conftest.err >&5
15432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433    if (exit $ac_status) && test -s "$ac_outfile"; then
15434      # The compiler can only warn and ignore the option if not recognized
15435      # So say no if there are warnings other than the usual output.
15436      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15439        lt_cv_prog_compiler_pic_works_CXX=yes
15440      fi
15441    fi
15442    $RM conftest*
15443
15444 fi
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15446 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15447
15448 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15449     case $lt_prog_compiler_pic_CXX in
15450      "" | " "*) ;;
15451      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15452      esac
15453 else
15454     lt_prog_compiler_pic_CXX=
15455      lt_prog_compiler_can_build_shared_CXX=no
15456 fi
15457
15458 fi
15459
15460
15461
15462
15463
15464 #
15465 # Check to make sure the static flag actually works.
15466 #
15467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15470 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   lt_cv_prog_compiler_static_works_CXX=no
15474    save_LDFLAGS="$LDFLAGS"
15475    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15476    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15477    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15478      # The linker can only warn and ignore the option if not recognized
15479      # So say no if there are warnings
15480      if test -s conftest.err; then
15481        # Append any errors to the config.log.
15482        cat conftest.err 1>&5
15483        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15484        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15485        if diff conftest.exp conftest.er2 >/dev/null; then
15486          lt_cv_prog_compiler_static_works_CXX=yes
15487        fi
15488      else
15489        lt_cv_prog_compiler_static_works_CXX=yes
15490      fi
15491    fi
15492    $RM -r conftest*
15493    LDFLAGS="$save_LDFLAGS"
15494
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15498
15499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15500     :
15501 else
15502     lt_prog_compiler_static_CXX=
15503 fi
15504
15505
15506
15507
15508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15510 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15511   $as_echo_n "(cached) " >&6
15512 else
15513   lt_cv_prog_compiler_c_o_CXX=no
15514    $RM -r conftest 2>/dev/null
15515    mkdir conftest
15516    cd conftest
15517    mkdir out
15518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15519
15520    lt_compiler_flag="-o out/conftest2.$ac_objext"
15521    # Insert the option either (1) after the last *FLAGS variable, or
15522    # (2) before a word containing "conftest.", or (3) at the end.
15523    # Note that $ac_compile itself does not contain backslashes and begins
15524    # with a dollar sign (not a hyphen), so the echo should work correctly.
15525    lt_compile=`echo "$ac_compile" | $SED \
15526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15528    -e 's:$: $lt_compiler_flag:'`
15529    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15530    (eval "$lt_compile" 2>out/conftest.err)
15531    ac_status=$?
15532    cat out/conftest.err >&5
15533    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15535    then
15536      # The compiler can only warn and ignore the option if not recognized
15537      # So say no if there are warnings
15538      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15541        lt_cv_prog_compiler_c_o_CXX=yes
15542      fi
15543    fi
15544    chmod u+w . 2>&5
15545    $RM conftest*
15546    # SGI C++ compiler will create directory out/ii_files/ for
15547    # template instantiation
15548    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15549    $RM out/* && rmdir out
15550    cd ..
15551    $RM -r conftest
15552    $RM conftest*
15553
15554 fi
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15557
15558
15559
15560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15563   $as_echo_n "(cached) " >&6
15564 else
15565   lt_cv_prog_compiler_c_o_CXX=no
15566    $RM -r conftest 2>/dev/null
15567    mkdir conftest
15568    cd conftest
15569    mkdir out
15570    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15571
15572    lt_compiler_flag="-o out/conftest2.$ac_objext"
15573    # Insert the option either (1) after the last *FLAGS variable, or
15574    # (2) before a word containing "conftest.", or (3) at the end.
15575    # Note that $ac_compile itself does not contain backslashes and begins
15576    # with a dollar sign (not a hyphen), so the echo should work correctly.
15577    lt_compile=`echo "$ac_compile" | $SED \
15578    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580    -e 's:$: $lt_compiler_flag:'`
15581    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15582    (eval "$lt_compile" 2>out/conftest.err)
15583    ac_status=$?
15584    cat out/conftest.err >&5
15585    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15587    then
15588      # The compiler can only warn and ignore the option if not recognized
15589      # So say no if there are warnings
15590      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15591      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15592      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15593        lt_cv_prog_compiler_c_o_CXX=yes
15594      fi
15595    fi
15596    chmod u+w . 2>&5
15597    $RM conftest*
15598    # SGI C++ compiler will create directory out/ii_files/ for
15599    # template instantiation
15600    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15601    $RM out/* && rmdir out
15602    cd ..
15603    $RM -r conftest
15604    $RM conftest*
15605
15606 fi
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15609
15610
15611
15612
15613 hard_links="nottested"
15614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15615   # do not overwrite the value of need_locks provided by the user
15616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15617 $as_echo_n "checking if we can lock with hard links... " >&6; }
15618   hard_links=yes
15619   $RM conftest*
15620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15621   touch conftest.a
15622   ln conftest.a conftest.b 2>&5 || hard_links=no
15623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15625 $as_echo "$hard_links" >&6; }
15626   if test "$hard_links" = no; then
15627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15629     need_locks=warn
15630   fi
15631 else
15632   need_locks=no
15633 fi
15634
15635
15636
15637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15639
15640   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15641   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15642   case $host_os in
15643   aix[4-9]*)
15644     # If we're using GNU nm, then we don't want the "-C" option.
15645     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15646     # Also, AIX nm treats weak defined symbols like other global defined
15647     # symbols, whereas GNU nm marks them as "W".
15648     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15649       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'
15650     else
15651       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'
15652     fi
15653     ;;
15654   pw32*)
15655     export_symbols_cmds_CXX="$ltdll_cmds"
15656     ;;
15657   cygwin* | mingw* | cegcc*)
15658     case $cc_basename in
15659     cl*)
15660       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15661       ;;
15662     *)
15663       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'
15664       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15665       ;;
15666     esac
15667     ;;
15668   linux* | k*bsd*-gnu | gnu*)
15669     link_all_deplibs_CXX=no
15670     ;;
15671   *)
15672     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15673     ;;
15674   esac
15675
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15677 $as_echo "$ld_shlibs_CXX" >&6; }
15678 test "$ld_shlibs_CXX" = no && can_build_shared=no
15679
15680 with_gnu_ld_CXX=$with_gnu_ld
15681
15682
15683
15684
15685
15686
15687 #
15688 # Do we need to explicitly link libc?
15689 #
15690 case "x$archive_cmds_need_lc_CXX" in
15691 x|xyes)
15692   # Assume -lc should be added
15693   archive_cmds_need_lc_CXX=yes
15694
15695   if test "$enable_shared" = yes && test "$GCC" = yes; then
15696     case $archive_cmds_CXX in
15697     *'~'*)
15698       # FIXME: we may have to deal with multi-command sequences.
15699       ;;
15700     '$CC '*)
15701       # Test whether the compiler implicitly links with -lc since on some
15702       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15703       # to ld, don't add -lc before -lgcc.
15704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15706 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15707   $as_echo_n "(cached) " >&6
15708 else
15709   $RM conftest*
15710         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15711
15712         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713   (eval $ac_compile) 2>&5
15714   ac_status=$?
15715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716   test $ac_status = 0; } 2>conftest.err; then
15717           soname=conftest
15718           lib=conftest
15719           libobjs=conftest.$ac_objext
15720           deplibs=
15721           wl=$lt_prog_compiler_wl_CXX
15722           pic_flag=$lt_prog_compiler_pic_CXX
15723           compiler_flags=-v
15724           linker_flags=-v
15725           verstring=
15726           output_objdir=.
15727           libname=conftest
15728           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15729           allow_undefined_flag_CXX=
15730           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15731   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15732   ac_status=$?
15733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734   test $ac_status = 0; }
15735           then
15736             lt_cv_archive_cmds_need_lc_CXX=no
15737           else
15738             lt_cv_archive_cmds_need_lc_CXX=yes
15739           fi
15740           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15741         else
15742           cat conftest.err 1>&5
15743         fi
15744         $RM conftest*
15745
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15748 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15749       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15750       ;;
15751     esac
15752   fi
15753   ;;
15754 esac
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15818 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15819
15820 library_names_spec=
15821 libname_spec='lib$name'
15822 soname_spec=
15823 shrext_cmds=".so"
15824 postinstall_cmds=
15825 postuninstall_cmds=
15826 finish_cmds=
15827 finish_eval=
15828 shlibpath_var=
15829 shlibpath_overrides_runpath=unknown
15830 version_type=none
15831 dynamic_linker="$host_os ld.so"
15832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15833 need_lib_prefix=unknown
15834 hardcode_into_libs=no
15835
15836 # when you set need_version to no, make sure it does not cause -set_version
15837 # flags to be left without arguments
15838 need_version=unknown
15839
15840 case $host_os in
15841 aix3*)
15842   version_type=linux # correct to gnu/linux during the next big refactor
15843   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15844   shlibpath_var=LIBPATH
15845
15846   # AIX 3 has no versioning support, so we append a major version to the name.
15847   soname_spec='${libname}${release}${shared_ext}$major'
15848   ;;
15849
15850 aix[4-9]*)
15851   version_type=linux # correct to gnu/linux during the next big refactor
15852   need_lib_prefix=no
15853   need_version=no
15854   hardcode_into_libs=yes
15855   if test "$host_cpu" = ia64; then
15856     # AIX 5 supports IA64
15857     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15858     shlibpath_var=LD_LIBRARY_PATH
15859   else
15860     # With GCC up to 2.95.x, collect2 would create an import file
15861     # for dependence libraries.  The import file would start with
15862     # the line `#! .'.  This would cause the generated library to
15863     # depend on `.', always an invalid library.  This was fixed in
15864     # development snapshots of GCC prior to 3.0.
15865     case $host_os in
15866       aix4 | aix4.[01] | aix4.[01].*)
15867       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15868            echo ' yes '
15869            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15870         :
15871       else
15872         can_build_shared=no
15873       fi
15874       ;;
15875     esac
15876     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15877     # soname into executable. Probably we can add versioning support to
15878     # collect2, so additional links can be useful in future.
15879     if test "$aix_use_runtimelinking" = yes; then
15880       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15881       # instead of lib<name>.a to let people know that these are not
15882       # typical AIX shared libraries.
15883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884     else
15885       # We preserve .a as extension for shared libraries through AIX4.2
15886       # and later when we are not doing run time linking.
15887       library_names_spec='${libname}${release}.a $libname.a'
15888       soname_spec='${libname}${release}${shared_ext}$major'
15889     fi
15890     shlibpath_var=LIBPATH
15891   fi
15892   ;;
15893
15894 amigaos*)
15895   case $host_cpu in
15896   powerpc)
15897     # Since July 2007 AmigaOS4 officially supports .so libraries.
15898     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900     ;;
15901   m68k)
15902     library_names_spec='$libname.ixlibrary $libname.a'
15903     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15904     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'
15905     ;;
15906   esac
15907   ;;
15908
15909 beos*)
15910   library_names_spec='${libname}${shared_ext}'
15911   dynamic_linker="$host_os ld.so"
15912   shlibpath_var=LIBRARY_PATH
15913   ;;
15914
15915 bsdi[45]*)
15916   version_type=linux # correct to gnu/linux during the next big refactor
15917   need_version=no
15918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919   soname_spec='${libname}${release}${shared_ext}$major'
15920   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15921   shlibpath_var=LD_LIBRARY_PATH
15922   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15923   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15924   # the default ld.so.conf also contains /usr/contrib/lib and
15925   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15926   # libtool to hard-code these into programs
15927   ;;
15928
15929 cygwin* | mingw* | pw32* | cegcc*)
15930   version_type=windows
15931   shrext_cmds=".dll"
15932   need_version=no
15933   need_lib_prefix=no
15934
15935   case $GCC,$cc_basename in
15936   yes,*)
15937     # gcc
15938     library_names_spec='$libname.dll.a'
15939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15940     postinstall_cmds='base_file=`basename \${file}`~
15941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15942       dldir=$destdir/`dirname \$dlpath`~
15943       test -d \$dldir || mkdir -p \$dldir~
15944       $install_prog $dir/$dlname \$dldir/$dlname~
15945       chmod a+x \$dldir/$dlname~
15946       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15947         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15948       fi'
15949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15950       dlpath=$dir/\$dldll~
15951        $RM \$dlpath'
15952     shlibpath_overrides_runpath=yes
15953
15954     case $host_os in
15955     cygwin*)
15956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958
15959       ;;
15960     mingw* | cegcc*)
15961       # MinGW DLLs use traditional 'lib' prefix
15962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963       ;;
15964     pw32*)
15965       # pw32 DLLs use 'pw' prefix rather than 'lib'
15966       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967       ;;
15968     esac
15969     dynamic_linker='Win32 ld.exe'
15970     ;;
15971
15972   *,cl*)
15973     # Native MSVC
15974     libname_spec='$name'
15975     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15976     library_names_spec='${libname}.dll.lib'
15977
15978     case $build_os in
15979     mingw*)
15980       sys_lib_search_path_spec=
15981       lt_save_ifs=$IFS
15982       IFS=';'
15983       for lt_path in $LIB
15984       do
15985         IFS=$lt_save_ifs
15986         # Let DOS variable expansion print the short 8.3 style file name.
15987         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15988         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15989       done
15990       IFS=$lt_save_ifs
15991       # Convert to MSYS style.
15992       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15993       ;;
15994     cygwin*)
15995       # Convert to unix form, then to dos form, then back to unix form
15996       # but this time dos style (no spaces!) so that the unix form looks
15997       # like /cygdrive/c/PROGRA~1:/cygdr...
15998       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15999       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16000       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16001       ;;
16002     *)
16003       sys_lib_search_path_spec="$LIB"
16004       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16005         # It is most probably a Windows format PATH.
16006         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16007       else
16008         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16009       fi
16010       # FIXME: find the short name or the path components, as spaces are
16011       # common. (e.g. "Program Files" -> "PROGRA~1")
16012       ;;
16013     esac
16014
16015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16016     postinstall_cmds='base_file=`basename \${file}`~
16017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16018       dldir=$destdir/`dirname \$dlpath`~
16019       test -d \$dldir || mkdir -p \$dldir~
16020       $install_prog $dir/$dlname \$dldir/$dlname'
16021     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16022       dlpath=$dir/\$dldll~
16023        $RM \$dlpath'
16024     shlibpath_overrides_runpath=yes
16025     dynamic_linker='Win32 link.exe'
16026     ;;
16027
16028   *)
16029     # Assume MSVC wrapper
16030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16031     dynamic_linker='Win32 ld.exe'
16032     ;;
16033   esac
16034   # FIXME: first we should search . and the directory the executable is in
16035   shlibpath_var=PATH
16036   ;;
16037
16038 darwin* | rhapsody*)
16039   dynamic_linker="$host_os dyld"
16040   version_type=darwin
16041   need_lib_prefix=no
16042   need_version=no
16043   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16044   soname_spec='${libname}${release}${major}$shared_ext'
16045   shlibpath_overrides_runpath=yes
16046   shlibpath_var=DYLD_LIBRARY_PATH
16047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16048
16049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16050   ;;
16051
16052 dgux*)
16053   version_type=linux # correct to gnu/linux during the next big refactor
16054   need_lib_prefix=no
16055   need_version=no
16056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16057   soname_spec='${libname}${release}${shared_ext}$major'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   ;;
16060
16061 freebsd* | dragonfly*)
16062   # DragonFly does not have aout.  When/if they implement a new
16063   # versioning mechanism, adjust this.
16064   if test -x /usr/bin/objformat; then
16065     objformat=`/usr/bin/objformat`
16066   else
16067     case $host_os in
16068     freebsd[23].*) objformat=aout ;;
16069     *) objformat=elf ;;
16070     esac
16071   fi
16072   version_type=freebsd-$objformat
16073   case $version_type in
16074     freebsd-elf*)
16075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16076       need_version=no
16077       need_lib_prefix=no
16078       ;;
16079     freebsd-*)
16080       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16081       need_version=yes
16082       ;;
16083   esac
16084   shlibpath_var=LD_LIBRARY_PATH
16085   case $host_os in
16086   freebsd2.*)
16087     shlibpath_overrides_runpath=yes
16088     ;;
16089   freebsd3.[01]* | freebsdelf3.[01]*)
16090     shlibpath_overrides_runpath=yes
16091     hardcode_into_libs=yes
16092     ;;
16093   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16094   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16095     shlibpath_overrides_runpath=no
16096     hardcode_into_libs=yes
16097     ;;
16098   *) # from 4.6 on, and DragonFly
16099     shlibpath_overrides_runpath=yes
16100     hardcode_into_libs=yes
16101     ;;
16102   esac
16103   ;;
16104
16105 gnu*)
16106   version_type=linux # correct to gnu/linux during the next big refactor
16107   need_lib_prefix=no
16108   need_version=no
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16110   soname_spec='${libname}${release}${shared_ext}$major'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   shlibpath_overrides_runpath=no
16113   hardcode_into_libs=yes
16114   ;;
16115
16116 haiku*)
16117   version_type=linux # correct to gnu/linux during the next big refactor
16118   need_lib_prefix=no
16119   need_version=no
16120   dynamic_linker="$host_os runtime_loader"
16121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   shlibpath_var=LIBRARY_PATH
16124   shlibpath_overrides_runpath=yes
16125   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16126   hardcode_into_libs=yes
16127   ;;
16128
16129 hpux9* | hpux10* | hpux11*)
16130   # Give a soname corresponding to the major version so that dld.sl refuses to
16131   # link against other versions.
16132   version_type=sunos
16133   need_lib_prefix=no
16134   need_version=no
16135   case $host_cpu in
16136   ia64*)
16137     shrext_cmds='.so'
16138     hardcode_into_libs=yes
16139     dynamic_linker="$host_os dld.so"
16140     shlibpath_var=LD_LIBRARY_PATH
16141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143     soname_spec='${libname}${release}${shared_ext}$major'
16144     if test "X$HPUX_IA64_MODE" = X32; then
16145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16146     else
16147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16148     fi
16149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16150     ;;
16151   hppa*64*)
16152     shrext_cmds='.sl'
16153     hardcode_into_libs=yes
16154     dynamic_linker="$host_os dld.sl"
16155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158     soname_spec='${libname}${release}${shared_ext}$major'
16159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16161     ;;
16162   *)
16163     shrext_cmds='.sl'
16164     dynamic_linker="$host_os dld.sl"
16165     shlibpath_var=SHLIB_PATH
16166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168     soname_spec='${libname}${release}${shared_ext}$major'
16169     ;;
16170   esac
16171   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16172   postinstall_cmds='chmod 555 $lib'
16173   # or fails outright, so override atomically:
16174   install_override_mode=555
16175   ;;
16176
16177 interix[3-9]*)
16178   version_type=linux # correct to gnu/linux during the next big refactor
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16184   shlibpath_var=LD_LIBRARY_PATH
16185   shlibpath_overrides_runpath=no
16186   hardcode_into_libs=yes
16187   ;;
16188
16189 irix5* | irix6* | nonstopux*)
16190   case $host_os in
16191     nonstopux*) version_type=nonstopux ;;
16192     *)
16193         if test "$lt_cv_prog_gnu_ld" = yes; then
16194                 version_type=linux # correct to gnu/linux during the next big refactor
16195         else
16196                 version_type=irix
16197         fi ;;
16198   esac
16199   need_lib_prefix=no
16200   need_version=no
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16203   case $host_os in
16204   irix5* | nonstopux*)
16205     libsuff= shlibsuff=
16206     ;;
16207   *)
16208     case $LD in # libtool.m4 will add one of these switches to LD
16209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16210       libsuff= shlibsuff= libmagic=32-bit;;
16211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16212       libsuff=32 shlibsuff=N32 libmagic=N32;;
16213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16215     *) libsuff= shlibsuff= libmagic=never-match;;
16216     esac
16217     ;;
16218   esac
16219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16220   shlibpath_overrides_runpath=no
16221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16223   hardcode_into_libs=yes
16224   ;;
16225
16226 # No shared lib support for Linux oldld, aout, or coff.
16227 linux*oldld* | linux*aout* | linux*coff*)
16228   dynamic_linker=no
16229   ;;
16230
16231 # This must be glibc/ELF.
16232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16233   version_type=linux # correct to gnu/linux during the next big refactor
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   shlibpath_overrides_runpath=no
16241
16242   # Some binutils ld are patched to set DT_RUNPATH
16243   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16244   $as_echo_n "(cached) " >&6
16245 else
16246   lt_cv_shlibpath_overrides_runpath=no
16247     save_LDFLAGS=$LDFLAGS
16248     save_libdir=$libdir
16249     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16250          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253
16254 int
16255 main ()
16256 {
16257
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_cxx_try_link "$LINENO"; then :
16263   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16264   lt_cv_shlibpath_overrides_runpath=yes
16265 fi
16266 fi
16267 rm -f core conftest.err conftest.$ac_objext \
16268     conftest$ac_exeext conftest.$ac_ext
16269     LDFLAGS=$save_LDFLAGS
16270     libdir=$save_libdir
16271
16272 fi
16273
16274   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16275
16276   # This implies no fast_install, which is unacceptable.
16277   # Some rework will be needed to allow for fast_install
16278   # before this can be enabled.
16279   hardcode_into_libs=yes
16280
16281   # Append ld.so.conf contents to the search path
16282   if test -f /etc/ld.so.conf; then
16283     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' ' '`
16284     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16285   fi
16286
16287   # We used to test for /lib/ld.so.1 and disable shared libraries on
16288   # powerpc, because MkLinux only supported shared libraries with the
16289   # GNU dynamic linker.  Since this was broken with cross compilers,
16290   # most powerpc-linux boxes support dynamic linking these days and
16291   # people can always --disable-shared, the test was removed, and we
16292   # assume the GNU/Linux dynamic linker is in use.
16293   dynamic_linker='GNU/Linux ld.so'
16294   ;;
16295
16296 netbsdelf*-gnu)
16297   version_type=linux
16298   need_lib_prefix=no
16299   need_version=no
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   shlibpath_overrides_runpath=no
16304   hardcode_into_libs=yes
16305   dynamic_linker='NetBSD ld.elf_so'
16306   ;;
16307
16308 netbsd*)
16309   version_type=sunos
16310   need_lib_prefix=no
16311   need_version=no
16312   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16314     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16315     dynamic_linker='NetBSD (a.out) ld.so'
16316   else
16317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16318     soname_spec='${libname}${release}${shared_ext}$major'
16319     dynamic_linker='NetBSD ld.elf_so'
16320   fi
16321   shlibpath_var=LD_LIBRARY_PATH
16322   shlibpath_overrides_runpath=yes
16323   hardcode_into_libs=yes
16324   ;;
16325
16326 newsos6)
16327   version_type=linux # correct to gnu/linux during the next big refactor
16328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329   shlibpath_var=LD_LIBRARY_PATH
16330   shlibpath_overrides_runpath=yes
16331   ;;
16332
16333 *nto* | *qnx*)
16334   version_type=qnx
16335   need_lib_prefix=no
16336   need_version=no
16337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338   soname_spec='${libname}${release}${shared_ext}$major'
16339   shlibpath_var=LD_LIBRARY_PATH
16340   shlibpath_overrides_runpath=no
16341   hardcode_into_libs=yes
16342   dynamic_linker='ldqnx.so'
16343   ;;
16344
16345 openbsd*)
16346   version_type=sunos
16347   sys_lib_dlsearch_path_spec="/usr/lib"
16348   need_lib_prefix=no
16349   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16350   case $host_os in
16351     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16352     *)                          need_version=no  ;;
16353   esac
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16358     case $host_os in
16359       openbsd2.[89] | openbsd2.[89].*)
16360         shlibpath_overrides_runpath=no
16361         ;;
16362       *)
16363         shlibpath_overrides_runpath=yes
16364         ;;
16365       esac
16366   else
16367     shlibpath_overrides_runpath=yes
16368   fi
16369   ;;
16370
16371 os2*)
16372   libname_spec='$name'
16373   shrext_cmds=".dll"
16374   need_lib_prefix=no
16375   library_names_spec='$libname${shared_ext} $libname.a'
16376   dynamic_linker='OS/2 ld.exe'
16377   shlibpath_var=LIBPATH
16378   ;;
16379
16380 osf3* | osf4* | osf5*)
16381   version_type=osf
16382   need_lib_prefix=no
16383   need_version=no
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386   shlibpath_var=LD_LIBRARY_PATH
16387   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16389   ;;
16390
16391 rdos*)
16392   dynamic_linker=no
16393   ;;
16394
16395 solaris*)
16396   version_type=linux # correct to gnu/linux during the next big refactor
16397   need_lib_prefix=no
16398   need_version=no
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400   soname_spec='${libname}${release}${shared_ext}$major'
16401   shlibpath_var=LD_LIBRARY_PATH
16402   shlibpath_overrides_runpath=yes
16403   hardcode_into_libs=yes
16404   # ldd complains unless libraries are executable
16405   postinstall_cmds='chmod +x $lib'
16406   ;;
16407
16408 sunos4*)
16409   version_type=sunos
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414   if test "$with_gnu_ld" = yes; then
16415     need_lib_prefix=no
16416   fi
16417   need_version=yes
16418   ;;
16419
16420 sysv4 | sysv4.3*)
16421   version_type=linux # correct to gnu/linux during the next big refactor
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   shlibpath_var=LD_LIBRARY_PATH
16425   case $host_vendor in
16426     sni)
16427       shlibpath_overrides_runpath=no
16428       need_lib_prefix=no
16429       runpath_var=LD_RUN_PATH
16430       ;;
16431     siemens)
16432       need_lib_prefix=no
16433       ;;
16434     motorola)
16435       need_lib_prefix=no
16436       need_version=no
16437       shlibpath_overrides_runpath=no
16438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16439       ;;
16440   esac
16441   ;;
16442
16443 sysv4*MP*)
16444   if test -d /usr/nec ;then
16445     version_type=linux # correct to gnu/linux during the next big refactor
16446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447     soname_spec='$libname${shared_ext}.$major'
16448     shlibpath_var=LD_LIBRARY_PATH
16449   fi
16450   ;;
16451
16452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16453   version_type=freebsd-elf
16454   need_lib_prefix=no
16455   need_version=no
16456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16457   soname_spec='${libname}${release}${shared_ext}$major'
16458   shlibpath_var=LD_LIBRARY_PATH
16459   shlibpath_overrides_runpath=yes
16460   hardcode_into_libs=yes
16461   if test "$with_gnu_ld" = yes; then
16462     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16463   else
16464     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16465     case $host_os in
16466       sco3.2v5*)
16467         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16468         ;;
16469     esac
16470   fi
16471   sys_lib_dlsearch_path_spec='/usr/lib'
16472   ;;
16473
16474 tpf*)
16475   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16476   version_type=linux # correct to gnu/linux during the next big refactor
16477   need_lib_prefix=no
16478   need_version=no
16479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   shlibpath_overrides_runpath=no
16482   hardcode_into_libs=yes
16483   ;;
16484
16485 uts4*)
16486   version_type=linux # correct to gnu/linux during the next big refactor
16487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16488   soname_spec='${libname}${release}${shared_ext}$major'
16489   shlibpath_var=LD_LIBRARY_PATH
16490   ;;
16491
16492 *)
16493   dynamic_linker=no
16494   ;;
16495 esac
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16497 $as_echo "$dynamic_linker" >&6; }
16498 test "$dynamic_linker" = no && can_build_shared=no
16499
16500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16501 if test "$GCC" = yes; then
16502   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16503 fi
16504
16505 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16506   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16507 fi
16508 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16509   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16510 fi
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16550 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16551 hardcode_action_CXX=
16552 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16553    test -n "$runpath_var_CXX" ||
16554    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16555
16556   # We can hardcode non-existent directories.
16557   if test "$hardcode_direct_CXX" != no &&
16558      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16559      # have to relink, otherwise we might link with an installed library
16560      # when we should be linking with a yet-to-be-installed one
16561      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16562      test "$hardcode_minus_L_CXX" != no; then
16563     # Linking always hardcodes the temporary library directory.
16564     hardcode_action_CXX=relink
16565   else
16566     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16567     hardcode_action_CXX=immediate
16568   fi
16569 else
16570   # We cannot hardcode anything, or else we can only hardcode existing
16571   # directories.
16572   hardcode_action_CXX=unsupported
16573 fi
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16575 $as_echo "$hardcode_action_CXX" >&6; }
16576
16577 if test "$hardcode_action_CXX" = relink ||
16578    test "$inherit_rpath_CXX" = yes; then
16579   # Fast installation is not supported
16580   enable_fast_install=no
16581 elif test "$shlibpath_overrides_runpath" = yes ||
16582      test "$enable_shared" = no; then
16583   # Fast installation is not necessary
16584   enable_fast_install=needless
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593   fi # test -n "$compiler"
16594
16595   CC=$lt_save_CC
16596   CFLAGS=$lt_save_CFLAGS
16597   LDCXX=$LD
16598   LD=$lt_save_LD
16599   GCC=$lt_save_GCC
16600   with_gnu_ld=$lt_save_with_gnu_ld
16601   lt_cv_path_LDCXX=$lt_cv_path_LD
16602   lt_cv_path_LD=$lt_save_path_LD
16603   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16604   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16605 fi # test "$_lt_caught_CXX_error" != yes
16606
16607 ac_ext=c
16608 ac_cpp='$CPP $CPPFLAGS'
16609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627         ac_config_commands="$ac_config_commands libtool"
16628
16629
16630
16631
16632 # Only expand once:
16633
16634
16635 if test -n "$ac_tool_prefix"; then
16636   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16637 set dummy ${ac_tool_prefix}windres; ac_word=$2
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639 $as_echo_n "checking for $ac_word... " >&6; }
16640 if ${ac_cv_prog_RC+:} false; then :
16641   $as_echo_n "(cached) " >&6
16642 else
16643   if test -n "$RC"; then
16644   ac_cv_prog_RC="$RC" # Let the user override the test.
16645 else
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $PATH
16648 do
16649   IFS=$as_save_IFS
16650   test -z "$as_dir" && as_dir=.
16651     for ac_exec_ext in '' $ac_executable_extensions; do
16652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653     ac_cv_prog_RC="${ac_tool_prefix}windres"
16654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655     break 2
16656   fi
16657 done
16658   done
16659 IFS=$as_save_IFS
16660
16661 fi
16662 fi
16663 RC=$ac_cv_prog_RC
16664 if test -n "$RC"; then
16665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16666 $as_echo "$RC" >&6; }
16667 else
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669 $as_echo "no" >&6; }
16670 fi
16671
16672
16673 fi
16674 if test -z "$ac_cv_prog_RC"; then
16675   ac_ct_RC=$RC
16676   # Extract the first word of "windres", so it can be a program name with args.
16677 set dummy windres; ac_word=$2
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16679 $as_echo_n "checking for $ac_word... " >&6; }
16680 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16681   $as_echo_n "(cached) " >&6
16682 else
16683   if test -n "$ac_ct_RC"; then
16684   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16685 else
16686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16687 for as_dir in $PATH
16688 do
16689   IFS=$as_save_IFS
16690   test -z "$as_dir" && as_dir=.
16691     for ac_exec_ext in '' $ac_executable_extensions; do
16692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16693     ac_cv_prog_ac_ct_RC="windres"
16694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16695     break 2
16696   fi
16697 done
16698   done
16699 IFS=$as_save_IFS
16700
16701 fi
16702 fi
16703 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16704 if test -n "$ac_ct_RC"; then
16705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16706 $as_echo "$ac_ct_RC" >&6; }
16707 else
16708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16710 fi
16711
16712   if test "x$ac_ct_RC" = x; then
16713     RC=""
16714   else
16715     case $cross_compiling:$ac_tool_warned in
16716 yes:)
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16719 ac_tool_warned=yes ;;
16720 esac
16721     RC=$ac_ct_RC
16722   fi
16723 else
16724   RC="$ac_cv_prog_RC"
16725 fi
16726
16727
16728
16729
16730 # Source file extension for RC test sources.
16731 ac_ext=rc
16732
16733 # Object file extension for compiled RC test sources.
16734 objext=o
16735 objext_RC=$objext
16736
16737 # Code to be used in simple compile tests
16738 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16739
16740 # Code to be used in simple link tests
16741 lt_simple_link_test_code="$lt_simple_compile_test_code"
16742
16743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16744
16745
16746
16747
16748
16749
16750 # If no C compiler was specified, use CC.
16751 LTCC=${LTCC-"$CC"}
16752
16753 # If no C compiler flags were specified, use CFLAGS.
16754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16755
16756 # Allow CC to be a program name with arguments.
16757 compiler=$CC
16758
16759
16760 # save warnings/boilerplate of simple test code
16761 ac_outfile=conftest.$ac_objext
16762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16764 _lt_compiler_boilerplate=`cat conftest.err`
16765 $RM conftest*
16766
16767 ac_outfile=conftest.$ac_objext
16768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770 _lt_linker_boilerplate=`cat conftest.err`
16771 $RM -r conftest*
16772
16773
16774 # Allow CC to be a program name with arguments.
16775 lt_save_CC="$CC"
16776 lt_save_CFLAGS=$CFLAGS
16777 lt_save_GCC=$GCC
16778 GCC=
16779 CC=${RC-"windres"}
16780 CFLAGS=
16781 compiler=$CC
16782 compiler_RC=$CC
16783 for cc_temp in $compiler""; do
16784   case $cc_temp in
16785     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16786     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16787     \-*) ;;
16788     *) break;;
16789   esac
16790 done
16791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16792
16793 lt_cv_prog_compiler_c_o_RC=yes
16794
16795 if test -n "$compiler"; then
16796   :
16797
16798
16799
16800 fi
16801
16802 GCC=$lt_save_GCC
16803 ac_ext=c
16804 ac_cpp='$CPP $CPPFLAGS'
16805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16808
16809 CC=$lt_save_CC
16810 CFLAGS=$lt_save_CFLAGS
16811
16812
16813 # For now we hardcode the use of version scripts.  It would be better
16814 # to write a test for this or even implement this within libtool.
16815 have_ld_version_script=no
16816 case "${host}" in
16817     *-*-linux*)
16818         have_ld_version_script=yes
16819         ;;
16820     *-*-gnu*)
16821         have_ld_version_script=yes
16822         ;;
16823     *-apple-darwin*)
16824
16825 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
16826
16827         ;;
16828 esac
16829
16830  if test "$have_ld_version_script" = "yes"; then
16831   HAVE_LD_VERSION_SCRIPT_TRUE=
16832   HAVE_LD_VERSION_SCRIPT_FALSE='#'
16833 else
16834   HAVE_LD_VERSION_SCRIPT_TRUE='#'
16835   HAVE_LD_VERSION_SCRIPT_FALSE=
16836 fi
16837
16838
16839 GPG_DEFAULT=no
16840 GPGSM_DEFAULT=no
16841 GPGCONF_DEFAULT=no
16842 G13_DEFAULT=no
16843 component_system=None
16844 have_dosish_system=no
16845 have_android_system=no
16846 have_w32_system=no
16847 have_w64_system=no
16848 build_w32_glib=no
16849 build_w32_qt=no
16850 case "${host}" in
16851     x86_64-*mingw32*)
16852         have_w64_system=yes
16853         ;;
16854     *-mingw32ce*)
16855         have_w32ce_system=yes
16856         ;;
16857     *-linux-androideabi)
16858         have_android_system=yes
16859         ;;
16860 esac
16861 case "${host}" in
16862     *-mingw32ce*|*-mingw32*)
16863         have_dosish_system=yes
16864         have_w32_system=yes
16865         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
16866         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
16867         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
16868         G13_DEFAULT='c:\\gnupg\\g13.exe'
16869         #component_system='COM+'
16870
16871         # Check whether --enable-glibtest was given.
16872 if test "${enable_glibtest+set}" = set; then :
16873   enableval=$enable_glibtest;
16874 else
16875   enable_glibtest=yes
16876 fi
16877
16878
16879   pkg_config_args=glib-2.0
16880   for module in .
16881   do
16882       case "$module" in
16883          gmodule)
16884              pkg_config_args="$pkg_config_args gmodule-2.0"
16885          ;;
16886          gmodule-no-export)
16887              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16888          ;;
16889          gobject)
16890              pkg_config_args="$pkg_config_args gobject-2.0"
16891          ;;
16892          gthread)
16893              pkg_config_args="$pkg_config_args gthread-2.0"
16894          ;;
16895       esac
16896   done
16897
16898   # Extract the first word of "pkg-config", so it can be a program name with args.
16899 set dummy pkg-config; ac_word=$2
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16901 $as_echo_n "checking for $ac_word... " >&6; }
16902 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905   case $PKG_CONFIG in
16906   [\\/]* | ?:[\\/]*)
16907   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16908   ;;
16909   *)
16910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16911 for as_dir in $PATH
16912 do
16913   IFS=$as_save_IFS
16914   test -z "$as_dir" && as_dir=.
16915     for ac_exec_ext in '' $ac_executable_extensions; do
16916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16917     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16919     break 2
16920   fi
16921 done
16922   done
16923 IFS=$as_save_IFS
16924
16925   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16926   ;;
16927 esac
16928 fi
16929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16930 if test -n "$PKG_CONFIG"; then
16931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16932 $as_echo "$PKG_CONFIG" >&6; }
16933 else
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16936 fi
16937
16938
16939
16940   no_glib=""
16941
16942   if test x$PKG_CONFIG != xno ; then
16943     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
16944       :
16945     else
16946       echo *** pkg-config too old; version 0.7 or better required.
16947       no_glib=yes
16948       PKG_CONFIG=no
16949     fi
16950   else
16951     no_glib=yes
16952   fi
16953
16954   min_glib_version=2.0.0
16955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16956 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16957
16958   if test x$PKG_CONFIG != xno ; then
16959     ## don't try to run the test against uninstalled libtool libs
16960     if $PKG_CONFIG --uninstalled $pkg_config_args; then
16961           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16962           enable_glibtest=no
16963     fi
16964
16965     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16966           :
16967     else
16968           no_glib=yes
16969     fi
16970   fi
16971
16972   if test x"$no_glib" = x ; then
16973     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16974     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16975     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16976
16977     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
16978     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
16979     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
16980            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16981     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
16982            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16983     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
16984            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16985     if test "x$enable_glibtest" = "xyes" ; then
16986       ac_save_CFLAGS="$CFLAGS"
16987       ac_save_LIBS="$LIBS"
16988       CFLAGS="$CFLAGS $GLIB_CFLAGS"
16989       LIBS="$GLIB_LIBS $LIBS"
16990       rm -f conf.glibtest
16991       if test "$cross_compiling" = yes; then :
16992   echo $ac_n "cross compiling; assumed OK... $ac_c"
16993 else
16994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h.  */
16996
16997 #include <glib.h>
16998 #include <stdio.h>
16999 #include <stdlib.h>
17000
17001 int
17002 main ()
17003 {
17004   int major, minor, micro;
17005   char *tmp_version;
17006
17007   system ("touch conf.glibtest");
17008
17009   /* HP/UX 9 (%@#!) writes to sscanf strings */
17010   tmp_version = g_strdup("$min_glib_version");
17011   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17012      printf("%s, bad version string\n", "$min_glib_version");
17013      exit(1);
17014    }
17015
17016   if ((glib_major_version != $glib_config_major_version) ||
17017       (glib_minor_version != $glib_config_minor_version) ||
17018       (glib_micro_version != $glib_config_micro_version))
17019     {
17020       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17021              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17022              glib_major_version, glib_minor_version, glib_micro_version);
17023       printf ("*** was found! If pkg-config was correct, then it is best\n");
17024       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17025       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17026       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17027       printf("*** required on your system.\n");
17028       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17029       printf("*** to point to the correct configuration files\n");
17030     }
17031   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17032            (glib_minor_version != GLIB_MINOR_VERSION) ||
17033            (glib_micro_version != GLIB_MICRO_VERSION))
17034     {
17035       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17036              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17037       printf("*** library (version %d.%d.%d)\n",
17038              glib_major_version, glib_minor_version, glib_micro_version);
17039     }
17040   else
17041     {
17042       if ((glib_major_version > major) ||
17043         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17044         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17045       {
17046         return 0;
17047        }
17048      else
17049       {
17050         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17051                glib_major_version, glib_minor_version, glib_micro_version);
17052         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17053                major, minor, micro);
17054         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17055         printf("***\n");
17056         printf("*** If you have already installed a sufficiently new version, this error\n");
17057         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17058         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17059         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17060         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17061         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17062         printf("*** so that the correct libraries are found at run-time))\n");
17063       }
17064     }
17065   return 1;
17066 }
17067
17068 _ACEOF
17069 if ac_fn_c_try_run "$LINENO"; then :
17070
17071 else
17072   no_glib=yes
17073 fi
17074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17075   conftest.$ac_objext conftest.beam conftest.$ac_ext
17076 fi
17077
17078        CFLAGS="$ac_save_CFLAGS"
17079        LIBS="$ac_save_LIBS"
17080      fi
17081   fi
17082   if test "x$no_glib" = x ; then
17083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17084 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17085      :
17086   else
17087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 $as_echo "no" >&6; }
17089      if test "$PKG_CONFIG" = "no" ; then
17090        echo "*** A new enough version of pkg-config was not found."
17091        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17092      else
17093        if test -f conf.glibtest ; then
17094         :
17095        else
17096           echo "*** Could not run GLIB test program, checking why..."
17097           ac_save_CFLAGS="$CFLAGS"
17098           ac_save_LIBS="$LIBS"
17099           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17100           LIBS="$LIBS $GLIB_LIBS"
17101           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h.  */
17103
17104 #include <glib.h>
17105 #include <stdio.h>
17106
17107 int
17108 main ()
17109 {
17110  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17111   ;
17112   return 0;
17113 }
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"; then :
17116    echo "*** The test program compiled, but did not run. This usually means"
17117           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17118           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17119           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17120           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17121           echo "*** is required on your system"
17122           echo "***"
17123           echo "*** If you have an old version installed, it is best to remove it, although"
17124           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17125 else
17126    echo "*** The test program failed to compile or link. See the file config.log for the"
17127           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17128 fi
17129 rm -f core conftest.err conftest.$ac_objext \
17130     conftest$ac_exeext conftest.$ac_ext
17131           CFLAGS="$ac_save_CFLAGS"
17132           LIBS="$ac_save_LIBS"
17133        fi
17134      fi
17135      GLIB_CFLAGS=""
17136      GLIB_LIBS=""
17137      GLIB_GENMARSHAL=""
17138      GOBJECT_QUERY=""
17139      GLIB_MKENUMS=""
17140      :
17141   fi
17142
17143
17144
17145
17146
17147   rm -f conf.glibtest
17148
17149         # Check whether --enable-w32-glib was given.
17150 if test "${enable_w32_glib+set}" = set; then :
17151   enableval=$enable_w32_glib; build_w32_glib=$enableval
17152 fi
17153
17154
17155         # Check disabled, because the qt-dev packages in gpg4win do
17156         # not provide any support for cross compilation.
17157         # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17158
17159         # Use it like this:
17160         # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17161
17162
17163         # Check whether --enable-w32-qt was given.
17164 if test "${enable_w32_qt+set}" = set; then :
17165   enableval=$enable_w32_qt; build_w32_qt=$enableval
17166 fi
17167
17168         ;;
17169     *)
17170         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17171 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17172 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17173   $as_echo_n "(cached) " >&6
17174 else
17175   ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lpthread  $LIBS"
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h.  */
17179
17180 /* Override any GCC internal prototype to avoid an error.
17181    Use char because int might match the return type of a GCC
17182    builtin and then its argument prototype would still apply.  */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char pthread_create ();
17187 int
17188 main ()
17189 {
17190 return pthread_create ();
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 if ac_fn_c_try_link "$LINENO"; then :
17196   ac_cv_lib_pthread_pthread_create=yes
17197 else
17198   ac_cv_lib_pthread_pthread_create=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext \
17201     conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17203 fi
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17205 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17206 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17207   have_pthread=yes
17208 fi
17209
17210         if test "$have_pthread" = yes; then
17211
17212 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17213
17214         fi
17215
17216         # XXX: Probably use exec-prefix here?
17217 #       GPG_DEFAULT='/usr/bin/gpg'
17218 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17219 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17220 #       G13_DEFAULT='/usr/bin/g13'
17221         ;;
17222 esac
17223
17224 if test "$have_dosish_system" = yes; then
17225
17226 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17227
17228 fi
17229  if test "$have_dosish_system" = yes; then
17230   HAVE_DOSISH_SYSTEM_TRUE=
17231   HAVE_DOSISH_SYSTEM_FALSE='#'
17232 else
17233   HAVE_DOSISH_SYSTEM_TRUE='#'
17234   HAVE_DOSISH_SYSTEM_FALSE=
17235 fi
17236
17237
17238 if test "$have_w32_system" = yes; then
17239
17240 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17241
17242 fi
17243  if test "$have_w32_system" = yes; then
17244   HAVE_W32_SYSTEM_TRUE=
17245   HAVE_W32_SYSTEM_FALSE='#'
17246 else
17247   HAVE_W32_SYSTEM_TRUE='#'
17248   HAVE_W32_SYSTEM_FALSE=
17249 fi
17250
17251
17252 if test "$have_w64_system" = yes; then
17253
17254 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17255
17256 fi
17257  if test "$have_w64_system" = yes; then
17258   HAVE_W64_SYSTEM_TRUE=
17259   HAVE_W64_SYSTEM_FALSE='#'
17260 else
17261   HAVE_W64_SYSTEM_TRUE='#'
17262   HAVE_W64_SYSTEM_FALSE=
17263 fi
17264
17265
17266 if test "$have_w32ce_system" = yes; then
17267
17268 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17269
17270 fi
17271  if test "$have_w32ce_system" = yes; then
17272   HAVE_W32CE_SYSTEM_TRUE=
17273   HAVE_W32CE_SYSTEM_FALSE='#'
17274 else
17275   HAVE_W32CE_SYSTEM_TRUE='#'
17276   HAVE_W32CE_SYSTEM_FALSE=
17277 fi
17278
17279
17280 if test "$have_android_system" = yes; then
17281
17282 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17283
17284 fi
17285  if test "$have_android_system" = yes; then
17286   HAVE_ANDROID_SYSTEM_TRUE=
17287   HAVE_ANDROID_SYSTEM_FALSE='#'
17288 else
17289   HAVE_ANDROID_SYSTEM_TRUE='#'
17290   HAVE_ANDROID_SYSTEM_FALSE=
17291 fi
17292
17293
17294  if test "$build_w32_glib" = yes; then
17295   BUILD_W32_GLIB_TRUE=
17296   BUILD_W32_GLIB_FALSE='#'
17297 else
17298   BUILD_W32_GLIB_TRUE='#'
17299   BUILD_W32_GLIB_FALSE=
17300 fi
17301
17302  if test "$build_w32_qt" = yes; then
17303   BUILD_W32_QT_TRUE=
17304   BUILD_W32_QT_FALSE='#'
17305 else
17306   BUILD_W32_QT_TRUE='#'
17307   BUILD_W32_QT_FALSE=
17308 fi
17309
17310
17311  if test "$have_pthread" = "yes"; then
17312   HAVE_PTHREAD_TRUE=
17313   HAVE_PTHREAD_FALSE='#'
17314 else
17315   HAVE_PTHREAD_TRUE='#'
17316   HAVE_PTHREAD_FALSE=
17317 fi
17318
17319
17320
17321 #
17322 # Provide information about the build.
17323 #
17324 BUILD_REVISION="5075c0d"
17325
17326
17327 cat >>confdefs.h <<_ACEOF
17328 #define BUILD_REVISION "$BUILD_REVISION"
17329 _ACEOF
17330
17331
17332 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17333 BUILD_FILEVERSION="${BUILD_FILEVERSION}20597"
17334
17335
17336 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17337
17338
17339 cat >>confdefs.h <<_ACEOF
17340 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17341 _ACEOF
17342
17343
17344
17345
17346
17347 # Checks for header files.
17348
17349
17350
17351   for ac_header in $ac_header_list
17352 do :
17353   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17355 "
17356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17357   cat >>confdefs.h <<_ACEOF
17358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17359 _ACEOF
17360
17361 fi
17362
17363 done
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384 # Type checks.
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17386 $as_echo_n "checking for inline... " >&6; }
17387 if ${ac_cv_c_inline+:} false; then :
17388   $as_echo_n "(cached) " >&6
17389 else
17390   ac_cv_c_inline=no
17391 for ac_kw in inline __inline__ __inline; do
17392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h.  */
17394 #ifndef __cplusplus
17395 typedef int foo_t;
17396 static $ac_kw foo_t static_foo () {return 0; }
17397 $ac_kw foo_t foo () {return 0; }
17398 #endif
17399
17400 _ACEOF
17401 if ac_fn_c_try_compile "$LINENO"; then :
17402   ac_cv_c_inline=$ac_kw
17403 fi
17404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17405   test "$ac_cv_c_inline" != no && break
17406 done
17407
17408 fi
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17410 $as_echo "$ac_cv_c_inline" >&6; }
17411
17412 case $ac_cv_c_inline in
17413   inline | yes) ;;
17414   *)
17415     case $ac_cv_c_inline in
17416       no) ac_val=;;
17417       *) ac_val=$ac_cv_c_inline;;
17418     esac
17419     cat >>confdefs.h <<_ACEOF
17420 #ifndef __cplusplus
17421 #define inline $ac_val
17422 #endif
17423 _ACEOF
17424     ;;
17425 esac
17426
17427 # The cast to long int works around a bug in the HP C Compiler
17428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17430 # This bug is HP SR number 8606223364.
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17432 $as_echo_n "checking size of unsigned int... " >&6; }
17433 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17434   $as_echo_n "(cached) " >&6
17435 else
17436   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17437
17438 else
17439   if test "$ac_cv_type_unsigned_int" = yes; then
17440      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17442 as_fn_error 77 "cannot compute sizeof (unsigned int)
17443 See \`config.log' for more details" "$LINENO" 5; }
17444    else
17445      ac_cv_sizeof_unsigned_int=0
17446    fi
17447 fi
17448
17449 fi
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17451 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17452
17453
17454
17455 cat >>confdefs.h <<_ACEOF
17456 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17457 _ACEOF
17458
17459
17460 # Check whether --enable-largefile was given.
17461 if test "${enable_largefile+set}" = set; then :
17462   enableval=$enable_largefile;
17463 fi
17464
17465 if test "$enable_largefile" != no; then
17466
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17468 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17469 if ${ac_cv_sys_largefile_CC+:} false; then :
17470   $as_echo_n "(cached) " >&6
17471 else
17472   ac_cv_sys_largefile_CC=no
17473      if test "$GCC" != yes; then
17474        ac_save_CC=$CC
17475        while :; do
17476          # IRIX 6.2 and later do not support large files by default,
17477          # so use the C compiler's -n32 option if that helps.
17478          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h.  */
17480 #include <sys/types.h>
17481  /* Check that off_t can represent 2**63 - 1 correctly.
17482     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17483     since some C++ compilers masquerading as C compilers
17484     incorrectly reject 9223372036854775807.  */
17485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17486   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17487                        && LARGE_OFF_T % 2147483647 == 1)
17488                       ? 1 : -1];
17489 int
17490 main ()
17491 {
17492
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497          if ac_fn_c_try_compile "$LINENO"; then :
17498   break
17499 fi
17500 rm -f core conftest.err conftest.$ac_objext
17501          CC="$CC -n32"
17502          if ac_fn_c_try_compile "$LINENO"; then :
17503   ac_cv_sys_largefile_CC=' -n32'; break
17504 fi
17505 rm -f core conftest.err conftest.$ac_objext
17506          break
17507        done
17508        CC=$ac_save_CC
17509        rm -f conftest.$ac_ext
17510     fi
17511 fi
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17513 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17514   if test "$ac_cv_sys_largefile_CC" != no; then
17515     CC=$CC$ac_cv_sys_largefile_CC
17516   fi
17517
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17519 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17520 if ${ac_cv_sys_file_offset_bits+:} false; then :
17521   $as_echo_n "(cached) " >&6
17522 else
17523   while :; do
17524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h.  */
17526 #include <sys/types.h>
17527  /* Check that off_t can represent 2**63 - 1 correctly.
17528     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17529     since some C++ compilers masquerading as C compilers
17530     incorrectly reject 9223372036854775807.  */
17531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17532   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17533                        && LARGE_OFF_T % 2147483647 == 1)
17534                       ? 1 : -1];
17535 int
17536 main ()
17537 {
17538
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 if ac_fn_c_try_compile "$LINENO"; then :
17544   ac_cv_sys_file_offset_bits=no; break
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h.  */
17549 #define _FILE_OFFSET_BITS 64
17550 #include <sys/types.h>
17551  /* Check that off_t can represent 2**63 - 1 correctly.
17552     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17553     since some C++ compilers masquerading as C compilers
17554     incorrectly reject 9223372036854775807.  */
17555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17556   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17557                        && LARGE_OFF_T % 2147483647 == 1)
17558                       ? 1 : -1];
17559 int
17560 main ()
17561 {
17562
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 if ac_fn_c_try_compile "$LINENO"; then :
17568   ac_cv_sys_file_offset_bits=64; break
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571   ac_cv_sys_file_offset_bits=unknown
17572   break
17573 done
17574 fi
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17576 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17577 case $ac_cv_sys_file_offset_bits in #(
17578   no | unknown) ;;
17579   *)
17580 cat >>confdefs.h <<_ACEOF
17581 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17582 _ACEOF
17583 ;;
17584 esac
17585 rm -rf conftest*
17586   if test $ac_cv_sys_file_offset_bits = unknown; then
17587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17588 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17589 if ${ac_cv_sys_large_files+:} false; then :
17590   $as_echo_n "(cached) " >&6
17591 else
17592   while :; do
17593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h.  */
17595 #include <sys/types.h>
17596  /* Check that off_t can represent 2**63 - 1 correctly.
17597     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17598     since some C++ compilers masquerading as C compilers
17599     incorrectly reject 9223372036854775807.  */
17600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17601   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17602                        && LARGE_OFF_T % 2147483647 == 1)
17603                       ? 1 : -1];
17604 int
17605 main ()
17606 {
17607
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 if ac_fn_c_try_compile "$LINENO"; then :
17613   ac_cv_sys_large_files=no; break
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h.  */
17618 #define _LARGE_FILES 1
17619 #include <sys/types.h>
17620  /* Check that off_t can represent 2**63 - 1 correctly.
17621     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17622     since some C++ compilers masquerading as C compilers
17623     incorrectly reject 9223372036854775807.  */
17624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17625   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17626                        && LARGE_OFF_T % 2147483647 == 1)
17627                       ? 1 : -1];
17628 int
17629 main ()
17630 {
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_compile "$LINENO"; then :
17637   ac_cv_sys_large_files=1; break
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640   ac_cv_sys_large_files=unknown
17641   break
17642 done
17643 fi
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17645 $as_echo "$ac_cv_sys_large_files" >&6; }
17646 case $ac_cv_sys_large_files in #(
17647   no | unknown) ;;
17648   *)
17649 cat >>confdefs.h <<_ACEOF
17650 #define _LARGE_FILES $ac_cv_sys_large_files
17651 _ACEOF
17652 ;;
17653 esac
17654 rm -rf conftest*
17655   fi
17656
17657
17658 fi
17659
17660 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17661 if test "x$ac_cv_type_off_t" = xyes; then :
17662
17663 else
17664
17665 cat >>confdefs.h <<_ACEOF
17666 #define off_t long int
17667 _ACEOF
17668
17669 fi
17670
17671
17672   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17673 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17674
17675 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17676
17677 else
17678   for ac_type in 'unsigned int' 'unsigned long int' \
17679         'unsigned long long int'; do
17680        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h.  */
17682 $ac_includes_default
17683 int
17684 main ()
17685 {
17686 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17687 test_array [0] = 0;
17688 return test_array [0];
17689
17690   ;
17691   return 0;
17692 }
17693 _ACEOF
17694 if ac_fn_c_try_compile "$LINENO"; then :
17695
17696 cat >>confdefs.h <<_ACEOF
17697 #define uintptr_t $ac_type
17698 _ACEOF
17699
17700           ac_type=
17701 fi
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703        test -z "$ac_type" && break
17704      done
17705 fi
17706
17707
17708
17709 # A simple compile time check in gpgme.h for GNU/Linux systems that
17710 # prevents a file offset bits mismatch between gpgme and the application.
17711 NEED__FILE_OFFSET_BITS=0
17712 if test "$have_w32_system" != yes; then
17713   case "$ac_cv_sys_file_offset_bits" in
17714     "" | no | unknown) ;;
17715     *)
17716     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
17717     ;;
17718   esac
17719 fi
17720
17721
17722 # Figure out platform dependent typedefs for gpgme.h
17723 if test "$have_w32_system" = yes; then
17724    if test "$have_w64_system" = yes; then
17725       INSERT__TYPEDEFS_FOR_GPGME_H="/* Typedefs for the 64 bit W32 API.  */
17726 #include <basetsd.h>
17727 typedef long off_t;
17728 typedef __int64 ssize_t;"
17729    else
17730       INSERT__TYPEDEFS_FOR_GPGME_H="/* Typedefs for the 32 bit W32 API.  */
17731 #ifndef _OFF_T_DEFINED   /* Defined by newer mingw32 toolkits.  */
17732 typedef long off_t;
17733 #endif
17734 #ifndef _SSIZE_T_DEFINED /* Defined by newer mingw32 toolkits.  */
17735 typedef long ssize_t;
17736 #endif"
17737    fi
17738 else
17739    INSERT__TYPEDEFS_FOR_GPGME_H="#include <sys/types.h>"
17740 fi
17741
17742
17743
17744 # Checks for compiler features.
17745 if test "$GCC" = yes; then
17746     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17747     if test "$have_w32_system" = yes; then
17748        CFLAGS="$CFLAGS -mms-bitfields"
17749     fi
17750 fi
17751
17752 # Only used for debugging, so no serious test needed (for actual
17753 # functionality you have to test libc as well, this only tests the
17754 # compiler).
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
17756 $as_echo_n "checking for __thread... " >&6; }
17757 if ${gpgme_cv_tls_works+:} false; then :
17758   $as_echo_n "(cached) " >&6
17759 else
17760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h.  */
17762 __thread int foo;
17763 int
17764 main ()
17765 {
17766
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_compile "$LINENO"; then :
17772   gpgme_cv_tls_works=yes
17773 else
17774   gpgme_cv_tls_works=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 fi
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
17779 $as_echo "$gpgme_cv_tls_works" >&6; }
17780 if test "$gpgme_cv_tls_works" = yes; then
17781
17782 $as_echo "#define HAVE_TLS 1" >>confdefs.h
17783
17784 fi
17785
17786
17787 # Checks for library functions.
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
17789 $as_echo "$as_me: checking for libraries" >&6;}
17790
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17792 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17793 if ${ac_cv_sys_largefile_source+:} false; then :
17794   $as_echo_n "(cached) " >&6
17795 else
17796   while :; do
17797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h.  */
17799 #include <sys/types.h> /* for off_t */
17800      #include <stdio.h>
17801 int
17802 main ()
17803 {
17804 int (*fp) (FILE *, off_t, int) = fseeko;
17805      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 if ac_fn_c_try_link "$LINENO"; then :
17811   ac_cv_sys_largefile_source=no; break
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext \
17814     conftest$ac_exeext conftest.$ac_ext
17815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h.  */
17817 #define _LARGEFILE_SOURCE 1
17818 #include <sys/types.h> /* for off_t */
17819      #include <stdio.h>
17820 int
17821 main ()
17822 {
17823 int (*fp) (FILE *, off_t, int) = fseeko;
17824      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 if ac_fn_c_try_link "$LINENO"; then :
17830   ac_cv_sys_largefile_source=1; break
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext \
17833     conftest$ac_exeext conftest.$ac_ext
17834   ac_cv_sys_largefile_source=unknown
17835   break
17836 done
17837 fi
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17839 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17840 case $ac_cv_sys_largefile_source in #(
17841   no | unknown) ;;
17842   *)
17843 cat >>confdefs.h <<_ACEOF
17844 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17845 _ACEOF
17846 ;;
17847 esac
17848 rm -rf conftest*
17849
17850 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17851 # in glibc 2.1.3, but that breaks too many other things.
17852 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17853 if test $ac_cv_sys_largefile_source != unknown; then
17854
17855 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17856
17857 fi
17858
17859
17860 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17861 if test "x$ac_cv_func_vasprintf" = xyes; then :
17862   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
17863
17864 else
17865   case " $LIBOBJS " in
17866   *" vasprintf.$ac_objext "* ) ;;
17867   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
17868  ;;
17869 esac
17870
17871 fi
17872
17873
17874 if test "$ac_cv_func_vasprintf" != yes; then
17875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
17876 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
17877   if ${gnupg_cv_must_copy_va_byval+:} false; then :
17878   $as_echo_n "(cached) " >&6
17879 else
17880
17881     if test "$cross_compiling" = yes; then
17882       gnupg_cv_must_copy_va_byval=no
17883     else
17884       gnupg_cv_must_copy_va_byval=no
17885       if test "$cross_compiling" = yes; then :
17886   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17888 as_fn_error $? "cannot run test program while cross compiling
17889 See \`config.log' for more details" "$LINENO" 5; }
17890 else
17891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h.  */
17893
17894        #include <stdarg.h>
17895        void f (int i, ...)
17896        {
17897           va_list args1, args2;
17898           va_start (args1, i);
17899           args2 = args1;
17900           if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
17901             exit (1);
17902           va_end (args1);
17903           va_end (args2);
17904        }
17905
17906        int main()
17907        {
17908           f (0, 42);
17909             return 0;
17910        }
17911
17912 _ACEOF
17913 if ac_fn_c_try_run "$LINENO"; then :
17914   gnupg_cv_must_copy_va_byval=yes
17915 fi
17916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17917   conftest.$ac_objext conftest.beam conftest.$ac_ext
17918 fi
17919
17920     fi
17921
17922 fi
17923
17924   if test "$gnupg_cv_must_copy_va_byval" = yes; then
17925
17926 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
17927
17928   fi
17929   if test "$cross_compiling" = yes; then
17930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
17931 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
17932   else
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
17934 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
17935   fi
17936
17937 fi
17938
17939 # Try to find a thread-safe version of ttyname().
17940 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
17941 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
17942   ac_have_decl=1
17943 else
17944   ac_have_decl=0
17945 fi
17946
17947 cat >>confdefs.h <<_ACEOF
17948 #define HAVE_DECL_TTYNAME_R $ac_have_decl
17949 _ACEOF
17950
17951
17952   for ac_header in unistd.h
17953 do :
17954   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17955 if test "x$ac_cv_header_unistd_h" = xyes; then :
17956   cat >>confdefs.h <<_ACEOF
17957 #define HAVE_UNISTD_H 1
17958 _ACEOF
17959
17960 fi
17961
17962 done
17963
17964
17965
17966   if test $ac_cv_have_decl_ttyname_r = no; then
17967     HAVE_DECL_TTYNAME_R=0
17968   fi
17969
17970   for ac_func in ttyname_r
17971 do :
17972   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
17973 if test "x$ac_cv_func_ttyname_r" = xyes; then :
17974   cat >>confdefs.h <<_ACEOF
17975 #define HAVE_TTYNAME_R 1
17976 _ACEOF
17977
17978 fi
17979 done
17980
17981   if test $ac_cv_func_ttyname_r = no; then
17982     HAVE_TTYNAME_R=0
17983     case " $LIBOBJS " in
17984   *" ttyname_r.$ac_objext "* ) ;;
17985   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
17986  ;;
17987 esac
17988
17989
17990 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
17991
17992   else
17993     HAVE_TTYNAME_R=1
17994             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
17995 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
17996 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h.  */
18001 #include <stddef.h>
18002               #include <unistd.h>
18003 int
18004 main ()
18005 {
18006 *ttyname_r (0, NULL, 0);
18007   ;
18008   return 0;
18009 }
18010
18011 _ACEOF
18012 if ac_fn_c_try_compile "$LINENO"; then :
18013   gnupg_cv_func_ttyname_r_posix=no
18014 else
18015   gnupg_cv_func_ttyname_r_posix=yes
18016 fi
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018
18019 fi
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18021 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18022     if test $gnupg_cv_func_ttyname_r_posix = no; then
18023       case " $LIBOBJS " in
18024   *" ttyname_r.$ac_objext "* ) ;;
18025   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18026  ;;
18027 esac
18028
18029       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18030
18031     elif test "$have_android_system" = yes; then
18032       # Android has ttyname and ttyname_r but they are only stubs and
18033       # print an annoying warning message.  Thus we need to replace
18034       # ttyname_r with our own dummy function.
18035       case " $LIBOBJS " in
18036   *" ttyname_r.$ac_objext "* ) ;;
18037   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18038  ;;
18039 esac
18040
18041       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18042
18043     else
18044
18045 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18046
18047
18048       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18049 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18050 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18051   $as_echo_n "(cached) " >&6
18052 else
18053
18054                               case "$host_os" in
18055                       # Guess no on Solaris.
18056             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18057                       # Guess no on OSF/1.
18058             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
18059                       # Guess yes otherwise.
18060             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18061           esac
18062           if test "$cross_compiling" = yes; then :
18063   :
18064 else
18065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067
18068 #include <fcntl.h>
18069 #include <unistd.h>
18070 int
18071 main (void)
18072 {
18073   int result = 0;
18074   int fd;
18075   char buf[31]; /* use any size < 128 here */
18076
18077   fd = open ("/dev/tty", O_RDONLY);
18078   if (fd < 0)
18079     result |= 16;
18080   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18081     result |= 17;
18082   else if (ttyname_r (fd, buf, 1) == 0)
18083     result |= 18;
18084   return result;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_run "$LINENO"; then :
18088   gnupg_cv_func_ttyname_r_works=yes
18089 else
18090   case $? in
18091                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18092              esac
18093 fi
18094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18095   conftest.$ac_objext conftest.beam conftest.$ac_ext
18096 fi
18097
18098
18099 fi
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18101 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18102       case "$gnupg_cv_func_ttyname_r_works" in
18103         *yes) ;;
18104         *) case " $LIBOBJS " in
18105   *" ttyname_r.$ac_objext "* ) ;;
18106   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18107  ;;
18108 esac
18109
18110            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18111
18112
18113 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18114
18115            ;;
18116       esac
18117     fi
18118   fi
18119
18120 if test "$ac_cv_func_ttyname_r" != yes; then
18121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18122 ***
18123 *** ttyname() is not thread-safe and ttyname_r() does not exist
18124 ***" >&5
18125 $as_echo "$as_me: WARNING:
18126 ***
18127 *** ttyname() is not thread-safe and ttyname_r() does not exist
18128 ***" >&2;}
18129 fi
18130
18131 # Try to find a thread-safe version of getenv().
18132 have_thread_safe_getenv=no
18133
18134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18135 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18136 if ${ac_cv_gnu_library_2_1+:} false; then :
18137   $as_echo_n "(cached) " >&6
18138 else
18139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h.  */
18141
18142 #include <features.h>
18143 #ifdef __GNU_LIBRARY__
18144  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18145   Lucky GNU user
18146  #endif
18147 #endif
18148
18149 _ACEOF
18150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18151   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18152   ac_cv_gnu_library_2_1=yes
18153 else
18154   ac_cv_gnu_library_2_1=no
18155 fi
18156 rm -f conftest*
18157
18158
18159
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18162 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18163
18164     GLIBC21="$ac_cv_gnu_library_2_1"
18165
18166
18167 if test $GLIBC21 = yes; then
18168   have_thread_safe_getenv=yes
18169 fi
18170 if test $have_thread_safe_getenv = yes; then
18171
18172 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18173
18174 fi
18175 have_getenv_r=no
18176 for ac_func in getenv_r
18177 do :
18178   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18179 if test "x$ac_cv_func_getenv_r" = xyes; then :
18180   cat >>confdefs.h <<_ACEOF
18181 #define HAVE_GETENV_R 1
18182 _ACEOF
18183  have_getenv_r=yes
18184 fi
18185 done
18186
18187 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18189 ***
18190 *** getenv() is not thread-safe and getenv_r() does not exist
18191 ***" >&5
18192 $as_echo "$as_me: WARNING:
18193 ***
18194 *** getenv() is not thread-safe and getenv_r() does not exist
18195 ***" >&2;}
18196 fi
18197
18198 # For converting time strings to seconds since Epoch, we need the timegm
18199 # function.
18200 for ac_func in timegm
18201 do :
18202   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18203 if test "x$ac_cv_func_timegm" = xyes; then :
18204   cat >>confdefs.h <<_ACEOF
18205 #define HAVE_TIMEGM 1
18206 _ACEOF
18207
18208 fi
18209 done
18210
18211 if test "$ac_cv_func_timegm" != yes; then
18212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18213 ***
18214 *** timegm() not available - a non-thread-safe kludge will be used
18215 *** and the TZ variable might be changed at runtime.
18216 ***" >&5
18217 $as_echo "$as_me: WARNING:
18218 ***
18219 *** timegm() not available - a non-thread-safe kludge will be used
18220 *** and the TZ variable might be changed at runtime.
18221 ***" >&2;}
18222 fi
18223
18224 for ac_func in setlocale
18225 do :
18226   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18227 if test "x$ac_cv_func_setlocale" = xyes; then :
18228   cat >>confdefs.h <<_ACEOF
18229 #define HAVE_SETLOCALE 1
18230 _ACEOF
18231
18232 fi
18233 done
18234
18235
18236 # Checking for libgpg-error.
18237 have_gpg_error=no
18238
18239   gpg_error_config_prefix=""
18240
18241 # Check whether --with-libgpg-error-prefix was given.
18242 if test "${with_libgpg_error_prefix+set}" = set; then :
18243   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18244 fi
18245
18246
18247
18248 # Check whether --with-gpg-error-prefix was given.
18249 if test "${with_gpg_error_prefix+set}" = set; then :
18250   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18251 fi
18252
18253
18254   if test x$gpg_error_config_prefix != x ; then
18255      if test x${GPG_ERROR_CONFIG+set} != xset ; then
18256         GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
18257      fi
18258   fi
18259
18260   if test -n "$ac_tool_prefix"; then
18261   # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args.
18262 set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18264 $as_echo_n "checking for $ac_word... " >&6; }
18265 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18266   $as_echo_n "(cached) " >&6
18267 else
18268   case $GPG_ERROR_CONFIG in
18269   [\\/]* | ?:[\\/]*)
18270   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18271   ;;
18272   *)
18273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18274 for as_dir in $PATH
18275 do
18276   IFS=$as_save_IFS
18277   test -z "$as_dir" && as_dir=.
18278     for ac_exec_ext in '' $ac_executable_extensions; do
18279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18280     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18282     break 2
18283   fi
18284 done
18285   done
18286 IFS=$as_save_IFS
18287
18288   ;;
18289 esac
18290 fi
18291 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18292 if test -n "$GPG_ERROR_CONFIG"; then
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18294 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18295 else
18296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18297 $as_echo "no" >&6; }
18298 fi
18299
18300
18301 fi
18302 if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then
18303   ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG
18304   # Extract the first word of "gpg-error-config", so it can be a program name with args.
18305 set dummy gpg-error-config; ac_word=$2
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307 $as_echo_n "checking for $ac_word... " >&6; }
18308 if ${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+:} false; then :
18309   $as_echo_n "(cached) " >&6
18310 else
18311   case $ac_pt_GPG_ERROR_CONFIG in
18312   [\\/]* | ?:[\\/]*)
18313   ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path.
18314   ;;
18315   *)
18316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18318 do
18319   IFS=$as_save_IFS
18320   test -z "$as_dir" && as_dir=.
18321     for ac_exec_ext in '' $ac_executable_extensions; do
18322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18323     ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18325     break 2
18326   fi
18327 done
18328   done
18329 IFS=$as_save_IFS
18330
18331   ;;
18332 esac
18333 fi
18334 ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG
18335 if test -n "$ac_pt_GPG_ERROR_CONFIG"; then
18336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5
18337 $as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; }
18338 else
18339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18340 $as_echo "no" >&6; }
18341 fi
18342
18343   if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then
18344     GPG_ERROR_CONFIG="no"
18345   else
18346     case $cross_compiling:$ac_tool_warned in
18347 yes:)
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18350 ac_tool_warned=yes ;;
18351 esac
18352     GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG
18353   fi
18354 else
18355   GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG"
18356 fi
18357
18358   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18360 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18361   ok=no
18362   if test "$GPG_ERROR_CONFIG" != "no" \
18363      && test -f "$GPG_ERROR_CONFIG" ; then
18364     req_major=`echo $min_gpg_error_version | \
18365                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18366     req_minor=`echo $min_gpg_error_version | \
18367                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18368     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18369     major=`echo $gpg_error_config_version | \
18370                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18371     minor=`echo $gpg_error_config_version | \
18372                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18373     if test "$major" -gt "$req_major"; then
18374         ok=yes
18375     else
18376         if test "$major" -eq "$req_major"; then
18377             if test "$minor" -ge "$req_minor"; then
18378                ok=yes
18379             fi
18380         fi
18381     fi
18382   fi
18383   if test $ok = yes; then
18384     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18385     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18387 $as_echo "yes ($gpg_error_config_version)" >&6; }
18388     have_gpg_error=yes
18389     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18390     if test x"$gpg_error_config_host" != xnone ; then
18391       if test x"$gpg_error_config_host" != x"$host" ; then
18392   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18393 ***
18394 *** The config script $GPG_ERROR_CONFIG was
18395 *** built for $gpg_error_config_host and thus may not match the
18396 *** used host $host.
18397 *** You may want to use the configure option --with-gpg-error-prefix
18398 *** to specify a matching config script.
18399 ***" >&5
18400 $as_echo "$as_me: WARNING:
18401 ***
18402 *** The config script $GPG_ERROR_CONFIG was
18403 *** built for $gpg_error_config_host and thus may not match the
18404 *** used host $host.
18405 *** You may want to use the configure option --with-gpg-error-prefix
18406 *** to specify a matching config script.
18407 ***" >&2;}
18408       fi
18409     fi
18410   else
18411     GPG_ERROR_CFLAGS=""
18412     GPG_ERROR_LIBS=""
18413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18415     have_gpg_error=no
18416   fi
18417
18418
18419
18420
18421 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18422
18423
18424 # And for libassuan.
18425 have_libassuan=no
18426
18427
18428 # Check whether --with-libassuan-prefix was given.
18429 if test "${with_libassuan_prefix+set}" = set; then :
18430   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18431 else
18432   libassuan_config_prefix=""
18433 fi
18434
18435   if test x$libassuan_config_prefix != x ; then
18436     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18437     if test x${LIBASSUAN_CONFIG+set} != xset ; then
18438       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18439     fi
18440   fi
18441
18442   if test -n "$ac_tool_prefix"; then
18443   # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18444 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18446 $as_echo_n "checking for $ac_word... " >&6; }
18447 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18448   $as_echo_n "(cached) " >&6
18449 else
18450   case $LIBASSUAN_CONFIG in
18451   [\\/]* | ?:[\\/]*)
18452   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18453   ;;
18454   *)
18455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456 for as_dir in $PATH
18457 do
18458   IFS=$as_save_IFS
18459   test -z "$as_dir" && as_dir=.
18460     for ac_exec_ext in '' $ac_executable_extensions; do
18461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18462     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18464     break 2
18465   fi
18466 done
18467   done
18468 IFS=$as_save_IFS
18469
18470   ;;
18471 esac
18472 fi
18473 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18474 if test -n "$LIBASSUAN_CONFIG"; then
18475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18476 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18477 else
18478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18480 fi
18481
18482
18483 fi
18484 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18485   ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18486   # Extract the first word of "libassuan-config", so it can be a program name with args.
18487 set dummy libassuan-config; ac_word=$2
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18489 $as_echo_n "checking for $ac_word... " >&6; }
18490 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   case $ac_pt_LIBASSUAN_CONFIG in
18494   [\\/]* | ?:[\\/]*)
18495   ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18496   ;;
18497   *)
18498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH
18500 do
18501   IFS=$as_save_IFS
18502   test -z "$as_dir" && as_dir=.
18503     for ac_exec_ext in '' $ac_executable_extensions; do
18504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18505     ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18507     break 2
18508   fi
18509 done
18510   done
18511 IFS=$as_save_IFS
18512
18513   ;;
18514 esac
18515 fi
18516 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18517 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18519 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18520 else
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523 fi
18524
18525   if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18526     LIBASSUAN_CONFIG="no"
18527   else
18528     case $cross_compiling:$ac_tool_warned in
18529 yes:)
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18532 ac_tool_warned=yes ;;
18533 esac
18534     LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18535   fi
18536 else
18537   LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18538 fi
18539
18540
18541   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18542   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18543     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18544     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18545   else
18546     req_libassuan_api=0
18547     min_libassuan_version="$tmp"
18548   fi
18549
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18551 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18552   ok=no
18553   if test "$LIBASSUAN_CONFIG" != "no" \
18554      && test -f "$LIBASSUAN_CONFIG" ; then
18555     req_major=`echo $min_libassuan_version | \
18556                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18557     req_minor=`echo $min_libassuan_version | \
18558                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18559     req_micro=`echo $min_libassuan_version | \
18560                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18561
18562     libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18563     major=`echo $libassuan_config_version | \
18564                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18565     minor=`echo $libassuan_config_version | \
18566                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18567     micro=`echo $libassuan_config_version | \
18568                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18569
18570     if test "$major" -gt "$req_major"; then
18571         ok=yes
18572     else
18573         if test "$major" -eq "$req_major"; then
18574             if test "$minor" -gt "$req_minor"; then
18575                ok=yes
18576             else
18577                if test "$minor" -eq "$req_minor"; then
18578                    if test "$micro" -ge "$req_micro"; then
18579                      ok=yes
18580                    fi
18581                fi
18582             fi
18583         fi
18584     fi
18585   fi
18586
18587   if test $ok = yes; then
18588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18589 $as_echo "yes ($libassuan_config_version)" >&6; }
18590   else
18591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18592 $as_echo "no" >&6; }
18593   fi
18594
18595   if test $ok = yes; then
18596     if test "$req_libassuan_api" -gt 0 ; then
18597       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18598       if test "$tmp" -gt 0 ; then
18599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18600 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18601         if test "$req_libassuan_api" -eq "$tmp" ; then
18602           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18603 $as_echo "okay" >&6; }
18604         else
18605           ok=no
18606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
18607 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
18608         fi
18609       fi
18610     fi
18611   fi
18612
18613   if test $ok = yes; then
18614     if test x"$host" != x ; then
18615       libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18616       if test x"$libassuan_config_host" != xnone ; then
18617         if test x"$libassuan_config_host" != x"$host" ; then
18618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18619 ***
18620 *** The config script $LIBASSUAN_CONFIG was
18621 *** built for $libassuan_config_host and thus may not match the
18622 *** used host $host.
18623 *** You may want to use the configure option --with-libassuan-prefix
18624 *** to specify a matching config script.
18625 ***" >&5
18626 $as_echo "$as_me: WARNING:
18627 ***
18628 *** The config script $LIBASSUAN_CONFIG was
18629 *** built for $libassuan_config_host and thus may not match the
18630 *** used host $host.
18631 *** You may want to use the configure option --with-libassuan-prefix
18632 *** to specify a matching config script.
18633 ***" >&2;}
18634         fi
18635       fi
18636     fi
18637   fi
18638
18639   if test $ok = yes; then
18640     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18641     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18642     have_libassuan=yes
18643   else
18644     LIBASSUAN_CFLAGS=""
18645     LIBASSUAN_LIBS=""
18646     have_libassuan=no
18647   fi
18648
18649
18650
18651 if test "$have_libassuan" = "yes"; then
18652
18653 cat >>confdefs.h <<_ACEOF
18654 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18655 _ACEOF
18656
18657 fi
18658  if test "$have_libassuan" = "yes"; then
18659   HAVE_ASSUAN_TRUE=
18660   HAVE_ASSUAN_FALSE='#'
18661 else
18662   HAVE_ASSUAN_TRUE='#'
18663   HAVE_ASSUAN_FALSE=
18664 fi
18665
18666 if test "$have_libassuan" = "yes"; then
18667
18668 $as_echo "#define ENABLE_ASSUAN 1" >>confdefs.h
18669
18670 fi
18671
18672 # Checks for system services
18673 NEED_GPG_VERSION_DEFAULT=1.4.0
18674 NEED_GPGSM_VERSION_DEFAULT=1.9.6
18675 NEED_GPGCONF_VERSION_DEFAULT=2.0.4
18676 NEED_G13_VERSION_DEFAULT=2.1.0
18677 NEED_GPG_VERSION="$NEED_GPG_VERSION_DEFAULT"
18678 NEED_GPGSM_VERSION="$NEED_GPGSM_VERSION_DEFAULT"
18679 NEED_GPGCONF_VERSION="$NEED_GPGCONF_VERSION_DEFAULT"
18680 NEED_G13_VERSION="$NEED_G13_VERSION_DEFAULT"
18681
18682 # Check whether --with-gpg-version was given.
18683 if test "${with_gpg_version+set}" = set; then :
18684   withval=$with_gpg_version; NEED_GPG_VERSION=$withval
18685 fi
18686
18687 if test "$NEED_GPG_VERSION" = "yes"; then
18688   NEED_GPG_VERSION="$NEED_GPG_VERSION_DEFAULT"
18689 fi
18690 if test "$NEED_GPG_VERSION" = "no"; then
18691   NEED_GPG_VERSION=0.0.0
18692 fi
18693
18694 # Check whether --with-gpgsm-version was given.
18695 if test "${with_gpgsm_version+set}" = set; then :
18696   withval=$with_gpgsm_version; NEED_GPGSM_VERSION=$withval
18697 fi
18698
18699 if test "$NEED_GPGSM_VERSION" = "yes"; then
18700   NEED_GPGSM_VERSION="$NEED_GPGSM_VERSION_DEFAULT"
18701 fi
18702 if test "$NEED_GPGSM_VERSION" = "no"; then
18703   NEED_GPGSM_VERSION=0.0.0
18704 fi
18705
18706 # Check whether --with-gpgconf-version was given.
18707 if test "${with_gpgconf_version+set}" = set; then :
18708   withval=$with_gpgconf_version; NEED_GPGCONF_VERSION=$withval
18709 fi
18710
18711 if test "$NEED_GPGCONF_VERSION" = "yes"; then
18712   NEED_GPGCONF_VERSION="$NEED_GPGCONF_VERSION_DEFAULT"
18713 fi
18714 if test "$NEED_GPGCONF_VERSION" = "no"; then
18715   NEED_GPGCONF_VERSION=0.0.0
18716 fi
18717
18718 # Check whether --with-g13-version was given.
18719 if test "${with_g13_version+set}" = set; then :
18720   withval=$with_g13_version; NEED_G13_VERSION=$withval
18721 fi
18722
18723 if test "$NEED_G13_VERSION" = "yes"; then
18724   NEED_G13_VERSION="$NEED_G13_VERSION_DEFAULT"
18725 fi
18726 if test "$NEED_G13_VERSION" = "no"; then
18727   NEED_G13_VERSION=0.0.0
18728 fi
18729
18730
18731 cat >>confdefs.h <<_ACEOF
18732 #define NEED_GPG_VERSION "$NEED_GPG_VERSION"
18733 _ACEOF
18734
18735
18736 cat >>confdefs.h <<_ACEOF
18737 #define NEED_GPGSM_VERSION "$NEED_GPGSM_VERSION"
18738 _ACEOF
18739
18740
18741 cat >>confdefs.h <<_ACEOF
18742 #define NEED_GPGCONF_VERSION "$NEED_GPGCONF_VERSION"
18743 _ACEOF
18744
18745
18746 cat >>confdefs.h <<_ACEOF
18747 #define NEED_G13_VERSION "$NEED_G13_VERSION"
18748 _ACEOF
18749
18750
18751
18752 NO_OVERRIDE=no
18753
18754 # Check whether --with-gpg was given.
18755 if test "${with_gpg+set}" = set; then :
18756   withval=$with_gpg; GPG=$withval
18757 else
18758   NO_OVERRIDE=yes
18759 fi
18760
18761 if test "$NO_OVERRIDE" = "yes" || test "$GPG" = "yes"; then
18762   GPG=
18763   NO_OVERRIDE=yes
18764   if test "$cross_compiling" != "yes"; then
18765     # Extract the first word of "gpg", so it can be a program name with args.
18766 set dummy gpg; ac_word=$2
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18768 $as_echo_n "checking for $ac_word... " >&6; }
18769 if ${ac_cv_path_GPG+:} false; then :
18770   $as_echo_n "(cached) " >&6
18771 else
18772   case $GPG in
18773   [\\/]* | ?:[\\/]*)
18774   ac_cv_path_GPG="$GPG" # Let the user override the test with a path.
18775   ;;
18776   *)
18777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 for as_dir in $PATH
18779 do
18780   IFS=$as_save_IFS
18781   test -z "$as_dir" && as_dir=.
18782     for ac_exec_ext in '' $ac_executable_extensions; do
18783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18784     ac_cv_path_GPG="$as_dir/$ac_word$ac_exec_ext"
18785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18786     break 2
18787   fi
18788 done
18789   done
18790 IFS=$as_save_IFS
18791
18792   ;;
18793 esac
18794 fi
18795 GPG=$ac_cv_path_GPG
18796 if test -n "$GPG"; then
18797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5
18798 $as_echo "$GPG" >&6; }
18799 else
18800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801 $as_echo "no" >&6; }
18802 fi
18803
18804
18805   fi
18806   if test -z "$GPG"; then
18807     GPG="$GPG_DEFAULT"
18808   fi
18809 fi
18810 if test "$GPG" = no; then
18811   if test "$NO_OVERRIDE" = "yes"; then
18812     if test "$cross_compiling" != "yes"; then
18813       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18814 ***
18815 *** Could not find GnuPG, install GnuPG or use --with-gpg=PATH to enable it
18816 ***" >&5
18817 $as_echo "$as_me: WARNING:
18818 ***
18819 *** Could not find GnuPG, install GnuPG or use --with-gpg=PATH to enable it
18820 ***" >&2;}
18821     else
18822       as_fn_error $? "
18823 ***
18824 *** Can not determine path to GnuPG when cross-compiling, use --with-gpg=PATH
18825 ***" "$LINENO" 5
18826     fi
18827   fi
18828 else
18829
18830 cat >>confdefs.h <<_ACEOF
18831 #define GPG_PATH "$GPG"
18832 _ACEOF
18833
18834
18835 fi
18836 GPG_VERSION=unknown
18837 ok=maybe
18838 if test -z "$GPG" -o "x$GPG" = "xno"; then
18839   ok=no
18840 else
18841   if test "$cross_compiling" = "yes"; then
18842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnuPG version can not be checked when cross compiling" >&5
18843 $as_echo "$as_me: WARNING: GnuPG version can not be checked when cross compiling" >&2;}
18844     ok=no
18845   else
18846     if test ! -x "$GPG"; then
18847       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GnuPG not executable, version check disabled" >&5
18848 $as_echo "$as_me: WARNING: GnuPG not executable, version check disabled" >&2;}
18849       ok=no
18850     fi
18851   fi
18852 fi
18853 if test "$ok" = "maybe"; then
18854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG >= $NEED_GPG_VERSION" >&5
18855 $as_echo_n "checking for GPG >= $NEED_GPG_VERSION... " >&6; }
18856   req_major=`echo $NEED_GPG_VERSION | \
18857              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18858   req_minor=`echo $NEED_GPG_VERSION | \
18859              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18860   req_micro=`echo $NEED_GPG_VERSION | \
18861              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18862   GPG_VERSION=`$GPG --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
18863   major=`echo $GPG_VERSION | \
18864          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18865   minor=`echo $GPG_VERSION | \
18866          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18867   micro=`echo $GPG_VERSION | \
18868          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18869
18870   if test "$major" -gt "$req_major"; then
18871     ok=yes
18872   else
18873     if test "$major" -eq "$req_major"; then
18874       if test "$minor" -gt "$req_minor"; then
18875         ok=yes
18876       else
18877         if test "$minor" -eq "$req_minor"; then
18878           if test "$micro" -ge "$req_micro"; then
18879             ok=yes
18880           fi
18881         fi
18882       fi
18883     fi
18884   fi
18885   if test "$ok" = "yes"; then
18886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18887 $as_echo "yes" >&6; }
18888   else
18889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18890 $as_echo "no" >&6; }
18891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPG must be at least version $NEED_GPG_VERSION" >&5
18892 $as_echo "$as_me: WARNING: GPG must be at least version $NEED_GPG_VERSION" >&2;}
18893   fi
18894 fi
18895 run_gpg_test="$ok"
18896 # Check whether --enable-gpg-test was given.
18897 if test "${enable_gpg_test+set}" = set; then :
18898   enableval=$enable_gpg_test; run_gpg_test=$enableval
18899 fi
18900
18901  if test "$run_gpg_test" = "yes"; then
18902   RUN_GPG_TESTS_TRUE=
18903   RUN_GPG_TESTS_FALSE='#'
18904 else
18905   RUN_GPG_TESTS_TRUE='#'
18906   RUN_GPG_TESTS_FALSE=
18907 fi
18908
18909
18910
18911 NO_OVERRIDE=no
18912
18913 # Check whether --with-gpgsm was given.
18914 if test "${with_gpgsm+set}" = set; then :
18915   withval=$with_gpgsm; GPGSM=$withval
18916 else
18917   NO_OVERRIDE=yes
18918 fi
18919
18920 if test "$NO_OVERRIDE" = "yes" || test "$GPGSM" = "yes"; then
18921   GPGSM=
18922   NO_OVERRIDE=yes
18923   if test "$cross_compiling" != "yes"; then
18924     # Extract the first word of "gpgsm", so it can be a program name with args.
18925 set dummy gpgsm; ac_word=$2
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18927 $as_echo_n "checking for $ac_word... " >&6; }
18928 if ${ac_cv_path_GPGSM+:} false; then :
18929   $as_echo_n "(cached) " >&6
18930 else
18931   case $GPGSM in
18932   [\\/]* | ?:[\\/]*)
18933   ac_cv_path_GPGSM="$GPGSM" # Let the user override the test with a path.
18934   ;;
18935   *)
18936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18938 do
18939   IFS=$as_save_IFS
18940   test -z "$as_dir" && as_dir=.
18941     for ac_exec_ext in '' $ac_executable_extensions; do
18942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943     ac_cv_path_GPGSM="$as_dir/$ac_word$ac_exec_ext"
18944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18945     break 2
18946   fi
18947 done
18948   done
18949 IFS=$as_save_IFS
18950
18951   ;;
18952 esac
18953 fi
18954 GPGSM=$ac_cv_path_GPGSM
18955 if test -n "$GPGSM"; then
18956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGSM" >&5
18957 $as_echo "$GPGSM" >&6; }
18958 else
18959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960 $as_echo "no" >&6; }
18961 fi
18962
18963
18964   fi
18965   if test -z "$GPGSM"; then
18966     GPGSM="$GPGSM_DEFAULT"
18967   fi
18968 fi
18969 if test "$GPGSM" = no; then
18970   if test "$NO_OVERRIDE" = "yes"; then
18971     if test "$cross_compiling" != "yes"; then
18972       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18973 ***
18974 *** Could not find GpgSM, install GpgSM or use --with-gpgsm=PATH to enable it
18975 ***" >&5
18976 $as_echo "$as_me: WARNING:
18977 ***
18978 *** Could not find GpgSM, install GpgSM or use --with-gpgsm=PATH to enable it
18979 ***" >&2;}
18980     else
18981       as_fn_error $? "
18982 ***
18983 *** Can not determine path to GpgSM when cross-compiling, use --with-gpgsm=PATH
18984 ***" "$LINENO" 5
18985     fi
18986   fi
18987 else
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define GPGSM_PATH "$GPGSM"
18991 _ACEOF
18992
18993
18994 $as_echo "#define ENABLE_GPGSM 1" >>confdefs.h
18995
18996 fi
18997  if test "$GPGSM" != "no"; then
18998   HAVE_GPGSM_TRUE=
18999   HAVE_GPGSM_FALSE='#'
19000 else
19001   HAVE_GPGSM_TRUE='#'
19002   HAVE_GPGSM_FALSE=
19003 fi
19004
19005
19006
19007 GPGSM_VERSION=unknown
19008 ok=maybe
19009 if test -z "$GPGSM" -o "x$GPGSM" = "xno"; then
19010   ok=no
19011 else
19012   if test "$cross_compiling" = "yes"; then
19013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM version can not be checked when cross compiling" >&5
19014 $as_echo "$as_me: WARNING: GPGSM version can not be checked when cross compiling" >&2;}
19015     ok=no
19016   else
19017     if test ! -x "$GPGSM"; then
19018       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM not executable, version check disabled" >&5
19019 $as_echo "$as_me: WARNING: GPGSM not executable, version check disabled" >&2;}
19020       ok=no
19021     fi
19022   fi
19023 fi
19024 if test "$ok" = "maybe"; then
19025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGSM >= $NEED_GPGSM_VERSION" >&5
19026 $as_echo_n "checking for GPGSM >= $NEED_GPGSM_VERSION... " >&6; }
19027   req_major=`echo $NEED_GPGSM_VERSION | \
19028              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19029   req_minor=`echo $NEED_GPGSM_VERSION | \
19030              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19031   req_micro=`echo $NEED_GPGSM_VERSION | \
19032              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19033   GPGSM_VERSION=`$GPGSM --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
19034   major=`echo $GPGSM_VERSION | \
19035          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19036   minor=`echo $GPGSM_VERSION | \
19037          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19038   micro=`echo $GPGSM_VERSION | \
19039          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19040
19041   if test "$major" -gt "$req_major"; then
19042     ok=yes
19043   else
19044     if test "$major" -eq "$req_major"; then
19045       if test "$minor" -gt "$req_minor"; then
19046         ok=yes
19047       else
19048         if test "$minor" -eq "$req_minor"; then
19049           if test "$micro" -ge "$req_micro"; then
19050             ok=yes
19051           fi
19052         fi
19053       fi
19054     fi
19055   fi
19056   if test "$ok" = "yes"; then
19057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19058 $as_echo "yes" >&6; }
19059   else
19060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19061 $as_echo "no" >&6; }
19062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGSM must be at least version $NEED_GPGSM_VERSION" >&5
19063 $as_echo "$as_me: WARNING: GPGSM must be at least version $NEED_GPGSM_VERSION" >&2;}
19064   fi
19065 fi
19066 run_gpgsm_test="$ok"
19067 # Check whether --enable-gpgsm-test was given.
19068 if test "${enable_gpgsm_test+set}" = set; then :
19069   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
19070 fi
19071
19072  if test "$run_gpgsm_test" = "yes"; then
19073   RUN_GPGSM_TESTS_TRUE=
19074   RUN_GPGSM_TESTS_FALSE='#'
19075 else
19076   RUN_GPGSM_TESTS_TRUE='#'
19077   RUN_GPGSM_TESTS_FALSE=
19078 fi
19079
19080
19081
19082 NO_OVERRIDE=no
19083
19084 # Check whether --with-gpgconf was given.
19085 if test "${with_gpgconf+set}" = set; then :
19086   withval=$with_gpgconf; GPGCONF=$withval
19087 else
19088   NO_OVERRIDE=yes
19089 fi
19090
19091 if test "$NO_OVERRIDE" = "yes" || test "$GPGCONF" = "yes"; then
19092   GPGCONF=
19093   NO_OVERRIDE=yes
19094   if test "$cross_compiling" != "yes"; then
19095     # Extract the first word of "gpgconf", so it can be a program name with args.
19096 set dummy gpgconf; ac_word=$2
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19098 $as_echo_n "checking for $ac_word... " >&6; }
19099 if ${ac_cv_path_GPGCONF+:} false; then :
19100   $as_echo_n "(cached) " >&6
19101 else
19102   case $GPGCONF in
19103   [\\/]* | ?:[\\/]*)
19104   ac_cv_path_GPGCONF="$GPGCONF" # Let the user override the test with a path.
19105   ;;
19106   *)
19107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19108 for as_dir in $PATH
19109 do
19110   IFS=$as_save_IFS
19111   test -z "$as_dir" && as_dir=.
19112     for ac_exec_ext in '' $ac_executable_extensions; do
19113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19114     ac_cv_path_GPGCONF="$as_dir/$ac_word$ac_exec_ext"
19115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19116     break 2
19117   fi
19118 done
19119   done
19120 IFS=$as_save_IFS
19121
19122   ;;
19123 esac
19124 fi
19125 GPGCONF=$ac_cv_path_GPGCONF
19126 if test -n "$GPGCONF"; then
19127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGCONF" >&5
19128 $as_echo "$GPGCONF" >&6; }
19129 else
19130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131 $as_echo "no" >&6; }
19132 fi
19133
19134
19135   fi
19136   if test -z "$GPGCONF"; then
19137     GPGCONF="$GPGCONF_DEFAULT"
19138   fi
19139 fi
19140 if test "$GPGCONF" = no; then
19141   if test "$NO_OVERRIDE" = "yes"; then
19142     if test "$cross_compiling" != "yes"; then
19143       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19144 ***
19145 *** Could not find gpgconf, install gpgconf or use --with-gpgconf=PATH to enable it
19146 ***" >&5
19147 $as_echo "$as_me: WARNING:
19148 ***
19149 *** Could not find gpgconf, install gpgconf or use --with-gpgconf=PATH to enable it
19150 ***" >&2;}
19151     else
19152       as_fn_error $? "
19153 ***
19154 *** Can not determine path to gpgconf when cross-compiling, use --with-gpgconf=PATH
19155 ***" "$LINENO" 5
19156     fi
19157   fi
19158 else
19159
19160 cat >>confdefs.h <<_ACEOF
19161 #define GPGCONF_PATH "$GPGCONF"
19162 _ACEOF
19163
19164
19165 $as_echo "#define ENABLE_GPGCONF 1" >>confdefs.h
19166
19167 fi
19168  if test "$GPGCONF" != "no"; then
19169   HAVE_GPGCONF_TRUE=
19170   HAVE_GPGCONF_FALSE='#'
19171 else
19172   HAVE_GPGCONF_TRUE='#'
19173   HAVE_GPGCONF_FALSE=
19174 fi
19175
19176
19177 GPGCONF_VERSION=unknown
19178 ok=maybe
19179 if test -z "$GPGCONF" -o "x$GPGCONF" = "xno"; then
19180   ok=no
19181 else
19182   if test "$cross_compiling" = "yes"; then
19183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF version can not be checked when cross compiling" >&5
19184 $as_echo "$as_me: WARNING: GPGCONF version can not be checked when cross compiling" >&2;}
19185     ok=no
19186   else
19187     if test ! -x "$GPGCONF"; then
19188       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF not executable, version check disabled" >&5
19189 $as_echo "$as_me: WARNING: GPGCONF not executable, version check disabled" >&2;}
19190       ok=no
19191     fi
19192   fi
19193 fi
19194 if test "$ok" = "maybe"; then
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGCONF >= $NEED_GPGCONF_VERSION" >&5
19196 $as_echo_n "checking for GPGCONF >= $NEED_GPGCONF_VERSION... " >&6; }
19197   req_major=`echo $NEED_GPGCONF_VERSION | \
19198              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19199   req_minor=`echo $NEED_GPGCONF_VERSION | \
19200              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19201   req_micro=`echo $NEED_GPGCONF_VERSION | \
19202              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19203   GPGCONF_VERSION=`$GPGCONF --version | sed -n '1 s/[^0-9]*\(.*\)/\1/p'`
19204   major=`echo $GPGCONF_VERSION | \
19205          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19206   minor=`echo $GPGCONF_VERSION | \
19207          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19208   micro=`echo $GPGCONF_VERSION | \
19209          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19210
19211   if test "$major" -gt "$req_major"; then
19212     ok=yes
19213   else
19214     if test "$major" -eq "$req_major"; then
19215       if test "$minor" -gt "$req_minor"; then
19216         ok=yes
19217       else
19218         if test "$minor" -eq "$req_minor"; then
19219           if test "$micro" -ge "$req_micro"; then
19220             ok=yes
19221           fi
19222         fi
19223       fi
19224     fi
19225   fi
19226   if test "$ok" = "yes"; then
19227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19228 $as_echo "yes" >&6; }
19229   else
19230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GPGCONF must be at least version $NEED_GPGCONF_VERSION" >&5
19233 $as_echo "$as_me: WARNING: GPGCONF must be at least version $NEED_GPGCONF_VERSION" >&2;}
19234   fi
19235 fi
19236 run_gpgconf_test="$ok"
19237 # Check whether --enable-gpgconf-test was given.
19238 if test "${enable_gpgconf_test+set}" = set; then :
19239   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
19240 fi
19241
19242  if test "$run_gpgconf_test" = "yes"; then
19243   RUN_GPGCONF_TESTS_TRUE=
19244   RUN_GPGCONF_TESTS_FALSE='#'
19245 else
19246   RUN_GPGCONF_TESTS_TRUE='#'
19247   RUN_GPGCONF_TESTS_FALSE=
19248 fi
19249
19250
19251
19252 NO_OVERRIDE=no
19253
19254 # Check whether --with-g13 was given.
19255 if test "${with_g13+set}" = set; then :
19256   withval=$with_g13; G13=$withval
19257 else
19258   NO_OVERRIDE=yes
19259 fi
19260
19261 if test "$NO_OVERRIDE" = "yes" || test "$G13" = "yes"; then
19262   G13=
19263   NO_OVERRIDE=yes
19264   if test "$cross_compiling" != "yes"; then
19265     # Extract the first word of "g13", so it can be a program name with args.
19266 set dummy g13; ac_word=$2
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19268 $as_echo_n "checking for $ac_word... " >&6; }
19269 if ${ac_cv_path_G13+:} false; then :
19270   $as_echo_n "(cached) " >&6
19271 else
19272   case $G13 in
19273   [\\/]* | ?:[\\/]*)
19274   ac_cv_path_G13="$G13" # Let the user override the test with a path.
19275   ;;
19276   *)
19277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280   IFS=$as_save_IFS
19281   test -z "$as_dir" && as_dir=.
19282     for ac_exec_ext in '' $ac_executable_extensions; do
19283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284     ac_cv_path_G13="$as_dir/$ac_word$ac_exec_ext"
19285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19286     break 2
19287   fi
19288 done
19289   done
19290 IFS=$as_save_IFS
19291
19292   ;;
19293 esac
19294 fi
19295 G13=$ac_cv_path_G13
19296 if test -n "$G13"; then
19297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G13" >&5
19298 $as_echo "$G13" >&6; }
19299 else
19300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302 fi
19303
19304
19305   fi
19306   if test -z "$G13"; then
19307     G13="$G13_DEFAULT"
19308   fi
19309 fi
19310 if test "$G13" = no; then
19311   if test "$NO_OVERRIDE" = "yes"; then
19312     if test "$cross_compiling" != "yes"; then
19313       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19314 ***
19315 *** Could not find g13, install g13 or use --with-g13=PATH to enable it
19316 ***" >&5
19317 $as_echo "$as_me: WARNING:
19318 ***
19319 *** Could not find g13, install g13 or use --with-g13=PATH to enable it
19320 ***" >&2;}
19321     else
19322       as_fn_error $? "
19323 ***
19324 *** Can not determine path to g13 when cross-compiling, use --with-g13=PATH
19325 ***" "$LINENO" 5
19326     fi
19327   fi
19328 else
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define G13_PATH "$G13"
19332 _ACEOF
19333
19334
19335 $as_echo "#define ENABLE_G13 1" >>confdefs.h
19336
19337 fi
19338  if test "$G13" != "no"; then
19339   HAVE_G13_TRUE=
19340   HAVE_G13_FALSE='#'
19341 else
19342   HAVE_G13_TRUE='#'
19343   HAVE_G13_FALSE=
19344 fi
19345
19346
19347 G13_VERSION=unknown
19348 ok=maybe
19349 if test -z "$G13" -o "x$G13" = "xno"; then
19350   ok=no
19351 else
19352   if test "$cross_compiling" = "yes"; then
19353     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 version can not be checked when cross compiling" >&5
19354 $as_echo "$as_me: WARNING: G13 version can not be checked when cross compiling" >&2;}
19355     ok=no
19356   else
19357     if test ! -x "$G13"; then
19358       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 not executable, version check disabled" >&5
19359 $as_echo "$as_me: WARNING: G13 not executable, version check disabled" >&2;}
19360       ok=no
19361     fi
19362   fi
19363 fi
19364 if test "$ok" = "maybe"; then
19365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G13 >= $NEED_G13_VERSION" >&5
19366 $as_echo_n "checking for G13 >= $NEED_G13_VERSION... " >&6; }
19367   req_major=`echo $NEED_G13_VERSION | \
19368              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19369   req_minor=`echo $NEED_G13_VERSION | \
19370              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19371   req_micro=`echo $NEED_G13_VERSION | \
19372              sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19373   G13_VERSION=`$G13 --version | sed -n '1 s/.*\ \([0-9].*\)/\1/p'`
19374   major=`echo $G13_VERSION | \
19375          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19376   minor=`echo $G13_VERSION | \
19377          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19378   micro=`echo $G13_VERSION | \
19379          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19380
19381   if test "$major" -gt "$req_major"; then
19382     ok=yes
19383   else
19384     if test "$major" -eq "$req_major"; then
19385       if test "$minor" -gt "$req_minor"; then
19386         ok=yes
19387       else
19388         if test "$minor" -eq "$req_minor"; then
19389           if test "$micro" -ge "$req_micro"; then
19390             ok=yes
19391           fi
19392         fi
19393       fi
19394     fi
19395   fi
19396   if test "$ok" = "yes"; then
19397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19398 $as_echo "yes" >&6; }
19399   else
19400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: G13 must be at least version $NEED_G13_VERSION" >&5
19403 $as_echo "$as_me: WARNING: G13 must be at least version $NEED_G13_VERSION" >&2;}
19404   fi
19405 fi
19406 run_g13_test="$ok"
19407 # Check whether --enable-g13-test was given.
19408 if test "${enable_g13_test+set}" = set; then :
19409   enableval=$enable_g13_test; run_g13_test=$enableval
19410 fi
19411
19412  if test "$run_g13_test" = "yes"; then
19413   RUN_G13_TESTS_TRUE=
19414   RUN_G13_TESTS_FALSE='#'
19415 else
19416   RUN_G13_TESTS_TRUE='#'
19417   RUN_G13_TESTS_FALSE=
19418 fi
19419
19420
19421
19422 # Check for funopen
19423 for ac_func in funopen
19424 do :
19425   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
19426 if test "x$ac_cv_func_funopen" = xyes; then :
19427   cat >>confdefs.h <<_ACEOF
19428 #define HAVE_FUNOPEN 1
19429 _ACEOF
19430
19431 fi
19432 done
19433
19434 if test $ac_cv_func_funopen != yes; then
19435     # No funopen but we can implement that in terms of fopencookie.
19436     for ac_func in fopencookie
19437 do :
19438   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
19439 if test "x$ac_cv_func_fopencookie" = xyes; then :
19440   cat >>confdefs.h <<_ACEOF
19441 #define HAVE_FOPENCOOKIE 1
19442 _ACEOF
19443
19444 fi
19445 done
19446
19447     if test $ac_cv_func_fopencookie = yes; then
19448         ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
19449 if test "x$ac_cv_func_funopen" = xyes; then :
19450   $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
19451
19452 else
19453   case " $LIBOBJS " in
19454   *" funopen.$ac_objext "* ) ;;
19455   *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
19456  ;;
19457 esac
19458
19459 fi
19460
19461
19462     else
19463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19464 ***
19465 *** No implementation of fopencookie or funopen available
19466 ***" >&5
19467 $as_echo "$as_me: WARNING:
19468 ***
19469 *** No implementation of fopencookie or funopen available
19470 ***" >&2;}
19471     fi
19472 fi
19473
19474 # Check for getgid etc
19475 for ac_func in getgid getegid
19476 do :
19477   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19480   cat >>confdefs.h <<_ACEOF
19481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19482 _ACEOF
19483
19484 fi
19485 done
19486
19487
19488
19489 # Replacement functions.
19490 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
19491 if test "x$ac_cv_func_stpcpy" = xyes; then :
19492   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
19493
19494 else
19495   case " $LIBOBJS " in
19496   *" stpcpy.$ac_objext "* ) ;;
19497   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
19498  ;;
19499 esac
19500
19501 fi
19502
19503
19504 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19505 if test "x$ac_cv_func_setenv" = xyes; then :
19506   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
19507
19508 else
19509   case " $LIBOBJS " in
19510   *" setenv.$ac_objext "* ) ;;
19511   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19512  ;;
19513 esac
19514
19515 fi
19516
19517
19518
19519 # Assuan check for descriptor passing.
19520 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
19521 #include <stdlib.h>
19522 #include <stddef.h>
19523 #include <stdio.h>
19524 #include <sys/types.h>
19525 #include <sys/socket.h>
19526 #include <sys/un.h>
19527 #if HAVE_SYS_UIO_H
19528 #include <sys/uio.h>
19529 #endif
19530 #include <unistd.h>
19531
19532 "
19533 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
19534   supports_descriptor_passing=yes
19535 else
19536   supports_descriptor_passing=no
19537                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19538 ***
19539 *** Data structure for sending ancillary data missing.
19540 *** Descriptor passing won't work.
19541 ***" >&5
19542 $as_echo "$as_me: WARNING:
19543 ***
19544 *** Data structure for sending ancillary data missing.
19545 *** Descriptor passing won't work.
19546 ***" >&2;}
19547 fi
19548
19549
19550
19551 case "${host}" in
19552     *-apple-darwin*)
19553       use_descriptor_passing=no
19554       ;;
19555     *)
19556       use_descriptor_passing=yes
19557       ;;
19558 esac
19559 # Check whether --enable-fd-passing was given.
19560 if test "${enable_fd_passing+set}" = set; then :
19561   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
19562 fi
19563
19564
19565 if test "$supports_descriptor_passing" != "yes"; then
19566   use_descriptor_passing=no
19567 fi
19568
19569 if test "$use_descriptor_passing" = "yes"; then
19570
19571 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
19572
19573 fi
19574
19575  if test "$use_descriptor_passing" = "yes"; then
19576   USE_DESCRIPTOR_PASSING_TRUE=
19577   USE_DESCRIPTOR_PASSING_FALSE='#'
19578 else
19579   USE_DESCRIPTOR_PASSING_TRUE='#'
19580   USE_DESCRIPTOR_PASSING_FALSE=
19581 fi
19582
19583
19584
19585 uiserver=no
19586 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
19587   uiserver=yes
19588 fi
19589 if test "$uiserver" != "no"; then
19590
19591 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
19592
19593 fi
19594  if test "$uiserver" != "no"; then
19595   HAVE_UISERVER_TRUE=
19596   HAVE_UISERVER_FALSE='#'
19597 else
19598   HAVE_UISERVER_TRUE='#'
19599   HAVE_UISERVER_FALSE=
19600 fi
19601
19602
19603
19604 # Add a few constants to help porting to W32
19605
19606
19607
19608
19609
19610 # Substitution used for gpgme-config
19611 GPGME_CONFIG_LIBS="-lgpgme"
19612 GPGME_CONFIG_CFLAGS=""
19613 GPGME_CONFIG_HOST="$host"
19614
19615
19616
19617
19618
19619 # Frob'da Variables
19620 LTLIBOBJS=`echo "$LIBOBJS" |
19621            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
19622
19623
19624 # Some checks for gpgme-tool
19625 # Done at top: AC_CHECK_HEADER([argp.h])
19626 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
19627 "
19628 if test "x$ac_cv_type_error_t" = xyes; then :
19629
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_ERROR_T 1
19632 _ACEOF
19633
19634
19635 else
19636
19637 $as_echo "#define error_t int" >>confdefs.h
19638
19639 fi
19640
19641
19642
19643 # A substitution to set generated files in a Emacs buffer to read-only.
19644 emacs_local_vars_begin='Local Variables:'
19645
19646 emacs_local_vars_read_only='buffer-read-only: t'
19647
19648 emacs_local_vars_end='End:'
19649
19650
19651
19652 # Last check.
19653 die=no
19654 if test "$have_gpg_error" = "no"; then
19655    die=yes
19656    { $as_echo "$as_me:${as_lineno-$LINENO}:
19657 ***
19658 *** You need libgpg-error to build this program.
19659 **  This library is for example available at
19660 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19661 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19662 ***" >&5
19663 $as_echo "$as_me:
19664 ***
19665 *** You need libgpg-error to build this program.
19666 **  This library is for example available at
19667 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19668 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19669 ***" >&6;}
19670 fi
19671 if test "$have_libassuan" = "no"; then
19672    die=yes
19673    { $as_echo "$as_me:${as_lineno-$LINENO}:
19674 ***
19675 *** You need libassuan to build this program with GPGSM support.
19676 *** This library is for example available at
19677 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19678 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19679 ***" >&5
19680 $as_echo "$as_me:
19681 ***
19682 *** You need libassuan to build this program with GPGSM support.
19683 *** This library is for example available at
19684 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19685 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19686 ***" >&6;}
19687 fi
19688
19689 if test "$die" = "yes"; then
19690     as_fn_error $? "
19691 ***
19692 *** Required libraries not found. Please consult the above messages
19693 *** and install them before running configure again.
19694 ***" "$LINENO" 5
19695 fi
19696
19697
19698 #
19699 # Create config files
19700
19701 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"
19702
19703 ac_config_files="$ac_config_files src/gpgme-config"
19704
19705 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19706
19707 cat >confcache <<\_ACEOF
19708 # This file is a shell script that caches the results of configure
19709 # tests run on this system so they can be shared between configure
19710 # scripts and configure runs, see configure's option --config-cache.
19711 # It is not useful on other systems.  If it contains results you don't
19712 # want to keep, you may remove or edit it.
19713 #
19714 # config.status only pays attention to the cache file if you give it
19715 # the --recheck option to rerun configure.
19716 #
19717 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19718 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19719 # following values.
19720
19721 _ACEOF
19722
19723 # The following way of writing the cache mishandles newlines in values,
19724 # but we know of no workaround that is simple, portable, and efficient.
19725 # So, we kill variables containing newlines.
19726 # Ultrix sh set writes to stderr and can't be redirected directly,
19727 # and sets the high bit in the cache file unless we assign to the vars.
19728 (
19729   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19730     eval ac_val=\$$ac_var
19731     case $ac_val in #(
19732     *${as_nl}*)
19733       case $ac_var in #(
19734       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19736       esac
19737       case $ac_var in #(
19738       _ | IFS | as_nl) ;; #(
19739       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19740       *) { eval $ac_var=; unset $ac_var;} ;;
19741       esac ;;
19742     esac
19743   done
19744
19745   (set) 2>&1 |
19746     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19747     *${as_nl}ac_space=\ *)
19748       # `set' does not quote correctly, so add quotes: double-quote
19749       # substitution turns \\\\ into \\, and sed turns \\ into \.
19750       sed -n \
19751         "s/'/'\\\\''/g;
19752           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19753       ;; #(
19754     *)
19755       # `set' quotes correctly as required by POSIX, so do not add quotes.
19756       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19757       ;;
19758     esac |
19759     sort
19760 ) |
19761   sed '
19762      /^ac_cv_env_/b end
19763      t clear
19764      :clear
19765      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19766      t end
19767      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19768      :end' >>confcache
19769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19770   if test -w "$cache_file"; then
19771     if test "x$cache_file" != "x/dev/null"; then
19772       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19773 $as_echo "$as_me: updating cache $cache_file" >&6;}
19774       if test ! -f "$cache_file" || test -h "$cache_file"; then
19775         cat confcache >"$cache_file"
19776       else
19777         case $cache_file in #(
19778         */* | ?:*)
19779           mv -f confcache "$cache_file"$$ &&
19780           mv -f "$cache_file"$$ "$cache_file" ;; #(
19781         *)
19782           mv -f confcache "$cache_file" ;;
19783         esac
19784       fi
19785     fi
19786   else
19787     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19789   fi
19790 fi
19791 rm -f confcache
19792
19793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19794 # Let make expand exec_prefix.
19795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19796
19797 DEFS=-DHAVE_CONFIG_H
19798
19799 ac_libobjs=
19800 ac_ltlibobjs=
19801 U=
19802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19803   # 1. Remove the extension, and $U if already installed.
19804   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19805   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19806   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19807   #    will be set to the directory where LIBOBJS objects are built.
19808   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19809   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19810 done
19811 LIBOBJS=$ac_libobjs
19812
19813 LTLIBOBJS=$ac_ltlibobjs
19814
19815
19816  if test -n "$EXEEXT"; then
19817   am__EXEEXT_TRUE=
19818   am__EXEEXT_FALSE='#'
19819 else
19820   am__EXEEXT_TRUE='#'
19821   am__EXEEXT_FALSE=
19822 fi
19823
19824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19825   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19827 fi
19828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19829   as_fn_error $? "conditional \"AMDEP\" was never defined.
19830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19831 fi
19832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19833   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19835 fi
19836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19837   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19839 fi
19840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19841   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19843 fi
19844 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19845   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19847 fi
19848 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19849   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19851 fi
19852 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19853   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855 fi
19856 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19857   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19859 fi
19860 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19861   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863 fi
19864 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19865   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19867 fi
19868 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19869   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19871 fi
19872 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19873   as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19875 fi
19876 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19877   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19879 fi
19880 if test -z "${HAVE_ASSUAN_TRUE}" && test -z "${HAVE_ASSUAN_FALSE}"; then
19881   as_fn_error $? "conditional \"HAVE_ASSUAN\" was never defined.
19882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19883 fi
19884 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19885   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19887 fi
19888 if test -z "${HAVE_GPGSM_TRUE}" && test -z "${HAVE_GPGSM_FALSE}"; then
19889   as_fn_error $? "conditional \"HAVE_GPGSM\" was never defined.
19890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19891 fi
19892 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19893   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19895 fi
19896 if test -z "${HAVE_GPGCONF_TRUE}" && test -z "${HAVE_GPGCONF_FALSE}"; then
19897   as_fn_error $? "conditional \"HAVE_GPGCONF\" was never defined.
19898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19899 fi
19900 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19901   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19903 fi
19904 if test -z "${HAVE_G13_TRUE}" && test -z "${HAVE_G13_FALSE}"; then
19905   as_fn_error $? "conditional \"HAVE_G13\" was never defined.
19906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19907 fi
19908 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19909   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19911 fi
19912 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19913   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19915 fi
19916 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19917   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19919 fi
19920
19921 : "${CONFIG_STATUS=./config.status}"
19922 ac_write_fail=0
19923 ac_clean_files_save=$ac_clean_files
19924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19927 as_write_fail=0
19928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19929 #! $SHELL
19930 # Generated by $as_me.
19931 # Run this file to recreate the current configuration.
19932 # Compiler output produced by configure, useful for debugging
19933 # configure, is in config.log if it exists.
19934
19935 debug=false
19936 ac_cs_recheck=false
19937 ac_cs_silent=false
19938
19939 SHELL=\${CONFIG_SHELL-$SHELL}
19940 export SHELL
19941 _ASEOF
19942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19943 ## -------------------- ##
19944 ## M4sh Initialization. ##
19945 ## -------------------- ##
19946
19947 # Be more Bourne compatible
19948 DUALCASE=1; export DUALCASE # for MKS sh
19949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19950   emulate sh
19951   NULLCMD=:
19952   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19953   # is contrary to our usage.  Disable this feature.
19954   alias -g '${1+"$@"}'='"$@"'
19955   setopt NO_GLOB_SUBST
19956 else
19957   case `(set -o) 2>/dev/null` in #(
19958   *posix*) :
19959     set -o posix ;; #(
19960   *) :
19961      ;;
19962 esac
19963 fi
19964
19965
19966 as_nl='
19967 '
19968 export as_nl
19969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19973 # Prefer a ksh shell builtin over an external printf program on Solaris,
19974 # but without wasting forks for bash or zsh.
19975 if test -z "$BASH_VERSION$ZSH_VERSION" \
19976     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19977   as_echo='print -r --'
19978   as_echo_n='print -rn --'
19979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19980   as_echo='printf %s\n'
19981   as_echo_n='printf %s'
19982 else
19983   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19984     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19985     as_echo_n='/usr/ucb/echo -n'
19986   else
19987     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19988     as_echo_n_body='eval
19989       arg=$1;
19990       case $arg in #(
19991       *"$as_nl"*)
19992         expr "X$arg" : "X\\(.*\\)$as_nl";
19993         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19994       esac;
19995       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19996     '
19997     export as_echo_n_body
19998     as_echo_n='sh -c $as_echo_n_body as_echo'
19999   fi
20000   export as_echo_body
20001   as_echo='sh -c $as_echo_body as_echo'
20002 fi
20003
20004 # The user is always right.
20005 if test "${PATH_SEPARATOR+set}" != set; then
20006   PATH_SEPARATOR=:
20007   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20008     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20009       PATH_SEPARATOR=';'
20010   }
20011 fi
20012
20013
20014 # IFS
20015 # We need space, tab and new line, in precisely that order.  Quoting is
20016 # there to prevent editors from complaining about space-tab.
20017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20018 # splitting by setting IFS to empty value.)
20019 IFS=" ""        $as_nl"
20020
20021 # Find who we are.  Look in the path if we contain no directory separator.
20022 as_myself=
20023 case $0 in #((
20024   *[\\/]* ) as_myself=$0 ;;
20025   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20026 for as_dir in $PATH
20027 do
20028   IFS=$as_save_IFS
20029   test -z "$as_dir" && as_dir=.
20030     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20031   done
20032 IFS=$as_save_IFS
20033
20034      ;;
20035 esac
20036 # We did not find ourselves, most probably we were run as `sh COMMAND'
20037 # in which case we are not to be found in the path.
20038 if test "x$as_myself" = x; then
20039   as_myself=$0
20040 fi
20041 if test ! -f "$as_myself"; then
20042   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20043   exit 1
20044 fi
20045
20046 # Unset variables that we do not need and which cause bugs (e.g. in
20047 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20048 # suppresses any "Segmentation fault" message there.  '((' could
20049 # trigger a bug in pdksh 5.2.14.
20050 for as_var in BASH_ENV ENV MAIL MAILPATH
20051 do eval test x\${$as_var+set} = xset \
20052   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20053 done
20054 PS1='$ '
20055 PS2='> '
20056 PS4='+ '
20057
20058 # NLS nuisances.
20059 LC_ALL=C
20060 export LC_ALL
20061 LANGUAGE=C
20062 export LANGUAGE
20063
20064 # CDPATH.
20065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20066
20067
20068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20069 # ----------------------------------------
20070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20072 # script with STATUS, using 1 if that was 0.
20073 as_fn_error ()
20074 {
20075   as_status=$1; test $as_status -eq 0 && as_status=1
20076   if test "$4"; then
20077     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20078     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20079   fi
20080   $as_echo "$as_me: error: $2" >&2
20081   as_fn_exit $as_status
20082 } # as_fn_error
20083
20084
20085 # as_fn_set_status STATUS
20086 # -----------------------
20087 # Set $? to STATUS, without forking.
20088 as_fn_set_status ()
20089 {
20090   return $1
20091 } # as_fn_set_status
20092
20093 # as_fn_exit STATUS
20094 # -----------------
20095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20096 as_fn_exit ()
20097 {
20098   set +e
20099   as_fn_set_status $1
20100   exit $1
20101 } # as_fn_exit
20102
20103 # as_fn_unset VAR
20104 # ---------------
20105 # Portably unset VAR.
20106 as_fn_unset ()
20107 {
20108   { eval $1=; unset $1;}
20109 }
20110 as_unset=as_fn_unset
20111 # as_fn_append VAR VALUE
20112 # ----------------------
20113 # Append the text in VALUE to the end of the definition contained in VAR. Take
20114 # advantage of any shell optimizations that allow amortized linear growth over
20115 # repeated appends, instead of the typical quadratic growth present in naive
20116 # implementations.
20117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20118   eval 'as_fn_append ()
20119   {
20120     eval $1+=\$2
20121   }'
20122 else
20123   as_fn_append ()
20124   {
20125     eval $1=\$$1\$2
20126   }
20127 fi # as_fn_append
20128
20129 # as_fn_arith ARG...
20130 # ------------------
20131 # Perform arithmetic evaluation on the ARGs, and store the result in the
20132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20133 # must be portable across $(()) and expr.
20134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20135   eval 'as_fn_arith ()
20136   {
20137     as_val=$(( $* ))
20138   }'
20139 else
20140   as_fn_arith ()
20141   {
20142     as_val=`expr "$@" || test $? -eq 1`
20143   }
20144 fi # as_fn_arith
20145
20146
20147 if expr a : '\(a\)' >/dev/null 2>&1 &&
20148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20149   as_expr=expr
20150 else
20151   as_expr=false
20152 fi
20153
20154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20155   as_basename=basename
20156 else
20157   as_basename=false
20158 fi
20159
20160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20161   as_dirname=dirname
20162 else
20163   as_dirname=false
20164 fi
20165
20166 as_me=`$as_basename -- "$0" ||
20167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20168          X"$0" : 'X\(//\)$' \| \
20169          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20170 $as_echo X/"$0" |
20171     sed '/^.*\/\([^/][^/]*\)\/*$/{
20172             s//\1/
20173             q
20174           }
20175           /^X\/\(\/\/\)$/{
20176             s//\1/
20177             q
20178           }
20179           /^X\/\(\/\).*/{
20180             s//\1/
20181             q
20182           }
20183           s/.*/./; q'`
20184
20185 # Avoid depending upon Character Ranges.
20186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20189 as_cr_digits='0123456789'
20190 as_cr_alnum=$as_cr_Letters$as_cr_digits
20191
20192 ECHO_C= ECHO_N= ECHO_T=
20193 case `echo -n x` in #(((((
20194 -n*)
20195   case `echo 'xy\c'` in
20196   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20197   xy)  ECHO_C='\c';;
20198   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20199        ECHO_T=' ';;
20200   esac;;
20201 *)
20202   ECHO_N='-n';;
20203 esac
20204
20205 rm -f conf$$ conf$$.exe conf$$.file
20206 if test -d conf$$.dir; then
20207   rm -f conf$$.dir/conf$$.file
20208 else
20209   rm -f conf$$.dir
20210   mkdir conf$$.dir 2>/dev/null
20211 fi
20212 if (echo >conf$$.file) 2>/dev/null; then
20213   if ln -s conf$$.file conf$$ 2>/dev/null; then
20214     as_ln_s='ln -s'
20215     # ... but there are two gotchas:
20216     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20217     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20218     # In both cases, we have to default to `cp -pR'.
20219     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20220       as_ln_s='cp -pR'
20221   elif ln conf$$.file conf$$ 2>/dev/null; then
20222     as_ln_s=ln
20223   else
20224     as_ln_s='cp -pR'
20225   fi
20226 else
20227   as_ln_s='cp -pR'
20228 fi
20229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20230 rmdir conf$$.dir 2>/dev/null
20231
20232
20233 # as_fn_mkdir_p
20234 # -------------
20235 # Create "$as_dir" as a directory, including parents if necessary.
20236 as_fn_mkdir_p ()
20237 {
20238
20239   case $as_dir in #(
20240   -*) as_dir=./$as_dir;;
20241   esac
20242   test -d "$as_dir" || eval $as_mkdir_p || {
20243     as_dirs=
20244     while :; do
20245       case $as_dir in #(
20246       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20247       *) as_qdir=$as_dir;;
20248       esac
20249       as_dirs="'$as_qdir' $as_dirs"
20250       as_dir=`$as_dirname -- "$as_dir" ||
20251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20252          X"$as_dir" : 'X\(//\)[^/]' \| \
20253          X"$as_dir" : 'X\(//\)$' \| \
20254          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20255 $as_echo X"$as_dir" |
20256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20257             s//\1/
20258             q
20259           }
20260           /^X\(\/\/\)[^/].*/{
20261             s//\1/
20262             q
20263           }
20264           /^X\(\/\/\)$/{
20265             s//\1/
20266             q
20267           }
20268           /^X\(\/\).*/{
20269             s//\1/
20270             q
20271           }
20272           s/.*/./; q'`
20273       test -d "$as_dir" && break
20274     done
20275     test -z "$as_dirs" || eval "mkdir $as_dirs"
20276   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20277
20278
20279 } # as_fn_mkdir_p
20280 if mkdir -p . 2>/dev/null; then
20281   as_mkdir_p='mkdir -p "$as_dir"'
20282 else
20283   test -d ./-p && rmdir ./-p
20284   as_mkdir_p=false
20285 fi
20286
20287
20288 # as_fn_executable_p FILE
20289 # -----------------------
20290 # Test if FILE is an executable regular file.
20291 as_fn_executable_p ()
20292 {
20293   test -f "$1" && test -x "$1"
20294 } # as_fn_executable_p
20295 as_test_x='test -x'
20296 as_executable_p=as_fn_executable_p
20297
20298 # Sed expression to map a string onto a valid CPP name.
20299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20300
20301 # Sed expression to map a string onto a valid variable name.
20302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20303
20304
20305 exec 6>&1
20306 ## ----------------------------------- ##
20307 ## Main body of $CONFIG_STATUS script. ##
20308 ## ----------------------------------- ##
20309 _ASEOF
20310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20311
20312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20313 # Save the log message, to keep $0 and so on meaningful, and to
20314 # report actual input values of CONFIG_FILES etc. instead of their
20315 # values after options handling.
20316 ac_log="
20317 This file was extended by gpgme $as_me 1.4.1, which was
20318 generated by GNU Autoconf 2.69.  Invocation command line was
20319
20320   CONFIG_FILES    = $CONFIG_FILES
20321   CONFIG_HEADERS  = $CONFIG_HEADERS
20322   CONFIG_LINKS    = $CONFIG_LINKS
20323   CONFIG_COMMANDS = $CONFIG_COMMANDS
20324   $ $0 $@
20325
20326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20327 "
20328
20329 _ACEOF
20330
20331 case $ac_config_files in *"
20332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20333 esac
20334
20335 case $ac_config_headers in *"
20336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20337 esac
20338
20339
20340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20341 # Files that config.status was made for.
20342 config_files="$ac_config_files"
20343 config_headers="$ac_config_headers"
20344 config_commands="$ac_config_commands"
20345
20346 _ACEOF
20347
20348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20349 ac_cs_usage="\
20350 \`$as_me' instantiates files and other configuration actions
20351 from templates according to the current configuration.  Unless the files
20352 and actions are specified as TAGs, all are instantiated by default.
20353
20354 Usage: $0 [OPTION]... [TAG]...
20355
20356   -h, --help       print this help, then exit
20357   -V, --version    print version number and configuration settings, then exit
20358       --config     print configuration, then exit
20359   -q, --quiet, --silent
20360                    do not print progress messages
20361   -d, --debug      don't remove temporary files
20362       --recheck    update $as_me by reconfiguring in the same conditions
20363       --file=FILE[:TEMPLATE]
20364                    instantiate the configuration file FILE
20365       --header=FILE[:TEMPLATE]
20366                    instantiate the configuration header FILE
20367
20368 Configuration files:
20369 $config_files
20370
20371 Configuration headers:
20372 $config_headers
20373
20374 Configuration commands:
20375 $config_commands
20376
20377 Report bugs to <http://bugs.gnupg.org>."
20378
20379 _ACEOF
20380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20382 ac_cs_version="\\
20383 gpgme config.status 1.4.1
20384 configured by $0, generated by GNU Autoconf 2.69,
20385   with options \\"\$ac_cs_config\\"
20386
20387 Copyright (C) 2012 Free Software Foundation, Inc.
20388 This config.status script is free software; the Free Software Foundation
20389 gives unlimited permission to copy, distribute and modify it."
20390
20391 ac_pwd='$ac_pwd'
20392 srcdir='$srcdir'
20393 INSTALL='$INSTALL'
20394 MKDIR_P='$MKDIR_P'
20395 AWK='$AWK'
20396 test -n "\$AWK" || AWK=awk
20397 _ACEOF
20398
20399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20400 # The default lists apply if the user does not specify any file.
20401 ac_need_defaults=:
20402 while test $# != 0
20403 do
20404   case $1 in
20405   --*=?*)
20406     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20407     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20408     ac_shift=:
20409     ;;
20410   --*=)
20411     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20412     ac_optarg=
20413     ac_shift=:
20414     ;;
20415   *)
20416     ac_option=$1
20417     ac_optarg=$2
20418     ac_shift=shift
20419     ;;
20420   esac
20421
20422   case $ac_option in
20423   # Handling of the options.
20424   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20425     ac_cs_recheck=: ;;
20426   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20427     $as_echo "$ac_cs_version"; exit ;;
20428   --config | --confi | --conf | --con | --co | --c )
20429     $as_echo "$ac_cs_config"; exit ;;
20430   --debug | --debu | --deb | --de | --d | -d )
20431     debug=: ;;
20432   --file | --fil | --fi | --f )
20433     $ac_shift
20434     case $ac_optarg in
20435     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20436     '') as_fn_error $? "missing file argument" ;;
20437     esac
20438     as_fn_append CONFIG_FILES " '$ac_optarg'"
20439     ac_need_defaults=false;;
20440   --header | --heade | --head | --hea )
20441     $ac_shift
20442     case $ac_optarg in
20443     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20444     esac
20445     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20446     ac_need_defaults=false;;
20447   --he | --h)
20448     # Conflict between --help and --header
20449     as_fn_error $? "ambiguous option: \`$1'
20450 Try \`$0 --help' for more information.";;
20451   --help | --hel | -h )
20452     $as_echo "$ac_cs_usage"; exit ;;
20453   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20454   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20455     ac_cs_silent=: ;;
20456
20457   # This is an error.
20458   -*) as_fn_error $? "unrecognized option: \`$1'
20459 Try \`$0 --help' for more information." ;;
20460
20461   *) as_fn_append ac_config_targets " $1"
20462      ac_need_defaults=false ;;
20463
20464   esac
20465   shift
20466 done
20467
20468 ac_configure_extra_args=
20469
20470 if $ac_cs_silent; then
20471   exec 6>/dev/null
20472   ac_configure_extra_args="$ac_configure_extra_args --silent"
20473 fi
20474
20475 _ACEOF
20476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20477 if \$ac_cs_recheck; then
20478   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20479   shift
20480   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20481   CONFIG_SHELL='$SHELL'
20482   export CONFIG_SHELL
20483   exec "\$@"
20484 fi
20485
20486 _ACEOF
20487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20488 exec 5>>config.log
20489 {
20490   echo
20491   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20492 ## Running $as_me. ##
20493 _ASBOX
20494   $as_echo "$ac_log"
20495 } >&5
20496
20497 _ACEOF
20498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20499 #
20500 # INIT-COMMANDS
20501 #
20502 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20503
20504
20505 # The HP-UX ksh and POSIX shell print the target directory to stdout
20506 # if CDPATH is set.
20507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20508
20509 sed_quote_subst='$sed_quote_subst'
20510 double_quote_subst='$double_quote_subst'
20511 delay_variable_subst='$delay_variable_subst'
20512 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20513 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20514 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20515 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20517 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20518 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20519 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20520 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20521 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20522 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20523 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20524 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20525 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20526 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20527 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20528 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20529 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20530 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20531 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20532 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20533 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20534 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20535 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20536 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20537 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20538 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20539 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20540 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20541 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20542 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20543 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20544 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20545 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20546 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20547 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20548 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20549 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20550 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20551 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20552 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20553 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20554 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20555 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20556 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20557 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20558 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20559 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20560 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20561 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20562 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20563 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20564 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20565 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20566 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20567 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20568 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20569 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"`'
20570 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20571 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20572 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20573 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20574 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20575 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20576 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20577 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20578 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20579 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20580 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20581 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20582 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20583 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20584 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20585 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20586 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20587 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20588 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20589 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20590 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20591 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20592 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20593 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20594 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20595 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20596 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20597 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20598 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20599 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20600 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20601 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20602 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20603 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20604 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20605 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20606 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20607 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20608 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20609 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20610 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20611 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20612 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20613 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20614 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20615 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20616 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20617 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20618 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20619 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20620 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20621 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20622 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20623 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20624 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20625 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20626 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20627 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20628 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20629 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20630 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20631 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20632 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20633 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20634 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20635 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20636 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20637 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20638 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20639 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20640 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20641 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20642 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20643 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20644 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20645 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20646 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20647 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20648 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20649 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20650 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20651 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20652 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20653 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20654 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20655 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20656 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20657 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20658 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20659 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20660 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20661 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20662 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20663 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20664 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20665 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20666 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20667 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20668 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20669 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20670 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20671 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20672 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20673 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20674 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20675 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20676 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20677 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20678 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20679 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20680 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20681 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20682 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20683 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20684 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20685 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20686 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20687 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20688 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20689 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20690 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20691 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20692 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20693 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20694 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20695 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20696 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20697 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20698 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20699 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20700 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20701 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20702 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20703 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20704 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20705 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20706 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20707 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20708 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20709 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20710 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20711 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20712 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20713 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20714 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20715 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20716 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20717 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20718 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20719 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20720 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20721 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20722 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20723 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20724 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20725 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20726 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20727 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20728 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20729 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20730 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20731 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20732 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20733 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20734 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20735 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20736 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20737 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20738 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20739 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20740 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20741 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20742 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20743 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20744 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20745
20746 LTCC='$LTCC'
20747 LTCFLAGS='$LTCFLAGS'
20748 compiler='$compiler_DEFAULT'
20749
20750 # A function that is used when there is no print builtin or printf.
20751 func_fallback_echo ()
20752 {
20753   eval 'cat <<_LTECHO_EOF
20754 \$1
20755 _LTECHO_EOF'
20756 }
20757
20758 # Quote evaled strings.
20759 for var in AS \
20760 DLLTOOL \
20761 OBJDUMP \
20762 SHELL \
20763 ECHO \
20764 PATH_SEPARATOR \
20765 SED \
20766 GREP \
20767 EGREP \
20768 FGREP \
20769 LD \
20770 NM \
20771 LN_S \
20772 lt_SP2NL \
20773 lt_NL2SP \
20774 reload_flag \
20775 deplibs_check_method \
20776 file_magic_cmd \
20777 file_magic_glob \
20778 want_nocaseglob \
20779 sharedlib_from_linklib_cmd \
20780 AR \
20781 AR_FLAGS \
20782 archiver_list_spec \
20783 STRIP \
20784 RANLIB \
20785 CC \
20786 CFLAGS \
20787 compiler \
20788 lt_cv_sys_global_symbol_pipe \
20789 lt_cv_sys_global_symbol_to_cdecl \
20790 lt_cv_sys_global_symbol_to_c_name_address \
20791 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20792 nm_file_list_spec \
20793 lt_prog_compiler_no_builtin_flag \
20794 lt_prog_compiler_pic \
20795 lt_prog_compiler_wl \
20796 lt_prog_compiler_static \
20797 lt_cv_prog_compiler_c_o \
20798 need_locks \
20799 MANIFEST_TOOL \
20800 DSYMUTIL \
20801 NMEDIT \
20802 LIPO \
20803 OTOOL \
20804 OTOOL64 \
20805 shrext_cmds \
20806 export_dynamic_flag_spec \
20807 whole_archive_flag_spec \
20808 compiler_needs_object \
20809 with_gnu_ld \
20810 allow_undefined_flag \
20811 no_undefined_flag \
20812 hardcode_libdir_flag_spec \
20813 hardcode_libdir_separator \
20814 exclude_expsyms \
20815 include_expsyms \
20816 file_list_spec \
20817 variables_saved_for_relink \
20818 libname_spec \
20819 library_names_spec \
20820 soname_spec \
20821 install_override_mode \
20822 finish_eval \
20823 old_striplib \
20824 striplib \
20825 compiler_lib_search_dirs \
20826 predep_objects \
20827 postdep_objects \
20828 predeps \
20829 postdeps \
20830 compiler_lib_search_path \
20831 LD_CXX \
20832 LD_RC \
20833 reload_flag_CXX \
20834 reload_flag_RC \
20835 compiler_CXX \
20836 compiler_RC \
20837 lt_prog_compiler_no_builtin_flag_CXX \
20838 lt_prog_compiler_no_builtin_flag_RC \
20839 lt_prog_compiler_pic_CXX \
20840 lt_prog_compiler_pic_RC \
20841 lt_prog_compiler_wl_CXX \
20842 lt_prog_compiler_wl_RC \
20843 lt_prog_compiler_static_CXX \
20844 lt_prog_compiler_static_RC \
20845 lt_cv_prog_compiler_c_o_CXX \
20846 lt_cv_prog_compiler_c_o_RC \
20847 export_dynamic_flag_spec_CXX \
20848 export_dynamic_flag_spec_RC \
20849 whole_archive_flag_spec_CXX \
20850 whole_archive_flag_spec_RC \
20851 compiler_needs_object_CXX \
20852 compiler_needs_object_RC \
20853 with_gnu_ld_CXX \
20854 with_gnu_ld_RC \
20855 allow_undefined_flag_CXX \
20856 allow_undefined_flag_RC \
20857 no_undefined_flag_CXX \
20858 no_undefined_flag_RC \
20859 hardcode_libdir_flag_spec_CXX \
20860 hardcode_libdir_flag_spec_RC \
20861 hardcode_libdir_separator_CXX \
20862 hardcode_libdir_separator_RC \
20863 exclude_expsyms_CXX \
20864 exclude_expsyms_RC \
20865 include_expsyms_CXX \
20866 include_expsyms_RC \
20867 file_list_spec_CXX \
20868 file_list_spec_RC \
20869 compiler_lib_search_dirs_CXX \
20870 compiler_lib_search_dirs_RC \
20871 predep_objects_CXX \
20872 predep_objects_RC \
20873 postdep_objects_CXX \
20874 postdep_objects_RC \
20875 predeps_CXX \
20876 predeps_RC \
20877 postdeps_CXX \
20878 postdeps_RC \
20879 compiler_lib_search_path_CXX \
20880 compiler_lib_search_path_RC; do
20881     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20882     *[\\\\\\\`\\"\\\$]*)
20883       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20884       ;;
20885     *)
20886       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20887       ;;
20888     esac
20889 done
20890
20891 # Double-quote double-evaled strings.
20892 for var in reload_cmds \
20893 old_postinstall_cmds \
20894 old_postuninstall_cmds \
20895 old_archive_cmds \
20896 extract_expsyms_cmds \
20897 old_archive_from_new_cmds \
20898 old_archive_from_expsyms_cmds \
20899 archive_cmds \
20900 archive_expsym_cmds \
20901 module_cmds \
20902 module_expsym_cmds \
20903 export_symbols_cmds \
20904 prelink_cmds \
20905 postlink_cmds \
20906 postinstall_cmds \
20907 postuninstall_cmds \
20908 finish_cmds \
20909 sys_lib_search_path_spec \
20910 sys_lib_dlsearch_path_spec \
20911 reload_cmds_CXX \
20912 reload_cmds_RC \
20913 old_archive_cmds_CXX \
20914 old_archive_cmds_RC \
20915 old_archive_from_new_cmds_CXX \
20916 old_archive_from_new_cmds_RC \
20917 old_archive_from_expsyms_cmds_CXX \
20918 old_archive_from_expsyms_cmds_RC \
20919 archive_cmds_CXX \
20920 archive_cmds_RC \
20921 archive_expsym_cmds_CXX \
20922 archive_expsym_cmds_RC \
20923 module_cmds_CXX \
20924 module_cmds_RC \
20925 module_expsym_cmds_CXX \
20926 module_expsym_cmds_RC \
20927 export_symbols_cmds_CXX \
20928 export_symbols_cmds_RC \
20929 prelink_cmds_CXX \
20930 prelink_cmds_RC \
20931 postlink_cmds_CXX \
20932 postlink_cmds_RC; do
20933     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20934     *[\\\\\\\`\\"\\\$]*)
20935       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20936       ;;
20937     *)
20938       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20939       ;;
20940     esac
20941 done
20942
20943 ac_aux_dir='$ac_aux_dir'
20944 xsi_shell='$xsi_shell'
20945 lt_shell_append='$lt_shell_append'
20946
20947 # See if we are running on zsh, and set the options which allow our
20948 # commands through without removal of \ escapes INIT.
20949 if test -n "\${ZSH_VERSION+set}" ; then
20950    setopt NO_GLOB_SUBST
20951 fi
20952
20953
20954     PACKAGE='$PACKAGE'
20955     VERSION='$VERSION'
20956     TIMESTAMP='$TIMESTAMP'
20957     RM='$RM'
20958     ofile='$ofile'
20959
20960
20961
20962
20963
20964
20965
20966
20967 _ACEOF
20968
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20970
20971 # Handling of arguments.
20972 for ac_config_target in $ac_config_targets
20973 do
20974   case $ac_config_target in
20975     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20976     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20977     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20978     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20979     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20980     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20981     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20982     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20983     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20984     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20985     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20986     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20987     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20988     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20989     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20990     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20991
20992   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20993   esac
20994 done
20995
20996
20997 # If the user did not use the arguments to specify the items to instantiate,
20998 # then the envvar interface is used.  Set only those that are not.
20999 # We use the long form for the default assignment because of an extremely
21000 # bizarre bug on SunOS 4.1.3.
21001 if $ac_need_defaults; then
21002   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21003   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21004   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21005 fi
21006
21007 # Have a temporary directory for convenience.  Make it in the build tree
21008 # simply because there is no reason against having it here, and in addition,
21009 # creating and moving files from /tmp can sometimes cause problems.
21010 # Hook for its removal unless debugging.
21011 # Note that there is a small window in which the directory will not be cleaned:
21012 # after its creation but before its name has been assigned to `$tmp'.
21013 $debug ||
21014 {
21015   tmp= ac_tmp=
21016   trap 'exit_status=$?
21017   : "${ac_tmp:=$tmp}"
21018   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21019 ' 0
21020   trap 'as_fn_exit 1' 1 2 13 15
21021 }
21022 # Create a (secure) tmp directory for tmp files.
21023
21024 {
21025   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21026   test -d "$tmp"
21027 }  ||
21028 {
21029   tmp=./conf$$-$RANDOM
21030   (umask 077 && mkdir "$tmp")
21031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21032 ac_tmp=$tmp
21033
21034 # Set up the scripts for CONFIG_FILES section.
21035 # No need to generate them if there are no CONFIG_FILES.
21036 # This happens for instance with `./config.status config.h'.
21037 if test -n "$CONFIG_FILES"; then
21038
21039
21040 ac_cr=`echo X | tr X '\015'`
21041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21042 # But we know of no other shell where ac_cr would be empty at this
21043 # point, so we can use a bashism as a fallback.
21044 if test "x$ac_cr" = x; then
21045   eval ac_cr=\$\'\\r\'
21046 fi
21047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21049   ac_cs_awk_cr='\\r'
21050 else
21051   ac_cs_awk_cr=$ac_cr
21052 fi
21053
21054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21055 _ACEOF
21056
21057
21058 {
21059   echo "cat >conf$$subs.awk <<_ACEOF" &&
21060   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21061   echo "_ACEOF"
21062 } >conf$$subs.sh ||
21063   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21065 ac_delim='%!_!# '
21066 for ac_last_try in false false false false false :; do
21067   . ./conf$$subs.sh ||
21068     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21069
21070   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21071   if test $ac_delim_n = $ac_delim_num; then
21072     break
21073   elif $ac_last_try; then
21074     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21075   else
21076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21077   fi
21078 done
21079 rm -f conf$$subs.sh
21080
21081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21083 _ACEOF
21084 sed -n '
21085 h
21086 s/^/S["/; s/!.*/"]=/
21087 p
21088 g
21089 s/^[^!]*!//
21090 :repl
21091 t repl
21092 s/'"$ac_delim"'$//
21093 t delim
21094 :nl
21095 h
21096 s/\(.\{148\}\)..*/\1/
21097 t more1
21098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21099 p
21100 n
21101 b repl
21102 :more1
21103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21104 p
21105 g
21106 s/.\{148\}//
21107 t nl
21108 :delim
21109 h
21110 s/\(.\{148\}\)..*/\1/
21111 t more2
21112 s/["\\]/\\&/g; s/^/"/; s/$/"/
21113 p
21114 b
21115 :more2
21116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21117 p
21118 g
21119 s/.\{148\}//
21120 t delim
21121 ' <conf$$subs.awk | sed '
21122 /^[^""]/{
21123   N
21124   s/\n//
21125 }
21126 ' >>$CONFIG_STATUS || ac_write_fail=1
21127 rm -f conf$$subs.awk
21128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21129 _ACAWK
21130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21131   for (key in S) S_is_set[key] = 1
21132   FS = "\a"
21133
21134 }
21135 {
21136   line = $ 0
21137   nfields = split(line, field, "@")
21138   substed = 0
21139   len = length(field[1])
21140   for (i = 2; i < nfields; i++) {
21141     key = field[i]
21142     keylen = length(key)
21143     if (S_is_set[key]) {
21144       value = S[key]
21145       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21146       len += length(value) + length(field[++i])
21147       substed = 1
21148     } else
21149       len += 1 + keylen
21150   }
21151
21152   print line
21153 }
21154
21155 _ACAWK
21156 _ACEOF
21157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21159   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21160 else
21161   cat
21162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21163   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21164 _ACEOF
21165
21166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21168 # trailing colons and then remove the whole line if VPATH becomes empty
21169 # (actually we leave an empty line to preserve line numbers).
21170 if test "x$srcdir" = x.; then
21171   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21172 h
21173 s///
21174 s/^/:/
21175 s/[      ]*$/:/
21176 s/:\$(srcdir):/:/g
21177 s/:\${srcdir}:/:/g
21178 s/:@srcdir@:/:/g
21179 s/^:*//
21180 s/:*$//
21181 x
21182 s/\(=[   ]*\).*/\1/
21183 G
21184 s/\n//
21185 s/^[^=]*=[       ]*$//
21186 }'
21187 fi
21188
21189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21190 fi # test -n "$CONFIG_FILES"
21191
21192 # Set up the scripts for CONFIG_HEADERS section.
21193 # No need to generate them if there are no CONFIG_HEADERS.
21194 # This happens for instance with `./config.status Makefile'.
21195 if test -n "$CONFIG_HEADERS"; then
21196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21197 BEGIN {
21198 _ACEOF
21199
21200 # Transform confdefs.h into an awk script `defines.awk', embedded as
21201 # here-document in config.status, that substitutes the proper values into
21202 # config.h.in to produce config.h.
21203
21204 # Create a delimiter string that does not exist in confdefs.h, to ease
21205 # handling of long lines.
21206 ac_delim='%!_!# '
21207 for ac_last_try in false false :; do
21208   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21209   if test -z "$ac_tt"; then
21210     break
21211   elif $ac_last_try; then
21212     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21213   else
21214     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21215   fi
21216 done
21217
21218 # For the awk script, D is an array of macro values keyed by name,
21219 # likewise P contains macro parameters if any.  Preserve backslash
21220 # newline sequences.
21221
21222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21223 sed -n '
21224 s/.\{148\}/&'"$ac_delim"'/g
21225 t rset
21226 :rset
21227 s/^[     ]*#[    ]*define[       ][      ]*/ /
21228 t def
21229 d
21230 :def
21231 s/\\$//
21232 t bsnl
21233 s/["\\]/\\&/g
21234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21235 D["\1"]=" \3"/p
21236 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21237 d
21238 :bsnl
21239 s/["\\]/\\&/g
21240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21241 D["\1"]=" \3\\\\\\n"\\/p
21242 t cont
21243 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21244 t cont
21245 d
21246 :cont
21247 n
21248 s/.\{148\}/&'"$ac_delim"'/g
21249 t clear
21250 :clear
21251 s/\\$//
21252 t bsnlc
21253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21254 d
21255 :bsnlc
21256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21257 b cont
21258 ' <confdefs.h | sed '
21259 s/'"$ac_delim"'/"\\\
21260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21261
21262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21263   for (key in D) D_is_set[key] = 1
21264   FS = "\a"
21265 }
21266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21267   line = \$ 0
21268   split(line, arg, " ")
21269   if (arg[1] == "#") {
21270     defundef = arg[2]
21271     mac1 = arg[3]
21272   } else {
21273     defundef = substr(arg[1], 2)
21274     mac1 = arg[2]
21275   }
21276   split(mac1, mac2, "(") #)
21277   macro = mac2[1]
21278   prefix = substr(line, 1, index(line, defundef) - 1)
21279   if (D_is_set[macro]) {
21280     # Preserve the white space surrounding the "#".
21281     print prefix "define", macro P[macro] D[macro]
21282     next
21283   } else {
21284     # Replace #undef with comments.  This is necessary, for example,
21285     # in the case of _POSIX_SOURCE, which is predefined and required
21286     # on some systems where configure will not decide to define it.
21287     if (defundef == "undef") {
21288       print "/*", prefix defundef, macro, "*/"
21289       next
21290     }
21291   }
21292 }
21293 { print }
21294 _ACAWK
21295 _ACEOF
21296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21298 fi # test -n "$CONFIG_HEADERS"
21299
21300
21301 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21302 shift
21303 for ac_tag
21304 do
21305   case $ac_tag in
21306   :[FHLC]) ac_mode=$ac_tag; continue;;
21307   esac
21308   case $ac_mode$ac_tag in
21309   :[FHL]*:*);;
21310   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21311   :[FH]-) ac_tag=-:-;;
21312   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21313   esac
21314   ac_save_IFS=$IFS
21315   IFS=:
21316   set x $ac_tag
21317   IFS=$ac_save_IFS
21318   shift
21319   ac_file=$1
21320   shift
21321
21322   case $ac_mode in
21323   :L) ac_source=$1;;
21324   :[FH])
21325     ac_file_inputs=
21326     for ac_f
21327     do
21328       case $ac_f in
21329       -) ac_f="$ac_tmp/stdin";;
21330       *) # Look for the file first in the build tree, then in the source tree
21331          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21332          # because $ac_f cannot contain `:'.
21333          test -f "$ac_f" ||
21334            case $ac_f in
21335            [\\/$]*) false;;
21336            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21337            esac ||
21338            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21339       esac
21340       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21341       as_fn_append ac_file_inputs " '$ac_f'"
21342     done
21343
21344     # Let's still pretend it is `configure' which instantiates (i.e., don't
21345     # use $as_me), people would be surprised to read:
21346     #    /* config.h.  Generated by config.status.  */
21347     configure_input='Generated from '`
21348           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21349         `' by configure.'
21350     if test x"$ac_file" != x-; then
21351       configure_input="$ac_file.  $configure_input"
21352       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21353 $as_echo "$as_me: creating $ac_file" >&6;}
21354     fi
21355     # Neutralize special characters interpreted by sed in replacement strings.
21356     case $configure_input in #(
21357     *\&* | *\|* | *\\* )
21358        ac_sed_conf_input=`$as_echo "$configure_input" |
21359        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21360     *) ac_sed_conf_input=$configure_input;;
21361     esac
21362
21363     case $ac_tag in
21364     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21365       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21366     esac
21367     ;;
21368   esac
21369
21370   ac_dir=`$as_dirname -- "$ac_file" ||
21371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21372          X"$ac_file" : 'X\(//\)[^/]' \| \
21373          X"$ac_file" : 'X\(//\)$' \| \
21374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21375 $as_echo X"$ac_file" |
21376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21377             s//\1/
21378             q
21379           }
21380           /^X\(\/\/\)[^/].*/{
21381             s//\1/
21382             q
21383           }
21384           /^X\(\/\/\)$/{
21385             s//\1/
21386             q
21387           }
21388           /^X\(\/\).*/{
21389             s//\1/
21390             q
21391           }
21392           s/.*/./; q'`
21393   as_dir="$ac_dir"; as_fn_mkdir_p
21394   ac_builddir=.
21395
21396 case "$ac_dir" in
21397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21398 *)
21399   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21400   # A ".." for each directory in $ac_dir_suffix.
21401   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21402   case $ac_top_builddir_sub in
21403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21405   esac ;;
21406 esac
21407 ac_abs_top_builddir=$ac_pwd
21408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21409 # for backward compatibility:
21410 ac_top_builddir=$ac_top_build_prefix
21411
21412 case $srcdir in
21413   .)  # We are building in place.
21414     ac_srcdir=.
21415     ac_top_srcdir=$ac_top_builddir_sub
21416     ac_abs_top_srcdir=$ac_pwd ;;
21417   [\\/]* | ?:[\\/]* )  # Absolute name.
21418     ac_srcdir=$srcdir$ac_dir_suffix;
21419     ac_top_srcdir=$srcdir
21420     ac_abs_top_srcdir=$srcdir ;;
21421   *) # Relative name.
21422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21423     ac_top_srcdir=$ac_top_build_prefix$srcdir
21424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21425 esac
21426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21427
21428
21429   case $ac_mode in
21430   :F)
21431   #
21432   # CONFIG_FILE
21433   #
21434
21435   case $INSTALL in
21436   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21437   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21438   esac
21439   ac_MKDIR_P=$MKDIR_P
21440   case $MKDIR_P in
21441   [\\/$]* | ?:[\\/]* ) ;;
21442   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21443   esac
21444 _ACEOF
21445
21446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447 # If the template does not know about datarootdir, expand it.
21448 # FIXME: This hack should be removed a few years after 2.60.
21449 ac_datarootdir_hack=; ac_datarootdir_seen=
21450 ac_sed_dataroot='
21451 /datarootdir/ {
21452   p
21453   q
21454 }
21455 /@datadir@/p
21456 /@docdir@/p
21457 /@infodir@/p
21458 /@localedir@/p
21459 /@mandir@/p'
21460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21461 *datarootdir*) ac_datarootdir_seen=yes;;
21462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21463   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21465 _ACEOF
21466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21467   ac_datarootdir_hack='
21468   s&@datadir@&$datadir&g
21469   s&@docdir@&$docdir&g
21470   s&@infodir@&$infodir&g
21471   s&@localedir@&$localedir&g
21472   s&@mandir@&$mandir&g
21473   s&\\\${datarootdir}&$datarootdir&g' ;;
21474 esac
21475 _ACEOF
21476
21477 # Neutralize VPATH when `$srcdir' = `.'.
21478 # Shell code in configure.ac might set extrasub.
21479 # FIXME: do we really want to maintain this feature?
21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481 ac_sed_extra="$ac_vpsub
21482 $extrasub
21483 _ACEOF
21484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21485 :t
21486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21487 s|@configure_input@|$ac_sed_conf_input|;t t
21488 s&@top_builddir@&$ac_top_builddir_sub&;t t
21489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21490 s&@srcdir@&$ac_srcdir&;t t
21491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21492 s&@top_srcdir@&$ac_top_srcdir&;t t
21493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21494 s&@builddir@&$ac_builddir&;t t
21495 s&@abs_builddir@&$ac_abs_builddir&;t t
21496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21497 s&@INSTALL@&$ac_INSTALL&;t t
21498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21499 $ac_datarootdir_hack
21500 "
21501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21502   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21503
21504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21505   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21506   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21507       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21509 which seems to be undefined.  Please make sure it is defined" >&5
21510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21511 which seems to be undefined.  Please make sure it is defined" >&2;}
21512
21513   rm -f "$ac_tmp/stdin"
21514   case $ac_file in
21515   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21516   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21517   esac \
21518   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21519  ;;
21520   :H)
21521   #
21522   # CONFIG_HEADER
21523   #
21524   if test x"$ac_file" != x-; then
21525     {
21526       $as_echo "/* $configure_input  */" \
21527       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21528     } >"$ac_tmp/config.h" \
21529       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21530     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21531       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21533     else
21534       rm -f "$ac_file"
21535       mv "$ac_tmp/config.h" "$ac_file" \
21536         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21537     fi
21538   else
21539     $as_echo "/* $configure_input  */" \
21540       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21541       || as_fn_error $? "could not create -" "$LINENO" 5
21542   fi
21543 # Compute "$ac_file"'s index in $config_headers.
21544 _am_arg="$ac_file"
21545 _am_stamp_count=1
21546 for _am_header in $config_headers :; do
21547   case $_am_header in
21548     $_am_arg | $_am_arg:* )
21549       break ;;
21550     * )
21551       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21552   esac
21553 done
21554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556          X"$_am_arg" : 'X\(//\)[^/]' \| \
21557          X"$_am_arg" : 'X\(//\)$' \| \
21558          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21559 $as_echo X"$_am_arg" |
21560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21561             s//\1/
21562             q
21563           }
21564           /^X\(\/\/\)[^/].*/{
21565             s//\1/
21566             q
21567           }
21568           /^X\(\/\/\)$/{
21569             s//\1/
21570             q
21571           }
21572           /^X\(\/\).*/{
21573             s//\1/
21574             q
21575           }
21576           s/.*/./; q'`/stamp-h$_am_stamp_count
21577  ;;
21578
21579   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21580 $as_echo "$as_me: executing $ac_file commands" >&6;}
21581  ;;
21582   esac
21583
21584
21585   case $ac_file$ac_mode in
21586     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21587   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21588   # are listed without --file.  Let's play safe and only enable the eval
21589   # if we detect the quoting.
21590   case $CONFIG_FILES in
21591   *\'*) eval set x "$CONFIG_FILES" ;;
21592   *)   set x $CONFIG_FILES ;;
21593   esac
21594   shift
21595   for mf
21596   do
21597     # Strip MF so we end up with the name of the file.
21598     mf=`echo "$mf" | sed -e 's/:.*$//'`
21599     # Check whether this is an Automake generated Makefile or not.
21600     # We used to match only the files named `Makefile.in', but
21601     # some people rename them; so instead we look at the file content.
21602     # Grep'ing the first line is not enough: some people post-process
21603     # each Makefile.in and add a new line on top of each file to say so.
21604     # Grep'ing the whole file is not good either: AIX grep has a line
21605     # limit of 2048, but all sed's we know have understand at least 4000.
21606     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21607       dirpart=`$as_dirname -- "$mf" ||
21608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21609          X"$mf" : 'X\(//\)[^/]' \| \
21610          X"$mf" : 'X\(//\)$' \| \
21611          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21612 $as_echo X"$mf" |
21613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21614             s//\1/
21615             q
21616           }
21617           /^X\(\/\/\)[^/].*/{
21618             s//\1/
21619             q
21620           }
21621           /^X\(\/\/\)$/{
21622             s//\1/
21623             q
21624           }
21625           /^X\(\/\).*/{
21626             s//\1/
21627             q
21628           }
21629           s/.*/./; q'`
21630     else
21631       continue
21632     fi
21633     # Extract the definition of DEPDIR, am__include, and am__quote
21634     # from the Makefile without running `make'.
21635     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21636     test -z "$DEPDIR" && continue
21637     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21638     test -z "am__include" && continue
21639     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21640     # When using ansi2knr, U may be empty or an underscore; expand it
21641     U=`sed -n 's/^U = //p' < "$mf"`
21642     # Find all dependency output files, they are included files with
21643     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21644     # simplest approach to changing $(DEPDIR) to its actual value in the
21645     # expansion.
21646     for file in `sed -n "
21647       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21648          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21649       # Make sure the directory exists.
21650       test -f "$dirpart/$file" && continue
21651       fdir=`$as_dirname -- "$file" ||
21652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21653          X"$file" : 'X\(//\)[^/]' \| \
21654          X"$file" : 'X\(//\)$' \| \
21655          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21656 $as_echo X"$file" |
21657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21658             s//\1/
21659             q
21660           }
21661           /^X\(\/\/\)[^/].*/{
21662             s//\1/
21663             q
21664           }
21665           /^X\(\/\/\)$/{
21666             s//\1/
21667             q
21668           }
21669           /^X\(\/\).*/{
21670             s//\1/
21671             q
21672           }
21673           s/.*/./; q'`
21674       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21675       # echo "creating $dirpart/$file"
21676       echo '# dummy' > "$dirpart/$file"
21677     done
21678   done
21679 }
21680  ;;
21681     "libtool":C)
21682
21683     # See if we are running on zsh, and set the options which allow our
21684     # commands through without removal of \ escapes.
21685     if test -n "${ZSH_VERSION+set}" ; then
21686       setopt NO_GLOB_SUBST
21687     fi
21688
21689     cfgfile="${ofile}T"
21690     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21691     $RM "$cfgfile"
21692
21693     cat <<_LT_EOF >> "$cfgfile"
21694 #! $SHELL
21695
21696 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21697 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21700 #
21701 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21702 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21703 #                 Foundation, Inc.
21704 #   Written by Gordon Matzigkeit, 1996
21705 #
21706 #   This file is part of GNU Libtool.
21707 #
21708 # GNU Libtool is free software; you can redistribute it and/or
21709 # modify it under the terms of the GNU General Public License as
21710 # published by the Free Software Foundation; either version 2 of
21711 # the License, or (at your option) any later version.
21712 #
21713 # As a special exception to the GNU General Public License,
21714 # if you distribute this file as part of a program or library that
21715 # is built using GNU Libtool, you may include this file under the
21716 # same distribution terms that you use for the rest of that program.
21717 #
21718 # GNU Libtool is distributed in the hope that it will be useful,
21719 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21720 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21721 # GNU General Public License for more details.
21722 #
21723 # You should have received a copy of the GNU General Public License
21724 # along with GNU Libtool; see the file COPYING.  If not, a copy
21725 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21726 # obtained by writing to the Free Software Foundation, Inc.,
21727 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21728
21729
21730 # The names of the tagged configurations supported by this script.
21731 available_tags="CXX RC "
21732
21733 # ### BEGIN LIBTOOL CONFIG
21734
21735 # Which release of libtool.m4 was used?
21736 macro_version=$macro_version
21737 macro_revision=$macro_revision
21738
21739 # Assembler program.
21740 AS=$lt_AS
21741
21742 # DLL creation program.
21743 DLLTOOL=$lt_DLLTOOL
21744
21745 # Object dumper program.
21746 OBJDUMP=$lt_OBJDUMP
21747
21748 # Whether or not to build static libraries.
21749 build_old_libs=$enable_static
21750
21751 # Whether or not to build shared libraries.
21752 build_libtool_libs=$enable_shared
21753
21754 # What type of objects to build.
21755 pic_mode=$pic_mode
21756
21757 # Whether or not to optimize for fast installation.
21758 fast_install=$enable_fast_install
21759
21760 # Shell to use when invoking shell scripts.
21761 SHELL=$lt_SHELL
21762
21763 # An echo program that protects backslashes.
21764 ECHO=$lt_ECHO
21765
21766 # The PATH separator for the build system.
21767 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21768
21769 # The host system.
21770 host_alias=$host_alias
21771 host=$host
21772 host_os=$host_os
21773
21774 # The build system.
21775 build_alias=$build_alias
21776 build=$build
21777 build_os=$build_os
21778
21779 # A sed program that does not truncate output.
21780 SED=$lt_SED
21781
21782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21783 Xsed="\$SED -e 1s/^X//"
21784
21785 # A grep program that handles long lines.
21786 GREP=$lt_GREP
21787
21788 # An ERE matcher.
21789 EGREP=$lt_EGREP
21790
21791 # A literal string matcher.
21792 FGREP=$lt_FGREP
21793
21794 # A BSD- or MS-compatible name lister.
21795 NM=$lt_NM
21796
21797 # Whether we need soft or hard links.
21798 LN_S=$lt_LN_S
21799
21800 # What is the maximum length of a command?
21801 max_cmd_len=$max_cmd_len
21802
21803 # Object file suffix (normally "o").
21804 objext=$ac_objext
21805
21806 # Executable file suffix (normally "").
21807 exeext=$exeext
21808
21809 # whether the shell understands "unset".
21810 lt_unset=$lt_unset
21811
21812 # turn spaces into newlines.
21813 SP2NL=$lt_lt_SP2NL
21814
21815 # turn newlines into spaces.
21816 NL2SP=$lt_lt_NL2SP
21817
21818 # convert \$build file names to \$host format.
21819 to_host_file_cmd=$lt_cv_to_host_file_cmd
21820
21821 # convert \$build files to toolchain format.
21822 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21823
21824 # Method to check whether dependent libraries are shared objects.
21825 deplibs_check_method=$lt_deplibs_check_method
21826
21827 # Command to use when deplibs_check_method = "file_magic".
21828 file_magic_cmd=$lt_file_magic_cmd
21829
21830 # How to find potential files when deplibs_check_method = "file_magic".
21831 file_magic_glob=$lt_file_magic_glob
21832
21833 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21834 want_nocaseglob=$lt_want_nocaseglob
21835
21836 # Command to associate shared and link libraries.
21837 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21838
21839 # The archiver.
21840 AR=$lt_AR
21841
21842 # Flags to create an archive.
21843 AR_FLAGS=$lt_AR_FLAGS
21844
21845 # How to feed a file listing to the archiver.
21846 archiver_list_spec=$lt_archiver_list_spec
21847
21848 # A symbol stripping program.
21849 STRIP=$lt_STRIP
21850
21851 # Commands used to install an old-style archive.
21852 RANLIB=$lt_RANLIB
21853 old_postinstall_cmds=$lt_old_postinstall_cmds
21854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21855
21856 # Whether to use a lock for old archive extraction.
21857 lock_old_archive_extraction=$lock_old_archive_extraction
21858
21859 # A C compiler.
21860 LTCC=$lt_CC
21861
21862 # LTCC compiler flags.
21863 LTCFLAGS=$lt_CFLAGS
21864
21865 # Take the output of nm and produce a listing of raw symbols and C names.
21866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21867
21868 # Transform the output of nm in a proper C declaration.
21869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21870
21871 # Transform the output of nm in a C name address pair.
21872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21873
21874 # Transform the output of nm in a C name address pair when lib prefix is needed.
21875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21876
21877 # Specify filename containing input files for \$NM.
21878 nm_file_list_spec=$lt_nm_file_list_spec
21879
21880 # The root where to search for dependent libraries,and in which our libraries should be installed.
21881 lt_sysroot=$lt_sysroot
21882
21883 # The name of the directory that contains temporary libtool files.
21884 objdir=$objdir
21885
21886 # Used to examine libraries when file_magic_cmd begins with "file".
21887 MAGIC_CMD=$MAGIC_CMD
21888
21889 # Must we lock files when doing compilation?
21890 need_locks=$lt_need_locks
21891
21892 # Manifest tool.
21893 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21894
21895 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21896 DSYMUTIL=$lt_DSYMUTIL
21897
21898 # Tool to change global to local symbols on Mac OS X.
21899 NMEDIT=$lt_NMEDIT
21900
21901 # Tool to manipulate fat objects and archives on Mac OS X.
21902 LIPO=$lt_LIPO
21903
21904 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21905 OTOOL=$lt_OTOOL
21906
21907 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21908 OTOOL64=$lt_OTOOL64
21909
21910 # Old archive suffix (normally "a").
21911 libext=$libext
21912
21913 # Shared library suffix (normally ".so").
21914 shrext_cmds=$lt_shrext_cmds
21915
21916 # The commands to extract the exported symbol list from a shared archive.
21917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21918
21919 # Variables whose values should be saved in libtool wrapper scripts and
21920 # restored at link time.
21921 variables_saved_for_relink=$lt_variables_saved_for_relink
21922
21923 # Do we need the "lib" prefix for modules?
21924 need_lib_prefix=$need_lib_prefix
21925
21926 # Do we need a version for libraries?
21927 need_version=$need_version
21928
21929 # Library versioning type.
21930 version_type=$version_type
21931
21932 # Shared library runtime path variable.
21933 runpath_var=$runpath_var
21934
21935 # Shared library path variable.
21936 shlibpath_var=$shlibpath_var
21937
21938 # Is shlibpath searched before the hard-coded library search path?
21939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21940
21941 # Format of library name prefix.
21942 libname_spec=$lt_libname_spec
21943
21944 # List of archive names.  First name is the real one, the rest are links.
21945 # The last name is the one that the linker finds with -lNAME
21946 library_names_spec=$lt_library_names_spec
21947
21948 # The coded name of the library, if different from the real name.
21949 soname_spec=$lt_soname_spec
21950
21951 # Permission mode override for installation of shared libraries.
21952 install_override_mode=$lt_install_override_mode
21953
21954 # Command to use after installation of a shared archive.
21955 postinstall_cmds=$lt_postinstall_cmds
21956
21957 # Command to use after uninstallation of a shared archive.
21958 postuninstall_cmds=$lt_postuninstall_cmds
21959
21960 # Commands used to finish a libtool library installation in a directory.
21961 finish_cmds=$lt_finish_cmds
21962
21963 # As "finish_cmds", except a single script fragment to be evaled but
21964 # not shown.
21965 finish_eval=$lt_finish_eval
21966
21967 # Whether we should hardcode library paths into libraries.
21968 hardcode_into_libs=$hardcode_into_libs
21969
21970 # Compile-time system search path for libraries.
21971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21972
21973 # Run-time system search path for libraries.
21974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21975
21976 # Whether dlopen is supported.
21977 dlopen_support=$enable_dlopen
21978
21979 # Whether dlopen of programs is supported.
21980 dlopen_self=$enable_dlopen_self
21981
21982 # Whether dlopen of statically linked programs is supported.
21983 dlopen_self_static=$enable_dlopen_self_static
21984
21985 # Commands to strip libraries.
21986 old_striplib=$lt_old_striplib
21987 striplib=$lt_striplib
21988
21989
21990 # The linker used to build libraries.
21991 LD=$lt_LD
21992
21993 # How to create reloadable object files.
21994 reload_flag=$lt_reload_flag
21995 reload_cmds=$lt_reload_cmds
21996
21997 # Commands used to build an old-style archive.
21998 old_archive_cmds=$lt_old_archive_cmds
21999
22000 # A language specific compiler.
22001 CC=$lt_compiler
22002
22003 # Is the compiler the GNU compiler?
22004 with_gcc=$GCC
22005
22006 # Compiler flag to turn off builtin functions.
22007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22008
22009 # Additional compiler flags for building library objects.
22010 pic_flag=$lt_lt_prog_compiler_pic
22011
22012 # How to pass a linker flag through the compiler.
22013 wl=$lt_lt_prog_compiler_wl
22014
22015 # Compiler flag to prevent dynamic linking.
22016 link_static_flag=$lt_lt_prog_compiler_static
22017
22018 # Does compiler simultaneously support -c and -o options?
22019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22020
22021 # Whether or not to add -lc for building shared libraries.
22022 build_libtool_need_lc=$archive_cmds_need_lc
22023
22024 # Whether or not to disallow shared libs when runtime libs are static.
22025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22026
22027 # Compiler flag to allow reflexive dlopens.
22028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22029
22030 # Compiler flag to generate shared objects directly from archives.
22031 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22032
22033 # Whether the compiler copes with passing no objects directly.
22034 compiler_needs_object=$lt_compiler_needs_object
22035
22036 # Create an old-style archive from a shared archive.
22037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22038
22039 # Create a temporary old-style archive to link instead of a shared archive.
22040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22041
22042 # Commands used to build a shared archive.
22043 archive_cmds=$lt_archive_cmds
22044 archive_expsym_cmds=$lt_archive_expsym_cmds
22045
22046 # Commands used to build a loadable module if different from building
22047 # a shared archive.
22048 module_cmds=$lt_module_cmds
22049 module_expsym_cmds=$lt_module_expsym_cmds
22050
22051 # Whether we are building with GNU ld or not.
22052 with_gnu_ld=$lt_with_gnu_ld
22053
22054 # Flag that allows shared libraries with undefined symbols to be built.
22055 allow_undefined_flag=$lt_allow_undefined_flag
22056
22057 # Flag that enforces no undefined symbols.
22058 no_undefined_flag=$lt_no_undefined_flag
22059
22060 # Flag to hardcode \$libdir into a binary during linking.
22061 # This must work even if \$libdir does not exist
22062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22063
22064 # Whether we need a single "-rpath" flag with a separated argument.
22065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22066
22067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22068 # DIR into the resulting binary.
22069 hardcode_direct=$hardcode_direct
22070
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary and the resulting library dependency is
22073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22074 # library is relocated.
22075 hardcode_direct_absolute=$hardcode_direct_absolute
22076
22077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22078 # into the resulting binary.
22079 hardcode_minus_L=$hardcode_minus_L
22080
22081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_shlibpath_var=$hardcode_shlibpath_var
22084
22085 # Set to "yes" if building a shared library automatically hardcodes DIR
22086 # into the library and all subsequent libraries and executables linked
22087 # against it.
22088 hardcode_automatic=$hardcode_automatic
22089
22090 # Set to yes if linker adds runtime paths of dependent libraries
22091 # to runtime path list.
22092 inherit_rpath=$inherit_rpath
22093
22094 # Whether libtool must link a program against all its dependency libraries.
22095 link_all_deplibs=$link_all_deplibs
22096
22097 # Set to "yes" if exported symbols are required.
22098 always_export_symbols=$always_export_symbols
22099
22100 # The commands to list exported symbols.
22101 export_symbols_cmds=$lt_export_symbols_cmds
22102
22103 # Symbols that should not be listed in the preloaded symbols.
22104 exclude_expsyms=$lt_exclude_expsyms
22105
22106 # Symbols that must always be exported.
22107 include_expsyms=$lt_include_expsyms
22108
22109 # Commands necessary for linking programs (against libraries) with templates.
22110 prelink_cmds=$lt_prelink_cmds
22111
22112 # Commands necessary for finishing linking programs.
22113 postlink_cmds=$lt_postlink_cmds
22114
22115 # Specify filename containing input files.
22116 file_list_spec=$lt_file_list_spec
22117
22118 # How to hardcode a shared library path into an executable.
22119 hardcode_action=$hardcode_action
22120
22121 # The directories searched by this compiler when creating a shared library.
22122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22123
22124 # Dependencies to place before and after the objects being linked to
22125 # create a shared library.
22126 predep_objects=$lt_predep_objects
22127 postdep_objects=$lt_postdep_objects
22128 predeps=$lt_predeps
22129 postdeps=$lt_postdeps
22130
22131 # The library search path used internally by the compiler when linking
22132 # a shared library.
22133 compiler_lib_search_path=$lt_compiler_lib_search_path
22134
22135 # ### END LIBTOOL CONFIG
22136
22137 _LT_EOF
22138
22139   case $host_os in
22140   aix3*)
22141     cat <<\_LT_EOF >> "$cfgfile"
22142 # AIX sometimes has problems with the GCC collect2 program.  For some
22143 # reason, if we set the COLLECT_NAMES environment variable, the problems
22144 # vanish in a puff of smoke.
22145 if test "X${COLLECT_NAMES+set}" != Xset; then
22146   COLLECT_NAMES=
22147   export COLLECT_NAMES
22148 fi
22149 _LT_EOF
22150     ;;
22151   esac
22152
22153
22154 ltmain="$ac_aux_dir/ltmain.sh"
22155
22156
22157   # We use sed instead of cat because bash on DJGPP gets confused if
22158   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22159   # text mode, it properly converts lines to CR/LF.  This bash problem
22160   # is reportedly fixed, but why not run on old versions too?
22161   sed '$q' "$ltmain" >> "$cfgfile" \
22162      || (rm -f "$cfgfile"; exit 1)
22163
22164   if test x"$xsi_shell" = xyes; then
22165   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22166 func_dirname ()\
22167 {\
22168 \    case ${1} in\
22169 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22170 \      *  ) func_dirname_result="${3}" ;;\
22171 \    esac\
22172 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22173   && mv -f "$cfgfile.tmp" "$cfgfile" \
22174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22175 test 0 -eq $? || _lt_function_replace_fail=:
22176
22177
22178   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22179 func_basename ()\
22180 {\
22181 \    func_basename_result="${1##*/}"\
22182 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22183   && mv -f "$cfgfile.tmp" "$cfgfile" \
22184     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22185 test 0 -eq $? || _lt_function_replace_fail=:
22186
22187
22188   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22189 func_dirname_and_basename ()\
22190 {\
22191 \    case ${1} in\
22192 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22193 \      *  ) func_dirname_result="${3}" ;;\
22194 \    esac\
22195 \    func_basename_result="${1##*/}"\
22196 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22197   && mv -f "$cfgfile.tmp" "$cfgfile" \
22198     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22199 test 0 -eq $? || _lt_function_replace_fail=:
22200
22201
22202   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22203 func_stripname ()\
22204 {\
22205 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22206 \    # positional parameters, so assign one to ordinary parameter first.\
22207 \    func_stripname_result=${3}\
22208 \    func_stripname_result=${func_stripname_result#"${1}"}\
22209 \    func_stripname_result=${func_stripname_result%"${2}"}\
22210 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22211   && mv -f "$cfgfile.tmp" "$cfgfile" \
22212     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22213 test 0 -eq $? || _lt_function_replace_fail=:
22214
22215
22216   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22217 func_split_long_opt ()\
22218 {\
22219 \    func_split_long_opt_name=${1%%=*}\
22220 \    func_split_long_opt_arg=${1#*=}\
22221 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22222   && mv -f "$cfgfile.tmp" "$cfgfile" \
22223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22224 test 0 -eq $? || _lt_function_replace_fail=:
22225
22226
22227   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22228 func_split_short_opt ()\
22229 {\
22230 \    func_split_short_opt_arg=${1#??}\
22231 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22232 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22233   && mv -f "$cfgfile.tmp" "$cfgfile" \
22234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22235 test 0 -eq $? || _lt_function_replace_fail=:
22236
22237
22238   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22239 func_lo2o ()\
22240 {\
22241 \    case ${1} in\
22242 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22243 \      *)    func_lo2o_result=${1} ;;\
22244 \    esac\
22245 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22246   && mv -f "$cfgfile.tmp" "$cfgfile" \
22247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22248 test 0 -eq $? || _lt_function_replace_fail=:
22249
22250
22251   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22252 func_xform ()\
22253 {\
22254     func_xform_result=${1%.*}.lo\
22255 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22256   && mv -f "$cfgfile.tmp" "$cfgfile" \
22257     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22258 test 0 -eq $? || _lt_function_replace_fail=:
22259
22260
22261   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22262 func_arith ()\
22263 {\
22264     func_arith_result=$(( $* ))\
22265 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22266   && mv -f "$cfgfile.tmp" "$cfgfile" \
22267     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22268 test 0 -eq $? || _lt_function_replace_fail=:
22269
22270
22271   sed -e '/^func_len ()$/,/^} # func_len /c\
22272 func_len ()\
22273 {\
22274     func_len_result=${#1}\
22275 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22276   && mv -f "$cfgfile.tmp" "$cfgfile" \
22277     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22278 test 0 -eq $? || _lt_function_replace_fail=:
22279
22280 fi
22281
22282 if test x"$lt_shell_append" = xyes; then
22283   sed -e '/^func_append ()$/,/^} # func_append /c\
22284 func_append ()\
22285 {\
22286     eval "${1}+=\\${2}"\
22287 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22288   && mv -f "$cfgfile.tmp" "$cfgfile" \
22289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22290 test 0 -eq $? || _lt_function_replace_fail=:
22291
22292
22293   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22294 func_append_quoted ()\
22295 {\
22296 \    func_quote_for_eval "${2}"\
22297 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22298 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22299   && mv -f "$cfgfile.tmp" "$cfgfile" \
22300     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301 test 0 -eq $? || _lt_function_replace_fail=:
22302
22303
22304   # Save a `func_append' function call where possible by direct use of '+='
22305   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22306     && mv -f "$cfgfile.tmp" "$cfgfile" \
22307       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22308   test 0 -eq $? || _lt_function_replace_fail=:
22309 else
22310   # Save a `func_append' function call even when '+=' is not available
22311   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22312     && mv -f "$cfgfile.tmp" "$cfgfile" \
22313       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22314   test 0 -eq $? || _lt_function_replace_fail=:
22315 fi
22316
22317 if test x"$_lt_function_replace_fail" = x":"; then
22318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22319 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22320 fi
22321
22322
22323    mv -f "$cfgfile" "$ofile" ||
22324     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22325   chmod +x "$ofile"
22326
22327
22328     cat <<_LT_EOF >> "$ofile"
22329
22330 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22331
22332 # The linker used to build libraries.
22333 LD=$lt_LD_CXX
22334
22335 # How to create reloadable object files.
22336 reload_flag=$lt_reload_flag_CXX
22337 reload_cmds=$lt_reload_cmds_CXX
22338
22339 # Commands used to build an old-style archive.
22340 old_archive_cmds=$lt_old_archive_cmds_CXX
22341
22342 # A language specific compiler.
22343 CC=$lt_compiler_CXX
22344
22345 # Is the compiler the GNU compiler?
22346 with_gcc=$GCC_CXX
22347
22348 # Compiler flag to turn off builtin functions.
22349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22350
22351 # Additional compiler flags for building library objects.
22352 pic_flag=$lt_lt_prog_compiler_pic_CXX
22353
22354 # How to pass a linker flag through the compiler.
22355 wl=$lt_lt_prog_compiler_wl_CXX
22356
22357 # Compiler flag to prevent dynamic linking.
22358 link_static_flag=$lt_lt_prog_compiler_static_CXX
22359
22360 # Does compiler simultaneously support -c and -o options?
22361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22362
22363 # Whether or not to add -lc for building shared libraries.
22364 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22365
22366 # Whether or not to disallow shared libs when runtime libs are static.
22367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22368
22369 # Compiler flag to allow reflexive dlopens.
22370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22371
22372 # Compiler flag to generate shared objects directly from archives.
22373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22374
22375 # Whether the compiler copes with passing no objects directly.
22376 compiler_needs_object=$lt_compiler_needs_object_CXX
22377
22378 # Create an old-style archive from a shared archive.
22379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22380
22381 # Create a temporary old-style archive to link instead of a shared archive.
22382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22383
22384 # Commands used to build a shared archive.
22385 archive_cmds=$lt_archive_cmds_CXX
22386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22387
22388 # Commands used to build a loadable module if different from building
22389 # a shared archive.
22390 module_cmds=$lt_module_cmds_CXX
22391 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22392
22393 # Whether we are building with GNU ld or not.
22394 with_gnu_ld=$lt_with_gnu_ld_CXX
22395
22396 # Flag that allows shared libraries with undefined symbols to be built.
22397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22398
22399 # Flag that enforces no undefined symbols.
22400 no_undefined_flag=$lt_no_undefined_flag_CXX
22401
22402 # Flag to hardcode \$libdir into a binary during linking.
22403 # This must work even if \$libdir does not exist
22404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22405
22406 # Whether we need a single "-rpath" flag with a separated argument.
22407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22408
22409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22410 # DIR into the resulting binary.
22411 hardcode_direct=$hardcode_direct_CXX
22412
22413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22414 # DIR into the resulting binary and the resulting library dependency is
22415 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22416 # library is relocated.
22417 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22418
22419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22420 # into the resulting binary.
22421 hardcode_minus_L=$hardcode_minus_L_CXX
22422
22423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22424 # into the resulting binary.
22425 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22426
22427 # Set to "yes" if building a shared library automatically hardcodes DIR
22428 # into the library and all subsequent libraries and executables linked
22429 # against it.
22430 hardcode_automatic=$hardcode_automatic_CXX
22431
22432 # Set to yes if linker adds runtime paths of dependent libraries
22433 # to runtime path list.
22434 inherit_rpath=$inherit_rpath_CXX
22435
22436 # Whether libtool must link a program against all its dependency libraries.
22437 link_all_deplibs=$link_all_deplibs_CXX
22438
22439 # Set to "yes" if exported symbols are required.
22440 always_export_symbols=$always_export_symbols_CXX
22441
22442 # The commands to list exported symbols.
22443 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22444
22445 # Symbols that should not be listed in the preloaded symbols.
22446 exclude_expsyms=$lt_exclude_expsyms_CXX
22447
22448 # Symbols that must always be exported.
22449 include_expsyms=$lt_include_expsyms_CXX
22450
22451 # Commands necessary for linking programs (against libraries) with templates.
22452 prelink_cmds=$lt_prelink_cmds_CXX
22453
22454 # Commands necessary for finishing linking programs.
22455 postlink_cmds=$lt_postlink_cmds_CXX
22456
22457 # Specify filename containing input files.
22458 file_list_spec=$lt_file_list_spec_CXX
22459
22460 # How to hardcode a shared library path into an executable.
22461 hardcode_action=$hardcode_action_CXX
22462
22463 # The directories searched by this compiler when creating a shared library.
22464 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22465
22466 # Dependencies to place before and after the objects being linked to
22467 # create a shared library.
22468 predep_objects=$lt_predep_objects_CXX
22469 postdep_objects=$lt_postdep_objects_CXX
22470 predeps=$lt_predeps_CXX
22471 postdeps=$lt_postdeps_CXX
22472
22473 # The library search path used internally by the compiler when linking
22474 # a shared library.
22475 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22476
22477 # ### END LIBTOOL TAG CONFIG: CXX
22478 _LT_EOF
22479
22480
22481     cat <<_LT_EOF >> "$ofile"
22482
22483 # ### BEGIN LIBTOOL TAG CONFIG: RC
22484
22485 # The linker used to build libraries.
22486 LD=$lt_LD_RC
22487
22488 # How to create reloadable object files.
22489 reload_flag=$lt_reload_flag_RC
22490 reload_cmds=$lt_reload_cmds_RC
22491
22492 # Commands used to build an old-style archive.
22493 old_archive_cmds=$lt_old_archive_cmds_RC
22494
22495 # A language specific compiler.
22496 CC=$lt_compiler_RC
22497
22498 # Is the compiler the GNU compiler?
22499 with_gcc=$GCC_RC
22500
22501 # Compiler flag to turn off builtin functions.
22502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22503
22504 # Additional compiler flags for building library objects.
22505 pic_flag=$lt_lt_prog_compiler_pic_RC
22506
22507 # How to pass a linker flag through the compiler.
22508 wl=$lt_lt_prog_compiler_wl_RC
22509
22510 # Compiler flag to prevent dynamic linking.
22511 link_static_flag=$lt_lt_prog_compiler_static_RC
22512
22513 # Does compiler simultaneously support -c and -o options?
22514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22515
22516 # Whether or not to add -lc for building shared libraries.
22517 build_libtool_need_lc=$archive_cmds_need_lc_RC
22518
22519 # Whether or not to disallow shared libs when runtime libs are static.
22520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22521
22522 # Compiler flag to allow reflexive dlopens.
22523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22524
22525 # Compiler flag to generate shared objects directly from archives.
22526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22527
22528 # Whether the compiler copes with passing no objects directly.
22529 compiler_needs_object=$lt_compiler_needs_object_RC
22530
22531 # Create an old-style archive from a shared archive.
22532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22533
22534 # Create a temporary old-style archive to link instead of a shared archive.
22535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22536
22537 # Commands used to build a shared archive.
22538 archive_cmds=$lt_archive_cmds_RC
22539 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22540
22541 # Commands used to build a loadable module if different from building
22542 # a shared archive.
22543 module_cmds=$lt_module_cmds_RC
22544 module_expsym_cmds=$lt_module_expsym_cmds_RC
22545
22546 # Whether we are building with GNU ld or not.
22547 with_gnu_ld=$lt_with_gnu_ld_RC
22548
22549 # Flag that allows shared libraries with undefined symbols to be built.
22550 allow_undefined_flag=$lt_allow_undefined_flag_RC
22551
22552 # Flag that enforces no undefined symbols.
22553 no_undefined_flag=$lt_no_undefined_flag_RC
22554
22555 # Flag to hardcode \$libdir into a binary during linking.
22556 # This must work even if \$libdir does not exist
22557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22558
22559 # Whether we need a single "-rpath" flag with a separated argument.
22560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22561
22562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22563 # DIR into the resulting binary.
22564 hardcode_direct=$hardcode_direct_RC
22565
22566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22567 # DIR into the resulting binary and the resulting library dependency is
22568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22569 # library is relocated.
22570 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22571
22572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22573 # into the resulting binary.
22574 hardcode_minus_L=$hardcode_minus_L_RC
22575
22576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22577 # into the resulting binary.
22578 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22579
22580 # Set to "yes" if building a shared library automatically hardcodes DIR
22581 # into the library and all subsequent libraries and executables linked
22582 # against it.
22583 hardcode_automatic=$hardcode_automatic_RC
22584
22585 # Set to yes if linker adds runtime paths of dependent libraries
22586 # to runtime path list.
22587 inherit_rpath=$inherit_rpath_RC
22588
22589 # Whether libtool must link a program against all its dependency libraries.
22590 link_all_deplibs=$link_all_deplibs_RC
22591
22592 # Set to "yes" if exported symbols are required.
22593 always_export_symbols=$always_export_symbols_RC
22594
22595 # The commands to list exported symbols.
22596 export_symbols_cmds=$lt_export_symbols_cmds_RC
22597
22598 # Symbols that should not be listed in the preloaded symbols.
22599 exclude_expsyms=$lt_exclude_expsyms_RC
22600
22601 # Symbols that must always be exported.
22602 include_expsyms=$lt_include_expsyms_RC
22603
22604 # Commands necessary for linking programs (against libraries) with templates.
22605 prelink_cmds=$lt_prelink_cmds_RC
22606
22607 # Commands necessary for finishing linking programs.
22608 postlink_cmds=$lt_postlink_cmds_RC
22609
22610 # Specify filename containing input files.
22611 file_list_spec=$lt_file_list_spec_RC
22612
22613 # How to hardcode a shared library path into an executable.
22614 hardcode_action=$hardcode_action_RC
22615
22616 # The directories searched by this compiler when creating a shared library.
22617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22618
22619 # Dependencies to place before and after the objects being linked to
22620 # create a shared library.
22621 predep_objects=$lt_predep_objects_RC
22622 postdep_objects=$lt_postdep_objects_RC
22623 predeps=$lt_predeps_RC
22624 postdeps=$lt_postdeps_RC
22625
22626 # The library search path used internally by the compiler when linking
22627 # a shared library.
22628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22629
22630 # ### END LIBTOOL TAG CONFIG: RC
22631 _LT_EOF
22632
22633  ;;
22634     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
22635
22636   esac
22637 done # for ac_tag
22638
22639
22640 as_fn_exit 0
22641 _ACEOF
22642 ac_clean_files=$ac_clean_files_save
22643
22644 test $ac_write_fail = 0 ||
22645   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22646
22647
22648 # configure is writing to config.log, and then calls config.status.
22649 # config.status does its own redirection, appending to config.log.
22650 # Unfortunately, on DOS this fails, as config.log is still kept open
22651 # by configure, so config.status won't be able to write to it; its
22652 # output is simply discarded.  So we exec the FD to /dev/null,
22653 # effectively closing config.log, so it can be properly (re)opened and
22654 # appended to by config.status.  When coming back to configure, we
22655 # need to make the FD available again.
22656 if test "$no_create" != yes; then
22657   ac_cs_success=:
22658   ac_config_status_args=
22659   test "$silent" = yes &&
22660     ac_config_status_args="$ac_config_status_args --quiet"
22661   exec 5>/dev/null
22662   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22663   exec 5>>config.log
22664   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22665   # would make configure fail if this is the last instruction.
22666   $ac_cs_success || as_fn_exit 1
22667 fi
22668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22669   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22671 fi
22672
22673
22674 echo "
22675         GPGME v${VERSION} has been configured as follows:
22676
22677         Revision:        5075c0d  (20597)
22678         Platform:        $host
22679
22680         GnuPG path:      $GPG
22681         GnuPG version:   $GPG_VERSION, min. $NEED_GPG_VERSION
22682         GpgSM path:      $GPGSM
22683         GpgSM version:   $GPGSM_VERSION, min. $NEED_GPGSM_VERSION
22684         GpgConf path:    $GPGCONF
22685         GpgConf version: $GPGCONF_VERSION, min. $NEED_GPGCONF_VERSION
22686         G13 path:        $G13
22687         G13 version:     $G13_VERSION, min. $NEED_G13_VERSION
22688
22689         Assuan version:  $libassuan_config_version, min. $NEED_LIBASSUAN_VERSION
22690
22691         UI Server:       $uiserver
22692         FD Passing:      $use_descriptor_passing
22693         GPGME Pthread:   $have_pthread
22694 "